/* ============================================================
   OMR Document Controller — Design System
   Bespoke, self-contained (no external CDNs).
   ============================================================ */

:root {
    --bg: #f4f6fb;
    --bg-soft: #eef1f8;
    --surface: #ffffff;
    --surface-2: #fafbfe;
    --sidebar: #0f172a;
    --sidebar-2: #131c31;
    --sidebar-hover: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e6e9f2;
    --line-2: #eef1f7;

    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --teal: #0d9488;
    --teal-50: #f0fdfa;
    --amber: #d97706;
    --amber-50: #fffbeb;
    --rose: #e11d48;
    --rose-50: #fff1f3;
    --green: #059669;
    --green-50: #ecfdf5;
    --sky: #0284c7;
    --sky-50: #f0f9ff;
    --violet: #7c3aed;
    --violet-50: #f5f3ff;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow: 0 4px 16px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, .12);
    --ring: 0 0 0 4px rgba(79, 70, 229, .14);

    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --sidebar-w: 264px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--primary-100); }

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd3e3; border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aeb8cf; background-clip: content-box; }

/* ============================================================
   Layout shell
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
    color: var(--sidebar-text);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 18px;
}
.brand-logo {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--violet) 100%);
    box-shadow: 0 8px 20px rgba(79,70,229,.4);
    flex-shrink: 0;
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-text b { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.2px; display: block; line-height: 1.15; }
.brand-text span { font-size: 10.5px; color: #64748b; letter-spacing: .3px; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 14px 20px; }
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: #334155; }

.nav-section { margin-top: 18px; }
.nav-section__title {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px;
    color: #475569; font-weight: 700; padding: 0 12px 8px;
}
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 11px;
    color: var(--sidebar-text); font-weight: 500; font-size: 13.5px;
    margin-bottom: 2px; position: relative;
    transition: background .16s, color .16s;
}
.nav-link svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .9; }
.nav-link:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.nav-link.is-active {
    background: linear-gradient(90deg, rgba(79,70,229,.22), rgba(124,58,237,.12));
    color: #fff;
}
.nav-link.is-active::before {
    content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--primary);
}
.nav-link .nav-badge {
    margin-left: auto; background: var(--rose); color: #fff;
    font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
}

.sidebar__user {
    margin: 12px 14px; padding: 12px; border-radius: 14px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: center; gap: 11px;
}
.sidebar__user .avatar { flex-shrink: 0; }
.sidebar__user b { color: #fff; font-size: 13px; display: block; line-height: 1.2; }
.sidebar__user span { color: #64748b; font-size: 11px; }

/* ---------- Content ---------- */
.main {
    flex: 1; margin-left: var(--sidebar-w);
    min-width: 0; display: flex; flex-direction: column;
}

.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px;
    padding: 13px 28px;
}
.topbar__title h1 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.topbar__title p { font-size: 12px; color: var(--muted); margin-top: 1px; }
.topbar__spacer { flex: 1; }

.hamburger {
    display: none; width: 40px; height: 40px; border-radius: 11px;
    border: 1px solid var(--line); background: #fff; place-items: center;
}
.hamburger svg { width: 20px; height: 20px; color: var(--ink-2); }

.searchbox {
    display: flex; align-items: center; gap: 9px;
    background: var(--bg-soft); border: 1px solid transparent;
    border-radius: 12px; padding: 9px 14px; width: 280px;
    transition: border .16s, background .16s;
}
.searchbox:focus-within { background: #fff; border-color: var(--primary-100); box-shadow: var(--ring); }
.searchbox svg { width: 17px; height: 17px; color: var(--muted-2); flex-shrink: 0; }
.searchbox input { border: none; background: none; outline: none; width: 100%; font-size: 13px; color: var(--ink); }

.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff;
    display: grid; place-items: center; position: relative;
    color: var(--ink-2); transition: background .14s, border .14s;
}
.icon-btn:hover { background: var(--surface-2); border-color: #dfe4ef; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); border: 2px solid #fff; }

/* language pill */
.lang-switch { display: flex; background: var(--bg-soft); border-radius: 11px; padding: 3px; }
.lang-switch a {
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.lang-switch a.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.content { padding: 26px 28px 60px; max-width: 1560px; width: 100%; }

/* ---------- Avatars ---------- */
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
    background: var(--primary); flex-shrink: 0; letter-spacing: .3px;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }

/* ============================================================
   Cards & primitives
   ============================================================ */
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card__head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 20px 14px;
}
.card__head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.card__head .sub { font-size: 12px; color: var(--muted); }
.card__head .spacer { flex: 1; }
.card__body { padding: 6px 20px 20px; }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--line-2); }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.span-all { grid-column: 1 / -1; }

/* ---------- Stat cards ---------- */
.stat {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 18px 14px;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 27px; font-weight: 800; letter-spacing: -.8px; margin-top: 4px; color: var(--ink); }
.stat__icon {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
}
.stat__icon svg { width: 21px; height: 21px; }
.stat__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; }
.trend.up { color: var(--green); }
.trend.down { color: var(--rose); }
.trend svg { width: 14px; height: 14px; }

.i-indigo { background: var(--primary-50); color: var(--primary); }
.i-teal { background: var(--teal-50); color: var(--teal); }
.i-amber { background: var(--amber-50); color: var(--amber); }
.i-rose { background: var(--rose-50); color: var(--rose); }
.i-green { background: var(--green-50); color: var(--green); }
.i-sky { background: var(--sky-50); color: var(--sky); }
.i-violet { background: var(--violet-50); color: var(--violet); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; line-height: 1.6;
    white-space: nowrap;
}
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-indigo { background: var(--primary-50); color: var(--primary-600); }
.badge-teal { background: var(--teal-50); color: #0f766e; }
.badge-amber { background: var(--amber-50); color: #b45309; }
.badge-rose { background: var(--rose-50); color: #be123c; }
.badge-green { background: var(--green-50); color: #047857; }
.badge-sky { background: var(--sky-50); color: #0369a1; }
.badge-violet { background: var(--violet-50); color: #6d28d9; }

/* grade pills */
.grade { font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 8px; }
.grade-A { background: var(--green-50); color: #047857; }
.grade-B { background: var(--sky-50); color: #0369a1; }
.grade-C { background: var(--amber-50); color: #b45309; }
.grade-D { background: #fef3c7; color: #a16207; }
.grade-E, .grade-F { background: var(--rose-50); color: #be123c; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 11px; font-weight: 600; font-size: 13.5px;
    border: 1px solid transparent; transition: all .16s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 8px 20px rgba(79,70,229,.36); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: #dbe0ec; }
.btn-soft { background: var(--primary-50); color: var(--primary-600); }
.btn-soft:hover { background: var(--primary-100); }
.btn-danger { background: var(--rose-50); color: var(--rose); }
.btn-danger:hover { background: #ffe4e8; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.input, .select, textarea.input {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 11px; font-size: 14px; color: var(--ink); background: #fff;
    transition: border .16s, box-shadow .16s; outline: none; font-family: inherit;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input-error { border-color: var(--rose) !important; }
.error-text { color: var(--rose); font-size: 12px; margin-top: 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }

.toggle-row { display: flex; align-items: center; gap: 12px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: #cbd5e1; border-radius: 20px; transition: .2s; }
.switch .track::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(18px); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl thead th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--muted); font-weight: 700; padding: 11px 16px; border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl td .strong { font-weight: 600; color: var(--ink); }
.td-right { text-align: right; }
.td-center { text-align: center; }

.rank-badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #f1f5f9; color: var(--muted); }
.rank-1 { background: #fef9c3; color: #a16207; }
.rank-2 { background: #f1f5f9; color: #475569; }
.rank-3 { background: #ffedd5; color: #c2410c; }

/* progress bars */
.pbar { height: 7px; background: var(--line); border-radius: 20px; overflow: hidden; min-width: 60px; }
.pbar > span { display: block; height: 100%; border-radius: 20px; background: var(--primary); }
.pbar.green > span { background: var(--green); }
.pbar.amber > span { background: var(--amber); }
.pbar.rose > span { background: var(--rose); }

/* ---------- Misc helpers ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.fw-700 { font-weight: 700; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--muted-2); margin: 0 auto 14px; opacity: .6; }
.empty h4 { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }

.divider { height: 1px; background: var(--line-2); margin: 16px 0; }

/* flash / alerts */
.alert { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 18px; }
.alert svg { width: 19px; height: 19px; flex-shrink: 0; }
.alert-success { background: var(--green-50); color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: var(--rose-50); color: #be123c; border: 1px solid #fecdd3; }
.alert-info { background: var(--sky-50); color: #0369a1; border: 1px solid #bae6fd; }

/* chips / segmented */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* legend */
.legend { display: flex; flex-direction: column; gap: 12px; }
.legend .li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend .li .val { margin-left: auto; font-weight: 700; color: var(--ink); }
.legend .li .name { color: var(--ink-2); }

/* mini info tile */
.tile { text-align: center; padding: 16px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.tile .v { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.tile .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* status footer strip */
.status-strip { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 14px 20px; }
.status-strip .si { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.status-strip .si b { color: var(--ink-2); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: .3; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .4; } 70% { transform: scale(2.4); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; animation: modalIn .2s ease; }
.modal.wide { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.modal__head h3 { font-size: 17px; font-weight: 700; }
.modal__body { padding: 18px 22px; }
.modal__foot { padding: 16px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }

.backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 55; display: none; }
.backdrop.open { display: block; }

/* dropdown */
.dropdown { position: relative; }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 7px; z-index: 50; display: none; }
.dropdown.open .dropdown__menu { display: block; animation: modalIn .14s ease; }
.dropdown__menu a, .dropdown__menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px; font-size: 13px; color: var(--ink-2); background: none; border: none; }
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--surface-2); }
.dropdown__menu svg { width: 16px; height: 16px; }
.dropdown__sep { height: 1px; background: var(--line-2); margin: 6px 4px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .g-4 { grid-template-columns: repeat(2, 1fr); }
    .g-6 { grid-template-columns: repeat(3, 1fr); }
    .g-3 { grid-template-columns: repeat(2, 1fr); }
    .col-2, .col-3, .col-4 { grid-column: span 1; }
}

@media (max-width: 900px) {
    :root { --sidebar-w: 0px; }
    .sidebar { transform: translateX(-100%); width: 264px; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .hamburger { display: grid; }
    .searchbox { display: none; }
    .content { padding: 20px 16px 60px; }
    .topbar { padding: 12px 16px; }
    .page-head h2 { font-size: 19px; }
}

@media (max-width: 680px) {
    .g-2, .g-4, .g-6, .g-3 { grid-template-columns: 1fr; }
    .topbar__title p { display: none; }
    .stat__value { font-size: 24px; }
    .lang-switch a { padding: 6px 9px; }
}

/* ---------- Print ---------- */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main { margin-left: 0; }
    .content { padding: 0; max-width: none; }
    body { background: #fff; }
}
