:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f7f8f8;
  --surface: #ffffff;
  --surface-subtle: #fbfbfa;
  --surface-muted: #f4f5f5;
  --text: #18181b;
  --text-soft: #3f3f46;
  --muted: #71717a;
  --muted-2: #8a8f8c;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #16a36b;
  --accent-strong: #0f8f5f;
  --accent-ink: #064b35;
  --accent-soft: #ecf9f3;
  --accent-soft-2: #ddf4e8;
  --accent-edge: rgba(36, 180, 126, 0.24);
  --danger: #dc2626;
  --danger-strong: #b91c1c;
  --danger-soft: #fff1f2;
  --danger-border: #fecaca;
  --priority: #c58b00;
  --priority-ink: #6e4d00;
  --priority-soft: #fff7dc;
  --info: #2563eb;
  --info-ink: #1e3a8a;
  --info-soft: #eff6ff;
  --info-soft-2: #dbeafe;
  --info-border: #bfdbfe;
  --focus: rgba(22, 163, 107, 0.18);
  --shadow-soft: 0 1px 2px rgba(24, 24, 27, 0.04);
  --radius: 8px;
  --radius-sm: 6px;
  --sidebar-w: 272px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skipLink { position: fixed; top: -90px; left: 14px; z-index: 6000; padding: 10px 14px; color: #fff; background: var(--text); border-radius: 8px; }
.skipLink:focus { top: 14px; }

/* App frame */
.appShell { display: flex; min-height: 100vh; background: var(--surface); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.brandMark { width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-edge); border-radius: var(--radius); }
.brandMark svg { width: 18px; height: 18px; }
.brandTextWrap { display: grid; gap: 1px; min-width: 0; }
.brandText { font-size: 17px; font-weight: 600; line-height: 1.15; }
.brandSubtext { color: var(--muted); font-size: 12px; font-weight: 500; }
.mobileNavToggle { display: none; }
.nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 2px 8px; scrollbar-width: thin; }
.navSection { display: grid; gap: 4px; }
.navSection + .navSection { padding-top: 14px; border-top: 1px solid var(--border); }
.navSectionLabel { padding: 0 10px 4px; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.navItem {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.navItem:hover { color: var(--text); background: #f4f4f5; }
.navItem.navActive { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(36, 180, 126, 0.22); font-weight: 600; }
.navItem.navActive .navIcon { color: var(--accent-strong); background: rgba(36, 180, 126, 0.1); }
.navItem.navDisabled { color: var(--muted); }
.navLead { min-width: 0; display: flex; align-items: center; gap: 10px; }
.navIcon { width: 24px; height: 24px; flex: 0 0 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: var(--radius-sm); }
.navIcon svg { width: 19px; height: 19px; }
.navTextWrap { min-width: 0; display: grid; gap: 1px; }
.navText { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.navSubText { color: var(--danger); font-size: 10.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.navSubText:empty { display: none; }
.navTrailing { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.navAttentionHand { width: 21px; height: 21px; display: none; align-items: center; justify-content: center; color: var(--danger); animation: navAttentionPoint 1.2s ease-in-out infinite; }
.navAttentionHand svg { width: 21px; height: 21px; }
.navItem.hasAttention .navAttentionHand { display: inline-flex; }
@keyframes navAttentionPoint { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .navAttentionHand { animation: none; } }
.navBadge:empty { display: none; }
.sidebarFooter { flex: 0 0 auto; display: grid; gap: 8px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--border); }
.sidebarActionBtn { width: 100%; justify-content: flex-start; }
.returnLink { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; color: #fff; background: #c81e1e; border: 1px solid #b31818; border-radius: var(--radius); box-shadow: 0 8px 18px rgba(200, 30, 30, 0.22); font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.returnLink:hover, .returnLink:focus-visible { color: #fff; background: #a71919; box-shadow: 0 10px 22px rgba(200, 30, 30, 0.3); }
.sidebarFooter .returnLink { width: 100%; }
.returnLinkBanner { min-height: 36px; margin-left: 12px; padding: 6px 12px; font-size: 13px; }
.demoBanner .demoBannerDate { margin-left: auto; }

.main { position: relative; flex: 1 1 auto; min-width: 0; min-height: 100vh; padding: 24px 34px 42px; background: var(--bg); }
.demoBanner { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: baseline; margin: 0 0 18px; padding: 9px 12px; border: 1px solid var(--accent-edge); border-radius: var(--radius); background: var(--accent-soft); color: var(--text-soft); font-size: 12.5px; }
.demoBanner strong { color: var(--accent-ink); font-weight: 700; }
.demoBanner .demoBannerDate { color: var(--muted); font-weight: 600; }

/* Pills, badges, buttons, inputs */
.badge, .pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 9px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(36, 180, 126, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.navBadge { margin-left: auto; padding: 3px 8px; }
.badgeDanger, .pillDanger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
.pillWarning { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
.pillMuted { color: var(--muted); background: var(--surface-muted); border-color: var(--border); }
.pillInfo { color: var(--info-ink); background: var(--info-soft); border-color: var(--info-border); }
.pillPriority { color: var(--priority-ink); background: var(--priority-soft); border-color: #f1d98a; }
.pillAssigned { background: var(--accent-soft-2); border-color: rgba(22, 163, 107, 0.42); font-weight: 700; }

.btn, .btnOutline, .btnBlue, .btnDanger {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(36, 180, 126, 0.3); }
.btn:hover:not(:disabled) { background: var(--accent-soft-2); border-color: rgba(36, 180, 126, 0.42); }
.btnSolid { color: #fff; background: var(--accent); border-color: var(--accent); }
.btnSolid:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
.btnOutline:hover:not(:disabled) { color: var(--text); background: #f7f7f6; }
.btnBlue { color: var(--info-ink); background: var(--info-soft); border-color: var(--info-border); }
.btnBlue:hover:not(:disabled) { background: var(--info-soft-2); }
.btnDanger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
.btnDanger:hover:not(:disabled) { color: var(--danger-strong); background: #fff1ed; }
.btn:disabled, .btnOutline:disabled, .btnBlue:disabled, .btnDanger:disabled { color: var(--muted-2); background: var(--surface-muted); border-color: var(--border); cursor: not-allowed; }
.btnSmall { min-height: 30px; padding: 5px 9px; font-size: 12.5px; }
.btnGold { color: #7a5313; background: #fff8e8; border: 2px solid #c8912f; }
.btnGold:hover:not(:disabled) { color: #5c3d0c; background: #fdf0d2; border-color: #a9771f; }
.linkButton { min-height: 0; padding: 0; color: var(--accent-ink); background: none; border: 0; font-size: 13px; font-weight: 650; text-decoration: none; }
.linkButton:hover { text-decoration: underline; }

.input, select.input, textarea.input {
  width: 100%;
  max-width: 720px;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: #a1a1aa; }
.input:focus { border-color: rgba(36, 180, 126, 0.58); box-shadow: 0 0 0 3px var(--focus); }
textarea.input { min-height: 86px; resize: vertical; }
.checkLabel { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 13px; font-weight: 500; cursor: pointer; }
.checkLabel input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Page primitives */
.page { color: var(--text); }
.page h1 { margin: 0 0 18px; font-size: 30px; font-weight: 600; line-height: 1.12; }
.page h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.page h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.stack { display: grid; gap: 12px; }
.card { position: relative; padding: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.cardHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sectionTitle { display: inline-flex; align-items: center; min-height: 20px; padding-left: 9px; color: var(--accent-ink); border-left: 3px solid rgba(22, 163, 107, 0.44); font-size: 14px; font-weight: 700; line-height: 1.25; }
.tableHeader { color: var(--text); font-size: 13px; font-weight: 600; }
.tableWrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table thead th { padding: 11px 12px; color: var(--muted); background: #f7f7f6; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.table tbody td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafa; }
.table tr.clickable { cursor: pointer; }
.profileLink { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.profileLink:hover { text-decoration: underline; }
.emptyState { padding: 18px; color: var(--muted); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.searchField { position: relative; flex: 1 1 260px; max-width: 420px; }
.searchField svg { position: absolute; top: 50%; left: 11px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.searchField .input { padding-left: 36px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tab { display: grid; gap: 2px; min-height: 40px; padding: 6px 12px; color: var(--text-soft); background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; text-align: left; }
.tab small { color: var(--muted); font-size: 11px; font-weight: 500; }
.tab:hover { background: #f4f4f5; }
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent-soft); border-color: rgba(36, 180, 126, 0.22); }
.tabBadge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger-border); border-radius: 999px; font-size: 11px; }
.datePill { min-height: 28px; display: inline-flex; align-items: center; padding: 5px 8px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; white-space: nowrap; }
.datePill.datePillAccent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-edge); }
.datePill.datePillDanger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-border); }
.dateInput { width: auto; min-height: 30px; padding: 4px 8px; font-size: 12.5px; }
.avatar { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 50%; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.avatarLarge { width: 76px; height: 76px; flex-basis: 76px; font-size: 24px; }
.tagList { display: flex; flex-wrap: wrap; gap: 5px; }
.tagLicence { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-edge); }
.tagSkill { color: var(--priority-ink); background: var(--priority-soft); border-color: #f1d98a; }
.tagSchedule { color: var(--info-ink); background: var(--info-soft); border-color: var(--info-border); }
.noteList { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.note { padding: 9px 11px; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius-sm); background: var(--surface-subtle); font-size: 13px; }
.notePositive { border-left-color: var(--accent); }
.noteNegative { border-left-color: var(--danger); }
.noteMeta { display: flex; gap: 8px; margin-bottom: 3px; color: var(--muted); font-size: 11.5px; }
.noteComposer { display: grid; gap: 8px; margin-top: 10px; padding: 10px; background: var(--surface-subtle); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.segment { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.segment button { min-height: 32px; padding: 4px 11px; color: var(--text-soft); background: var(--surface); border: 0; border-right: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.segment button:last-child { border-right: 0; }
.segment button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-soft); }
.segment button.segmentNegative[aria-pressed="true"] { color: var(--danger); background: var(--danger-soft); }
.summaryGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.summaryItem { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: left; }
.summaryLabel { color: var(--muted); font-size: 12px; font-weight: 600; }
.summaryValue { font-size: 24px; font-weight: 650; line-height: 1.1; }
button.summaryItem { cursor: pointer; }
button.summaryItem:hover { border-color: var(--border-strong); }
.summaryItemWarning { border-color: var(--danger-border); background: var(--danger-soft); }
.summaryItemWarning .summaryValue, .summaryItemWarning .summaryLabel { color: var(--danger); }
.summaryItemActive { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.inlineStatus { color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.backBtn { margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; }
.twoCol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.formGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.formGrid label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.formGrid .input { max-width: none; }
.callout { padding: 10px 12px; border: 1px solid var(--info-border); border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info-ink); font-size: 13px; }
.callout strong { font-weight: 700; }
.calloutSuccess { border-color: var(--accent-edge); background: var(--accent-soft); color: var(--accent-ink); }

/* Today */
.todayHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.todayEyebrow { color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.todayQuickActions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 14px; }
.todayOverview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.todayOverview a { display: grid; justify-items: center; gap: 3px; padding: 9px 3px; color: var(--accent-ink); background: #edf5f0; border: 1px solid #cbded1; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 650; }
.todayOverview strong { font-size: 19px; }
.todaySections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.todaySection { padding: 18px; min-width: 0; }
.todaySectionHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.todaySectionHeader h2 { margin: 0; font-size: 18px; }
.todaySectionHeader a { color: var(--accent-ink); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.todayCount { margin-left: 6px; padding: 3px 7px; background: #edf5f0; color: var(--accent-ink); border-radius: 6px; font-size: 13px; }
.todayHint { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.todayItems { list-style: none; padding: 0; margin: 0; }
.todayItems li + li { border-top: 1px solid var(--border); }
.todayItem { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; }
.todayItem:hover strong { text-decoration: underline; }
.todayItemText { display: grid; gap: 4px; min-width: 0; flex: 1; font-size: 14px; overflow-wrap: anywhere; }
.todayItemText span:not(.todayFlag) { color: var(--muted); font-size: 13px; }
.todayFlag { width: max-content; padding: 2px 7px; color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger-border); border-radius: 999px; font-size: 11px; font-weight: 700; }
.todayItemAction { color: var(--accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.todayEmpty { padding: 8px 0; color: var(--muted); font-size: 13px; }

/* Open orders */
.menOutGoal { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--accent-edge); border-radius: var(--radius); }
.menOutGoal strong { color: var(--accent-ink); font-size: 26px; font-weight: 700; line-height: 1; }
.menOutGoal .menOutLabel { display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.menOutGoal .menOutLabel span:last-child { color: var(--muted); font-weight: 500; }
.menOutGoal .menOutTarget { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; }
.pumpsToday { display: grid; gap: 2px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; font-weight: 600; color: var(--muted); }
.pumpsToday strong { color: var(--text); font-size: 22px; line-height: 1; }
.orderCount { color: var(--muted); font-weight: 600; }
.startDateSoon { color: var(--danger); font-weight: 700; }
.startDateAsap { color: var(--danger); font-weight: 700; }
.progressText { display: block; margin-top: 2px; color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.tbcLabel { display: block; color: var(--muted); font-size: 11.5px; }
.orderDetailGrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.slotList { display: grid; gap: 10px; }
.slot { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-subtle); }
.slotFilled { border-color: var(--accent-edge); background: var(--accent-soft); }
.slotHeader { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.slotWorker { display: flex; align-items: center; gap: 10px; }
.slotWorker .avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
.picker { display: grid; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.pickerList { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.pickerRow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.pickerRow.pickerSuggested { border-color: var(--accent-edge); background: var(--accent-soft); }
.pickerRowMain { display: grid; gap: 4px; min-width: 0; }
.pickerRowMain .tagList .pill { min-height: 20px; padding: 2px 7px; font-size: 11px; }
.timesheetNote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Worker profiles */
.workerRow td { vertical-align: top; }
.workerCell { display: flex; gap: 12px; }
.workerNameRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.workerName { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.workerName:hover { text-decoration: underline; }
.workerWorkingText { color: var(--info-ink); font-size: 12px; font-weight: 700; }
.workerMeta { display: grid; gap: 2px; margin-top: 4px; font-size: 12.5px; }
.workerMeta span { display: flex; gap: 8px; }
.workerMeta b { min-width: 46px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.6; }
.ratingPill { color: var(--priority-ink); background: var(--priority-soft); border-color: #f1d98a; }
.scheduleGroup { display: grid; gap: 4px; margin-top: 8px; }
.scheduleLabel { color: var(--info-ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.notesCell { min-width: 220px; }
.notesHeader { display: flex; justify-content: flex-end; gap: 12px; }
.registrationChecklist { display: grid; gap: 6px; }
.workerHeader { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.workerHeader h1 { margin: 0; }
.workerHeaderMeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.keywordEditor { display: grid; gap: 8px; }
.keywordEditor .row select { width: auto; max-width: 260px; }
.historyList { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.historyList li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.historyList li:last-child { border-bottom: 0; }

/* Active workforce */
.workforceHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.workforceRow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.workforceRow.workforceRowDue { background: linear-gradient(90deg, rgba(220, 38, 38, 0.04), transparent); }
.workforceInfo { display: grid; gap: 2px; }
.workforceClassification { font-size: 13px; font-weight: 600; }
.workforceDates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.workforceDates .muted { font-size: 12px; }

/* Courtesy calls, starting today */
.clientGroupHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.siteHeader { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 6px; }
.siteTitle { font-weight: 600; }
.reminder { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-subtle); margin-top: 8px; }
.reminderOverdue { border-color: var(--danger-border); }
.reminderRow { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 12px; align-items: center; }
.reminderControls { display: grid; gap: 6px; }
.feedbackPanel { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.startingWorker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.callDone { color: var(--accent-ink); }

/* Home stats */
.statsGrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.barChart { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: stretch; height: 210px; padding: 12px 6px 0; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-height: 0; }
.barFill { flex: 0 0 auto; width: 100%; max-width: 46px; background: var(--accent-soft-2); border: 1px solid var(--accent-edge); border-top: 3px solid var(--accent); border-radius: 6px 6px 0 0; }
.barCurrent .barFill { background: var(--info-soft-2); border-color: var(--info-border); border-top-color: var(--info); }
.barValue { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.barLabel { color: var(--muted); font-size: 11px; text-align: center; }
.goalLine { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border-strong); color: var(--muted); font-size: 12.5px; }
.pumpTable td, .pumpTable th { text-align: center; }
.pumpTable td:first-child, .pumpTable th:first-child { text-align: left; }

/* Toast */
.demoToast { position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: min(420px, calc(100% - 36px)); padding: 11px 13px; color: var(--text); background: #fff; border: 1px solid var(--accent-edge); border-radius: var(--radius); box-shadow: 0 16px 38px rgba(15, 23, 42, 0.17); font-size: 13.5px; font-weight: 600; }

@media (max-width: 1100px) {
  .todaySections, .orderDetailGrid, .twoCol, .statsGrid { grid-template-columns: 1fr; }
  .reminderRow { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .appShell { flex-direction: column; }
  .sidebar { position: sticky; top: 0; height: auto; flex-basis: auto; width: 100%; gap: 0; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { min-height: 0; padding: 0; border-bottom: 0; }
  .brandMark { width: 34px; height: 34px; flex-basis: 34px; }
  .sidebarTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobileNavToggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); font-weight: 600; }
  .nav { display: none; max-height: calc(100vh - 70px); padding-top: 12px; }
  .nav.navMobileOpen { display: flex; }
  .sidebarFooter { display: none; }
  .nav.navMobileOpen + .sidebarFooter { display: grid; }
  .main { min-height: 0; padding: 14px 12px 32px; }
  .page h1 { font-size: 24px; }
  .todayOverview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workforceRow { grid-template-columns: 1fr; }
  .workforceDates { justify-content: flex-start; }
  .summaryValue { font-size: 20px; }
  .searchField { max-width: none; }
  .barChart { height: 150px; gap: 4px; }
}

/* Orders: list tones, sort headers, order page */
.table tr.rowUrgent td { background: rgba(220, 38, 38, 0.04); }
.table tr.rowHold td { background: rgba(37, 99, 235, 0.05); }
.table tr.rowAssigned td { background: rgba(22, 163, 107, 0.05); }
.sortHeader { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 0; color: var(--muted); background: none; border: 0; font-size: 12px; font-weight: 600; }
.sortHeader .sortIcon { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: 0.35; }
.sortHeaderActive { color: var(--accent-ink); }
.sortHeaderActive .sortIcon { opacity: 1; }
.startDateAsap, .startDateToday { color: var(--danger); font-weight: 700; }
.startDateSuitable { color: var(--info-ink); font-weight: 700; }
.startDateNext { color: var(--priority-ink); font-weight: 700; }
.tableFooter { justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--border); }
.orderHeader { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.actionsBar { display: flex; flex-wrap: wrap; gap: 8px; }
.assignTable th, .assignTable td { vertical-align: top; }
.assignTable .slotAssigned td { background: var(--accent-soft); }
.assignTable .slotHold td { background: var(--info-soft); }
.suggestionList { display: flex; flex-wrap: wrap; gap: 6px; }
.suggestion { display: grid; gap: 3px; min-width: 200px; padding: 7px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; text-align: left; }
.suggestion:hover { background: #f7f7f6; }
.suggestionMatch { border-color: var(--accent-edge); background: var(--accent-soft); }
.suggestionTop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.suggestionTop .pill { min-height: 18px; padding: 1px 6px; font-size: 10.5px; }
.suggestionTags { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.removeConfirm { margin-top: 8px; padding: 10px; text-align: left; background: var(--danger-soft); border: 1px solid var(--danger-border); border-radius: var(--radius-sm); font-size: 12.5px; }
.removeConfirm p { margin: 0 0 8px; }
.checklist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }
.checklist li > span:first-child { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 50%; font-size: 12px; }
.checklist li small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.checklist li.checkComplete { border-color: var(--accent-edge); background: var(--accent-soft); }
.checklist li.checkComplete > span:first-child { color: #fff; background: var(--accent); border-color: var(--accent); }

.orderTop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fieldRow .fieldValue, .fieldRow .clientProfileField { max-width: 520px; }
.orderBottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .orderTop, .orderBottom { grid-template-columns: 1fr; } }

/* Order details form (mirrors the app's fieldRow layout) */
.orderDetailsForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; align-items: start; }
.orderDetailsColumn { display: grid; align-content: start; gap: 12px; min-width: 0; }
.fieldRow { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 38px; }
.fieldRowTop { align-items: start; }
.fieldLabel { color: var(--muted); font-size: 12px; font-weight: 600; }
.fieldLabelStacked { display: grid; gap: 2px; padding-top: 9px; }
.fieldLabelSub { color: var(--muted-2); font-size: 11px; font-weight: 500; }
.fieldControl { min-width: 0; }
.fieldInline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fieldInline .fieldValue { flex: 1 1 180px; }
.fieldValue { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; color: var(--text); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; line-height: 1.35; }
.fieldValue.fieldValueEmpty { color: var(--muted-2); }
.fieldValue .fieldGlyph { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.fieldTextarea { min-height: 72px; align-items: flex-start; white-space: pre-wrap; }
.toggleLabel { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.toggleLabel input { width: 15px; height: 15px; accent-color: var(--accent); }
.clientProfileField { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 8px 11px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-edge); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.clientProfileField small { color: var(--accent-strong); font-size: 12px; font-weight: 600; white-space: nowrap; }
.clientProfileField:hover { background: var(--accent-soft-2); }
.lockPill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 9px; color: var(--muted); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600; }
.lockPill svg { width: 13px; height: 13px; }
.suggestHint { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) {
  .orderDetailsForm { grid-template-columns: 1fr; }
  .fieldRow { grid-template-columns: 1fr; gap: 4px; }
  .returnLinkBanner { margin-left: 0; width: 100%; }
}
