/* StockGro Attendance — design system */
@font-face { font-family: "Inter"; src: url("InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f9fafb;
  --border: #e4e7ec; --border-strong: #d0d5dd;
  --text: #101828; --text-2: #344054; --muted: #667085; --faint: #98a2b3;
  --primary: #1f4fd8; --primary-hover: #1a43b8; --primary-50: #eef3ff; --primary-100: #dbe6fe;
  --sidebar: #0c1631; --sidebar-2: #15224a; --sidebar-text: #aeb9d6; --sidebar-muted: #6c7aa1;
  --office: #067647; --office-bg: #ecfdf3; --office-bd: #abefc6; --office-fill: #c6f1d6;
  --wfh: #5925dc; --wfh-bg: #f4f3ff; --wfh-bd: #d9d6fe; --wfh-fill: #dcd8fd;
  --leave: #b54708; --leave-bg: #fffaeb; --leave-bd: #fedf89; --leave-fill: #fde5b4;
  --danger: #b42318; --danger-bg: #fef3f2; --danger-bd: #fecdca;
  --holiday: #175cd3; --holiday-bg: #eff8ff; --holiday-bd: #b2ddff;
  --warning: #b54708; --warning-bg: #fffaeb; --warning-bd: #fedf89;
  --success: #067647; --success-bg: #ecfdf3; --success-bd: #abefc6;
  --radius: 10px; --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .06);
  --p-office: var(--office-fill); --p-wfh: var(--wfh-fill); --p-leave: var(--leave-fill);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11", "ss01";
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; } a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; } h2 { font-size: 15px; font-weight: 600; } h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 12px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.lg { width: 20px; height: 20px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 16px; }
.hidden { display: none !important; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 20px; color: #fff; }
.brand .logo-stockgro { height: 28px; width: auto; } .brand .logo-recro { height: 24px; width: auto; }
.brand-divider { width: 1px; height: 20px; background: rgba(255,255,255,.18); display: inline-block; flex: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #3b6cf6, #1f4fd8); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.brand-name { font-weight: 650; font-size: 15px; line-height: 1.15; } .brand-sub { font-size: 12px; color: var(--sidebar-muted); font-weight: 500; }
.nav-section { padding: 14px 12px 4px; } .nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sidebar-muted); padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--sidebar-text); font-weight: 500; margin-bottom: 1px; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: var(--sidebar-2); color: #fff; box-shadow: inset 2px 0 0 #5b86ff; }
.nav-item .icon { opacity: .9; }
.nav-count { margin-left: auto; background: #f04438; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.sidebar-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 99px; background: #2a3a6b; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.who { min-width: 0; flex: 1; } .who b { display: block; color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 12px; color: var(--sidebar-muted); }
.icon-btn { background: none; border: 0; color: var(--sidebar-text); padding: 7px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; }
.scrim { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .nav-toggle:checked ~ .app .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .nav-toggle:checked ~ .app .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 22, 49, .45); z-index: 40; }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--sidebar); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 30; }
  .topbar .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .topbar label { color: #fff; padding: 6px; border-radius: 7px; cursor: pointer; display: grid; }
  .content { padding: 20px 16px 48px; }
}

/* ---------- page header ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-header p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-body { padding: 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); color: var(--muted); font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.kpi-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; flex: none; background: var(--faint); }
.dot.office { background: var(--office); } .dot.wfh { background: var(--wfh); } .dot.leave { background: #dc6803; }
.dot.danger { background: #f04438; } .dot.warning { background: #f79009; } .dot.holiday { background: #2e90fa; } .dot.neutral { background: var(--faint); }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-value { font-size: 22px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 14px;
  font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.3; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:focus-visible, .input:focus, input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--primary-100); border-color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); } .btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); box-shadow: var(--shadow-sm); } .btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-success { background: var(--office); color: #fff; } .btn-success:hover { background: #05603a; color: #fff; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger-bd); } .btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-danger-solid { background: #d92d20; color: #fff; } .btn-danger-solid:hover { background: var(--danger); color: #fff; }
.btn-ghost { background: none; color: var(--text-2); } .btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; } .btn-sm .icon { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.inline { display: inline; }

/* ---------- forms ---------- */
label, .label { display: block; font-weight: 500; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
input, select, textarea { font: inherit; font-size: 14px; width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
input[type=checkbox], input[type=radio] { width: auto; box-shadow: none; accent-color: var(--primary); }
input[type=file] { padding: 6px; }
textarea { resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row > .field { flex: 1 1 170px; } .form-row > .field.wide { flex-basis: 260px; } .form-row > .shrink { flex: 0 0 auto; }
.field + .field { margin-top: 0; }
.form-stack .field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input-sm { padding: 5px 9px; font-size: 13px; }
@media (max-width: 560px) { .form-row > * { flex-basis: 100% !important; } }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 16px; font-size: 13.5px; }
.alert .icon { margin-top: 1px; }
.alert-ok, .alert-success { background: var(--success-bg); border-color: var(--success-bd); color: #05603a; }
.alert-error, .alert-danger { background: var(--danger-bg); border-color: var(--danger-bd); color: #912018; }
.alert-info { background: var(--holiday-bg); border-color: var(--holiday-bd); color: #194185; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-bd); color: #93370d; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid; line-height: 18px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill.office { color: var(--office); background: var(--office-bg); border-color: var(--office-bd); }
.pill.wfh { color: var(--wfh); background: var(--wfh-bg); border-color: var(--wfh-bd); }
.pill.leave { color: var(--leave); background: var(--leave-bg); border-color: var(--leave-bd); }
.pill.none { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.pill.holiday { color: var(--holiday); background: var(--holiday-bg); border-color: var(--holiday-bd); }
.pill.pending { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-bd); }
.pill.approved { color: var(--success); background: var(--success-bg); border-color: var(--success-bd); }
.pill.rejected, .pill.danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-bd); }
.pill.plain::before { display: none; }
.pill-half { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pill .h { font-weight: 500; opacity: .75; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.tag.admin { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfd; }
.table .person b { display: block; font-weight: 600; color: var(--text); } .table .person span { font-size: 12.5px; color: var(--muted); }
.table td.actions-cell { text-align: right; white-space: nowrap; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.table.compact td { padding: 8px 14px; } .table.compact th { padding: 8px 14px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 28px; height: 28px; color: var(--faint); margin-bottom: 8px; }

/* ---------- toolbars / segmented nav ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.period { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.period a { padding: 7px 9px; color: var(--text-2); display: grid; } .period a:hover { background: var(--surface-2); }
.period input { border: 0; box-shadow: none; width: auto; padding: 6px 4px; font-weight: 600; font-size: 13.5px; background: transparent; }
.period input:focus { box-shadow: none; }

/* ---------- attendance option tiles ---------- */
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.option { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: #fff; cursor: pointer; font: inherit; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s, transform .06s; width: 100%; }
.option:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.option:active { transform: translateY(1px); }
.option-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.option-icon .icon { width: 21px; height: 21px; }
.option.office .option-icon { background: var(--office-bg); color: var(--office); }
.option.wfh .option-icon { background: var(--wfh-bg); color: var(--wfh); }
.option.leave .option-icon { background: var(--leave-bg); color: var(--leave); }
.option b { display: block; font-size: 15px; font-weight: 600; } .option span.sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) { .options { grid-template-columns: 1fr; } }
.today-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.today-status .big-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--success-bg); color: var(--success); }
.today-status .big-icon .icon { width: 24px; height: 24px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
details.disclosure > summary { cursor: pointer; list-style: none; color: var(--primary); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--primary-100); background: var(--primary-50); font-size: 13px; line-height: 1; }
details.disclosure[open] > summary::before { content: "−"; }
.missed-list { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--danger-bd); background: var(--danger-bg); color: var(--danger); font-size: 12.5px; font-weight: 600; }
.chip:hover { background: #fee4e2; color: var(--danger); }
.chip.holiday { border-color: var(--holiday-bd); background: var(--holiday-bg); color: var(--holiday); }

/* ---------- calendar ---------- */
.c-office { background: var(--office-fill); color: #05603a; } .c-wfh { background: var(--wfh-fill); color: #3e1c96; } .c-leave { background: var(--leave-fill); color: #93370d; }
.c-half { background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); color: var(--text); }
.c-missing { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1.5px #fda29b; }
.c-weekend { background: #f2f4f7; color: var(--faint); } .c-holiday { background: var(--holiday-bg); color: var(--holiday); box-shadow: inset 0 0 0 1px var(--holiday-bd); }
.c-before, .c-future { background: #fff; color: var(--faint); }
.c-open { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--primary); }
.c-pending { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 4px, transparent 4px 8px); }
.c-half.c-pending { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 4px, transparent 4px 8px), linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .hd { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 4px; }
.cal .day { min-height: 84px; border-radius: 8px; padding: 8px 9px; display: flex; flex-direction: column; color: inherit; border: 1px solid rgba(16,24,40,.06); min-width: 0; overflow: hidden; }
.cal a.day:hover { filter: brightness(.97); box-shadow: 0 0 0 2px var(--primary-100); }
.cal .n { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.cal .today .n { background: var(--primary); color: #fff; border-radius: 99px; padding: 0 7px; align-self: flex-start; }
.cal .lbl { font-size: 12px; margin-top: auto; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .lbl .s { display: none; }
@media (max-width: 600px) { .cal { gap: 3px; } .cal .day { min-height: 56px; padding: 5px; } .cal .lbl { font-size: 11px; font-weight: 700; } .cal .lbl .l { display: none; } .cal .lbl .s { display: inline; } .cal .hd { font-size: 10px; } }

.matrix { border-collapse: separate; border-spacing: 3px; width: auto; }
.matrix th, .matrix td { padding: 0; text-align: center; }
.matrix th.d { font-size: 10.5px; font-weight: 600; color: var(--muted); min-width: 26px; line-height: 1.25; padding-bottom: 4px; }
.matrix th.d.off { color: #c0c6d1; } .matrix th.d.td { color: var(--primary); }
.matrix td.c a, .matrix td.c span { display: block; width: 26px; height: 26px; line-height: 26px; border-radius: 6px; font-size: 10.5px; font-weight: 700; color: inherit; }
.matrix td.c .two { font-size: 9px; letter-spacing: -.3px; }
.matrix td.c a:hover { box-shadow: 0 0 0 2px var(--primary); }
.matrix .nm { position: sticky; left: 0; background: var(--surface); text-align: left; padding-right: 12px; white-space: nowrap; z-index: 1; }
.matrix .nm a { font-weight: 600; color: var(--text); } .matrix .nm a:hover { color: var(--primary); }
.matrix .tot { font-size: 12.5px; min-width: 38px; font-weight: 600; font-variant-numeric: tabular-nums; }
.matrix th.tot { font-size: 11px; color: var(--muted); }
.matrix .sep { border-left: 1px solid var(--border); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background:
  radial-gradient(1200px 600px at 50% -10%, #e8eefc 0%, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px 30px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 20px; margin-bottom: 20px; }
.auth-brands { display: flex; align-items: center; justify-content: center; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.auth-brands .logo-stockgro { height: 34px; width: auto; }
.auth-brands .logo-recro { height: 30px; width: auto; }
.auth-divider { width: 1px; height: 30px; background: var(--border-strong); display: inline-block; }
@media (max-width: 480px) { .auth-card { padding: 28px 22px 24px; } .auth-brands { gap: 14px; } .auth-brands .logo-stockgro { height: 28px; } .auth-brands .logo-recro { height: 25px; } }

/* ---------- report (printable) ---------- */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--text); margin-bottom: 20px; }
.doc-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.doc-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.meta { width: auto; } .meta td { padding: 2px 0 2px 18px; font-size: 13px; } .meta td:first-child { color: var(--muted); padding-left: 0; }
.doc-kpis { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
.doc-kpis div { padding: 10px 12px; border-left: 1px solid var(--border); } .doc-kpis div:first-child { border-left: 0; }
.doc-kpis b { display: block; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; } .doc-kpis span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .doc { padding: 18px; } .doc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .doc-kpis div:nth-child(3n+1) { border-left: 0; } .doc-kpis div { border-top: 1px solid var(--border); } }
.days th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.days td { padding: 7px 10px; font-size: 13px; border-bottom: 1px solid var(--border); }
.days td:nth-child(-n+6) { white-space: nowrap; }
.days tr.s-weekend td, .days tr.s-before td, .days tr.s-future td { color: var(--faint); }
.days tr.s-holiday td { background: var(--holiday-bg); color: #194185; }
.days tr.s-missing td { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.doc-foot { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11px; }
  .sidebar, .topbar, .noprint, .alert { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .doc-kpis { grid-template-columns: repeat(9, minmax(0, 1fr)) !important; } .doc-kpis div { border-top: 0 !important; border-left: 1px solid var(--border) !important; } .doc-kpis div:first-child { border-left: 0 !important; }
  .doc-kpis b { font-size: 15px; } .days td, .days th { padding: 4px 6px; font-size: 10px; } .days tr { break-inside: avoid; }
  .card { box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
