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

/* ── Icon Boxes (border-only, no background fill) ── */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1.5px solid currentColor;
    background: transparent;
    flex-shrink: 0;
}
.icon-box-sm { width: 32px; height: 32px; }
.icon-box-md { width: 44px; height: 44px; border-radius: var(--radius-lg); }
.icon-box-lg { width: 56px; height: 56px; border-radius: var(--radius-lg); }

/* Color helpers */
.icon-primary { color: var(--theme-primary); }
.icon-secondary { color: var(--theme-secondary); }
.icon-danger { color: #ef4444; }
.icon-warning { color: #f59e0b; }
.icon-success { color: var(--theme-secondary); }

:root {
    --theme-primary: #2c53a9;
    --theme-primary-light: #3b5a9a;
    --theme-primary-dark: #1f3158;
    --theme-primary-rgb: 44, 83, 169;

    --theme-font: "Inter", sans-serif;
    --theme-success: #008000;
    --theme-secondary: #3a8f19;
    --text-color: #949494;
    --text-color-dark: #666;
    --header-height: 60px;
    --theme-roundness: 6px;
    --theme-roundness-pill: 20px;

    --text-ink: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-heading: #374151;
    --text-body: #333;
    --text-disabled: #999;
    --text-zinc: #a1a1aa;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-subtle: #f0f0f0;
    --error: #ef4444;
    --danger: #dc2626;
    --danger-dark: #991b1b;
    --danger-rgb: 220, 38, 38;
    --warning: #d97706;
    --warning-light: #f59e0b;
    --warning-dark: #b45309;
    --warning-rgb: 245, 158, 11;
    --success: #16a34a;
    --success-light: #10b981;
    --success-rgb: 58, 143, 25;
    --bg-light: #f3f4f6;
    --bg-accent: #eef2ff;

    /* ── Staff Page (sf-) ── */
    --sf-bg: var(--bg-body);
    --sf-card: var(--bg-card);
    --sf-ink: var(--text-ink);
    --sf-muted: var(--text-muted);
    --sf-border: var(--border-light);
    --sf-shadow: none;
    --sf-shadow-lg: none;
    --sf-radius: 16px;
    --sf-purple: var(--theme-primary);
    --sf-purple-l: var(--theme-primary);
    --sf-purple-bg: var(--bg-card-hover);
    --sf-green: #10b981;
    --sf-red: #ef4444;
    --sf-amber: #f59e0b;

    /* ── Staff Profile (sp-) ── */
    --sp-bg: var(--bg-body);
    --sp-card: var(--bg-card);
    --sp-ink: var(--text-ink);
    --sp-muted: var(--text-muted);
    --sp-border: var(--border-light);
    --sp-shadow: none;
    --sp-shadow-lg: none;
    --sp-radius: 16px;
    --sp-purple: var(--theme-primary);
    --sp-purple-l: var(--theme-primary);
    --sp-purple-bg: #f8f9fa;
    --sp-green: #10b981;
    --sp-red: #ef4444;
    --sp-amber: #f59e0b;

    /* Theme mode */
    --bg-body: #f4f4f4;
    --bg-card: #fff;
    --bg-card-hover: #f9fafb;
    --bg-input: #fff;
    --bg-table-header: #f8f9fa;
    --bg-table-stripe: #f9fafb;
    --bg-dropdown: #fff;
    --bg-modal: #fff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);

    /* ── Typography Scale (Professional Standard) ── */
    --fs-2xs: 0.625rem;
    /* 10px */
    --fs-xs: 0.6875rem;
    /* 11px */
    --fs-sm: 0.75rem;
    /* 12px */
    --fs-13: 0.8125rem;
    /* 13px */
    --fs-base: 0.9375rem;
    /* 15px */
    --fs-md: 0.9375rem;
    /* 15px */
    --fs-lg: 1rem;
    /* 16px */
    --fs-xl: 1.0625rem;
    /* 17px */
    --fs-2xl: 1.125rem;
    /* 18px */
    --fs-3xl: 1.25rem;
    /* 20px */
    --fs-4xl: 1.625rem;
    /* 26px */
    --fs-5xl: 1.875rem;
    /* 30px */
    --fs-6xl: 2rem;
    /* 32px */

    /* ── Line Height Scale ── */
    --lh-tight: 1.25;
    --lh-snug: 1.375;
    --lh-normal: 1.5;
    --lh-relaxed: 1.625;
    --lh-loose: 1.75;

    /* ── Border Radius Scale ── */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-2xl: 14px;
    --radius-3xl: 16px;
    --radius-pill: 20px;
    --radius-full: 50%;

    /* ── Spacing / Gap Scale ── */
    --gap-xs: 4px;
    --gap-sm: 6px;
    --gap-md: 8px;
    --gap-lg: 10px;
    --gap-xl: 12px;
    --gap-2xl: 16px;
    --gap-3xl: 20px;
    --gap-4xl: 24px;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --theme-primary: #5b8def;
    --theme-primary-light: #7da3f5;
    --theme-primary-dark: #4a7ae0;
    --theme-primary-rgb: 91, 141, 239;
    --bg-body: #121318;
    --bg-card: #1c1e26;
    --bg-card-hover: #252830;
    --bg-input: #22242e;
    --bg-table-header: #22242e;
    --bg-table-stripe: #1e2028;
    --bg-dropdown: #22242e;
    --bg-modal: #1c1e26;
    --text-ink: #f0f1f3;
    --text-muted: #a1a5b0;
    --text-light: #6e7380;
    --text-color: #c0c4cc;
    --text-color-dark: #dcdfe5;
    --text-heading: #e0e1e4;
    --text-body: #d0d2d8;
    --text-disabled: #6e7380;
    --text-zinc: #6e7380;
    --border-light: #2e3140;
    --border-medium: #3a3d4a;
    --border-subtle: #2e3140;
    --danger: #f87171;
    --danger-dark: #fca5a5;
    --danger-rgb: 248, 113, 113;
    --warning: #fbbf24;
    --warning-light: #fcd34d;
    --warning-dark: #f59e0b;
    --warning-rgb: 251, 191, 36;
    --success: #4ade80;
    --success-light: #34d399;
    --success-rgb: 74, 222, 128;
    --bg-light: #252830;
    --bg-accent: rgba(99, 102, 241, .12);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
    --important-bg: rgba(217, 119, 6, .1);
    --important-border: rgba(217, 119, 6, .25);
    --important-title: #fbbf24;
    --important-text: #fcd34d;
    --sp-purple-bg: #252830;
    --sp-danger-bg: rgba(239, 68, 68, .08);
    --sp-danger-border: rgba(239, 68, 68, .25);
    --sp-rail-bg: #2e3140;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: var(--bg-body);
    color: var(--text-ink);
}

[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .offcanvas {
    background-color: var(--bg-card) !important;
    color: var(--text-ink) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-ink) !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .dropdown-divider {
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background-color: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .modal-body {
    background-color: var(--bg-card) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .card-header {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .table {
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-ink);
    --bs-table-striped-bg: var(--bg-table-stripe);
    --bs-table-striped-color: var(--text-ink);
    --bs-table-hover-bg: rgba(255, 255, 255, .06);
    --bs-table-hover-color: var(--text-ink);
    --bs-table-active-bg: var(--bg-card-hover);
    --bs-table-active-color: var(--text-ink);
    border-color: var(--border-light);
    color: var(--text-ink);
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    color: var(--text-ink) !important;
    border-color: var(--border-light) !important;
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light th {
    background-color: var(--bg-table-header) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .table-hover tbody tr:hover td {
    background-color: rgba(255, 255, 255, .04) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control[readonly],
[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-select {
    background-color: var(--bg-input) !important;
    color: var(--text-ink) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] input[readonly],
[data-theme="dark"] input:disabled {
    background-color: var(--bg-input) !important;
    color: var(--text-ink) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] input[readonly].border-0 {
    background: transparent !important;
}

[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"] {
    color-scheme: dark;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-input) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-light) !important;
}

[data-theme="dark"] .input-group-text {
    background-color: var(--bg-input);
    color: var(--text-muted);
    border-color: var(--border-light);
}

/* Form checks, labels, list items */
[data-theme="dark"] .form-check-input {
    background-color: var(--bg-input) !important;
    border-color: #4b5060 !important;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

[data-theme="dark"] .form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23888'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .form-check-label {
    color: var(--text-ink);
}

[data-theme="dark"] .form-floating>label {
    color: var(--text-muted);
}

[data-theme="dark"] .form-floating>.form-control {
    color: var(--text-ink);
}

/* Dashed borders */
[data-theme="dark"] .border-dashed {
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-ink) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-ink);
}

/* Alerts */
[data-theme="dark"] .alert-danger {
    background-color: rgba(220, 53, 69, .12);
    color: var(--text-ink);
    border-color: rgba(220, 53, 69, .3);
}

[data-theme="dark"] .alert-danger .form-check-label {
    color: var(--text-ink) !important;
}

[data-theme="dark"] .alert-danger .form-label {
    color: var(--text-ink) !important;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(25, 135, 84, .12);
    color: var(--text-ink);
    border-color: rgba(25, 135, 84, .3);
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 193, 7, .12);
    color: var(--text-ink);
    border-color: rgba(255, 193, 7, .3);
}

[data-theme="dark"] .alert-info {
    background-color: rgba(13, 202, 240, .12);
    color: var(--text-ink);
    border-color: rgba(13, 202, 240, .3);
}

[data-theme="dark"] .alert-primary {
    background-color: rgba(var(--theme-primary-rgb), .12);
    color: var(--text-ink);
    border-color: rgba(var(--theme-primary-rgb), .3);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .modal-body.bg-light {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .border-bottom {
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .border-top {
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-light);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-ink);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

[data-theme="dark"] .badge.bg-light {
    background-color: var(--bg-card-hover) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .list-group-item {
    background-color: var(--bg-card);
    color: var(--text-ink);
    border-color: var(--border-light);
}

/* Links in dark mode — only style bare links without custom classes */
[data-theme="dark"] a {
    color: var(--theme-primary);
}

[data-theme="dark"] a:hover {
    color: var(--theme-primary-light);
}

[data-theme="dark"] a.text-decoration-none,
[data-theme="dark"] a.text-dark,
[data-theme="dark"] a[class*="cr-"],
[data-theme="dark"] a[class*="svc-"],
[data-theme="dark"] a[class*="db-"],
[data-theme="dark"] a[class*="nb-"],
[data-theme="dark"] a[class*="ntc-"],
[data-theme="dark"] a[class*="ref-"],
[data-theme="dark"] a[class*="sf-"],
[data-theme="dark"] a[class*="rm-"],
[data-theme="dark"] a[class*="du-"] {
    color: inherit;
}

[data-theme="dark"] .text-dark {
    color: var(--text-ink) !important;
}

[data-theme="dark"] hr {
    border-color: var(--border-light);
}

[data-theme="dark"] .shadow,
[data-theme="dark"] .shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Form labels */
[data-theme="dark"] .form-label {
    color: var(--text-ink);
}

[data-theme="dark"] label {
    color: var(--text-ink);
}

[data-theme="dark"] .fieldset-outline {
    background-color: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .shareholder-sticky-header {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .draggable-box {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .important-note-box {
    --important-bg: rgba(217, 119, 6, .1);
    --important-border: rgba(217, 119, 6, .25);
    --important-title: #fbbf24;
    --important-text: #fcd34d;
}

/* AGM / Custom radio & styles */
[data-theme="dark"] .isAgmStyle {
    background-color: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .selected-directors span {
    background-color: var(--bg-card-hover) !important;
    border-color: var(--border-light) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .custom-radio {
    outline-color: var(--border-light);
    color: var(--text-ink);
}

[data-theme="dark"] .radio-style {
    background-color: var(--bg-card-hover) !important;
    color: var(--theme-primary) !important;
}

/* Check Name Modal */
[data-theme="dark"] #checkNameModal {
    --cn-ink: #f0f1f3;
    --cn-muted: #a1a5b0;
    --cn-border: #2e3140;
}

[data-theme="dark"] .cn-header {
    background: var(--bg-card) !important;
    border-bottom-color: var(--border-light) !important;
}

[data-theme="dark"] .cn-close {
    background: var(--bg-card-hover) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .cn-close:hover {
    background: var(--border-light) !important;
}

[data-theme="dark"] .cn-input,
[data-theme="dark"] .cn-select {
    background: var(--bg-input) !important;
    color: var(--text-ink) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .cn-input::placeholder {
    color: var(--text-light) !important;
}

[data-theme="dark"] .cn-match-card {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .cn-match-card:hover {
    border-color: var(--theme-primary) !important;
}

[data-theme="dark"] .cn-reset-btn {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-light) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .cn-reset-btn:hover {
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}

[data-theme="dark"] .cn-banner-available {
    background: rgba(22, 163, 74, .12) !important;
    border-color: rgba(22, 163, 74, .3) !important;
    color: #86efac !important;
}

[data-theme="dark"] .cn-banner-unavailable {
    background: rgba(220, 53, 69, .12) !important;
    border-color: rgba(220, 53, 69, .3) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .cn-banner-warning {
    background: rgba(217, 119, 6, .1) !important;
    border-color: rgba(217, 119, 6, .25) !important;
    color: #fcd34d !important;
}

[data-theme="dark"] .cn-mismatch-note {
    background: rgba(217, 119, 6, .1) !important;
    border-color: rgba(217, 119, 6, .25) !important;
    color: #fcd34d !important;
}

/* Pagination */
[data-theme="dark"] .pagination {
    --bs-pagination-color: var(--text-ink);
    --bs-pagination-bg: var(--bg-card);
    --bs-pagination-border-color: var(--border-light);
    --bs-pagination-hover-color: var(--text-ink);
    --bs-pagination-hover-bg: var(--bg-card);
    --bs-pagination-hover-border-color: var(--border-light);
    --bs-pagination-focus-color: var(--text-ink);
    --bs-pagination-focus-bg: var(--bg-card);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--theme-primary);
    --bs-pagination-active-border-color: var(--theme-primary);
    --bs-pagination-disabled-color: var(--text-light);
    --bs-pagination-disabled-bg: var(--bg-card-hover);
    --bs-pagination-disabled-border-color: var(--border-light);
}

[data-theme="dark"] .pagination .page-item .page-link {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .pagination .page-item .page-link:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .pagination .page-item.active .page-link,
[data-theme="dark"] .active>.page-link {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

[data-theme="dark"] .pagination .page-item.disabled .page-link {
    opacity: 0.4;
}

/* Tabs */
[data-theme="dark"] .nav-tabs {
    border-color: var(--border-light);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--text-muted);
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background-color: var(--bg-card);
    color: var(--text-ink);
    border-color: var(--border-light) var(--border-light) var(--bg-card);
}

/* Accordion */
[data-theme="dark"] .accordion-item {
    background-color: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .accordion-button {
    background: var(--bg-card) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--bg-card-hover) !important;
}

/* Select2 */
[data-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: var(--bg-input);
    border-color: var(--border-light);
    color: var(--text-ink);
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-ink);
}

[data-theme="dark"] .select2-dropdown {
    background-color: var(--bg-dropdown);
    border-color: var(--border-light);
}

[data-theme="dark"] .select2-results__option {
    color: var(--text-ink);
}

[data-theme="dark"] .select2-results__option--highlighted {
    background-color: var(--theme-primary) !important;
}

/* SweetAlert */
[data-theme="dark"] .swal2-popup {
    background: var(--bg-card);
    color: var(--text-ink);
}

[data-theme="dark"] .swal2-title {
    color: var(--text-ink);
}

[data-theme="dark"] .swal2-html-container {
    color: var(--text-muted);
}

.container,
.container-fluid {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
    }
}

a,
button {
    text-decoration: none !important;
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.root-nav {
    display: flex;
    justify-content: center;
    /* align-items: center; */
    gap: 28px;
    list-style: none;
}

.root-nav .nav-link,
.nav-link {
    color: var(--theme-primary-dark);
    font-weight: 500;
}

.menu-btn {
    background-color: var(--theme-primary);
    color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
}

.navbar-nav {
    gap: var(--gap-lg);
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
}

/* ── Global Text Size Utilities ── */
.text-2xs {
    font-size: var(--fs-2xs) !important;
}

/* 10px */
.text-xs {
    font-size: var(--fs-xs) !important;
}

/* 11px */
.text-sml {
    font-size: var(--fs-sm) !important;
}

/* 12px */
.text-13 {
    font-size: var(--fs-13) !important;
}

/* 13px */
.text-sm {
    font-size: var(--fs-base) !important;
}

/* 14px */
.text-15 {
    font-size: var(--fs-md) !important;
}

/* 15px */
.text-base {
    font-size: var(--fs-lg) !important;
}

/* 16px */
.text-md {
    font-size: var(--fs-2xl) !important;
}

/* 18px */
.text-lg {
    font-size: var(--fs-3xl) !important;
}

/* 20px */
.text-xl {
    font-size: var(--fs-4xl) !important;
}

/* 24px */

/* ── Global Font Weight Utilities ── */
.fw-300 {
    font-weight: 300 !important;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-900 {
    font-weight: 900 !important;
}

/* ── Global Gap Utilities ── */
.g-xs {
    gap: var(--gap-xs) !important;
}

/* 4px */
.g-sm {
    gap: var(--gap-sm) !important;
}

/* 6px */
.g-md {
    gap: var(--gap-md) !important;
}

/* 8px */
.g-lg {
    gap: var(--gap-lg) !important;
}

/* 10px */
.g-xl {
    gap: var(--gap-xl) !important;
}

/* 12px */
.g-2xl {
    gap: var(--gap-2xl) !important;
}

/* 16px */
.g-3xl {
    gap: var(--gap-3xl) !important;
}

/* 20px */
.g-4xl {
    gap: var(--gap-4xl) !important;
}

/* 24px */

/* ── Global Border Radius Utilities ── */
.r-xs {
    border-radius: var(--radius-xs) !important;
}

/* 4px */
.r-sm {
    border-radius: var(--radius-sm) !important;
}

/* 6px */
.r-md {
    border-radius: var(--radius-md) !important;
}

/* 8px */
.r-lg {
    border-radius: var(--radius-lg) !important;
}

/* 10px */
.r-xl {
    border-radius: var(--radius-xl) !important;
}

/* 12px */
.r-2xl {
    border-radius: var(--radius-2xl) !important;
}

/* 14px */
.r-3xl {
    border-radius: var(--radius-3xl) !important;
}

/* 16px */
.r-pill {
    border-radius: var(--radius-pill) !important;
}

/* 20px */
.r-full {
    border-radius: var(--radius-full) !important;
}

/* 50% */

/* ── Global Combination Utilities ── */

/* Flexbox shortcuts */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center-v {
    display: flex;
    align-items: center;
}

.flex-center-h {
    display: flex;
    justify-content: center;
}

.inline-center {
    display: inline-flex;
    align-items: center;
}

/* Text truncation */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Button reset */
.btn-reset {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* Typography combos: size + weight */
.typo-13-600 {
    font-size: var(--fs-13);
    font-weight: 600;
}

.typo-13-700 {
    font-size: var(--fs-13);
    font-weight: 700;
}

.typo-sm-600 {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.typo-sm-700 {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.typo-base-600 {
    font-size: var(--fs-base);
    font-weight: 600;
}

.typo-base-700 {
    font-size: var(--fs-base);
    font-weight: 700;
}

.typo-lg-700 {
    font-size: var(--fs-lg);
    font-weight: 700;
}

.typo-xl-700 {
    font-size: var(--fs-xl);
    font-weight: 700;
}

.typo-2xl-700 {
    font-size: var(--fs-2xl);
    font-weight: 700;
}

/* icon-box duplicates removed — using global definition at top of file */

/* Inline badge base */
.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
}

/* Card base */
.card-base {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
}

.logo-img {
    max-width: 240px;
    max-height: 40px;
}

.app-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--theme-primary);
    padding: 12px 24px;
    border-radius: var(--theme-roundness);
    border: none;
    color: #fff;
    gap: var(--gap-lg);
    transition: all 0.3s ease;
    font-weight: 500;
}

.app-btn-sm {
    padding: 8px 16px;
}

.app-btn-gradient {
    background: linear-gradient(135deg,
            var(--theme-primary-light),
            var(--theme-primary));

    /* width: 100%; */
}

.app-btn-gradient:hover {
    background: linear-gradient(135deg,
            var(--theme-primary),
            var(--theme-primary-dark));
    transform: translateY(-1px);
}

.app-btn-pilled {
    border-radius: var(--theme-roundness-pill);
}

.app-btn-outlined {
    background-color: transparent;
    border: 1px solid var(--theme-primary);
    color: var(--theme-primary);
    transition: all 0.3s ease;
}

.app-btn-outlined:hover {
    background-color: var(--theme-primary);
    color: #fff;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

.hover-flip .hover-flip-icon {
    display: inline-block;
}

.hover-flip:hover .hover-flip-icon {
    animation: flipIcon 0.6s ease;
}

.hover-fill .hover-fill-icon {
    transition: all 0.35s ease;
}

.hover-fill:hover .hover-fill-icon {
    fill: var(--theme-primary);
    stroke: #fff;
}

@keyframes flipIcon {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 150px;
    }
}

@media (max-width: 992px) {
    .nav-actions-mob {
        border-top: 1px solid #c7c7c7;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.rounded-8 {
    border-radius: var(--radius-md);
}

.rounded-16 {
    border-radius: var(--radius-3xl);
}

.center-search {
    justify-self: center;
    width: 100%;
    max-width: 600px;
}

.search-btn-style {
    border-radius: 40px;
    border: 1px solid #c7c7c7;
    position: relative;
    overflow: hidden;
    max-width: 350px;
}

.search-btn-style input {
    border: 0;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
    width: 100%;
}

.search-btn-style input:focus {
    outline: none;
    border: none;
}

.search-btn-style .search-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background-color: var(--theme-secondary);
    border-radius: 50%;
}

.search-btn-style input::placeholder {
    font-weight: 300 !important;
}

[data-theme="dark"] .search-btn-style {
    border-color: var(--border-color, #374151);
}

[data-theme="dark"] .search-btn-style input {
    background: var(--bg-card, #1e1e2e);
    color: var(--text-ink, #e5e7eb);
}

[data-theme="dark"] .search-btn-style input::placeholder {
    color: var(--text-muted, #9ca3af);
}

@media (max-width: 991.98px) {
    .nav-grid {
        grid-template-columns: 1fr;
        row-gap: 0.25rem;
    }

    .center-search {
        justify-self: stretch;
        max-width: 100%;
        margin: 0.25rem 0;
    }

    .right-slot .wrap span {
        display: none;
    }

    /* already handled via d-none d-lg-inline but this helps */
}

/* HTML: <div class="ribbon">Your text content</div> */
.ribbon {
    font-size: var(--fs-lg);
    font-weight: bold;
    color: #fff;
}

.ribbon {
    --r: 0.8em;
    /* control the cutout */

    border-block: 0.5em solid #0000;
    padding-inline: 0.5em calc(var(--r) + 0.25em);
    line-height: 1.5;
    clip-path: polygon(100% 0,
            0 0,
            0 100%,
            100% 100%,
            100% calc(100% - 0.25em),
            calc(100% - var(--r)) 50%,
            100% 0.25em);
    background:
        radial-gradient(0.2em 50% at left,
            var(--theme-primary),
            var(--theme-primary)) border-box,
        #ff6b6b padding-box;
    /* the color  */
    width: fit-content;
}

.root-doc-search-input {
    width: 100%;
    max-width: 300px;
}

.sortable-cursor {
    cursor: move;
}

.sticky-top {
    z-index: 100;
    padding: 8px 12px;
}

.sticky-top .d-flex {
    gap: var(--gap-md);
}

.page-title {
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-sm);
}

.page-title .badge {
    font-size: 0.75rem;
    padding: 3px 6px;
}

.badge-theme {
    border: 1px solid var(--theme-primary) !important;
    background-color: var(--theme-primary);
    color: #ffff;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 0.375rem;
    font-size: 0.75em !important;
    display: inline-block;
}

.badge-theme-outline {
    border: 1px solid var(--theme-primary) !important;
    background-color: transparent;
    color: var(--theme-primary);
    font-weight: 500;
}

.badge-theme-success {
    border: 1px solid var(--theme-success) !important;
    background-color: var(--theme-success);
    color: #fff;
}

.badge-theme-outline-success {
    border: 1px solid var(--theme-success) !important;
    background-color: transparent;
    color: var(--theme-success);
}

.badge-theme-danger {
    border: 1px solid #f00 !important;
    color: #f00;
}

.swal2-title {
    font-size: var(--fs-2xl);
}

/* div:where(.swal2-container) input:where(.swal2-input),
div:where(.swal2-container) input:where(.swal2-file),
div:where(.swal2-container) textarea:where(.swal2-textarea),
div:where(.swal2-container) select:where(.swal2-select),
div:where(.swal2-container) div:where(.swal2-radio),
div:where(.swal2-container) label:where(.swal2-checkbox) {
    margin: 0.75rem !important;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    padding: 1rem !important;
}

.swal2-actions {
    justify-content: start !important;
    margin: 0 0.75rem !important;
} */

.has-tooltip {
    cursor: pointer;
}

.custom-tooltip {
    position: fixed;
    z-index: 9999;
    background: #f0f0f0;
    border: 1px solid #c7c7c7;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: var(--fs-sm);
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;

    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.custom-tooltip.show {
    opacity: 1;
    transform: scale(1);
}

.shareholder-sticky-header {
    position: sticky;
    top: 70px;
    z-index: 1020;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: var(--gap-lg);
}

.fieldset-outline {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem 1rem 1rem;
    margin-top: 1.5rem;
    position: relative;
    background-color: #fff;
}

html {
    font-size: var(--fs-lg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--theme-font);
    font-optical-sizing: auto;
    font-size: var(--fs-base);
    /* 14px — professional standard */
    font-weight: 400;
    line-height: var(--lh-normal);
    /* 1.5 */
    color: var(--text-ink);
    background-color: #f4f4f4;
    scroll-padding-top: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════
   PROFESSIONAL TYPOGRAPHY DEFAULTS
   Standardized font sizes for the entire application.
   These cascade to all elements unless overridden by
   component-specific styles.
   ═══════════════════════════════════════════════════════════ */

/* ── Headings ── */
h1,
.h1 {
    font-size: var(--fs-5xl);
    font-weight: 700;
    line-height: var(--lh-tight);
    color: var(--text-ink);
}

/* 30px */
h2,
.h2 {
    font-size: var(--fs-4xl);
    font-weight: 700;
    line-height: var(--lh-tight);
    color: var(--text-ink);
}

/* 26px */
h3,
.h3 {
    font-size: var(--fs-2xl);
    font-weight: 600;
    line-height: var(--lh-snug);
    color: var(--text-ink);
}

/* 18px */
h4,
.h4 {
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: var(--lh-snug);
    color: var(--text-heading);
}

/* 16px */
h5,
.h5 {
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: var(--lh-normal);
    color: var(--text-heading);
}

/* 14px */
h6,
.h6 {
    font-size: var(--fs-13);
    font-weight: 600;
    line-height: var(--lh-normal);
    color: var(--text-muted);
}

/* 13px */

/* ── Paragraphs & Body Text ── */
p {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    margin-bottom: 0.75rem;
}

/* 14px */
small,
.small {
    font-size: var(--fs-sm);
}

/* 12px */

/* ── Form Elements ── */
.form-control,
.form-select {
    font-size: var(--fs-base);
    /* 14px */
    line-height: var(--lh-normal);
}

.form-control-sm,
.form-select-sm {
    font-size: var(--fs-13);
    /* 13px */
}

.form-control-lg,
.form-select-lg {
    font-size: var(--fs-lg);
    /* 16px */
}

.form-label {
    font-size: var(--fs-13);
    /* 13px */
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.375rem;
}

.form-text {
    font-size: var(--fs-sm);
    /* 12px */
    color: var(--text-muted);
}

.form-check-label {
    font-size: var(--fs-base);
    /* 14px */
}

.input-group-text {
    font-size: var(--fs-base);
    /* 14px */
}

/* ── Tables ── */
.table {
    font-size: var(--fs-13);
    /* 13px */
}

.table th {
    font-size: var(--fs-sm);
    /* 12px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-heading);
}

.table td {
    font-size: var(--fs-13);
    /* 13px */
    color: var(--text-ink);
    vertical-align: middle;
}

.table-sm th,
.table-sm td {
    font-size: var(--fs-sm);
    /* 12px */
}

/* ── Buttons ── */
.btn {
    font-size: var(--fs-base);
    /* 14px */
    font-weight: 600;
    line-height: var(--lh-normal);
}

.btn-sm {
    font-size: var(--fs-sm);
    /* 12px */
}

.btn-lg {
    font-size: var(--fs-lg);
    /* 16px */
}

/* ── Badges ── */
.badge {
    font-size: var(--fs-xs);
    /* 11px */
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Dropdowns ── */
.dropdown-item {
    font-size: var(--fs-base);
    /* 14px */
}

.dropdown-header {
    font-size: var(--fs-sm);
    /* 12px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* ── Modals ── */
.modal-title {
    font-size: var(--fs-2xl);
    /* 18px */
    font-weight: 700;
}

.modal-body {
    font-size: var(--fs-base);
    /* 14px */
}

/* ── Breadcrumbs ── */
.breadcrumb-item,
.breadcrumb-item a {
    font-size: var(--fs-13);
    /* 13px */
}

/* ── Pagination ── */
.page-link {
    font-size: var(--fs-13);
    /* 13px */
}

/* ── Alerts ── */
.alert {
    font-size: var(--fs-base);
    /* 14px */
}

/* ── Cards ── */
.card-title {
    font-size: var(--fs-lg);
    /* 16px */
    font-weight: 600;
}

.card-subtitle {
    font-size: var(--fs-13);
    /* 13px */
    color: var(--text-muted);
}

.card-text {
    font-size: var(--fs-base);
    /* 14px */
}

/* ── Nav / Tabs ── */
.nav-link {
    font-size: var(--fs-base);
    /* 14px */
    font-weight: 600;
}

.nav-tabs .nav-link {
    font-size: var(--fs-13);
    /* 13px */
    font-weight: 700;
}

/* ── Tooltips & Popovers ── */
.tooltip-inner {
    font-size: var(--fs-sm);
    /* 12px */
}

.popover-body {
    font-size: var(--fs-base);
    /* 14px */
}

/* ── List Groups ── */
.list-group-item {
    font-size: var(--fs-base);
    /* 14px */
}

/* ── Accordion ── */
.accordion-button {
    font-size: var(--fs-base);
    /* 14px */
    font-weight: 500;
}

/* ── Toast ── */
.toast-body {
    font-size: var(--fs-13);
    /* 13px */
}

.cursor-pointer {
    cursor: pointer;
}

input[readonly] {
    background-color: #f0f0f0 !important;
}


.smooth {
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    transition: all linear 0.2s;
}

.resize-none {
    resize: none;
}

.border-primary {
    border: 1px solid var(--theme-primary) !important;
}

.btn-primary {
    padding: 0.35rem 0.75rem;
    background-color: var(--theme-primary) !important;
    color: #fff !important;
    border-color: var(--theme-primary) !important;
    border-radius: var(--theme-roundness) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--theme-primary-dark) !important;
}

.btn:focus-visible {
    background-color: var(--theme-primary) !important;
}

.btn-outline-primary {
    border-color: var(--theme-primary) !important;
    background-color: transparent !important;
    color: var(--theme-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
    color: #fff !important;
}

.btn-outline-primary.active,
.btn-outline-primary:active {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

/* ── Global Cancel Button ── */
.btn-cancel {
    background: transparent;
    border: 1.5px solid var(--theme-primary);
    color: var(--theme-primary);
    border-radius: 8px;
    font-weight: 600;
    padding: 7px 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-cancel:hover,
.btn-cancel:focus {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.btn-cancel:active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

[data-theme="dark"] .btn-cancel {
    border-color: var(--border-light);
    color: var(--text-ink);
    background: transparent;
}

[data-theme="dark"] .btn-cancel:hover,
[data-theme="dark"] .btn-cancel:focus {
    background: #334155;
    border-color: #334155;
    color: #fff;
}

.btn-secondary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

.btn-danger {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.btn-warning {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.btn-info {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-info:hover,
.btn-info:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.btn-dark {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.btn-light {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark {
    border-color: var(--theme-primary) !important;
    background-color: transparent;
    color: var(--theme-primary) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
    color: #fff !important;
}

.btn-outline-secondary.active,
.btn-outline-secondary:active,
.btn-outline-warning.active,
.btn-outline-warning:active,
.btn-outline-info.active,
.btn-outline-info:active,
.btn-outline-dark.active,
.btn-outline-dark:active {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.btn-outline-danger {
    border-color: #dc3545 !important;
    background-color: transparent;
    color: #dc3545 !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: rgba(220, 53, 69, 0.08) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.btn-outline-danger.active,
.btn-outline-danger:active {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.btn-outline-success {
    border-color: #10b981 !important;
    background-color: transparent;
    color: #10b981 !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

.modal-header {
    background: #fff !important;
    border-bottom: 1px solid #dee2e6 !important;
    color: var(--theme-primary) !important;
}

.modal-header .modal-title {
    color: var(--theme-primary) !important;
}

.hover-secondary:hover,
.hover-text-secondary:hover {
    color: var(--theme-secondary) !important;
}

.bg-primary {
    background-color: var(--theme-primary) !important;
}

.bg-light-primary {
    background-color: var(--theme-light-primary) !important;
}

.text-primary {
    color: var(--theme-primary) !important;
}

.text-gray,
.text-grey {
    color: gray !important;
}

.btn-clean {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.form-group {
    margin-bottom: 15px;
}

.radio-centered-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--gap-sm);
}

.img-container {
    position: relative;
    overflow: hidden;
}

.ar-54 {
    aspect-ratio: 5/4;
}

.ar-53 {
    aspect-ratio: 5/3;
}

.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[class^="heading-"] {
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--bs-heading-color, var(--bs-body-color));
    font-weight: 600;
}

.heading-base {
    font-size: var(--fs-lg);
}

.info-text {
    background-color: var(--theme-light-primary);
    color: var(--theme-primary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--theme-roundness);
    display: inline-block;
    width: fit-content;
}

.heading-sm {
    font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
}

.heading-md {
    font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
}

.heading-lg {
    font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem);
}

.heading-xl {
    font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
}

.heading-xxl {
    font-size: clamp(2.2rem, 1.8rem + 3vw, 4rem);
    font-weight: 700;
}

/* ── Unified Page Heading ── */
.pg-heading {
    font-size: var(--fs-4xl);
    /* 26px */
    font-weight: 800;
    color: var(--text-ink);
    margin: 0;
    line-height: var(--lh-snug);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-heading .badge {
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 3px 8px;
    background: var(--bg-card-hover);
    color: var(--theme-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    vertical-align: middle;
}

/* ── Toggle Pill (reusable segmented control) ── */
.toggle-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    gap: 0;
}

.toggle-pill-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-muted);
    transition: all .2s ease;
    min-width: 32px;
}

.toggle-pill-opt svg {
    stroke: currentColor;
    fill: none;
}

.toggle-pill-active {
    background: var(--bg-card);
    color: var(--theme-primary);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .toggle-pill {
    background: #232630;
    border-color: #2e3140;
}

[data-theme="dark"] .toggle-pill-active {
    background: #2a2d38;
    color: #7da3f5;
}

[data-theme="dark"] .toggle-pill-opt {
    color: #6b7280;
}

/* ── Offline Banner ── */
.offline-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-align: center;
    animation: offlineSlideUp .3s ease;
}

.offline-banner-danger {
    background: var(--danger);
}

.offline-banner-success {
    background: var(--theme-secondary);
}

@keyframes offlineSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.breadcrumb-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: var(--gap-lg);
}

[disabled]:not(input),
.disabled:not(input) {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: inherit !important;
}

.breadcrumb-bar .back-btn {
    color: #005792;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-bar .back-btn i {
    margin-right: 8px;
}

.breadcrumb-bar .page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.fit-content {
    width: fit-content !important;
}

.help-block {
    font-weight: 300;
    color: red;
}

[data-lucide] {
    margin-top: -4px;
    /* width: 18px;
    height: 18px; */
}

.clean- .unset-animation {
    transform: unset !important;
    transition: unset !important;
}

.box-shadow {
    box-shadow: none;
}

.form-ui .box-shadow.border,
.form-ui .border.box-shadow {
    border-color: rgba(76, 29, 149, 0.2) !important;
}

.border-flow-box {
    position: relative;
    background: #333;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.border-top-flow::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            transparent,
            var(--theme-primary),
            transparent);
    animation: flowRight 2s linear infinite;
}

@keyframes flowRight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
}

.sticky-table th {
    position: sticky;
    top: 0;
}

.btn-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Global Premium Pagination ── */
.pagination {
    --bs-pagination-color: var(--text-ink, #374151);
    --bs-pagination-bg: var(--bg-card, #fff);
    --bs-pagination-border-color: var(--border-light, #e5e7eb);
    --bs-pagination-border-width: 1.5px;
    --bs-pagination-border-radius: 8px;
    --bs-pagination-hover-color: var(--text-ink, #374151);
    --bs-pagination-hover-bg: var(--bg-card, #fff);
    --bs-pagination-hover-border-color: var(--border-light, #e5e7eb);
    --bs-pagination-focus-color: var(--text-ink, #374151);
    --bs-pagination-focus-bg: var(--bg-card, #fff);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--theme-primary, #7c3aed);
    --bs-pagination-active-border-color: var(--theme-primary, #7c3aed);
    --bs-pagination-disabled-color: var(--text-light, #9ca3af);
    --bs-pagination-disabled-bg: var(--bg-card, #fff);
    --bs-pagination-disabled-border-color: var(--border-light, #e5e7eb);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-left: 0 !important;
}

.pagination .page-item .page-link:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link,
.active>.page-link {
    background: var(--theme-primary, #7c3aed) !important;
    border-color: var(--theme-primary, #7c3aed) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    cursor: default;
    transform: none;
}

.pagination .page-item.disabled .page-link,
.disabled>.page-link {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* Prev/Next arrow icons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 0.875rem;
}

/* Pagination wrapper — center align with spacing */
.pagination-wrapper,
nav[aria-label="Pagination Navigation"],
nav[role="navigation"] {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.select2.select2-container {
    width: 100% !important;
}

.form-ui ::placeholder {
    color: #c7c7c7;
}

::placeholder {
    color: #c7c7c7 !important;
    font-weight: 400 !important;
}

.form-ui label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.no-arrow::-webkit-outer-spin-button,
.no-arrow::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-ui :is(input, textarea, select) {
    transition: all 0.3s ease;
    /* width: 100%; */
    font-size: 0.9rem;
}

.form-ui :is(input:focus, textarea:focus, select:focus),
input:focus {
    box-shadow: none;
    outline: 1px solid var(--theme-primary);
}

input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--theme-primary);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

input[type="radio"] {
    cursor: pointer;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 1px;
}

input[type="radio"]:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

input[type="radio"]:hover:not(:disabled) {
    border-color: var(--theme-primary);
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    border: 1px solid #ccc;
    font-size: var(--fs-lg);
    font-family: "Noto Sans Devanagari", sans-serif;
    z-index: 1050;
    border-radius: 5px;
    padding: 0;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
    cursor: pointer;
}

.ui-menu-item-wrapper:hover {
    background-color: #007bff;
    color: #fff;
}

.ui-state-active {
    background-color: #0056b3 !important;
    color: #fff !important;
}

.icon-wrap-avatar {
    width: 70px;
    height: 70px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--theme-primary);
    color: var(--theme-primary);
    border-radius: 50%;
    outline: 10px solid #f0f0f0;
    outline-offset: 1px;
}

.icon-wrap-avatar[data-varient="sm"] {
    width: 40px;
    height: 40px;
    outline: 4px;
}

.custom-bs-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: var(--theme-primary) !important;
}

.custom-bs-indicators button:not(.active) {
    opacity: 0.4 !important;
}

@keyframes forwardNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}

.animate-arrow:hover i {
    animation: forwardNudge 1.4s ease-in-out infinite;
}

.form-card-header {
    padding: 0.75rem 1rem 0.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    color: #343a40;
    text-align: center;
}

.w-fit {
    width: max-content;
}

.jump-top-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
    box-shadow: none;
    font-size: 1.25rem;
    border-radius: 50%;
    z-index: 999;
}

.jump-top-button:hover i {
    margin-top: -0.15rem;
    transition: all 0.3s ease-out;
}

table thead th {
    color: var(--text-color-dark) !important;
    font-weight: 700 !important;
}

.pills-nav {
    display: flex;
    gap: var(--gap-lg);
    margin: 0;
    padding: 0;
}

.pills-nav .nav-link {
    background: #f0f0f0;
    color: #444;
    padding: 0.5rem 1rem;
    font-weight: 400;
    white-space: nowrap;
}

.pills-nav .nav-link.active {
    color: #000;
    background-color: #dbe9f7;
    font-weight: 700;
    border-bottom: 2px solid var(--theme-primary);
}

.pills-nav .nav-link:hover {
    background-color: #dbe9f7;
}

#previewContent {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 20px;
}

#previewContent h6 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0d6efd;
}

#previewContent ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

#previewContent li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 0.5rem;
}

#previewContent strong {
    display: inline-block;
    min-width: 150px;
    font-weight: 600;
    color: var(--theme-primary);
}

.draggable-box {
    max-width: 90%;
    width: 100%;
    padding: 10px;
    margin: 0 auto;
}

.card {
    width: 100%;
    margin: 0 auto;
}

.card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-lg);
}

.card-header .d-flex {
    flex-direction: column;
    align-items: flex-start;
    /* width: 100%; */
}

.card-header .d-flex.align-items-center {
    flex-wrap: wrap;
    gap: var(--gap-lg);
}

.card-body {
    padding: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-lg-4,
.col-md-4,
.col-lg-3,
.col-lg-5,
.col-lg-2,
.col-lg-8,
.col-lg-12,
.col-md-3,
.col-md-6 {
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.shareholders-wrapper .card {
    width: 100%;
}

.shareholder-item .row.g-2 {
    margin: 0 -5px;
}

.shareholder-item .col-md-4,
.shareholder-item .col-md-3,
.shareholder-item .col-md-6 {
    padding: 0 5px;
}

.accordion-item {
    width: 100%;
}

.alert-info,
.alert-primary,
.alert-danger,
.alert-success {
    width: 100%;
    box-sizing: border-box;
}

.pointers-none {
    pointer-events: none;
}

.dropdown-menu {
    min-width: 120px;
    font-size: 0.9rem;
}

.dropdown-item {
    padding: 6px 12px;
}

.dropdown.hover-default:hover .dropdown-menu {
    display: block;
}

@media (min-width: 768px) {
    .card-header {
        flex-direction: row;
        align-items: center;
    }

    .card-header .d-flex {
        flex-direction: row;
        align-items: center;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.33%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-lg-2 {
        width: 16.66%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.33%;
    }

    .col-lg-5 {
        width: 41.66%;
    }

    .col-lg-8 {
        width: 66.66%;
    }

    .col-lg-12 {
        width: 100%;
    }

    .shareholder-sticky-header {
        flex-direction: row;
        align-items: center;
    }

    .root-doc-search-input {
        max-width: 400px;
    }
}

@media (max-width: 576px) {

    .btn:not(.navbar .btn, .sticky-top .btn),
    .btn-sm:not(.navbar .btn-sm, .sticky-top .btn-sm) {
        font-size: 0.8rem;
        padding: 8px 12px;
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar .btn,
    .navbar .btn-sm,
    .sticky-top .btn,
    .sticky-top .btn-sm {
        font-size: 0.75rem;
        padding: 4px 8px;
        width: auto;
        margin-bottom: 0;
    }

    .badge {
        font-size: 0.7rem;
        padding: 3px 5px;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .alert {
        font-size: 0.8rem;
        padding: 8px;
    }

    .accordion-button {
        font-size: 0.85rem;
        padding: 8px;
    }

    .shareholder-item .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-check-inline {
        display: block;
        margin-bottom: 10px;
    }

    .text-end {
        text-align: center !important;
    }

    .form-ui :is(input, textarea, select) {
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: center;
    }

    .breadcrumb-bar .page-title {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .dropdown-item {
        padding: 4px 10px;
    }

    .root-doc-search-input {
        max-width: 100%;
    }

    .navbar-nav {
        padding: 10px 0;
    }

    .sticky-top {
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .draggable-box {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        z-index: 10000;
    }

    .close-draggable {
        font-size: 1.2rem;
    }
}

footer {
    background-color: var(--theme-primary-dark);
    padding: 50px 0 16px;
}

.foot-heading {
    color: #fff;
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.foot-nav {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.foot-nav .nav-link {
    color: #fff;
    font-weight: 300;
    color: #c7c7c7;
}

/* ── Shared Transfer / Bakas / Death Transfer styles ─────────────── */
.st-section-card {
    border: 1px solid #e8eaf0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.st-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(76, 29, 149, 0.03);
    border-bottom: 1px solid #e8eaf0;
}

.st-section-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    margin: 0;
}

.st-section-title i[data-lucide] {
    color: var(--theme-primary);
}

.st-table thead tr th {
    background: var(--bg-card-hover, #f8f9fa);
    color: var(--text-muted, #4b5563);
    font-size: var(--fs-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.st-table tbody tr td {
    vertical-align: middle;
    color: var(--text-ink, #374151);
}

.st-table tbody tr:last-child td {
    border-bottom: none;
}

.st-table tbody tr:hover td {
    background: var(--bg-card-hover, #f8f9fa);
}

[data-theme="dark"] .st-table tbody tr:hover td {
    background: rgba(255, 255, 255, .06);
}

.range-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    background: var(--bg-card-hover, #f0f4ff);
    color: var(--text-ink, #343a40);
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: var(--fs-13);
    font-weight: 600;
    white-space: nowrap;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    background: var(--bg-card-hover, #f0f4ff);
    color: var(--text-ink, #343a40);
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: var(--fs-13);
    font-weight: 600;
}

.form-label .text-danger,
label .text-danger {
    color: #dc3545 !important;
}

.new-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 50px;
    padding: 1px 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-left: 4px;
}

.proceed-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 9px 20px;
    font-size: var(--fs-base);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

.proceed-btn:hover {
    opacity: 0.88;
    color: #fff;
}

.undo-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    background: #fff;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 6px 14px;
    font-size: var(--fs-13);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.undo-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* ── Section Tabs ────────────────────────────────── */
.st-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8eaf0;
    margin-bottom: 1rem;
}

.st-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 10px 18px;
    font-size: var(--fs-13);
    font-weight: 700;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.st-tab:hover {
    color: var(--theme-primary);
}

.st-tab.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

.st-tab .st-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50px;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.st-tab.active .st-tab-count {
    background: #f8f9fa;
    color: var(--theme-primary);
}

.st-tab:not(.active) .st-tab-count {
    background: #f3f4f6;
    color: #6b7280;
}

/* ── Remaining allocation info ── */
.st-allocation-info {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 10px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: var(--fs-13);
    font-weight: 600;
    color: #92400e;
}

.st-allocation-info.complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.social-link {
    color: #fff;
    font-size: 1.25rem;
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════════
   Application Index — extracted from inline styles
   ══════════════════════════════════════════════════════════════ */
        @keyframes spin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .work-status-badge-select {
            border: none;
            cursor: pointer;
            padding: .35rem .75rem;
            border-radius: 50rem;
            font-weight: 500;
            background-color: var(--bg-card, #fff);
            color: var(--text-ink, #212529);
        }
        [data-theme="dark"] .work-status-badge-select { background-color: var(--bg-card-hover) !important; color: var(--text-ink) !important; }
        [data-theme="dark"] .pills-nav .nav-link { background: var(--bg-card-hover) !important; color: var(--text-muted) !important; }
        [data-theme="dark"] .pills-nav .nav-link.active { background: rgba(var(--theme-primary-rgb), .12) !important; color: var(--text-ink) !important; }
        [data-theme="dark"] .pills-nav .nav-link:hover { color: var(--theme-primary) !important; }

        .pills-nav .nav-link,
        .pills-nav .ci-tab-link {
            padding: 0.4rem 0.85rem;
            line-height: 1.3;
            font-size: var(--fs-md);
            background: transparent;
            text-decoration: none;
            color: var(--text-muted, #6b7280);
            font-weight: 500;
            border-radius: 6px;
            transition: color .15s, background .15s;
        }

        .pills-nav .nav-link:hover,
        .pills-nav .ci-tab-link:hover {
            color: var(--theme-primary);
        }

        .pills-nav .nav-link.active,
        .pills-nav .ci-tab-link.active {
            background: transparent;
            color: var(--text-ink, #1f2937);
            font-weight: 700;
        }

        /* ── Shared Modal Base ── */
        #activityLogModal .modal-content,
        #upcomingWorkModal .modal-content,
        #ocrFineCalcModal .modal-content,
        #updateRegistrationModal .modal-content {
            border: none; border-radius: var(--radius-pill);
            overflow: hidden; box-shadow: none;
        }


        /* ── Activity Log Modal ── */

        #activityLogModal .modal-body {
            padding: 0;
            background: #fff;
            max-height: 60vh;
            overflow-y: auto;
        }
        [data-theme="dark"] #activityLogModal .modal-body { background: var(--bg-card) !important; }

        #activityLogModal .alm-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--fs-13);
            color: var(--text-ink) !important;
            --bs-table-color: var(--text-ink);
        }

        #activityLogModal .alm-table thead th {
            position: sticky;
            top: 0;
            background: var(--bg-card-hover, #f8f9fa);
            padding: 10px 14px;
            font-size: var(--fs-xs);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--theme-primary);
            border-bottom: 1px solid rgba(var(--theme-primary-rgb), .1);
        }

        #activityLogModal .alm-table tbody td {
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-light, #f0f0f0);
            vertical-align: top;
            color: var(--text-ink, #374151) !important;
            background: #fff;
        }
        [data-theme="dark"] #activityLogModal .alm-table tbody td { background: var(--bg-card); }

        #activityLogModal .alm-table tbody tr:hover {
            background: var(--bg-card-hover, #f8f9fa);
        }

        #activityLogModal .alm-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: var(--fs-xs);
            font-weight: 600;
        }

        #activityLogModal .alm-badge-created {
            background: #dcfce7;
            color: #15803d;
        }

        #activityLogModal .alm-badge-updated {
            background: #dee2e6;
            color: #1d4ed8;
        }

        #activityLogModal .alm-badge-deleted {
            background: #fee2e2;
            color: #dc2626;
        }

        #activityLogModal .alm-badge-default {
            background: #f3f4f6;
            color: #6b7280;
        }

        [data-theme="dark"] #activityLogModal .alm-badge-created { background: #16a34a; color: #fff; }
        [data-theme="dark"] #activityLogModal .alm-badge-updated { background: #2563eb; color: #fff; }
        [data-theme="dark"] #activityLogModal .alm-badge-deleted { background: #dc2626; color: #fff; }
        [data-theme="dark"] #activityLogModal .alm-badge-default { background: #6b7280; color: #fff; }


        #activityLogModal .alm-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted, #9ca3af);
        }

        #activityLogModal .alm-empty svg {
            width: 32px;
            height: 32px;
            margin-bottom: 8px;
            display: block;
            color: var(--border-light, #dee2e6);
            margin-left: auto;
            margin-right: auto;
        }

        #activityLogModal .alm-spinner {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted, #6c757d);
        }

        /* ── Upcoming Work Modal ── */

        #upcomingWorkModal .modal-body {
            padding: 0;
            background: var(--bg-card, #f9fafb);
            max-height: 65vh;
            overflow-y: auto;
        }

        /* Registration info bar */
        .uwm-reg-bar {
            display: flex;
            flex-wrap: wrap;
            gap: var(--gap-md);
            padding: 14px 20px;
            background: linear-gradient(135deg, #f0f4ff, rgba(var(--theme-primary-rgb), .1));
            border-bottom: 1.5px solid rgba(var(--theme-primary-rgb), .2);
        }

        .uwm-reg-item {
            flex: 1;
            min-width: 70px;
            text-align: center;
        }

        .uwm-reg-item-label {
            font-size: var(--fs-2xs);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .4px;
            color: var(--text-muted);
        }

        .uwm-reg-item-value {
            font-size: var(--fs-base);
            font-weight: 800;
            color: var(--text-ink);
            margin-top: 1px;
        }

        /* Section labels */
        .uwm-section-label {
            font-size: var(--fs-sm);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .6px;
            color: var(--theme-primary);
            padding: 14px 20px 8px;
            display: flex;
            align-items: center;
            gap: var(--gap-md);
        }

        .uwm-section-label::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgba(var(--theme-primary-rgb), .1);
        }

        /* Work table */
        .uwm-table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--fs-13);
        }

        .uwm-table th {
            font-size: var(--fs-xs);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .4px;
            color: var(--theme-primary);
            background: rgba(var(--theme-primary-rgb), .06);
            padding: 8px 10px;
            border-bottom: 1.5px solid var(--border-light);
            white-space: nowrap;
        }

        .uwm-table td {
            padding: 10px;
            border-bottom: 1px solid var(--border-light, #f3f4f6);
            vertical-align: middle;
            color: var(--text-ink);
        }

        .uwm-table tbody tr:hover {
            background: var(--bg-card-hover, #faf9ff);
        }

        .uwm-badge-done {
            display: inline-flex;
            align-items: center;
            gap: var(--gap-xs);
            font-size: var(--fs-xs);
            font-weight: 700;
            color: #16a34a;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            padding: 3px 8px;
            border-radius: 6px;
        }

        .uwm-badge-pending {
            display: inline-flex;
            align-items: center;
            gap: var(--gap-xs);
            font-size: var(--fs-xs);
            font-weight: 700;
            color: #d97706;
            background: #fef3c7;
            border: 1px solid #fde68a;
            padding: 3px 8px;
            border-radius: 6px;
        }

        .uwm-fine-red {
            color: var(--error);
            font-weight: 800;
            font-size: var(--fs-13);
        }

        .uwm-fine-green {
            color: #16a34a;
            font-weight: 700;
            font-size: var(--fs-sm);
        }

        .uwm-btn-action {
            font-size: var(--fs-xs);
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid var(--theme-primary);
            background: rgba(var(--theme-primary-rgb), .04);
            color: var(--theme-primary);
            cursor: pointer;
            text-decoration: none;
            white-space: nowrap;
            transition: all .15s;
            display: inline-flex;
            align-items: center;
            gap: var(--gap-xs);
        }

        .uwm-btn-action:hover {
            background: var(--theme-primary);
            color: #fff;
        }

        .uwm-btn-details {
            font-size: var(--fs-2xs);
            font-weight: 700;
            color: var(--theme-primary);
            cursor: pointer;
            background: none;
            border: none;
            padding: 2px 4px;
            display: block;
            margin-top: 2px;
        }

        .uwm-btn-details:hover {
            text-decoration: underline;
        }

        .uwm-collapse-td {
            padding: 0 !important;
            border: none !important;
        }

        .uwm-collapse-content {
            padding: 12px 16px;
            background: var(--bg-card-hover, #faf9ff);
            border-top: 1px dashed rgba(var(--theme-primary-rgb), .1);
        }

        .uwm-completed-tick {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #dcfce7;
            color: #16a34a;
            font-size: var(--fs-xs);
        }

        .uwm-badge-self {
            display: inline-flex;
            align-items: center;
            gap: var(--gap-xs);
            font-size: var(--fs-2xs);
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 99px;
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fde68a;
        }

        .uwm-btn-mark {
            font-size: var(--fs-2xs);
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fde68a;
            cursor: pointer;
            white-space: nowrap;
            transition: background .15s;
        }

        .uwm-btn-mark:hover {
            background: #fde68a;
        }

        .uwm-other-item {
            display: flex;
            align-items: center;
            gap: var(--gap-lg);
            padding: 7px 10px;
            border-radius: var(--radius-md);
            margin-bottom: 3px;
            background: var(--bg-card, #fff);
            border: 1px solid var(--border-light, rgba(0, 0, 0, .05));
        }

        .uwm-other-item:hover {
            background: var(--bg-card-hover, #f8f9fa);
        }

        /* Remarks */
        .uwm-remarks-card {
            background: #fff;
            border: 1px solid rgba(17, 24, 39, .07);
            border-radius: var(--radius-xl);
            padding: 14px 16px;
            margin: 0 24px 18px;
        }

        .uwm-remarks-label {
            font-size: var(--fs-xs);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--theme-primary);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: var(--gap-sm);
        }

        .uwm-remarks-label svg {
            width: 12px;
            height: 12px;
        }

        .uwm-remarks-text {
            font-size: var(--fs-13);
            color: #374151;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
        }

        /* Spinner & empty */
        .uwm-spinner {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        .uwm-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
        }

        .uwm-empty svg {
            width: 28px;
            height: 28px;
            display: block;
            margin-bottom: 8px;
            color: #dee2e6;
            margin-left: auto;
            margin-right: auto;
        }

        /* Registration Alert */
        .uwm-reg-alert {
            margin: 20px 24px;
            padding: 22px 24px;
            border-radius: var(--radius-3xl);
            background: linear-gradient(135deg, #fef3c7, #fffbeb);
            border: 1.5px solid #fde68a;
        }

        .uwm-reg-status-card {
            background: #fff;
            border: 2px solid #fca5a5;
            border-radius: var(--radius-xl);
            padding: 16px 20px;
            margin-bottom: 18px;
            text-align: center;
        }

        .uwm-reg-status-label {
            font-size: var(--fs-sm);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .6px;
            color: var(--text-light);
            margin-bottom: 4px;
        }

        .uwm-reg-status-value {
            font-size: var(--fs-3xl);
            font-weight: 900;
            color: var(--error);
        }

        .uwm-reg-alert-title {
            display: flex;
            align-items: center;
            gap: var(--gap-md);
            font-size: var(--fs-md);
            font-weight: 800;
            color: #92400e;
            margin-bottom: 14px;
        }

        .uwm-reg-alert-title svg {
            width: 18px;
            height: 18px;
            color: #d97706;
        }

        .uwm-reg-steps {
            position: relative;
            padding-left: 28px;
        }

        .uwm-reg-steps::before {
            content: "";
            position: absolute;
            left: 11px;
            top: 14px;
            bottom: 14px;
            width: 2px;
            background: #d97706;
            opacity: .3;
        }

        .uwm-step {
            position: relative;
            margin-bottom: 14px;
            padding: 0;
        }

        .uwm-step:last-child {
            margin-bottom: 0;
        }

        .uwm-step-num {
            position: absolute;
            left: -28px;
            top: 0;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #d97706;
            color: #fff;
            font-size: var(--fs-2xs);
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .uwm-step-title {
            font-size: var(--fs-base);
            font-weight: 700;
            color: #78350f;
            line-height: 22px;
        }

        .uwm-step-desc {
            font-size: var(--fs-13);
            color: #92400e;
            margin-top: 2px;
            line-height: 1.4;
        }

        /* Fine breakdown in collapse */
        .uwm-fine-card {
            padding: 8px 10px;
            background: var(--bg-card, #fff);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light, #e5e7eb);
        }

        .uwm-fine-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 4px;
        }

        .uwm-fine-card-label {
            font-size: var(--fs-xs);
            font-weight: 700;
            color: var(--theme-primary);
        }

        .uwm-fine-card-value {
            font-size: var(--fs-xs);
            font-weight: 800;
        }

        /* ── Work & Fine Modal — Dark mode ── */
        [data-theme="dark"] #upcomingWorkModal .modal-body { background: var(--bg-card) !important; color: var(--text-ink) !important; }
        [data-theme="dark"] #upcomingWorkModal .modal-body div,
        [data-theme="dark"] #upcomingWorkModal .modal-body span,
        [data-theme="dark"] #upcomingWorkModal .modal-body label,
        [data-theme="dark"] #upcomingWorkModal .modal-body td,
        [data-theme="dark"] #upcomingWorkModal .modal-body th { border-color: var(--border-light) !important; }
        [data-theme="dark"] #upcomingWorkModal .uwm-table td { color: var(--text-ink) !important; }
        /* White/light backgrounds → dark */
        [data-theme="dark"] #upcomingWorkModal div[style*="background:#fff"],
        [data-theme="dark"] #upcomingWorkModal div[style*="background: #fff"],
        [data-theme="dark"] #upcomingWorkModal span[style*="background:#fff"] { background: var(--bg-card) !important; }
        [data-theme="dark"] #upcomingWorkModal div[style*="background:#f9fafb"],
        [data-theme="dark"] #upcomingWorkModal div[style*="background:#f8f9fa"],
        [data-theme="dark"] #upcomingWorkModal span[style*="background:#f9fafb"],
        [data-theme="dark"] #upcomingWorkModal span[style*="background:#f8f9fa"] { background: var(--bg-card-hover) !important; }
        /* Dark ink text → light */
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#1f2937"],
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#374151"],
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#343a40"],
        [data-theme="dark"] #upcomingWorkModal span[style*="color:#1f2937"],
        [data-theme="dark"] #upcomingWorkModal span[style*="color:#374151"],
        [data-theme="dark"] #upcomingWorkModal span[style*="color:#343a40"] { color: var(--text-ink) !important; }
        /* Muted text */
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#6b7280"],
        [data-theme="dark"] #upcomingWorkModal span[style*="color:#6b7280"],
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#9ca3af"],
        [data-theme="dark"] #upcomingWorkModal span[style*="color:#9ca3af"] { color: var(--text-muted) !important; }
        /* Borders */
        [data-theme="dark"] #upcomingWorkModal div[style*="border:1px solid rgba(0,0,0"] { border-color: var(--border-light) !important; }
        [data-theme="dark"] #upcomingWorkModal div[style*="border:1px solid var(--border-light)"],
        [data-theme="dark"] #upcomingWorkModal div[style*="border:1px solid #f3f4f6"],
        [data-theme="dark"] #upcomingWorkModal th[style*="border-bottom:1px solid var(--border-light)"] { border-color: var(--border-light) !important; }
        /* Row alternate bg */
        [data-theme="dark"] #upcomingWorkModal tr[style*="background:#faf5ff"] { background: var(--bg-card-hover) !important; }
        /* Warning/amber boxes — keep but soften */
        [data-theme="dark"] #upcomingWorkModal div[style*="background:#fffbeb"],
        [data-theme="dark"] #upcomingWorkModal div[style*="background:#fefce8"] { background: rgba(217, 119, 6, .1) !important; border-color: rgba(217, 119, 6, .25) !important; }
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#78350f"],
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#92400e"],
        [data-theme="dark"] #upcomingWorkModal span[style*="color:#92400e"] { color: #fcd34d !important; }
        /* Error/red boxes — keep but soften */
        [data-theme="dark"] #upcomingWorkModal div[style*="background:#fef2f2"] { background: rgba(220, 53, 69, .1) !important; border-color: rgba(220, 53, 69, .25) !important; }
        [data-theme="dark"] #upcomingWorkModal div[style*="color:#991b1b"] { color: #fca5a5 !important; }
        /* uwm classes */
        [data-theme="dark"] .uwm-reg-alert { background: rgba(217, 119, 6, .1) !important; border-color: rgba(217, 119, 6, .25) !important; }
        [data-theme="dark"] .uwm-reg-status-card { background: var(--bg-card) !important; }
        [data-theme="dark"] .uwm-reg-alert-title { color: #fbbf24 !important; }
        [data-theme="dark"] .uwm-step-title { color: #fbbf24 !important; }
        [data-theme="dark"] .uwm-step-desc { color: #fcd34d !important; }
        [data-theme="dark"] .uwm-empty svg { color: var(--border-light) !important; }
        [data-theme="dark"] .uwm-badge-done { background: rgba(22, 163, 74, .12) !important; border-color: rgba(22, 163, 74, .3) !important; }
        [data-theme="dark"] .uwm-badge-pending { background: rgba(217, 119, 6, .12) !important; border-color: rgba(217, 119, 6, .3) !important; }
        /* ── Fine Calculator Modal ── */

        #ocrFineCalcModal .fcm-header {
            position: relative;
            background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary), var(--theme-primary-dark));
            padding: 22px 28px 18px;
            color: #fff;
        }

        #ocrFineCalcModal .fcm-header::before {
            content: "";
            position: absolute;
            top: -50px;
            right: -20px;
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 70%);
            pointer-events: none;
        }

        #ocrFineCalcModal .fcm-subtitle {
            font-size: var(--fs-sm);
            opacity: .8;
            margin: 3px 0 0;
            font-weight: 500;
        }

        #ocrFineCalcModal .modal-body {
            padding: 0;
            background: var(--bg-card, #f9fafb);
            max-height: 70vh;
            overflow-y: auto;
        }

        #ocrFineCalcModal .fcm-total-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 24px;
            background: var(--bg-card, #fff);
            border-bottom: 1px solid var(--border-light, #e5e7eb);
            position: sticky;
            top: 0;
            z-index: 2;
        }

        #ocrFineCalcModal .fcm-total-label {
            font-size: var(--fs-xs);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--text-muted, #6b7280);
        }

        #ocrFineCalcModal .fcm-total-value {
            font-size: var(--fs-3xl);
            font-weight: 900;
        }

        #ocrFineCalcModal .fcm-cards {
            padding: 16px 24px 24px;
        }

        /* ── Fine Calc Modal — Dark mode ── */
        [data-theme="dark"] #ocrFineCalcModal .modal-body { background: var(--bg-card) !important; color: var(--text-ink) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="background:#fff"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="background: #fff"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="background:#fff"] { background: var(--bg-card) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="background:#f9fafb"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="background:#f8f9fa"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="background:#f9fafb"] { background: var(--bg-card-hover) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#1f2937"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#374151"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#343a40"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#1f2937"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#374151"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#343a40"] { color: var(--text-ink) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#6b7280"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#6b7280"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#9ca3af"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#9ca3af"] { color: var(--text-muted) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="border:1px solid var(--border-light)"],
        [data-theme="dark"] #ocrFineCalcModal th[style*="border-bottom:1px solid var(--border-light)"],
        [data-theme="dark"] #ocrFineCalcModal td[style*="border:1px solid var(--border-light)"] { border-color: var(--border-light) !important; }
        [data-theme="dark"] #ocrFineCalcModal tr[style*="background:#faf5ff"] { background: var(--bg-card-hover) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="background:#fffbeb"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="background:#fefce8"] { background: rgba(217, 119, 6, .1) !important; border-color: rgba(217, 119, 6, .25) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#78350f"],
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#92400e"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#92400e"] { color: #fcd34d !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="background:#fef2f2"] { background: rgba(220, 53, 69, .1) !important; border-color: rgba(220, 53, 69, .25) !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#991b1b"] { color: #fca5a5 !important; }
        [data-theme="dark"] #ocrFineCalcModal div[style*="color:#1e40af"],
        [data-theme="dark"] #ocrFineCalcModal span[style*="color:#1e40af"] { color: #93c5fd !important; }
        [data-theme="dark"] #ocrFineCalcModal select[style*="background:#fff"] { background: var(--bg-input) !important; color: var(--text-ink) !important; border-color: var(--border-light) !important; }
        [data-theme="dark"] #ocrFineCalcModal button[style*="background:#fff"] { background: var(--bg-card-hover) !important; color: var(--text-ink) !important; border-color: var(--border-light) !important; }
        [data-theme="dark"] #ocrFineCalcModal .ocr-fc-tab:not(.active) { background: var(--bg-card-hover) !important; color: var(--text-muted) !important; border-color: var(--border-light) !important; }

        /* ── Fine Preview Modal — Dark mode ── */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body {
            background: var(--bg-card) !important;
            color: var(--text-ink) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body * {
            color: inherit;
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body h2 {
            color: var(--theme-primary) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body h3 {
            color: var(--theme-primary) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body table {
            color: var(--text-ink) !important;
            background: var(--bg-card) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body tr {
            background: transparent !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body td,
        [data-theme="dark"] #fcPreviewModal .fc-preview-body th {
            border-color: var(--border-light) !important;
            color: var(--text-ink) !important;
            background: transparent !important;
        }
        /* thead header cells */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body thead tr {
            background: rgba(var(--theme-primary-rgb), .15) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body thead th {
            background: transparent !important;
            color: #fff !important;
        }
        /* total rows (last row in tbody with bold text) */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body tbody tr:last-child {
            background: rgba(var(--theme-primary-rgb), .1) !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body span {
            color: inherit !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body strong {
            color: var(--theme-primary) !important;
        }
        /* red fine values */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body td[style*="color:#dc2626"] {
            color: #f87171 !important;
        }
        [data-theme="dark"] #fcPreviewModal .fc-preview-body span[style*="color:#dc2626"] {
            color: #f87171 !important;
        }
        /* green discount values */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body td[style*="color:#16a34a"],
        [data-theme="dark"] #fcPreviewModal .fc-preview-body span[style*="color:#16a34a"] {
            color: #4ade80 !important;
        }
        /* grand total box */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body div[style*="border:2px solid #dc2626"],
        [data-theme="dark"] #fcPreviewModal .fc-preview-body div[style*="border: 2px solid #dc2626"] {
            background: rgba(220, 53, 69, .1) !important;
            border-color: rgba(248, 113, 113, .4) !important;
        }
        /* discount notice */
        [data-theme="dark"] #fcPreviewModal .fc-preview-body div[style*="border:1px solid #fde68a"],
        [data-theme="dark"] #fcPreviewModal .fc-preview-body div[style*="border: 1px solid #fde68a"] {
            background: rgba(217, 119, 6, .1) !important;
            border-color: rgba(217, 119, 6, .25) !important;
            color: #fcd34d !important;
        }

        /* ── Registration Form Preview Modal — Dark mode ── */
        [data-theme="dark"] #previewModal .prv-header {
            background: var(--bg-card) !important;
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .prv-subtitle {
            color: var(--text-muted) !important;
        }
        [data-theme="dark"] #previewModal .prv-close {
            background: var(--bg-card-hover) !important;
            color: var(--text-muted) !important;
        }
        [data-theme="dark"] #previewModal .prv-close:hover {
            background: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .modal-body {
            background: var(--bg-body) !important;
        }
        [data-theme="dark"] #previewModal .prv-section {
            background: var(--bg-card) !important;
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .prv-section-label {
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .prv-sec-title {
            color: var(--text-ink) !important;
        }
        [data-theme="dark"] #previewModal .prv-sec-count {
            color: var(--text-muted) !important;
        }
        [data-theme="dark"] #previewModal .prv-lbl {
            color: var(--text-muted) !important;
        }
        [data-theme="dark"] #previewModal .prv-val {
            color: var(--text-ink) !important;
        }
        [data-theme="dark"] #previewModal .prv-cap-card {
            background: var(--bg-card-hover) !important;
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .prv-sh-card {
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .prv-sh-header {
            background: var(--bg-card-hover) !important;
            border-color: var(--border-light) !important;
        }
        [data-theme="dark"] #previewModal .prv-sh-name {
            color: var(--text-ink) !important;
        }
        [data-theme="dark"] #previewModal .prv-sh-body {
            background: var(--bg-card) !important;
        }
        [data-theme="dark"] #previewModal .prv-witness {
            background: rgba(var(--theme-primary-rgb), .05) !important;
            border-color: rgba(var(--theme-primary-rgb), .15) !important;
        }
        [data-theme="dark"] #previewModal .prv-witness-title {
            border-color: rgba(var(--theme-primary-rgb), .15) !important;
        }
        [data-theme="dark"] #previewModal .prv-footer {
            background: var(--bg-card) !important;
            border-color: var(--border-light) !important;
        }

        /* ── Saved Fine Calculations Page — Dark mode ── */
        [data-theme="dark"] .fc-calc-card { background: var(--bg-card) !important; border-color: var(--border-light) !important; }
        [data-theme="dark"] .fc-calc-card .fw-bold { color: var(--text-ink) !important; }
        [data-theme="dark"] .fc-calc-card .badge[style*="background:#fef3c7"] { background: rgba(217, 119, 6, .15) !important; color: #fcd34d !important; }
        [data-theme="dark"] .fc-calc-card .badge[style*="background:#fef2f2"] { background: rgba(220, 53, 69, .12) !important; color: #fca5a5 !important; }
        [data-theme="dark"] .fc-calc-card .fc-view-btn { background: rgba(var(--theme-primary-rgb), .1) !important; }
        [data-theme="dark"] .fc-calc-card .fc-download-btn { background: rgba(74, 222, 128, .1) !important; color: #4ade80 !important; }
        [data-theme="dark"] .fc-calc-card .fc-del-btn { background: rgba(220, 53, 69, .1) !important; color: #fca5a5 !important; }

        /* ── Update Registration Modal ── */

        #updateRegistrationModal .modal-body {
            padding: 10px 22px 14px;
            background: #f9fafb;
        }

        #updateRegistrationModal .urm-card {
            background: #fff;
            border: 1px solid rgba(17, 24, 39, .07);
            border-radius: 14px;
            padding: 14px 16px;
        }

        #updateRegistrationModal .urm-section-label {
            display: flex;
            align-items: center;
            gap: var(--gap-md);
            margin-bottom: 10px;
        }

        #updateRegistrationModal .urm-section-label .urm-bar {
            width: 3px;
            height: 16px;
            background: var(--theme-primary);
            border-radius: 2px;
            flex-shrink: 0;
        }

        #updateRegistrationModal .urm-section-label span {
            font-size: var(--fs-xs);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .8px;
            color: var(--theme-primary);
        }

        #updateRegistrationModal .form-label {
            font-size: var(--fs-sm);
            font-weight: 700;
            color: #374151;
            margin-bottom: 5px;
        }

        #updateRegistrationModal .form-control,
        #updateRegistrationModal .form-select {
            font-size: var(--fs-13);
            border-radius: var(--radius-lg);
            border-color: var(--border-light);
            background: #f9fafb;
            padding: 9px 12px;
            height: auto;
            transition: border-color .15s, box-shadow .15s;
        }

        #updateRegistrationModal .form-control:focus,
        #updateRegistrationModal .form-select:focus {
            border-color: #adb5bd;
            box-shadow: none;
            background: #fff;
        }

        #updateRegistrationModal .urm-input-icon {
            position: relative;
        }

        #updateRegistrationModal .urm-input-icon svg {
            position: absolute;
            left: 11px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            stroke: #9ca3af;
            fill: none;
            pointer-events: none;
        }

        #updateRegistrationModal .urm-input-icon .form-control {
            padding-left: 34px;
        }

        #updateRegistrationModal .modal-footer {
            padding: 12px 22px;
            background: #f9fafb;
            border-top: 1px solid rgba(17, 24, 39, .06);
            display: flex;
            align-items: center;
            gap: var(--gap-lg);
        }

        /* ── Credentials / Contact Persons sections ── */
        #updateRegistrationModal .urm-card + .urm-card { margin-top: 10px; }

        #updateRegistrationModal .urm-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        #updateRegistrationModal .urm-section-head .urm-section-label {
            margin-bottom: 0;
        }

        #updateRegistrationModal .urm-optional {
            font-style: normal;
            font-size: 10px;
            font-weight: 700;
            color: #b91c1c;
            background: #fee2e2;
            border: 1px solid #fecaca;
            text-transform: uppercase;
            letter-spacing: .5px;
            padding: 2px 7px;
            border-radius: 999px;
            margin-left: 6px;
        }

        #updateRegistrationModal .urm-add-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px dashed rgba(var(--theme-primary-rgb), .5);
            background: rgba(var(--theme-primary-rgb), .06);
            color: var(--theme-primary);
            font-size: 12px;
            font-weight: 700;
            padding: 5px 11px;
            border-radius: 8px;
            white-space: nowrap;
        }
        #updateRegistrationModal .urm-add-btn:hover {
            background: rgba(var(--theme-primary-rgb), .12);
            border-style: solid;
        }
        #updateRegistrationModal .urm-add-btn svg { width: 13px; height: 13px; }

        #updateRegistrationModal .urm-rows {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        #updateRegistrationModal .urm-empty {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 12px;
            background: #fafbfc;
            border: 1px dashed #e5e7eb;
            border-radius: 10px;
            color: #9ca3af;
            font-size: 12.5px;
            font-weight: 500;
            text-align: center;
        }
        #updateRegistrationModal .urm-empty.is-visible { display: flex; }
        #updateRegistrationModal .urm-empty svg { width: 16px; height: 16px; stroke: #c7ccd4; }

        /* One row = one flex line, fields stretch, remove button at end */
        #updateRegistrationModal .urm-row {
            display: flex;
            gap: 8px;
            align-items: center;
            padding: 8px 10px;
            background: #fafbfc;
            border: 1px solid rgba(17, 24, 39, .06);
            border-radius: 10px;
            flex-wrap: nowrap;
        }

        #updateRegistrationModal .urm-row > .form-select,
        #updateRegistrationModal .urm-row > .form-control,
        #updateRegistrationModal .urm-row > .urm-pwd-wrap {
            flex: 1 1 0;
            min-width: 0;
        }

        #updateRegistrationModal .urm-row > .urm-type {
            flex: 0 0 128px;
        }

        #updateRegistrationModal .urm-row .form-control,
        #updateRegistrationModal .urm-row .form-select {
            font-size: 13px;
            padding: 6px 10px;
            height: 34px;
            background: #fff;
            border-radius: 7px;
        }

        #updateRegistrationModal .urm-pwd-wrap { position: relative; }
        #updateRegistrationModal .urm-pwd-wrap .form-control { padding-right: 32px; width: 100%; }

        #updateRegistrationModal .urm-pwd-toggle {
            position: absolute;
            right: 3px;
            top: 50%;
            transform: translateY(-50%);
            width: 26px;
            height: 26px;
            background: transparent;
            border: 0;
            padding: 0;
            color: #9ca3af;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        #updateRegistrationModal .urm-pwd-toggle:hover {
            color: var(--theme-primary);
            background: rgba(var(--theme-primary-rgb), .08);
        }
        #updateRegistrationModal .urm-pwd-toggle svg { width: 13px; height: 13px; }

        #updateRegistrationModal .urm-row-remove {
            flex: 0 0 30px;
            width: 30px;
            height: 30px;
            border-radius: 7px;
            border: 1px solid rgba(220, 53, 69, .2);
            background: rgba(220, 53, 69, .07);
            color: #dc3545;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        #updateRegistrationModal .urm-row-remove:hover {
            background: rgba(220, 53, 69, .15);
            border-color: rgba(220, 53, 69, .35);
        }
        #updateRegistrationModal .urm-row-remove svg { width: 13px; height: 13px; }

        /* Tablet — let rows wrap gracefully */
        @media (max-width: 767px) {
            #updateRegistrationModal .urm-row { flex-wrap: wrap; }
            #updateRegistrationModal .urm-row > .form-select,
            #updateRegistrationModal .urm-row > .form-control,
            #updateRegistrationModal .urm-row > .urm-pwd-wrap {
                flex: 1 1 calc(50% - 4px);
            }
            #updateRegistrationModal .urm-row > .urm-type { flex: 1 1 calc(50% - 4px); }
            #updateRegistrationModal .urm-row-remove { margin-left: auto; }
        }

        @media (max-width: 480px) {
            #updateRegistrationModal .urm-row > .form-select,
            #updateRegistrationModal .urm-row > .form-control,
            #updateRegistrationModal .urm-row > .urm-pwd-wrap,
            #updateRegistrationModal .urm-row > .urm-type {
                flex: 1 1 100%;
            }
        }


        /* ── Reg Compound Badge ── */
        .reg-badge {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid var(--theme-success);
            border-radius: 5px;
            overflow: hidden;
            font-size: var(--fs-2xs);
            font-weight: 600;
            line-height: 1;
        }

        .reg-badge__label {
            background: var(--theme-success);
            color: #fff;
            padding: 3px 7px;
            display: inline-flex;
            align-items: center;
            letter-spacing: .3px;
        }

        .reg-badge__details {
            padding: 3px 8px;
            color: var(--theme-success);
            display: inline-flex;
            align-items: center;
            background: rgba(var(--theme-success-rgb, 40, 167, 69), .06);
        }


        /* =============================================
                   RESPONSIVE — MOBILE CARD LAYOUT (≤ 575px)
                   ============================================= */
@media (max-width: 575px) {
    .container {
        padding-left: 6px;
        padding-right: 6px;
    }

    /* Page header */
    .page-title {
        font-size: var(--fs-13) !important;
    }

    .page-title .form-control {
        font-size: var(--fs-xs);
        padding: 5px 8px;
    }

    /* Back button — shrink the circle icon */
    .page-title .animate-arrow {
        padding: 4px !important;
    }

    .page-title .animate-arrow i {
        font-size: var(--fs-base) !important;
    }

    /* Add Company */
    .ci-add-wrap .btn {
        width: auto !important;
        margin-bottom: 0 !important;
        font-size: var(--fs-xs) !important;
        padding: 5px 10px !important;
    }

    .ci-add-wrap .collapse .btn {
        font-size: var(--fs-2xs) !important;
        padding: 4px 8px !important;
    }

    /* Pills */
    .pills-nav .nav-link {
        font-size: var(--fs-2xs);
        padding: 3px 6px !important;
    }

    /* Hide table head, convert rows to cards */
    .table-responsive {
        overflow: visible;
    }

    .table {
        border: none !important;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        padding: 8px 10px;
        margin-bottom: 6px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    }

    .table tbody tr:hover {
        background: var(--bg-card-hover, #fafbff);
    }

    [data-theme="dark"] .table tbody tr:hover {
        background: rgba(255, 255, 255, .06) !important;
    }

    .table tbody td {
        display: block;
        border: none !important;
        padding: 0 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    /* S.N. — hide */
    .table tbody td:nth-child(1) {
        display: none;
    }

    /* Company name cell */
    .table tbody td:nth-child(2) {
        min-width: 0 !important;
        margin-bottom: 4px;
    }

    .table tbody td:nth-child(2) .fw-bold {
        font-size: var(--fs-sm) !important;
        margin-bottom: 2px !important;
    }

    .table tbody td:nth-child(2) .text-muted {
        font-size: var(--fs-2xs) !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .table tbody td:nth-child(2) .d-flex.flex-wrap {
        margin-top: 3px !important;
        gap: 3px !important;
    }

    .reg-badge {
        font-size: var(--fs-2xs);
    }

    .reg-badge__label {
        padding: 2px 5px;
    }

    .reg-badge__details {
        padding: 2px 5px;
    }

    .badge-theme,
    .badge-theme-outline {
        font-size: var(--fs-2xs) !important;
        padding: 1px 4px !important;
    }

    /* Work status — inline with dates */
    .table tbody td:nth-child(3) {
        display: inline-block;
        margin-bottom: 4px;
        margin-right: 6px;
    }

    .work-status-badge-select {
        font-size: var(--fs-2xs);
        padding: .15rem .4rem;
    }

    /* Created / Updated — inline, very compact */
    .table tbody td:nth-child(4),
    .table tbody td:nth-child(5) {
        display: inline;
        font-size: var(--fs-2xs) !important;
        color: #9ca3af;
    }

    .table tbody td:nth-child(4) span.d-block,
    .table tbody td:nth-child(5) span.d-block {
        display: inline !important;
    }

    .table tbody td:nth-child(4) small,
    .table tbody td:nth-child(5) small {
        display: none;
    }

    .table tbody td:nth-child(4) span.text-muted.mt-1,
    .table tbody td:nth-child(5) span.text-muted.mt-1 {
        display: none;
    }

    .table tbody td:nth-child(4)::after {
        content: " · ";
        color: var(--border-light);
    }

    /* Action buttons — tight grid */
    .table tbody td:last-child {
        margin-top: 5px;
        padding-top: 6px !important;
        border-top: 1px solid #f3f4f6 !important;
    }

    .table tbody td:last-child .d-flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
        justify-content: flex-start !important;
    }

    .table tbody td:last-child .btn {
        font-size: var(--fs-2xs) !important;
        padding: 3px 6px !important;
        height: auto !important;
        width: auto !important;
        margin-bottom: 0 !important;
        border-radius: 5px;
    }

    .table tbody td:last-child .btn svg,
    .table tbody td:last-child .btn i {
        width: 12px !important;
        height: 12px !important;
        font-size: var(--fs-2xs) !important;
    }

    /* Pagination */
    .pagination {
        gap: 3px;
    }

    .pagination .page-item .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: var(--fs-2xs);
        border-radius: 6px;
    }
}

/* ── 370px fine-tune ── */
@media (max-width: 370px) {
    .container {
        padding-left: 3px;
        padding-right: 3px;
    }

    .page-title {
        font-size: var(--fs-xs) !important;
    }

    .page-title .form-control {
        font-size: var(--fs-2xs);
        padding: 4px 6px;
    }

    .page-title .animate-arrow {
        padding: 3px !important;
    }

    .page-title .animate-arrow i {
        font-size: var(--fs-sm) !important;
    }

    .ci-add-wrap .btn {
        font-size: var(--fs-2xs) !important;
        padding: 4px 8px !important;
    }

    .ci-add-wrap .collapse .btn {
        font-size: var(--fs-2xs) !important;
        padding: 3px 6px !important;
    }

    .pills-nav .nav-link {
        font-size: var(--fs-2xs);
        padding: 2px 5px !important;
    }

    .table tbody tr {
        padding: 6px 8px;
        margin-bottom: 5px;
        border-radius: var(--radius-md);
    }

    .table tbody td:nth-child(2) .fw-bold {
        font-size: var(--fs-xs) !important;
    }

    .table tbody td:nth-child(2) .text-muted {
        font-size: var(--fs-2xs) !important;
    }

    .reg-badge {
        font-size: var(--fs-2xs);
    }

    .work-status-badge-select {
        font-size: var(--fs-2xs);
    }

    .table tbody td:nth-child(4),
    .table tbody td:nth-child(5) {
        font-size: var(--fs-2xs) !important;
    }

    .table tbody td:last-child .btn {
        font-size: var(--fs-2xs) !important;
        padding: 2px 5px !important;
    }

    .table tbody td:last-child .btn svg,
    .table tbody td:last-child .btn i {
        width: 10px !important;
        height: 10px !important;
        font-size: var(--fs-2xs) !important;
    }

    .pagination .page-link {
        font-size: var(--fs-2xs);
        padding: 2px 5px;
    }

    /* Modals */

    .modal-body {
        padding: 14px 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }
}

.ci-company-opt:hover {
    background: var(--bg-card-hover, #f8f9fa)
}

.ci-company-opt.ci-selected {
    background: rgba(var(--theme-primary-rgb), .08);
    font-weight: 600
}

@media (max-width: 767.98px) {
    #ciMobileFilters .form-select {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    #ciMobileFilters .position-relative {
        flex: 1 1 calc(50% - 4px);
    }

    #ciMobileFilters .position-relative .btn {
        width: 100%;
    }
}

.ci-filter-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 8px;
    z-index: 1060;
    width: 280px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    color: var(--text-ink, #212529)
}

[data-theme="dark"] .ci-filter-dropdown {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4)
}

[data-theme="dark"] .ci-filter-dropdown .border-bottom,
[data-theme="dark"] .ci-filter-dropdown .border-top {
    border-color: var(--border-light) !important
}

[data-theme="dark"] .ci-company-opt span {
    color: var(--text-ink)
}

[data-theme="dark"] #ciRegDateDropdown,
[data-theme="dark"] #ciCreatedDropdown {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4) !important;
}

[data-theme="dark"] #ciRegDateDropdown label,
[data-theme="dark"] #ciCreatedDropdown label {
    color: var(--text-muted) !important;
}

/* ── Application Index — Second Style Block ── */
.slm-search-box {
    position: relative;
}

.slm-search-box input {
    padding-left: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 0.875rem;
    height: 36px;
}

.slm-search-box input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.slm-search-box .slm-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
}

.slm-data-row:hover {
    background: #f8f7ff !important;
}

.slm-pagination {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.slm-pagination button {
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #374151;
    cursor: pointer;
}

.slm-pagination button:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #6366f1;
    color: #6366f1;
}

.slm-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slm-pagination button.slm-active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.slm-pagination .slm-page-info {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 8px;
}

/* ── Shareholders Modal — Mobile ── */
@media (max-width: 575px) {
    #shareholdersListModal .modal-dialog {
        margin: 8px;
    }

    #shareholdersListModal .modal-content {
        border-radius: var(--radius-xl);
    }

    /* Title */
    #shareholdersListModal .modal-title {
        font-size: var(--fs-13);
    }

    #shareholdersListModal .modal-title .me-2 {
        margin-right: 6px !important;
    }

    /* Search + Stats: stack vertically */
    #slmSearchStatsRow {
        flex-direction: column;
    }

    #slmSearchStatsRow>.col-6 {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }

    #slmSearchStatsRow>.col-6:first-child {
        margin-bottom: 6px;
    }

    #slmSearchStatsRow>.col-6:last-child {
        justify-content: flex-start !important;
        gap: var(--gap-md) !important;
        flex-wrap: wrap;
    }

    #slmSearchStatsRow>.col-6 .small {
        font-size: var(--fs-2xs) !important;
    }

    .slm-search-box input {
        font-size: var(--fs-xs) !important;
        height: 30px !important;
    }

    /* Table → card layout */
    #slmTable thead {
        display: none;
    }

    #slmTable tbody tr.slm-data-row {
        display: block;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 8px 10px;
        margin: 0 8px 6px;
        background: #fff;
    }

    #slmTable tbody tr.slm-data-row:hover {
        background: #faf9ff;
    }

    #slmTable tbody tr.slm-data-row td {
        display: block;
        border: none !important;
        padding: 1px 0 !important;
        font-size: var(--fs-xs);
    }

    /* Hide SN column */
    #slmTable tbody tr.slm-data-row td:nth-child(1) {
        display: none;
    }

    /* Name */
    #slmTable tbody tr.slm-data-row td:nth-child(2) .fw-semibold {
        font-size: var(--fs-sm);
    }

    #slmTable tbody tr.slm-data-row td:nth-child(2) small {
        font-size: var(--fs-2xs);
    }

    /* Address */
    #slmTable tbody tr.slm-data-row td:nth-child(3) {
        font-size: var(--fs-2xs);
        color: #6b7280;
    }

    /* Citizenship */
    #slmTable tbody tr.slm-data-row td:nth-child(4) {
        font-size: var(--fs-2xs);
        color: #6b7280;
        display: inline;
    }

    #slmTable tbody tr.slm-data-row td:nth-child(4) small {
        font-size: var(--fs-2xs);
    }

    /* Share */
    #slmTable tbody tr.slm-data-row td:nth-child(5) {
        display: inline;
        margin-left: 6px;
    }

    #slmTable tbody tr.slm-data-row td:nth-child(5) .share-pill {
        font-size: var(--fs-2xs);
    }

    /* Action */
    #slmTable tbody tr.slm-data-row td:nth-child(6) {
        display: inline;
        margin-left: 4px;
        text-align: left !important;
    }

    #slmTable tbody tr.slm-data-row td:nth-child(6) .btn {
        font-size: var(--fs-2xs) !important;
        padding: 2px 6px !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }

    /* Group headers */
    #slmTable tbody tr.slm-group-hdr td {
        font-size: var(--fs-2xs) !important;
        padding: 4px 10px !important;
        margin: 0 8px;
        display: block;
        border-radius: 4px;
    }

    /* Footer */
    #shareholdersListModal .modal-footer {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: var(--gap-sm);
    }

    .slm-pagination button {
        padding: 3px 7px;
        font-size: var(--fs-2xs);
    }

    .slm-pagination .slm-page-info {
        font-size: var(--fs-2xs);
        margin: 0 4px;
    }

    #shareholdersListModal .modal-footer .btn {
        font-size: var(--fs-xs) !important;
        padding: 5px 12px !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }

    /* Detail modal */
    #slmDetailModal .modal-dialog {
        margin: 8px;
    }

    #slmDetailModal .modal-title {
        font-size: var(--fs-13);
    }

    #slmDetailModal .modal-body {
        font-size: var(--fs-sm);
        padding: 10px !important;
    }
}

@media (max-width: 370px) {
    #shareholdersListModal .modal-title {
        font-size: var(--fs-xs);
    }

    .slm-search-box input {
        font-size: var(--fs-2xs) !important;
        height: 28px !important;
    }

    #slmSearchStatsRow>.col-6 .small {
        font-size: var(--fs-2xs) !important;
    }

    #slmTable tbody tr.slm-data-row {
        padding: 6px 8px;
        margin: 0 4px 4px;
    }

    #slmTable tbody tr.slm-data-row td:nth-child(2) .fw-semibold {
        font-size: var(--fs-xs);
    }

    #slmTable tbody tr.slm-data-row td:nth-child(3) {
        font-size: var(--fs-2xs);
    }

    #shareholdersListModal .modal-footer .btn {
        font-size: var(--fs-2xs) !important;
        padding: 4px 8px !important;
    }
}

/* ── Shareholders List Modal — Dark mode ── */
[data-theme="dark"] #shareholdersListModal .modal-header {
    background: var(--bg-card) !important;
}

[data-theme="dark"] #shareholdersListModal .text-dark {
    color: var(--text-ink) !important;
}

[data-theme="dark"] .slm-data-row:hover {
    background: rgba(255, 255, 255, .04) !important;
}

[data-theme="dark"] .slm-group-hdr td {
    background: var(--bg-card-hover) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .slm-pagination button {
    background: var(--bg-card-hover) !important;
    color: var(--text-ink) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .slm-pagination button:hover:not(:disabled) {
    background: rgba(99, 102, 241, .15) !important;
    color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

[data-theme="dark"] .slm-pagination button.slm-active {
    background: #6366f1 !important;
    color: #fff !important;
    border-color: #6366f1 !important;
}

[data-theme="dark"] .slm-pagination .slm-page-info {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .slm-search-box .slm-search-icon {
    color: var(--text-muted) !important;
}

@media (max-width: 575px) {
    [data-theme="dark"] #slmTable tbody tr.slm-data-row {
        background: var(--bg-card) !important;
        border-color: var(--border-light) !important;
    }

    [data-theme="dark"] #slmTable tbody tr.slm-data-row:hover {
        background: var(--bg-card-hover) !important;
    }

    [data-theme="dark"] #slmTable tbody tr.slm-data-row td:nth-child(3),
    [data-theme="dark"] #slmTable tbody tr.slm-data-row td:nth-child(4) {
        color: var(--text-muted) !important;
    }
}

/* ── Nepali Input Suggestions — see "Nepali Input Component" section below ── */

/* ── Share Menu (Document Upload) ── */
.du-share-menu {
    position: absolute;
    z-index: 10000;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    padding: 6px;
    min-width: 160px;
}

.du-share-opt {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: var(--fs-13);
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
}

.du-share-opt:hover {
    background: #f3f4f6;
}

/* ── Notice Pages ── */
.ntc-card {
    transition: box-shadow .15s, transform .15s;
}

.ntc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.ntc-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ntc-icon-general {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
}

.ntc-icon-important {
    background: rgba(245, 158, 11, .1);
    color: #f59e0b;
}

.ntc-icon-urgent {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.ntc-title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-ink);
}

.ntc-desc {
    font-size: var(--fs-13);
    color: var(--text-muted);
}

.ntc-meta {
    font-size: var(--fs-sm);
    color: var(--text-light);
}

.ntc-content {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-ink);
    white-space: pre-line;
}

/* ── Application Sidebar (moved from sidebar.blade.php) ── */
.sb-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(var(--theme-primary-rgb), .06);
}

/* Header */
.sb-hdr {
    background: var(--bg-card, #fff);
    padding: 10px 12px;
    color: var(--theme-primary);
    border-bottom: 1px solid var(--border-light, #dee2e6);
}

/* Premium Avatar */
.sb-avatar-ring {
    position: relative;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--theme-secondary) 15%, transparent);
    box-shadow: none;
    animation: none;
}

.sb-avatar-ring .string-avatar {
    box-shadow: none;
}

@keyframes sb-ring-pulse {

    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: none;
    }
}

/* Rows */
.sb-full-row {
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--bg-card-hover, #f9fafb);
    margin-bottom: 2px;
}

.sb-full-row:hover {
    background: rgba(var(--theme-primary-rgb), .06);
}

.sb-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.sb-detail-item {
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--bg-card-hover, #f9fafb);
    transition: background .2s;
}

.sb-detail-item:hover {
    background: rgba(var(--theme-primary-rgb), .06);
}

/* Labels & Values */
.sb-lbl {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-muted, #6b7280);
    font-weight: 600;
    line-height: 1.2;
}

.sb-val {
    display: block;
    font-size: var(--fs-13);
    color: var(--text-ink, #1f2937);
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

/* Grid cells */

/* Overview card (always focused) */
.sb-overview {
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: var(--radius-md);
    background: var(--bg-card-hover, #f8f9fa);
    box-shadow: none;
    overflow: hidden;
}

.sb-overview-item {
    padding: 8px 10px;
}

.sb-overview-item+.sb-overview-item {
    border-top: 1px solid var(--border-light, #e9ecef);
}

.sb-overview-lbl {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--text-ink, #374151);
}

.sb-overview-lbl svg {
    color: var(--theme-primary);
}

.sb-overview-val {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--text-muted, #6b7280);
}

/* Action buttons */
.sb-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--theme-primary);
    background: var(--bg-card-hover, #f8f9fa);
    border: 1px solid var(--border-light, #f8f9fa);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}

.sb-act-btn:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.sb-act-btn:hover .badge {
    background: rgba(255, 255, 255, .9) !important;
}

/* Danger variant for deadline alerts */
.sb-act-btn-danger {
    color: #dc2626;
    background: var(--sp-danger-bg, #fef2f2);
    border-color: var(--sp-danger-border, #fecaca);
    animation: sb-danger-pulse 2s ease-in-out infinite;
}

.sb-act-btn-danger:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.sb-act-btn-danger:hover .badge {
    background: rgba(255, 255, 255, .9) !important;
    color: var(--theme-primary) !important;
}

@keyframes sb-danger-pulse {

    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: none;
    }
}

/* Access Modal */
.am-user-section {
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.am-user-section:last-child {
    border-bottom: none;
}

.am-user-header {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 12px 16px;
    cursor: pointer;
    transition: background .2s;
}

.am-user-header:hover {
    background: var(--bg-card-hover, #f8f9fa);
}

.am-role-badge {
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.am-role-badge.owner {
    background: #f8f9fa;
    color: var(--theme-primary);
}

.am-role-badge.staff {
    background: #e0f2fe;
    color: #0369a1;
}

.am-perm-count {
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    background: #f3f4f6;
    color: #374151;
    white-space: nowrap;
}

.am-perm-count.full {
    background: #ecfdf5;
    color: #059669;
}

.am-perm-count.none {
    background: #fef2f2;
    color: #dc2626;
}

.am-chevron {
    font-size: var(--fs-2xs);
    color: #9ca3af;
    transition: transform .2s;
}

[aria-expanded="true"] .am-chevron {
    transform: rotate(180deg);
}

.am-perm-note {
    padding: 10px 16px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
}

.am-perm-grid {
    padding: 0 12px 12px;
}

.am-perm-grid table th {
    border-bottom: 1px solid var(--border-light);
    padding: 8px 6px;
}

.am-perm-grid table td {
    padding: 6px;
    vertical-align: middle;
    border: none;
}

.am-perm-grid table tr:hover td {
    background: #f8f9fa;
}

.am-no-perm {
    padding: 10px 16px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
}

/* Reminder Modal — rm- prefix */
.rm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--theme-primary);
    color: #fff;
    padding: 14px 18px;
}

.rm-header-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
}

.rm-section {
    padding: 12px 16px 6px;
}

.rm-section+.rm-section {
    border-top: 1px solid #f3f4f6;
}

.rm-section-title {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--theme-primary);
    margin-bottom: 8px;
}

.rm-count-badge {
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-lg);
    margin-left: 4px;
}

.rm-count-danger {
    background: #fef2f2;
    color: #dc2626;
}

.rm-count-warn {
    background: #fffbeb;
    color: #d97706;
}

.rm-count-success {
    background: #ecfdf5;
    color: #059669;
}

.rm-notif {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    margin-bottom: 6px;
    transition: transform .15s;
}

.rm-notif:hover {
    transform: translateX(2px);
}

.rm-notif-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.rm-notif-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.rm-notif-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-13);
    flex-shrink: 0;
}

.rm-icon-danger {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.rm-icon-warning {
    background: rgba(217, 119, 6, .12);
    color: #d97706;
}

.rm-notif-body {
    flex: 1;
    min-width: 0;
}

.rm-notif-title {
    font-size: var(--fs-13);
    font-weight: 700;
    color: #374151;
}

.rm-notif-sub {
    font-size: var(--fs-xs);
    color: #9ca3af;
}

.rm-notif-badge {
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rm-badge-danger {
    background: #dc2626;
    color: #fff;
}

.rm-badge-warning {
    background: #d97706;
    color: #fff;
}

.rm-doc-item {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 6px 8px;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: background .15s;
}

.rm-doc-item:hover {
    background: #f8f9fa;
}

.rm-doc-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
    flex-shrink: 0;
}

.rm-check-pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.rm-check-done {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.rm-doc-info {
    flex: 1;
    min-width: 0;
}

.rm-doc-name {
    font-size: var(--fs-13);
    font-weight: 600;
    color: #374151;
}

.rm-doc-np {
    font-size: var(--fs-xs);
    color: #9ca3af;
}

.rm-doc-meta {
    font-size: var(--fs-xs);
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}

.rm-doc-count {
    background: #f8f9fa;
    color: var(--theme-primary);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    font-size: var(--fs-2xs);
    margin-right: 3px;
}

.rm-footer {
    padding: 10px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.rm-progress-bar {
    flex: 1;
    height: 5px;
    background: var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-primary-light));
    border-radius: var(--radius-lg);
    transition: width .3s;
}

.rm-check-assigned {
    background: #dee2e6;
    color: #3b82f6;
    border: 1px solid #93c5fd;
}

.rm-assign-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: #f9fafb;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    transition: all .2s;
    flex-shrink: 0;
}

.rm-assign-btn:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.rm-assign-btn.rm-assigned {
    background: #f8f9fa;
    color: var(--theme-primary);
    border-color: #dee2e6;
}

.rm-assign-btn.rm-assigned:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

/* Deadline Panel */
.rm-dp-card {
    background: rgba(var(--theme-primary-rgb), .04);
    border: 1px solid rgba(var(--theme-primary-rgb), .12);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    margin-left: 32px;
}

.rm-dp-row {
    margin-bottom: 8px;
}

.rm-dp-row:last-of-type {
    margin-bottom: 10px;
}

.rm-dp-label {
    display: block;
    font-size: var(--fs-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--theme-primary-light);
    margin-bottom: 4px;
}

.rm-dp-label svg {
    margin-right: 2px;
}

.rm-deadline-date-input {
    width: 100%;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #374151;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    text-align: center;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}

.rm-deadline-date-input:focus {
    border-color: var(--theme-primary-light);
    box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb), .1);
}

.rm-notify-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.rm-chip {
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1.5px solid var(--border-light);
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.3;
}

.rm-chip:hover {
    border-color: var(--theme-primary-light);
    color: var(--theme-primary-light);
    background: rgba(var(--theme-primary-rgb), .04);
}

.rm-chip-active {
    background: var(--theme-primary-light);
    color: #fff;
    border-color: var(--theme-primary-light);
}

.rm-chip-active:hover {
    background: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
    color: #fff;
}

.rm-save-deadline-btn {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-radius: var(--radius-md);
    background: var(--theme-primary);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
}

.rm-save-deadline-btn:hover {
    background: var(--theme-primary-dark);
}

/* ── Registration Roadmap — Dark mode ── */
[data-theme="dark"] .rm-footer {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .rm-doc-item:hover {
    background: var(--bg-card-hover) !important;
}

[data-theme="dark"] .rm-doc-name {
    color: var(--text-ink) !important;
}

[data-theme="dark"] .rm-doc-np {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .rm-doc-meta {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .rm-doc-count {
    background: var(--bg-card-hover) !important;
}

[data-theme="dark"] .rm-notif-title {
    color: var(--text-ink) !important;
}

[data-theme="dark"] .rm-notif-sub {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .rm-check-done {
    background: rgba(21, 128, 61, .15) !important;
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, .3) !important;
}

[data-theme="dark"] .rm-check-pending {
    background: rgba(217, 119, 6, .12) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, .3) !important;
}

[data-theme="dark"] .rm-check-assigned {
    background: rgba(59, 130, 246, .12) !important;
    color: #93c5fd !important;
    border-color: rgba(147, 197, 253, .3) !important;
}

[data-theme="dark"] .rm-assign-btn {
    background: var(--bg-card-hover) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .rm-assign-btn.rm-assigned {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .rm-deadline-date-input {
    background: var(--bg-input) !important;
    color: var(--text-ink) !important;
}

[data-theme="dark"] .rm-chip {
    background: var(--bg-card-hover) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-light) !important;
}

[data-theme="dark"] .rm-chip:hover {
    background: rgba(var(--theme-primary-rgb), .08) !important;
}

[data-theme="dark"] .progress {
    background-color: var(--bg-card-hover) !important;
}

/* WhatsApp action button */
.sb-act-btn-wa {
    color: #25D366;
    background: var(--bg-card-hover, #f8f9fa);
    border-color: var(--border-light, #f8f9fa);
}

.sb-act-btn-wa:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

/* Message action button — teal */
.sb-act-btn-msg {
    color: var(--sb-wa-more-color, #075E54);
    background: var(--bg-card-hover, #f8f9fa);
    border-color: var(--border-light, #f8f9fa);
}

.sb-act-btn-msg:hover {
    background: #075E54;
    color: #fff;
    border-color: #075E54;
}

.sb-act-btn-msg.active {
    background: #075E54;
    color: #fff;
    border-color: #075E54;
}

/* Expandable WhatsApp Message Preview */
.sb-wa-expand {
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: var(--sb-wa-bg, #f0fdf4);
    border: 1px solid var(--sb-wa-border, #bbf7d0);
    animation: sbWaSlide .2s ease;
}

@keyframes sbWaSlide {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sb-wa-expand-msg {
    font-size: var(--fs-sm);
    color: var(--text-ink, #1f2937);
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sb-wa-expand-meta {
    font-size: var(--fs-2xs);
    color: var(--text-muted, #667781);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.sb-wa-expand-more {
    display: inline-flex;
    margin-top: 5px;
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: var(--sb-wa-more-color, #075E54);
    background: var(--sb-wa-more-bg, #dcf8c6);
    border: 1px solid var(--sb-wa-more-border, #b7eaa0);
    padding: 2px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}

.sb-wa-expand-more:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

/* WhatsApp Messages Modal */
.sb-wa-msg {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 0 10px 10px 10px;
    background: var(--sb-wa-msg-bg, #dcf8c6);
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.sb-wa-msg-phone {
    font-weight: 700;
    font-size: var(--fs-xs);
    color: var(--sb-wa-more-color, #075E54);
}

.sb-wa-msg-text {
    color: var(--text-ink, #1a1a1a);
    margin: 3px 0;
    word-break: break-word;
}

.sb-wa-msg-meta {
    font-size: var(--fs-2xs);
    color: var(--text-muted, #667781);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

[data-theme="dark"] {
    --sb-wa-bg: rgba(37, 211, 102, .08);
    --sb-wa-border: rgba(37, 211, 102, .2);
    --sb-wa-more-color: #6ee7b7;
    --sb-wa-more-bg: rgba(37, 211, 102, .12);
    --sb-wa-more-border: rgba(37, 211, 102, .25);
    --sb-wa-msg-bg: rgba(37, 211, 102, .1);
}

.sb-wa-msg-sender {
    font-weight: 600;
    color: var(--theme-primary);
}

/* Sidebar hidden state */
.sb-hidden {
    display: none !important;
}

.sb-hidden~.col-lg-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    position: relative;
}

/* Collapse ribbon — top right edge of sidebar */
.sb-collapse-btn {
    position: absolute;
    top: 6px;
    right: -18px;
    width: 18px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: #fff;
    color: var(--theme-primary);
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    cursor: pointer;
    z-index: 5;
}

.sb-collapse-btn:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

/* Expand ribbon — left edge of show card */
.sb-expand-ribbon {
    display: none;
    position: absolute;
    top: 6px;
    left: -18px;
    width: 18px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: #fff;
    color: var(--theme-primary);
    align-items: center;
    justify-content: center;
    font-size: var(--fs-base);
    cursor: pointer;
    z-index: 5;
}

.sb-expand-ribbon:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

@media (max-width: 991.98px) {
    .sb-collapse-btn {
        display: none !important;
    }

    .sb-expand-ribbon {
        display: none !important;
    }
}

/* Spin animation for SVG spinners */
@keyframes sb-svg-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sb-spin {
    animation: sb-svg-spin 1s linear infinite;
}

/* ── Document Upload (moved from document-upload.blade.php) ── */
:root {
    --du-purple: var(--theme-primary);
    --du-indigo: var(--theme-primary);
    --du-blue: #3b82f6;
    --du-green: #16a34a;
    --du-red: #dc2626;
    --du-amber: #d97706;
    --du-ink: #111827;
    --du-muted: #6b7280;
    --du-border: rgba(17, 24, 39, .08);
    --du-bg: #f4f6fb;
    --du-card: #ffffff;
    --du-radius: 16px;
}

.du-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--du-bg);
}

/* ── HEADER ── */
.du-header {
    position: relative;
    background: #fff;
    padding: 14px 90px 14px;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
}

.du-header::before {
    display: none;
}

.du-header-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1.5px solid var(--theme-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.du-header-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--theme-secondary);
    fill: none;
}

.du-header-title {
    font-size: var(--fs-2xl);
    font-weight: 900;
    color: var(--theme-primary);
    margin: 0;
    letter-spacing: -.2px;
}

.du-header-sub {
    font-size: var(--fs-sm);
    color: #6b7280;
    margin: 3px 0 0;
    font-weight: 500;
}

.du-header-back {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 7px 16px;
    border-radius: var(--radius-lg);
    background: var(--theme-primary);
    border: 1.5px solid var(--theme-primary);
    color: #fff;
    font-size: var(--fs-13);
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}

.du-header-back:hover {
    background: var(--theme-primary-dark);
    color: #fff;
}

.du-header-back svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
}

/* ── BODY LAYOUT ── */
.du-body {
    flex: 1;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 24px 40px;
    gap: var(--gap-3xl);
}

.du-upload-panel {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2xl);
}

.du-files-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-2xl);
}

/* ── CARD ── */
.du-card {
    background: var(--du-card);
    border: 1px solid var(--du-border);
    border-radius: var(--du-radius);
    padding: 20px;
}

/* ── SECTION LABEL ── */
.du-section-label {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    margin-bottom: 14px;
}

.du-section-label .du-bar {
    width: 3px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

.du-section-label span {
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ── CATEGORY CHIPS ── */
.du-cat-chips {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    margin-bottom: 16px;
}

.du-cat-chip {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 10px 14px;
    border-radius: 11px;
    cursor: pointer;
    border: 1.5px solid var(--du-border);
    background: #f9fafb;
    font-size: var(--fs-13);
    font-weight: 700;
    color: var(--du-muted);
    transition: all .15s;
    user-select: none;
}

.du-cat-chip:hover {
    border-color: rgba(0, 0, 0, .3);
    color: var(--du-purple);
    background: rgba(0, 0, 0, .04);
}

.du-cat-chip.is-active {
    border-color: var(--du-purple);
    background: rgba(0, 0, 0, .07);
    color: var(--du-purple);
    box-shadow: none;
}

.du-cat-chip svg {
    width: 15px;
    height: 15px;
    stroke: var(--theme-secondary);
    fill: none;
    flex-shrink: 0;
}

.du-cat-chip input {
    display: none;
}

/* ── DROP ZONE ── */
.du-dropzone {
    position: relative;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-2xl);
    background: #f9fafb;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
}

.du-dropzone:hover,
.du-dropzone.dragover {
    border-color: var(--du-purple);
    background: rgba(0, 0, 0, .04);
}

.du-dropzone.dragover {
    box-shadow: none;
}

.du-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.du-dz-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-2xl);
    background: color-mix(in srgb, var(--theme-secondary) 10%, transparent);
    color: var(--theme-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.du-dz-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

.du-dz-title {
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--du-ink);
}

.du-dz-sub {
    font-size: var(--fs-sm);
    color: var(--du-muted);
}

.du-dz-types {
    font-size: var(--fs-xs);
    color: #9ca3af;
}

.du-dz-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 9px;
    cursor: pointer;
    background: color-mix(in srgb, var(--theme-secondary) 12%, transparent);
    border: none;
    color: var(--theme-secondary);
    font-size: var(--fs-sm);
    font-weight: 800;
    margin-top: 4px;
    transition: background .15s;
}

.du-dz-btn:hover {
    background: rgba(0, 0, 0, .18);
}

.du-dz-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
}

/* ── FILE PREVIEW LIST ── */
.du-preview-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.du-preview-item {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    background: #f9fafb;
    border: 1px solid var(--du-border);
}

.du-preview-ext {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
    font-weight: 900;
    text-transform: uppercase;
}

.du-preview-name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--du-ink);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.du-preview-rm {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    flex-shrink: 0;
    background: rgba(220, 38, 38, .08);
    border: none;
    color: var(--du-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

.du-preview-rm:hover {
    background: rgba(220, 38, 38, .18);
}

.du-preview-rm svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
}

/* ── UPLOAD BTN (inline in section label) ── */
.du-upload-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 9px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--du-purple), var(--du-indigo));
    border: none;
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}

.du-upload-btn-inline:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px);
}

.du-upload-btn-inline:disabled {
    opacity: .38;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── HEADER STATS (inline) ── */
.du-header-stats {
    display: flex;
    gap: var(--gap-xl);
    align-items: center;
}

.du-header-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--du-border);
}

.du-header-stat-num {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--du-ink);
    letter-spacing: -0.5px;
}

.du-header-stat-lbl {
    font-size: var(--fs-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--du-muted);
}

/* ── FILTER BAR ── */
.du-filter-bar {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.du-search {
    position: relative;
    flex: 1;
    min-width: 160px;
}

.du-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    stroke: #9ca3af;
    fill: none;
    pointer-events: none;
}

.du-search input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-light);
    font-size: var(--fs-13);
    background: #f9fafb;
    color: var(--du-ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.du-search input:focus {
    border-color: var(--du-purple);
    box-shadow: none;
    background: #fff;
}

.du-filter-pills {
    display: flex;
    gap: var(--gap-sm);
    flex-wrap: wrap;
}

.du-filter-pill {
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 700;
    border: 1.5px solid var(--border-light);
    background: var(--du-card);
    color: var(--du-muted);
    transition: all .15s;
}

.du-filter-pill:hover {
    border-color: rgba(0, 0, 0, .3);
    color: var(--du-purple);
}

.du-filter-pill.is-active {
    background: var(--du-purple);
    border-color: var(--du-purple);
    color: #fff;
}

.du-sort-select {
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-light);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--du-muted);
    background: var(--du-card);
    outline: none;
    cursor: pointer;
}

.du-refresh-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-light);
    background: var(--du-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--du-muted);
    transition: all .15s;
    flex-shrink: 0;
}

.du-refresh-btn:hover {
    border-color: rgba(0, 0, 0, .3);
    color: var(--du-purple);
    background: rgba(0, 0, 0, .05);
}

.du-refresh-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* ── GALLERY ── */
.du-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--gap-xl);
    margin-bottom: 8px;
}

.du-gallery-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--du-card);
    border: 1px solid var(--du-border);
    cursor: pointer;
    transition: box-shadow .18s, transform .18s;
}

.du-gallery-card:hover {
    box-shadow: none;
    transform: translateY(-2px);
}

.du-gallery-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.du-gallery-card:hover img {
    transform: scale(1.04);
}

.du-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
}

.du-gallery-card:hover .du-gallery-overlay {
    opacity: 1;
}

.du-gallery-name {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.du-gallery-actions {
    display: flex;
    gap: 5px;
}

.du-gal-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.du-gal-btn svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
}

.du-gal-btn.view,
.du-gal-btn.dl,
.du-gal-btn.share {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.du-gal-btn.del {
    background: rgba(220, 38, 38, .35);
    color: #fff;
}

.du-gal-btn.view:hover,
.du-gal-btn.dl:hover,
.du-gal-btn.share:hover {
    background: rgba(255, 255, 255, .38);
}

.du-gal-btn.del:hover {
    background: rgba(220, 38, 38, .65);
}

.du-gallery-cat {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: var(--fs-2xs);
    font-weight: 800;
    background: rgba(255, 255, 255, .9);
    color: var(--du-purple);
}

/* ── DOC LIST ── */
.du-doc-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.du-doc-item {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 12px 16px;
    border-radius: var(--radius-xl);
    background: #f9fafb;
    border: 1px solid var(--du-border);
    transition: border-color .15s, box-shadow .15s;
}

.du-doc-item:hover {
    border-color: rgba(0, 0, 0, .25);
    box-shadow: none;
}

.du-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
    font-weight: 900;
    text-transform: uppercase;
}

.du-doc-name {
    font-size: var(--fs-13);
    font-weight: 700;
    color: var(--du-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.du-doc-meta {
    font-size: var(--fs-xs);
    color: var(--du-muted);
    margin-top: 2px;
}

.du-doc-actions {
    display: flex;
    gap: var(--gap-sm);
    flex-shrink: 0;
    margin-left: auto;
}

.du-action-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--du-muted);
    transition: all .15s;
    text-decoration: none;
}

.du-action-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
}

.du-action-btn:hover {
    border-color: var(--du-purple);
    color: var(--du-purple);
    background: rgba(0, 0, 0, .07);
}

.du-action-btn.is-del:hover {
    border-color: var(--du-red);
    color: var(--du-red);
    background: rgba(220, 38, 38, .07);
}

/* ── EMPTY / SPINNER ── */
.du-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.du-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--border-light);
    fill: none;
    margin-bottom: 14px;
}

.du-empty-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 4px;
}

.du-empty-sub {
    font-size: var(--fs-sm);
    color: #c4c9d4;
}

.du-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, .2);
    border-top-color: var(--du-purple);
    border-radius: 50%;
    animation: duSpin .7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes duSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── LIGHTBOX ── */
#duLightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
}

#duLightbox.is-open {
    display: flex;
}

#duLightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.dulb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dulb-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.dulb-prev,
.dulb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.dulb-prev:hover,
.dulb-next:hover {
    background: rgba(255, 255, 255, .28);
}

.dulb-prev {
    left: 16px;
}

.dulb-next {
    right: 16px;
}

.dulb-prev svg,
.dulb-next svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.dulb-caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .du-body {
        flex-direction: column;
        padding: 16px;
    }

    .du-upload-panel {
        width: 100%;
    }

    .du-header {
        padding: 16px 20px;
    }
}

/* ── Document Upload – Dark Mode ── */
[data-theme="dark"] {
    --du-ink: #f0f1f3;
    --du-muted: #a1a5b0;
    --du-border: rgba(255, 255, 255, .08);
    --du-bg: #121318;
    --du-card: #1c1e26;
}

[data-theme="dark"] .du-header {
    background: var(--bg-card);
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .du-header-sub {
    color: var(--text-muted);
}

[data-theme="dark"] .du-header-stat {
    background: rgba(255, 255, 255, .05);
    border-color: var(--border-light);
}

[data-theme="dark"] .du-cat-chip {
    background: var(--bg-input);
    border-color: var(--border-light);
    color: var(--text-muted);
}

[data-theme="dark"] .du-cat-chip:hover {
    border-color: var(--border-medium);
    color: var(--theme-primary-light);
    background: rgba(255, 255, 255, .04);
}

[data-theme="dark"] .du-cat-chip.is-active {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .12);
    color: var(--theme-primary-light);
}

[data-theme="dark"] .du-dropzone {
    background: var(--bg-input);
    border-color: var(--border-light);
}

[data-theme="dark"] .du-dropzone:hover,
[data-theme="dark"] .du-dropzone.dragover {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .06);
}

[data-theme="dark"] .du-dz-icon {
    background: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .du-dz-title {
    color: var(--text-ink);
}

[data-theme="dark"] .du-dz-sub {
    color: var(--text-muted);
}

[data-theme="dark"] .du-dz-types {
    color: var(--text-light);
}

[data-theme="dark"] .du-dz-btn {
    background: rgba(255, 255, 255, .08);
    color: var(--theme-primary-light);
}

[data-theme="dark"] .du-dz-btn:hover {
    background: rgba(255, 255, 255, .14);
}

[data-theme="dark"] .du-preview-item {
    background: var(--bg-input);
    border-color: var(--border-light);
}

[data-theme="dark"] .du-preview-name {
    color: var(--text-ink);
}

[data-theme="dark"] .du-preview-rm {
    background: rgba(248, 113, 113, .1);
    color: var(--danger);
}

[data-theme="dark"] .du-preview-rm:hover {
    background: rgba(248, 113, 113, .2);
}

[data-theme="dark"] .du-search input {
    background: var(--bg-input);
    border-color: var(--border-light);
    color: var(--text-ink);
}

[data-theme="dark"] .du-search input:focus {
    border-color: var(--theme-primary);
    background: var(--bg-input);
}

[data-theme="dark"] .du-search svg {
    stroke: var(--text-light);
}

[data-theme="dark"] .du-filter-pill {
    border-color: var(--border-light);
    background: var(--bg-card);
    color: var(--text-muted);
}

[data-theme="dark"] .du-filter-pill:hover {
    border-color: var(--border-medium);
    color: var(--theme-primary-light);
}

[data-theme="dark"] .du-filter-pill.is-active {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

[data-theme="dark"] .du-sort-select {
    background: var(--bg-input);
    border-color: var(--border-light);
    color: var(--text-muted);
}

[data-theme="dark"] .du-refresh-btn {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-muted);
}

[data-theme="dark"] .du-refresh-btn:hover {
    border-color: var(--border-medium);
    color: var(--theme-primary-light);
    background: rgba(255, 255, 255, .04);
}

[data-theme="dark"] .du-gallery-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .du-gallery-cat {
    background: rgba(0, 0, 0, .65);
    color: var(--theme-primary-light);
}

[data-theme="dark"] .du-doc-item {
    background: var(--bg-input);
    border-color: var(--border-light);
}

[data-theme="dark"] .du-doc-item:hover {
    border-color: var(--border-medium);
}

[data-theme="dark"] .du-doc-name {
    color: var(--text-ink);
}

[data-theme="dark"] .du-doc-meta {
    color: var(--text-muted);
}

[data-theme="dark"] .du-action-btn {
    border-color: var(--border-light);
    color: var(--text-muted);
}

[data-theme="dark"] .du-action-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary-light);
    background: rgba(var(--theme-primary-rgb), .1);
}

[data-theme="dark"] .du-action-btn.is-del:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(248, 113, 113, .08);
}

[data-theme="dark"] .du-empty svg {
    stroke: var(--border-medium);
}

[data-theme="dark"] .du-empty-title {
    color: var(--text-muted);
}

[data-theme="dark"] .du-empty-sub {
    color: var(--text-light);
}

[data-theme="dark"] .du-spinner {
    border-color: rgba(255, 255, 255, .1);
    border-top-color: var(--theme-primary-light);
}

/* ── Footer (moved from footer.blade.php) ── */
/* ── Footer shell ── */
.site-footer {
    background: #1f3158;
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #1f3158;
}

.footer-row-1 {
    padding: 24px 0 14px;
}

/* ── Brand ── */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xl);
}

.footer-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-2xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25));
    border: 1px solid rgba(255, 255, 255, .20);
    font-size: var(--fs-xl);
}

.footer-brand-name {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: .2px;
    color: #ffffff;
}

.footer-sep {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    width: 100%;
    margin: 4px 0 0;
}

.footer-row-2 {
    padding: 20px 0 12px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* ── Column headings ── */
.foot-heading {
    font-size: var(--fs-13);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #dee2e6;
    margin-bottom: 12px;
}

.foot-text {
    color: rgba(255, 255, 255, .72);
    margin: 0 0 7px;
    line-height: 1.5;
    font-size: var(--fs-base);
}

/* ── Nav links ── */
.foot-nav li {
    margin-bottom: 6px;
}

.foot-nav .nav-link {
    color: rgba(255, 255, 255, .68);
    padding: 0;
    text-decoration: none;
    font-size: var(--fs-base);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .18s ease, transform .18s ease;
}

.foot-nav .nav-link::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 1.5px;
    background: #adb5bd;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity .18s ease, transform .18s ease;
}

.foot-nav .nav-link:hover {
    color: #e9ecef;
    transform: translateX(4px);
}

.foot-nav .nav-link:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

/* ── Left grid ── */
.footer-left-row1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap-lg) 14px;
}

/* ── Company info ── */
.company-line {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .72);
    font-size: var(--fs-base);
    line-height: 1.45;
}

/* ── Map ── */
.footer-map {
    margin-top: 12px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: none;
}

.footer-map iframe {
    width: 100%;
    height: 148px;
    border: 0;
    display: block;
}

/* ── Social icons ── */
.footer-row-3 {
    padding: 10px 0 2px;
}

.foot-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    margin: 0;
    padding: 0;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .80);
    border: 1px solid rgba(255, 255, 255, .12);
    text-decoration: none;
    font-size: var(--fs-base);
    transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-link.sl-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.sl-yt:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-link.sl-ig:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e6683c;
}

.social-link.sl-li:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-link.sl-wa:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link.sl-tw:hover {
    background: #1d9bf0;
    border-color: #1d9bf0;
}

/* ── Bottom strip ── */
.footer-row-4 {
    padding: 6px 0 6px;
}

.footer-slogan {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: var(--fs-base);
}

.footer-row-5 {
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding: 10px 0 14px;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, .50);
    font-size: var(--fs-13);
    letter-spacing: .2px;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .footer-left-row1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-left-row1 {
        grid-template-columns: 1fr;
    }
}

/* ── Payment logos ── */
.company-payments {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.company-subtitle {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 10px;
    color: #dee2e6;
}

.payment-logos {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    flex-wrap: wrap;
}

.payment-logos img {
    height: 26px;
    max-width: 90px;
    object-fit: contain;
    transition: opacity .18s ease;
}

.payment-logos img:hover {
    opacity: 1;
}

/* ── Scroll-to-top button ── */
.jump-top-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-xl);
    border: none;
    background: var(--theme-primary);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    z-index: 9999;
    transition: transform .18s ease, box-shadow .18s ease;
    font-size: var(--fs-base);
}

.jump-top-button:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

/* ── Nepali Input Component ── */
.ni-wrap {
    position: relative;
}

.ni-suggestions {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 9999;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
    padding: var(--gap-xs);
    margin-top: var(--gap-xs);
    min-width: 180px;
    max-width: 100%;
}

.ni-suggestions.active {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-xs);
}

.ni-sug-item {
    padding: 6px 12px;
    border-radius: 7px;
    font-size: var(--fs-base);
    font-weight: 600;
    color: #1e1b4b;
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
}

.ni-sug-item:hover,
.ni-sug-item.ni-active {
    background: rgba(var(--theme-primary-rgb), .08);
    color: var(--theme-primary);
}

/* ── Registration Header (moved from registration-header.blade.php) ── */
.rh-inner {
    flex-wrap: nowrap;
}

.rh-left {
    flex-shrink: 1;
    min-width: 0;
}

.rh-badge {
    font-size: var(--fs-lg);
    padding: 5px 14px;
    font-weight: 500;
    vertical-align: middle;
}

.rh-right {
    flex-shrink: 0;
}

.rh-timer {
    font-size: var(--fs-13);
    font-weight: 600;
    white-space: nowrap;
}

.rh-menu-btn {
    width: auto !important;
    margin-bottom: 0 !important;
    padding: 4px 8px !important;
}

@media (max-width: 768px) {
    .rh-inner {
        gap: var(--gap-sm) !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .rh-badge {
        font-size: var(--fs-base) !important;
        padding: 4px 10px !important;
    }

    .rh-timer {
        font-size: var(--fs-xs);
    }

    .rh-menu-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 370px) {
    .rh-inner {
        gap: var(--gap-xs) !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .rh-badge {
        font-size: var(--fs-sm) !important;
        padding: 3px 7px !important;
    }

    .rh-timer {
        font-size: var(--fs-2xs);
    }

    .rh-menu-btn {
        padding: 3px 6px !important;
    }

    .rh-menu-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ── News/Blog Page — only styles not achievable via Bootstrap ── */
.nw-card { text-decoration: none; color: inherit; transition: all .25s ease; cursor: pointer; overflow: hidden; }
.nw-card:hover { border-color: var(--theme-primary) !important; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.nw-card:hover img { transform: scale(1.03); }
.nw-card img { transition: transform .25s; }
.nw-card-ph { background: linear-gradient(135deg, rgba(var(--theme-primary-rgb),.04), rgba(var(--theme-primary-rgb),.01)); }
.nw-tab { padding: 10px 18px; font-size: var(--fs-base); font-weight: 600; color: #6b7280; text-decoration: none; border-bottom: 2.5px solid transparent; transition: all .15s; }
.nw-tab:hover { color: var(--theme-primary); }
.nw-tab.active { color: var(--theme-primary); border-bottom-color: var(--theme-primary); }
.nw-line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-reader-content { font-size: var(--fs-md); color: #374151; line-height: 1.85; }
.nw-reader-content p { margin-bottom: 16px; }
.nw-reader-content h2, .nw-reader-content h3 { font-weight: 700; color: #111; margin: 24px 0 10px; }
.nw-reader-content blockquote { border-left: 3px solid var(--theme-primary); padding: 12px 20px; margin: 18px 0; background: rgba(var(--theme-primary-rgb),.03); border-radius: 0 8px 8px 0; font-style: italic; color: #4b5563; }

/* ── Subscription Page (moved from subscription/index.blade.php) ── */
.sub-ring {
    width: 100px;
    height: 100px;
    position: relative;
}

.sub-ring svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.sub-ring-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 6;
}

.sub-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1);
}

.sub-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--fs-3xl);
    font-weight: 900;
    line-height: 1;
    color: var(--text-ink);
}

.sub-ring-center small {
    display: block;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 2px;
}

/* ── Shared Plan Card (used in subscription, choose-plan, website) ── */
.plan-card {
    position: relative;
    height: 100%;
    border-radius: 12px;
    padding: 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e5e7eb);
    transition: border-color .2s ease;
    display: flex;
    flex-direction: column;
}
.plan-card:hover { border-color: var(--theme-primary); }
.plan-card.plan-active { border-color: var(--theme-secondary); }
.plan-card.plan-popular { border-color: var(--theme-primary); }

.plan-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: var(--fs-xs, 11px);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(58, 143, 25, .06);
    color: var(--theme-secondary);
    border: 1px solid rgba(58, 143, 25, .15);
}

.plan-head { margin-bottom: 14px; }
.plan-name {
    font-size: var(--fs-2xl, 22px);
    font-weight: 800;
    color: var(--text-ink, #111);
    margin: 0;
}
.plan-for {
    margin: 4px 0 0;
    font-size: var(--fs-13, 13px);
    color: var(--text-muted, #6b7280);
}

.plan-price {
    margin: 14px 0 16px;
    padding: 14px;
    border-radius: 10px;
    background: var(--bg-card-hover, #f9fafb);
    border: 1px solid var(--border-light, #e5e7eb);
}
.price-amt {
    font-size: var(--fs-5xl, 32px);
    font-weight: 800;
    color: var(--text-ink, #111);
    line-height: 1.1;
}
.price-term {
    font-size: var(--fs-13, 13px);
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    margin-top: 4px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 8px;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--fs-base, 14px);
    font-weight: 600;
    color: var(--text-ink, #111);
    line-height: 1.45;
}
.plan-features li .pf-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(var(--theme-primary-rgb), .08);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs, 9px);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: var(--fs-base, 14px);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.plan-cta-outline {
    border: 1px solid var(--border-light, #e5e7eb);
    color: var(--text-ink, #111);
    background: var(--bg-card, #fff);
}
.plan-cta-outline:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.plan-cta-primary {
    border: 2px solid var(--theme-primary);
    background: var(--theme-primary);
    color: #fff;
}
.plan-cta-primary:hover { opacity: .9; color: #fff; }
.plan-cta-secondary {
    border: 2px solid var(--theme-secondary);
    background: var(--theme-secondary);
    color: #fff !important;
    margin-top: auto;
}
.plan-cta-secondary:hover { opacity: .9; color: #fff !important; }
.plan-cta-active {
    border: 2px solid var(--theme-secondary);
    color: var(--theme-secondary);
    background: rgba(58, 143, 25, .06);
    cursor: default;
}
.plan-cta-active:hover { color: var(--theme-secondary); }

@media (max-width: 575px) {
    .plan-card { padding: 18px; }
}

.sub-usage-item {
    border-right: 1px solid var(--border-light);
    padding: 16px;
}

.sub-usage-item:last-child {
    border-right: none;
}

.sub-usage-label {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-ink);
}

.sub-usage-meta {
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.sub-plan-header {
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card-hover);
}

.sub-plan-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    color: var(--theme-secondary);
    border: 1.5px solid var(--theme-secondary);
}

@media(max-width:575px) {
    .sub-usage-row {
        flex-direction: column;
    }

    .sub-usage-item {
        flex-direction: row !important;
        text-align: left !important;
        gap: var(--gap-2xl);
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
        padding: 14px 0;
    }

    .sub-usage-item:last-child {
        border-bottom: none;
    }

    .sub-ring {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .sub-ring svg {
        width: 56px;
        height: 56px;
    }

    .sub-ring-center {
        font-size: var(--fs-base);
    }

    .sub-ring-center small {
        font-size: var(--fs-2xs);
    }
}

/* ── Referral Page (moved from referral/index.blade.php) ── */
.ref-points {
    font-size: 3rem;
    font-weight: 900;
    color: var(--theme-secondary);
    line-height: 1.1;
}

.ref-code-box {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(var(--theme-primary-rgb), .04);
    border: 2px dashed rgba(var(--theme-primary-rgb), .2);
}

.ref-code-val {
    font-size: var(--fs-3xl);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--theme-secondary);
    flex: 1;
}

.ref-boost-card {
    transition: transform .2s;
}

.ref-boost-card:hover {
    transform: translateY(-3px);
}

.ref-boost-cost {
    font-size: var(--fs-4xl);
    font-weight: 900;
    color: var(--theme-secondary);
}

.ref-tx-earned {
    color: var(--theme-secondary);
}

.ref-tx-redeemed {
    color: var(--theme-primary);
}

.ref-qr-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.ref-qr-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ref-qr-overlay-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    padding: 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    transform: scale(.9);
    transition: transform .25s;
}

.ref-qr-overlay.active .ref-qr-overlay-card {
    transform: scale(1);
}

#refQrCode canvas,
#refQrCodeLarge canvas {
    border-radius: var(--radius-lg);
}

.ref-rate-card {
    background: var(--bg-card-hover);
}

.ref-rate-num {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--theme-secondary);
}

.ref-rate-label {
    font-size: var(--fs-md);
    color: var(--text-muted);
}

.ref-boost-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1.5px solid var(--theme-secondary);
    color: var(--theme-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.ref-section-title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* ── Professional Profile Edit (moved from professional-profile/edit.blade.php) ── */
.pe-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 13px;
    background: rgba(128, 128, 128, .2);
    transition: all .25s;
}

.pe-switch::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-card);
    transition: transform .25s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.pe-switch.active {
    background: var(--theme-secondary);
}

.pe-switch.active::before {
    transform: translateX(22px);
}

.pe-check-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-light);
    cursor: pointer;
    transition: all .15s;
    background: var(--bg-card);
}

.pe-check-item:hover {
    border-color: rgba(var(--theme-primary-rgb), .2);
}

.pe-check-item.checked {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .04);
}

.pe-check-item span {
    color: var(--text-ink);
}

.pe-day-item {
    width: 52px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-light);
    cursor: pointer;
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: all .15s;
    position: relative;
}

.pe-day-item:hover {
    border-color: rgba(var(--theme-primary-rgb), .2);
}

.pe-day-item.active {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .08);
    color: var(--theme-primary);
}

.pe-day-item input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.pe-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-3xl);
    border: 2px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(var(--theme-primary-rgb), .05);
}

.pe-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Reminders Page (moved from reminders.blade.php) ── */
.rm-stat {
    cursor: pointer;
    transition: all .15s;
}

.rm-stat:hover {
    border-color: var(--theme-primary) !important;
}

.rm-stat.active {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb), .15);
}

.rm-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-ink);
    font-size: var(--fs-13);
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.rm-chip:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .04);
}

.rm-chip.active {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.rm-chip-count {
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-lg);
    background: rgba(128, 128, 128, .12);
    color: var(--text-muted);
}

.rm-chip.active .rm-chip-count {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.rm-badge-topic,
.rm-badge-overdue,
.rm-badge-upcoming,
.rm-badge-pending,
.rm-badge-completed {
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.rm-badge-topic {
    background: rgba(var(--theme-primary-rgb), .1);
    color: var(--theme-primary);
}

.rm-badge-overdue {
    border: 1px solid #dc3545;
    color: #dc3545;
}

.rm-badge-upcoming {
    border: 1px solid #ffc107;
    color: #856404;
}

.rm-badge-pending {
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.rm-badge-completed {
    border: 1px solid var(--theme-secondary);
    color: var(--theme-secondary);
}

.rm-snooze-wrap {
    position: relative;
    display: inline-block;
}

.rm-snooze-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    z-index: 1050;
    min-width: 130px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.rm-snooze-menu.open {
    display: block;
}

.rm-snooze-opt {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: 0 0;
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    color: var(--text-ink);
}

.rm-snooze-opt:hover {
    background: var(--bg-card-hover);
}

@keyframes rm-spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.rm-spinner {
    animation: rm-spin 1s linear infinite;
}

.rm-m-cards {
    display: none;
}

/* rm-stat-icon, nt-stat-icon — replaced by global icon-box classes */

@media(max-width: 768px) {
    #rmTableCard .table {
        display: none;
    }

    .rm-m-cards {
        display: block;
    }

    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2px;
        padding-bottom: 4px;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media(max-width: 576px) {

    #rmMainPagination,
    #rmCompletedSection .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        gap: var(--gap-md);
        align-items: center !important;
    }

    #rmPageBtns,
    #rmCompPageBtns {
        flex-wrap: wrap;
        justify-content: center;
    }

    #rmPageBtns .btn,
    #rmCompPageBtns .btn {
        min-width: 32px;
        padding: 4px 8px;
        font-size: var(--fs-sm);
    }
}

/* ── Notifications Page (moved from notifications/index.blade.php) ── */

.nt-radio-card {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    background: var(--bg-card);
    color: var(--text-ink);
}

.nt-radio-card:hover {
    border-color: var(--theme-primary);
}

.nt-radio-card.selected {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), .05);
}

.nt-radio-card input[type="radio"] {
    display: none;
}

.nt-staff-select-wrap {
    display: none;
    margin-top: 14px;
}

.nt-staff-select-wrap.visible {
    display: block;
}

/* nt-stat-icon: merged with rm-stat-icon above */

/* ── Staff Page (moved from staff/index.blade.php) ── */
/* =============================================
   STAFF PAGE — MODAL-ONLY CSS
   ============================================= */

/* ── Modal Overrides ── */
.sf-modal .modal-content {
    border: none;
    border-radius: var(--sf-radius);
    box-shadow: none;
    overflow: hidden;
    background-color: var(--bg-card) !important;
}

.sf-modal .modal-header {
    background-color: var(--bg-card) !important;
    color: var(--theme-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
}

.sf-modal .modal-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.sf-modal .btn-close,
.sf-perf-header .btn-close,
.sf-meet-header .btn-close {
    opacity: .8;
}

.sf-modal .btn-close:hover,
.sf-perf-header .btn-close:hover,
.sf-meet-header .btn-close:hover {
    opacity: 1;
}

.sf-modal .modal-body {
    padding: 24px;
}

.sf-modal .modal-footer {
    border-top: 1px solid var(--sf-border);
    padding: 16px 24px;
    background: var(--bg-card);
}

/* ── Form Elements ── */
.sf-form-group {
    margin-bottom: 18px;
}

.sf-form-label {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--text-ink);
    margin-bottom: 6px;
    display: block;
}

.sf-form-input {
    width: 100%;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    font-size: var(--fs-base);
    background: var(--bg-input);
    color: var(--text-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}

.sf-form-input:focus {
    border-color: var(--sf-purple-l);
    box-shadow: none;
    background: var(--bg-card);
}

.sf-form-icon-wrap {
    position: relative;
}

.sf-form-icon-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-muted);
}

.sf-form-icon-wrap .sf-form-input {
    padding-left: 40px;
}

.sf-form-error {
    font-size: var(--fs-sm);
    color: var(--sf-red);
    margin-top: 4px;
}

.sf-input-sm {
    padding: 7px 10px;
    font-size: var(--fs-13);
    border-radius: var(--radius-md);
}

.sf-form-icon-wrap .sf-input-sm {
    padding-left: 32px;
}

.sf-form-icon-wrap:has(.sf-input-sm) svg {
    left: 10px;
    width: 12px;
    height: 12px;
}

/* ── Save / Cancel Buttons ── */
.sf-btn-save {
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 10px 24px;
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.sf-btn-save:hover {
    background: var(--theme-primary-dark);
}

.sf-btn-cancel {
    background: var(--bg-card-hover);
    color: var(--text-ink);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.sf-btn-cancel:hover {
    background: var(--border-light);
}

/* ── Add Staff: Compact Fields Grid ── */
.sf-add-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg) 14px;
    margin-bottom: 14px;
}

.sf-add-field .sf-form-label {
    font-size: var(--fs-xs);
    margin-bottom: 4px;
}

/* ── Add Staff: Side-by-Side Columns ── */
.sf-add-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    margin-top: 4px;
}

.sf-add-col {
    min-width: 0;
}

.sf-add-col .sf-perm-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: 400px;
}

.sf-add-col .sf-company-list {
    max-height: 400px;
}

/* ── Add Staff: Compact Search ── */
.sf-perm-search-sm {
    margin-bottom: 10px;
}

.sf-perm-search-sm input {
    padding: 7px 12px 7px 32px;
    font-size: var(--fs-sm);
    border-radius: var(--radius-md);
}

.sf-perm-search-sm svg {
    width: 11px;
    height: 11px;
    left: 10px;
}

/* ── Permissions Grid ── */
.sf-perm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--sf-purple-bg);
    border-radius: var(--radius-lg);
}

.sf-perm-toolbar span {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-ink);
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.sf-perm-toolbar-btns {
    display: flex;
    gap: var(--gap-sm);
}

.sf-perm-toolbar-btns button {
    font-size: var(--fs-xs);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 6px 14px;
    cursor: pointer;
    transition: all .15s ease;
}

.sf-perm-toolbar-btns .sf-sel-all {
    background: var(--sf-purple);
    color: #fff;
}

.sf-perm-toolbar-btns .sf-sel-all:hover {
    background: var(--theme-primary);
}

.sf-perm-toolbar-btns .sf-desel-all {
    background: var(--bg-card);
    color: var(--sf-purple);
    border: 1.5px solid var(--sf-purple-l);
}

.sf-perm-toolbar-btns .sf-desel-all:hover {
    background: rgba(var(--theme-primary-rgb), .04);
}

.sf-perm-search {
    position: relative;
    margin-bottom: 14px;
}

.sf-perm-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-muted);
    pointer-events: none;
}

.sf-perm-search input {
    width: 100%;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 9px 14px 9px 36px;
    font-size: var(--fs-13);
    background: var(--bg-card-hover, #fafafa);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.sf-perm-search input:focus {
    border-color: var(--sf-purple-l);
    box-shadow: none;
    background: var(--bg-card);
}

.sf-perm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

.sf-perm-grid::-webkit-scrollbar {
    width: 5px;
}

.sf-perm-grid::-webkit-scrollbar-track {
    background: transparent;
}

.sf-perm-grid::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: var(--radius-lg);
}

.sf-perm-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 0;
    transition: all .2s ease;
    overflow: hidden;
}

.sf-perm-card:hover {
    border-color: var(--sf-purple-l);
    box-shadow: none;
}

.sf-perm-card.has-perms {
    border-color: var(--sf-purple-l);
    background: rgba(var(--theme-primary-rgb), .04);
}

.sf-perm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.sf-perm-card.has-perms .sf-perm-card-head {
    background: var(--bg-card-hover);
    border-bottom-color: var(--border-light);
}

.sf-perm-card-head:hover {
    background: var(--bg-card-hover);
}

.sf-perm-card.has-perms .sf-perm-card-head:hover {
    background: rgba(var(--theme-primary-rgb), .1);
}

.sf-perm-module {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--sf-ink);
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.sf-perm-module svg {
    color: var(--sf-purple);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sf-perm-count {
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: var(--sf-muted);
    background: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
    transition: all .2s;
}

.sf-perm-card.has-perms .sf-perm-count {
    background: var(--sf-purple);
    color: #fff;
}

.sf-perm-body {
    padding: 10px 12px 12px;
}

.sf-perm-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}

.sf-perm-toggle {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 5px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}

.sf-perm-toggle:hover {
    background: var(--bg-card-hover);
}

.sf-perm-toggle input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s ease;
    background: var(--bg-card);
}

.sf-perm-toggle input[type="checkbox"]:checked {
    background: var(--sf-purple);
    border-color: var(--sf-purple);
}

.sf-perm-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sf-perm-toggle label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    margin: 0;
    line-height: 1;
}

.sf-perm-toggle input:checked+label {
    color: var(--sf-purple);
    font-weight: 700;
}

/* ── Tabs (Permissions Modal) ── */
.sf-perm-tabs {
    display: flex;
    gap: var(--gap-xs);
    margin-bottom: 18px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-xl);
    padding: 4px;
}

.sf-perm-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--sf-muted);
    font-size: var(--fs-13);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}

.sf-perm-tab:hover {
    color: var(--sf-ink);
    background: rgba(255, 255, 255, .6);
}

.sf-perm-tab.active {
    background: var(--bg-card);
    color: var(--sf-purple);
    box-shadow: none;
}

.sf-perm-tab svg {
    width: 13px;
    height: 13px;
}

.sf-perm-tab-badge {
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-lg);
    background: var(--border-light);
    color: var(--sf-muted);
    min-width: 20px;
    text-align: center;
    transition: all .2s;
}

.sf-perm-tab.active .sf-perm-tab-badge {
    background: var(--sf-purple);
    color: #fff;
}

.sf-perm-tab-pane {
    display: none;
}

.sf-perm-tab-pane.active {
    display: block;
}

/* ── Range Selector ── */
.sf-rng {
    margin-bottom: 12px;
    background: rgba(var(--theme-primary-rgb), .04);
    border: 1.5px solid var(--sf-purple-l);
    border-radius: var(--radius-xl);
    padding: 12px 16px 8px;
}

.sf-rng-row1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-md);
    margin-bottom: 10px;
}

.sf-rng-row1 .sf-perm-toolbar-btns {
    margin-left: auto;
}

.sf-rng-info {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    background: var(--bg-card);
    border: 1.5px solid var(--sf-purple-l);
    border-radius: var(--radius-md);
    padding: 4px 12px;
}

.sf-rng-info .sf-rng-num {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sf-purple);
    line-height: 1;
}

.sf-rng-info .sf-rng-word {
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sf-rng-slider {
    position: relative;
    height: 28px;
    margin: 0 4px;
    cursor: pointer;
}

.sf-rng-slider .sf-rng-rail {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 8px;
    background: #e9e5f5;
    border-radius: 4px;
}

.sf-rng-slider .sf-rng-fill {
    position: absolute;
    top: 10px;
    height: 8px;
    background: linear-gradient(90deg, #adb5bd, var(--sf-purple));
    border-radius: 4px;
    transition: left .05s, width .05s;
}

.sf-rng-slider input[type="range"] {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 2;
}

.sf-rng-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sf-purple);
    border: 3px solid #fff;
    box-shadow: none;
    cursor: pointer;
    pointer-events: all;
    transition: box-shadow .15s, transform .1s;
}

.sf-rng-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: none;
    transform: scale(1.15);
}

.sf-rng-slider input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.25);
    box-shadow: none;
}

.sf-rng-slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sf-purple);
    border: 3px solid #fff;
    box-shadow: none;
    cursor: pointer;
    pointer-events: all;
}

.sf-rng-timeline {
    position: relative;
    height: 22px;
    margin: 0 4px;
}

.sf-rng-timeline .sf-rng-tline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #d4d0e8;
}

.sf-rng-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sf-rng-tick .sf-rng-tdot {
    width: 1px;
    height: 6px;
    background: var(--border-light);
}

.sf-rng-tick.sf-rng-tmaj .sf-rng-tdot {
    height: 10px;
    background: #6c757d;
}

.sf-rng-tick .sf-rng-tnum {
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: #a1a1aa;
    margin-top: 1px;
    white-space: nowrap;
}

.sf-rng-tick.sf-rng-tmaj .sf-rng-tnum {
    font-size: var(--fs-2xs);
    color: var(--theme-primary);
    font-weight: 700;
}

/* ── Company Access List ── */
.sf-company-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.sf-company-list::-webkit-scrollbar {
    width: 5px;
}

.sf-company-list::-webkit-scrollbar-track {
    background: transparent;
}

.sf-company-list::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: var(--radius-lg);
}

.sf-company-item {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 12px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all .2s ease;
    background: var(--bg-card);
    user-select: none;
    margin: 0;
}

.sf-company-item:hover {
    border-color: var(--sf-purple-l);
    background: rgba(var(--theme-primary-rgb), .04);
}

.sf-company-item.selected {
    border-color: var(--sf-purple);
    background: var(--bg-card-hover);
}

.sf-company-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s ease;
    background: var(--bg-card);
}

.sf-company-item input[type="checkbox"]:checked {
    background: var(--sf-purple);
    border-color: var(--sf-purple);
}

.sf-company-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sf-company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sf-company-name {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--sf-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-company-meta {
    font-size: var(--fs-xs);
    color: var(--sf-muted);
    font-weight: 500;
}

.sf-company-item.selected .sf-company-name {
    color: var(--sf-purple);
}

/* ── Shared Empty State Base ── */
.sf-company-empty,
.sf-perf-empty,
.sf-meet-empty,
.sp-company-empty,
.sp-activity-empty {
    text-align: center;
    color: var(--text-muted);
}

.sf-company-empty svg,
.sf-perf-empty svg,
.sf-meet-empty svg,
.sp-company-empty svg,
.sp-activity-empty svg {
    display: block;
    color: var(--border-light);
    margin-left: auto;
    margin-right: auto;
}

.sf-company-empty p,
.sf-meet-empty p,
.sp-company-empty p {
    font-size: var(--fs-13);
    margin: 0;
}

.sf-perf-empty p,
.sp-activity-empty p {
    font-size: var(--fs-base);
    margin: 0;
}

.sf-company-empty {
    padding: 40px 20px;
}

.sf-company-empty svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

/* ── Performance Modal ── */
.sf-perf-header,
.sf-meet-header {
    background: var(--bg-card);
    color: var(--theme-primary);
    padding: 20px 24px;
    border: 1px solid var(--border-light);
}

.sf-perf-header .modal-title,
.sf-meet-header .modal-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

/* btn-close: merged into shared block above */

.sf-perf-body,
.sf-meet-body {
    padding: 24px;
    background: var(--bg-card-hover);
}

.sf-perf-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
}

.sf-perf-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 18px 20px;
    box-shadow: none;
}

.sf-perf-card-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--sf-ink);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.sf-perf-card-title svg {
    color: var(--sf-purple);
    width: 15px;
    height: 15px;
}

.sf-perf-canvas {
    width: 100% !important;
    max-height: 320px;
}

.sf-perf-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--sf-muted);
}

.sf-perf-loading svg {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sf-perf-loading p {
    font-size: var(--fs-13);
    margin: 0;
}

.sf-perf-empty {
    padding: 60px 20px;
}

.sf-perf-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

/* ── Meeting Modal ── */
/* sf-meet-header: merged with sf-perf-header above */
/* sf-meet-body: merged with sf-perf-body above */

.sf-meet-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.sf-meet-tab {
    padding: 10px 20px;
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--sf-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s ease;
}

.sf-meet-tab:hover {
    color: #3b82f6;
}

.sf-meet-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.sf-meet-pane {
    display: none;
}

.sf-meet-pane.active {
    display: block;
}

.sf-meet-start {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 24px;
    text-align: center;
}

.sf-meet-start-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sf-meet-icon-bg, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: var(--fs-5xl);
    color: #3b82f6;
}

.sf-meet-start h4 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--sf-ink);
}

.sf-meet-start p {
    font-size: var(--fs-13);
    color: var(--sf-muted);
    margin-bottom: 20px;
}

.sf-meet-input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--fs-base);
    outline: none;
    transition: border-color .2s;
    background: var(--bg-input, #fff);
    color: var(--text-ink);
}

.sf-meet-input::placeholder {
    color: var(--text-light, #9ca3af);
}

.sf-meet-input:focus {
    border-color: #3b82f6;
    box-shadow: none;
}

.sf-meet-start-btn {
    background: var(--theme-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 32px;
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-md);
}

.sf-meet-start-btn:hover {
    background: var(--theme-primary-dark);
    box-shadow: none;
}

.sf-meet-start-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sf-meet-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
}

.sf-meet-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-xl);
    flex-wrap: wrap;
    transition: box-shadow .2s;
}

.sf-meet-card:hover {
    box-shadow: none;
}

.sf-meet-card-info h5 {
    font-size: var(--fs-base);
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--sf-ink);
}

.sf-meet-card-info p {
    font-size: var(--fs-sm);
    color: var(--sf-muted);
    margin: 0;
}

.sf-meet-card-actions {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.sf-meet-action {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .15s ease;
}

.sf-meet-action.join {
    background: var(--sf-meet-join-bg, #dcfce7);
    color: var(--sf-meet-join-color, #16a34a);
}

.sf-meet-action.join:hover {
    background: var(--sf-meet-join-hover, #bbf7d0);
}

.sf-meet-action.end {
    background: var(--sf-meet-end-bg, #fee2e2);
    color: var(--sf-meet-end-color, #dc2626);
}

.sf-meet-action.end:hover {
    background: var(--sf-meet-end-hover, #fecaca);
}

.sf-meet-action.copy {
    background: var(--bg-card-hover);
    color: var(--text-ink);
}

.sf-meet-action.copy:hover {
    background: var(--border-light);
}

.sf-meet-empty {
    padding: 40px 20px;
}

.sf-meet-empty svg {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
}

.sf-jitsi-wrap {
    margin-top: 20px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    background: #000;
}

.sf-jitsi-frame {
    width: 100%;
    height: 500px;
}

.sf-meet-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-13);
}

.sf-meet-history-table th {
    text-align: left;
    font-weight: 600;
    color: var(--sf-muted);
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-light);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sf-meet-history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--bg-card-hover);
    color: var(--sf-ink);
}

.sf-meet-history-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ── Dark mode: Meeting Modal ── */
[data-theme="dark"] {
    --sf-meet-icon-bg: rgba(59, 130, 246, .15);
    --sf-meet-join-bg: rgba(22, 163, 74, .15);
    --sf-meet-join-color: #6ee7b7;
    --sf-meet-join-hover: rgba(22, 163, 74, .25);
    --sf-meet-end-bg: rgba(220, 38, 38, .15);
    --sf-meet-end-color: #fca5a5;
    --sf-meet-end-hover: rgba(220, 38, 38, .25);
}

[data-theme="dark"] .modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── Responsive: Modals ── */
@media (max-width: 768px) {
    .sf-perm-grid {
        grid-template-columns: 1fr;
    }

    .sf-add-fields {
        grid-template-columns: 1fr;
    }

    .sf-add-col .sf-perm-grid {
        grid-template-columns: 1fr;
    }

    .sf-jitsi-frame {
        height: 300px;
    }

    .sf-meet-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-perf-charts {
        grid-template-columns: 1fr;
    }

    /* Modals */
    .sf-modal .modal-header {
        padding: 14px 16px;
    }

    .sf-modal .modal-title {
        font-size: var(--fs-base);
        gap: var(--gap-md);
    }

    .sf-modal .modal-body {
        padding: 14px 16px;
    }

    .sf-modal .modal-footer {
        padding: 12px 16px;
    }

    .sf-form-input {
        padding: 8px 12px;
        font-size: var(--fs-sm);
        border-radius: var(--radius-md);
    }

    .sf-form-label {
        font-size: var(--fs-xs);
    }

    .sf-btn-save {
        padding: 8px 18px;
        font-size: var(--fs-sm);
        border-radius: var(--radius-md);
    }

    .sf-btn-cancel {
        padding: 8px 14px;
        font-size: var(--fs-sm);
        border-radius: var(--radius-md);
    }

    /* Meeting modal */
    .sf-meet-header {
        padding: 14px 16px;
    }

    /* sf-meet-header .modal-title responsive: merged with sf-perf-header below */
    .sf-meet-body {
        padding: 14px 16px;
    }

    .sf-meet-tab {
        padding: 8px 12px;
        font-size: var(--fs-xs);
    }

    .sf-meet-start {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .sf-meet-start h4 {
        font-size: var(--fs-base);
    }

    .sf-meet-start p {
        font-size: var(--fs-xs);
    }

    .sf-meet-input {
        padding: 8px 12px;
        font-size: var(--fs-sm);
        border-radius: var(--radius-md);
    }

    .sf-meet-start-btn {
        padding: 10px 24px;
        font-size: var(--fs-sm);
        border-radius: var(--radius-md);
    }

    .sf-meet-card {
        padding: 12px 14px;
        border-radius: var(--radius-lg);
    }

    .sf-meet-card-info h5 {
        font-size: var(--fs-sm);
    }

    .sf-meet-card-info p {
        font-size: var(--fs-2xs);
    }

    .sf-meet-action {
        padding: 5px 10px;
        font-size: var(--fs-2xs);
        border-radius: 6px;
    }

    /* Performance modal */
    .sf-perf-header {
        padding: 14px 16px;
    }

    .sf-perf-header .modal-title,
    .sf-meet-header .modal-title {
        font-size: var(--fs-md);
    }

    .sf-perf-body {
        padding: 14px 16px;
    }

    .sf-perf-card {
        padding: 14px 16px;
        border-radius: var(--radius-lg);
    }

    .sf-perf-card-title {
        font-size: var(--fs-sm);
        margin-bottom: 10px;
    }

    /* Permissions modal */
    .sf-perm-tabs {
        border-radius: var(--radius-lg);
        padding: 3px;
    }

    .sf-perm-tab {
        padding: 8px 10px;
        font-size: var(--fs-xs);
        gap: 5px;
        border-radius: var(--radius-md);
    }

    .sf-perm-tab-badge {
        font-size: var(--fs-2xs);
        padding: 2px 5px;
    }

    .sf-perm-toolbar {
        padding: 8px 10px;
        border-radius: var(--radius-md);
    }

    .sf-perm-toolbar span {
        font-size: var(--fs-2xs);
    }

    .sf-perm-toolbar-btns button {
        font-size: var(--fs-2xs);
        padding: 4px 10px;
        border-radius: 6px;
    }

    .sf-perm-search input {
        padding: 7px 10px 7px 30px;
        font-size: var(--fs-xs);
        border-radius: var(--radius-md);
    }

    .sf-perm-search svg {
        left: 10px;
        width: 11px;
        height: 11px;
    }

    .sf-perm-card-head {
        padding: 8px 10px;
    }

    .sf-perm-module {
        font-size: var(--fs-2xs);
        gap: 5px;
    }

    .sf-perm-count {
        font-size: var(--fs-2xs);
        padding: 1px 6px;
    }

    .sf-perm-body {
        padding: 8px 10px 10px;
    }

    .sf-perm-toggle {
        padding: 3px 6px;
        gap: var(--gap-sm);
    }

    .sf-perm-toggle label {
        font-size: var(--fs-2xs);
    }

    .sf-perm-toggle input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .sf-perm-toggles {
        gap: var(--gap-xs);
    }

    /* Range slider */
    .sf-rng {
        padding: 10px 12px 6px;
        border-radius: var(--radius-lg);
    }

    .sf-rng-info {
        padding: 3px 8px;
        border-radius: 6px;
    }

    .sf-rng-info .sf-rng-num {
        font-size: var(--fs-13);
    }

    .sf-rng-info .sf-rng-word {
        font-size: var(--fs-2xs);
    }

    /* Company access */
    .sf-company-item {
        padding: 10px 12px;
        gap: var(--gap-md);
        border-radius: var(--radius-lg);
    }

    .sf-company-name {
        font-size: var(--fs-xs);
    }

    .sf-company-meta {
        font-size: var(--fs-2xs);
    }

    .sf-company-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    /* Add staff fields */
    .sf-add-cols {
        gap: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sf-perm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .sf-add-cols {
        grid-template-columns: 1fr;
    }

    .sf-add-col .sf-perm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── 370px breakpoint ── */
@media (max-width: 370px) {

    /* Modals */
    .sf-modal .modal-header {
        padding: 10px 12px;
    }

    .sf-modal .modal-title {
        font-size: var(--fs-13);
        gap: var(--gap-sm);
    }

    .sf-modal .modal-body {
        padding: 10px 12px;
    }

    .sf-modal .modal-footer {
        padding: 10px 12px;
    }

    .sf-form-input {
        padding: 7px 10px;
        font-size: var(--fs-xs);
    }

    .sf-form-label {
        font-size: var(--fs-2xs);
    }

    .sf-btn-save {
        padding: 7px 14px;
        font-size: var(--fs-xs);
    }

    .sf-btn-cancel {
        padding: 7px 12px;
        font-size: var(--fs-xs);
    }

    /* Meeting modal */
    .sf-meet-header {
        padding: 10px 12px;
    }

    .sf-meet-body {
        padding: 10px 12px;
    }

    .sf-meet-tab {
        padding: 6px 8px;
        font-size: var(--fs-2xs);
    }

    .sf-meet-start {
        padding: 12px;
    }

    .sf-meet-start-icon {
        width: 48px;
        height: 48px;
        font-size: var(--fs-3xl);
    }

    .sf-meet-start h4 {
        font-size: var(--fs-sm);
    }

    .sf-meet-start p {
        font-size: var(--fs-2xs);
    }

    .sf-meet-start-btn {
        padding: 8px 18px;
        font-size: var(--fs-xs);
    }

    /* Permissions */
    .sf-perm-tab {
        padding: 6px 6px;
        font-size: var(--fs-2xs);
        gap: 3px;
    }

    .sf-perm-toolbar {
        padding: 6px 8px;
    }

    .sf-perm-toolbar span {
        font-size: var(--fs-2xs);
    }

    .sf-perm-toolbar-btns button {
        font-size: var(--fs-2xs);
        padding: 3px 8px;
    }

    .sf-perm-card-head {
        padding: 6px 8px;
    }

    .sf-perm-module {
        font-size: var(--fs-2xs);
    }

    .sf-perm-body {
        padding: 6px 8px 8px;
    }

    .sf-perm-toggle label {
        font-size: var(--fs-2xs);
    }

    .sf-perm-toggles {
        grid-template-columns: 1fr;
    }

    /* Company access */
    .sf-company-item {
        padding: 8px 10px;
        gap: var(--gap-sm);
    }

    .sf-company-name {
        font-size: var(--fs-2xs);
    }

    .sf-company-meta {
        font-size: var(--fs-2xs);
    }
}


.cr-org-card {
    border: 1px solid rgba(var(--theme-primary-rgb), .2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cr-org-card .card-header {
    background: var(--bg-card);
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 20px;
    font-weight: 600;
    font-size: var(--fs-lg);
}

.cr-org-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--gap-xl);
    padding: 24px 20px;
}

.cr-org-btn {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 14px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    cursor: pointer;
    transition: all .15s;
    color: var(--text-ink);
    font-weight: 500;
    font-size: var(--fs-md);
}

.cr-org-btn:hover {
    border-color: var(--theme-primary);
    background: var(--bg-card-hover);
    color: var(--text-ink);
    transform: translateY(-1px);
}

.cr-org-btn .cr-org-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--fs-lg);
    border: 1.5px solid currentColor;
}

.cr-org-btn .cr-org-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cr-org-btn .cr-org-name {
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--text-ink);
}

.cr-org-btn .cr-org-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cr-org-btn .cr-org-price {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--theme-primary);
}

.cr-org-btn .cr-org-limits {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.cr-resource-card {
    border: 1px solid rgba(var(--theme-primary-rgb), .2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cr-resource-card .card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 20px;
    font-weight: 600;
    font-size: var(--fs-lg);
}

.cr-notice-item {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-lg);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: var(--fs-base);
}

.cr-notice-item:last-child {
    margin-bottom: 0;
}

.cr-notice-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--fs-base);
}

/* Quick Tools */
.cr-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--gap-xl);
    padding: 20px;
}

.cr-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-md);
    padding: 18px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    cursor: pointer;
    transition: all .15s;
    color: var(--text-ink);
    font-weight: 600;
    font-size: var(--fs-base);
    text-align: center;
}

.cr-tool-btn:hover {
    transform: translateY(-2px);
}

.cr-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    border: 1.5px solid currentColor;
    background: transparent;
}

.cr-tool-btn:hover .cr-tool-icon {
    transform: scale(1.05);
}

.cr-tool-desc {
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.3;
}

@media (max-width: 576px) {
    .cr-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Registration Guide ── */
.cr-guide {
    border: 1.5px solid rgba(var(--theme-primary-rgb), .15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
}

.cr-guide-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), .06), rgba(var(--theme-primary-rgb), .02));
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.cr-guide-header-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
}

.cr-guide-header h6 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin: 0;
    color: var(--text-ink);
}

.cr-guide-header small {
    font-size: var(--fs-13);
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Status badge */
.cr-guide-status {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.cr-guide-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cr-guide-status-dot.pending {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .2);
}

.cr-guide-status-dot.info {
    background: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .2);
}

.cr-guide-status-label {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--text-muted);
}

.cr-guide-status-value {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text-ink);
}

/* Warning banner */
.cr-guide-warn {
    display: flex;
    gap: var(--gap-lg);
    padding: 12px 20px;
    margin: 0;
    background: rgba(245, 158, 11, .06);
    border-bottom: 1px solid rgba(245, 158, 11, .1);
    font-size: var(--fs-13);
    color: #92400e;
    line-height: 1.5;
}

.cr-guide-warn svg,
.cr-guide-warn [data-lucide] {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Steps */
.cr-guide-steps {
    padding: 18px 20px 20px;
}

.cr-guide-steps-title {
    font-size: var(--fs-13);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.cr-guide-step {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 16px;
}

.cr-guide-step:last-child {
    padding-bottom: 0;
}

.cr-guide-step::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: rgba(var(--theme-primary-rgb), .1);
}

.cr-guide-step:last-child::before {
    display: none;
}

.cr-guide-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(var(--theme-primary-rgb), .08);
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cr-guide-step-body {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
}

.cr-guide-step-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text-ink);
    margin-bottom: 2px;
}

.cr-guide-step-desc {
    font-size: var(--fs-13);
    color: var(--text-muted);
    line-height: 1.55;
}

.cr-guide-step-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-xs);
    margin-top: 4px;
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--theme-primary);
}

.cr-guide-step-link:hover {
    text-decoration: underline;
}

.cr-guide-step-link svg,
.cr-guide-step-link [data-lucide] {
    width: 10px;
    height: 10px;
}

/* Info tip at bottom */
.cr-guide-tip {
    display: flex;
    gap: var(--gap-lg);
    padding: 14px 20px;
    background: rgba(var(--theme-primary-rgb), .03);
    border-top: 1px solid rgba(var(--theme-primary-rgb), .08);
    font-size: var(--fs-13);
    color: var(--text-muted);
    line-height: 1.5;
}

.cr-guide-tip svg,
.cr-guide-tip [data-lucide] {
    color: var(--theme-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.cr-guide-tip strong {
    color: var(--text-ink);
}

/* ── Staff Profile (moved from staff/show.blade.php) ── */
/* =============================================
   STAFF PROFILE — PREMIUM DESIGN SYSTEM
   ============================================= */


/* ── Profile Header ── */
/* ── Tabs Navigation ── */
.sp-tabs-card {
    background: var(--sp-card);
    border-radius: var(--sp-radius);
    box-shadow: none;
    border: 1px solid var(--sp-border);
    overflow: hidden;
}

.sp-tabs-nav {
    display: flex;
    background: var(--bg-card-hover);
    border-bottom: 2px solid var(--border-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-tabs-nav::-webkit-scrollbar {
    height: 0;
}

.sp-tab-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: var(--sp-muted);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    white-space: nowrap;
}

.sp-tab-btn:hover {
    color: var(--sp-purple);
    background: rgba(128, 128, 128, .08);
}

.sp-tab-btn.active {
    color: var(--sp-purple);
    background: var(--bg-card);
}

.sp-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sp-purple);
    border-radius: 3px 3px 0 0;
}

.sp-tab-btn svg {
    width: 14px;
    height: 14px;
}

.sp-tab-btn.danger-tab {
    color: var(--sp-muted);
}

.sp-tab-btn.danger-tab:hover {
    color: var(--sp-red);
    background: rgba(239, 68, 68, .04);
}

.sp-tab-btn.danger-tab.active {
    color: var(--sp-red);
}

.sp-tab-btn.danger-tab.active::after {
    background: var(--sp-red);
}

.sp-tab-badge {
    font-size: var(--fs-2xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    background: var(--border-light);
    color: var(--sp-muted);
    min-width: 22px;
    text-align: center;
    transition: all .2s;
}

.sp-tab-btn.active .sp-tab-badge {
    background: var(--sp-purple);
    color: #fff;
}

.sp-tab-btn.danger-tab.active .sp-tab-badge {
    background: var(--sp-red);
    color: #fff;
}

/* ── Tab Panes ── */
.sp-tab-pane {
    display: none;
    padding: 28px;
}

.sp-tab-pane.active {
    display: block;
}

/* ── Form Styles ── */

/* ── Buttons ── */
.sp-btn {
    border: none;
    border-radius: var(--radius-lg);
    padding: 10px 22px;
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-md);
    transition: all .2s ease;
}

.sp-btn-primary {
    background: var(--theme-primary);
    color: #fff;
    box-shadow: none;
}

.sp-btn-primary:hover {
    background: var(--theme-primary-dark);
    transform: translateY(-1px);
    box-shadow: none;
}


/* ── Permissions Grid ── */
.sp-perm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--sp-purple-bg);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    gap: var(--gap-md);
}

.sp-perm-toolbar span {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-ink);
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.sp-perm-toolbar-btns {
    display: flex;
    gap: var(--gap-sm);
}

.sp-perm-toolbar-btns button {
    font-size: var(--fs-xs);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 6px 14px;
    cursor: pointer;
    transition: all .15s;
}

.sp-perm-toolbar-btns .sp-sel-all {
    background: var(--sp-purple);
    color: #fff;
}

.sp-perm-toolbar-btns .sp-sel-all:hover {
    background: var(--theme-primary);
}

.sp-perm-toolbar-btns .sp-desel-all {
    background: var(--bg-card);
    color: var(--sp-purple);
    border: 1.5px solid var(--sp-purple-l);
}

.sp-perm-toolbar-btns .sp-desel-all:hover {
    background: rgba(var(--theme-primary-rgb), .04);
}

/* ── Range Selector ── */
.sp-rng {
    margin-bottom: 12px;
    background: rgba(var(--theme-primary-rgb), .04);
    border: 1.5px solid var(--sp-purple-l);
    border-radius: var(--radius-xl);
    padding: 12px 16px 8px;
}

.sp-rng-row1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap-md);
    margin-bottom: 10px;
}

.sp-rng-row1 .sp-perm-toolbar-btns {
    margin-left: auto;
}

.sp-rng-info {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    background: var(--bg-card);
    border: 1.5px solid var(--sp-purple-l);
    border-radius: var(--radius-md);
    padding: 4px 12px;
}

.sp-rng-info .sp-rng-num {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--sp-purple);
    line-height: 1;
}

.sp-rng-info .sp-rng-word {
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sp-rng-slider {
    position: relative;
    height: 28px;
    margin: 0 4px;
    cursor: pointer;
}

.sp-rng-slider .sp-rng-rail {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--sp-rail-bg, #e9e5f5);
    border-radius: 4px;
}

.sp-rng-slider .sp-rng-fill {
    position: absolute;
    top: 10px;
    height: 8px;
    background: linear-gradient(90deg, #adb5bd, var(--sp-purple));
    border-radius: 4px;
    transition: left .05s, width .05s;
}

.sp-rng-slider input[type="range"] {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 2;
}

.sp-rng-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sp-purple);
    border: 3px solid #fff;
    box-shadow: none;
    cursor: pointer;
    pointer-events: all;
    transition: box-shadow .15s, transform .1s;
}

.sp-rng-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: none;
    transform: scale(1.15);
}

.sp-rng-slider input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.25);
    box-shadow: none;
}

.sp-rng-slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sp-purple);
    border: 3px solid #fff;
    box-shadow: none;
    cursor: pointer;
    pointer-events: all;
}

.sp-rng-timeline {
    position: relative;
    height: 22px;
    margin: 0 4px;
}

.sp-rng-timeline .sp-rng-tline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.sp-rng-tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-rng-tick .sp-rng-tdot {
    width: 1px;
    height: 6px;
    background: var(--border-light);
}

.sp-rng-tick.sp-rng-tmaj .sp-rng-tdot {
    height: 10px;
    background: var(--text-muted);
}

.sp-rng-tick .sp-rng-tnum {
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
}

.sp-rng-tick.sp-rng-tmaj .sp-rng-tnum {
    font-size: var(--fs-2xs);
    color: var(--theme-primary);
    font-weight: 700;
}

.sp-perm-search {
    position: relative;
    margin-bottom: 14px;
}

.sp-perm-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sp-muted);
    pointer-events: none;
}

.sp-perm-search input {
    width: 100%;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 9px 14px 9px 36px;
    font-size: var(--fs-13);
    background: var(--bg-card-hover);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.sp-perm-search input:focus {
    border-color: var(--sp-purple-l);
    box-shadow: none;
    background: var(--bg-card);
}

.sp-perm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.sp-perm-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 0;
    transition: all .2s;
    overflow: hidden;
}

.sp-perm-card:hover {
    border-color: var(--sp-purple-l);
    box-shadow: none;
}

.sp-perm-card.has-perms {
    border-color: var(--sp-purple-l);
    background: rgba(var(--theme-primary-rgb), .04);
}

.sp-perm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--bg-card-hover);
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}

.sp-perm-card.has-perms .sp-perm-card-head {
    background: var(--bg-card-hover);
    border-bottom-color: var(--border-light);
}

.sp-perm-card-head:hover {
    background: var(--bg-card-hover);
}

.sp-perm-card.has-perms .sp-perm-card-head:hover {
    background: rgba(var(--theme-primary-rgb), .12);
}

.sp-perm-module {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--sp-ink);
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.sp-perm-module svg {
    color: var(--sp-purple);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sp-perm-count {
    font-size: var(--fs-2xs);
    font-weight: 700;
    color: var(--sp-muted);
    background: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
    transition: all .2s;
}

.sp-perm-card.has-perms .sp-perm-count {
    background: var(--sp-purple);
    color: #fff;
}

.sp-perm-body {
    padding: 10px 12px 12px;
}

.sp-perm-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}

.sp-perm-toggle {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 5px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}

.sp-perm-toggle:hover {
    background: var(--bg-card-hover);
}

.sp-perm-toggle input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s;
    background: var(--bg-card);
}

.sp-perm-toggle input[type="checkbox"]:checked {
    background: var(--sp-purple);
    border-color: var(--sp-purple);
}

.sp-perm-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sp-perm-toggle label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    margin: 0;
    line-height: 1;
}

.sp-perm-toggle input:checked+label {
    color: var(--sp-purple);
    font-weight: 700;
}

/* ── Company Access List ── */
.sp-company-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.sp-company-item {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 12px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all .2s;
    background: var(--bg-card);
    user-select: none;
    margin: 0;
}

.sp-company-item:hover {
    border-color: var(--sp-purple-l);
    background: rgba(var(--theme-primary-rgb), .04);
}

.sp-company-item.selected {
    border-color: var(--sp-purple);
    background: var(--bg-card-hover);
}

.sp-company-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all .15s;
    background: var(--bg-card);
}

.sp-company-item input[type="checkbox"]:checked {
    background: var(--sp-purple);
    border-color: var(--sp-purple);
}

.sp-company-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sp-company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sp-company-name {
    font-size: var(--fs-13);
    font-weight: 600;
    color: var(--sp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-company-meta {
    font-size: var(--fs-xs);
    color: var(--sp-muted);
    font-weight: 500;
}

.sp-company-item.selected .sp-company-name {
    color: var(--sp-purple);
}

.sp-company-empty {
    padding: 40px 20px;
}

.sp-company-empty svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

/* ── Activity Log ── */
.sp-activity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.sp-stat-card {
    background: var(--bg-card-hover);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 18px 20px;
    text-align: center;
}

.sp-stat-value {
    font-size: var(--fs-5xl);
    font-weight: 800;
    color: var(--sp-purple);
    line-height: 1;
}

.sp-stat-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--sp-muted);
    margin-top: 6px;
}

/* Activity styles removed — now uses Bootstrap table */

.sp-activity-empty {
    padding: 50px 20px;
}

.sp-activity-empty svg {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
}

.sp-activity-empty .sp-hint {
    font-size: var(--fs-sm);
    margin-top: 4px;
    color: var(--text-light);
}

/* ── Company Stats Bar ── */
.sp-comp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    margin-bottom: 18px;
}

.sp-comp-stat {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    padding: 14px 18px;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border-light);
    background: var(--bg-card-hover);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.sp-comp-stat:hover {
    border-color: var(--sp-purple-l);
    background: rgba(var(--theme-primary-rgb), .04);
    transform: translateY(-1px);
    box-shadow: none;
}

.sp-comp-stat.active {
    border-color: var(--sp-purple);
    background: var(--bg-card-hover);
    box-shadow: none;
}

.sp-comp-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    flex-shrink: 0;
    background: var(--bg-card-hover);
    color: var(--sp-muted);
    transition: all .2s;
}

.sp-comp-stat.active .sp-comp-stat-icon {
    background: var(--sp-purple);
    color: #fff;
}

.sp-comp-stat-val {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--sp-ink);
    line-height: 1;
}

.sp-comp-stat-lbl {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--sp-muted);
    margin-top: 2px;
}

.sp-comp-stat.active .sp-comp-stat-lbl {
    color: var(--sp-purple);
}

/* ── Danger Zone ── */

/* ── Toast ── */
.sp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius-xl);
    font-size: var(--fs-base);
    font-weight: 600;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateX(30px);
    transition: all .3s ease;
    box-shadow: none;
}

.sp-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.sp-toast.success {
    background: var(--sp-green);
}

.sp-toast.error {
    background: var(--sp-red);
}

/* ── Tab Footer ── */
.sp-tab-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 28px;
    border-top: 1px solid var(--sp-border);
    background: var(--bg-card-hover);
}

/* ── Floating Save Button ── */
.sp-floating-save {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(.9);
    pointer-events: none;
    transition: all .25s ease;
}

.sp-floating-save.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sp-floating-save button {
    border: none;
    border-radius: var(--radius-2xl);
    padding: 14px 28px;
    font-size: var(--fs-base);
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: var(--theme-primary);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    transition: all .2s ease;
}

.sp-floating-save button:hover {
    background: var(--theme-primary-dark);
    transform: translateY(-2px);
    box-shadow: none;
}

.sp-floating-save button:active {
    transform: translateY(0);
}

/* ── Activity Badges ── */
.sp-badge-created {
    background: #dcfce7;
    color: #166534;
}

.sp-badge-updated {
    background: #dbeafe;
    color: #1e40af;
}

.sp-badge-deleted {
    background: #fee2e2;
    color: #991b1b;
}

.sp-badge-login {
    background: #e0f2fe;
    color: #075985;
}

.sp-badge-default {
    background: #f3f4f6;
    color: #374151;
}

[data-theme="dark"] .sp-badge-created {
    background: rgba(16, 185, 129, .15);
    color: #6ee7b7;
}

[data-theme="dark"] .sp-badge-updated {
    background: rgba(59, 130, 246, .15);
    color: #93c5fd;
}

[data-theme="dark"] .sp-badge-deleted {
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
}

[data-theme="dark"] .sp-badge-login {
    background: rgba(14, 165, 233, .15);
    color: #7dd3fc;
}

[data-theme="dark"] .sp-badge-default {
    background: rgba(128, 128, 128, .15);
    color: #d1d5db;
}

/* ── Dark mode: Staff Profile overrides ── */

[data-theme="dark"] .sp-perm-search input {
    color: var(--text-ink);
}

[data-theme="dark"] .sp-perm-search input::placeholder {
    color: var(--text-light);
}


[data-theme="dark"] .sp-rng-slider input[type="range"]::-webkit-slider-thumb {
    border-color: var(--bg-card);
}

[data-theme="dark"] .sp-rng-slider input[type="range"]::-moz-range-thumb {
    border-color: var(--bg-card);
}

/* ── Responsive ── */
@media (max-width: 768px) {

    .sp-perm-grid {
        grid-template-columns: 1fr;
    }



    .sp-tabs-nav {
        gap: 0;
    }

    .sp-tab-btn {
        font-size: var(--fs-sm);
        padding: 14px 12px;
        gap: 5px;
    }

    .sp-tab-btn span.sp-tab-label {
        display: none;
    }

    .sp-activity-stats {
        grid-template-columns: 1fr;
    }

    .sp-comp-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sp-perm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}