:root,
[data-bs-theme="light"] {
    --zk-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --zk-bg: #f4f6fb;
    --zk-surface: #ffffff;
    --zk-surface-2: #f8fafc;
    --zk-border: #e6e9f0;
    --zk-text: #0f172a;
    --zk-text-2: #475569;
    --zk-muted: #64748b;
    --zk-primary: #4f46e5;
    --zk-primary-rgb: 79, 70, 229;
    --zk-primary-soft: #eef2ff;
    --zk-primary-ink: #3730a3;
    --zk-sidebar: #0f172a;
    --zk-sidebar-2: #1e293b;
    --zk-sidebar-text: #94a3b8;
    --zk-sidebar-active: #ffffff;
    --zk-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
    --zk-radius: 14px;

    --viz-grid: #eef1f6;
    --viz-axis: #64748b;
    --viz-present: #008300;
    --viz-late: #eda100;
    --viz-leave: #2a78d6;
    --viz-absent: #e34948;
    --viz-blue: #2a78d6;
    --viz-blue-track: #e3eefc;

    --bs-body-font-family: var(--zk-font);
    --bs-body-bg: var(--zk-bg);
    --bs-body-color: var(--zk-text);
    --bs-secondary-color: var(--zk-muted);
    --bs-border-color: var(--zk-border);
    --bs-primary: var(--zk-primary);
    --bs-primary-rgb: var(--zk-primary-rgb);
    --bs-link-color: var(--zk-primary);
    --bs-link-color-rgb: var(--zk-primary-rgb);
    --bs-link-hover-color: var(--zk-primary-ink);
    --bs-border-radius: 10px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 14px;
    --bs-focus-ring-color: rgba(var(--zk-primary-rgb), .25);
}

[data-bs-theme="dark"] {
    --zk-bg: #0b0f17;
    --zk-surface: #161b26;
    --zk-surface-2: #1b2130;
    --zk-border: #262d3d;
    --zk-text: #e7eaf1;
    --zk-text-2: #b6bdcc;
    --zk-muted: #8a93a6;
    --zk-primary: #818cf8;
    --zk-primary-rgb: 129, 140, 248;
    --zk-primary-soft: rgba(129, 140, 248, .14);
    --zk-primary-ink: #c7d2fe;
    --zk-sidebar: #0b0f17;
    --zk-sidebar-2: #161b26;
    --zk-shadow: 0 1px 2px rgba(0, 0, 0, .3);

    --viz-grid: #232a39;
    --viz-axis: #8a93a6;
    --viz-present: #008300;
    --viz-late: #c98500;
    --viz-leave: #3987e5;
    --viz-absent: #e66767;
    --viz-blue: #3987e5;
    --viz-blue-track: #1f2a40;

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

body {
    background: var(--zk-bg);
    font-family: var(--zk-font);
    font-size: .925rem;
    color: var(--zk-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 650; letter-spacing: -.01em; }
.text-muted { color: var(--zk-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* Layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 264px;
    flex-shrink: 0;
    background: var(--zk-sidebar);
    color: var(--zk-sidebar-text);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .2s ease;
}
.sidebar .brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;
    text-decoration: none;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; background: #fff; }
.brand-name { font-weight: 650; line-height: 1.15; }
.brand-sub { font-size: .72rem; color: var(--zk-sidebar-text); }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: .25rem .75rem 1.5rem; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.menu-title { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #64748b; padding: 1.1rem .75rem .4rem; }
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--zk-sidebar-text);
    padding: .5rem .75rem;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 500;
}
.sidebar .nav-link i { font-size: 1.05rem; width: 1.15rem; text-align: center; opacity: .9; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar .nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(99, 102, 241, .9), rgba(99, 102, 241, .55)); box-shadow: 0 4px 14px rgba(79, 70, 229, .35); }
.sidebar-footer { padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .78rem; }
.main { min-width: 0; flex: 1; display: flex; flex-direction: column; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.5rem;
    background: color-mix(in srgb, var(--zk-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--zk-border);
}
.topbar h1 { font-size: 1.1rem; margin: 0; }
.topbar .crumb { font-size: .76rem; color: var(--zk-muted); }
.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--zk-border);
    background: var(--zk-surface);
    color: var(--zk-text-2);
    position: relative;
}
.icon-btn:hover { color: var(--zk-primary); border-color: rgba(var(--zk-primary-rgb), .4); }
.icon-btn .dot {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e11d48;
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    border: 2px solid var(--zk-bg);
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-weight: 600;
    font-size: .8rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .6rem .25rem .25rem; border-radius: 999px; border: 1px solid var(--zk-border); background: var(--zk-surface); color: var(--zk-text); }
.user-chip small { color: var(--zk-muted); display: block; line-height: 1; font-size: .7rem; }
.content { padding: 1.5rem; flex: 1; }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: 0; transform: translateX(-100%); }
    .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
    .content { padding: 1rem; }
    .topbar { padding: .6rem 1rem; }
}

/* Cards */
.card {
    background: var(--zk-surface);
    border: 1px solid var(--zk-border);
    border-radius: var(--zk-radius);
    box-shadow: var(--zk-shadow);
    --bs-card-cap-bg: transparent;
    --bs-card-border-color: var(--zk-border);
}
.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--zk-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.card-body { padding: 1.25rem; }
.card .list-group-item { background: transparent; border-color: var(--zk-border); padding: .8rem 1.25rem; }
.card-title-sm { font-size: .8rem; font-weight: 600; color: var(--zk-muted); text-transform: uppercase; letter-spacing: .06em; }
a.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: rgba(var(--zk-primary-rgb), .35); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }

/* Tables */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--zk-surface-2); --bs-table-color: var(--zk-text); margin-bottom: 0; border-color: var(--zk-border); }
.table > thead th {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--zk-muted);
    background: var(--zk-surface-2);
    border-bottom: 1px solid var(--zk-border);
    padding-top: .7rem;
    padding-bottom: .7rem;
    white-space: nowrap;
}
.table > :not(caption) > * > * { padding: .75rem 1rem; vertical-align: middle; border-color: var(--zk-border); }
.table-sm > :not(caption) > * > * { padding: .5rem .75rem; }
.card > .table-responsive:first-child .table > thead th:first-child { border-top-left-radius: var(--zk-radius); }
.card > .table-responsive:first-child .table > thead th:last-child { border-top-right-radius: var(--zk-radius); }
.table tbody tr:last-child > * { border-bottom: 0; }

/* Forms and buttons */
.form-control, .form-select { border-color: var(--zk-border); background-color: var(--zk-surface); padding: .55rem .8rem; font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--zk-primary-rgb), .6); box-shadow: 0 0 0 .22rem rgba(var(--zk-primary-rgb), .15); }
.form-label { font-weight: 550; font-size: .82rem; color: var(--zk-text-2); margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--zk-primary); border-color: var(--zk-primary); }
.btn { font-weight: 550; border-radius: 10px; padding: .5rem .95rem; font-size: .88rem; }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .75rem 1.25rem; }
.btn-primary {
    --bs-btn-bg: var(--zk-primary);
    --bs-btn-border-color: var(--zk-primary);
    --bs-btn-hover-bg: #4338ca;
    --bs-btn-hover-border-color: #4338ca;
    --bs-btn-active-bg: #3730a3;
    --bs-btn-active-border-color: #3730a3;
    --bs-btn-disabled-bg: var(--zk-primary);
    --bs-btn-disabled-border-color: var(--zk-primary);
    box-shadow: 0 4px 12px rgba(var(--zk-primary-rgb), .25);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0b0f17; --bs-btn-hover-color: #0b0f17; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; }
.btn-outline-primary { --bs-btn-color: var(--zk-primary); --bs-btn-border-color: rgba(var(--zk-primary-rgb), .45); --bs-btn-hover-bg: var(--zk-primary); --bs-btn-hover-border-color: var(--zk-primary); }
.btn-light { --bs-btn-bg: var(--zk-surface); --bs-btn-border-color: var(--zk-border); --bs-btn-color: var(--zk-text-2); --bs-btn-hover-bg: var(--zk-surface-2); --bs-btn-hover-border-color: var(--zk-border); }
.btn-outline-secondary { --bs-btn-color: var(--zk-text-2); --bs-btn-border-color: var(--zk-border); --bs-btn-hover-bg: var(--zk-surface-2); --bs-btn-hover-color: var(--zk-text); --bs-btn-hover-border-color: var(--zk-border); }

/* Soft badges */
.badge { font-weight: 600; padding: .38em .7em; border-radius: 999px; letter-spacing: .01em; }
.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: var(--zk-primary-soft) !important; color: var(--zk-primary-ink) !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: #f8fafc !important; color: #64748b !important; border: 1px solid var(--zk-border); }
[data-bs-theme="dark"] .badge.text-bg-success { background: rgba(34, 197, 94, .16) !important; color: #86efac !important; }
[data-bs-theme="dark"] .badge.text-bg-warning { background: rgba(245, 158, 11, .16) !important; color: #fcd34d !important; }
[data-bs-theme="dark"] .badge.text-bg-danger { background: rgba(239, 68, 68, .16) !important; color: #fca5a5 !important; }
[data-bs-theme="dark"] .badge.text-bg-info { background: rgba(14, 165, 233, .16) !important; color: #7dd3fc !important; }
[data-bs-theme="dark"] .badge.text-bg-secondary, [data-bs-theme="dark"] .badge.text-bg-light { background: rgba(148, 163, 184, .14) !important; color: #cbd5e1 !important; }
[data-bs-theme="dark"] .badge.text-bg-dark { background: rgba(226, 232, 240, .12) !important; color: #e2e8f0 !important; }
.badge-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .4em; vertical-align: .1em; }

/* Alerts, nav pills, dropdowns, pagination */
.alert { border-radius: 12px; border: 1px solid transparent; }
.nav-pills .nav-link { border-radius: 999px; color: var(--zk-text-2); font-weight: 550; font-size: .85rem; padding: .4rem 1rem; }
.nav-pills .nav-link.active { background: var(--zk-primary); color: #fff; }
.dropdown-menu { border-radius: 12px; border-color: var(--zk-border); box-shadow: 0 12px 36px rgba(15, 23, 42, .12); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: .88rem; }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--zk-primary); --bs-pagination-active-border-color: var(--zk-primary); }
.modal-content { border-radius: 16px; border-color: var(--zk-border); }

/* Page header */
.page-header h2 { font-size: 1.15rem; }

/* Dashboard */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    color: #fff;
    background: radial-gradient(1200px 300px at 100% 0%, rgba(139, 92, 246, .55), transparent 60%), linear-gradient(135deg, #312e81, #4f46e5 55%, #0ea5e9);
    box-shadow: 0 16px 40px rgba(79, 70, 229, .25);
}
.hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .07);
}
.hero .hero-label { font-size: .8rem; opacity: .8; }
.hero .hero-figure { font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.hero .btn-hero { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.hero .btn-hero:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hero-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero-meter span { display: block; height: 100%; border-radius: 99px; background: #fff; }

.stat-tile { height: 100%; }
.stat-tile .card-body { display: flex; flex-direction: column; gap: .35rem; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.stat-label { font-size: .8rem; color: var(--zk-muted); font-weight: 500; }
.stat-value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--zk-text); }
.stat-delta { font-size: .75rem; font-weight: 600; }
.tone-indigo { background: var(--zk-primary-soft); color: var(--zk-primary); }
.tone-green { background: #dcfce7; color: #15803d; }
.tone-amber { background: #fef3c7; color: #b45309; }
.tone-red { background: #fee2e2; color: #b91c1c; }
.tone-blue { background: #dbeafe; color: #1d4ed8; }
.tone-slate { background: #f1f5f9; color: #475569; }
[data-bs-theme="dark"] .tone-green { background: rgba(34, 197, 94, .14); color: #86efac; }
[data-bs-theme="dark"] .tone-amber { background: rgba(245, 158, 11, .14); color: #fcd34d; }
[data-bs-theme="dark"] .tone-red { background: rgba(239, 68, 68, .14); color: #fca5a5; }
[data-bs-theme="dark"] .tone-blue { background: rgba(59, 130, 246, .14); color: #93c5fd; }
[data-bs-theme="dark"] .tone-slate { background: rgba(148, 163, 184, .14); color: #cbd5e1; }

.legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; color: var(--zk-text-2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 200px; }
details.data-table summary { font-size: .78rem; color: var(--zk-muted); cursor: pointer; margin-top: .75rem; }

.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: var(--zk-surface); }
.split-bar span { display: block; height: 100%; min-width: 4px; }
.split-bar span:first-child { border-radius: 4px 0 0 4px; }
.split-bar span:last-child { border-radius: 0 4px 4px 0; }

.meter { height: 8px; border-radius: 99px; background: var(--viz-blue-track); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--viz-blue); }
.meter.warn span { background: var(--viz-late); }
.meter.danger span { background: var(--viz-absent); }

.rank-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--zk-border); }
.rank-row:last-child { border-bottom: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.online { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); animation: pulse 2s infinite; }
.status-dot.offline { background: #94a3b8; }
.status-dot.error { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); } 50% { box-shadow: 0 0 0 7px rgba(22, 163, 74, .05); } }
@media (prefers-reduced-motion: reduce) { .status-dot.online { animation: none; } a.card, .sidebar { transition: none; } }

.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--zk-border); }
.timeline-item { position: relative; padding-bottom: .9rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.4rem; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--zk-primary); border: 3px solid var(--zk-surface); box-shadow: 0 0 0 1px var(--zk-border); }
.timeline-item:last-child { padding-bottom: 0; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { font-size: .68rem; text-align: center; color: var(--zk-muted); font-weight: 600; text-transform: uppercase; }
.cal-cell { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 600; background: var(--zk-surface-2); color: var(--zk-text-2); border: 1px solid var(--zk-border); }
.cal-cell.present { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.cal-cell.late { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.cal-cell.half_day { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.cal-cell.absent { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.cal-cell.leave, .cal-cell.unpaid_leave { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.cal-cell.holiday, .cal-cell.weekend { background: transparent; color: var(--zk-muted); border-style: dashed; }
.cal-cell.today { outline: 2px solid var(--zk-primary); outline-offset: 1px; }
[data-bs-theme="dark"] .cal-cell.present { background: rgba(34, 197, 94, .16); color: #86efac; border-color: transparent; }
[data-bs-theme="dark"] .cal-cell.late { background: rgba(245, 158, 11, .16); color: #fcd34d; border-color: transparent; }
[data-bs-theme="dark"] .cal-cell.half_day { background: rgba(14, 165, 233, .16); color: #7dd3fc; border-color: transparent; }
[data-bs-theme="dark"] .cal-cell.absent { background: rgba(239, 68, 68, .16); color: #fca5a5; border-color: transparent; }
[data-bs-theme="dark"] .cal-cell.leave, [data-bs-theme="dark"] .cal-cell.unpaid_leave { background: rgba(59, 130, 246, .16); color: #93c5fd; border-color: transparent; }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--zk-muted); }
.empty-state i { font-size: 1.8rem; display: block; margin-bottom: .4rem; opacity: .6; }

/* Guest pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(900px 400px at 0% 100%, rgba(14, 165, 233, .45), transparent 60%), radial-gradient(700px 400px at 100% 0%, rgba(139, 92, 246, .6), transparent 60%), #1e1b4b;
}
.auth-brand .feature { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-brand .feature i { font-size: 1.1rem; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-form .inner { width: 100%; max-width: 400px; }
.guest-wide { max-width: 860px; margin: 0 auto; padding: 2.5rem 1rem; }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}

/* Attendance sheet */
.sheet td, .sheet th { padding: .3rem .35rem !important; font-size: .72rem; text-align: center; }

.min-w-0 { min-width: 0; }
.sidebar .nav-link i { margin: 0 !important; }

.hgi-stroke { line-height: 1; vertical-align: -.14em; font-size: 1.1em; }
.btn .hgi-stroke { font-size: 1.05em; }
.stat-icon .hgi-stroke, .icon-btn .hgi-stroke { vertical-align: 0; font-size: 1.25rem; }
.btn-secondary { --bs-btn-bg: #1e293b; --bs-btn-border-color: #1e293b; --bs-btn-hover-bg: #0f172a; --bs-btn-hover-border-color: #0f172a; --bs-btn-active-bg: #0f172a; }
[data-bs-theme="dark"] .btn-secondary { --bs-btn-bg: #2a3346; --bs-btn-border-color: #2a3346; --bs-btn-hover-bg: #343f57; --bs-btn-hover-border-color: #343f57; }
.d-grid > form, .d-grid > form.d-inline { display: grid !important; }
.d-grid > form > .btn, .d-grid > .btn { text-align: left; }
.page-header .btn { padding: .42rem .85rem; font-size: .82rem; border-radius: 9px; }
.page-header .btn-sm { padding: .42rem .85rem; font-size: .82rem; }
.page-header form.d-flex .form-control, .page-header form.d-flex .form-select { padding: .38rem .7rem; font-size: .85rem; }
