/* ===== نظام تحضير ومتابعة الموظفين — الأنماط ===== */
:root {
  --ink: #17282B; --ink-2: #4A5A5E; --ink-3: #7B8A8E;
  --green: #0F5A46; --green-deep: #0B3F31; --green-soft: #E4F0EA; --green-line: #BFD9CC;
  --gold: #C8A24B; --gold-soft: #F7EED7;
  --paper: #F5F7F4; --card: #FFFFFF; --mist: #EBF0ED; --line: #D3DCD6; --line-2: #E6ECE8;
  --ok: #1E7B4E; --ok-soft: #DDF2E6; --warn: #A66E12; --warn-soft: #FBEFD5; --bad: #B23A3A; --bad-soft: #F8DEDE; --info: #2C6E9B; --info-soft: #DDEBF5; --muted-soft: #EEF1EF;
  --sidebar-w: 248px; --radius: 10px; --radius-s: 6px;
  --font: "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(23,40,43,.06), 0 4px 16px rgba(23,40,43,.06);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); direction: rtl; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- الشكل العام ---- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--green-deep); color: #E9F2ED; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--gold); color: var(--green-deep); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.brand-title { font-weight: 700; font-size: .98rem; line-height: 1.25; }
.brand-sub { font-size: .74rem; color: rgba(233,242,237,.7); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: rgba(233,242,237,.85); text-decoration: none; font-size: .93rem; transition: background .15s; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.nav a .ic { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .badge { margin-inline-start: auto; }
.nav-sep { font-size: .72rem; color: rgba(233,242,237,.5); padding: 12px 10px 4px; }
.sidebar-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(233,242,237,.7); }
.sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #98A6A0; margin-inline-end: 6px; }
.sync-dot.on { background: #6FD39A; } .sync-dot.err { background: #F09595; } .sync-dot.warn { background: var(--gold); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 26px; background: var(--card); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.2rem; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 22px 26px 60px; max-width: 1360px; width: 100%; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--mist); font-size: .85rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.icon-btn { position: relative; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--mist); }
.icon-btn .dot { position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }

/* ---- الأزرار ---- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--mist); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; } .btn.primary:hover { background: var(--green-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }
.btn.danger { color: var(--bad); border-color: #E7BFBF; } .btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--mist); }
.btn.sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }

/* ---- البطاقات والشرائط ---- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-h h2 { flex: 1; }
.card-b { padding: 18px; }
.card-b.tight { padding: 0; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.figure { padding: 16px 18px; border-inline-start: 1px solid var(--line-2); }
.figure:first-child { border-inline-start: 0; }
.figure .v { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.figure .v small { font-size: .85rem; font-weight: 600; color: var(--ink-3); margin-inline-start: 4px; }
.figure .l { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }
.figure.warn .v { color: var(--warn); } .figure.bad .v { color: var(--bad); } .figure.info .v { color: var(--info); }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--ink-3); font-size: .85rem; }
.hint { font-size: .82rem; color: var(--ink-2); background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.hint.warn { background: var(--warn-soft); color: #6B4A08; } .hint.bad { background: var(--bad-soft); color: #6E2020; } .hint.ok { background: var(--ok-soft); color: #164A30; }

/* ---- الجداول ---- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: right; font-weight: 600; color: var(--ink-2); background: var(--mist); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:hover td { background: #FAFCFA; }
.tbl td.num, .tbl th.num { text-align: center; font-variant-numeric: tabular-nums; }
.tbl td.dim { color: var(--ink-3); }
.tbl tr.off td { background: #F7F8F7; color: var(--ink-3); }
.tbl tr.rev td { background: #FFF8F1; }
.tbl .actions { white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink-2); font-size: 1rem; margin-bottom: 4px; }

/* ---- الشارات ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--muted-soft); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.gold { background: var(--gold-soft); color: #7A5A12; } .badge.green { background: var(--green-soft); color: var(--green); }
.badge.count { background: var(--gold); color: var(--green-deep); padding: 0 7px; font-size: .72rem; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--mist); font-size: .8rem; font-variant-numeric: tabular-nums; margin: 1px; }
.chip.in { background: var(--green-soft); color: var(--green); font-weight: 700; } .chip.out { background: var(--info-soft); color: var(--info); font-weight: 700; }
.chip.dup { text-decoration: line-through; color: var(--ink-3); }

/* ---- النماذج ---- */
.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form.c1 { grid-template-columns: 1fr; } .form.c3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(15,90,70,.12); }
.field textarea { min-height: 76px; resize: vertical; }
.field .err { font-size: .78rem; color: var(--bad); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: #FBFCFB; }
.filters .field { min-width: 150px; gap: 3px; } .filters .field input, .filters .field select { padding: 6px 9px; font-size: .86rem; }
.filters .field label { font-size: .76rem; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; min-width: 240px; }
.search input { border: 0; outline: 0; flex: 1; background: transparent; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: .84rem; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--green); color: #fff; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; }

/* ---- النوافذ المنبثقة والتنبيهات ---- */
.overlay { position: fixed; inset: 0; background: rgba(23,40,43,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 14px; width: min(100%, var(--mw, 640px)); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s ease; }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-h h2 { flex: 1; }
.modal-b { padding: 20px; overflow: auto; }
.modal-f { display: flex; gap: 10px; justify-content: flex-start; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #FBFCFB; border-radius: 0 0 14px 14px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.toasts { position: fixed; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: pop .2s ease; max-width: 380px; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--bad); } .toast.warn { background: var(--warn); }

/* ---- خط اليوم (الرسم المميز) ---- */
.dayline { padding: 10px 18px 18px; }
.dayline .axis { position: relative; height: 22px; margin-inline-start: 190px; font-size: .72rem; color: var(--ink-3); }
.dayline .axis span { position: absolute; transform: translateX(50%); }
.dayline .trow { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 0; height: 36px; }
.dayline .tname { font-size: .86rem; font-weight: 600; padding-inline-end: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dayline .tname small { display: block; font-weight: 400; color: var(--ink-3); font-size: .74rem; }
.dayline .track { position: relative; height: 22px; background: var(--mist); border-radius: 6px; overflow: hidden; }
.dayline .flex { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--gold-soft), var(--gold-soft) 4px, #fff 4px, #fff 8px); }
.dayline .off-end { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--green); }
.dayline .bar { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: var(--green); }
.dayline .bar.late { background: var(--gold); } .dayline .bar.early { background: var(--bad); } .dayline .bar.open { background: linear-gradient(90deg, var(--green), transparent); }
.dayline .bar.perm { background: var(--info); top: 8px; bottom: 8px; opacity: .85; }
.dayline .tag { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 8px; font-size: .74rem; color: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--ink-2); padding: 8px 18px 0; }
.legend i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }

/* ---- صفحة الدخول ---- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-side { background: var(--green-deep); color: #E9F2ED; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-side h1 { font-size: 2rem; color: #fff; margin-top: 30px; max-width: 24ch; line-height: 1.35; }
.login-side .pol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.login-side .pol div { border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 12px 14px; }
.login-side .pol b { display: block; font-size: 1.35rem; color: var(--gold); }
.login-side .pol span { font-size: .8rem; color: rgba(233,242,237,.75); }
.login-box { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(100%, 400px); }
.login-card .form { grid-template-columns: 1fr; }

/* ---- الإشعارات المنسدلة، شريط الانشغال، الانتقالات، التنبيهات ---- */
.ntf-wrap { position: relative; }
.icon-btn .cnt { position: absolute; top: -6px; left: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.ntf-panel { position: absolute; top: 46px; left: 0; width: min(380px, calc(100vw - 28px)); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 48px rgba(23,40,43,.18); z-index: 60; overflow: hidden; animation: pop .15s ease; }
.ntf-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.ntf-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; font-size: .86rem; transition: background .12s; }
.ntf-item:hover { background: var(--mist); } .ntf-item.unread { background: #FFFBF0; }
.ntf-item .ntf-ic .ic { width: 18px; height: 18px; } .ntf-item .ntf-t { flex: 1; line-height: 1.4; }
.ntf-k { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--ink-3); margin-inline-end: 6px; text-transform: uppercase; }
.ntf-m { display: block; font-size: .74rem; color: var(--ink-3); margin-top: 2px; }
.ntf-f { display: block; text-align: center; padding: 10px; font-size: .84rem; font-weight: 600; text-decoration: none; background: #FBFCFB; }
.notif .ntf-k { margin-inline-end: 4px; }
#busy-bar { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 300; background: linear-gradient(90deg, var(--gold), var(--green)); transform: scaleX(0); transform-origin: right; transition: transform .25s; pointer-events: none; }
#busy-bar.on { transform: scaleX(1); animation: busy 1.2s ease-in-out infinite; }
@keyframes busy { 0% { opacity: .5; } 50% { opacity: 1; } 100% { opacity: .5; } }
.btn.busy .ic { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.page-in { animation: pagein .22s ease; } @keyframes pagein { from { opacity: 0; transform: translateY(6px); } }
.backdrop { position: fixed; inset: 0; background: rgba(23,40,43,.35); z-index: 45; display: none; } .backdrop.on { display: block; }
.figure.link { text-decoration: none; color: inherit; transition: background .12s; } .figure.link:hover { background: var(--mist); }
.attn { display: grid; gap: 8px; }
.attn-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .9rem; border: 1px solid var(--line-2); background: var(--card); transition: transform .12s, background .12s; }
.attn-item:hover { transform: translateX(-2px); background: var(--mist); }
.attn-item span { flex: 1; } .attn-item .ic { width: 18px; height: 18px; flex: none; } .attn-item .ic:last-child { transform: scaleX(-1); opacity: .5; }
.attn-item.warn { border-color: #F0D9A6; background: var(--warn-soft); } .attn-item.bad { border-color: #E7BFBF; background: var(--bad-soft); } .attn-item.info { border-color: #BFD8EC; background: var(--info-soft); }
.timeline.compact li { padding: 8px 14px; grid-template-columns: 110px 1fr; font-size: .84rem; }
details.analytics summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 8px 0; list-style: none; } details.analytics summary::before { content: '▸ '; } details.analytics[open] summary::before { content: '▾ '; }
.tbl td.bad { color: var(--bad); font-weight: 700; }

/* ---- خيارات الطلب (لوحة الموظف) ---- */
.req-opt { cursor: pointer; text-align: right; padding: 16px; border: 1px solid var(--green-line); font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.req-opt:hover { border-color: var(--green); background: var(--green-soft); }
.req-opt .ic { width: 28px; height: 28px; }
.req-opt h3 { margin: 8px 0 4px; }

/* ---- متفرقات ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); padding: 0 8px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 12px 14px; cursor: pointer; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--green); border-bottom-color: var(--green); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.timeline .ts { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.chart-box { position: relative; height: 260px; }
.mapping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview { font-size: .78rem; } .preview td, .preview th { padding: 5px 8px; white-space: nowrap; }
.steps { display: flex; gap: 0; margin-bottom: 18px; }
.steps div { flex: 1; text-align: center; padding: 8px; font-size: .82rem; color: var(--ink-3); border-bottom: 3px solid var(--line-2); }
.steps div.on { color: var(--green); border-color: var(--green); font-weight: 600; } .steps div.done { border-color: var(--green-line); color: var(--ink-2); }
.notif { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.notif.unread { background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.notif .t { flex: 1; font-size: .9rem; } .notif .m { font-size: .76rem; color: var(--ink-3); }
.pill-status { font-weight: 600; }
.progress { height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }
.kbd { font-family: ui-monospace, monospace; background: var(--mist); padding: 1px 6px; border-radius: 4px; font-size: .82rem; }
.drop { border: 2px dashed var(--green-line); border-radius: 12px; padding: 36px; text-align: center; background: var(--green-soft); cursor: pointer; }
.drop.over { background: var(--gold-soft); border-color: var(--gold); }
.small-note { font-size: .78rem; color: var(--ink-3); }
.print-only { display: none; }

@media (max-width: 1100px) { .grid.c4 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .ntf-panel { position: fixed; top: 58px; left: 12px; right: 12px; width: auto; }
  .tbl th, .tbl td { padding: 8px 9px; font-size: .84rem; }
  .card-h { flex-wrap: wrap; } .modal { max-height: 96vh; } .filters .field { min-width: 120px; flex: 1; }
  .timeline li, .timeline.compact li { grid-template-columns: 90px 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; right: 0; width: 270px; transform: translateX(100%); transition: transform .2s; z-index: 50; height: 100vh; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .menu-btn { display: grid; }
  .content { padding: 16px 14px 60px; } .topbar { padding: 10px 14px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .form, .form.c3 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; } .login-side { padding: 28px 22px; } .login-side .pol { grid-template-columns: 1fr 1fr 1fr; }
  .dayline .axis { margin-inline-start: 110px; } .dayline .trow { grid-template-columns: 110px 1fr; }
  .mapping-grid { grid-template-columns: 1fr; }
  .figure .v { font-size: 1.4rem; }
}
@media print {
  .sidebar, .topbar, .filters, .btn, .icon-btn, .toasts { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .print-only { display: block; }
  body { background: #fff; }
}
