/* Kloqit admin workspace. Fonts are served locally. */
@font-face { font-family:'Inter'; font-weight:400; font-style:normal; font-display:swap; src:url(/fonts/inter-400.woff) format('woff'); }
@font-face { font-family:'Inter'; font-weight:500; font-style:normal; font-display:swap; src:url(/fonts/inter-500.woff) format('woff'); }
@font-face { font-family:'Inter'; font-weight:600; font-style:normal; font-display:swap; src:url(/fonts/inter-600.woff) format('woff'); }
@font-face { font-family:'Inter'; font-weight:700; font-style:normal; font-display:swap; src:url(/fonts/inter-700.woff) format('woff'); }
@font-face { font-family:'Inter Display'; font-weight:700; font-style:normal; font-display:swap; src:url(/fonts/inter-display-700.woff) format('woff'); }

:root {
  --ink:#202821; --muted:#596459; --faint:#657165;
  --page:#f5f5ef; --surface:#fff; --sidebar:#fafbf7; --sunk:#f1f3ec; --line:#e1e5da; --line-strong:#cbd2c5;
  --brand:#2d6244; --brand-hover:#204c34; --on-brand:#fff;
  --nav-active:#e7efe1; --nav-rule:#669067;
  --ok:#28613f; --warn:#80510b; --bad:#a44539; --info:#435e92; --off:#58665e;
  --ok-fill:#50a978; --warn-fill:#c79647; --bad-fill:#d18673; --info-fill:#819bc8; --off-fill:#9ba99e;
  --bar:linear-gradient(90deg,#82b89a,#599875);
  --brief:#18372b; --brief-edge:#254437; --brief-ink:#f4f9ed; --brief-muted:#bdd3c0; --brief-accent:#dcf4bb;
  --r-s:8px; --r-m:13px; --r-l:18px;
  --shadow-s:0 1px 2px #2230210d;
  --shadow-l:0 22px 56px #13251936, 0 2px 8px #13251912;
  --font:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rail:232px;
  --gutter:clamp(22px, 2.9vw, 48px);
  color-scheme:light;
}
:root[data-theme="dark"] {
  --ink:#ecf1e8; --muted:#a9b6aa; --faint:#96a497;
  --page:#161c18; --surface:#1d251f; --sidebar:#1a221c; --sunk:#252e26; --line:#313d33; --line-strong:#465349;
  --brand:#afddb2; --brand-hover:#c7e9c8; --on-brand:#172b1c;
  --nav-active:#293d2e; --nav-rule:#a0c995;
  --ok:#a9d4ae; --warn:#efc981; --bad:#f2a394; --info:#b2c7ee; --off:#b6c5bb;
  --ok-fill:#81bf97; --warn-fill:#d9ad63; --bad-fill:#dc907e; --info-fill:#91aadd; --off-fill:#8b9d92;
  --bar:linear-gradient(90deg,#6ca783,#8cc19a);
  --brief:#1e3b2f; --brief-edge:#3b5847; --brief-ink:#f4f9ed; --brief-muted:#bdd3c0; --brief-accent:#dcf4bb;
  --shadow-s:0 1px 2px #0003;
  --shadow-l:0 22px 56px #0008;
  color-scheme:dark;
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--page); color:var(--ink); font:400 14px/1.5 var(--font); font-feature-settings:'cv11','ss01'; font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased; }
a { color:var(--brand); text-decoration:none; } a:hover { color:var(--brand-hover); }
.hidden { display:none !important; }
.ic { width:18px; height:18px; flex:none; }
:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:6px; }
b, strong { font-weight:600; }
.muted { color:var(--muted); } small { color:var(--muted); font-size:12.5px; }
.num { font-variant-numeric:tabular-nums; }

/* ---------- workspace ---------- */
.shell { min-height:100dvh; padding-left:var(--rail); }
.workspace { min-width:0; }
.sidebar {
  position:fixed; inset:0 auto 0 0; z-index:35; width:var(--rail);
  display:flex; flex-direction:column; background:var(--sidebar); border-right:1px solid var(--line);
  padding:0 16px 14px; overflow:auto;
}
.sidebar-head { display:flex; flex:none; justify-content:space-between; align-items:center; min-height:77px; padding:0 7px; }
.sidebar-organization { margin:0 7px; color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand { display:inline-flex; align-items:center; gap:10px; font:700 25px/1 var(--display); letter-spacing:-.05em; color:var(--ink); }
.brand:hover { color:var(--ink); }
.logoimg { display:block; border-radius:23%; flex:none; }
.nav { display:grid; gap:26px; margin-top:18px; }
.nav-group { display:grid; gap:3px; }
.nav-label { padding:0 10px; margin-bottom:7px; font-size:11px; font-weight:700; letter-spacing:.075em; text-transform:uppercase; color:var(--faint); }
.nav a { position:relative; display:flex; align-items:center; gap:10px; min-height:42px; padding:0 10px; color:var(--muted); border-radius:var(--r-s); font-weight:500; }
.nav a .ic { width:17px; height:17px; }
.nav a:hover { color:var(--ink); background:var(--sunk); }
.nav a[aria-current="page"] { color:var(--brand); background:var(--nav-active); font-weight:700; }
.nav a[aria-current="page"]::before { content:''; position:absolute; inset:11px auto 11px 0; width:2px; border-radius:0 3px 3px 0; background:var(--nav-rule); }
.sidebar-foot { margin-top:auto; padding-top:32px; }
.theme-switch { display:flex; gap:3px; padding:3px; background:var(--sunk); border:1px solid var(--line); border-radius:10px; }
.theme-switch button { display:flex; flex:1; align-items:center; justify-content:center; gap:6px; padding:5px 8px; min-height:31px; border:1px solid transparent; border-radius:7px; font:600 12px/1.2 var(--font); background:none; color:var(--muted); cursor:pointer; }
.theme-switch button:hover { color:var(--ink); }
.theme-switch button[aria-pressed="true"] { color:var(--ink); background:var(--surface); border-color:var(--line); box-shadow:var(--shadow-s); }
.theme-switch .ic { width:14px; height:14px; }
.usermenu { position:relative; margin-top:17px; padding-top:12px; border-top:1px solid var(--line); }
.usertrigger { display:flex; align-items:center; gap:9px; text-align:left; width:100%; padding:5px 7px; border-radius:var(--r-s); border:0; background:transparent; color:var(--ink); font:inherit; cursor:pointer; }
.usertrigger:hover, .usertrigger[aria-expanded="true"] { background:var(--sunk); }
.account { display:grid; min-width:0; flex:1; }
.account b { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account small { font-size:11px; }
.usertrigger .ic { width:14px; height:14px; color:var(--faint); transform:rotate(-90deg); }
.menu { position:absolute; bottom:calc(100% + 2px); left:0; right:0; min-width:181px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); box-shadow:var(--shadow-l); padding:5px; z-index:1; }
.menu button { display:flex; align-items:center; gap:8px; width:100%; text-align:left; font:500 12.5px/1.4 var(--font); padding:9px 8px; border:0; border-radius:8px; background:none; color:var(--ink); cursor:pointer; }
.menu button:hover { background:var(--sunk); } .menu button .ic { width:15px; height:15px; }
.menu button.out { color:var(--bad); }

.appbar { position:sticky; top:0; z-index:30; background:var(--sidebar); border-bottom:1px solid var(--line); }
.appbar-in { max-width:1560px; margin:0 auto; min-height:62px; padding:0 var(--gutter); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.appbar-r, .route-path { display:flex; align-items:center; gap:12px; min-width:0; }
.route-path { color:var(--muted); font-size:13px; white-space:nowrap; }
.route-path b { color:var(--ink); overflow:hidden; text-overflow:ellipsis; }
.path-separator { color:var(--faint); }
.updated { color:var(--faint); font-size:11.5px; white-space:nowrap; }
.iconbtn { display:inline-flex; flex:none; align-items:center; justify-content:center; width:35px; height:35px; border-radius:8px; border:1px solid var(--line-strong); background:var(--surface); color:var(--muted); cursor:pointer; }
.iconbtn:hover { color:var(--ink); background:var(--sunk); }
.iconbtn .ic { width:16px; height:16px; }
.iconbtn.spin .ic { animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.drawer-open, .drawer-close, .drawer-backdrop { display:none; }

.page { max-width:1560px; margin:0 auto; padding:32px var(--gutter) 64px; }
.pagehead { display:flex; justify-content:space-between; align-items:flex-end; gap:14px 18px; flex-wrap:wrap; margin-bottom:23px; }
h1 { font:700 clamp(28px, 3.2vw, 43px)/1.08 var(--display); letter-spacing:-.045em; margin:0; }
h2 { font:700 20px/1.2 var(--display); letter-spacing:-.025em; }
.sub { color:var(--muted); margin:7px 0 0; max-width:65ch; }
.actions-r { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* ---------- people ---------- */
.av { --h:205; width:34px; height:34px; border-radius:10px; flex:none; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; background:hsl(var(--h) 34% 92%); color:hsl(var(--h) 34% 29%); }
[data-theme="dark"] .av { background:hsl(var(--h) 26% 26%); color:hsl(var(--h) 55% 88%); }
.emp { display:flex; gap:12px; align-items:center; min-width:0; } .emp > div { min-width:0; } .emp small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rowlink { color:var(--ink); font-weight:600; } .rowlink:hover { color:var(--brand); }

/* ---------- surfaces ---------- */
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); overflow:hidden; margin-bottom:18px; box-shadow:var(--shadow-s); }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); }
.toolbar label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.grow { flex:1 1 220px; }
.tablewrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-size:12.5px; font-weight:600; color:var(--muted); padding:10px 16px; background:var(--sunk); white-space:nowrap; border-bottom:1px solid var(--line); }
td { padding:13px 16px; border-top:1px solid var(--line); vertical-align:middle; }
tbody tr:first-child td { border-top:0; }
tbody tr:hover td { background:color-mix(in srgb, var(--brand) 4%, transparent); }
table.click tbody tr { cursor:pointer; }
td.chev { width:44px; color:var(--faint); text-align:right; } tr:hover td.chev { color:var(--brand); }
tr.inactive td { opacity:.55; } tr.inactive td.acts { opacity:1; }
.acts { white-space:nowrap; text-align:right; } .acts .btn + .btn { margin-left:6px; }
.empty { padding:52px 24px; text-align:center; color:var(--muted); }
.empty b { display:block; color:var(--ink); font-size:15px; margin-bottom:4px; }
.empty .btn { margin-top:14px; }
.skel { display:block; height:14px; border-radius:6px; background:linear-gradient(90deg, var(--sunk) 25%, var(--line) 50%, var(--sunk) 75%); background-size:200% 100%; animation:shimmer 1.3s linear infinite; }
.skelrow { display:flex; gap:18px; align-items:center; padding:18px 16px; border-top:1px solid var(--line); } .skelrow:first-child { border-top:0; }
@keyframes shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* ---------- status badges ---------- */
.badge { display:inline-flex; align-items:center; gap:6px; padding:3px 10px 3px 8px; border-radius:999px; font-size:12.5px; font-weight:600; line-height:1.5; white-space:nowrap; background:color-mix(in srgb, var(--c, var(--off)) 13%, transparent); color:var(--c, var(--off)); }
.badge::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge.working, .badge.approved, .badge.present { --c:var(--ok); }
.badge.on_break, .badge.pending, .badge.hd { --c:var(--warn); }
.badge.not_punched, .badge.rejected, .badge.absent { --c:var(--bad); }
.badge.on_leave, .badge.edited { --c:var(--info); }
.badge.punched_out, .badge.role { --c:var(--off); }
.badge.hd, .badge.edited { padding:1px 8px 1px 7px; font-size:11.5px; }

/* ---------- controls ---------- */
input, select, textarea { font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:9px; padding:8px 12px; min-height:38px; min-width:0; }
input::placeholder, textarea::placeholder { color:var(--faint); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input[type=search] { -webkit-appearance:none; appearance:none; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-weight:600; padding:0 16px; min-height:38px; border-radius:9px; border:1px solid transparent; background:var(--brand); color:var(--on-brand); cursor:pointer; transition:background .15s ease, border-color .15s ease, transform .06s ease; white-space:nowrap; }
.btn:hover { color:var(--on-brand); background:var(--brand-hover); } .btn:active { transform:translateY(1px); }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.btn.ghost { background:var(--surface); color:var(--ink); border-color:var(--line-strong); }
.btn.ghost:hover { background:var(--sunk); }
.btn.sm { min-height:32px; padding:0 12px; font-size:13px; border-radius:8px; }
.btn.red { background:var(--bad); color:#fff; } .btn.red:hover { color:#fff; background:color-mix(in srgb, var(--bad) 85%, #000); }
.btn.green { background:var(--ok); color:#fff; } .btn.green:hover { color:#fff; background:color-mix(in srgb, var(--ok) 85%, #000); }
[data-theme="dark"] .btn.red, [data-theme="dark"] .btn.green { color:#17241c; }
.btn.ghost.danger { color:var(--bad); } .btn.ghost.danger:hover { background:color-mix(in srgb, var(--bad) 9%, transparent); border-color:var(--bad); }
.btn.ghost.good { color:var(--ok); } .btn.ghost.good:hover { background:color-mix(in srgb, var(--ok) 9%, transparent); border-color:var(--ok); }
.btn .ic { width:16px; height:16px; }
.seg { display:inline-flex; flex-wrap:wrap; padding:3px; gap:2px; background:var(--sunk); border:1px solid var(--line); border-radius:11px; }
.seg button { font:inherit; font-weight:500; font-size:13px; padding:6px 13px; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; }
.seg button:hover:not(.on) { color:var(--ink); }
.seg button.on { background:var(--surface); color:var(--ink); font-weight:600; box-shadow:var(--shadow-s); }
.pwrap { position:relative; } .pwrap input { padding-right:42px; width:100%; }
.pwtoggle { position:absolute; right:4px; top:50%; transform:translateY(-50%); background:none; border:0; color:var(--faint); cursor:pointer; padding:7px; border-radius:8px; display:inline-flex; } .pwtoggle:hover { color:var(--ink); background:var(--sunk); }
.check { display:flex; gap:10px; align-items:center; margin-top:14px; } .check input { min-height:0; width:auto; accent-color:var(--brand); }
.note { font-size:12.5px; color:var(--muted); margin-top:6px; line-height:1.5; }
.switch { appearance:none; -webkit-appearance:none; width:44px; height:26px; min-height:0; padding:0; border-radius:999px; background:var(--line-strong); border:0; position:relative; cursor:pointer; transition:background .15s ease; flex:none; }
.switch::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:transform .15s ease; }
.switch:checked { background:var(--ok); } .switch:checked::after { transform:translateX(18px); }

/* ---------- live attendance ---------- */
.dash-head { align-items:center; }
.date-stamp { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; border:1px solid var(--line); background:var(--sidebar); color:var(--muted); font-size:12px; font-weight:600; }
.date-stamp .ic { width:15px; height:15px; color:var(--brand); }
.attendance-summary {
  display:grid; grid-template-columns:minmax(215px, 1fr) minmax(0, 2.1fr);
  border:1px solid var(--brief-edge); border-radius:var(--r-l); overflow:hidden;
  background:var(--brief); color:var(--brief-ink); margin-bottom:28px;
}
.summary-total { display:flex; flex-direction:column; justify-content:center; position:relative; isolation:isolate; overflow:hidden; padding:21px 26px 24px; }
.summary-total::before {
  content:''; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background:repeating-radial-gradient(circle at 100% 100%, transparent 0 20px, #c3ebbd20 21px 22px, transparent 23px 26px);
  mask-image:linear-gradient(110deg,transparent 28%, #000 95%);
}
.summary-total h2 { margin:0; font-size:17px; color:var(--brief-ink); }
.summary-number { margin:6px 0 2px; font:700 clamp(44px,5.2vw,72px)/1 var(--display); color:var(--brief-accent); letter-spacing:-.06em; }
.summary-caption { color:var(--brief-muted); font-size:12.5px; }
.summary-breakdown { display:flex; flex-direction:column; justify-content:center; padding:21px 25px 24px; border-left:1px solid #c3ebbd28; }
.summary-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:17px; }
.summary-heading h3 { margin:0; font-size:13px; font-weight:600; }
.live { display:inline-flex; align-items:center; gap:7px; color:var(--brief-accent); font-size:11px; font-weight:600; padding:3px 8px; border:1px solid #c1e6b64a; border-radius:999px; }
.live i { width:6px; height:6px; border-radius:50%; background:var(--brief-accent); }
.mix { display:flex; gap:3px; height:10px; margin-bottom:14px; overflow:hidden; border-radius:3px; }
.mix i { flex:var(--n) 1 0; min-width:0; background:var(--c); }
.mix.none { background:#c3ebbd24; }
.summary-legend { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:9px 12px; margin:0; padding:0; list-style:none; }
.summary-legend li span { display:flex; align-items:baseline; gap:5px; color:var(--brief-muted); font-size:11px; }
.summary-legend li i { flex:none; width:6px; height:6px; border-radius:50%; background:var(--c); }
.summary-legend li b { display:block; margin-top:3px; padding-left:11px; font:700 21px/1.15 var(--display); }
.c-working { --c:#a8d893; } .c-on_break { --c:#e5be79; } .c-not_punched { --c:#de9d8b; } .c-on_leave { --c:#9bb3da; } .c-punched_out { --c:#a3b6a6; }

.timeline-heading { display:flex; align-items:center; justify-content:space-between; gap:12px 20px; flex-wrap:wrap; padding:19px 20px 12px; }
.timeline-heading h2 { margin:0; }
.timeline-heading p { margin:3px 0 0; font-size:12px; color:var(--muted); }
.searchbox { display:flex; flex:0 1 254px; align-items:center; position:relative; }
.searchbox .ic { position:absolute; left:11px; width:15px; height:15px; color:var(--faint); pointer-events:none; }
.searchbox input { width:100%; padding-left:34px; font-size:13px; }
.chips { display:flex; flex-wrap:wrap; align-items:center; gap:5px; padding:0 20px 13px; }
.chip { display:inline-flex; align-items:center; min-height:32px; padding:3px 10px; border:1px solid transparent; background:transparent; color:var(--muted); border-radius:7px; font:600 12px/1.2 var(--font); cursor:pointer; white-space:nowrap; }
.chip:hover { color:var(--ink); background:var(--sunk); }
.chip[aria-pressed="true"] { color:var(--brand); border-color:var(--line); background:var(--nav-active); }
.timeline-panel .tablewrap { border-top:1px solid var(--line); }
.timeline-panel .tablewrap:focus-visible { outline-offset:-2px; }
.board { min-width:886px; font-size:13px; }
.board th, .board td { padding-left:12px; padding-right:12px; }
.board th:first-child, .board td:first-child { padding-left:20px; }
.board th.tlh { padding:0 12px; min-width:246px; }
.board td.num { white-space:nowrap; }
.board .badge { font-size:11.5px; }
.board .emp small { font-size:11.5px; }
.board .emp { gap:9px; }
.board .emp > div { max-width:180px; }
.board .shotlink a { margin-left:3px; font-weight:600; }
.tlticks { position:relative; height:38px; }
.tlticks span { position:absolute; top:11px; transform:translateX(-50%); font-weight:500; font-size:12px; color:var(--muted); }
.tl { position:relative; height:30px; min-width:222px;
  background:
    linear-gradient(var(--line), var(--line)) 18.75% 0/1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 37.5% 0/1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 56.25% 0/1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 75% 0/1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 93.75% 0/1px 100% no-repeat; }
.tl-seg { position:absolute; top:7px; bottom:7px; border-radius:6px; background:var(--bar); }
.tl-seg.on_break, .tl-seg.half_day { background:var(--warn-fill); } .tl-seg.punched_out { background:var(--off-fill); }
.tl-seg.live::after { content:''; position:absolute; right:-1px; top:-3px; bottom:-3px; width:3px; border-radius:3px; background:var(--ok-fill); }
.tl-now { position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:var(--bad-fill); opacity:.75; pointer-events:none; }
.board td.tlc { padding:0 12px; }
.tl-empty { position:absolute; left:0; right:0; top:50%; height:0; border-top:1px dashed var(--line-strong); }
.board .shotlink { white-space:nowrap; }

/* ---------- employee attendance ---------- */
.back { display:inline-flex; align-items:center; gap:6px; font-weight:600; margin-bottom:14px; color:var(--muted); } .back:hover { color:var(--brand); } .back .ic { width:16px; height:16px; }
.lead { gap:14px; } .lead .av { width:52px; height:52px; border-radius:16px; font-size:21px; } .lead h1 { margin:0; }
.totals { display:flex; flex-wrap:wrap; border-top:1px solid var(--line); }
.totals > div { flex:1 1 130px; padding:14px 18px; border-right:1px solid var(--line); } .totals > div:last-child { border-right:0; }
.totals b { display:block; font:700 21px/1.2 var(--display); letter-spacing:-.02em; } .totals span { color:var(--muted); font-size:12.5px; }
.stripbox { padding:14px 16px; border-top:1px solid var(--line); display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.strip { display:flex; flex-wrap:wrap; gap:4px; flex:1 1 300px; }
.strip button { width:22px; height:22px; padding:0; border:0; border-radius:6px; background:var(--c); cursor:pointer; opacity:.9; } .strip button:hover { opacity:1; transform:scale(1.12); }
.s-present { --c:var(--ok-fill); } .s-half_day { --c:var(--warn-fill); } .s-absent { --c:var(--bad-fill); } .s-on_leave { --c:var(--info-fill); } .s-non_working { --c:var(--off-fill); }
.legend { display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:12.5px; } .legend span { display:inline-flex; align-items:center; gap:6px; } .legend i { width:10px; height:10px; border-radius:3px; background:var(--c); }
.dayrow { display:grid; grid-template-columns:minmax(165px,1.3fr) minmax(140px,2.2fr) 64px 64px 70px 47px 20px; gap:14px; align-items:center; width:100%; padding:12px 18px; text-align:left; font:inherit; color:inherit; background:transparent; border:0; }
.dayrow.labels { background:var(--sunk); color:var(--muted); font-size:12.5px; font-weight:600; padding-top:10px; padding-bottom:10px; border-bottom:1px solid var(--line); }
button.dayrow { cursor:pointer; } button.dayrow:hover { background:color-mix(in srgb, var(--brand) 4%, transparent); }
.day { border-top:1px solid var(--line); } .day:first-of-type { border-top:0; }
.day.flash { animation:flash 1.2s ease; }
@keyframes flash { 0%, 40% { background:color-mix(in srgb, var(--brand) 12%, transparent); } 100% { background:transparent; } }
.dayrow .dd { display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-weight:600; } .dayrow .dd small { font-weight:400; }
.dayrow .chev { color:var(--faint); display:inline-flex; justify-content:flex-end; transition:transform .18s ease; }
.day.open .dayrow .chev { transform:rotate(90deg); }
.tlmini { position:relative; height:22px; }
.tlmini .tl { height:22px; min-width:0; } .tlmini .tl-seg { top:5px; bottom:5px; }
.dim { color:var(--faint); }
.daybody { display:none; border-top:1px dashed var(--line); padding:6px 18px 22px; }
.day.open .daybody { display:block; }
.daygrid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:28px; align-items:start; }
.dsec h3 { font-size:13px; font-weight:600; color:var(--muted); margin:20px 0 10px; } .dsec h3 small { margin-left:4px; font-weight:500; }
.prow, .arow { display:grid; grid-template-columns:84px 1fr auto auto; gap:12px; align-items:center; padding:9px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.arow { grid-template-columns:190px 1fr auto; } .prow:last-child, .arow:last-child { border-bottom:0; }
.w { font-weight:600; }
.tlbar { position:relative; height:12px; border-radius:999px; background:var(--sunk); overflow:hidden; } .tlbar i { position:absolute; top:0; bottom:0; background:var(--bar); border-radius:999px; }
.tlax { display:flex; justify-content:space-between; color:var(--faint); font-size:11.5px; margin:5px 0 8px; }
.adjust { position:sticky; top:84px; margin-top:20px; background:var(--sunk); border:1px solid var(--line); border-radius:var(--r-m); padding:16px; }
.adjust h3 { margin:0 0 4px; font-size:14px; color:var(--ink); } .adjust p { margin:0 0 12px; color:var(--muted); font-size:13px; }
.opts { display:grid; gap:6px; margin-bottom:12px; }
.opts label { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--line-strong); border-radius:9px; background:var(--surface); cursor:pointer; font-weight:500; }
.opts label:hover { border-color:var(--brand); }
.opts input { min-height:0; width:auto; accent-color:var(--brand); }
.opts label:has(input:checked) { border-color:var(--brand); background:color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.adjust input[type=text] { width:100%; margin-bottom:10px; } .adjust .btn { width:100%; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:14px; padding:16px; }
.grid.sm { grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); padding:0; gap:10px; }
.shot { position:relative; padding:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; cursor:zoom-in; background:var(--sunk); font:inherit; text-align:left; }
.shot .shot-missing { position:absolute; inset:0 0 36px; display:grid; place-items:center; color:var(--muted); background:var(--sunk); font-size:12px; }
.shot .shot-missing[hidden] { display:none; }
#lightbox .shot-missing { color:white; }
.shot img { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; transition:transform .25s ease; } .shot:hover img { transform:scale(1.03); }
.shot .cap { padding:8px 11px; font-size:12.5px; color:var(--muted); display:flex; justify-content:space-between; gap:8px; } .shot .cap b { color:var(--ink); }
.shot .cap .num { white-space:nowrap; }
.day-shot-head { margin:20px 0 10px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:7px; }
.day-shot-head h3 { margin:0; }
.shot-toolbar { align-items:flex-end; }
.shot-field { min-width:0; }
.shot-field label { margin-bottom:4px; }
.shot-person { flex:0 1 270px; }
.shot-person select { width:100%; }
.shot-date-line { display:flex; gap:10px; align-items:baseline; padding:14px 16px 0; }
.shot-date-line .muted { font-size:12px; overflow-wrap:anywhere; }
.shot-pager { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 18px; padding:10px 16px 0; font-size:13px; }
.shot-pager nav { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.shot-pager.bottom { padding:12px 16px; border-top:1px solid var(--line); }

.salary-toolbar select { max-width:100%; }
.organization-context, .organization-admins { max-width:1040px; }
.organization-picker { align-items:end; justify-content:space-between; padding:18px; }
.organization-picker > div { flex:1 1 260px; min-width:0; max-width:410px; }
.organization-picker label { margin-bottom:6px; }
.organization-picker select { width:100%; }
.organization-summary { display:flex; flex-wrap:wrap; gap:12px; padding:14px 18px; }
.organization-summary > div { flex:1 1 140px; display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:var(--sunk); }
.organization-summary span { color:var(--muted); font-size:13px; }
.organization-summary b { font-size:18px; }
.organization-admins header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; padding:18px; }
.organization-admins h2, .organization-admins p { margin:0; overflow-wrap:anywhere; }
.organization-admins p { margin-top:5px; font-size:13px; }
.organization-admins table { min-width:540px; }
.punch-toolbar { justify-content:space-between; }
.punch-tabs a { padding:6px 12px; border-radius:8px; color:var(--muted); font-size:13px; }
.punch-tabs a:hover, .punch-tabs a[aria-current="page"] { background:var(--surface); color:var(--brand); }
.punch-tabs a[aria-current="page"] { box-shadow:var(--shadow-s); font-weight:700; }
.punch-table table { min-width:720px; }
.punch-table td { vertical-align:top; }
.punch-table small { display:block; margin-top:4px; color:var(--muted); }
.punch-pair { margin:0; display:grid; gap:5px; }
.punch-pair div { display:grid; grid-template-columns:24px auto; gap:5px; }
.punch-pair dt { color:var(--muted); font-size:12px; }
.punch-pair dd { margin:0; font-variant-numeric:tabular-nums; }
.punch-compare { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.punch-compare > div { padding:10px; border:1px solid var(--line); border-radius:9px; background:var(--sunk); }
.punch-compare > div:last-child { border-color:var(--line-strong); }
.punch-compare b { display:block; margin-bottom:8px; }
.punch-reason { margin-block:4px; overflow-wrap:anywhere; white-space:pre-wrap; min-width:100px; }
/* ---------- monthly attendance matrix ---------- */
.salary-panel { overflow:hidden; }
.salary-toolbar { gap:10px; }
.salary-period { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; padding:15px 18px 0; font-size:13px; }
.salary-totals { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:9px; padding:13px 18px 16px; }
.salary-totals > div { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--sunk); }
.salary-totals span { color:var(--muted); font-size:11px; font-weight:600; }
.salary-totals b { font-size:21px; letter-spacing:-.035em; }
.mg-help { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 16px; padding:5px 18px 12px; color:var(--muted); font-size:12px; }
.mg-help #salary-count { color:var(--ink); font-weight:600; }
.mg-help span:last-child { display:flex; align-items:center; gap:3px; }
.mg-help .ic { width:13px; height:13px; }
.mg-legend { display:flex; align-items:center; flex-wrap:wrap; gap:9px 16px; padding:10px 18px 13px; border-top:1px solid var(--line); font-size:11.5px; color:var(--muted); }
.mg-legend > span { display:inline-flex; align-items:center; gap:6px; }
.mg-legend .mg-cell { width:26px; height:24px; min-height:24px; font-size:10px; font-style:normal; }
.mg-legend-dot { width:9px; height:9px; background:var(--warn); border:2px solid var(--surface); border-radius:50%; box-shadow:0 0 0 1px var(--warn); }
.salary-table { max-height:min(72vh, 780px); overflow:auto; overscroll-behavior:contain; border-block:1px solid var(--line); }
.salary-table:focus-visible { outline-offset:-3px; }
.salary-table .monthly-grid { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; font-variant-numeric:tabular-nums; }
.salary-table .monthly-grid th, .salary-table .monthly-grid td { height:41px; padding:5px 3px; text-align:center; border-bottom:1px solid var(--line); border-top:0; border-right:1px solid var(--line); }
.salary-table .monthly-grid thead th { position:sticky; top:0; z-index:2; height:57px; background:var(--sunk); font-size:11px; }
.salary-table .monthly-grid thead th strong { display:block; line-height:1.3; font-weight:700; color:var(--ink); }
.salary-table .monthly-grid thead th small { display:block; margin-top:2px; font-size:10px; font-weight:500; color:var(--muted); }
.salary-table .monthly-grid th.mg-date { width:39px; min-width:39px; max-width:39px; }
.salary-table .monthly-grid .mg-weekend { background:color-mix(in srgb, var(--sunk) 70%, var(--surface)); }
.salary-table .monthly-grid .mg-employee { position:sticky; left:0; z-index:1; width:206px; min-width:206px; max-width:206px; padding:8px 12px; text-align:left; background:var(--surface); box-shadow:1px 0 0 var(--line-strong); }
.salary-table .monthly-grid thead .mg-employee { z-index:4; background:var(--sunk); font-size:12px; }
.salary-table .monthly-grid thead .mg-employee small { font-size:10px; white-space:normal; }
.salary-table .mg-empname { display:flex; align-items:center; gap:7px; }
.salary-table .mg-empname a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:170px; font-size:12px; font-weight:650; }
.salary-table .mg-employee small { display:block; font-size:10.5px; font-weight:400; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }
.salary-table .mg-inactive { display:inline-block; padding:1px 5px; border-radius:3px; background:var(--sunk); color:var(--muted); font-size:9px; }
.salary-table .mg-day { min-width:39px; width:39px; max-width:39px; }
.mg-cell { position:relative; width:31px; height:29px; display:flex; align-items:center; justify-content:center; margin:auto; border-radius:5px; text-decoration:none; font-size:10.5px; font-weight:700; line-height:1; color:var(--ink); white-space:nowrap; }
a.mg-cell:hover { filter:brightness(.94); box-shadow:0 0 0 2px var(--brand); color:var(--ink); }
a.mg-cell:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.mg-present { background:#d5eee1; color:#24553e; }
.mg-half_day { background:#fee1a4; color:#764500; }
.mg-absent { background:#f6d9d7; color:#923e35; }
.mg-on_leave { background:#d9e6fb; color:#354f87; }
.mg-unpaid { background:#e6dff3; color:#644a7c; }
.mg-non_working { background:var(--sunk); color:var(--faint); }
.mg-review { background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--warn) 14%,var(--surface)) 0px,color-mix(in srgb,var(--warn) 14%,var(--surface)) 4px,var(--surface) 4px,var(--surface) 8px); color:var(--warn); border:1px solid color-mix(in srgb,var(--warn) 40%,var(--line)); }
.mg-empty { background:transparent; color:var(--line-strong); }
.mg-late::after { content:''; position:absolute; right:1px; top:1px; width:6px; height:6px; border:1px solid var(--surface); border-radius:50%; background:#ab6c0c; }
.mg-edited { outline:1px dashed var(--info); outline-offset:-2px; }
.salary-table .mg-total-head { width:69px; min-width:69px; max-width:69px; }
.salary-table .monthly-grid .mg-total { min-width:69px; width:69px; font-size:12px; font-weight:600; background:color-mix(in srgb,var(--sunk) 58%,var(--surface)); }
.salary-table .mg-total.mg-deduction { color:var(--warn); }
.salary-table .mg-review-count { white-space:nowrap; font-size:10px; color:var(--warn); }
.salary-table tbody tr:hover .mg-employee { background:color-mix(in srgb,var(--brand) 5%,var(--surface)); }
.salary-note { margin:0; padding:14px 18px; font-size:12px; line-height:1.6; }
:root[data-theme="dark"] .mg-present { background:#254e39; color:#b8eacb; }
:root[data-theme="dark"] .mg-half_day { background:#55401c; color:#f8d999; }
:root[data-theme="dark"] .mg-absent { background:#552d2d; color:#ffc2b6; }
:root[data-theme="dark"] .mg-on_leave { background:#2b3c59; color:#ccdcff; }
:root[data-theme="dark"] .mg-unpaid { background:#40344f; color:#e4cbff; }
@media (max-width:900px) { .salary-totals { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:600px) { .salary-totals { grid-template-columns:repeat(2,minmax(0,1fr)); } .salary-table .monthly-grid .mg-employee { min-width:156px; width:156px; max-width:156px; } .salary-toolbar { align-items:stretch; } }

/* ---------- settings ---------- */
.setgroup { margin-bottom:18px; } .setgroup > h2 { margin:0; padding:16px 22px; font:700 16px/1.3 var(--display); letter-spacing:-.015em; border-bottom:1px solid var(--line); }
.setrow { display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,300px); gap:28px; align-items:start; padding:18px 22px; border-top:1px solid var(--line); } .setgroup > h2 + .setrow { border-top:0; }
.setrow .lbl b { display:block; margin-bottom:3px; } .setrow .lbl span { color:var(--muted); font-size:13px; line-height:1.55; display:block; max-width:62ch; }
.setrow .ctl { display:flex; justify-content:flex-end; } .setrow .ctl input:not(.switch), .setrow .ctl textarea { width:100%; }
.unit { position:relative; width:100%; } .unit input { width:100%; padding-right:62px; } .unit em { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-style:normal; color:var(--faint); font-size:13px; pointer-events:none; }
.savebar { position:sticky; bottom:0; display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 18px; background:color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter:blur(8px); border:1px solid var(--line); border-radius:var(--r-m); box-shadow:var(--shadow-s); }
.savebar span { color:var(--muted); font-size:13px; }

/* ---------- modal, lightbox, toast ---------- */
.overlay { position:fixed; inset:0; background:rgba(7,18,32,.62); display:flex; align-items:center; justify-content:center; z-index:60; padding:20px; backdrop-filter:blur(3px); animation:fade .15s ease; }
@keyframes fade { from { opacity:0; } }
.modal { background:var(--surface); border-radius:var(--r-l); width:100%; max-width:500px; padding:26px; max-height:92vh; overflow:auto; box-shadow:var(--shadow-l); animation:pop .18s ease; }
@keyframes pop { from { opacity:0; transform:translateY(8px) scale(.98); } }
.modal h2 { margin:0 0 16px; font:700 20px/1.25 var(--display); letter-spacing:-.02em; }
.modal label { display:block; font-size:13px; color:var(--muted); margin:12px 0 5px; font-weight:500; }
.modal input, .modal select, .modal textarea { width:100%; }
.modal .row { display:flex; gap:12px; } .modal .row > div { flex:1; min-width:0; }
.modal .actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.lightbox { flex-direction:column; gap:12px; background:rgba(4,10,18,.9); cursor:zoom-out; }
.lightbox img { max-width:min(96vw,1500px); max-height:82vh; border-radius:10px; box-shadow:var(--shadow-l); cursor:default; }
.lightbox .lb-btn:disabled { opacity:.4; cursor:default; }
.lb-cap { color:#d4e0ec; font-size:14px; } .lb-cap b { color:#fff; }
.lb-btn { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:0; background:rgba(255,255,255,.14); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; } .lb-btn:hover { background:rgba(255,255,255,.26); }
.lb-btn.prev { left:20px; } .lb-btn.next { right:20px; } .lb-btn.x { top:22px; right:22px; transform:none; } .lb-btn .ic { width:22px; height:22px; }
.toast { position:fixed; top:20px; right:20px; z-index:99; display:flex; align-items:flex-start; gap:11px; width:max-content; max-width:min(400px, calc(100vw - 32px)); padding:14px 18px 14px 14px; border-radius:12px; font-size:13.5px; line-height:1.45; font-weight:500; color:#fff; background:#0f2740; box-shadow:var(--shadow-l); pointer-events:none; opacity:0; visibility:hidden; transform:translateX(calc(100% + 40px)); transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear .35s; }
.toast.show { opacity:1; visibility:visible; transform:translateX(0); pointer-events:auto; transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s; }
.toast.error { background:#b4233f; } .toast.success { background:#0a7a52; }
.toast-ic { flex:none; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.25); display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.toast-msg { padding-top:1px; overflow-wrap:anywhere; }
.toast::after { content:''; position:absolute; left:14px; right:14px; bottom:6px; height:3px; border-radius:3px; background:rgba(255,255,255,.55); transform-origin:left; transform:scaleX(0); }
.toast.show::after { animation:toastbar 5s linear forwards; }
@keyframes toastbar { from { transform:scaleX(1); } to { transform:scaleX(0); } }

/* ---------- sign in ---------- */
.login { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
.login-art { background:var(--brief); color:#fff; padding:48px 56px; display:flex; flex-direction:column; justify-content:space-between; gap:40px; position:relative; overflow:hidden; }
.login-art .brand { color:#fff; font-size:21px; }
.login-art h2 { font:700 clamp(30px,3.4vw,46px)/1.08 var(--display); letter-spacing:-.035em; margin:0; max-width:13ch; }
.login-art p { color:var(--brief-muted); margin:16px 0 0; max-width:40ch; font-size:15px; line-height:1.6; }
.art-board { display:grid; gap:12px; position:relative; }
.art-board .nowline { position:absolute; top:-8px; bottom:-8px; width:2px; border-radius:2px; background:#e5be79; left:calc(44px + (100% - 44px) * .62); }
.art-row { display:grid; grid-template-columns:30px 1fr; gap:14px; align-items:center; }
.art-row .dot { width:30px; height:30px; border-radius:10px; background:rgba(255,255,255,.1); }
.art-row .track { position:relative; height:22px; border-radius:7px; background:rgba(255,255,255,.07); }
.art-row .track i { position:absolute; top:0; bottom:0; border-radius:7px; background:linear-gradient(90deg,#649b75,#b1d599); }
.art-row .track i.gap { background:#e5be79; }
.art-row .track i.now { width:2px; background:#e5be79; top:-6px; bottom:-6px; border-radius:2px; left:62%; }
.login-form { position:relative; display:flex; align-items:center; justify-content:center; padding:95px 32px 64px; background:var(--surface); }
.login-tools { position:absolute; inset:24px 26px auto; display:flex; justify-content:flex-end; align-items:center; gap:18px; }
.login-tools .brand { display:none; }
.login .box { width:100%; max-width:370px; }
.login .box h1 { font-size:30px; } .login .box .sub { margin-bottom:26px; }
.login .box label { display:block; font-size:13px; color:var(--muted); font-weight:500; margin:14px 0 6px; }
.login .box input { width:100%; } .login .box .btn { width:100%; min-height:44px; margin-top:22px; }

::-webkit-scrollbar { width:10px; height:10px; } ::-webkit-scrollbar-thumb { background:var(--line-strong); border-radius:10px; border:2px solid transparent; background-clip:content-box; }

/* ---------- smaller screens ---------- */
@media (max-width:1150px) {
  .summary-legend { grid-template-columns:repeat(3, minmax(0,1fr)); row-gap:9px; }
  .daygrid { grid-template-columns:minmax(0,1.6fr) minmax(215px,1fr); gap:15px; }
  .arow { grid-template-columns:1fr auto; } .arow .muted { grid-column:1 / -1; }
}
@media (max-width:980px) {
  .dayrow { grid-template-columns:1fr 60px 60px 74px 24px; }
  .dayrow > .tlmini, .dayrow .c-shots { display:none; }
  .daygrid { grid-template-columns:1fr; gap:0; } .adjust { position:static; order:-1; margin-top:14px; }
}
@media (max-width:860px) {
  .shell { padding-left:0; }
  .sidebar { width:min(275px, 88vw); visibility:hidden; transform:translateX(-100%); transition:transform .2s ease, visibility .2s; }
  .sidebar.is-open { visibility:visible; transform:translateX(0); }
  .drawer-open, .drawer-close { display:inline-flex; }
  .drawer-backdrop:not([hidden]) { display:block; position:fixed; z-index:34; inset:0; background:#111c1690; }
  body.drawer-visible { overflow:hidden; }
  .summary-legend { grid-template-columns:repeat(5, minmax(0,1fr)); }
  .login { grid-template-columns:1fr; }
  .login-art { display:none; }
  .login-tools { justify-content:space-between; }
  .login-tools .brand { display:inline-flex; }
}
@media (max-width:640px) {
  :root { --gutter:16px; }
  .appbar-in { min-height:57px; }
  #route-group, .path-separator, .updated { display:none; }
  .page { padding-top:25px; }
  .dash-head { gap:10px; margin-bottom:17px; align-items:flex-start; flex-direction:column; }
  .attendance-summary { grid-template-columns:1fr; margin-bottom:20px; }
  .summary-total { padding:17px 18px; }
  .summary-breakdown { border-left:0; border-top:1px solid #c3ebbd28; padding:15px 18px 18px; }
  .summary-legend { grid-template-columns:repeat(3, minmax(0,1fr)); gap:9px; }
  .timeline-heading, .chips { padding-left:13px; padding-right:13px; }
  .searchbox { flex:1 1 100%; }
  .setrow { grid-template-columns:1fr; gap:12px; } .setrow .ctl { justify-content:flex-start; }
  .dayrow { grid-template-columns:1fr 70px 24px; }
  .dayrow .c-in, .dayrow .c-out { display:none; }
  .prow { grid-template-columns:1fr auto; } .prow .muted { display:none; }
  .modal .row { flex-direction:column; gap:0; }
  .login-tools { inset:18px 18px auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; } .toast, .toast.show { transform:none; } }

form[data-form="settings"] { max-width:940px; }


/* Break tracking workspace */
.break-panel { padding-bottom:24px; }
.break-filter-bar,.break-searchbar,.break-range { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.break-filter-bar { justify-content:space-between; margin-bottom:12px; }
.break-range label { display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--muted); font-size:12px; }
.break-range input { max-width:152px; }
.break-note { margin:9px 0 18px; font-size:12px; }
.break-metrics { margin-bottom:22px; }
.break-searchbar { margin-bottom:13px; }
.break-searchbar .grow { min-width:220px; flex:1; }
.break-detail { margin-top:18px; }
.break-detail-head { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; padding-bottom:14px; }
.break-detail-head h2 { margin:0 0 5px; }
.break-detail-head p { margin:0; color:var(--muted); font-size:12px; }
.break-days { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); }
.break-day { border:1px solid var(--line); border-radius:12px; padding:14px; background:var(--sunk); min-width:0; }
.break-day-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding-bottom:11px; border-bottom:1px solid var(--line); }
.break-day-head span { color:var(--muted); font-size:12px; white-space:nowrap; }
.break-session { display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); font-size:12.5px; }
.break-session:last-child { border:0; padding-bottom:0; }
.break-session-clock { display:grid; gap:4px; }
.break-session-clock small { font-size:11px; }
.break-session .num { white-space:nowrap; }
.break-none { color:var(--muted); font-size:12.5px; margin:12px 0 0; }
.break-detail-btn { white-space:nowrap; }
@media(max-width:680px){ .break-filter-bar { align-items:stretch; } .break-range { width:100%; } .break-range label { flex:1; min-width:132px; } .break-range input { width:100%; } .break-searchbar select { max-width:100%; } }

/* ---------- Employee shifts ---------- */
.shift-intro { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.shift-intro > div { display:flex; flex-direction:column; gap:4px; padding:16px 18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-m); }
.shift-intro b { color:var(--ink); font:700 18px/1.3 var(--display); }
.shift-intro span { color:var(--muted); font-size:12px; }
.shift-panel { margin-bottom:18px; overflow:hidden; }
.shift-heading { padding:18px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border-bottom:1px solid var(--line); }
.shift-heading h2 { margin:0; font:700 16px/1.3 var(--display); }
.shift-heading p { margin-top:4px; }
.shift-heading select { max-width:260px; }
.shift-table { min-width:760px; }
.shift-table td { vertical-align:middle; }
.shift-table td b { font-size:13px; }
.shift-table small { display:block; margin-top:4px; font-size:11.5px; }
.shift-table .emp { min-width:145px; }
.shift-table .emp > div { min-width:0; }
.shift-table .shift-upcoming { color:var(--ok); font-weight:600; }
.shift-actions { white-space:nowrap; }
.shift-actions .btn + .btn { margin-left:5px; }
.shift-footnote { margin-top:5px; padding:5px 3px 14px; }
.shift-form .row > div { min-width:0; }
.shift-form .row input { width:100%; }
@media (max-width:700px) { .shift-intro { grid-template-columns:1fr; } .shift-heading select { max-width:none; width:100%; } }

/* Reusable schedules and bulk assignments use the same theme tokens as Shifts. */
.shift-template-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:12px; padding:16px 20px; }
.shift-template-card { display:flex; flex-direction:column; gap:9px; border:1px solid var(--line); border-radius:var(--r-m); padding:14px; }
.shift-template-title { display:flex; align-items:center; gap:9px; overflow-wrap:anywhere; }
.shift-template-icon { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--line); border-radius:8px; color:var(--ok); flex:none; }
.shift-template-card strong { font-size:16px; font-variant-numeric:tabular-nums; }
.shift-template-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; padding-top:7px; }
.shift-template-note { padding:0 20px 16px; margin:0; }
.shift-bulk-form { max-width:590px; }
.shift-bulk-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0; font-size:12px; }
.shift-bulk-toolbar .check { display:flex; margin:0; }
.shift-bulk-form input[type=checkbox] { width:16px; min-height:0; height:16px; flex:none; accent-color:var(--brand); }
.shift-bulk-list { max-height:230px; overflow:auto; border:1px solid var(--line); border-radius:var(--r-m); }
.shift-bulk-list .shift-bulk-employee { display:flex; align-items:center; gap:10px; padding:9px 12px; margin:0; border-bottom:1px solid var(--line); cursor:pointer; }
.shift-bulk-list .shift-bulk-employee[hidden] { display:none; }
.shift-bulk-employee:last-child { border-bottom:0; }
.shift-bulk-employee b { color:var(--ink); display:block; }
.shift-bulk-employee small { display:block; margin-top:2px; }

/* Current schedules first; history is a quiet, collapsible audit view. */
.shift-row-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.shift-row-actions .btn { white-space:nowrap; }
.shift-history summary { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; }
.shift-history summary::-webkit-details-marker { display:none; }
.shift-history summary small { display:block; margin-top:4px; font-size:12px; }
.shift-history summary svg { transition:transform .15s ease; }
.shift-history[open] summary { border-bottom:1px solid var(--line); }
.shift-history[open] summary svg { transform:rotate(90deg); }
.shift-history summary:focus-visible { outline:2px solid var(--brand); outline-offset:-3px; }

/* Screenshot deletion controls */
.shot-management { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); }
.shot-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.shot-card .shot { width:100%; border:0; border-radius:0; display:block; }
.shot-card-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border-top:1px solid var(--line); }
.shot-card-actions label,.shot-select-all { display:flex; align-items:center; gap:7px; margin:0; font-size:13px; color:var(--muted); }
.shot-card-actions input,.shot-select-all input { width:16px; height:16px; accent-color:var(--ok); }
.shot-storage-note { padding:8px 16px 0; margin:0; color:var(--muted); font-size:12px; }
