/* Jecon Attendance — design tokens + components.
   Palette: validated reference palette (dataviz skill). Country identity:
   India = slot 1 blue, Israel = slot 2 orange (validated light + dark).
   Status colours are reserved for status and always ship with icon + label. */

:root {
  color-scheme: light;
  --plane: #f3f3f0;
  --surface: #fcfcfb;
  --surface-2: #f0efeb;
  --surface-3: #e8e7e2;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e7e6e0;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.09);
  --border-strong: rgba(11, 11, 11, 0.16);
  --shadow: 0 1px 2px rgba(16, 16, 14, 0.04), 0 4px 16px -6px rgba(16, 16, 14, 0.06);
  --shadow-pop: 0 8px 28px -8px rgba(16, 16, 14, 0.22), 0 2px 6px rgba(16, 16, 14, 0.06);

  --india: #2a78d6;
  --israel: #eb6834;
  --day: #b97f00;
  --night: #4757c9;
  --avg: #a8a69e;

  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --crit: #d03b3b;
  --good-text: #006300;
  --crit-text: #c03030;
  --good-wash: rgba(12, 163, 12, 0.10);
  --warn-wash: rgba(250, 178, 25, 0.16);
  --crit-wash: rgba(208, 59, 59, 0.10);
  --absent: rgba(208, 59, 59, 0.32);

  --focus: #2a78d6;
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --plane: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #232321;
    --surface-3: #2c2c2a;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 10px 30px -8px rgba(0, 0, 0, 0.7);
    --india: #3987e5;
    --israel: #d95926;
    --day: #b98608;
    --night: #7480e0;
    --avg: #6d6c66;
    --good-text: #0ca30c;
    --crit-text: #e66767;
    --good-wash: rgba(12, 163, 12, 0.16);
    --warn-wash: rgba(250, 178, 25, 0.14);
    --crit-wash: rgba(208, 59, 59, 0.18);
    --absent: rgba(230, 103, 103, 0.42);
    --focus: #3987e5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232321;
  --surface-3: #2c2c2a;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 10px 30px -8px rgba(0, 0, 0, 0.7);
  --india: #3987e5;
  --israel: #d95926;
  --day: #b98608;
  --night: #7480e0;
  --avg: #6d6c66;
  --good-text: #0ca30c;
  --crit-text: #e66767;
  --good-wash: rgba(12, 163, 12, 0.16);
  --warn-wash: rgba(250, 178, 25, 0.14);
  --crit-wash: rgba(208, 59, 59, 0.18);
  --absent: rgba(230, 103, 103, 0.42);
  --focus: #3987e5;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--plane);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--surface);
  font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
}
.brand-text { line-height: 1.15; }
.brand-name { font-weight: 650; font-size: 14px; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  text-decoration: none; padding: 7px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: 13.5px;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fresh {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.fresh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.fresh[data-state="live"] .dot { background: var(--good); }
.fresh[data-state="live"] .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--good); opacity: 0; animation: pulse 2.4s ease-out infinite;
}
.fresh[data-state="delayed"] .dot { background: var(--warn); }
.fresh[data-state="offline"] .dot, .fresh[data-state="never"] .dot { background: var(--crit); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fresh .dot::after { animation: none; } }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.link-quiet { color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 6px 4px; }
.link-quiet:hover { color: var(--ink); }

/* ---------- page ---------- */
.page { max-width: 1320px; margin: 0 auto; padding: 26px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; line-height: 1.2; margin: 0; font-weight: 680; letter-spacing: -0.015em; }
.page-head .sub { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.banner[data-tone="warn"] { background: var(--warn-wash); border-color: transparent; }
.banner[data-tone="crit"] { background: var(--crit-wash); border-color: transparent; }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner strong { font-weight: 620; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--border); }
.swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.swatch.india { background: var(--india); }
.swatch.israel { background: var(--israel); }
.field {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--border); background: var(--surface); border-radius: 10px; height: 38px;
}
.field:hover { border-color: var(--border-strong); }
/* Focus ring belongs to the whole field, not the native control inside it,
   so it never spills over the label or out of the rounded box. */
.field select:focus, .field select:focus-visible,
.field input:focus, .field input:focus-visible { outline: none; box-shadow: none; }
.field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.field select option, .field select optgroup { background: var(--surface); color: var(--ink); }
.field select, .field input {
  appearance: none; border: 0; background: transparent; height: 100%;
  padding: 0 32px 0 12px; font-size: 13px; font-weight: 520; color: var(--ink); cursor: pointer; max-width: 230px;
}
.field input[type="date"] { padding-right: 10px; }
.field .chev { position: absolute; right: 10px; width: 14px; height: 14px; pointer-events: none; color: var(--muted); }
.field .lead { padding-left: 11px; color: var(--muted); font-size: 12px; font-weight: 550; }
.field .lead + select, .field .lead + input { padding-left: 6px; }
.filters .spacer { flex: 1; }
.btn-ghost {
  border: 0; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 550;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 16px; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.tile.hero { grid-column: span 2; padding: 20px 22px 18px; }
.tile-label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 550; }
.tile-label svg { width: 15px; height: 15px; flex: none; }
.tile-value { font-size: 32px; line-height: 1.05; font-weight: 680; letter-spacing: -0.02em; }
.tile.hero .tile-value { font-size: 58px; letter-spacing: -0.03em; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.tile-foot.col { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3px; padding-top: 10px; }
.tile-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tile-main .spark { margin-bottom: 4px; }
.delta { font-size: 12.5px; color: var(--ink-2); display: inline-block; line-height: 1.4; }
.delta b { font-weight: 650; }
.delta svg { display: inline-block; vertical-align: -1px; margin-right: 3px; }
.delta.good b { color: var(--good-text); }
.delta.bad b { color: var(--crit-text); }
.delta svg { width: 12px; height: 12px; }
.delta.good svg { color: var(--good-text); }
.delta.bad svg { color: var(--crit-text); }
.spark { width: 92px; height: 28px; flex: none; }
.split { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.split span { display: inline-flex; align-items: center; gap: 7px; }
.split b { color: var(--ink); font-weight: 650; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .5s ease; }
.meter-cap { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 7px; gap: 8px; }
.meter-cap b { color: var(--ink); font-weight: 650; }
.status-ico { width: 15px; height: 15px; flex: none; }
.status-ico.good { color: var(--good); }
.status-ico.warn { color: var(--warn); }
.status-ico.crit { color: var(--crit); }
.tile-hint { font-size: 12.5px; color: var(--muted); }
.tile-hint a { color: var(--ink-2); }

/* ---------- cards & grid ---------- */
.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row.r-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.row.r-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px 20px; min-width: 0;
  display: flex; flex-direction: column;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 640; margin: 0; letter-spacing: -0.005em; }
.card-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.card-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.chip-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 12px; font-weight: 550; padding: 4px 9px; border-radius: 7px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.chip-btn:hover { background: var(--surface-2); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.chip-btn svg { width: 13px; height: 13px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin: -4px 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.key-line { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.key-rect { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font); }
.is-loading .chart, .is-loading .tile, .is-loading .hbars, .is-loading .people { opacity: .55; transition: opacity .15s; }

/* ---------- horizontal bars (sites / designations) ---------- */
.hbars { display: flex; flex-direction: column; gap: 3px; }
.hb-row {
  display: grid; grid-template-columns: minmax(96px, 168px) minmax(0, 1fr) 76px;
  align-items: center; gap: 12px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; cursor: default;
}
.hb-row.two { grid-template-columns: minmax(96px, 168px) minmax(0, 1fr) 52px 52px; }
.hb-row:hover, .hb-row:focus-visible { background: var(--surface-2); }
.hb-row.hb-head { padding-top: 0; padding-bottom: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.hb-row.hb-head:hover { background: transparent; }
.hb-row.hb-head span:nth-child(n+3) { text-align: right; }
.hb-track .seg-fill.absent { background: var(--absent); }
.hb-val.abs { color: var(--crit-text); font-weight: 650; }
.hb-val.zero { color: var(--muted); }
.hb-label { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; min-width: 0; }
.hb-label .t { overflow: hidden; text-overflow: ellipsis; }
.hb-track { position: relative; height: 14px; }
.hb-track .roster { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--surface-3); }
.hb-track .bar { position: absolute; left: 0; top: 0; bottom: 0; display: flex; gap: 2px; }
.hb-track .seg-fill { height: 100%; min-width: 0; }
.hb-track .seg-fill:last-child { border-radius: 0 4px 4px 0; }
.hb-val { font-size: 13px; text-align: right; white-space: nowrap; }
.hb-val b { font-weight: 650; }
.hb-val span { color: var(--muted); }
.hb-more { margin-top: 8px; }

/* ---------- status mix ---------- */
.stack { display: flex; height: 14px; gap: 2px; border-radius: 4px; overflow: hidden; margin: 6px 0 18px; background: var(--surface-3); }
.stack i { display: block; height: 100%; }
.stack i.on_time { background: var(--good); }
.stack i.late { background: var(--warn); }
.stack i.absent { background: var(--crit); }
.status-list { display: flex; flex-direction: column; gap: 2px; }
.status-row { display: grid; grid-template-columns: 22px 1fr auto 56px; align-items: center; gap: 8px; padding: 9px 4px; border-top: 1px solid var(--border); font-size: 13.5px; }
.status-row:first-child { border-top: 0; }
.status-row .v { font-weight: 650; }
.status-row .p { color: var(--muted); text-align: right; font-size: 12.5px; }
.status-total { font-size: 34px; font-weight: 680; letter-spacing: -0.02em; line-height: 1; }
.status-total-cap { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }

/* ---------- people table ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 -20px 0; padding: 0 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab {
  border: 0; background: transparent; padding: 10px 10px 11px; margin-bottom: -1px; cursor: pointer;
  font-size: 13.5px; font-weight: 560; color: var(--ink-2); border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.count { font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.tab[aria-selected="true"] .count { background: var(--ink); color: var(--surface); }
.people-tools { display: flex; gap: 10px; align-items: center; padding: 14px 0 10px; flex-wrap: wrap; }
.search { flex: 1; min-width: 200px; max-width: 360px; }
.search input { width: 100%; padding-left: 34px; cursor: text; max-width: none; }
.search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 -20px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .01em;
  padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
  position: sticky; top: 0;
}
table.data th:first-child, table.data td:first-child { padding-left: 20px; }
table.data th:last-child, table.data td:last-child { padding-right: 20px; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.data th button:hover { color: var(--ink); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:hover td { background: var(--surface-2); }
table.data .right { text-align: right; }
.person { display: flex; flex-direction: column; line-height: 1.3; }
.person .n { font-weight: 560; }
.person .i { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.site-cell { display: inline-flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.warn { background: var(--warn-wash); }
.pill.warn svg { color: var(--warn); }
.pill.crit { background: var(--crit-wash); }
.pill.crit svg { color: var(--crit); }
.pill.neutral { background: var(--surface-2); color: var(--ink-2); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 12.5px; color: var(--muted); gap: 10px; flex-wrap: wrap; }

/* ---------- table view twin for charts ---------- */
.twin { max-height: 320px; overflow: auto; margin: 0 -20px -20px; border-top: 1px solid var(--border); }
.twin table.data th:first-child, .twin table.data td:first-child { padding-left: 20px; }

/* ---------- empty state ---------- */
.empty { padding: 28px 12px; text-align: center; color: var(--ink-2); font-size: 13.5px; }
.empty svg { width: 30px; height: 30px; color: var(--muted); margin-bottom: 8px; }
.empty a { color: var(--ink); font-weight: 600; }

/* ---------- tooltip ---------- */
.tooltip {
  position: fixed; z-index: 50; pointer-events: none; min-width: 150px; max-width: 260px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  box-shadow: var(--shadow-pop); padding: 9px 11px; font-size: 12.5px;
}
.tooltip .tt-title { color: var(--muted); font-size: 12px; margin-bottom: 6px; font-weight: 550; }
.tooltip .tt-row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 8px; padding: 2px 0; }
.tooltip .tt-row b { font-weight: 680; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tooltip .tt-row span { color: var(--ink-2); }
.tooltip .tt-note { color: var(--muted); font-size: 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art {
  background: var(--ink); color: var(--surface); padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-art .brand-mark { background: var(--surface); color: var(--ink); width: 40px; height: 40px; font-size: 20px; border-radius: 11px; }
.auth-art h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 680; max-width: 420px; }
.auth-art p { color: color-mix(in srgb, var(--surface) 70%, transparent); margin: 0; max-width: 420px; }
.auth-art .bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 40px 0; opacity: .9; }
.auth-art .bars i { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--surface) 22%, transparent); }
.auth-art .bars i.hi { background: var(--india); }
.auth-form { display: grid; place-items: center; padding: 32px 20px; background: var(--plane); }
.login { width: 100%; max-width: 380px; }
.login h1 { font-size: 24px; margin: 0 0 4px; font-weight: 680; letter-spacing: -0.015em; }
.login p.lede { color: var(--ink-2); margin: 0 0 26px; }
.login label { display: block; font-size: 13px; font-weight: 560; margin: 16px 0 6px; }
.login label .muted { font-weight: 400; }
.login input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 15px;
}
.login input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.btn-primary {
  width: 100%; height: 44px; margin-top: 24px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--ink); color: var(--surface); font-weight: 650; font-size: 15px;
}
.btn-primary:hover { opacity: .9; }
.err { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--crit-wash); font-size: 13.5px; margin-bottom: 4px; }
.err svg { width: 16px; height: 16px; color: var(--crit); flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .tile.hero { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .row.r-2-1, .row.r-1-1 { grid-template-columns: minmax(0, 1fr); }
  /* the menu never disappears: it gets its own row and scrolls sideways */
  .topbar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 12px; }
  .nav { order: 3; width: 100%; margin: 0 -8px; padding: 0 8px 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
}
@media (max-width: 720px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px 0; column-gap: 10px; }   /* keeps the space above the logo and buttons */
  .brand-text { display: none; }
  .fresh .label-long { display: none; }
  .page { padding: 18px 16px 48px; }
  .page-head h1 { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 14px; }
  .tile-value { font-size: 26px; }
  .tile.hero .tile-value { font-size: 46px; }
  .spark { width: 64px; }
  .card { padding: 16px; }
  .tabs { margin: 0 -16px; padding: 0 8px; }
  .table-wrap, .twin { margin-left: -16px; margin-right: -16px; }
  .hb-row { grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) 64px; gap: 8px; }
  .hide-sm { display: none; }
  .hb-row.two { grid-template-columns: minmax(76px, 104px) minmax(0, 1fr) 40px 46px; }
  .meter-cap { flex-direction: column; gap: 2px; }
  .filters .field select { max-width: 150px; }
}

/* =========================================================================
   Admin pages: Employees & Sites
   ========================================================================= */
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
  border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink); font-size: 13px; font-weight: 580; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn svg { width: 15px; height: 15px; }
.btn.sm, .btn-primary.sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn-primary.inline { width: auto; margin-top: 0; height: 38px; padding: 0 18px; font-size: 14px; display: inline-flex; align-items: center; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.tile-link {
  all: unset; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 3px;
}
.tile-link:hover { text-decoration-color: var(--ink); }
.tile-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.banner[data-tone="good"] { background: var(--good-wash); border-color: transparent; }
#upload-card, #list-card, #sites-card, #devices-card { margin-bottom: 14px; }

/* upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 34px 20px; border: 1.5px dashed var(--axis); border-radius: 12px; background: var(--surface-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone[data-over="1"] { border-color: var(--ink); background: var(--surface-3); }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.dz-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); margin-bottom: 4px; }
.dz-ico svg { width: 20px; height: 20px; }
.dz-title { font-size: 15px; font-weight: 640; }
.dz-sub { font-size: 12.5px; color: var(--ink-2); }
.upload-opts { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.check { display: inline-flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ink); }
.link-quiet svg { width: 14px; height: 14px; vertical-align: -2px; }

.pv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pv-file { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.pv-file > svg { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.pv-file .muted { font-size: 12.5px; }
.colmap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 12px; font-size: 12.5px; }
.chip { padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); }
.chip b { color: var(--ink); font-weight: 620; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sum {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer;
}
.sum:hover:not(:disabled) { background: var(--surface-2); }
.sum:disabled { cursor: default; }
.sum.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sum.zero { opacity: .55; }
.sum:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sum-n { font-size: 22px; font-weight: 680; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.sum-n svg { width: 16px; height: 16px; }
.sum-l { font-size: 12.5px; color: var(--ink-2); }
.pv-table { max-height: 460px; overflow: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pv-note { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.pv-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pill.info { background: var(--good-wash); }
.pill.info svg { color: var(--good-text); }

/* inline editing */
.input {
  height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font-size: 13px; min-width: 0; width: 100%;
}
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
select.input { padding-right: 6px; cursor: pointer; }
.input[type="time"] { width: 116px; }
.input[type="number"] { width: 72px; }
.with-unit { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.icon-btn.good { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.icon-btn.good:hover { opacity: .88; background: var(--ink); color: var(--surface); }
tr.editing td { background: var(--surface-2); }
tr.dirty td { background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
table.data tr.editing:hover td { background: var(--surface-2); }

/* roster switch */
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { width: 34px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background .15s; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--ink); border-color: var(--ink); }
.switch input:checked + .track .thumb { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* sites */
table.data.sites td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.site-name { display: flex; align-items: center; gap: 8px; }
.site-name .input.name { font-weight: 600; min-width: 150px; max-width: 220px; }
.daychips { display: inline-flex; gap: 3px; flex-wrap: wrap; max-width: 280px; }
.daychips button {
  height: 30px; min-width: 36px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
}
.daychips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; margin-bottom: 12px; border-radius: 10px; background: var(--surface-2); }
.add-row .input:first-child { flex: 1; min-width: 200px; }
.add-row select.input { width: 110px; }
details.help { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
details.help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.help p { margin: 8px 0 0; max-width: 760px; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.device { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.device-name { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.device-name svg { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; flex: none; }
.device .site-cell { width: 100%; }
.device .site-cell .input { flex: 1; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 11px 16px 11px 13px;
  border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 13.5px; font-weight: 520;
  box-shadow: var(--shadow-pop); transition: opacity .2s, transform .2s;
}
.toast[data-show="1"] { opacity: 1; transform: translate(-50%, 0); }
.toast .status-ico { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .kpis.k4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-actions .btn { height: 34px; }
  .sum-grid { grid-template-columns: repeat(2, 1fr); }
  .device-grid { grid-template-columns: 1fr; }
  .site-name .input.name { min-width: 120px; }
}

/* ---------- Israel page: printed daily reports ---------- */
.print-only { display: none; }
@media print {
  /* every page: no menus, buttons or tooltips, on white paper */
  .topbar, .tooltip, .toast, .page-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .tile { box-shadow: none; break-inside: avoid; }
  @page { size: A4 portrait; margin: 8mm; }
  /* the Israel page prints only the site office's Designation Wise Report: one A4 page per shift */
  .israel-page .filters, .israel-page #banner, .israel-page .kpis, .israel-page .row, .israel-page #card-people,
  .israel-page #view-overview, .israel-page #view-people, .israel-page .page-head, .israel-page .crumbs { display: none !important; }
  .israel-page .print-only { display: block; }
  table.rep { width: 100%; border-collapse: collapse; table-layout: fixed; font: 10.5px/1.2 Calibri, Arial, sans-serif; color: #000;
    page-break-after: always; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.rep td, table.rep th { border: 1px solid #000; padding: 0.5px 6px; text-align: center; }
  table.rep td.l { text-align: left; }
  table.rep tr.title td { background: #ffff00; font-weight: 700; font-size: 14px; line-height: 1.45; padding: 10px 6px; letter-spacing: .01em; }
  table.rep th { background: #ffff00; font-size: 13px; font-weight: 700; padding: 4px 6px; }
  table.rep tr.total td { background: #ffff00; font-weight: 700; font-size: 13px; padding: 4px 6px; }
  table.rep tr.note td { text-align: left; font-weight: 700; border: none; padding-top: 3px; }
  table.rep tr.assume td { text-align: left; font-style: italic; font-weight: 700; padding: 3px 6px; }
}

/* ---------- Israel page: one-screen overview ---------- */
.page-head.compact { margin-bottom: 14px; align-items: center; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.est { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); border-bottom: 1px dotted var(--border-strong); cursor: help; }
.est svg { width: 13px; height: 13px; }
.small { font-size: 12.5px; }
.iz-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 14px; margin-bottom: 14px; }
.iz-top .tile { gap: 8px; padding: 16px 18px; }
.now-big { font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: auto; }
.progress > i { display: block; height: 100%; border-radius: 99px; }
.shift-card.day { --accent: var(--day); }
.shift-card.night { --accent: var(--night); }
.shift-card { border-top: 3px solid var(--accent); }
.shift-head { display: flex; align-items: center; gap: 10px; }
.shift-head .spark { margin-left: auto; width: 112px; height: 34px; }
.shift-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.shift-ico svg { width: 17px; height: 17px; }
.shift-name { font-weight: 650; font-size: 14.5px; }
.shift-big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.shift-big .of { font-size: 16px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.shift-big .delta { margin-left: 6px; letter-spacing: 0; }
.shift-cap { color: var(--ink-2); font-size: 13px; }
.shift-big.waiting { color: var(--ink-2); }
.cov { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cov > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.minis { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; }
.mini { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 5px; font-size: 12.5px; color: var(--ink-2); padding: 2px 6px; margin: 0 -6px; border-radius: 6px; }
.mini:hover { background: var(--surface-2); color: var(--ink); }
.mini b { font-size: 15px; color: var(--ink); font-weight: 680; }
.mini.warn b { color: var(--crit-text); }
.cov-pct { margin-left: auto; }
.iz-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.iz-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.iz-side .card { padding-bottom: 14px; }
.iz-des { min-height: 0; }
.iz-scroll { overflow: auto; max-height: clamp(260px, calc(100vh - 470px), 520px); margin: 0 -20px; padding: 0 20px; }
.iz-scroll.tall { max-height: calc(100vh - 290px); }
.legend.inline { margin: 2px 0 0; }
.seg.sm button { padding: 4px 10px; font-size: 12.5px; }
.bullet { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 74px; align-items: center; gap: 12px; padding: 5px 4px; border-radius: 7px; font-size: 13px; }
.bullet:hover { background: var(--surface-2); }
.b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.b-track { display: block; }
.b-bar { display: flex; gap: 2px; height: 12px; min-width: 4px; }
.b-bar i { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
.b-bar i.rest { background: var(--surface-3); }
.b-num { text-align: right; white-space: nowrap; }
.b-num b { font-weight: 650; }
table.data.compact td { padding: 7px 10px; }
table.data.compact th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.tooltip .tt-line { color: var(--ink-2); padding: 1px 0; }
@media (max-width: 1100px) {
  .iz-top { grid-template-columns: 1fr 1fr; }
  .iz-top .now-card { grid-column: span 2; }
  .iz-main { grid-template-columns: 1fr; }
  .iz-scroll { max-height: 420px; }
}
@media (max-width: 640px) {
  .iz-top { grid-template-columns: 1fr; }
  .iz-top .now-card { grid-column: auto; }
  .bullet { grid-template-columns: 104px minmax(0, 1fr) 64px; gap: 8px; }
  .page-actions { width: 100%; }
}
.bullet.sel, table.data tr.sel td { background: color-mix(in srgb, var(--focus) 12%, transparent); }
.bullet.sel .b-name { font-weight: 650; }
.bullet:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field.search.sm { min-width: 150px; max-width: 190px; }
.field.search.sm input { height: 30px; font-size: 12.5px; }
.filter-chip { padding: 2px 8px; font-size: 12.5px; }
.seg button[disabled] { opacity: .45; cursor: default; }

/* ---------- Director overview: one screen ---------- */
.dr-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.dr-top .tile { gap: 8px; padding: 16px 18px; }
.dr-top .tile-label .spark { width: 84px; height: 24px; }
.tile .of { font-size: 14px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.tile.country.india { border-top: 3px solid var(--india); }
.tile.country.israel { border-top: 3px solid var(--israel); }
a.link-tile { color: inherit; text-decoration: none; }
a.link-tile:hover { border-color: var(--border-strong); }
.minis.col { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.minis.col b { color: var(--ink); font-size: 15px; font-weight: 680; }
.dr-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.site-row { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 40px 52px 64px; align-items: center; gap: 10px;
  padding: 6px 4px; border-radius: 7px; font-size: 13px; color: inherit; text-decoration: none; }
.site-row:hover { background: var(--surface-2); }
.site-row .spark { width: 64px; height: 22px; }
.site-row .pill { justify-self: start; }
.s-bar { position: relative; display: block; height: 12px; background: var(--surface-3); border-radius: 3px; }
.s-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.s-usual { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 1px; box-shadow: 0 0 0 1px var(--surface); }
a.bullet { color: inherit; text-decoration: none; }
.iz-scroll.short { max-height: clamp(150px, calc(100vh - 640px), 300px); }
.att { display: flex; gap: 9px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.att:last-child { border-bottom: 0; }
a.att:hover { background: var(--surface-2); }
.att .status-ico { margin-top: 1px; }
@media (max-width: 1200px) {
  .dr-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dr-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dr-main .iz-side { grid-column: span 2; }
}
@media (max-width: 720px) {
  .dr-top { grid-template-columns: 1fr 1fr; }
  .dr-top .now-card { grid-column: span 2; }
  .dr-main { grid-template-columns: 1fr; }
  .dr-main .iz-side { grid-column: auto; }
  .site-row { grid-template-columns: minmax(90px, 1fr) minmax(0, 1fr) 36px 48px; }
  .site-row .spark { display: none; }
}

/* ---------- sign in / sign up ---------- */
.au-body { margin: 0; background: var(--plane); }
.au { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
.au-art {
  position: relative; overflow: hidden; color: #f4f3ef; padding: 40px 48px; display: flex; flex-direction: column; gap: 34px;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--israel) 38%, transparent), transparent 70%),
    radial-gradient(55% 45% at 10% 95%, color-mix(in srgb, var(--india) 42%, transparent), transparent 70%),
    #101010;
}
.au-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.au-art > * { position: relative; z-index: 1; }
.au-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.2; }
.au-brand small { color: rgba(244,243,239,.6); }
.au-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f4f3ef; color: #101010; font-weight: 750; font-size: 19px; flex: none; }
.au-pitch { margin-top: auto; }
.au-pitch h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 700; }
.au-pitch p { color: rgba(244,243,239,.72); margin: 0; max-width: 460px; font-size: 15px; line-height: 1.55; }
.au-mock { margin-top: 30px; max-width: 470px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.au-mock-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.au-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 25%, transparent); }
.au-line { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); }
.au-line.w20 { width: 20%; } .au-line.w40 { width: 40%; } .au-line.w50 { width: 50%; } .au-line.w60 { width: 60%; }
.au-line.right { margin-left: auto; }
.au-mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.au-mock-tiles > div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; gap: 8px; border-top: 2px solid rgba(255,255,255,.2); }
.au-mock-tiles > div.day { border-top-color: var(--day); }
.au-mock-tiles > div.night { border-top-color: var(--night); }
.au-num { display: block; width: 55%; height: 16px; border-radius: 5px; background: rgba(255,255,255,.55); }
.au-mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 92px; }
.au-mock-bars i { flex: 1; height: var(--h); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.au-mock-bars i::before { content: ""; flex: 1; border-radius: 3px 3px 0 0; background: var(--india); opacity: .9; }
.au-mock-bars b { height: var(--n); border-radius: 0 0 3px 3px; background: var(--israel); opacity: .9; }
.au-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: rgba(244,243,239,.82); }
.au-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 7px; background: rgba(255,255,255,.1); font-size: 12px; }
.au-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; gap: 18px; }
.au-mobile-brand { display: none; align-items: center; gap: 10px; font-size: 16px; }
.au-mobile-brand .au-mark { background: var(--ink); color: var(--surface); width: 32px; height: 32px; font-size: 16px; }
.au-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 32px 32px 26px; box-sizing: border-box; }
.au-card.wide { max-width: 620px; }
.au-card h1 { font-size: 25px; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 700; }
.au-lede { color: var(--ink-2); margin: 0 0 22px; font-size: 14.5px; line-height: 1.5; }
.au-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.au-form legend { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; margin-bottom: 12px; padding: 0; }
.au-step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; }
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.au-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.au-field label, .au-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.au-label { margin: 2px 0 8px; display: block; }
.au-hint { font-weight: 450; color: var(--muted); margin-left: 4px; }
.au-field input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.au-field input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.au-field.has-err input { border-color: var(--crit); }
.au-err { color: var(--crit-text); font-size: 12.5px; }
.au-pass { position: relative; }
.au-pass input { padding-right: 64px; }
.au-eye { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.au-eye:hover { color: var(--ink); }
.au-2fa { margin: -2px 0 6px; font-size: 13px; }
.au-2fa summary { cursor: pointer; color: var(--ink-2); margin-bottom: 10px; }
.au-submit { display: block; width: 100%; height: 46px; border: 0; border-radius: 11px; background: var(--ink); color: var(--surface);
  font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; margin-top: 6px; transition: transform .05s, opacity .15s; }
.au-submit:hover { opacity: .92; }
.au-submit:active { transform: translateY(1px); }
.au-submit.as-link { display: grid; place-items: center; text-decoration: none; margin-top: 22px; }
.au-switch { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.au-switch a { color: var(--ink); font-weight: 650; }
.au-foot { color: var(--muted); font-size: 12px; margin: 0; }
.au-note { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 11px; font-size: 13.5px; margin-bottom: 16px; line-height: 1.45; color: var(--ink); text-decoration: none; }
.au-note.bad { background: var(--crit-wash); }
.au-note.info { background: var(--warn-wash); }
.au-note.good { background: var(--good-wash); }
a.au-note.good:hover { outline: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.au-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.au-role { position: relative; }
.au-role input, .au-chip input { position: absolute; opacity: 0; pointer-events: none; }
.au-role-card { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 13px; border-radius: 12px;
  border: 1px solid var(--border-strong); cursor: pointer; transition: border-color .15s, background .15s; }
.au-role-card b { font-size: 13.5px; }
.au-role-card small { color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.au-role:hover .au-role-card { background: var(--surface-2); }
.au-role input:checked + .au-role-card { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.au-role input:focus-visible + .au-role-card, .au-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.au-role-ico { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 4px; background: var(--surface-3); position: relative; flex: none; }
.au-role-ico::after { content: ""; position: absolute; inset: 8px; border-radius: 3px; }
.au-role-ico.director::after { background: linear-gradient(90deg, var(--india) 0 45%, transparent 45% 55%, var(--israel) 55%); }
.au-role-ico.hr::after { border: 2px solid var(--ink-2); border-radius: 50%; }
.au-role-ico.supervisor::after { background: linear-gradient(180deg, var(--day) 0 50%, var(--night) 50%); }
.au-chip { position: relative; }
.au-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.au-chip span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border-strong); cursor: pointer; font-size: 13.5px; }
.au-chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.au-chip .sw { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, var(--india) 50%, var(--israel) 50%); }
.au-chip .sw.india { background: var(--india); }
.au-chip .sw.israel { background: var(--israel); }
.au-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.au-meter i { height: 4px; border-radius: 3px; background: var(--surface-3); transition: background .2s; }
.au-meter i.on.s1 { background: var(--crit); }
.au-meter i.on.s2 { background: var(--warn); }
.au-meter i.on.s3, .au-meter i.on.s4 { background: var(--good); }
.au-meter-label, .au-match { font-size: 12px; color: var(--muted); min-height: 15px; }
.au-meter-label[data-s="0"], .au-meter-label[data-s="1"], .au-match[data-ok="0"] { color: var(--crit-text); }
.au-meter-label[data-s="3"], .au-meter-label[data-s="4"], .au-match[data-ok="1"] { color: var(--good-text); }
.au-done { text-align: center; }
.au-done-ico { width: 58px; height: 58px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--good-wash); color: var(--good-text); }
.au-done-ico svg { width: 28px; height: 28px; }
.au-steps { list-style: none; padding: 0; margin: 8px 0 0; display: flex; justify-content: center; font-size: 12.5px; color: var(--muted); counter-reset: st; }
.au-steps li { counter-increment: st; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; position: relative; }
.au-steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); font-weight: 650; color: var(--ink-2); background: var(--surface); position: relative; z-index: 1; }
.au-steps li + li::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 1.5px; background: var(--border-strong); }
.au-steps li.done { color: var(--ink); }
.au-steps li.done::before { content: "\2713"; background: var(--good); border-color: var(--good); color: #fff; }
@media (max-width: 920px) {
  .au { grid-template-columns: 1fr; }
  .au-art { display: none; }
  .au-mobile-brand { display: flex; }
  .au-main { justify-content: flex-start; padding-top: 28px; }
}
@media (max-width: 560px) {
  .au-card { padding: 24px 18px 20px; border-radius: 14px; }
  .au-row, .au-roles { grid-template-columns: 1fr; }
  .au-role-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .au-role-card small { flex-basis: 100%; }
  .au-role-ico { margin: 0; }
}

/* ---------- account menu, users admin ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px;
  background: var(--crit); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; box-sizing: border-box; }
.me { position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 99px; }
.me summary::-webkit-details-marker { display: none; }
.me summary:hover { background: var(--surface-2); }
.me-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface);
  font-size: 12px; font-weight: 700; flex: none; }
.me-av.lg { width: 40px; height: 40px; font-size: 14px; }
.me-name { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; display: flex; flex-direction: column; gap: 3px;
  padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); font-size: 13px; }
.me-menu a { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--ink); font-weight: 600; text-decoration: none; }
.req-list { margin-bottom: 18px; }
.req { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: var(--radius); box-shadow: var(--shadow); }
.req-who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.req-note { margin-top: 6px; font-size: 13px; color: var(--ink-2); font-style: italic; }
.req-set { display: flex; gap: 8px; flex-wrap: wrap; }
.req-act { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .req { grid-template-columns: 1fr; }
  .me-name { display: none; }
}

/* ---------- Director: overview + look-ups ---------- */
:root { --ring-track: color-mix(in srgb, currentColor 14%, transparent); }
.dx { max-width: 1400px; }
.dx-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.dx-title h1 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.dx-title .sub { margin: 3px 0 0; color: var(--ink-2); font-size: 13.5px; }
.dx-search { position: relative; flex: 0 1 460px; display: flex; align-items: center; height: 42px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow); padding: 0 12px; gap: 9px; }
.dx-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.dx-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dx-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); min-width: 0; }
.dx-search kbd { font: 11px/1 var(--font); color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 6px; }
.dx-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; max-height: 380px; overflow: auto; }
.omni-it { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 10px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.omni-it b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omni-it .small { grid-column: 2; }
.omni-it.act, .omni-it:hover { background: var(--surface-2); }
.omni-kind { grid-row: span 2; align-self: center; justify-self: start; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.omni-kind.person { background: color-mix(in srgb, var(--india) 16%, transparent); }
.omni-kind.site { background: color-mix(in srgb, var(--good) 16%, transparent); }
.omni-kind.designation { background: color-mix(in srgb, var(--israel) 16%, transparent); }
.omni-none { padding: 12px; color: var(--ink-2); font-size: 13px; }
.dx-tabs { display: flex; gap: 4px; margin: 6px 0 14px; border-bottom: 1px solid var(--border); }
.dx-tabs a { padding: 9px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dx-tabs a:hover { color: var(--ink); }
.dx-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* hero band */
.dx-hero { --hero-ink: #f4f3ef; color: #f4f3ef; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.25fr 0.95fr; gap: 0; border-radius: 18px; overflow: hidden;
  margin-bottom: 14px; box-shadow: var(--shadow-pop);
  background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--india) 35%, transparent), transparent 60%),
              radial-gradient(60% 140% at 100% 100%, color-mix(in srgb, var(--israel) 30%, transparent), transparent 60%), #121212; }
.hx { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; min-width: 0; }
.hx:first-child { border-left: 0; }
.hx.link:hover { background: rgba(255,255,255,.04); }
.hx-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(244,243,239,.7); text-transform: uppercase; letter-spacing: .04em; }
.hx-big { font-size: 56px; line-height: 1; font-weight: 750; letter-spacing: -0.035em; }
.hx-mid { font-size: 30px; line-height: 1.05; font-weight: 720; letter-spacing: -0.025em; }
.hx-mid small { font-size: 14px; font-weight: 550; color: rgba(244,243,239,.6); letter-spacing: 0; }
.hx-row { display: flex; align-items: center; gap: 12px; }
.hx-note { font-size: 12.5px; color: rgba(244,243,239,.72); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hx-split { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: rgba(244,243,239,.8); }
.hx-split b { color: #fff; }
.seg-bar { display: flex; gap: 2px; height: 8px; border-radius: 99px; overflow: hidden; }
.seg-bar i { display: block; height: 100%; }
.dx-hero .delta { color: rgba(244,243,239,.75); }
.dx-hero .delta.good b, .dx-hero .delta.good svg { color: #7ee07e; }
.dx-hero .delta.bad b, .dx-hero .delta.bad svg { color: #ff8a80; }
.dx-hero .spark { margin-top: auto; }
.dx-hero .ring { color: #fff; }
.dx-hero .swatch { box-shadow: 0 0 0 2px rgba(255,255,255,.15); }

/* overview body */
.dx-ov { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.dx-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dx-card { min-width: 0; }
.dx-scroll { overflow: auto; max-height: clamp(260px, calc(100vh - 420px), 560px); margin: 0 -20px; padding: 0 20px; }
.dx-scroll.short { max-height: clamp(160px, calc(50vh - 190px), 320px); }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.sc { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: inherit; text-decoration: none; border-left: 3px solid var(--border-strong); transition: transform .12s, box-shadow .12s; }
.sc:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.sc.good { border-left-color: var(--good); } .sc.warn { border-left-color: var(--warn); } .sc.crit { border-left-color: var(--crit); }
.sc-top { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.sc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-top .pill { margin-left: auto; }
.sc-num { font-size: 26px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.05; }
.sc-num small { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sc-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 99px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; }
.pill.crit { background: var(--crit-wash); }

/* site / designation look-ups */
.dx-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.field.big select { font-size: 14.5px; font-weight: 600; min-width: 220px; }
.dx-days { display: flex; align-items: center; gap: 6px; }
.dx-days .icon-btn { font-size: 18px; line-height: 1; }
.dx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dx-kpis .tile { padding: 14px 16px; gap: 6px; }
.dx-kpis .tile-value { font-size: 28px; }
.dx-3 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dx-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bullet.short .b-name { color: var(--crit-text); font-weight: 600; }
.bullet .status-ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.tabs.compact { margin: -6px -20px 8px; padding: 0 14px; }
.pr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; color: inherit; text-decoration: none; }
a.pr:hover { background: var(--surface-2); }
.pr-who { display: flex; flex-direction: column; min-width: 0; }
.pr-who b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.me-av.sm { width: 28px; height: 28px; font-size: 11px; background: var(--surface-3); color: var(--ink); }
.me-av.xl { width: 64px; height: 64px; font-size: 22px; }

/* person */
.dx-person { flex-direction: row; align-items: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.dx-person-who { flex: 1 1 260px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.dx-person-who h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.dx-person-stats { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 10px; }
.ps { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ps b { font-size: 22px; font-weight: 720; letter-spacing: -0.02em; }
.ps span { font-size: 12.5px; font-weight: 600; }
.ps small { font-size: 11.5px; color: var(--muted); }
.cal { display: grid; grid-template-rows: repeat(7, 18px); gap: 4px; margin: 4px 0 10px; justify-content: start; overflow-x: auto; }
.cal-lab { font-size: 10.5px; color: var(--muted); align-self: center; }
.cal-c { all: unset; width: 18px; height: 18px; border-radius: 4px; background: var(--surface-3); cursor: pointer; box-sizing: border-box; }
.cal-c.out { background: transparent; cursor: default; }
.cal-c:hover { outline: 2px solid var(--ink-2); outline-offset: 1px; }
.cal-c.sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.dx-sites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; }
.dx-empty { max-width: 520px; margin: 60px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dx-empty-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); }
.dx-empty-ico svg { width: 26px; height: 26px; }
.dx-empty h2 { margin: 0; font-size: 20px; }
.dx-empty p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 1250px) {
  .dx-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx { border-top: 1px solid rgba(255,255,255,.08); }
  .dx-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dx-3 > :last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .dx-ov, .dx-2 { grid-template-columns: 1fr; }
  .dx-hero { grid-template-columns: 1fr 1fr; }
  .dx-hero .hx.main { grid-column: span 2; }
  .dx-search { flex-basis: 100%; }
  .dx-person-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
}
@media (max-width: 640px) {
  .dx-3 { grid-template-columns: 1fr; }
  .dx-3 > :last-child { grid-column: auto; }
  .dx-hero { grid-template-columns: 1fr; }
  .dx-hero .hx.main { grid-column: auto; }
  .hx-big { font-size: 46px; }
  .dx-tabs { overflow-x: auto; }
}

/* "Back to ..." link on pages reached from another page */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.crumb-home { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow); transition: background .12s, border-color .12s; }
.crumb-home:hover { background: var(--surface-2); border-color: var(--ink-2); }
.crumb-home svg { width: 14px; height: 14px; }
.crumb { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 2px 4px; border-radius: 6px; }
a.crumb:hover { color: var(--ink); background: var(--surface-2); }
.crumb.now { color: var(--ink); font-weight: 600; }
.crumb-sep { display: inline-grid; place-items: center; color: var(--muted); }
.crumb-sep svg { width: 12px; height: 12px; }

/* Config: one menu item, three admin tabs */
.cfg-tabs { display: flex; align-items: center; gap: 4px; margin: -6px 0 18px; padding: 6px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); flex-wrap: wrap; }
.cfg-tabs a { padding: 7px 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.cfg-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.cfg-tabs a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.cfg-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 8px 0 6px; }
.cfg-note { margin-left: auto; font-size: 12px; color: var(--muted); padding-right: 8px; }

/* Config home: one card per section */
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cfg-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; text-decoration: none; border-top: 3px solid var(--good);
  transition: transform .12s, box-shadow .12s; }
.cfg-card.warn { border-top-color: var(--warn); }
.cfg-card.crit { border-top-color: var(--crit); }
a.cfg-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.cfg-card-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.cfg-card-head h2 { margin: 0; font-size: 16.5px; font-weight: 680; letter-spacing: -0.01em; white-space: nowrap; }
.cfg-card-head .pill { white-space: nowrap; }
.cfg-card-head .pill { margin-left: auto; }
.cfg-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--good-wash); color: var(--good-text); flex: none; }
.cfg-ico.warn { background: var(--warn-wash); color: var(--ink); }
.cfg-ico.crit { background: var(--crit-wash); color: var(--crit-text); }
.cfg-ico svg { width: 17px; height: 17px; }
.cfg-desc { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.cfg-lines { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.cfg-lines b { color: var(--ink); }
.cfg-cta { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 650; color: var(--ink); }

.au-field select { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; box-sizing: border-box; }
.au-field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.au-sup-only[hidden] { display: none; }

/* ---------- Supervisor: one site, right now (phone first) ---------- */
.sv { max-width: 1240px; }
.sv-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.sv-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sv-hero { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: 18px; color: #f4f3ef; box-shadow: var(--shadow-pop);
  background: radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--india) 32%, transparent), transparent 60%),
              radial-gradient(70% 140% at 100% 100%, color-mix(in srgb, var(--israel) 26%, transparent), transparent 60%), #121212; }
.sv-hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sv-hero-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: rgba(244,243,239,.72); }
.sv-big { font-size: clamp(64px, 11vw, 96px); line-height: .95; font-weight: 780; letter-spacing: -0.04em; margin-top: 4px; }
.sv-of { color: rgba(244,243,239,.75); font-size: 14px; margin-top: 4px; }
.sv-meter { width: 14px; height: 96px; border-radius: 99px; background: rgba(255,255,255,.12); display: flex; align-items: flex-end; overflow: hidden; flex: none; }
.sv-meter i { display: block; width: 100%; border-radius: 99px; }
.sv-shift { display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.sv-shift-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sv-shift-top span { margin-left: auto; color: rgba(244,243,239,.72); font-size: 12.5px; }
.sv-shift .progress { background: rgba(255,255,255,.14); }
.sv-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sv-chip { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08); }
.sv-chip:hover { background: rgba(255,255,255,.14); }
.sv-chip b { font-size: 22px; font-weight: 720; color: #fff; }
.sv-chip span { font-size: 12.5px; color: rgba(244,243,239,.75); }
.sv-chip.warn b { color: #ffcf6e; }
.sv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sv-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); transition: border-color .12s, box-shadow .12s; min-width: 0; }
.sv-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.sv-tile.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sv-tile.short { border-left: 3px solid var(--warn); }
.sv-tile-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-tile-num { font-size: 26px; font-weight: 740; letter-spacing: -0.02em; line-height: 1; }
.sv-tile-num small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sv-tile-bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sv-tile-bar i { display: block; height: 100%; border-radius: 99px; }
.sv-tile-short { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--crit-text); }
.sv-tile-short svg { width: 12px; height: 12px; color: var(--warn); }
.sv-tile-split { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); }
.sv-people { position: sticky; top: 76px; }
.sv-people .tabs { margin: -6px -20px 0; }
.sv-tools { display: flex; align-items: center; gap: 8px; padding: 12px 0 8px; flex-wrap: wrap; }
.sv-tools .search { flex: 1; min-width: 160px; max-width: none; }
.sv-list { overflow: auto; max-height: calc(100vh - 250px); margin: 0 -20px; padding: 0 20px; }
.sv-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 900px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-people { position: static; }
  .sv-list { max-height: none; }
}
@media (max-width: 520px) {
  .sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-hero { padding: 18px; }
}

/* ---- KPIs open the list of people behind them */
.click { cursor: pointer; position: relative; transition: background .12s, box-shadow .12s, transform .12s; }
.click:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile.click:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.tile-open { margin-left: auto; font-size: 11.5px; font-weight: 550; text-transform: none; letter-spacing: 0; opacity: 0; transition: opacity .12s; white-space: nowrap; }
.tile-open { color: var(--muted); }
.click:hover .tile-open, .click:focus-visible .tile-open { opacity: 1; }
@media (hover: none) { .tile-open { opacity: .8; } }
.card.flash { box-shadow: 0 0 0 2px var(--ink), var(--shadow); transition: box-shadow .3s; }

@media (prefers-reduced-motion: reduce) { .click { transition: none; } }
button.shift-big, button.now-big, button.sv-big { background: none; border: 0; padding: 2px 6px; margin-left: -6px; color: inherit; font-family: inherit; text-align: left;
  border-radius: 10px; width: calc(100% + 6px); }
button.now-big { display: flex; align-items: baseline; gap: 8px; }
button.shift-big:hover, button.now-big:hover { background: var(--surface-2); }
button.sv-big { width: auto; }
button.sv-big:hover { background: rgba(255,255,255,.06); }
.shift-big .tile-open, .now-big .tile-open { letter-spacing: 0; align-self: center; }
.card { scroll-margin-top: 76px; }
@media (max-width: 980px) {
  .card { scroll-margin-top: 116px; }   /* the two-row top bar is taller: jumps stop below it */
}

/* ---- person: one month at a time (Mon–Sun) with a month picker */
.mcal { max-width: 360px; margin: 2px 0 12px; }
.mcal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mcal-nav .icon-btn { font-size: 18px; line-height: 1; }
.mcal-nav .icon-btn[disabled] { opacity: .35; cursor: default; }
.mcal-pick select { font-weight: 600; }
.mcal-sum { font-size: 12.5px; width: 100%; }
.mcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mcal-dow { font-size: 10.5px; font-weight: 600; color: var(--muted); text-align: center; padding-bottom: 2px; }
.mcal-d { all: unset; box-sizing: border-box; height: 38px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); background: var(--surface-2); cursor: pointer; }
.mcal-d.on { color: #fff; font-weight: 650; }
.mcal-d.late { color: var(--ink); font-weight: 650; }
.mcal-d.out { background: transparent; color: var(--muted); opacity: .45; cursor: default; }
.mcal-d.today { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
button.mcal-d:hover { outline: 2px solid var(--ink-2); outline-offset: 1px; }
button.mcal-d:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mcal-d.sel { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) { .mcal { max-width: none; } }

/* ---- recent punches */
.rp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 10px; }
.rp-controls .field.search { flex: 1; min-width: 200px; max-width: 360px; }
.rp-list { max-height: 70vh; overflow: auto; margin: 0 -8px; padding: 0 8px; }
.pr.rp { grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.pr.rp.denied { background: color-mix(in srgb, var(--crit, #d93025) 7%, transparent); }
.rp-where { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-dev { overflow: hidden; text-overflow: ellipsis; }
.rp-when { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 74px; }
.rp-when small { font-size: 11px; }
@media (max-width: 760px) {
  .pr.rp { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .rp-where { grid-column: 2; grid-row: 2; }
  .pr.rp .me-av { grid-row: 1 / 3; }
  .pr.rp .pr-meta { grid-column: 3; grid-row: 1 / 3; }
  .rp-dev { display: none; }
}

/* ---- roster for one site */
.upload-opts .roster-site { min-width: 240px; }
.pv-site { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }

/* ---- insights: line chart (2px lines, hairline grid, crosshair hover), rankings, sites */
.ins-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.ins-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-host { width: 100%; }
svg.lc { display: block; overflow: visible; max-width: 100%; }
.lc-grid { stroke: var(--grid, var(--border)); stroke-width: 1; }
.lc-ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.lc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-usual { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.lc-key { stroke-width: 2; stroke-linecap: round; }
.lc-end { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-today { fill: var(--surface); stroke-width: 2; }
.lc-cross { stroke: var(--ink-2); stroke-width: 1; opacity: 0; }
.lc-dot { stroke: var(--surface); stroke-width: 2; opacity: 0; }
.lc-hit:hover .lc-cross, .lc-hit:hover .lc-dot { opacity: 1; }
.key-line { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; }
.ins-ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.rk-more { margin-top: 8px; align-self: flex-start; }
.ins-note { margin: 8px 2px 14px; }
.pr.rk { grid-template-columns: 26px minmax(0, 1fr) auto; }
.rk-n { color: var(--muted); font-size: 12px; text-align: center; }
.rk-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; line-height: 1.25; }
table.ins-sites tr.click { cursor: pointer; }
table.ins-sites tr.click:hover td { background: var(--surface-2); }
.spark-line { width: 96px; height: 24px; display: block; }
@media (max-width: 1100px) { .ins-ranks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ins-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ins-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); margin: -4px 0 8px; }
.ins-stats b { color: var(--ink); font-size: 15px; }
table.ins-sites tr.here td { background: var(--surface-2); font-weight: 600; }
.dx-card .rp-list { max-height: 420px; }


/* the hidden attribute always hides, even on elements styled display:flex / inline-flex */
[hidden] { display: none !important; }

/* site page: the three columns end level and each list scrolls inside its card */
@media (min-width: 641px) {
  .dx-3.fill { align-items: stretch; }
  .dx-3.fill > .dx-card { display: flex; flex-direction: column; }
  .dx-3.fill > .dx-card > .dx-scroll { flex: 1 1 0; max-height: none; contain: size; min-height: clamp(300px, calc(100vh - 400px), 620px); }
}
@media (min-width: 1251px) {
  .dx-3.fill > .dx-rail > .dx-card:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
  .dx-3.fill .dx-rail .rp-list { flex: 1 1 0; max-height: none; contain: size; min-height: 220px; }
}
.dx-3.fill + .dx-card { margin-top: 14px; }

/* headcount as columns */
.ins-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bc-hl { fill: var(--surface-2); opacity: 0; }
.bc-col:hover .bc-hl { opacity: 1; }
.bc-col.today path { opacity: .45; }

/* Overview hero: every row ends full, at every width (5 tiles, or 4 for a one-country account) */
.dx-hero.one-country { grid-template-columns: 1.15fr 1fr 1.25fr 0.95fr; }
@media (max-width: 1250px) {
  .dx-hero > :last-child { grid-column: span 2; }
  .dx-hero.one-country { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-hero.one-country > :last-child { grid-column: auto; }
}
@media (max-width: 900px) {
  .dx-hero > :last-child { grid-column: auto; }
  .dx-hero.one-country > :last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .dx-hero.one-country > :last-child { grid-column: auto; }
}

/* Overview: the right-hand lists end level with "Sites today" (they scroll inside) */
@media (min-width: 901px) {
  .dx-ov { align-items: stretch; }
  .dx-ov > .dx-rail > .dx-card { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .dx-ov > .dx-rail .dx-scroll.short { flex: 1 1 0; max-height: none; contain: size; min-height: 120px; }
}

/* person and designation pages: both columns end level; the long list scrolls inside */
@media (min-width: 901px) {
  .dx-2.fill { align-items: stretch; }
  .dx-2.fill > .dx-card > .dx-scroll { flex: 1 1 0; max-height: none; contain: size; min-height: 200px; }
  .dx-2.fill > .dx-rail > .dx-card:first-child .dx-scroll { max-height: 230px; }
  .dx-2.fill > .dx-rail > .dx-card:last-child { flex: 1 1 auto; }
  .dx-2.fill > .dx-rail > .dx-card:last-child:not(:first-child) > .dx-scroll { flex: 1 1 0; max-height: none; contain: size; min-height: 140px; }
}
.pr.day-row.sel { background: var(--surface-2); }

/* Config home: five cards, every row full (3 + 2 on a wide screen, 2 + 2 + 1 wide on a tablet) */
.cfg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cfg-grid > * { grid-column: span 2; }
.cfg-grid > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1100px) {
  .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg-grid > *, .cfg-grid > :nth-child(n+4) { grid-column: auto; }
  .cfg-grid > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .cfg-grid { grid-template-columns: minmax(0, 1fr); }
  .cfg-grid > :last-child:nth-child(odd) { grid-column: auto; }
}
