/* ============================================================
   Ledgerly — Premium ERP Design System
   Glassmorphism · Soft shadows · Dark/Light · Mobile-first
   ============================================================ */

:root {
    --brand-1: #6366f1;
    --brand-2: #8b5cf6;
    --brand-3: #a855f7;
    --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --brand-grad-soft: linear-gradient(135deg, rgba(99,102,241,.14), rgba(168,85,247,.14));

    --success: #10b981;
    --success-soft: rgba(16,185,129,.12);
    --danger: #f43f5e;
    --danger-soft: rgba(244,63,94,.12);
    --warning: #f59e0b;
    --warning-soft: rgba(245,158,11,.12);
    --info: #0ea5e9;
    --info-soft: rgba(14,165,233,.12);

    /* Light theme */
    --bg: #eef1ف9;
    --bg: #eceefb;
    --bg-2: #f6f7fe;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --surface-2: rgba(255, 255, 255, 0.55);
    --card-border: rgba(255, 255, 255, 0.7);
    --stroke: rgba(17, 24, 39, 0.08);
    --text: #1e2436;
    --text-soft: #5b6478;
    --text-mute: #9aa1b2;
    --sidebar-bg: rgba(255, 255, 255, 0.72);
    --shadow-sm: 0 1px 2px rgba(24, 27, 51, 0.06);
    --shadow: 0 10px 30px -12px rgba(60, 50, 120, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(60, 50, 120, 0.30);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --sidebar-w: 268px;
    --topbar-h: 72px;
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
    --bg: #0b0e1a;
    --bg-2: #10152a;
    --surface: rgba(24, 29, 51, 0.62);
    --surface-solid: #161c33;
    --surface-2: rgba(30, 37, 64, 0.5);
    --card-border: rgba(255, 255, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.08);
    --text: #e7eaf3;
    --text-soft: #a9b1c6;
    --text-mute: #6d7591;
    --sidebar-bg: rgba(17, 21, 40, 0.72);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1100px 700px at 8% -8%, rgba(99,102,241,0.18), transparent 60%),
        radial-gradient(1000px 700px at 100% 0%, rgba(168,85,247,0.16), transparent 55%),
        radial-gradient(900px 900px at 60% 120%, rgba(14,165,233,0.10), transparent 60%);
    background-attachment: fixed;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    letter-spacing: .1px;
}

h1,h2,h3,h4,h5,h6,.h-font { font-family: var(--font-head); font-weight: 700; letter-spacing: -.2px; }

a { color: var(--brand-1); text-decoration: none; }
a:hover { color: var(--brand-2); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120,120,150,.35); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,120,150,.55); background-clip: content-box; }

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

.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
    background: var(--sidebar-bg);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-right: 1px solid var(--stroke);
    display: flex; flex-direction: column;
    z-index: 1040; transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.sidebar__brand {
    display: flex; align-items: center; gap: 12px;
    height: var(--topbar-h); padding: 0 22px; flex-shrink: 0;
}
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: var(--brand-grad); color: #fff;
    display: grid; place-items: center; font-size: 20px;
    box-shadow: 0 8px 20px -6px rgba(99,102,241,.7);
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; line-height: 1; }
.brand-name span { display:block; font-size: .64rem; font-weight: 600; letter-spacing: 2px; color: var(--text-mute); text-transform: uppercase; margin-top: 3px;}

.sidebar__nav { flex: 1; overflow-y: auto; padding: 6px 14px 24px; }
.nav-caption { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-mute); font-weight: 700; margin: 18px 12px 8px; }
.nav-link-x {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 13px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-weight: 550; font-size: .92rem;
    margin-bottom: 3px; position: relative; transition: all .18s ease;
}
.nav-link-x i { font-size: 1.15rem; width: 22px; text-align: center; }
.nav-link-x:hover { background: var(--surface-2); color: var(--text); }
.nav-link-x.active { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(99,102,241,.8); }
.nav-link-x.active i { color: #fff; }
.nav-badge { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--danger-soft); color: var(--danger); }
.nav-link-x.active .nav-badge { background: rgba(255,255,255,.25); color:#fff; }

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

.topbar {
    position: sticky; top: 0; height: var(--topbar-h); z-index: 1030;
    display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 3vw, 30px);
    background: var(--surface); backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--stroke);
}
.topbar__search { position: relative; flex: 1; max-width: 460px; }
.topbar__search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }
.topbar__search input {
    width: 100%; height: 44px; border-radius: 14px; border: 1px solid var(--stroke);
    background: var(--surface-2); padding: 0 16px 0 42px; color: var(--text); font-size: .9rem; outline: none;
    transition: border .2s, box-shadow .2s;
}
.topbar__search input:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(99,102,241,.14); }

.icon-btn {
    width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--stroke);
    background: var(--surface-2); color: var(--text-soft); display: grid; place-items: center;
    cursor: pointer; font-size: 1.15rem; transition: all .18s; position: relative;
}
.icon-btn:hover { color: var(--brand-1); border-color: var(--brand-1); transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid var(--surface-solid); }

.content { padding: clamp(18px, 3vw, 30px); flex: 1; }

/* ---------------- Cards ---------------- */
.glass {
    background: var(--surface); backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--card-border); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-x { background: var(--surface); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-x__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--stroke); }
.card-x__title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin: 0; }
.card-x__sub { color: var(--text-mute); font-size: .82rem; }
.card-x__body { padding: 20px 22px; }

/* Stat cards */
.stat-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    padding: 20px 22px; background: var(--surface); border: 1px solid var(--card-border);
    box-shadow: var(--shadow); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card__glow { position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; filter: blur(6px); opacity: .18; }
.stat-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; box-shadow: var(--shadow-sm); }
.stat-label { color: var(--text-mute); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1.1; margin-top: 4px; letter-spacing: -.5px; }
.stat-trend { font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }

.grad-indigo { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.grad-emerald { background: linear-gradient(135deg,#10b981,#059669); }
.grad-rose { background: linear-gradient(135deg,#f43f5e,#e11d48); }
.grad-amber { background: linear-gradient(135deg,#f59e0b,#d97706); }
.grad-sky { background: linear-gradient(135deg,#0ea5e9,#2563eb); }
.grad-violet { background: linear-gradient(135deg,#a855f7,#7c3aed); }

/* ---------------- Buttons ---------------- */
.btn { border-radius: 12px; font-weight: 600; font-size: .9rem; padding: .58rem 1.1rem; transition: all .18s ease; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand-grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(99,102,241,.85); }
.btn-brand:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 16px 30px -12px rgba(99,102,241,.95); transform: translateY(-1px); }
.btn-soft { background: var(--surface-2); border-color: var(--stroke); color: var(--text-soft); }
.btn-soft:hover { color: var(--brand-1); border-color: var(--brand-1); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; border-radius: 10px; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }

/* ---------------- Badges / pills ---------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: .76rem; font-weight: 650; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-muted { background: var(--surface-2); color: var(--text-soft); }
.pill-brand { background: var(--brand-grad-soft); color: var(--brand-2); }
.pill i { font-size: .7rem; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.table-x { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .89rem; }
table.table-x thead th {
    text-align: left; font-family: var(--font-head); font-weight: 700; font-size: .74rem; text-transform: uppercase;
    letter-spacing: .7px; color: var(--text-mute); padding: 13px 16px; border-bottom: 1px solid var(--stroke); white-space: nowrap;
}
table.table-x tbody td { padding: 13px 16px; border-bottom: 1px solid var(--stroke); color: var(--text); vertical-align: middle; }
table.table-x tbody tr { transition: background .15s; }
table.table-x tbody tr:hover { background: var(--surface-2); }
table.table-x tbody tr:last-child td { border-bottom: none; }
.text-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.avatar-sm { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.avatar-txt { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; background: var(--brand-grad); }

/* ---------------- Forms ---------------- */
.form-label { font-weight: 600; font-size: .82rem; color: var(--text-soft); margin-bottom: 7px; display: block; }
.form-label .req { color: var(--danger); }
.form-control, .form-select {
    height: 44px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text);
    padding: .55rem .85rem; font-size: .9rem; line-height: 1.4; width: 100%;
    transition: border .18s, box-shadow .18s;
}
.form-control:focus, .form-select:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(99,102,241,.14); background: var(--surface-solid); color: var(--text); }
.form-control::placeholder { color: var(--text-mute); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--danger); }
textarea.form-control { height: auto; min-height: 92px; padding: .6rem .85rem; }
input[type="file"].form-control { padding: .5rem .6rem; line-height: 1.6; }
input[type="date"].form-control, input[type="time"].form-control { padding-right: .6rem; }

/* Uniform vertical rhythm so fields in every grid row line up */
.form-group-x, .mb-form { margin-bottom: 1rem; }
.form-label + .form-control, .form-label + .form-select, .form-label + .input-group, .form-label + .select2-container { margin-top: 0; }
.invalid-feedback { font-size: .78rem; margin-top: 5px; }

/* Input groups: keep addon, control and trailing select all the same height */
.input-group { flex-wrap: nowrap; }
.input-group > .form-control, .input-group > .form-select { height: 44px; }
.input-group-text { background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text-soft); height: 44px; display: flex; align-items: center; border-radius: 12px; padding: 0 .85rem; }
.form-control-sm, .form-select-sm { height: 38px; padding: .35rem .6rem; font-size: .84rem; border-radius: 10px; }

.form-switch .form-check-input { width: 2.6em; height: 1.35em; background-color: var(--stroke); border: none; cursor: pointer; }
.form-check-input:checked { background-color: var(--brand-1); border-color: var(--brand-1); }

/* ---------------- Page header ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; letter-spacing: -.6px; }
.page-sub { color: var(--text-mute); font-size: .9rem; margin-top: 3px; }
.breadcrumb-x { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--text-mute); }
.breadcrumb-x a { color: var(--text-mute); }
.breadcrumb-x a:hover { color: var(--brand-1); }

/* ---------------- Dropdown ---------------- */
.dropdown-menu { border-radius: 15px; border: 1px solid var(--stroke); background: var(--surface-solid); box-shadow: var(--shadow-lg); padding: 8px; }
.dropdown-item { border-radius: 10px; padding: .5rem .7rem; font-size: .88rem; color: var(--text-soft); font-weight: 550; }
.dropdown-item:hover { background: var(--surface-2); color: var(--brand-1); }
.dropdown-item i { width: 20px; }

/* ---------------- Auth ---------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-hero {
    position: relative; overflow: hidden; color: #fff; padding: 54px;
    background: linear-gradient(140deg,#4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth-hero::before, .auth-hero::after { content:""; position:absolute; border-radius:50%; filter: blur(10px); }
.auth-hero::before { width: 360px; height: 360px; background: rgba(255,255,255,.10); top: -80px; right: -80px; }
.auth-hero::after { width: 300px; height: 300px; background: rgba(255,255,255,.08); bottom: -90px; left: -60px; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-feature { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; position: relative; z-index: 2; }
.auth-feature i { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }

/* ---------------- Misc ---------------- */
.divider { height: 1px; background: var(--stroke); margin: 18px 0; }
.text-soft { color: var(--text-soft) !important; }
.text-mute-x { color: var(--text-mute) !important; }
.text-success-x { color: var(--success) !important; }
.text-danger-x { color: var(--danger) !important; }
.fw-650 { font-weight: 650; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-mute); }
.empty-state i { font-size: 3rem; opacity: .4; margin-bottom: 12px; display: block; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--stroke) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.loader-overlay { position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; background: rgba(10,12,25,.35); backdrop-filter: blur(3px); }
.loader-overlay.show { display: grid; }
.spinner-x { width: 52px; height: 52px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* items table for invoice builder — tight, aligned cells */
.items-table thead th { padding: 12px 8px; }
.items-table tbody td { padding: 8px; vertical-align: middle; }
.items-table tbody td:first-child { padding-left: 14px; }
.items-table .form-control, .items-table .form-select {
    height: 40px; width: 100%; border-radius: 10px; padding: .4rem .6rem; font-size: .86rem;
}
.items-table .row-num { text-align: center; font-weight: 600; color: var(--text-mute); }
.items-table .i-amount { white-space: nowrap; }
/* hide number spinners for a clean look + more room in narrow columns */
.items-table input[type=number]::-webkit-outer-spin-button,
.items-table input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.items-table input[type=number] { -moz-appearance: textfield; }
.line-remove { color: var(--danger); cursor: pointer; }

/* toast container */
#toastHost { position: fixed; top: 20px; right: 20px; z-index: 4000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-x { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow-lg); border: 1px solid var(--stroke); animation: fadeUp .35s both; }
.toast-x i { font-size: 1.3rem; }
.toast-x.success i { color: var(--success); }
.toast-x.error i { color: var(--danger); }
.toast-x.warning i { color: var(--warning); }
.toast-x.info i { color: var(--info); }
.toast-x .t-title { font-weight: 700; font-size: .9rem; }
.toast-x .t-msg { font-size: .82rem; color: var(--text-soft); }

.sidebar-backdrop { position: fixed; inset: 0; background: rgba(6,8,18,.5); backdrop-filter: blur(2px); z-index: 1035; opacity: 0; visibility: hidden; transition: .3s; }
.sidebar-backdrop.show { opacity: 1; visibility: visible; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main { margin-left: 0; }
    .topbar__search { max-width: none; }
}
@media (max-width: 575.98px) {
    body { font-size: 14px; }
    .content { padding: 16px; }
    .stat-value { font-size: 1.42rem; }
    .card-x__body { padding: 16px; }
    .hide-sm { display: none !important; }
}

/* ---------------- Select2 (themed to match design system) ---------------- */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
    height: 44px; border-radius: 12px; border: 1px solid var(--stroke);
    background: var(--surface-2); display: flex; align-items: center; padding: 0 12px;
    transition: border .18s, box-shadow .18s;
}
.input-group .select2-container--default .select2-selection--single { border-radius: 0 12px 12px 0; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(99,102,241,.14); background: var(--surface-solid);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text); line-height: 1.4; padding: 0; font-size: .9rem;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--text-mute); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--text-mute) transparent transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--text-mute) transparent; }
.select2-container--default .select2-selection--single .select2-selection__clear { color: var(--text-mute); margin-right: 8px; font-weight: 700; }

/* multi-select chips */
.select2-container--default .select2-selection--multiple {
    min-height: 42px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface-2);
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--brand-grad); color: #fff; border: none; border-radius: 8px; padding: 2px 8px;
}

/* dropdown panel */
.select2-dropdown {
    background: var(--surface-solid); border: 1px solid var(--stroke); border-radius: 14px;
    box-shadow: var(--shadow-lg); overflow: hidden; z-index: 5000;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface-2); color: var(--text); padding: 8px 10px; outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--brand-1); }
.select2-results__option { color: var(--text-soft); padding: 9px 12px; font-size: .89rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand-grad); color: #fff; }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--surface-2); color: var(--brand-1); font-weight: 600; }
.select2-results__option--selectable { border-radius: 8px; margin: 2px 6px; }
.select2-results > .select2-results__options { max-height: 260px; padding: 4px; }

@media print {
    .sidebar, .topbar, .no-print, .btn { display: none !important; }
    .main { margin: 0 !important; }
    body { background: #fff !important; }
    .glass, .card-x, .stat-card { box-shadow: none !important; border: 1px solid #ddd !important; background: #fff !important; }
}
