/* ==========================================================================
   Sankar Suvan Sales CRM — premium theme (light + dark)
   Navy sidebar · indigo/violet primary · gold accent · Inter
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    --brand-1: #4f46e5;              /* indigo */
    --brand-2: #7c3aed;              /* violet */
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gold: #d4a017;
    --gold-soft: #fbf3dc;
    --navy-1: #0b1020;
    --navy-2: #121a33;
    --sidebar-w: 268px;

    --surface: #f5f6fb;
    --surface-2: #ffffff;
    --surface-3: #f8f9fd;
    --border: #e7e9f3;
    --text: #0f172a;
    --muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 8px 24px -8px rgba(30, 27, 75, .14);
    --shadow-lg: 0 24px 48px -16px rgba(30, 27, 75, .25);
    --radius: 14px;

    --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
    --bs-body-bg: var(--surface);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-link-hover-color-rgb: 67, 56, 202;
    --bs-primary-bg-subtle: #eef0ff;
    --bs-primary-text-emphasis: #3730a3;
    --bs-success-bg-subtle: #e8f8f0;
    --bs-warning-bg-subtle: #fdf5e1;
    --bs-danger-bg-subtle: #fdecee;
    --bs-info-bg-subtle: #e7f5fb;
    --bs-secondary-bg-subtle: #f0f2f7;
}

[data-bs-theme="dark"] {
    --surface: #0a0e1a;
    --surface-2: #111729;
    --surface-3: #151c31;
    --border: #232b45;
    --text: #e6e8f2;
    --muted: #94a0bd;
    --gold-soft: rgba(212, 160, 23, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
    --bs-body-bg: var(--surface);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-bg: #182038;
    --bs-tertiary-bg: #141b30;
    --bs-primary: #818cf8;
    --bs-primary-rgb: 129, 140, 248;
    --bs-link-color: #a5b4fc;
    --bs-link-color-rgb: 165, 180, 252;
    --bs-link-hover-color: #c7d2fe;
    --bs-primary-bg-subtle: rgba(99, 102, 241, .16);
    --bs-primary-text-emphasis: #c7d2fe;
}

/* ---------- base ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--surface); color: var(--text); font-size: .9rem; letter-spacing: -.005em; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { letter-spacing: -.02em; font-weight: 700; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tiny { font-size: .72rem; }
.min-w-0 { min-width: 0; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
::selection { background: rgba(79, 70, 229, .18); }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } * { transition: none !important; } }

/* ---------- shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 1.5rem 1.75rem; flex: 1; }
@media (max-width: 575.98px) { .content { padding: 1rem; } }

/* ---------- sidebar ---------- */
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0; color: #c3c9de;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(124, 58, 237, .22) 0%, transparent 60%),
        radial-gradient(80% 40% at 100% 100%, rgba(212, 160, 23, .10) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-2) 0%, var(--navy-1) 100%);
    border-right: 1px solid rgba(255, 255, 255, .04);
    display: flex; flex-direction: column;
}
@media (min-width: 992px) {
    .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; visibility: visible !important; transform: none !important; }
}
@media (max-width: 991.98px) { .sidebar.offcanvas-lg { --bs-offcanvas-width: var(--sidebar-w); --bs-offcanvas-bg: var(--navy-1); } }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
.sidebar-brand { display: flex; align-items: center; gap: .8rem; padding: 1.35rem 1.25rem 1.1rem; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-gradient); color: #fff; font-size: 1.2rem;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-name { color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.brand-sub { color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav { padding: .5rem .75rem 1.5rem; flex: 1; }
.sidebar-nav .nav-header { text-transform: uppercase; font-size: .64rem; font-weight: 700; letter-spacing: .12em; color: #5d6787; padding: 1.1rem .8rem .4rem; }
.sidebar-nav .nav-link {
    position: relative; display: flex; align-items: center; gap: .75rem; color: #b5bcd3; font-weight: 500;
    padding: .55rem .8rem; border-radius: 10px; margin-bottom: 2px; transition: background .15s, color .15s;
}
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; opacity: .85; }
.sidebar-nav .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.sidebar-nav .nav-link.active {
    color: #fff; background: linear-gradient(90deg, rgba(99, 102, 241, .35) 0%, rgba(124, 58, 237, .12) 100%);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .25);
}
.sidebar-nav .nav-link.active::before {
    content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.sidebar-nav .nav-link.active i { opacity: 1; color: #c7d2fe; }
.nav-badge { background: var(--gold); color: #1a1300; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.sidebar-role { font-size: .7rem; color: var(--gold); font-weight: 600; }

/* ---------- topbar ---------- */
.topbar {
    display: flex; align-items: center; gap: .85rem; padding: .75rem 1.75rem; position: sticky; top: 0; z-index: 1020;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}
@media (max-width: 575.98px) { .topbar { padding: .65rem 1rem; } }
.page-eyebrow { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.page-title { font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -.025em; }
.btn-icon {
    width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm);
}
.btn-icon:hover { border-color: rgba(79, 70, 229, .35); color: var(--brand-1); }
.dot-badge {
    position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface);
}
.user-chip {
    display: flex; align-items: center; gap: .6rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text);
}
.user-chip:hover, .user-chip.show { border-color: rgba(79, 70, 229, .35); color: var(--text); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--brand-gradient); color: #fff;
    display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 3.5px rgba(212, 160, 23, .55);
}
.avatar-sm { width: 30px; height: 30px; font-size: .78rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
[data-bs-theme="light"] .theme-icon-dark, [data-bs-theme="dark"] .theme-icon-light { display: none; }
.notif-menu { width: 340px; max-width: 92vw; overflow: hidden; }
.notif-item { white-space: normal; padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.notif-item.unread { background: var(--bs-primary-bg-subtle); box-shadow: inset 3px 0 0 var(--brand-1); }

.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; background: var(--surface-2); }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
.dropdown-item:active { background: var(--brand-1); }

.demo-banner {
    background: var(--gold-soft); color: #7a5a00; border: 1px solid rgba(212, 160, 23, .35);
    border-radius: 12px; padding: .55rem .9rem; font-size: .82rem; margin-bottom: 1rem; font-weight: 500;
}
[data-bs-theme="dark"] .demo-banner { color: #f3cf6b; }
.app-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.75rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--border); }

/* ---------- cards ---------- */
.card {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); --bs-card-cap-bg: transparent; --bs-card-bg: var(--surface-2);
}
.card-header {
    background: transparent; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .92rem;
    padding: .95rem 1.15rem; letter-spacing: -.01em;
}
.card-body { padding: 1.15rem; }
.card-footer { background: transparent !important; border-top: 1px solid var(--border); padding: .75rem 1.15rem; }
a.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(79, 70, 229, .35); text-decoration: none; }

/* stat cards */
.stat-card { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), .07) 0%, transparent 70%); pointer-events: none;
}
.stat-card .stat-label { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.25; }
.stat-card .stat-icon {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0;
}
.stat-card .stat-icon.bg-primary-subtle { background: linear-gradient(135deg, #eef0ff, #e4ddff) !important; color: #4f46e5 !important; }
.stat-card .stat-icon.bg-success-subtle { background: linear-gradient(135deg, #e6f8ef, #d3f3e3) !important; color: #059669 !important; }
.stat-card .stat-icon.bg-warning-subtle { background: linear-gradient(135deg, #fdf5e1, #fbeac2) !important; color: #b7791f !important; }
.stat-card .stat-icon.bg-danger-subtle { background: linear-gradient(135deg, #fdecee, #fbd9de) !important; color: #dc2626 !important; }
.stat-card .stat-icon.bg-info-subtle { background: linear-gradient(135deg, #e5f4fb, #d2ecf8) !important; color: #0284c7 !important; }
.stat-card .stat-icon.bg-secondary-subtle { background: linear-gradient(135deg, #f0f2f7, #e5e8f0) !important; color: #475569 !important; }
[data-bs-theme="dark"] .stat-card .stat-icon { filter: saturate(1.1); background-blend-mode: normal; }

.stat-card .stretched-link { font-size: .72rem; font-weight: 600; }

/* welcome hero */
.welcome-hero {
    position: relative; overflow: hidden; border-radius: 18px; padding: 1.6rem 1.75rem; color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(212, 160, 23, .35) 0%, transparent 55%),
        radial-gradient(60% 120% at 0% 100%, rgba(124, 58, 237, .55) 0%, transparent 60%),
        linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
    box-shadow: 0 18px 40px -18px rgba(49, 46, 129, .7);
}
.welcome-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 18px 18px;
    mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
.welcome-hero > * { position: relative; z-index: 1; }
.welcome-hero .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f6d365; margin-bottom: .25rem; }
.welcome-hero .money { color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .5rem 1rem; letter-spacing: -.005em; }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; font-size: .8rem; }
.btn-primary {
    --bs-btn-bg: #4f46e5; --bs-btn-border-color: transparent; --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: #3730a3; --bs-btn-disabled-bg: #4f46e5;
    background-image: var(--brand-gradient); border: 0;
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .75); }
.btn-success { --bs-btn-bg: #059669; --bs-btn-border-color: #059669; --bs-btn-hover-bg: #047857; --bs-btn-hover-border-color: #047857; box-shadow: 0 6px 16px -8px rgba(5, 150, 105, .7); }
.btn-outline-primary { --bs-btn-color: #4f46e5; --bs-btn-border-color: rgba(79, 70, 229, .35); --bs-btn-hover-bg: #4f46e5; --bs-btn-hover-border-color: #4f46e5; }
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #a5b4fc; --bs-btn-border-color: rgba(165, 180, 252, .35); }
.btn-light { --bs-btn-bg: var(--surface-2); --bs-btn-border-color: var(--border); --bs-btn-hover-bg: var(--surface-3); --bs-btn-hover-border-color: rgba(79, 70, 229, .3); --bs-btn-color: var(--text); --bs-btn-hover-color: var(--text); box-shadow: var(--shadow-sm); }
.btn-gold { background: linear-gradient(135deg, #e6b422, #c8930d); color: #1a1300; border: 0; box-shadow: 0 6px 16px -6px rgba(200, 147, 13, .7); }
.btn-gold:hover { filter: brightness(1.05); color: #1a1300; }

/* ---------- forms ---------- */
.form-label { font-weight: 600; font-size: .8rem; color: var(--text); margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 10px; border-color: var(--border); padding: .55rem .8rem; font-size: .9rem;
    background-color: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.form-control-sm, .form-select-sm { border-radius: 8px; padding: .35rem .6rem; font-size: .8rem; }
.form-control:focus, .form-select:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
.input-group-text { border-radius: 10px; background: var(--surface-3); border-color: var(--border); color: var(--muted); font-weight: 600; }
.form-check-input:checked { background-color: #4f46e5; border-color: #4f46e5; }
.form-text { color: var(--muted); font-size: .75rem; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }

/* ---------- tables ---------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(var(--bs-primary-rgb), .035); --bs-table-striped-bg: var(--surface-3); margin-bottom: 0; color: var(--text); }
.table > :not(caption) > * > * { padding: .75rem 1rem; border-bottom-color: var(--border); }
.table-sm > :not(caption) > * > * { padding: .5rem .8rem; }
.table thead th {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
    background: var(--surface-3); white-space: nowrap; border-bottom: 1px solid var(--border);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table td > a.fw-semibold, .table td.small:first-child { white-space: nowrap; }

/* stat cards on phones: icon above text so labels never break mid-word */
@media (max-width: 575.98px) {
    .stat-card .card-body { flex-direction: column; align-items: flex-start !important; gap: .6rem !important; padding: .9rem; }
    .stat-card .stat-icon { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 11px; }
    .stat-card .stat-value { font-size: 1.15rem; }
    .stat-card .stat-label { font-size: .64rem; letter-spacing: .04em; }
    .welcome-hero { padding: 1.25rem; }
    .page-title { font-size: 1.1rem; }
}
[data-bs-theme="dark"] .stat-card .stat-icon.bg-primary-subtle { color: #a5b4fc !important; background: rgba(99, 102, 241, .16) !important; }
[data-bs-theme="dark"] .stat-card .stat-icon.bg-success-subtle { color: #6ee7b7 !important; background: rgba(16, 185, 129, .14) !important; }
[data-bs-theme="dark"] .stat-card .stat-icon.bg-warning-subtle { color: #fcd34d !important; background: rgba(245, 158, 11, .14) !important; }
[data-bs-theme="dark"] .stat-card .stat-icon.bg-danger-subtle { color: #fca5a5 !important; background: rgba(239, 68, 68, .14) !important; }
[data-bs-theme="dark"] .stat-card .stat-icon.bg-info-subtle { color: #7dd3fc !important; background: rgba(14, 165, 233, .14) !important; }
[data-bs-theme="dark"] .stat-card .stat-icon.bg-secondary-subtle { color: #cbd5e1 !important; background: rgba(148, 163, 184, .12) !important; }
.table-total td { font-weight: 800; background: var(--surface-3) !important; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* ---------- badges ---------- */
.badge { font-weight: 600; letter-spacing: .01em; padding: .38em .7em; }
.badge.rounded-pill { padding: .38em .75em; }
.badge.text-bg-success { background: #dcfce7 !important; color: #166534 !important; }
.badge.text-bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge.text-bg-danger { background: #fee2e2 !important; color: #991b1b !important; }
.badge.text-bg-info { background: #e0f2fe !important; color: #075985 !important; }
.badge.text-bg-primary { background: #e0e7ff !important; color: #3730a3 !important; }
.badge.text-bg-secondary { background: #f1f5f9 !important; color: #475569 !important; }
.badge.text-bg-dark { background: #e2e8f0 !important; color: #1e293b !important; }
.badge.text-bg-light { background: var(--surface-3) !important; color: var(--text) !important; border: 1px solid var(--border); }
[data-bs-theme="dark"] .badge.text-bg-success { background: rgba(34, 197, 94, .15) !important; color: #86efac !important; }
[data-bs-theme="dark"] .badge.text-bg-warning { background: rgba(245, 158, 11, .15) !important; color: #fcd34d !important; }
[data-bs-theme="dark"] .badge.text-bg-danger { background: rgba(239, 68, 68, .15) !important; color: #fca5a5 !important; }
[data-bs-theme="dark"] .badge.text-bg-info { background: rgba(14, 165, 233, .15) !important; color: #7dd3fc !important; }
[data-bs-theme="dark"] .badge.text-bg-primary { background: rgba(99, 102, 241, .2) !important; color: #c7d2fe !important; }
[data-bs-theme="dark"] .badge.text-bg-secondary,
[data-bs-theme="dark"] .badge.text-bg-dark { background: rgba(148, 163, 184, .15) !important; color: #cbd5e1 !important; }

/* ---------- alerts ---------- */
.alert { border-radius: 12px; border-width: 1px; font-size: .86rem; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
[data-bs-theme="dark"] .alert-success { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); color: #6ee7b7; }
[data-bs-theme="dark"] .alert-danger { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); color: #fca5a5; }
[data-bs-theme="dark"] .alert-warning { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }
[data-bs-theme="dark"] .alert-info { background: rgba(99, 102, 241, .12); border-color: rgba(99, 102, 241, .3); color: #c7d2fe; }

/* ---------- misc ---------- */
.list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: var(--border); }
.list-group-item-action:hover { background: rgba(var(--bs-primary-rgb), .04); }
.empty-state { text-align: center; padding: 2.75rem 1rem; color: var(--muted); }
.empty-state i {
    font-size: 1.6rem; width: 60px; height: 60px; margin: 0 auto .75rem; border-radius: 18px; display: grid; place-items: center;
    background: var(--bs-primary-bg-subtle); color: var(--brand-1);
}
.empty-state .fw-semibold { color: var(--text); }
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; border-left: 2px solid var(--border); margin-left: .45rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--surface-2); border: 3px solid var(--brand-1);
}
dl.kv dt { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
dl.kv dd { margin-bottom: .8rem; font-weight: 500; }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: #4f46e5; --bs-pagination-active-border-color: #4f46e5; margin: 0; }
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.confirm-icon { width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--gold-soft); color: var(--gold); }
.nav-tabs .nav-link.active { font-weight: 700; }
details > summary { cursor: pointer; color: var(--bs-link-color); font-weight: 600; }
code { color: #7c3aed; }
[data-bs-theme="dark"] code { color: #c4b5fd; }
form.is-loading button[type=submit], form.is-loading button:not([type]) { pointer-events: none; opacity: .75; }

/* ---------- print ---------- */
@media print {
    .sidebar, .topbar, .app-footer, .no-print, .alert, .demo-banner { display: none !important; }
    .content { padding: 0; }
    body { background: #fff; color: #000; }
    .card { border: none; box-shadow: none; }
}
