:root {
  --navy: #0F2D6B;
  --navy-2: #0B2551;
  --primary: #123F7D;
  --primary-dark: #0B2A5B;
  --primary-soft: #E6EEFC;
  --accent: #4FC3F7;
  --amber: #F2B544;
  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --text: #13202E;
  --muted: #566577;
  --line: #E2E7EC;
  --line-2: #CBD4DD;
  --ok-bg: #EAF7F0; --ok: #1C6E46; --ok-bd: #9FD1B6;
  --warn-bg: #FFF1D6; --warn: #6B4300; --warn-bd: #D99A2B;
  --bad-bg: #FEF3F2; --bad: #B42318; --bad-bd: #F3C2C2;
  --busy-bg: #E3E8EE; --busy: #22303F; --busy-bd: #8C99A8;
  --use-bg: #FFEDD5; --use: #8A3207;
  --radius: 14px;
  --sidebar-w: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Prompt', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; color: #fff; background: linear-gradient(90deg, #0B2A5B 0%, #12437A 55%, #1B5E8F 100%); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.brand-name { font-weight: 700; font-size: 19px; }
.brand-sub { font-size: 12px; color: #B8C8EA; }
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.badge-dot { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 10px; color: #fff; text-decoration: none; text-align: right; }
.user-chip:hover { background: rgba(255,255,255,0.1); color: #fff; }
.user-chip .n { font-weight: 600; font-size: 14px; }
.user-chip .r { font-size: 12px; color: #B8C8EA; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: #fff; color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.menu-btn { display: none; }

.shell { display: flex; min-height: calc(100vh - 64px); background: linear-gradient(90deg, #0B2551 0, #0B2551 var(--sidebar-w), var(--bg) var(--sidebar-w)); }
.sidebar { width: var(--sidebar-w); flex: none; background: linear-gradient(180deg, #10336B 0%, #0B2551 100%); color: #D6E2F3; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: #D6E2F3; text-decoration: none; font-size: 15px; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav-link svg { flex: none; }
.nav-link .count { margin-left: auto; background: var(--amber); color: var(--navy); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
.nav-sep { height: 1px; background: rgba(255,255,255,0.15); margin: 10px 4px; }
.nav-label { font-size: 12px; color: #9FB4D6; padding: 10px 14px 4px; }
.version-pill { margin-top: auto; align-self: flex-start; margin-left: 6px; padding: 4px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #8FD3F5; font-size: 12px; font-weight: 600; }
.main { flex: 1; min-width: 0; padding: 26px 30px 24px; display: flex; flex-direction: column; gap: 18px; }
.footer { margin-top: auto; padding-top: 18px; border-top: 1px solid #D5DCE3; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer .links { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.scrim { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 700; color: #0F2547; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.factory-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 22px; background: #EAEFF6; font-size: 14px; color: #13202E; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 17px; }
.grid { display: grid; gap: 14px; }
.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)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .wide { flex: 3 1 480px; min-width: 0; }
.split > .narrow { flex: 2 1 300px; min-width: 0; }

.kpi { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 700; }
.kpi .s { font-size: 12px; color: var(--muted); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--primary); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: #D5DBE1; color: #5B6876; cursor: not-allowed; border-color: transparent; }
.btn.secondary { background: #fff; color: var(--primary); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--primary-soft); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.success { background: var(--ok); }
.btn.success:hover { background: #155636; }
.btn.orange { background: #C2410C; }
.btn.orange:hover { background: #9A3412; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.icon { width: 44px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.field .err { font-weight: 500; color: var(--bad); font-size: 13px; }
.req { color: var(--bad); }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; font-weight: 400; color: var(--text); }
.textarea { padding: 10px 12px; min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible, .nav-link:focus-visible, .icon-btn:focus-visible { outline: 3px solid #9DB8F0; outline-offset: 1px; }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--bad); background: var(--bad-bg); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.seg { display: inline-flex; background: #E3E8EE; border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #3B4A5C; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tab { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; color: #3B4A5C; font-size: 14px; font-weight: 600; cursor: pointer; }
.pill-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 8px; white-space: nowrap; background: #EEF1F4; color: #3B4A5C; }
.chip.pending { background: var(--warn-bg); color: var(--warn); }
.chip.approved { background: var(--ok-bg); color: var(--ok); }
.chip.checked_in { background: var(--use-bg); color: var(--use); }
.chip.completed { background: #EEF1F4; color: #3B4A5C; }
.chip.rejected, .chip.cancelled, .chip.no_show, .chip.expired { background: var(--bad-bg); color: var(--bad); }
.chip.route-exec { background: #F3E8FF; color: #5B21B6; }
.chip.route-admin_mgr { background: #E6F0FA; color: #1E4E8C; }
.chip.route-none { background: var(--ok-bg); color: var(--ok); }
.chip.eq { background: #DCE7FB; color: #123F7D; font-weight: 500; }

/* ---------- Schedule timeline ---------- */
.date-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-label { min-width: 230px; text-align: center; display: flex; flex-direction: column; }
.date-label b { font-size: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: #3B4A5C; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid; display: inline-block; }
.tl-scroll { overflow-x: auto; }
.tl { min-width: 940px; }
.tl-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 110px; border-bottom: 1px solid #EDF1F4; }
.tl-head { background: #F8FAFB; border-bottom: 1px solid var(--line); }
.tl-head .hours { display: flex; }
.tl-head .hours div { padding: 10px 0 10px 6px; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); }
.tl-room { padding: 12px 18px; display: flex; flex-direction: column; gap: 3px; }
.tl-room a { font-weight: 700; font-size: 16px; text-decoration: none; }
.tl-room .chip { align-self: flex-start; }
.tl-track { position: relative; margin: 10px 0; min-height: 56px; background-color: #F2FAF6; cursor: pointer; }
.tl-track.closed { background: repeating-linear-gradient(45deg, #EEF1F4 0, #EEF1F4 8px, #E3E7EB 8px, #E3E7EB 16px); cursor: default; }
.tl-grid { position: absolute; inset: 0; pointer-events: none; }
.tl-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: #DCE8E1; }
.tl-past { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(140,153,168,0.18); pointer-events: none; }
.tl-block { position: absolute; top: 4px; bottom: 4px; border: 1px solid; border-left-width: 4px; border-radius: 8px; padding: 3px 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; cursor: default; font-size: 12px; }
.tl-block b, .tl-block span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block.s-approved, .tl-block.s-checked_in { background: var(--busy-bg); border-color: var(--busy-bd); color: var(--busy); }
.tl-block.s-pending { background: var(--warn-bg); border-color: var(--warn-bd); color: #5E3B00; }
.tl-block.s-completed { background: #F1F3F6; border-color: #B7C1CC; color: #4A5A6B; border-style: dashed; }
.tl-block.mine { background: #DCE7FB; border-color: var(--primary); color: #0B2A5B; cursor: pointer; }
.tl-now { position: absolute; top: -10px; bottom: -10px; width: 2px; background: #C2410C; pointer-events: none; }
.tl-act { display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.closed-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.tl-foot { padding: 12px 18px; font-size: 13px; color: var(--muted); background: #F8FAFB; }

/* ---------- Room detail ---------- */
.gallery { display: flex; flex-direction: column; gap: 8px; }
.gallery .main-img { width: 100%; height: 320px; object-fit: cover; border-radius: 14px; background: #DDE5EA; display: block; }
.gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.gallery .thumbs button.on { border-color: var(--primary); }
.gallery .thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }
.img-placeholder { height: 260px; border-radius: 14px; background: #DDE5EA; border: 2px dashed #A9B7C3; display: flex; align-items: center; justify-content: center; color: #4A5A6B; text-align: center; padding: 16px; }
.stat-box { background: #F5F8FA; border-radius: 12px; padding: 12px 14px; }
.stat-box .l { font-size: 13px; color: var(--muted); }
.stat-box .v { font-size: 19px; font-weight: 700; }
.eq-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eq-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.eq-list li .q { margin-left: auto; font-size: 13px; color: var(--muted); }
.rules { background: #FFF7E6; border: 1px solid #F1D49A; border-radius: 12px; padding: 14px 16px; color: #3D2A06; }
.rules h3 { font-size: 16px; color: #5E3B00; margin-bottom: 6px; }
.rules ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.link-btn { border: 0; background: none; padding: 6px 0 0; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; }
.dl { margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl dt { font-size: 13px; color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.narrow .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border-left: 4px solid; }
.slot.free { background: #F2FAF6; border-color: #3BA272; }
.slot.busy { background: #F1F3F6; border-color: #8C99A8; }
.slot.pend { background: #FFF7E6; border-color: #D99A2B; }
.slot.past { background: #F7F8FA; border-color: #D5DCE3; color: #8A96A3; }
.slot .t { font-weight: 600; }
.slot .d { font-size: 13px; color: var(--muted); }

/* ---------- Lists ---------- */
.item { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.item .when { flex: 1 1 150px; display: flex; flex-direction: column; }
.item .when .room { font-size: 21px; font-weight: 700; }
.item .what { flex: 3 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item .what .title { font-size: 17px; font-weight: 700; }
.item .acts { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item .acts .row { justify-content: flex-end; }
.steps { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #EDF1F4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.steps li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #5B6876; }
.steps li::before { content: ''; height: 6px; border-radius: 3px; background: #E3E8EE; }
.steps li.done { color: var(--text); font-weight: 600; }
.steps li.done::before { background: var(--primary); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 14px; color: #3B4A5C; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 11px 12px; background: #F8FAFB; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { font-size: 14px; padding: 11px 12px; border-bottom: 1px solid #EDF1F4; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- Charts ---------- */
.bar-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 56px; align-items: center; gap: 12px; }
.bar { height: 14px; background: #EEF1F4; border-radius: 7px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #1C6EA4; border-radius: 7px; }
.bar.green > i { background: #3DBE7A; }
.bar.amber > i { background: #D99A2B; }
.vbars { display: flex; align-items: flex-end; gap: 14px; height: 200px; border-bottom: 1px solid var(--line-2); padding: 0 4px; }
.vbars .c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.vbars .c i { width: 100%; max-width: 54px; background: #1C6EA4; border-radius: 6px 6px 0 0; min-height: 2px; }
.vlabels { display: flex; gap: 14px; padding: 0 4px; }
.vlabels span { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.donut-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.donut { width: 170px; height: 170px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ''; position: absolute; inset: 28px; background: #fff; border-radius: 50%; }
.donut .c { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut .c b { font-size: 30px; }
.donut-legend { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.donut-legend div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EDF1F4; font-size: 14px; }
.donut-legend div b { margin-left: auto; }

/* ---------- Modal / toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 30, 55, 0.45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 640px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 19px; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: #0F2547; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.toast.error { background: var(--bad); }
.toast.success { background: var(--ok); }
.loading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; animation: load 1s linear infinite; }
@keyframes load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.spinner { padding: 50px; text-align: center; color: var(--muted); }
.notif-panel { position: absolute; right: 0; top: 52px; width: min(380px, calc(100vw - 24px)); max-height: 460px; overflow-y: auto; background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.25); z-index: 50; }
.notif-panel .h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.notif { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid #EDF1F4; background: #fff; cursor: pointer; }
.notif.unread { background: #F2F6FE; }
.notif b { display: block; font-size: 14px; }
.notif span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-side { flex: 1 1 420px; padding: 56px; color: #fff; background: linear-gradient(160deg, #10336B 0%, #0B2551 60%, #1B5E8F 100%); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.login-side h1 { font-size: 38px; line-height: 1.3; }
.login-side p { color: #C9D6F0; font-size: 17px; line-height: 1.7; margin: 0; }
.login-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.login-side li { display: flex; gap: 10px; align-items: center; }
.login-side li i { width: 10px; height: 10px; border-radius: 5px; display: inline-block; }
.login-main { flex: 1 1 420px; padding: 48px 20px; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Print ---------- */
@media print {
  .topbar, .sidebar, .footer, .no-print, .toasts { display: none !important; }
  .main { padding: 0; }
  body { background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: 64px; bottom: 0; height: auto; z-index: 40; transform: translateX(-100%); }
  .sidebar.open { transform: none; transition: transform .2s; }
  .shell { background: var(--bg); }
  .tl-row { grid-template-columns: 130px minmax(0, 1fr) 76px; }
  .tl { min-width: 860px; }
  .tl-room { padding: 10px 12px; }
  .scrim.open { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(0,0,0,0.35); z-index: 35; }
  .main { padding: 18px 16px; }
  .user-chip .txt { display: none; }
  .brand-sub { display: none; }
  .cols-3, .cols-2, .dl, .kv { grid-template-columns: minmax(0, 1fr); }
  .cols-5, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-list { grid-template-columns: minmax(0, 1fr); }
  .item .acts { align-items: stretch; }
  .item .acts .row { justify-content: stretch; }
  .login-side { padding: 32px 24px; }
  .login-side h1 { font-size: 28px; }
  .date-label { min-width: 0; flex: 1; }
}
