/* =====================================================================
   Shiri Dushanbe CRM - design system
   Bootstrap 5.3 + custom tokens. Light and dark themes via data-bs-theme.
   ===================================================================== */

/* ---------- fonts (Inter, vendored for offline use) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../lib/inter/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../lib/inter/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../lib/inter/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../lib/inter/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- design tokens ---------- */
:root {
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --brand: #2563eb;
    --brand-rgb: 37, 99, 235;
    --brand-600: #1d4ed8;
    --brand-soft: #e8efff;

    --green: #16a34a;  --green-soft: #e3f6ea;  --green-ink: #0f6b31;
    --amber: #d97706;  --amber-soft: #fdf0d9;  --amber-ink: #8a4b04;
    --red: #dc2626;    --red-soft: #fde7e7;    --red-ink: #9b1c1c;
    --cyan: #0891b2;   --cyan-soft: #def5fa;   --cyan-ink: #0b5e73;
    --violet: #7c3aed; --violet-soft: #eee8fd;
    --slate-soft: #eceff4; --slate-ink: #475467;

    --sidebar-w: 268px;
    --sidebar-w-mini: 76px;
    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #131d36;
    --sidebar-text: #a9b4cb;
    --sidebar-muted: #6b7794;
    --sidebar-active: rgba(255, 255, 255, .09);

    --page-bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafd;
    --line: #e6eaf2;
    --text: #1b2437;
    --text-muted: #667085;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);

    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: .925rem;
    --bs-border-radius: var(--radius-sm);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-600);
}

[data-bs-theme="dark"] {
    --brand: #6b9bff;
    --brand-rgb: 107, 155, 255;
    --brand-600: #8fb2ff;
    --brand-soft: rgba(107, 155, 255, .14);

    --green-soft: rgba(34, 197, 94, .15);  --green-ink: #6ee7a0;
    --amber-soft: rgba(245, 158, 11, .16); --amber-ink: #fcd38a;
    --red-soft: rgba(248, 113, 113, .16);  --red-ink: #fca5a5;
    --cyan-soft: rgba(34, 211, 238, .14);  --cyan-ink: #7ee6f5;
    --violet-soft: rgba(167, 139, 250, .16);
    --slate-soft: rgba(148, 163, 184, .16); --slate-ink: #b6c0d4;

    --sidebar-bg: #0a1020;
    --sidebar-bg-2: #0d1528;
    --page-bg: #0b1220;
    --surface: #121a2b;
    --surface-2: #162036;
    --line: #243049;
    --text: #e6ebf5;
    --text-muted: #8f9bb3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);

    --bs-body-bg: var(--page-bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--line);
    --bs-secondary-bg: var(--surface-2);
    --bs-tertiary-bg: var(--surface-2);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--page-bg); color: var(--text); -webkit-font-smoothing: antialiased; font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.015em; font-weight: 650; }
.text-muted { color: var(--text-muted) !important; }

/* ---------- top loading bar ---------- */
#loadbar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000; background: linear-gradient(90deg, var(--brand), var(--cyan)); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .4s ease, opacity .3s ease; }
#loadbar.on { opacity: 1; transform: scaleX(.75); transition: transform 8s cubic-bezier(.1, .9, .2, 1); }

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

.sidebar {
    width: var(--sidebar-w); background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%); color: var(--sidebar-text);
    position: fixed; inset: 0 auto 0 0; overflow-y: auto; overflow-x: hidden; z-index: 1030; padding-bottom: 2rem;
    transition: width .22s ease, transform .22s ease; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar .brand {
    display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.35rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
    position: sticky; top: 0; background: var(--sidebar-bg); z-index: 2; border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar .brand i { color: #fff; background: linear-gradient(135deg, var(--brand), var(--cyan)); width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; flex: none; font-size: 1.25rem; }
.sidebar .brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--sidebar-muted); letter-spacing: .02em; }
.sidebar nav { padding: .5rem .75rem; }
.sidebar .nav-heading { text-transform: uppercase; font-size: .66rem; font-weight: 600; letter-spacing: .09em; padding: 1.1rem .75rem .4rem; color: var(--sidebar-muted); white-space: nowrap; }
.sidebar .nav-link {
    color: var(--sidebar-text); padding: .55rem .75rem; display: flex; align-items: center; gap: .75rem; border-radius: 10px; font-weight: 500; font-size: .9rem; position: relative; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.sidebar .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; flex: none; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar .nav-link.active { color: #fff; background: var(--sidebar-active); }
.sidebar .nav-link.active::before { content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }

.content-wrap { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; transition: margin-left .22s ease; }

@media (min-width: 992px) {
    html.sb-collapsed .sidebar { width: var(--sidebar-w-mini); }
    html.sb-collapsed .content-wrap { margin-left: var(--sidebar-w-mini); }
    html.sb-collapsed .sidebar .brand span, html.sb-collapsed .sidebar .nav-link span, html.sb-collapsed .sidebar .nav-heading { display: none; }
    html.sb-collapsed .sidebar .brand { justify-content: center; padding-inline: 0; }
    html.sb-collapsed .sidebar .nav-link { justify-content: center; padding-inline: 0; }
}
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; }
    .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-md); }
    .content-wrap { margin-left: 0 !important; }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(8, 12, 24, .5); z-index: 1025; display: none; }
    body.sidebar-open .sidebar-backdrop { display: block; }
}

/* ---------- top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .6rem 1.5rem; min-height: 3.5rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
.crumbs { font-size: .83rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 .35rem; opacity: .5; }
.crumbs .here { color: var(--text); font-weight: 600; }
.search-trigger { display: inline-flex; align-items: center; gap: .6rem; min-width: 14rem; padding: .4rem .75rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-muted); font-size: .85rem; cursor: pointer; }
.search-trigger:hover { border-color: var(--brand); color: var(--text); }
.search-trigger kbd { margin-left: auto; font-size: .7rem; background: var(--surface); border: 1px solid var(--line); color: var(--text-muted); border-radius: 6px; padding: .05rem .35rem; }

.main { flex: 1; padding: 1.75rem 1.75rem 2.5rem; width: 100%; max-width: 1680px; margin-inline: auto; }
.footer { padding: 1rem 1.75rem; color: var(--text-muted); font-size: .8rem; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 991.98px) { .main { padding: 1.1rem 1rem 2rem; } .topbar { padding-inline: 1rem; } }

.page-header h1 { font-size: 1.55rem; font-weight: 700; }
.page-header .text-muted { font-size: .87rem; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text); }
.card-header { background: transparent !important; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; font-weight: 600; }
.card-footer { background: transparent !important; border-top: 1px solid var(--line); padding: .8rem 1.15rem; }
.card-body { padding: 1.15rem; }
.card.border-danger { border-color: var(--red) !important; }
.bg-body-tertiary { background: var(--surface-2) !important; }
.bg-white { background: var(--surface) !important; }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- tables ---------- */
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .95rem; }
.table thead th, .table-light, .table-light > th, thead.table-light th, tfoot.table-light th {
    background: var(--surface-2) !important; color: var(--text-muted) !important; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.table-hover > tbody > tr:hover > * { --bs-table-hover-bg: var(--brand-soft); color: var(--text); }
.table-active, .table-active > td { background: var(--surface-2) !important; }
.table-warning, .table-warning > td { --bs-table-bg: var(--amber-soft); --bs-table-color: var(--text); }
th.sortable a { display: inline-flex; align-items: center; gap: .3rem; }
th.sortable a:hover { color: var(--brand) !important; }
tfoot th { font-size: .85rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text) !important; }

/* ---------- forms ---------- */
.form-label { font-weight: 550; font-size: .83rem; margin-bottom: .35rem; color: var(--text); }
.form-label.small { color: var(--text-muted); font-weight: 600; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--line); background-color: var(--surface); color: var(--text); padding: .5rem .8rem; }
.form-control-sm, .form-select-sm { padding: .32rem .6rem; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(var(--brand-rgb), .18); background-color: var(--surface); color: var(--text); }
.input-group-text { background: var(--surface-2); border-color: var(--line); color: var(--text-muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
label.required::after { content: " *"; color: var(--red); }
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; }
.alert-danger { background: var(--red-soft); color: var(--red-ink); }
.alert-info { background: var(--cyan-soft); color: var(--cyan-ink); }
.alert-warning { background: var(--amber-soft); color: var(--amber-ink); }
.alert-success { background: var(--green-soft); color: var(--green-ink); }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 550; letter-spacing: -.005em; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { border-radius: 8px; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-600); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; box-shadow: 0 1px 2px rgba(var(--brand-rgb), .35); }
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0b1220; --bs-btn-hover-color: #0b1220; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: rgba(var(--brand-rgb), .45); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.btn-outline-secondary { --bs-btn-color: var(--text-muted); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: var(--text-muted); }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-color: var(--text); --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--text); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* ---------- badges: soft style everywhere ---------- */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .38em .75em; font-size: .72rem; border: 1px solid transparent; }
.badge.bg-success { background: var(--green-soft) !important; color: var(--green-ink) !important; }
.badge.bg-primary { background: var(--brand-soft) !important; color: var(--brand) !important; }
.badge.bg-warning { background: var(--amber-soft) !important; color: var(--amber-ink) !important; }
.badge.bg-danger { background: var(--red-soft) !important; color: var(--red-ink) !important; }
.badge.bg-info { background: var(--cyan-soft) !important; color: var(--cyan-ink) !important; }
.badge.bg-secondary { background: var(--slate-soft) !important; color: var(--slate-ink) !important; }
.badge.bg-light { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--line); }
.badge.text-dark { color: inherit !important; }

/* ---------- pagination, dropdowns, modals ---------- */
.pagination { --bs-pagination-border-radius: 8px; --bs-pagination-color: var(--text-muted); --bs-pagination-bg: transparent; --bs-pagination-border-color: var(--line); --bs-pagination-hover-bg: var(--surface-2); --bs-pagination-hover-color: var(--brand); --bs-pagination-hover-border-color: var(--line); --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-border-color: var(--line); gap: .2rem; }
.pagination .page-link { border-radius: 8px !important; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: .4rem; background: var(--surface); color: var(--text); }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; font-size: .88rem; color: var(--text); }
.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-item.active { background: var(--brand-soft); color: var(--brand); }
.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.list-group-item { background: transparent; border-color: var(--line); color: var(--text); }
.progress { background: var(--slate-soft); border-radius: 999px; }
.bg-primary-subtle { background: var(--brand-soft) !important; }
.border-bottom { border-color: var(--line) !important; }

/* ---------- avatar, bell ---------- */
.avatar { width: 3rem; height: 3rem; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; font-weight: 650; font-size: 1.05rem; flex: none; }
.avatar-sm { width: 1.85rem; height: 1.85rem; font-size: .8rem; }
.bell-menu { width: 380px; max-width: 92vw; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item { display: flex; gap: .75rem; padding: .7rem 1rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.bell-item:hover { background: var(--surface-2); }
.bell-item.unread { background: var(--brand-soft); }
.bell-item i { font-size: 1.2rem; margin-top: .15rem; }

/* ---------- KPI cards (dashboard) ---------- */
.kpi { display: flex; align-items: center; gap: 1rem; }
.kpi .icon { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.kpi .value { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.kpi .label { color: var(--text-muted); font-size: .8rem; }
.bg-grad-blue   { background: var(--brand-soft) !important; color: var(--brand); }
.bg-grad-green  { background: var(--green-soft) !important; color: var(--green); }
.bg-grad-orange { background: var(--amber-soft) !important; color: var(--amber); }
.bg-grad-red    { background: var(--red-soft) !important; color: var(--red); }
.bg-grad-purple { background: var(--violet-soft) !important; color: var(--violet); }
.bg-grad-teal   { background: var(--cyan-soft) !important; color: var(--cyan); }
.kpi-card { transition: transform .15s ease, box-shadow .15s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero { background: linear-gradient(120deg, var(--brand) 0%, #0ea5e9 100%); color: #fff; border: 0; border-radius: var(--radius); }
.hero h1, .hero .h3 { color: #fff; }
[data-bs-theme="dark"] .hero { background: linear-gradient(120deg, #1e3a8a 0%, #0e7490 100%); }
.hero .text-muted { color: rgba(255, 255, 255, .8) !important; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .5rem; border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 550; text-align: center; transition: all .15s ease; height: 100%; }
.quick-action i { font-size: 1.35rem; color: var(--brand); }
.quick-action:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); color: var(--text); }
.report-card { text-decoration: none; color: inherit; display: block; height: 100%; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand); color: inherit; }
.chart-box { position: relative; height: 290px; }

/* ---------- toasts ---------- */
.toast-container { z-index: 2100; }
.toast { border: 0; border-radius: 12px; box-shadow: var(--shadow-md); background: var(--surface); color: var(--text); border-left: 4px solid var(--brand); }
.toast.toast-success { border-left-color: var(--green); }
.toast.toast-danger { border-left-color: var(--red); }
.toast .toast-icon { font-size: 1.2rem; }

/* ---------- command palette ---------- */
.palette-backdrop { position: fixed; inset: 0; background: rgba(8, 12, 24, .55); backdrop-filter: blur(3px); z-index: 2200; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.palette-backdrop.open { display: flex; }
.palette { width: min(640px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 1rem 1.25rem; font-size: 1.05rem; outline: none; }
.palette ul { list-style: none; margin: 0; padding: .4rem; max-height: 52vh; overflow-y: auto; }
.palette li a { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.palette li a i { color: var(--text-muted); width: 1.2rem; text-align: center; }
.palette li a small { margin-left: auto; color: var(--text-muted); }
.palette li.sel a, .palette li a:hover { background: var(--brand-soft); }
.palette .hint { padding: .5rem 1rem; font-size: .75rem; color: var(--text-muted); border-top: 1px solid var(--line); display: flex; gap: 1rem; }

/* ---------- role permission editor ---------- */
.save-bar { position: sticky; bottom: 0; z-index: 1010; background: var(--surface); border-top: 1px solid var(--line); padding: .8rem 1.2rem; margin: 0 -1.75rem -2.5rem; box-shadow: 0 -6px 16px rgba(16, 24, 40, .06); }
.matrix td, .matrix th { white-space: nowrap; }
.perm-card .list-group-item label { cursor: pointer; }

/* ---------- empty state / misc ---------- */
code { color: var(--violet); background: transparent; }
[data-bs-theme="dark"] code { color: #c4b5fd; }
dl dt { color: var(--text-muted); font-weight: 550; }

/* ---------- login (split screen) ---------- */
.auth-body { min-height: 100vh; background: var(--page-bg); }
.auth-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-hero {
    background: radial-gradient(1200px 600px at 10% 0%, rgba(14, 165, 233, .45), transparent 60%), linear-gradient(145deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff; padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -180px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.auth-hero .logo { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; font-size: 1.2rem; }
.auth-hero .logo i { width: 2.8rem; height: 2.8rem; border-radius: 1rem; display: grid; place-items: center; background: rgba(255, 255, 255, .15); font-size: 1.5rem; }
.auth-hero h2 { font-size: 2.1rem; font-weight: 750; line-height: 1.2; max-width: 22ch; color: #fff; }
.auth-hero ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.auth-hero li { display: flex; gap: .75rem; align-items: center; color: rgba(255, 255, 255, .85); }
.auth-hero li i { width: 2rem; height: 2rem; border-radius: .6rem; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.auth-form-side { display: grid; place-items: center; padding: 2rem 1.25rem; position: relative; }
.auth-card { width: 100%; max-width: 410px; }
.auth-tools { position: absolute; top: 1rem; right: 1.25rem; display: flex; gap: .5rem; }
@media (max-width: 991.98px) { .auth-split { grid-template-columns: 1fr; } .auth-hero { display: none; } }

/* ---------- print ---------- */
@media print {
    body { background: #fff !important; color: #000; font-size: 11pt; }
    .sidebar, .topbar, .footer, .d-print-none, #loadbar, .palette-backdrop, .toast-container, .save-bar { display: none !important; }
    .content-wrap { margin-left: 0 !important; }
    .main { padding: 0 !important; max-width: none; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    .table { font-size: 10pt; }
    a { text-decoration: none; color: inherit; }
}
