/* ============================================================
   Olus Machine Management System — App Styles
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --brand:       #2E9E5B;
  --brand-dark:  #153C2A;
  --brand-light: #E3F2E9;
  --success:     #16a34a;
  --warning:     #C0871C;
  --danger:      #CC5540;
  --bg:          #E9EFE5;
  --surface:     #ffffff;
  --surface2:    #EDF3E9;
  --border:      #E1E8DB;
  --text:        #16271E;
  --text-muted:  #5E6E64;
  --sidebar-w:   240px;
  --radius:      10px;
  --radius-lg:   14px;
  --mono:        'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow:      0 1px 3px rgba(21,60,42,.08), 0 1px 2px rgba(21,60,42,.05);
  --shadow-lg:   0 6px 16px -4px rgba(21,60,42,.12), 0 2px 6px -2px rgba(21,60,42,.08);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body { font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; touch-action: manipulation; }
input, select, textarea, button { font: inherit; touch-action: manipulation; }
a { color: var(--brand); text-decoration: none; }

/* ── Utilities ──────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); font-size: .875rem; }
.required { color: var(--danger); }

/* ── Loading screen ─────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: #153C2A; color: #fff; z-index: 9999;
}
.loading-logo { display: flex; align-items: center; justify-content: center; }
.loading-logo-img { width: 220px; mix-blend-mode: luminosity; opacity: .92; }
.loading-subtext { color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-top: -4px; }
.loading-text { color: rgba(255,255,255,.45); font-size: .8rem; margin-top: 8px; }

/* ── Offline banner ─────────────────────────────────────── */
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--warning); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; font-size: .875rem; font-weight: 500;
}
.offline-banner svg { width: 16px; height: 16px; }

/* ── View containers ────────────────────────────────────── */
.view { min-height: 100vh; }

/* ─────────────────────────────────────────────────────────
   OPERATOR VIEW
   ───────────────────────────────────────────────────────── */

#view-operator {
  background: linear-gradient(160deg, #153C2A 0%, #238049 100%);
  min-height: 100vh;
}

.screen {
  max-width: 480px; margin: 0 auto; padding: 0 16px 32px;
  min-height: 100vh; display: flex; flex-direction: column;
}

.screen-header {
  padding: 48px 0 24px; color: white;
}
.screen-header.branded { text-align: center; }
.landing-logo { width: 200px; mix-blend-mode: luminosity; opacity: .92; margin-bottom: 2px; }
.screen-header.branded .branded-subtitle { color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 0; margin-bottom: 8px; }
.screen-header.branded p { color: #94a3b8; margin-top: 4px; }
.screen-header h2 { font-size: 1.25rem; font-weight: 600; }
.screen-header p { color: #94a3b8; font-size: .875rem; margin-top: 4px; }

.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #94a3b8; font-size: .875rem; }

.screen-footer { margin-top: auto; padding: 24px 0 16px; text-align: center; }

/* Back button */
.btn-back {
  background: rgba(255,255,255,.1); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; margin-bottom: 12px;
}
.btn-back:hover { background: rgba(255,255,255,.2); }

/* Operator grid */
.operator-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  flex: 1;
}
.operator-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 20px 12px;
  color: white; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.operator-btn:hover { background: rgba(255,255,255,.15); border-color: var(--brand); }
.operator-btn:active { transform: scale(.97); }
.operator-btn .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
}
.operator-btn .op-name { font-weight: 600; font-size: .9rem; text-align: center; }

/* PIN pad */
.pin-dots {
  display: flex; gap: 12px; justify-content: center; margin: 40px 0 8px;
}
.dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); transition: all .15s;
}
.dot.filled { background: var(--brand); border-color: var(--brand); }

.pin-error { color: #fca5a5; text-align: center; font-size: .875rem; margin-bottom: 8px; white-space: pre-line; }
.pin-error--locked { color: #fbbf24; font-size: .95rem; line-height: 1.5; }

.pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px 0;
}
.pin-key {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 20px;
  color: white; font-size: 1.4rem; font-weight: 600; cursor: pointer;
  transition: all .1s; user-select: none;
}
.pin-key:hover { background: rgba(255,255,255,.15); }
.pin-key:active { transform: scale(.94); background: rgba(255,255,255,.22); }
.pin-key--clear { color: #94a3b8; font-size: 1rem; }
.pin-key--del { color: #94a3b8; }

/* Machine grid */
.machine-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1;
}
.machine-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 16px;
  color: white; cursor: pointer; transition: all .15s; text-align: left;
}
.machine-btn:hover { background: rgba(255,255,255,.15); border-color: var(--brand); }
.machine-btn:active { transform: scale(.97); }
.machine-btn .mcode { font-size: .75rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.machine-btn .mname { font-weight: 600; margin: 4px 0; }
.machine-btn .mtype { font-size: .8rem; color: #94a3b8; }
.machine-btn.has-open-job { border-color: #fca5a5; }
.machine-btn .job-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; margin-left: 4px; }

/* Choice screen (Machine Check vs Site Jobs) */
.choice-grid {
  display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center;
}
.choice-btn {
  position: relative;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: white; cursor: pointer; transition: all .15s; text-align: center;
}
.choice-btn:hover { background: rgba(255,255,255,.15); border-color: var(--brand); }
.choice-btn:active { transform: scale(.98); }
.choice-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 4px; }
.choice-label { font-size: 1.15rem; font-weight: 700; }
.choice-sub { font-size: .8rem; color: #94a3b8; }
.choice-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--danger); color: white; font-size: .75rem; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
}

/* Site jobs (operator) */
.site-jobs-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.site-job-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 16px;
}
.site-job-title { color: white; font-weight: 600; }
.site-job-desc { color: #94a3b8; font-size: .85rem; margin-top: 4px; }
.site-job-notes { margin-top: 12px; }
.site-job-actions { margin-top: 12px; display: flex; gap: 8px; }

/* Hours input */
.hours-input-row {
  background: rgba(255,255,255,.08); border-radius: var(--radius-lg);
  padding: 16px; margin: 16px 0; color: white;
}
.hours-input-row label { font-size: .875rem; color: #94a3b8; display: block; margin-bottom: 8px; }
.hours-input {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 10px 14px; color: white; font-size: 1.1rem;
}
.hours-input::placeholder { color: #64748b; }

/* Check sheet form */
.checksheet-form { display: flex; flex-direction: column; gap: 12px; }

.cs-question {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 16px;
  transition: border-color .15s;
}
.cs-question.fail { border-color: var(--danger); background: rgba(220,38,38,.1); }
.cs-question.pass { border-color: var(--success); }
.cs-question--active-job { opacity: 0.55; border-color: rgba(255,255,255,.06); background: rgba(255,255,255,.03); }
.cs-question--active-job .cs-q-label { color: rgba(255,255,255,.5); }
.cs-active-job-notice { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); border-radius: 6px; font-size: .8rem; color: rgba(255,255,255,.7); }
.cs-active-job-icon { font-size: 1rem; flex-shrink: 0; }
.cs-active-job-status { margin-left: auto; padding: 2px 8px; border-radius: 20px; background: rgba(251,191,36,.2); color: #fbbf24; font-size: .75rem; font-weight: 600; }
.cs-active-job-notice--inline { margin-bottom: 8px; font-size: .78rem; align-items: flex-start; }
.cs-active-job-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cs-active-job-detail { font-style: italic; color: rgba(255,255,255,.6); }
.cs-active-job-hint { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 1px; }
.cs-q-label { color: white; font-weight: 500; margin-bottom: 12px; display: block; }
.cs-q-required { color: #fca5a5; margin-left: 4px; }

/* Pass/Fail toggle */
.pf-toggle { display: flex; gap: 8px; }
.pf-btn {
  flex: 1; padding: 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: white; cursor: pointer; font-weight: 600;
  transition: all .15s;
}
.pf-btn.pass-btn.selected { background: var(--success); border-color: var(--success); }
.pf-btn.fail-btn.selected { background: var(--danger); border-color: var(--danger); }
.pf-btn:not(.selected):hover { background: rgba(255,255,255,.1); }

/* Yes/No toggle */
.yn-toggle { display: flex; gap: 8px; }
.yn-btn {
  flex: 1; padding: 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: white; cursor: pointer; font-weight: 600;
  transition: all .15s;
}
.yn-btn.yes-btn.selected { background: var(--brand); border-color: var(--brand); }
.yn-btn.no-btn.selected { background: var(--warning); border-color: var(--warning); }

/* Numeric input */
.cs-numeric {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 12px 14px; color: white; font-size: 1rem;
}
.cs-numeric::placeholder { color: #64748b; }

/* Free text */
.cs-text {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 12px 14px; color: white; font-size: .9rem;
  resize: vertical; min-height: 80px;
}

/* Fail note */
.fail-note {
  margin-top: 8px;
}
.fail-note-input {
  width: 100%; background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.4);
  border-radius: var(--radius); padding: 10px 14px; color: white; font-size: .875rem;
  resize: vertical; min-height: 64px;
}
.fail-note-input::placeholder { color: #f87171; }

.checksheet-actions { margin-top: 24px; }

/* Success screen */
.success-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; gap: 16px; padding: 32px;
}
.success-icon svg { width: 80px; height: 80px; }
.success-screen h2 { color: white; font-size: 1.5rem; font-weight: 700; }
.success-screen p { color: #94a3b8; text-align: center; }
.job-notice {
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.4);
  border-radius: var(--radius-lg); padding: 12px 20px; text-align: center; color: white;
}
.job-notice strong { display: block; margin-bottom: 4px; }
.job-notice span { color: #93c5fd; font-size: .875rem; }
.success-ref {
  color: #94a3b8; font-size: .8rem; letter-spacing: .03em;
}
.success-ref strong { color: white; }
.offline-pending {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4);
  border-radius: var(--radius-lg); padding: 14px 16px;
  color: white; font-size: .875rem; text-align: left; max-width: 320px;
}
.offline-pending-icon { font-size: 1.4rem; flex-shrink: 0; }
.offline-pending strong { display: block; margin-bottom: 4px; }
.offline-pending p { color: #fde68a; margin: 0; font-size: .8rem; }

/* ─────────────────────────────────────────────────────────
   STAFF VIEW (Fitter + Management)
   ───────────────────────────────────────────────────────── */

#view-staff { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: #153C2A; color: white;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 175; transition: transform .25s;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700; font-size: .95rem;
}
.sidebar-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.sidebar-icon-img { width: 32px; height: 32px; flex-shrink: 0; mix-blend-mode: luminosity; opacity: .9; }

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.user-name { font-weight: 600; font-size: .875rem; }
.user-role { font-size: .75rem; color: #94a3b8; }

.sidebar-nav { list-style: none; flex: 1; padding: 8px 0; overflow-y: auto; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: #94a3b8; font-size: .875rem; font-weight: 500;
  border-radius: 6px; margin: 1px 8px; transition: all .15s; cursor: pointer;
}
.sidebar-nav li a:hover { background: rgba(255,255,255,.07); color: white; }
.sidebar-nav li a.active { background: var(--brand); color: white; }
.sidebar-nav li a .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }

/* Mobile top bar (hidden on desktop) */
.topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #153C2A; color: white;
  align-items: center; padding: 0 16px; height: 56px;
  gap: 12px; box-shadow: var(--shadow);
}

/* Sidebar backdrop overlay for mobile */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.45);
}
.topbar-menu { background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; }
.topbar-title { flex: 1; font-weight: 600; font-size: 1rem; }
.topbar-status { font-size: .75rem; color: #94a3b8; }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w); flex: 1; padding: 32px;
  max-width: 1280px;
}

/* Page sections */
.page { display: block; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-date { color: var(--text-muted); font-size: .875rem; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-description { color: var(--text-muted); margin-bottom: 20px; max-width: 640px; }

/* Stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--border);
}
.stat-card--urgent { border-left-color: var(--danger); }
.stat-card--open { border-left-color: var(--brand); }
.stat-card--due { border-left-color: var(--warning); }
.stat-card--compliance { border-left-color: var(--success); }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-card--urgent .stat-value { color: var(--danger); }
.stat-card--open .stat-value { color: var(--brand); }
.stat-card--due .stat-value { color: var(--warning); }
.stat-card--compliance .stat-value { color: var(--success); }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* Dashboard grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* Cards */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px;
}
.card:last-child { margin-bottom: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h3 { font-size: 1rem; font-weight: 600; }
.card-link { font-size: .8rem; color: var(--brand); }
.card-header-standalone { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-header-standalone h3 { font-size: 1.1rem; font-weight: 600; }
.description-readonly { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: .9rem; line-height: 1.5; color: var(--text); min-height: 48px; white-space: pre-wrap; }
.upcoming-service-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.upcoming-service-row:last-child { border-bottom: none; }
.upcoming-service-row:hover { background: var(--surface); margin: 0 -4px; padding-left: 4px; padding-right: 4px; border-radius: var(--radius); }
.upcoming-service-info { display: flex; flex-direction: column; gap: 2px; }
.table-toolbar { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.show-inactive-label { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-muted); cursor: pointer; user-select: none; }
.show-inactive-label input[type="checkbox"] { cursor: pointer; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  text-align: left; padding: 8px 12px; font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.table-empty { text-align: center; color: var(--text-muted); padding: 24px !important; }

/* Filters */
.filter-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-select {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; font-size: .875rem; cursor: pointer;
}
.filter-input {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; font-size: .875rem; flex: 1; min-width: 160px;
}
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,158,91,.15); }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.badge-urgent { background: #fee2e2; color: var(--danger); }
.badge-high { background: #ffedd5; color: #c2410c; }
.badge-medium { background: #fef9c3; color: #854d0e; }
.badge-low { background: #EAF3E5; color: var(--success); }
.badge-open { background: var(--brand-light); color: var(--brand-dark); }
.badge-progress { background: #fef9c3; color: #854d0e; }
.badge-parts { background: #f3e8ff; color: #7e22ce; }
.badge-completed { background: #E3F2E9; color: #238049; }
.badge-cancelled { background: #f1f5f9; color: var(--text-muted); }
.badge-active { background: #E3F2E9; color: #238049; }
.badge-inactive { background: #fef9c3; color: #854d0e; }
.badge-decommissioned { background: #f1f5f9; color: var(--text-muted); }
.badge-locked { background: #fef3c7; color: #b45309; }

/* Warning button */
.btn-warning { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 6px 12px; cursor: pointer; font-size: .8rem; font-weight: 500; }
.btn-warning:hover { background: #fde68a; }

/* Admin lockout alerts */
.lockout-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 10px 14px; font-size: .875rem; color: #991b1b; }
.lockout-warning { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 10px 14px; font-size: .875rem; color: #92400e; }
.pin-key:disabled { opacity: .35; cursor: not-allowed; }

/* Detail grid */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.detail-main { margin-bottom: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.detail-side .card { margin-bottom: 0; }
.detail-side h3 { font-size: .95rem; font-weight: 600; margin-bottom: 12px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; font-size: .9rem; background: var(--surface); color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,158,91,.15);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.detail-main h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; font-size: .8rem; color: var(--text-muted); }

/* Work log */
.work-log { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; margin-bottom: 12px; }
.work-log-item { font-size: .8rem; }
.work-log-item .log-time { color: var(--text-muted); }
.work-log-item .log-note { margin-top: 2px; }
.work-log-input { display: flex; flex-direction: column; gap: 6px; }
.work-log-input textarea { resize: none; }

/* Checksheet preview */
.checksheet-preview { font-size: .8rem; }
.cs-preview-item { padding: 6px 0; border-bottom: 1px solid var(--border); }
.cs-preview-item:last-child { border: none; }
.cs-preview-q { color: var(--text-muted); }
.cs-preview-a { font-weight: 500; }
.cs-preview-a.fail { color: var(--danger); }
.cs-preview-a.pass { color: var(--success); }

/* History list */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item { font-size: .8rem; padding: 8px; background: var(--surface2); border-radius: var(--radius); }
.history-item .h-date { color: var(--text-muted); font-size: .75rem; }
.history-item .h-event { font-weight: 600; margin: 2px 0; }
.history-item .h-detail { color: var(--text-muted); }

/* History / check sheet detail modal */
.hist-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.hist-detail-item { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.hist-detail-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.hist-detail-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.hist-detail-section { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.hist-detail-body { font-size: .9rem; color: var(--text); line-height: 1.6; white-space: pre-wrap; background: var(--surface2); border-radius: var(--radius); padding: 10px 12px; margin-top: 6px; }

/* Check sheet detail rows */
.cs-detail-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.cs-detail-row:last-child { border: none; }
.cs-detail-q { color: var(--text-muted); }
.cs-detail-a { font-weight: 500; text-align: right; }

/* Work log in history modal */
.hist-worklog { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hist-worklog-entry { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.hist-worklog-time { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.hist-worklog-note { font-size: .9rem; color: var(--text); line-height: 1.5; }

/* Clickable table rows */
.clickable-row:hover { background: var(--surface2); }

/* Parts list */
#parts-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.part-row { display: flex; gap: 6px; align-items: center; }
.part-row input { flex: 1; }
.part-row input.qty { width: 70px; flex: none; }
.part-row input.cost { width: 90px; flex: none; }

/* Upcoming list */
.upcoming-list { display: flex; flex-direction: column; gap: 8px; }
.upcoming-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.upcoming-item:last-child { border: none; }
.upcoming-item .u-name { font-weight: 500; }
.upcoming-item .u-machine { color: var(--text-muted); font-size: .8rem; }
.upcoming-item .u-due { font-size: .8rem; }
.upcoming-item .u-due.overdue { color: var(--danger); font-weight: 600; }

/* Tabs */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Templates grid */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.template-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 16px;
  box-shadow: var(--shadow);
}
.template-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.template-card h4 { font-weight: 600; margin-bottom: 3px; font-size: .95rem; }
.template-card p { font-size: .78rem; color: var(--text-muted); margin: 0; }
.tpl-freq-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.tpl-preview-section { margin-bottom: 10px; }
.tpl-preview-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 4px; }
.tpl-preview-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; padding: 3px 0; border-bottom: 1px solid var(--border); }
.tpl-preview-item:last-child { border-bottom: none; }
.tpl-preview-type { font-size: .7rem; background: var(--border); border-radius: 3px; padding: 1px 4px; color: var(--text-muted); flex-shrink: 0; font-family: var(--mono); }
.tpl-pi-daily .tpl-preview-type { background: #E3F2E9; color: #153C2A; }
.tpl-pi-weekly .tpl-preview-type { background: #dbeafe; color: #1d4ed8; }
.tpl-preview-opt { font-size: .7rem; color: var(--text-muted); margin-left: auto; background: var(--border); padding: 1px 4px; border-radius: 3px; flex-shrink: 0; }
.tpl-preview-more { font-size: .75rem; color: var(--text-muted); padding: 3px 0; font-style: italic; }
.template-card-footer { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.btn-danger-ghost { color: #dc2626; }
.btn-danger-ghost:hover { background: #fef2f2; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius); border: none;
  font-weight: 600; font-size: .875rem; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-block { width: 100%; }

/* In dark context */
#view-operator .btn-primary { background: var(--brand); color: white; }
#view-operator .btn-ghost { color: #94a3b8; border-color: rgba(255,255,255,.2); }
#view-operator .btn-ghost:hover { color: white; background: rgba(255,255,255,.1); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; z-index: 500; padding: 16px;
}
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); max-height: 90vh; display: flex; flex-direction: column; }
.modal--wide { max-width: 780px; }
.modal-body { overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 0 20px 20px; }

/* ── Toast ───────────────────────────────────────────────── */
/* "Save your changes?" dialog shown above a modal (App.askUnsaved) */
.unsaved-overlay { position: fixed; inset: 0; background: rgba(21,39,30,.45); display: flex; align-items: center; justify-content: center; z-index: 550; padding: 16px; }
.unsaved-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px; width: 100%; max-width: 380px; }
.unsaved-card h3 { margin: 0 0 8px; font-size: 17px; }
.unsaved-card p { margin: 0 0 18px; font-size: 14px; color: var(--text-muted); }
.unsaved-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1e293b; color: white; padding: 12px 16px; border-radius: var(--radius-lg);
  font-size: .875rem; box-shadow: var(--shadow-lg); max-width: 320px;
  animation: slideIn .2s ease-out;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .topbar { display: flex; }
  .main-content { margin-left: 0; padding: 72px 16px 24px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .page-header { margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .filter-row { flex-direction: column; }
  .filter-input { min-width: unset; }
}

/* ── Template builder ────────────────────────────────────── */
.tpl-builder-section { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tpl-builder-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-weight: 600; font-size: .9rem; }
.tpl-builder-daily { background: #EAF3E5; color: #153C2A; border-bottom: 1px solid #CDE6D3; }
.tpl-builder-weekly { background: #eff6ff; color: #1d4ed8; border-bottom: 1px solid #bfdbfe; }
.tpl-q-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 48px; }
.tpl-empty-hint { color: var(--text-muted); font-size: .8rem; text-align: center; padding: 12px 0; margin: 0; }
.tpl-q-grab { cursor: grab; color: var(--text-muted); font-size: 1rem; line-height: 1; user-select: none; flex-shrink: 0; padding: 0 2px; touch-action: none; }
.tpl-q-grab:active { cursor: grabbing; }
.tpl-q-row.tpl-q-dragging { opacity: .5; border-color: var(--accent); background: var(--surface); }
.tpl-q-row { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; }
.tpl-q-row .tpl-q-text { flex: 1; border: none; background: transparent; font-size: .875rem; outline: none; }
.tpl-q-row .tpl-q-text:focus { background: var(--surface); border-radius: 4px; padding: 2px 4px; }
.tpl-q-row .tpl-q-type { font-size: .8rem; border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; background: var(--surface); color: var(--text); }
.tpl-q-req-label { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--text-muted); white-space: nowrap; cursor: pointer; }
.tpl-q-del { padding: 2px 8px; color: var(--text-muted); flex-shrink: 0; }
.freq-badge { display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: .75rem; font-weight: 500; }
.freq-daily { background: #E3F2E9; color: #153C2A; }
.freq-weekly { background: #dbeafe; color: #1d4ed8; }

/* ── Check sheet frequency sections ──────────────────────── */
.cs-freq-header { padding: 10px 14px; font-weight: 600; font-size: .875rem; border-radius: var(--radius); margin: 16px 0 8px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.cs-freq-daily { background: #EAF3E5; color: #153C2A; }
.cs-freq-weekly { background: #eff6ff; color: #1d4ed8; }
.cs-freq-weekly-urgent { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.cs-freq-note { font-size: .78rem; font-weight: 400; opacity: .85; }
.cs-freq-note-urgent { font-weight: 600; opacity: 1; }
.cs-weekly-complete { display: flex; align-items: flex-start; gap: 12px; background: #EAF3E5; border: 1px solid #CDE6D3; border-radius: var(--radius); padding: 14px; margin: 16px 0 8px; }
.cs-weekly-complete-icon { width: 32px; height: 32px; border-radius: 50%; background: #16a34a; color: white; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.cs-weekly-complete-date { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.cs-weekly-complete-items { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.cs-weekly-complete-items span { font-size: .8rem; color: var(--text-muted); }

/* ── Dashboard compliance ────────────────────────────────── */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.compliance-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.compliance-title { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.compliance-value { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; font-family: var(--mono); }
.compliance-of { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.compliance-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.compliance-bar { height: 6px; background: var(--border); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.compliance-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.compliance-fill-daily { background: #16a34a; }
.compliance-fill-weekly { background: #1d4ed8; }
.compliance-op-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.compliance-op-row:last-child { border-bottom: none; }
.compliance-op-count { font-weight: 600; color: var(--brand); }
.compliance-end-of-week { background: #fef3c7; border: 1px solid #fde68a; border-radius: var(--radius); padding: 10px 14px; font-size: .875rem; color: #92400e; margin-top: 12px; }

/* ── Compliance page ─────────────────────────────────────── */
.comp-filter-card { margin-bottom: 16px; }
.comp-filter-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.period-btn-group { display: flex; gap: 4px; flex-wrap: wrap; }
.period-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); font-size: .8rem; cursor: pointer; color: var(--text-muted); transition: all .15s; }
.period-btn:hover { border-color: var(--brand); color: var(--brand); }
.period-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.comp-range-label { font-size: .78rem; color: var(--text-muted); font-family: var(--mono); }
.comp-custom-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.comp-view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comp-view-btn { padding: 5px 14px; font-size: .8rem; border: none; background: transparent; cursor: pointer; color: var(--text-muted); }
.comp-view-btn.active { background: var(--brand); color: white; }
.comp-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.comp-pill-green { background: #E3F2E9; color: #153C2A; }
.comp-pill-amber { background: #fef3c7; color: #92400e; }
.comp-pill-red   { background: #fee2e2; color: #991b1b; }
.comp-empty { color: var(--text-muted); font-size: .875rem; padding: 16px 0; text-align: center; }


/* ── Session expired overlay ─────────────────────────────── */
.session-expired {
  position: fixed; inset: 0; background: rgba(21,42,34,.55);
  display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px;
}
.session-expired.hidden { display: none; }
.session-expired-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 34px; max-width: 380px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.session-expired-icon { font-size: 30px; margin-bottom: 10px; }
.session-expired-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.session-expired-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; }
.session-expired-card .btn { width: 100%; padding: 11px; font-size: .95rem; }


/* Issue / Description cell in the jobs tables — truncate long text, full on hover */
.job-desc-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: .85rem; }


/* ── Machines section sub-tabs (mirror .tab-btn, isolated from admin tabs) ── */
.mtab-btn {
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s;
}
.mtab-btn:hover { color: var(--text); }
.mtab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.machines-panel.hidden { display: none; }

/* ── Out-of-service toggle on job forms ── */
.oos-group { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--bg); }
.oos-toggle-label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.oos-toggle-label input { width: 16px; height: 16px; }
.oos-note { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ── Fleet Status board ── */
.fleet-status-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .fleet-status-grid { grid-template-columns: 1fr; } }
.fleet-col-head { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.fleet-count { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.fleet-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fleet-dot.green { background: #2E9E5B; } .fleet-dot.amber { background: #C0871C; } .fleet-dot.red { background: #CC5540; }
.fleet-cards { display: flex; flex-direction: column; gap: 8px; }
.fleet-card { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: 10px 12px; background: var(--surface); }
.fleet-card.green { border-left-color: #2E9E5B; }
.fleet-card.amber { border-left-color: #C0871C; background: #FBF4E6; }
.fleet-card.red   { border-left-color: #CC5540; background: #FBEAE6; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fleet-card.clickable, .fleet-card .clickable { cursor: pointer; }
.fleet-card.clickable:hover, .fleet-card .clickable:hover { filter: brightness(.98); }
.fleet-card-name { font-weight: 600; font-size: .9rem; }
.fleet-card-code { font-weight: 400; color: var(--text-muted); font-size: .8rem; }
.fleet-card-sub { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.fleet-card.red .fleet-card-top { flex: 1; }
.fleet-card.red .fleet-return { flex-shrink: 0; white-space: nowrap; }

/* ── Service calendar overlay ── */
.cal-overlay { position: fixed; inset: 0; background: rgba(21,39,30,.55); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; z-index: 1000; overflow-y: auto; }
.cal-overlay.hidden { display: none; }
.cal-modal { background: var(--surface); border-radius: var(--radius-lg, 14px); width: 100%; max-width: 860px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 18px 20px 22px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h3 { margin: 0; min-width: 190px; text-align: center; font-size: 1.05rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-size: .76rem; color: var(--text-muted); }
.cal-leg { display: inline-flex; align-items: center; gap: 5px; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 600; color: var(--text-muted); padding: 2px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.cal-cell { min-height: 66px; border: 1px solid var(--border); border-radius: 8px; padding: 4px 5px; background: var(--surface); position: relative; }
.cal-cell.cal-empty { border: none; background: transparent; }
.cal-cell.cal-has { cursor: pointer; }
.cal-cell.cal-has:hover { border-color: var(--brand); background: var(--bg); }
.cal-cell.cal-today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-cell.cal-sel { border-color: var(--brand); background: var(--grass-tint, #E3F2E9); }
.cal-num { font-size: .78rem; font-weight: 600; color: var(--text); }
.cal-cell.cal-empty .cal-num { display: none; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; align-items: center; }
.cal-more { font-size: .66rem; color: var(--text-muted); font-weight: 600; }
.cal-day-detail { margin-top: 16px; }
.cal-detail-head { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cal-job { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--border); cursor: pointer; }
.cal-job:hover { background: var(--bg); }
.cal-job-main { flex: 1; min-width: 0; }
.cal-job-title { font-size: .85rem; }
.cal-job-sub { font-size: .76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-job-go { font-size: .76rem; color: var(--brand); font-weight: 600; flex-shrink: 0; }
@media (max-width: 620px) { .cal-cell { min-height: 54px; } .cal-nav h3 { min-width: 130px; font-size: .95rem; } }

/* ══ Console refresh (24 Sep 2026) ═════════════════════════════════════════
   Brings the fitter/manager console in line with the redesigned Management
   system: page headings, stat cards, cards, tables, tabs, numbers, sidebar
   icons. Styling only; the operator PIN kiosk's layout and touch targets are
   left as they are. One block at the end so it is easy to review/back out. */

/* Page headings */
.page-header h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.3px; color: var(--brand-dark); }
.page-description { font-size: .875rem; line-height: 1.55; }

/* Sidebar icons */
.sidebar-nav li a .nav-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.sidebar-nav li a .nav-icon svg { display: block; }

/* Stat cards: white card, bold label, big number; colour kept on the number
   (it signals status: urgent / open / due / compliance), no coloured edge */
.stat-card { border-left: 0; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(21,60,42,.05), 0 12px 28px -18px rgba(21,60,42,.20); display: flex; flex-direction: column-reverse; gap: 8px; justify-content: flex-end; }
.stat-value { font-size: 2.1rem; letter-spacing: -0.6px; margin-bottom: 0; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .82rem; font-weight: 700; color: var(--text); }

/* Cards */
.card { border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(21,60,42,.05), 0 12px 28px -18px rgba(21,60,42,.20); }
.card-header h3, .card-header-standalone h3 { font-weight: 800; color: var(--brand-dark); }

/* Tables */
.data-table { font-variant-numeric: tabular-nums; }
.data-table th { font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: #6B7B71; padding: 10px 12px 8px; }
.data-table td { border-bottom-color: #EEF2EA; }
.data-table tr:hover td { background: #F6F9F4; }

/* Filters */
.filter-select, .filter-input { border-radius: 8px; min-height: 38px; }

/* Tabs → segmented control (history, admin, machines sub-tabs) */
.tab-bar { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab-btn, .mtab-btn { border: 0; border-radius: 7px; padding: 0 16px; height: 36px; margin: 0; font-weight: 600; color: var(--text-muted); }
.tab-btn:hover, .mtab-btn:hover { color: var(--text); background: var(--surface2); }
.tab-btn.active, .mtab-btn.active { background: var(--brand-dark); color: #fff; border: 0; }

/* Numbers in Figtree (even-width digits) instead of the monospace font */
.compliance-value, .comp-range-label { font-family: inherit; font-variant-numeric: tabular-nums; }
.compliance-value { color: var(--brand-dark); letter-spacing: -0.4px; }

/* ══ Operator refresh: "Forest Glass" (24 Sep 2026) ═════════════════════════
   Option A from the operator design options. Look only: the screen order,
   button positions and PIN behaviour are unchanged. Scoped to #view-operator. */
#view-operator {
  --op-text: #F1F7F2; --op-muted: #9FBBA9; --op-accent: #46C47E; --op-accent-ink: #062014;
  --op-glass: rgba(255,255,255,.06); --op-glass-line: rgba(255,255,255,.10); --op-fail: #F0605A;
  background:
    radial-gradient(120% 55% at 85% 0%, rgba(62,201,120,.26) 0%, rgba(62,201,120,0) 55%),
    linear-gradient(170deg, #0F2A1D 0%, #0A1B13 100%);
  background-attachment: fixed;
  color: var(--op-text);
}
/* Muted text: green-grey instead of blue-grey (easier to read on green) */
#view-operator .screen-header p, #view-operator .screen-header.branded p, #view-operator .header-row,
#view-operator .machine-btn .mcode, #view-operator .machine-btn .mtype, #view-operator .choice-sub,
#view-operator .site-job-desc, #view-operator .hours-input-row label, #view-operator .success-screen p,
#view-operator .success-ref, #view-operator .pin-key--clear, #view-operator .pin-key--del { color: var(--op-muted); }
#view-operator .screen-header h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.3px; }

/* Glass cards */
#view-operator .operator-btn, #view-operator .machine-btn, #view-operator .choice-btn,
#view-operator .site-job-card, #view-operator .cs-question, #view-operator .hours-input-row {
  background: var(--op-glass); border: 1px solid var(--op-glass-line); border-radius: 20px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#view-operator .operator-btn:hover, #view-operator .machine-btn:hover, #view-operator .choice-btn:hover {
  background: rgba(255,255,255,.10); border-color: rgba(70,196,126,.55);
}
#view-operator .operator-btn .avatar { background: var(--op-accent); color: var(--op-accent-ink); font-weight: 800; }
#view-operator .machine-btn .mcode { color: #7FDCA6; font-weight: 800; letter-spacing: .1em; }
#view-operator .machine-btn .mname { font-size: 1.02rem; font-weight: 700; }
#view-operator .machine-btn.has-open-job { border-color: var(--op-fail); box-shadow: inset 3px 0 0 var(--op-fail); }
#view-operator .machine-btn .job-dot { background: var(--op-fail); width: 9px; height: 9px; }

/* Back button */
#view-operator .btn-back { width: 40px; height: 40px; border-radius: 12px; background: var(--op-glass); border: 1px solid var(--op-glass-line); }
#view-operator .btn-back:hover { background: rgba(255,255,255,.14); }

/* PIN: glowing dots, round phone-style keys */
#view-operator .dot { border-color: rgba(255,255,255,.28); }
#view-operator .dot.filled { background: var(--op-accent); border-color: var(--op-accent); box-shadow: 0 0 12px rgba(70,196,126,.8); }
#view-operator .pin-error { color: #FFB1AD; }
#view-operator .pin-pad { justify-items: center; row-gap: 14px; }
#view-operator .pin-key {
  width: min(84px, 100%); aspect-ratio: 1; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid var(--op-glass-line);
  font-size: 1.75rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
#view-operator .pin-key:hover { background: rgba(255,255,255,.13); }
#view-operator .pin-key:active { background: rgba(70,196,126,.30); border-color: var(--op-accent); }
#view-operator .pin-key--clear, #view-operator .pin-key--del { background: transparent; border-color: transparent; font-size: .95rem; font-weight: 700; }
#view-operator .pin-key:disabled { opacity: .45; }

/* Choice screen: icon tile on the left, text on the right */
#view-operator .choice-btn { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; text-align: left; padding: 22px 20px; }
#view-operator .choice-icon { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 16px; margin: 0;
  background: rgba(70,196,126,.16); color: #7FDCA6; display: flex; align-items: center; justify-content: center; }
#view-operator .choice-label { align-self: end; font-size: 1.15rem; font-weight: 800; }
#view-operator .choice-sub { align-self: start; }
#view-operator .choice-badge { background: var(--op-fail); height: 24px; min-width: 24px; border-radius: 12px; }

/* Check sheet */
#view-operator .cs-question.fail { border-color: var(--op-fail); background: rgba(240,96,90,.08); box-shadow: inset 3px 0 0 var(--op-fail); }
#view-operator .cs-question.pass { border-color: rgba(70,196,126,.5); }
#view-operator .cs-q-label { font-weight: 700; }
#view-operator .pf-btn, #view-operator .yn-btn { min-height: 48px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.16); font-weight: 800; }
#view-operator .pf-btn.pass-btn.selected, #view-operator .yn-btn.yes-btn.selected { background: var(--op-accent); border-color: var(--op-accent); color: var(--op-accent-ink); }
#view-operator .pf-btn.fail-btn.selected { background: var(--op-fail); border-color: var(--op-fail); color: #fff; }
#view-operator .hours-input, #view-operator .cs-numeric, #view-operator .cs-text {
  border-radius: 14px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); font-variant-numeric: tabular-nums;
}
#view-operator .hours-input, #view-operator .cs-numeric { font-weight: 700; }
#view-operator .fail-note-input { border-radius: 12px; background: rgba(240,96,90,.12); border-color: rgba(240,96,90,.35); }

/* Buttons */
#view-operator .btn-primary { background: var(--op-accent); color: var(--op-accent-ink); font-weight: 800; box-shadow: 0 10px 24px -8px rgba(70,196,126,.6); }
#view-operator .btn-primary:hover { background: #57D08D; }
#view-operator .btn-ghost { color: var(--op-muted); border-color: rgba(255,255,255,.18); }
/* Logo: light version (white wordmark, green crescent, transparent background) */
#view-operator .landing-logo { mix-blend-mode: normal; opacity: 1; width: 180px; margin-bottom: 10px; }


/* ══ Machine pictures, Needs review, Fleet Jobs (25 Sep 2026) ════════════════ */

/* Machine picture tile (MachineIcons.tile) */
.machine-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 64px; height: 44px; border-radius: 12px; background: var(--brand-light); color: var(--brand-dark); }
.machine-icon svg { width: 54px; height: 34px; }
.machine-icon.sm { width: 44px; height: 30px; border-radius: 8px; }
.machine-icon.sm svg { width: 38px; height: 24px; }
.machine-icon.xs { width: 30px; height: 20px; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
.machine-icon.xs svg { width: 26px; height: 16px; }
.machine-icon.lg { width: 84px; height: 56px; border-radius: 14px; }
.machine-icon.lg svg { width: 72px; height: 45px; }
.type-cell { display: inline-flex; align-items: center; gap: 10px; }

/* Machine form: type picker */
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer;
  color: var(--brand-dark); font: inherit; font-size: .78rem; font-weight: 700; }
.type-tile svg { width: 60px; height: 38px; }
.type-tile:hover { border-color: var(--brand); background: #F6F9F4; }
.type-tile.selected { border-color: var(--brand-dark); background: var(--brand-light); box-shadow: inset 0 0 0 1px var(--brand-dark); }
.type-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.type-picker-hint { font-size: .76rem; color: var(--text-muted); margin-top: 6px; }

/* Operator kiosk machine buttons */
#view-operator .machine-btn .mpic { color: #7FDCA6; margin-bottom: 6px; }
#view-operator .machine-btn .mpic svg { width: 64px; height: 40px; display: block; }

/* Dashboard: Needs review */
.review-card { margin-bottom: 16px; border-color: #F3C9A6; }
.review-card .card-header { align-items: flex-start; gap: 12px; }
.review-count { display: inline-flex; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 11px; margin-left: 6px;
  align-items: center; justify-content: center; font-size: .78rem; background: #E07B2E; color: #fff; vertical-align: 2px; }
.review-count.zero { background: var(--brand-light); color: var(--brand-dark); }
.review-sub { font-size: .8rem; color: var(--text-muted); margin-top: 4px; max-width: 640px; }
.review-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #EEF2EA; flex-wrap: wrap; }
.review-row.saving { opacity: .5; }
.review-main { flex: 1; min-width: 220px; }
.review-title { font-weight: 700; color: var(--text); text-decoration: none; }
.review-title:hover { text-decoration: underline; }
.review-meta { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.review-oos { color: #D4403A; }
.review-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.review-btn { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; color: var(--text-muted); }
.review-btn:hover:not(:disabled) { background: #F6F9F4; }
.review-btn.p-urgent { color: #B8322D; border-color: #F0B8B5; }
.review-btn.p-high { color: #B25E1C; border-color: #F3C9A6; }
.review-btn.p-medium { color: #8A6A12; border-color: #EBD9A3; }
.review-btn.p-low { color: #5A6E61; }
.review-btn.current { box-shadow: inset 0 0 0 1px currentColor; }
.review-btn.p-deny.confirm { background: #D4403A; border-color: #D4403A; color: #fff; }
.review-empty { padding: 14px 0 4px; color: var(--text-muted); font-size: .88rem; }
.review-more { margin-top: 8px; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; }

/* Fleet Jobs page */
.fj-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fj-seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.fj-seg button { border: 0; background: none; font: inherit; height: 34px; padding: 0 14px; border-radius: 7px; font-size: .84rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.fj-seg button.on { background: var(--brand-dark); color: #fff; }
.fj-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.fj-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(21,60,42,.05), 0 12px 28px -18px rgba(21,60,42,.20); }
.fj-kpi .l { font-size: .78rem; font-weight: 700; }
.fj-kpi .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.6px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fj-kpi .s { font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.fj-kpi.rev { border-color: #F3C9A6; background: linear-gradient(180deg, #FFF8F2, #fff); }
.fj-kpi.rev .v { color: #E07B2E; } .fj-kpi.urg .v, .fj-kpi.oor .v { color: #D4403A; } .fj-kpi.parts .v { color: #7A5AB5; }
.fj-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.fj-main { padding: 0; overflow: hidden; }
.fj-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 16px 6px; }
.fj-chip { font: inherit; font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.fj-chip.on { background: var(--brand-light); border-color: #9FD2B3; color: var(--brand-dark); }
.fj-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 8px 16px 16px; }
.fj-m { border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px 12px; cursor: pointer; background: var(--surface); transition: transform .15s, box-shadow .15s, border-color .15s; }
.fj-m:hover { border-color: #9FD2B3; transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(21,60,42,.4); }
.fj-m:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fj-m.sel { border-color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand-dark); }
.fj-m.oor { background: linear-gradient(180deg, #FDF0EF, #fff 55%); border-color: #F0B8B5; }
.fj-m.oor .machine-icon { background: #FBE1DF; color: #8E231F; }
.fj-top { display: flex; gap: 10px; align-items: center; }
.fj-tx { flex: 1; min-width: 0; }
.fj-count .fj-pill { margin-left: auto; align-self: center; }
.fj-code { font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fj-nm { font-weight: 800; font-size: .96rem; line-height: 1.25; }
.fj-ty { font-size: .74rem; color: var(--text-muted); }
.fj-pill { font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 20px; white-space: nowrap; letter-spacing: .02em; }
.fj-pill.oor { background: #D4403A; color: #fff; } .fj-pill.def { background: #FDF1E2; color: #9A4F12; } .fj-pill.ok { background: var(--brand-light); color: #1E6B40; }
.fj-count { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 6px; }
.fj-count b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; }
.fj-count span { font-size: .76rem; color: var(--text-muted); }
.fj-stack { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #EEF2EA; gap: 2px; }
.fj-stack i { display: block; }
.fj-legend { display: flex; gap: 10px; font-size: .7rem; color: var(--text-muted); margin-top: 6px; flex-wrap: wrap; }
.fj-legend em { font-style: normal; font-weight: 800; color: var(--text); }
.fj-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; vertical-align: 1px; }
.fj-strip { display: flex; gap: 2px; margin-top: 10px; min-height: 6px; }
.fj-strip i { flex: 1; height: 6px; border-radius: 2px; background: #BFE2CC; }
.fj-strip i.f { background: #D4403A; } .fj-strip i.n { background: #EEF2EA; }
.fj-strip.loading { background: #EEF2EA; border-radius: 2px; height: 6px; }
.fj-striplab { font-size: .62rem; color: #8A968D; margin-top: 3px; display: flex; justify-content: space-between; }
.fj-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; color: var(--text-muted); margin-top: 10px; padding-top: 9px; border-top: 1px solid #EEF2EA; }
.fj-meta b { color: var(--text); }
.fj-gridwrap { overflow-x: auto; padding: 4px 8px 12px; }
.fj-matrix td, .fj-matrix th { text-align: center; }
.fj-matrix td:first-child, .fj-matrix th:first-child { text-align: left; }
.fj-matrix tr { cursor: pointer; }
.fj-cell { display: inline-flex; min-width: 34px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; font-weight: 800; }
.fj-cell.empty { color: #C5CFC8; }
.fj-drawer { position: sticky; top: 16px; padding: 0; overflow: hidden; }
.fj-dh { padding: 16px 16px 12px; border-bottom: 1px solid #EEF2EA; }
.fj-hrow { display: flex; gap: 12px; align-items: center; }
.fj-dh h2 { font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); margin-top: 2px; }
.fj-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--text-muted); }
.fj-sec { padding: 12px 16px 4px; }
.fj-sec h4 { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B7B71; margin-bottom: 8px; display: flex; justify-content: space-between; }
.fj-job { display: flex; gap: 10px; padding: 9px 10px; border: 1px solid #EEF2EA; border-radius: 10px; margin-bottom: 7px; align-items: flex-start; cursor: pointer; }
.fj-job:hover { border-color: #9FD2B3; background: #F9FBF8; }
.fj-job:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fj-bar { width: 4px; align-self: stretch; border-radius: 3px; flex-shrink: 0; }
.fj-jt { flex: 1; min-width: 0; }
.fj-jt .t { font-weight: 700; font-size: .85rem; }
.fj-jt .d { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.fj-jr { text-align: right; font-size: .7rem; color: var(--text-muted); white-space: nowrap; }
.fj-tag { display: inline-block; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: #EEF2EA; color: var(--text-muted); margin-right: 5px; letter-spacing: .03em; }
.fj-tag.cs { background: #FDF1E2; color: #9A4F12; }
.fj-tl { display: flex; gap: 3px; margin-bottom: 10px; }
.fj-tl div { flex: 1; text-align: center; font-size: .6rem; color: #8A968D; }
.fj-tl i { display: block; height: 24px; border-radius: 6px; background: #EEF2EA; margin-top: 3px; font-style: normal; font-size: .7rem; font-weight: 800; color: #fff; line-height: 24px; }
.fj-tl i.on { background: #3469A8; }
.fj-btns { display: flex; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; }
.fj-empty { padding: 24px 16px; color: var(--text-muted); font-size: .88rem; }
@media (max-width: 1100px) {
  .fj-layout { grid-template-columns: 1fr; }
  .fj-drawer { position: static; }
  .fj-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .fj-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fj-kpi .v { font-size: 1.6rem; }
  .fj-fleet { grid-template-columns: 1fr; padding: 8px 12px 12px; }
  .type-picker { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .fj-m { transition: none; } .fj-m:hover { transform: none; } }
.fj-sel { padding: 10px 16px; background: #F4F8F2; border-bottom: 1px solid #EEF2EA; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B7B71; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fj-sel span { text-transform: none; letter-spacing: 0; font-weight: 500; }
@media (max-width: 1100px) { .fj-sel span::after { content: ''; } }
/* Needs review: equal-width buttons so every row lines up; current priority
   shown as a filled button (and "currently X" in the text), not a new label. */
.review-actions { flex-shrink: 0; }
.review-btn { min-width: 70px; }
.review-btn.p-deny { min-width: 96px; }
.review-btn.current { box-shadow: none; }
.review-btn.p-urgent.current { background: #FBE1DF; }
.review-btn.p-high.current { background: #FCE9D8; }
.review-btn.p-medium.current { background: #F8EFD2; }
.review-btn.p-low.current { background: #EEF2EA; }
.review-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Daily-check toggle (25 Sep 2026) */
.check-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.no-check-badge { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: #EEF2EA; color: var(--text-muted); vertical-align: 1px; }
.fj-strip.none { height: 6px; border-radius: 2px; background: repeating-linear-gradient(90deg, #EEF2EA 0 6px, transparent 6px 10px); }

