/* =========================================================================
   actionly.ca — Attendance & Workforce SaaS
   Design system v1 — colour theme derived from the actionly.ca logo
   Primary: brand green + ink black.  Accents (blue / yellow / red) are the
   three small ticks in the logo and are reserved for status meaning only.
   ========================================================================= */

:root {
  /* ---- Brand (sampled from logo) ---- */
  --green:      #0AB884;   /* logo check + ".ca" */
  --green-600:  #099E71;   /* hover */
  --green-700:  #077F5B;   /* pressed / link text on white */
  --green-100:  #CDF2E3;
  --green-50:   #E8F9F2;

  --ink:        #1A2838;   /* logo wordmark */
  --ink-900:    #0F1822;
  --ink-800:    #22334A;
  --ink-700:    #34475F;
  --ink-500:    #5B6B7F;   /* secondary text */
  --ink-400:    #8493A5;   /* muted text, icons */
  --ink-300:    #B4BFCB;
  --ink-200:    #D9E0E7;   /* borders */
  --ink-100:    #EAEEF2;
  --ink-50:     #F5F7F9;   /* page background */
  --white:      #FFFFFF;

  /* ---- Accents from the logo ticks (status only) ---- */
  --blue:       #388CF4;  --blue-50:   #EAF3FE;  --blue-700:   #1F62B8;
  --yellow:     #FCB938;  --yellow-50: #FFF6E1;  --yellow-700: #9A6A05;
  --red:        #FC6656;  --red-50:    #FFEDEA;  --red-700:    #C23A2B;

  /* ---- Semantic ---- */
  --success: var(--green);  --info: var(--blue);
  --warning: var(--yellow); --danger: var(--red);

  /* ---- Layout ---- */
  --sidebar-w: 232px;
  --topbar-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(26,40,56,.06), 0 1px 3px rgba(26,40,56,.08);
  --shadow:    0 4px 14px rgba(26,40,56,.10);
  --shadow-lg: 0 14px 40px rgba(26,40,56,.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 13px; }
p { margin: 0 0 8px; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .muted { color: var(--ink-500); }
.subtle { color: var(--ink-400); }
.text-xs { font-size: 12px; } .text-sm { font-size: 13px; } .text-lg { font-size: 16px; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.text-green { color: var(--green-700); } .text-red { color: var(--red-700); }
.text-yellow { color: var(--yellow-700); } .text-blue { color: var(--blue-700); }
.nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.hide { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---- Spacing helpers ---- */
.mt-0{margin-top:0} .mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px} .mt-6{margin-top:24px} .mt-8{margin-top:32px}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px}
.ml-auto{margin-left:auto} .p-0{padding:0}
.flex { display:flex; } .flex-col { flex-direction:column; } .items-center { align-items:center; } .items-start { align-items:flex-start; }
.justify-between { justify-content:space-between; } .justify-end { justify-content:flex-end; } .justify-center { justify-content:center; }
.gap-1{gap:4px} .gap-2{gap:8px} .gap-3{gap:12px} .gap-4{gap:16px} .gap-6{gap:24px}
.wrap { flex-wrap: wrap; } .grow { flex: 1 1 auto; } .w-full { width:100%; }
.grid { display:grid; gap:16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; }
/* main + side column (tables never push the side column) */
.grid-main { display:grid; grid-template-columns: minmax(0,1fr) 312px; gap:16px; align-items:start; }
.grid-main.narrow { grid-template-columns: minmax(0,1fr) 300px; }
.grid-main.wide { grid-template-columns: minmax(0,1fr) 400px; }
@media (max-width: 1280px) { .grid-main, .grid-main.narrow, .grid-main.wide { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(2,1fr);} .cols-3 { grid-template-columns: repeat(2,1fr);} .span-3{grid-column:span 2} }
@media (max-width: 700px)  { .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; } .span-2, .span-3 { grid-column: span 1; } }

/* =========================================================================
   APP SHELL (admin / manager portal)
   ========================================================================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--ink); color: #C9D3DF;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand {
  display:flex; align-items:center; gap:10px; padding: 18px 20px 14px;
  color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
}
.sidebar .brand img { width: 30px; height: 30px; }
.sidebar .brand .dot { color: var(--green); }
.sidebar .tenant {
  margin: 0 14px 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); font-size: 12.5px; color:#DCE4EE;
}
.sidebar .tenant strong { display:block; color:#fff; font-size: 13px; }
.sidebar .tenant .badge { margin-top: 6px; }
.sidebar nav { padding: 6px 10px; flex: 1; }
.sidebar .nav-section { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); padding: 14px 12px 6px; }
.sidebar nav a {
  display:flex; align-items:center; gap:10px; padding: 8px 12px; margin: 1px 0;
  border-radius: 8px; color: #C9D3DF; font-size: 13.5px; font-weight: 500; text-decoration:none;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); color:#fff; }
.sidebar nav a.active { background: var(--green); color: #fff; }
.sidebar nav a.active .ico { color:#fff; }
.sidebar nav a .ico { width: 18px; height: 18px; color: var(--ink-400); flex: 0 0 18px; }
.sidebar nav a .count { margin-left:auto; background: rgba(255,255,255,.14); color:#fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.sidebar nav a.active .count { background: rgba(255,255,255,.28); }
.sidebar .sb-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; display:flex; align-items:center; gap:10px; }
.sidebar .sb-footer .avatar { background: var(--green); color:#fff; }
.sidebar .sb-footer .who { line-height: 1.25; } .sidebar .sb-footer .who strong { color:#fff; display:block; font-size: 12.5px;}

.main { flex: 1; min-width: 0; display:flex; flex-direction:column; }
.topbar {
  height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--ink-200);
  display:flex; align-items:center; gap: 16px; padding: 0 28px; position: sticky; top:0; z-index: 20;
}
.topbar h1 { font-size: 18px; }
.topbar .crumbs { font-size: 12.5px; color: var(--ink-500); }
.topbar .crumbs a { color: var(--ink-500); }
.topbar .actions { margin-left:auto; display:flex; gap:8px; align-items:center; }
.topbar .search { position: relative; }
.topbar .search input { width: 260px; padding-left: 34px; }
.topbar .search svg { position:absolute; left: 10px; top: 9px; width: 16px; height:16px; color: var(--ink-400); }
.icon-btn { width: 36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius: 8px; border:1px solid transparent; background: transparent; color: var(--ink-500); cursor:pointer; position:relative; }
.icon-btn:hover { background: var(--ink-100); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .pip { position:absolute; top:6px; right:6px; width:8px; height:8px; border-radius:50%; background: var(--red); border: 2px solid #fff; }

.content { padding: 24px 24px 48px; flex:1; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head .lead { color: var(--ink-500); margin-top: 2px; }

/* mobile sidebar */
.menu-btn { display:none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top:0; transform: translateX(-100%); transition: transform .2s ease; z-index: 40; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display:inline-flex; }
  .topbar { padding: 0 12px; gap: 10px; } .content { padding: 16px; }
  .topbar h1 { font-size: 16px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; max-width: 40vw; }
  .topbar .crumbs { display:none; }
  .topbar .search, .topbar .actions select, .topbar .actions .btn-secondary { display:none; }
  .page-head h1 { font-size: 19px; }
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */
/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 0 14px; height: 36px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration:none; transition: background .12s, border-color .12s, color .12s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { text-decoration:none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-primary:active { background: var(--green-700); }
.btn-dark { background: var(--ink); color:#fff; }
.btn-dark:hover { background: var(--ink-800); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink-200); }
.btn-secondary:hover { border-color: var(--ink-300); background: var(--ink-50); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-danger { background: #fff; color: var(--red-700); border-color: #F5B8B0; }
.btn-danger:hover { background: var(--red-50); }
.btn-danger-solid { background: var(--red); color:#fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-group { display:inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 8px 0 0 8px; margin-left:0; }
.btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group .btn.on { background: var(--ink); color:#fff; border-color: var(--ink); }

/* Badges & chips */
.badge {
  display:inline-flex; align-items:center; gap:5px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; letter-spacing: .01em;
}
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; opacity:.9; }
.badge.no-dot::before { display:none; }
.badge-green  { background: var(--green-50);  color: var(--green-700); }
.badge-ink    { background: var(--ink-100);   color: var(--ink-700); }
.badge-dark   { background: var(--ink);       color: #fff; }
.badge-blue   { background: var(--blue-50);   color: var(--blue-700); }
.badge-yellow { background: var(--yellow-50); color: var(--yellow-700); }
.badge-red    { background: var(--red-50);    color: var(--red-700); }
.badge-outline{ background: #fff; color: var(--ink-500); border: 1px solid var(--ink-200); }

/* Source indicators (HRS 04): system-captured vs manual */
.src { display:inline-flex; align-items:center; gap:4px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; border: 1px solid; }
.src svg { width: 11px; height: 11px; }
.src-system { color: var(--green-700); border-color: var(--green-100); background: var(--green-50); }
.src-manual { color: var(--ink-700); border-color: var(--ink-200); background: var(--ink-50); }
.src-offline { color: var(--blue-700); border-color: #C7DDFB; background: var(--blue-50); }

/* Requirement tag (BRD IDs) */
.req { font-family: var(--mono); font-size: 10.5px; color: var(--ink-400); background: var(--ink-100); padding: 1px 6px; border-radius: 4px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display:flex; align-items:center; gap:12px; padding: 14px 18px; border-bottom: 1px solid var(--ink-100); }
.card-head h3 { font-size: 14.5px; }
.card-head .tools { margin-left:auto; display:flex; gap:8px; align-items:center; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--ink-100); display:flex; align-items:center; gap: 10px; background: var(--ink-50); border-radius: 0 0 var(--radius) var(--radius); }

/* KPI tiles */
.kpi { background:#fff; border:1px solid var(--ink-200); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow:hidden; }
.kpi::before { content:""; position:absolute; left:0; top:0; bottom:0; width: 4px; background: var(--green); }
.kpi.kpi-ink::before { background: var(--ink); } .kpi.kpi-yellow::before { background: var(--yellow); }
.kpi.kpi-red::before { background: var(--red); } .kpi.kpi-blue::before { background: var(--blue); }
.kpi .label { font-size: 12.5px; color: var(--ink-500); font-weight: 500; }
.kpi .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; color: var(--ink); }
.kpi .value small { font-size: 14px; color: var(--ink-400); font-weight: 500; margin-left: 4px; }
.kpi .delta { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.kpi .delta.up { color: var(--green-700); } .kpi .delta.down { color: var(--red-700); }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align:left; font-size: 11.5px; letter-spacing:.06em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--ink-200); background: var(--ink-50); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.table td.t { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFC; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { text-align:right; white-space: nowrap; }
.table tr.selected td { background: var(--green-50); }
.table tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
.table tr.critical td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.table .sub { display:block; font-size: 12px; color: var(--ink-500); }

/* Avatar + photo evidence */
.avatar { width: 32px; height:32px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); display:inline-flex; align-items:center; justify-content:center; font-weight: 600; font-size: 12px; flex: 0 0 32px; }
.avatar.sm { width: 26px; height:26px; flex-basis: 26px; font-size: 10.5px; }
.avatar.lg { width: 48px; height:48px; flex-basis: 48px; font-size: 16px; }
.person { display:flex; align-items:center; gap:10px; }
.person .name { font-weight: 600; line-height: 1.2; white-space: nowrap; } .person .sub { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.photo { width: 36px; height: 36px; border-radius: 6px; background: linear-gradient(135deg, var(--ink-200), var(--ink-300)); display:inline-flex; align-items:center; justify-content:center; color: var(--ink-700); position: relative; overflow:hidden; border: 1px solid var(--ink-200); }
.photo svg { width: 18px; height: 18px; opacity: .6; }
.photo.lg { width: 96px; height: 96px; border-radius: 8px; }
.photo.missing { background: var(--yellow-50); border-style: dashed; border-color: var(--yellow); color: var(--yellow-700); }
.photo.none { background: var(--ink-50); border-style: dashed; color: var(--ink-400); }
.photo .tag { position:absolute; bottom:0; left:0; right:0; font-size: 9px; text-align:center; background: rgba(26,40,56,.75); color:#fff; padding: 1px 0; }

/* Forms */
label.lbl, .lbl { display:block; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.lbl .opt { font-weight: 400; color: var(--ink-400); }
.help { font-size: 12px; color: var(--ink-500); margin-top: 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--ink-200); border-radius: 8px; padding: 8px 12px; height: 36px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 80px; resize: vertical; }
select { appearance: none; -webkit-appearance:none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6B7F' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position: right 10px center; padding-right: 30px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,184,132,.18); }
input.is-invalid, select.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(252,102,86,.15); }
input[readonly] { background: var(--ink-50); color: var(--ink-500); }
.input-group { display:flex; }
.input-group input { border-radius: 8px 0 0 8px; }
.input-group .addon { display:flex; align-items:center; padding: 0 12px; border:1px solid var(--ink-200); border-left:0; border-radius: 0 8px 8px 0; background: var(--ink-50); color: var(--ink-500); font-size: 13px; white-space:nowrap; }
.form-row { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.check { display:flex; align-items:flex-start; gap:8px; font-size: 13.5px; cursor:pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); }
.switch { position: relative; display:inline-block; width: 38px; height: 22px; flex: 0 0 38px; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; background: var(--ink-300); border-radius: 99px; transition: .15s; }
.switch span::after { content:""; position:absolute; width: 18px; height:18px; left: 2px; top: 2px; background:#fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.setting-row { display:flex; align-items:center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .txt { flex:1; } .setting-row .txt strong { display:block; font-size: 13.5px; } .setting-row .txt span { font-size: 12.5px; color: var(--ink-500); }

/* Filter bar */
.filters { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 150px; }
.filters .spacer { flex:1; }

/* Tabs */
.tabs { display:flex; gap: 4px; border-bottom: 1px solid var(--ink-200); margin-bottom: 20px; overflow-x:auto; }
.tabs a, .tabs button { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-500); background: none; border:0; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px; cursor:pointer; white-space:nowrap; text-decoration:none; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration:none; }
.tabs a.active, .tabs button.active { color: var(--green-700); border-bottom-color: var(--green); }
.tabs .count { background: var(--ink-100); color: var(--ink-700); font-size: 11px; padding: 0 6px; border-radius: 99px; margin-left: 6px; }
.tab-panel { display:none; } .tab-panel.active { display:block; }
.pills { display:inline-flex; background: var(--ink-100); padding: 3px; border-radius: 9px; gap: 2px; }
.pills button, .pills a { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-500); background: transparent; border: 0; padding: 5px 12px; border-radius: 7px; cursor:pointer; text-decoration:none; }
.pills .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Alerts / callouts */
.alert { display:flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; align-items:flex-start; }
.alert svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; }
.alert strong { display:block; margin-bottom: 2px; }
.alert-green  { background: var(--green-50);  border-color: var(--green-100); color: var(--green-700); }
.alert-blue   { background: var(--blue-50);   border-color: #C7DDFB; color: var(--blue-700); }
.alert-yellow { background: var(--yellow-50); border-color: #F9DFA0; color: var(--yellow-700); }
.alert-red    { background: var(--red-50);    border-color: #F5B8B0; color: var(--red-700); }
.alert-ink    { background: var(--ink-50);    border-color: var(--ink-200); color: var(--ink-700); }
.alert .body { flex:1; color: var(--ink-700); }
.alert .body strong { color: inherit; }
.alert .act { margin-left:auto; }

/* Progress */
.progress { height: 8px; background: var(--ink-100); border-radius: 99px; overflow:hidden; }
.progress > span { display:block; height: 100%; background: var(--green); border-radius: 99px; }
.progress.thin { height: 5px; }
.progress .warn { background: var(--yellow); } .progress .bad { background: var(--red); } .progress .info { background: var(--blue); }

/* Steps (wizard) */
.steps { display:flex; gap: 0; counter-reset: step; margin-bottom: 24px; }
.steps .step { flex:1; display:flex; align-items:center; gap: 10px; font-size: 13px; color: var(--ink-400); position:relative; padding-right: 16px; }
.steps .step::before { counter-increment: step; content: counter(step); width: 26px; height:26px; border-radius: 50%; border: 2px solid var(--ink-200); display:inline-flex; align-items:center; justify-content:center; font-weight: 700; font-size: 12px; background:#fff; flex: 0 0 26px; }
.steps .step.done::before { background: var(--green); border-color: var(--green); color:#fff; content: "✓"; }
.steps .step.current { color: var(--ink); font-weight: 600; }
.steps .step.current::before { border-color: var(--green); color: var(--green-700); }
.steps .step:not(:last-child)::after { content:""; flex:1; height: 2px; background: var(--ink-200); margin-left: 6px; }
.steps .step.done:not(:last-child)::after { background: var(--green); }
@media (max-width: 800px) { .steps .step span { display:none; } }

/* Lists */
.list { list-style:none; margin:0; padding:0; }
.list li { display:flex; align-items:center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--ink-100); }
.list li:last-child { border-bottom: 0; }
.list .txt { flex:1; min-width:0; } .list .txt strong { display:block; font-size: 13.5px; } .list .txt span { font-size: 12.5px; color: var(--ink-500); }
.dot { width: 8px; height: 8px; border-radius: 50%; display:inline-block; background: var(--ink-300); flex: 0 0 8px; }
.dot-green { background: var(--green);} .dot-red { background: var(--red);} .dot-yellow { background: var(--yellow);} .dot-blue { background: var(--blue);} .dot-ink { background: var(--ink); }

/* Timeline (audit) */
.timeline { list-style:none; margin:0; padding:0 0 0 18px; border-left: 2px solid var(--ink-200); }
.timeline li { position:relative; padding: 0 0 18px 16px; font-size: 13px; }
.timeline li::before { content:""; position:absolute; left: -23px; top: 4px; width: 10px; height:10px; border-radius: 50%; background: #fff; border: 2px solid var(--green); }
.timeline li.manual::before { border-color: var(--ink); } .timeline li.warn::before { border-color: var(--yellow); }
.timeline .when { font-size: 11.5px; color: var(--ink-400); display:block; }

/* Dropdown */
.dropdown { position:relative; }
.dropdown .menu { position:absolute; right:0; top: calc(100% + 6px); min-width: 200px; background:#fff; border:1px solid var(--ink-200); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display:none; z-index: 30; }
.dropdown.open .menu { display:block; }
.dropdown .menu a, .dropdown .menu button { display:flex; align-items:center; gap:10px; width:100%; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: 13.5px; color: var(--ink); background:none; border:0; text-align:left; cursor:pointer; text-decoration:none; }
.dropdown .menu a:hover, .dropdown .menu button:hover { background: var(--ink-50); }
.dropdown .menu .sep { height:1px; background: var(--ink-100); margin: 6px 0; }
.dropdown .menu .danger { color: var(--red-700); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,24,34,.55); display:none; align-items:center; justify-content:center; z-index: 100; padding: 20px; }
.modal-bg.open { display:flex; }
.modal { background:#fff; width: 100%; max-width: 560px; border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 92vh; display:flex; flex-direction:column; }
.modal.wide { max-width: 820px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--ink-100); display:flex; align-items:center; gap: 12px; }
.modal-head h3 { font-size: 16px; } .modal-head .icon-btn { margin-left:auto; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--ink-100); display:flex; gap: 8px; justify-content:flex-end; background: var(--ink-50); border-radius: 0 0 14px 14px; }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color:#fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; opacity: 0; pointer-events:none; transition: .2s; z-index: 200; display:flex; align-items:center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot-green { flex: 0 0 8px; }

/* Empty state */
.empty { text-align:center; padding: 40px 20px; color: var(--ink-500); }
.empty svg { width: 40px; height: 40px; color: var(--ink-300); margin-bottom: 8px; }
.empty strong { display:block; color: var(--ink); margin-bottom: 4px; }

/* Description list */
.dl { display:grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.dl dt { color: var(--ink-500); } .dl dd { margin: 0; font-weight: 500; }

/* Stat row inside cards */
.stat-row { display:flex; gap: 24px; flex-wrap: wrap; }
.stat-row .stat .l { font-size: 12px; color: var(--ink-500); } .stat-row .stat .v { font-size: 20px; font-weight: 700; letter-spacing:-.01em; }
.stat-row .stat .v small { font-size: 12px; color: var(--ink-400); font-weight: 500; }

/* Coverage / schedule grid */
.sched { display:grid; grid-template-columns: 200px repeat(7, minmax(120px, 1fr)); font-size: 12.5px; border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; background:#fff; }
.sched > div { border-right: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); padding: 8px; min-height: 58px; }
.sched .hd { background: var(--ink-50); font-weight: 600; color: var(--ink-700); min-height: auto; padding: 8px 10px; }
.sched .hd .d { display:block; font-size: 11px; color: var(--ink-400); font-weight: 500; }
.sched .emp { background: #fff; display:flex; align-items:center; gap:8px; }
.sched .emp .h { font-size: 11px; color: var(--ink-500); display:block; }
.sched .emp .h.over { color: var(--red-700); font-weight: 600; }
.shift { display:block; border-radius: 6px; padding: 5px 7px; font-size: 11.5px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; border: 1px solid transparent; cursor: pointer; }
.shift small { display:block; font-weight: 500; opacity: .85; font-size: 10.5px; }
.shift-green { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.shift-ink { background: var(--ink-100); color: var(--ink-700); border-color: var(--ink-200); }
.shift-draft { background: #fff; color: var(--ink-700); border-style: dashed; border-color: var(--ink-300); }
.shift-locked { background: var(--ink); color:#fff; }
.shift-leave { background: var(--blue-50); color: var(--blue-700); border-color: #C7DDFB; }
.shift-conflict { background: var(--red-50); color: var(--red-700); border-color: #F5B8B0; }
.shift-unavail { background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--ink-100) 4px, var(--ink-100) 8px); color: var(--ink-400); border-color: var(--ink-200); font-weight: 500; }
.gap-bar { display:flex; gap: 2px; height: 14px; }
.gap-bar span { flex:1; border-radius: 2px; background: var(--green); }
.gap-bar span.short { background: var(--red); } .gap-bar span.partial { background: var(--yellow); } .gap-bar span.closed { background: var(--ink-100); }

/* Coverage legend */
.legend { display:flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-500); }
.legend span { display:inline-flex; align-items:center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display:inline-block; }

/* Kanban */
.kanban { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items:start; }
.kanban .col { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 10px; }
.kanban .col-h { display:flex; align-items:center; gap:8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-700); padding: 4px 6px 10px; }
.kanban .col-h .count { margin-left:auto; font-weight: 600; color: var(--ink-500); background: #fff; border: 1px solid var(--ink-200); padding: 0 7px; border-radius: 99px; font-size: 11px; }
.tcard { background:#fff; border: 1px solid var(--ink-200); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); cursor: pointer; }
.tcard:hover { border-color: var(--ink-300); }
.tcard .t { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.tcard .m { font-size: 12px; color: var(--ink-500); display:flex; gap: 8px; align-items:center; flex-wrap: wrap; }
.tcard .pri { width: 6px; height: 6px; border-radius: 50%; display:inline-block; }

/* Code block */
pre.code { background: var(--ink-900); color: #DCE4EE; padding: 14px 16px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; overflow-x:auto; margin: 0; line-height: 1.55; }

/* Divider */
hr.div { border: 0; border-top: 1px solid var(--ink-200); margin: 20px 0; }

/* Tooltip-ish note */
.note { font-size: 12px; color: var(--ink-500); display:flex; gap: 6px; align-items:flex-start; }
.note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--ink-400); }

/* =========================================================================
   AUTH / PUBLIC LAYOUT
   ========================================================================= */
.auth { min-height: 100vh; display:grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: var(--ink); color:#C9D3DF; padding: 48px; display:flex; flex-direction:column; }
.auth .side .logo { width: 190px; }
.auth .side h2 { color:#fff; font-size: 30px; line-height: 1.2; margin-top: auto; letter-spacing: -.02em; }
.auth .side p { font-size: 15px; margin-top: 12px; max-width: 420px; color: #B4BFCB; }
.auth .side ul { list-style:none; padding:0; margin: 24px 0 0; display:grid; gap: 10px; }
.auth .side li { display:flex; gap: 10px; align-items:center; font-size: 14px; color:#DCE4EE; }
.auth .side li svg { width: 18px; height: 18px; color: var(--green); }
.auth .side .foot { margin-top: auto; font-size: 12px; color: var(--ink-400); }
.auth .panel { display:flex; align-items:center; justify-content:center; padding: 40px 24px; background: var(--ink-50); }
.auth .box { width: 100%; max-width: 440px; background:#fff; border:1px solid var(--ink-200); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth .box.wide { max-width: 760px; }
.auth .box h1 { font-size: 22px; margin-bottom: 4px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .side { display:none; } }

/* =========================================================================
   EMPLOYEE PORTAL (phone-first) — EMP 01
   ========================================================================= */
.emp-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; display:flex; flex-direction:column; box-shadow: 0 0 0 1px var(--ink-200); position: relative; }
.emp-top { background: var(--ink); color: #fff; padding: 14px 18px 12px; display:flex; align-items:center; gap: 10px; position: sticky; top: 0; z-index: 10; }
.emp-top img { width: 26px; height: 26px; }
.emp-top .t { font-weight: 600; font-size: 16px; }
.emp-top .t small { display:block; font-weight: 400; font-size: 11.5px; color: #B4BFCB; }
.emp-top .icon-btn { margin-left:auto; color: #fff; }
.emp-top .icon-btn:hover { background: rgba(255,255,255,.1); color:#fff; }
.emp-body { flex:1; padding: 16px; background: var(--ink-50); padding-bottom: 88px; }
.emp-nav { position: sticky; bottom: 0; background:#fff; border-top: 1px solid var(--ink-200); display:grid; grid-template-columns: repeat(6, 1fr); z-index: 10; }
.emp-nav a { display:flex; flex-direction:column; align-items:center; gap: 3px; padding: 10px 2px 8px; font-size: 10.5px; font-weight: 600; color: var(--ink-400); text-decoration:none; }
.emp-nav a svg { width: 20px; height: 20px; }
.emp-nav a.active { color: var(--green-700); }
.emp-nav a .pip { position:absolute; margin-left: 16px; margin-top: -2px; width: 8px; height:8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.emp-card { background:#fff; border:1px solid var(--ink-200); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.emp-card h3 { font-size: 14px; margin-bottom: 8px; }
.emp-hero { background: var(--ink); color:#fff; border-radius: 14px; padding: 18px; margin-bottom: 12px; position: relative; overflow:hidden; }
.emp-hero::after { content:""; position:absolute; right:-30px; top:-30px; width: 140px; height: 140px; border-radius:50%; background: var(--green); opacity: .18; }
.emp-hero .big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.emp-hero .sub { color:#B4BFCB; font-size: 12.5px; }
.emp-row { display:flex; align-items:center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: 13.5px; }
.emp-row:last-child { border-bottom:0; }
.emp-row .txt { flex:1; min-width:0; } .emp-row .txt strong { display:block; } .emp-row .txt span { font-size: 12px; color: var(--ink-500); }
.emp-row .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.emp-page-title { font-size: 18px; font-weight: 700; margin: 4px 0 12px; }
.emp-seg { display:flex; background: var(--ink-100); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.emp-seg a, .emp-seg button { flex:1; text-align:center; padding: 7px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-500); border: 0; background: transparent; border-radius: 8px; text-decoration:none; }
.emp-seg .on { background:#fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.day-strip { display:grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 12px; }
.day-strip a { text-align:center; padding: 8px 0; border-radius: 10px; background:#fff; border: 1px solid var(--ink-200); font-size: 11px; color: var(--ink-500); text-decoration:none; }
.day-strip a strong { display:block; font-size: 15px; color: var(--ink); }
.day-strip a.on { background: var(--green); border-color: var(--green); color:#fff; } .day-strip a.on strong { color:#fff; }
.day-strip a .m { display:block; width: 5px; height:5px; border-radius:50%; background: var(--green); margin: 3px auto 0; }
.day-strip a.on .m { background:#fff; }
.fab { position: fixed; right: max(16px, calc(50% - 240px + 16px)); bottom: 76px; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-lg); border:0; cursor:pointer; z-index: 15; }
.fab svg { width: 24px; height: 24px; }
.checklist { list-style:none; padding:0; margin:0; }
.checklist li { display:flex; gap: 10px; align-items:flex-start; padding: 10px 0; border-bottom: 1px solid var(--ink-100); font-size: 13.5px; }
.checklist li:last-child { border-bottom:0; }
.checklist input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 1px; }
.checklist .req-tag { font-size: 10.5px; color: var(--red-700); font-weight: 600; margin-left: 4px; }
.upload-box { border: 2px dashed var(--ink-300); border-radius: 12px; padding: 22px; text-align:center; color: var(--ink-500); font-size: 13px; background: #fff; }
.upload-box svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 6px; }
@media (min-width: 720px) {
  body.emp-bg { background: var(--ink-100); }
  body.emp-bg .emp-shell { margin: 28px auto; min-height: calc(100vh - 56px); border-radius: 28px; overflow:hidden; box-shadow: var(--shadow-lg); }
  body.emp-bg .emp-nav { position: sticky; }
  body.emp-bg .fab { position: absolute; right: 16px; bottom: 76px; }
}

/* =========================================================================
   TABLET KIOSK (Android) — ATT 01–04
   ========================================================================= */
.kiosk { min-height: 100vh; background: var(--ink); color:#fff; display:flex; flex-direction:column; font-size: 16px; }
.kiosk-top { display:flex; align-items:center; gap: 14px; padding: 18px 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kiosk-top img { height: 34px; }
.kiosk-top .loc { font-size: 15px; color:#B4BFCB; }
.kiosk-top .loc strong { color:#fff; display:block; font-size: 16px; }
.kiosk-top .clock { margin-left:auto; text-align:right; }
.kiosk-top .clock .t { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kiosk-top .clock .d { font-size: 13px; color:#B4BFCB; margin-top: 4px; }
.kiosk-body { flex:1; display:grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 40px; align-items:center; }
.kiosk-body.single { grid-template-columns: 1fr; place-items: center; }
.kiosk h1 { color:#fff; font-size: 30px; letter-spacing:-.02em; }
.kiosk .lead { color:#B4BFCB; font-size: 16px; }
.pin-display { display:flex; gap: 14px; margin: 24px 0; }
.pin-display span { width: 52px; height: 60px; border-radius: 12px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-size: 30px; font-weight: 700; }
.pin-display span.filled { border-color: var(--green); color: var(--green); }
.pin-pad { display:grid; grid-template-columns: repeat(3, 92px); gap: 14px; }
.pin-pad button { width: 92px; height: 78px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color:#fff; font: inherit; font-size: 30px; font-weight: 600; cursor:pointer; }
.pin-pad button:active { background: rgba(255,255,255,.18); }
.pin-pad button.fn { font-size: 15px; font-weight: 600; color:#B4BFCB; }
.pin-pad button.go { background: var(--green); border-color: var(--green); color:#fff; font-size: 17px; }
.kiosk-status { display:flex; align-items:center; gap: 10px; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.kiosk-status.online { background: rgba(10,184,132,.14); color: var(--green); }
.kiosk-status.offline { background: rgba(252,185,56,.16); color: var(--yellow); }
.kiosk-status.failed { background: rgba(252,102,86,.16); color: var(--red); }
.kiosk-banner { display:flex; align-items:center; gap: 16px; background: var(--yellow); color: var(--ink); padding: 12px 28px; font-weight: 600; font-size: 15px; }
.kiosk-banner .sep { opacity: .35; }
.kiosk-banner .ml { margin-left:auto; font-weight: 500; font-size: 13.5px; }
.kiosk-foot { display:flex; align-items:center; gap: 20px; padding: 14px 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color:#8493A5; }
.kiosk-foot .ml { margin-left:auto; }
.cam { width: 100%; aspect-ratio: 4/3; border-radius: 20px; background: radial-gradient(ellipse at 50% 40%, #34475F, #22334A 60%, #1A2838); border: 2px solid rgba(255,255,255,.12); position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.cam .frame { width: 55%; height: 78%; border: 3px dashed var(--green); border-radius: 50% 50% 46% 46%; opacity: .8; }
.cam .hint { position:absolute; bottom: 16px; left:0; right:0; text-align:center; font-size: 14px; color:#DCE4EE; }
.cam .badge-cam { position:absolute; top: 14px; left: 14px; background: rgba(0,0,0,.45); color:#fff; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; display:flex; align-items:center; gap: 6px; }
.cam .badge-cam i { width: 8px; height: 8px; border-radius:50%; background: var(--red); display:inline-block; }
.kiosk .who { display:flex; align-items:center; gap: 16px; margin: 20px 0; }
.kiosk .who .avatar { width: 56px; height:56px; flex-basis: 56px; font-size: 20px; background: var(--green); color:#fff; }
.kiosk .who .n { font-size: 22px; font-weight: 700; } .kiosk .who .s { color:#B4BFCB; font-size: 14px; }
.kiosk .choice { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.kiosk .choice button { height: 96px; border-radius: 18px; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color:#fff; font: inherit; font-size: 20px; font-weight: 700; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 4px; }
.kiosk .choice button small { font-size: 13px; font-weight: 500; color:#B4BFCB; }
.kiosk .choice button.in { background: var(--green); border-color: var(--green); }
.kiosk .choice button.in small { color: #E8F9F2; }
.kiosk .choice button[disabled] { opacity: .35; cursor:not-allowed; }
.big-check { width: 120px; height: 120px; border-radius: 50%; background: var(--green); display:flex; align-items:center; justify-content:center; margin: 0 auto 20px; box-shadow: 0 0 0 16px rgba(10,184,132,.15); }
.big-check svg { width: 64px; height: 64px; color:#fff; }
.kiosk .countdown { color:#8493A5; font-size: 14px; margin-top: 18px; }

/* =========================================================================
   PROTOTYPE HELPERS (index page annotations)
   ========================================================================= */
.proto-note { position: fixed; right: 16px; bottom: 16px; z-index: 50; }
.proto-note details { background: #fff; border: 1px solid var(--ink-200); border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 12.5px; max-width: 340px; }
.proto-note summary { padding: 8px 12px; cursor:pointer; font-weight: 600; color: var(--ink-700); list-style:none; display:flex; align-items:center; gap: 8px; }
.proto-note summary::-webkit-details-marker { display:none; }
.proto-note .pn-body { padding: 0 12px 12px; color: var(--ink-500); border-top: 1px solid var(--ink-100); padding-top: 10px; }
.proto-note .pn-body a { display:block; }
@media print { .proto-note, .sidebar, .topbar .actions { display:none; } }

/* =========================================================================
   ADDITIONS v1.1 — classes promoted from page-local styles during prototype build
   ========================================================================= */
/* Wizard steps that also act as tabs; big amounts; activation codes */
.steps .step[data-tab] { cursor: pointer; }
.steps .step.active { color: var(--ink); font-weight: 600; }
.steps .step.active::before { border-color: var(--green); color: var(--green-700); }
.tabs.bare { display: block; border: 0; overflow: visible; margin: 0 0 24px; }
.price-big { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.act-code, .code { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: .24em; color: var(--ink); background: var(--ink-50); border: 1px dashed var(--ink-300); border-radius: 10px; padding: 14px 0 14px .24em; text-align: center; }
/* Table row states */
.table tr[data-href] { cursor: pointer; }
.table tr.archived td, .table tr.inactive td { color: var(--ink-400); }
.table tr.archived .avatar { background: var(--ink-50); color: var(--ink-300); }
.table tr.ok td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.table tr.error td:first-child { box-shadow: inset 3px 0 0 var(--red); }
/* Availability summary */
.avail { display:grid; grid-template-columns: 90px 1fr 110px; gap: 6px 12px; font-size: 13.5px; align-items:center; }
.avail .d { font-weight: 600; color: var(--ink-700); }
.avail .w { display:flex; gap: 6px; flex-wrap: wrap; }
.avail .w span { padding: 3px 9px; border-radius: 6px; background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: 12.5px; border: 1px solid var(--green-100); }
.avail .w span.pref { background: var(--green); color: #fff; border-color: var(--green); }
.avail .w span.off { background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--ink-100) 4px, var(--ink-100) 8px); color: var(--ink-400); border-color: var(--ink-200); font-weight: 500; }
/* Column-mapping chips (import) */
.map { display:flex; gap: 8px; flex-wrap: wrap; }
.map span { display:inline-flex; align-items:center; gap: 6px; font-size: 12px; background: #fff; border: 1px solid var(--ink-200); border-radius: 6px; padding: 3px 8px; }
.map span b { color: var(--ink-500); font-weight: 500; }
/* Side-by-side explainer */
.compare { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare .col { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 16px 18px; }
.compare h4 { font-size: 13.5px; margin-bottom: 6px; display:flex; align-items:center; gap: 8px; }
.compare ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-700); }
.compare li { margin-bottom: 4px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
/* Pricing output */
.calc-out { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }
.calc-out .row { display:flex; justify-content:space-between; padding: 5px 0; border-bottom: 1px solid var(--ink-100); }
.calc-out .row:last-child { border-bottom: 0; }
.calc-out .total { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.big-amt { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.big-amt small { font-size: 13px; font-weight: 500; color: var(--ink-400); margin-left: 6px; }
/* Setting-row controls */
.setting-row .ctl { display:flex; align-items:center; gap: 10px; flex: 0 0 auto; }
.setting-row select, .setting-row input[type=text], .setting-row input[type=date], .setting-row input[type=number] { width: 220px; }
.setting-row .txt > span { font-size: 12.5px; color: var(--ink-500); }
.setting-row .txt span.badge { font-size: 11px; vertical-align: middle; }
.setting-row .txt span.badge-yellow { color: var(--yellow-700); }
.rule-in { width: 132px; flex: 0 0 132px; } .rule-in input { text-align: right; } .rule-sel { width: 220px; flex: 0 0 220px; }
.locked { display:inline-flex; align-items:center; gap: 4px; font-size: 11.5px; color: var(--ink-400); }
.locked svg { width: 12px; height: 12px; }
/* Before -> after diff cells */
.diff { font-size: 12.5px; line-height: 1.45; }
.diff .from { color: var(--ink-400); text-decoration: line-through; }
.diff .arrow { color: var(--ink-300); margin: 0 4px; }
.diff .to { color: var(--ink); font-weight: 600; }
.dl.compact { grid-template-columns: 110px 1fr; gap: 5px 10px; }
/* Schedule grid extras */
.sched .grp { grid-column: 1 / -1; background: var(--ink-50); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-500); min-height: auto; padding: 6px 10px; }
.sched .emp .nm { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.sched .span7 { grid-column: 2 / -1; display:flex; align-items:center; }
.shift .lk { display:inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; }
.shift .lk svg { width: 11px; height: 11px; display:block; }
.shift-pending { background: var(--yellow-50); color: var(--yellow-700); border-style: dashed; border-color: var(--yellow); font-weight: 500; }
.cov-day { display:grid; grid-template-columns: 74px 1fr; gap: 6px 12px; align-items:center; padding: 9px 0; border-bottom: 1px solid var(--ink-100); font-size: 12.5px; }
.cov-day:last-child { border-bottom: 0; }
.cov-day .dn { font-weight: 600; } .cov-day .dn small { display:block; font-weight: 500; color: var(--ink-400); font-size: 11px; }
.cov-day .st { grid-column: 2; font-size: 12px; color: var(--ink-500); }
/* Validation rows + priority list */
.vrow { display:flex; align-items:flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ink-100); font-size: 13px; }
.vrow:last-child { border-bottom: 0; }
.vrow .ok, .vrow .warn { width: 20px; height: 20px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center; flex: 0 0 20px; }
.vrow .ok { background: var(--green-50); color: var(--green-700); } .vrow .warn { background: var(--yellow-50); color: var(--yellow-700); }
.vrow .ok svg, .vrow .warn svg { width: 12px; height: 12px; }
.vrow strong { display:block; font-size: 13px; } .vrow span { color: var(--ink-500); font-size: 12.5px; }
.prio { list-style: none; margin: 0; padding: 0; counter-reset: p; display:grid; gap: 6px; }
.prio li { counter-increment: p; display:flex; gap: 10px; align-items:center; font-size: 13px; }
.prio li::before { content: counter(p); width: 20px; height: 20px; border-radius: 50%; background: var(--ink-100); color: var(--ink-700); font-size: 11px; font-weight: 700; display:inline-flex; align-items:center; justify-content:center; flex: 0 0 20px; }
.prio li.hard::before { background: var(--ink); color: #fff; }
/* Kanban / task evidence */
.tcard .m svg { width: 13px; height: 13px; color: var(--ink-400); }
.tcard .m .ev { display:inline-flex; align-items:center; gap: 3px; }
.tcard .who { display:flex; align-items:center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-700); }
.checklist .at { margin-left: auto; font-size: 12px; color: var(--ink-400); white-space: nowrap; }
.evidence { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence .ph { display:flex; gap: 14px; align-items:flex-start; }
.evidence .ph .photo.lg { width: 140px; height: 140px; flex: 0 0 140px; }
.evidence .cap strong { display:block; font-size: 13.5px; }
.evidence .cap span { display:block; font-size: 12.5px; color: var(--ink-500); }
@media (max-width: 700px) { .evidence { grid-template-columns: 1fr; } }
/* Kiosk status / dashboard screens */
.kiosk-body.stack { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 18px; padding: 22px 40px 28px; }
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.k-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; }
.k-card h3 { color: #fff; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.k-card h3 svg { width: 18px; height: 18px; color: #8493A5; }
.k-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.k-kv:last-child { border-bottom: 0; }
.k-kv span:first-child { color: #B4BFCB; }
.k-num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.k-num small { display: block; font-size: 12.5px; color: #8493A5; font-weight: 500; margin-top: 2px; }
.k-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.k-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8493A5; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.k-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.k-table tr:last-child td { border-bottom: 0; }
.kiosk .modal { color: var(--ink); }
@media (max-width: 900px) { .k-grid { grid-template-columns: 1fr; } .kiosk-body { grid-template-columns: 1fr; padding: 20px; } .pin-pad { grid-template-columns: repeat(3, 76px); } .pin-pad button { width: 76px; height: 64px; } }
