/* Prabal Governance Control — colours taken from the Prabal Trucking logo */
:root {
  --b900: #5c0710; --b800: #9d0210; --b700: #b5100f; --b600: #d42019; --b500: #e8361a; --b400: #f74317; --b300: #fa7a4a; --b100: #fde6dd; --b50: #fff5f1;
  --bg: #f8f4f3; --surface: #fff; --line: #eee1dd; --line2: #f4ebe8;
  --ink: #2b1d1b; --ink2: #5a4945; --muted: #8a7874;
  --ok: #1f8a4c; --ok-bg: #e6f4ec; --warn: #b86e00; --warn-bg: #fff3dc; --bad: #c4161c; --bad-bg: #fde8e7; --info: #2f6f9f; --info-bg: #e7f0f8; --grey: #8a8f98; --grey-bg: #f0efee;
  --radius: 12px; --shadow: 0 1px 2px rgba(60, 20, 10, .06), 0 4px 16px rgba(60, 20, 10, .05);
  --grad: linear-gradient(115deg, #9d0210 0%, #d42019 48%, #f74317 100%);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
a { color: var(--b600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 13px; color: var(--ink2); }
p { margin: 0 0 8px; line-height: 1.55; }
small, .small { font-size: 12px; } .muted { color: var(--muted); } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.hidden { display: none !important; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; color: #fff; background: linear-gradient(180deg, #4a050c 0%, #7d0610 55%, #9d0210 100%); display: flex; flex-direction: column; }
.side::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background:
  linear-gradient(155deg, transparent 0 38%, #f74317 38% 52%, transparent 52%), linear-gradient(25deg, transparent 0 62%, #d42019 62% 78%, transparent 78%); }
.side > * { position: relative; }
.brand { padding: 18px 16px 10px; }
.brand img { width: 100%; display: block; border-radius: 10px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .25)); }
.brand .app { margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #ffd9cc; text-align: center; }
.nav { padding: 6px 10px 20px; flex: 1; }
.nav .grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #ffb39b; opacity: .8; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #fff; opacity: .88; font-size: 13.5px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.nav a.on { background: rgba(255, 255, 255, .16); opacity: 1; box-shadow: inset 3px 0 0 #fa7a4a; font-weight: 600; }
.nav a .ic { width: 18px; text-align: center; opacity: .9; }
.nav a .cnt { margin-left: auto; background: #fa7a4a; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.side .foot { padding: 12px 16px; font-size: 11px; opacity: .65; border-top: 1px solid rgba(255, 255, 255, .1); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad); opacity: .9; }
.top .burger { display: none; }
.top .search { flex: 1; max-width: 520px; position: relative; }
.top .search input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.top .search::before { content: "⌕"; position: absolute; left: 13px; top: 6px; color: var(--muted); font-size: 17px; }
.top .sp { flex: 1; }
.iconbtn { position: relative; border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 17px; color: var(--ink2); }
.iconbtn:hover { border-color: var(--b300); }
.iconbtn .dot { position: absolute; top: -3px; right: -3px; background: var(--b600); color: #fff; font-size: 10px; min-width: 18px; height: 18px; border-radius: 9px; line-height: 18px; font-weight: 700; padding: 0 4px; }
.me { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 22px; border: 1px solid transparent; position: relative; }
.me:hover { border-color: var(--line); background: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.me .nm { font-weight: 600; font-size: 13px; line-height: 1.1; } .me .rl { font-size: 11px; color: var(--muted); }
.menu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 50; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--b50); }
.view { padding: 22px 24px 60px; max-width: 1480px; width: 100%; }

/* ---------- page header */
.ph { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ph .t { flex: 1 1 420px; min-width: 240px; }
.ph .t .crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ph .t .sub { color: var(--muted); margin-top: 4px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hero { border-radius: 16px; padding: 22px 24px; color: #fff; background: var(--grad); position: relative; overflow: hidden; margin-bottom: 18px; }
.hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 340px; height: 260px; background: linear-gradient(140deg, rgba(255, 255, 255, .16), transparent 60%); transform: rotate(18deg); }
.hero h1 { font-size: 24px; } .hero p { opacity: .92; margin: 6px 0 0; }

/* ---------- cards & grid */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.card > .hd h3 { flex: 1; }
.card > .bd { padding: 4px 16px 16px; }
.card > .bd.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span2 { grid-column: span 2; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .col { display: flex; flex-direction: column; gap: 8px; }

.stat { padding: 14px 16px; display: block; color: inherit; text-decoration: none !important; position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s; }
a.stat:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(157, 2, 16, .12); }
.stat .lbl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .val { font-size: 30px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.stat.red::before { background: var(--bad); } .stat.amber::before { background: #f59e0b; } .stat.green::before { background: var(--ok); } .stat.blue::before { background: var(--info); } .stat.brand::before { background: var(--grad); }
.stat.red .val { color: var(--bad); }

/* ---------- buttons & forms */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--b300); background: var(--b50); }
.btn.pri { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 2px 8px rgba(212, 32, 25, .25); }
.btn.pri:hover { filter: brightness(1.05); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.danger { color: var(--bad); border-color: #f3c3c0; } .btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; } .btn.lg { padding: 11px 20px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { font-weight: 600; font-size: 12.5px; color: var(--ink2); display: block; margin-bottom: 4px; }
label .req { color: var(--b600); }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; padding: 8px 10px; border: 1px solid #e3d4d0; border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(247, 67, 23, .25); border-color: var(--b400); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--b600); }
textarea { min-height: 80px; resize: vertical; }
.f { margin-bottom: 12px; } .f .help { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.check input { margin-top: 3px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 140px; padding: 7px 9px; font-size: 13px; }
.filters input[type=search] { min-width: 220px; }
.file-drop { border: 2px dashed #ecc9bf; border-radius: 10px; padding: 18px; text-align: center; background: var(--b50); color: var(--ink2); cursor: pointer; }
.file-drop.over { border-color: var(--b400); background: var(--b100); }

/* multi-select chips */
.ms { border: 1px solid #e3d4d0; border-radius: 8px; padding: 5px; background: #fff; display: flex; flex-wrap: wrap; gap: 4px; min-height: 38px; position: relative; cursor: text; }
.ms .chip { background: var(--b100); color: var(--b800); padding: 3px 4px 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.ms .chip b { cursor: pointer; padding: 0 5px; border-radius: 50%; font-weight: 700; }
.ms .chip b:hover { background: rgba(157, 2, 16, .15); }
.ms input { border: 0; outline: 0; flex: 1; min-width: 90px; padding: 3px 6px; }
.ms .dd { position: absolute; left: -1px; right: -1px; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 240px; overflow: auto; z-index: 60; }
.ms .dd div { padding: 7px 10px; cursor: pointer; font-size: 13px; } .ms .dd div:hover, .ms .dd div.hl { background: var(--b50); }
.ms .dd .none { color: var(--muted); cursor: default; }

/* ---------- tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fcf8f7; white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--b50); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td .t1 { font-weight: 600; } .tbl td .t2 { font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 6px; }

/* ---------- badges */
.bdg { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 11px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--grey-bg); color: #5f6168; }
.bdg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bdg.ok { background: var(--ok-bg); color: var(--ok); } .bdg.warn { background: var(--warn-bg); color: var(--warn); } .bdg.bad { background: var(--bad-bg); color: var(--bad); } .bdg.info { background: var(--info-bg); color: var(--info); } .bdg.brand { background: var(--b100); color: var(--b800); }
.bdg.plain::before { display: none; }
.sev { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #f3ecea; color: var(--ink2); font-size: 11.5px; margin: 1px 2px 1px 0; }

/* ---------- progress */
.prog { height: 8px; border-radius: 4px; background: #f1e7e4; overflow: hidden; display: flex; gap: 2px; }
.prog i { display: block; height: 100%; }
.prog i:first-child { border-radius: 4px 0 0 4px; } .prog i:last-child { border-radius: 0 4px 4px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- charts */
.hbars .r { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.hbars .r a, .hbars .r span.l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.hbars .r .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink2); font-weight: 600; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-size: 11px; fill: var(--muted); font-family: inherit; }
.tip { position: fixed; pointer-events: none; z-index: 200; background: #2b1d1b; color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 7px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); max-width: 260px; line-height: 1.45; }

/* ---------- detail layouts */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink2); font-weight: 600; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.tabs a.on { color: var(--b600); border-color: var(--b600); }
.tabs a .cnt { background: var(--b100); color: var(--b800); border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline .it { position: relative; padding: 0 0 14px; font-size: 13px; }
.timeline .it::before { content: ""; position: absolute; left: -17px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--b400); }
.timeline .it .w { font-size: 11.5px; color: var(--muted); }
.timeline .it .c { background: #fbf6f5; border-left: 3px solid var(--b300); padding: 6px 10px; margin-top: 4px; border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.note { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.note.info { background: var(--info-bg); color: #1d4f75; } .note.warn { background: var(--warn-bg); color: #7a4a00; } .note.bad { background: var(--bad-bg); color: #8f1013; } .note.ok { background: var(--ok-bg); color: #145c33; } .note.brand { background: var(--b50); border: 1px solid var(--b100); color: var(--ink2); }
.pdfview { width: 100%; height: 76vh; border: 1px solid var(--line); border-radius: 10px; background: #525659; }
.banner-old { background: repeating-linear-gradient(135deg, #fde8e7 0 10px, #fff 10px 20px); border: 1px solid #f3c3c0; color: var(--bad); font-weight: 700; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; }
.steps { display: flex; gap: 0; margin: 4px 0 16px; }
.steps div { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 26px; }
.steps div::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #efe4e1; color: var(--ink2); line-height: 22px; font-weight: 700; z-index: 1; }
.steps div::after { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: #efe4e1; }
.steps div:first-child::after { display: none; }
.steps div.done::before { background: var(--ok); color: #fff; content: "✓"; } .steps div.done::after, .steps div.cur::after { background: var(--ok); }
.steps div.cur::before { background: var(--b600); color: #fff; } .steps div.cur { color: var(--ink); font-weight: 600; }
.doccard { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none !important; transition: border-color .12s, box-shadow .12s; }
.doccard:hover { border-color: var(--b300); box-shadow: var(--shadow); }
.doccard .no { font-size: 11.5px; font-weight: 700; color: var(--b600); letter-spacing: .03em; }
.doccard .ti { font-weight: 650; margin: 3px 0 6px; }
.list-item { display: flex; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line2); align-items: center; color: inherit; text-decoration: none !important; }
.list-item:hover { background: var(--b50); }
.list-item .grow { flex: 1; min-width: 0; } .list-item .t1 { font-weight: 600; } .list-item .t2 { font-size: 12px; color: var(--muted); }

/* ---------- modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(43, 18, 15, .45); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .12s; }
.modal { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { width: min(980px, 100%); }
.modal .mh { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal .mh h2 { flex: 1; } .modal .mh::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--grad); }
.modal .mb { padding: 18px 20px; } .modal .mf { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; background: #fff; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #2b1d1b; color: #fff; padding: 11px 16px; border-radius: 9px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); max-width: 420px; font-size: 13px; animation: up .15s; border-left: 4px solid var(--b400); }
.toast.ok { border-left-color: #3fc27a; } .toast.bad { border-left-color: #ff5a52; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(8px); opacity: 0; } }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.loading::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--b100); border-top-color: var(--b600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--grad); position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.login .art::before, .login .art::after { content: ""; position: absolute; opacity: .35; }
.login .art::before { width: 140%; height: 70%; left: -20%; top: -10%; background: linear-gradient(160deg, #9d0210 0 40%, transparent 40%); }
.login .art::after { width: 120%; height: 80%; right: -30%; bottom: -30%; background: linear-gradient(20deg, #5c0710 0 45%, transparent 45%); }
.login .art > * { position: relative; z-index: 1; }
.login .art img { width: min(460px, 90%); border-radius: 14px; box-shadow: 0 16px 50px rgba(60, 0, 0, .35); }
.login .art h1 { font-size: 34px; margin-top: 34px; } .login .art p { font-size: 16px; opacity: .92; max-width: 520px; margin-top: 10px; }
.login .art ul { margin: 18px 0 0; padding: 0; list-style: none; } .login .art li { padding: 6px 0; font-size: 14.5px; opacity: .95; } .login .art li::before { content: "✓"; margin-right: 10px; font-weight: 700; }
.login .form { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login .box { width: min(400px, 100%); }
.login .box h2 { font-size: 24px; margin-bottom: 4px; }

/* ---------- quiz */
.q { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.q .qq { font-weight: 600; margin-bottom: 8px; }
.q label.opt { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); padding: 6px 8px; border-radius: 6px; cursor: pointer; margin: 0; }
.q label.opt:hover { background: var(--b50); }

@media (max-width: 1100px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21, .g12 { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 90; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .top .burger { display: inline-block; }
  .top { padding: 10px 14px; } .view { padding: 16px 14px 60px; }
  .g2, .g3, .g4, .g5, .form-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .me .nm, .me .rl { display: none; }
  .login { grid-template-columns: 1fr; } .login .art { padding: 30px; } .login .art h1 { font-size: 24px; } .login .art ul { display: none; }
  .hbars .r { grid-template-columns: 100px 1fr 54px; }
  .kv { grid-template-columns: 1fr; }
}
@media print { .side, .top, .acts, .filters, .btn { display: none !important; } .shell { display: block; } .card { box-shadow: none; } }
/* PDF.js viewer */
.pdfjs { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #e9e3e1; }
.pdfbar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.pdfbar .zl { min-width: 44px; text-align: center; color: var(--muted); }
.pdfpages { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pdfpage { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); flex: none; max-width: none; }
/* training videos */
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 16px; background: #f3ecea; color: var(--ink2); font-size: 12.5px; font-weight: 600; margin: 2px 4px 2px 0; border: 1px solid transparent; }
.lang b { background: #fff; color: var(--b700); border-radius: 50%; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; padding: 0 3px; }
.lang.on { background: var(--b100); border-color: var(--b300); color: var(--b800); }
button.lang { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.vplayer { width: 100%; max-height: 62vh; border-radius: 10px; background: #1b0f0e; display: block; }
.vmeter { height: 6px; border-radius: 3px; background: #f1e7e4; overflow: hidden; margin-top: 8px; }
.vmeter i { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.upbar { height: 8px; border-radius: 4px; background: #f1e7e4; overflow: hidden; } .upbar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.vcard { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line2); }
