.dashboard-analytics {
    --analytics-bg: #f4f7fc;
    --analytics-bg-soft: #eef3fb;
    --analytics-surface: rgba(255, 255, 255, 0.9);
    --analytics-surface-solid: #ffffff;
    --analytics-surface-alt: #f8faff;
    --analytics-border: #dce3ef;
    --analytics-border-strong: #cfd8e6;
    --analytics-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --analytics-shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
    --analytics-shadow-lg: 0 18px 48px rgba(30, 41, 59, 0.12);
    --analytics-text: #111827;
    --analytics-text-strong: #0f172a;
    --analytics-text-muted: #667085;
    --analytics-text-faint: #94a3b8;
    --analytics-accent: #2563eb;
    --analytics-accent-2: #06b6d4;
    --analytics-accent-soft: rgba(37, 99, 235, 0.1);
    --analytics-chip-bg: #ecf3ff;
    --analytics-chip-border: #d7e6ff;
    --analytics-chip-text: #33547d;
    --analytics-success-bg: #e8f7ee;
    --analytics-success-border: #cbead8;
    --analytics-success-text: #177245;
    --analytics-warning-bg: #fff4d8;
    --analytics-warning-border: #ffe2a6;
    --analytics-warning-text: #b36800;
    --analytics-danger-bg: #ffe7ea;
    --analytics-danger-border: #ffc8d0;
    --analytics-danger-text: #cf304a;
    --analytics-info-bg: #e8f0fe;
    --analytics-info-border: #d2e3fc;
    --analytics-info-text: #1a73e8;
    --analytics-chart-text-muted: #64748b;
    --analytics-chart-text-strong: #475569;
    --analytics-chart-grid: rgba(148, 163, 184, 0.22);
    --analytics-chart-grid-soft: rgba(148, 163, 184, 0.18);
    --analytics-tooltip-bg: rgba(15, 23, 42, 0.94);
    --analytics-tooltip-title: #e2e8f0;
    --analytics-tooltip-body: #f8fafc;
    --analytics-tooltip-border: rgba(148, 163, 184, 0.25);
    --analytics-chart-segment-border: #ffffff;
    --analytics-chart-fallback-slice: #cbd5e1;
    background: #ffffff;
    min-height: 100%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-analytics[data-analytics-theme="dark"] {
    --analytics-bg: #0f1726;
    --analytics-bg-soft: #141f32;
    --analytics-surface: rgba(19, 28, 43, 0.92);
    --analytics-surface-solid: #162236;
    --analytics-surface-alt: #1a2940;
    --analytics-border: rgba(148, 163, 184, 0.18);
    --analytics-border-strong: rgba(148, 163, 184, 0.28);
    --analytics-shadow-sm: 0 10px 22px rgba(2, 6, 23, 0.22);
    --analytics-shadow-md: 0 16px 34px rgba(2, 6, 23, 0.28);
    --analytics-shadow-lg: 0 24px 52px rgba(2, 6, 23, 0.34);
    --analytics-text: #e8eef9;
    --analytics-text-strong: #f7fbff;
    --analytics-text-muted: #b3c0d6;
    --analytics-text-faint: #8b9ab4;
    --analytics-accent: #6aa9ff;
    --analytics-accent-2: #3dd5c5;
    --analytics-accent-soft: rgba(106, 169, 255, 0.16);
    --analytics-chip-bg: rgba(148, 163, 184, 0.09);
    --analytics-chip-border: rgba(148, 163, 184, 0.2);
    --analytics-chip-text: #d7e4f6;
    --analytics-success-bg: rgba(34, 197, 94, 0.12);
    --analytics-success-border: rgba(34, 197, 94, 0.22);
    --analytics-success-text: #a6efc3;
    --analytics-warning-bg: rgba(245, 158, 11, 0.12);
    --analytics-warning-border: rgba(245, 158, 11, 0.22);
    --analytics-warning-text: #ffd99d;
    --analytics-danger-bg: rgba(244, 63, 94, 0.12);
    --analytics-danger-border: rgba(244, 63, 94, 0.22);
    --analytics-danger-text: #ffc0cc;
    --analytics-info-bg: rgba(106, 169, 255, 0.11);
    --analytics-info-border: rgba(106, 169, 255, 0.2);
    --analytics-info-text: #d4e7ff;
    --analytics-chart-text-muted: #c0cadb;
    --analytics-chart-text-strong: #e3ebf8;
    --analytics-chart-grid: rgba(148, 163, 184, 0.14);
    --analytics-chart-grid-soft: rgba(148, 163, 184, 0.1);
    --analytics-tooltip-bg: rgba(10, 15, 27, 0.94);
    --analytics-tooltip-title: #f8fbff;
    --analytics-tooltip-body: #e6edf8;
    --analytics-tooltip-border: rgba(148, 163, 184, 0.18);
    --analytics-chart-segment-border: #111b2c;
    --analytics-chart-fallback-slice: #607089;
    background:
        radial-gradient(circle at 12% 2%, rgba(106, 169, 255, 0.08), transparent 45%),
        radial-gradient(circle at 92% 7%, rgba(61, 213, 197, 0.06), transparent 34%),
        linear-gradient(180deg, #0f1726 0%, #111c2d 42%, #121f31 100%);
}

@media (prefers-color-scheme: dark) {
    .dashboard-analytics[data-analytics-theme="dark"] {
        --analytics-bg: #0f1726;
        --analytics-bg-soft: #141f32;
        --analytics-surface: rgba(19, 28, 43, 0.92);
        --analytics-surface-solid: #162236;
        --analytics-surface-alt: #1a2940;
        --analytics-border: rgba(148, 163, 184, 0.18);
        --analytics-border-strong: rgba(148, 163, 184, 0.28);
        --analytics-shadow-sm: 0 10px 22px rgba(2, 6, 23, 0.22);
        --analytics-shadow-md: 0 16px 34px rgba(2, 6, 23, 0.28);
        --analytics-shadow-lg: 0 24px 52px rgba(2, 6, 23, 0.34);
        --analytics-text: #e8eef9;
        --analytics-text-strong: #f7fbff;
        --analytics-text-muted: #b3c0d6;
        --analytics-text-faint: #8b9ab4;
        --analytics-accent: #6aa9ff;
        --analytics-accent-2: #3dd5c5;
        --analytics-accent-soft: rgba(106, 169, 255, 0.16);
        --analytics-chip-bg: rgba(148, 163, 184, 0.09);
        --analytics-chip-border: rgba(148, 163, 184, 0.2);
        --analytics-chip-text: #d7e4f6;
        --analytics-success-bg: rgba(34, 197, 94, 0.12);
        --analytics-success-border: rgba(34, 197, 94, 0.22);
        --analytics-success-text: #a6efc3;
        --analytics-warning-bg: rgba(245, 158, 11, 0.12);
        --analytics-warning-border: rgba(245, 158, 11, 0.22);
        --analytics-warning-text: #ffd99d;
        --analytics-danger-bg: rgba(244, 63, 94, 0.12);
        --analytics-danger-border: rgba(244, 63, 94, 0.22);
        --analytics-danger-text: #ffc0cc;
        --analytics-info-bg: rgba(106, 169, 255, 0.11);
        --analytics-info-border: rgba(106, 169, 255, 0.2);
        --analytics-info-text: #d4e7ff;
        --analytics-chart-text-muted: #c0cadb;
        --analytics-chart-text-strong: #e3ebf8;
        --analytics-chart-grid: rgba(148, 163, 184, 0.14);
        --analytics-chart-grid-soft: rgba(148, 163, 184, 0.1);
        --analytics-tooltip-bg: rgba(10, 15, 27, 0.94);
        --analytics-tooltip-title: #f8fbff;
        --analytics-tooltip-body: #e6edf8;
        --analytics-tooltip-border: rgba(148, 163, 184, 0.18);
        --analytics-chart-segment-border: #111b2c;
        --analytics-chart-fallback-slice: #607089;
        background:
            radial-gradient(circle at 12% 2%, rgba(106, 169, 255, 0.08), transparent 45%),
            radial-gradient(circle at 92% 7%, rgba(61, 213, 197, 0.06), transparent 34%),
            linear-gradient(180deg, #0f1726 0%, #111c2d 42%, #121f31 100%);
    }
}

.dashboard-analytics .content {
    background: transparent;
}

.dashboard-analytics .container-fluid {
    padding-bottom: 1.2rem;
}

.dashboard-analytics .page-title {
    color: var(--analytics-text-strong);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.analytics-hero {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--analytics-border);
    border-radius: 18px;
    color: var(--analytics-text);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--analytics-shadow-sm);
    overflow: hidden;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-hero {
    background:
        linear-gradient(180deg, rgba(22, 34, 54, 0.96) 0%, rgba(19, 31, 49, 0.94) 100%),
        radial-gradient(circle at right top, rgba(106, 169, 255, 0.08), transparent 56%);
}

@media (prefers-color-scheme: dark) {
    .dashboard-analytics[data-analytics-theme="dark"] .analytics-hero {
        background:
            linear-gradient(180deg, rgba(22, 34, 54, 0.96) 0%, rgba(19, 31, 49, 0.94) 100%),
            radial-gradient(circle at right top, rgba(106, 169, 255, 0.08), transparent 56%);
    }
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-card {
    background: linear-gradient(180deg, rgba(18, 28, 44, 0.96) 0%, rgba(15, 24, 38, 0.96) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (prefers-color-scheme: dark) {
    .dashboard-analytics[data-analytics-theme="dark"] .analytics-card {
        background: linear-gradient(180deg, rgba(18, 28, 44, 0.96) 0%, rgba(15, 24, 38, 0.96) 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.analytics-card {
    border: 1px solid var(--analytics-border);
    border-radius: 16px;
    background: var(--analytics-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--analytics-shadow-sm);
    height: 100%;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.analytics-card:hover {
    border-color: var(--analytics-border-strong);
    box-shadow: var(--analytics-shadow-md);
}

.analytics-chart-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.analytics-chart-card.analytics-chart-card--with-filter {
    overflow: visible;
}

.analytics-chart-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--analytics-accent), var(--analytics-accent-2), #8b5cf6);
    pointer-events: none;
    z-index: 0;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-card::before {
    background: linear-gradient(90deg, rgba(106, 169, 255, 0.78), rgba(61, 213, 197, 0.65), rgba(139, 92, 246, 0.62));
}

@media (prefers-color-scheme: dark) {
    .dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-card::before {
        background: linear-gradient(90deg, rgba(106, 169, 255, 0.78), rgba(61, 213, 197, 0.65), rgba(139, 92, 246, 0.62));
    }
}

.analytics-chart-card::after {
    display: none;
}

.analytics-firebase-hero {
    padding: 1rem 1.15rem;
}

.bulk-release-page .bulk-release-hero-card,
.bulk-release-page .bulk-release-workspace-card,
.bulk-release-page .bulk-release-guide-card {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.bulk-release-page .bulk-release-hero-card {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.bulk-release-page .bulk-release-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
}

.bulk-release-page .bulk-release-hero-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
}

.bulk-release-page .bulk-release-hero-subtitle {
    margin: 0;
    max-width: 760px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.bulk-release-page .bulk-release-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bulk-release-page .bulk-release-hero-link,
.bulk-release-page .bulk-release-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bulk-release-page .bulk-release-hero-link {
    color: #0f766e;
    background: rgba(236, 253, 245, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bulk-release-page .bulk-release-hero-btn {
    color: #1e3a8a;
    background: rgba(239, 246, 255, 0.96);
    border: 1px solid rgba(59, 130, 246, 0.16);
}

.bulk-release-page .bulk-release-hero-link:hover,
.bulk-release-page .bulk-release-hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.bulk-release-page .bulk-release-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 22px 20px;
}

.bulk-release-page .bulk-release-stat {
    border-radius: 16px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.bulk-release-page .bulk-release-stat-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.bulk-release-page .bulk-release-stat-value {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.bulk-release-page .bulk-release-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.bulk-release-page .bulk-release-section-grid > section,
.bulk-release-page .bulk-release-section-grid > form {
    min-width: 0;
}

.bulk-release-page .bulk-release-section-grid > form .bulk-release-step-card {
    height: 100%;
}

.bulk-release-page .bulk-release-step-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.bulk-release-page .bulk-release-step-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bulk-release-page .bulk-release-step-title {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.bulk-release-page .bulk-release-step-copy {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.bulk-release-page .bulk-release-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

.bulk-release-page .bulk-release-dropzone.dropzone {
    min-height: 156px;
    border-radius: 18px;
    border: 2px dashed rgba(59, 130, 246, 0.28);
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(248, 250, 252, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bulk-release-page .bulk-release-dropzone.dropzone:hover,
.bulk-release-page .bulk-release-dropzone.dropzone.dz-drag-hover {
    border-color: rgba(14, 116, 144, 0.48);
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.92), rgba(240, 249, 255, 0.98));
    transform: translateY(-1px);
}

.bulk-release-page .bulk-release-dropzone.dropzone .dz-message {
    margin: 0;
    text-align: center;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.bulk-release-page .bulk-release-dropzone.dropzone .dz-message span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.bulk-release-page .bulk-release-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bulk-release-page .bulk-release-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.bulk-release-page .bulk-release-progress {
    margin-top: 12px;
    height: 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.7);
    overflow: hidden;
}

.bulk-release-page .bulk-release-progress .progress-bar {
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(90deg, #0284c7, #0f766e);
}

.bulk-release-page .bulk-release-status {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    min-height: 18px;
}

.bulk-release-page .bulk-release-status.invalid-feedback {
    display: block;
}

.bulk-release-page .bulk-release-metadata-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.bulk-release-page .bulk-release-metadata-field .form-control {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 12px 14px;
    font-size: 14px;
}

.bulk-release-page .bulk-release-help {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.bulk-release-page .bulk-release-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 145px;
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #0f9f8d);
    border: none;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.2);
    font-size: 14px;
    font-weight: 700;
}

.bulk-release-page .bulk-release-workspace-card .card-body {
    padding: 18px;
}

.bulk-release-page .bulk-release-submit:hover,
.bulk-release-page .bulk-release-submit:focus {
    background: linear-gradient(135deg, #0d6b64, #0d9488);
}

.bulk-release-page .bulk-release-submit:disabled {
    opacity: 0.55;
    box-shadow: none;
    cursor: not-allowed;
}

.bulk-release-page .bulk-release-guide-card .card-body {
    padding: 24px;
}

.bulk-release-page .bulk-release-guide-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.bulk-release-page .bulk-release-guide-copy {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.bulk-release-page .bulk-release-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.bulk-release-page .bulk-release-guide-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.bulk-release-page .bulk-release-guide-list i {
    color: #0f766e;
    font-size: 18px;
    margin-top: 2px;
}

.bulk-release-page .bulk-release-guide-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.95);
    border: 1px solid rgba(96, 165, 250, 0.18);
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .bulk-release-page .bulk-release-hero {
        flex-direction: column;
        padding: 24px;
    }

    .bulk-release-page .bulk-release-hero-actions {
        justify-content: flex-start;
    }

    .bulk-release-page .bulk-release-stats {
        grid-template-columns: 1fr;
        padding: 0 24px 24px;
    }

    .bulk-release-page .bulk-release-section-grid {
        grid-template-columns: 1fr;
    }
}

.analytics-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
}

.analytics-overline {
    color: var(--analytics-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.analytics-firebase-title {
    color: var(--analytics-text-strong);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.analytics-firebase-subtitle {
    color: var(--analytics-text-muted);
    font-size: 0.92rem;
    max-width: 58ch;
}

.analytics-hero-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analytics-env-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--analytics-info-bg);
    color: var(--analytics-info-text);
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid var(--analytics-info-border);
}

.analytics-range-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--analytics-surface-alt);
    color: var(--analytics-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--analytics-border);
}

.analytics-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--analytics-border);
    border-radius: 999px;
    background: var(--analytics-surface-solid);
    color: var(--analytics-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}

.analytics-theme-toggle:hover,
.analytics-theme-toggle:focus {
    border-color: var(--analytics-accent);
    color: var(--analytics-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: 0;
}

.analytics-theme-toggle-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--analytics-accent-soft);
    color: var(--analytics-accent);
    font-size: 0.9rem;
}

.analytics-theme-toggle-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.analytics-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.analytics-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    background: var(--analytics-chip-bg);
    color: var(--analytics-chip-text);
    border: 1px solid var(--analytics-chip-border);
    font-size: 0.8rem;
    font-weight: 600;
}

.analytics-filter-card .card-body {
    padding: 1rem 1rem 0.95rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--analytics-surface-solid) 94%, transparent) 0%, color-mix(in srgb, var(--analytics-surface-alt) 88%, transparent) 100%);
    border-radius: 16px;
    overflow: visible;
    position: relative;
    z-index: 30;
}

.analytics-chart-inline-filter {
    padding: 0.05rem 0 0.95rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid color-mix(in srgb, var(--analytics-border) 78%, transparent);
    position: relative;
    z-index: 35;
}

.analytics-filter-card {
    overflow: visible;
    position: relative;
    z-index: 30;
}

.analytics-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.analytics-filter-toolbar-left,
.analytics-filter-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    min-width: 0;
}

.analytics-filter-toolbar-right {
    margin-left: auto;
}

.analytics-filter-date-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    flex: 0 0 auto;
}

.analytics-filter-date-icon-wrap:hover {
    border-color: color-mix(in srgb, var(--analytics-accent) 26%, var(--analytics-border));
    background: color-mix(in srgb, var(--analytics-surface-solid) 98%, transparent);
}

.analytics-filter-date-icon-wrap:focus-within {
    border-color: var(--analytics-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--analytics-surface-solid);
}

.analytics-filter-date-icon-btn {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--analytics-accent);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

.analytics-filter-date-icon-btn:hover {
    color: color-mix(in srgb, var(--analytics-accent) 84%, #1d4ed8);
}

.analytics-filter-date-icon-btn:focus-visible {
    outline: none;
}

.analytics-range-picker-input-icon-anchor {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.analytics-filter-dropdown {
    position: relative;
    z-index: 50;
}

.analytics-filter-toolbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.78rem;
    border-radius: 12px;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-alt) 88%, transparent);
    color: var(--analytics-text);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

.analytics-filter-toolbar-badge-btn {
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.analytics-filter-toolbar-badge-btn:hover {
    border-color: color-mix(in srgb, var(--analytics-accent) 22%, var(--analytics-border));
    background: color-mix(in srgb, var(--analytics-accent-soft) 44%, var(--analytics-surface-alt));
}

.analytics-filter-toolbar-badge-btn:focus-visible {
    outline: none;
    border-color: var(--analytics-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.analytics-filter-toolbar-badge i {
    color: var(--analytics-text-muted);
    font-size: 1rem;
}

.analytics-filter-toggle-caret {
    margin-left: 0.05rem;
    font-size: 1rem;
    transition: transform 0.18s ease;
}

.analytics-filter-dropdown.is-open .analytics-filter-toggle-caret {
    transform: rotate(180deg);
}

.analytics-filter-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(680px, calc(100vw - 28px));
    min-width: 600px;
    border-radius: 14px;
    border: 1px solid var(--analytics-border);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 0;
    z-index: 9999;
    overflow: hidden;
}

.analytics-filter-menu[hidden] {
    display: none !important;
}

.analytics-filter-sheet {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 360px;
    background: #ffffff;
}

.analytics-filter-sheet-sidebar {
    border-right: 1px solid var(--analytics-border);
    background: #f9fafb;
    padding: 0.65rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analytics-filter-sheet-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--analytics-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    border-radius: 10px;
    padding: 0.6rem 0.65rem;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.analytics-filter-sheet-tab i {
    color: var(--analytics-text-muted);
    font-size: 1rem;
}

.analytics-filter-sheet-tab:hover {
    background: #eef2f7;
}

.analytics-filter-sheet-tab.is-active {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--analytics-border);
}

.analytics-filter-sheet-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    background: #ffffff;
}

.analytics-filter-sheet-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-bottom: 1px solid var(--analytics-border);
    padding: 0.65rem 0.85rem;
}

.analytics-filter-sheet-search > i {
    font-size: 1.05rem;
    color: var(--analytics-text-muted);
}

.analytics-filter-sheet-search .form-control {
    border: 0;
    box-shadow: none !important;
    background: transparent;
    padding: 0;
    min-height: auto;
    color: var(--analytics-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.analytics-filter-sheet-search .form-control::placeholder {
    color: var(--analytics-text-muted);
    font-weight: 500;
}

.analytics-filter-sheet-search-clear {
    appearance: none;
    border: 0;
    background: transparent;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--analytics-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.analytics-filter-sheet-search-clear:hover {
    background: #f3f4f6;
}

.analytics-filter-sheet-panes {
    min-height: 0;
    overflow: hidden;
}

.analytics-filter-sheet-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.analytics-filter-sheet-pane[hidden] {
    display: none !important;
}

.analytics-filter-sheet-pane-title {
    padding: 0.6rem 0.85rem 0.5rem;
    border-bottom: 1px solid var(--analytics-border);
    color: var(--analytics-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.analytics-filter-option-list {
    padding: 0.45rem 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    overflow: auto;
    min-height: 0;
}

.analytics-filter-option-item {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 10px;
    padding: 0.48rem 0.55rem;
    color: var(--analytics-text);
    text-align: left;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.15s ease;
}

.analytics-filter-option-item:hover {
    background: #f8fafc;
}

.analytics-filter-option-item.is-hidden {
    display: none !important;
}

.analytics-filter-option-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex: 0 0 auto;
    transition: all 0.15s ease;
}

.analytics-filter-option-check i {
    font-size: 0.8rem;
    line-height: 1;
}

.analytics-filter-option-item.is-selected .analytics-filter-option-check {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.analytics-filter-option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-filter-sheet-footer {
    border-top: 1px solid var(--analytics-border);
    padding: 0.7rem 0.85rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #ffffff;
}

.analytics-filter-sheet-btn {
    min-width: 88px;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.46rem 0.85rem;
    font-size: 0.9rem;
}

.analytics-filter-sheet-btn-secondary {
    border: 1px solid var(--analytics-border);
    background: #ffffff;
    color: var(--analytics-text-muted);
}

.analytics-filter-sheet-btn-secondary:hover,
.analytics-filter-sheet-btn-secondary:focus {
    border-color: var(--analytics-border-strong);
    background: #f9fafb;
    color: var(--analytics-text);
}

.analytics-filter-sheet-btn-primary {
    border: 1px solid #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.analytics-filter-sheet-btn-primary:hover,
.analytics-filter-sheet-btn-primary:focus {
    border-color: #1e40af;
    background: #1e40af;
    color: #ffffff;
}

.analytics-filter-native-selects {
    display: none !important;
}

.analytics-filter-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.analytics-filter-menu-item {
    min-width: 0;
}

.analytics-filter-menu-item-label {
    display: block;
    margin-bottom: 0.35rem;
    padding-left: 0.1rem;
    color: var(--analytics-text-muted);
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.analytics-filter-pill-control-menu {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
}

.analytics-filter-pill-control-menu .analytics-filter-pill-select {
    min-width: 0;
    width: 100%;
}

.analytics-filter-applied-list {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.analytics-filter-applied-list::-webkit-scrollbar {
    display: none;
}

.analytics-filter-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.46rem 0.78rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--analytics-accent) 22%, #2563eb);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    max-width: 100%;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
    white-space: nowrap;
}

.analytics-filter-active-chip--single {
    max-width: min(360px, 44vw);
}

.analytics-filter-active-chip i {
    font-size: 0.95rem;
    opacity: 0.95;
}

.analytics-filter-active-chip-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.analytics-filter-active-chip-clear {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: 0.05rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.analytics-filter-active-chip-clear:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.03);
}

.analytics-filter-active-chip-clear:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.analytics-filter-active-chip-clear i {
    font-size: 0.95rem;
    line-height: 1;
}

.analytics-filter-active-chip-key {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.analytics-filter-active-chip-value {
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(520px, 46vw);
}

.analytics-filter-pill-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
    padding: 0.2rem 0.4rem 0.2rem 0.65rem;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.analytics-filter-pill-control:hover {
    border-color: color-mix(in srgb, var(--analytics-accent) 26%, var(--analytics-border));
    background: color-mix(in srgb, var(--analytics-surface-solid) 98%, transparent);
}

.analytics-filter-pill-control:focus-within {
    border-color: var(--analytics-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--analytics-surface-solid);
}

.analytics-filter-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--analytics-text-muted);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.analytics-filter-pill-label i {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--analytics-accent) 70%, var(--analytics-text-muted));
}

.analytics-filter-pill-select,
.analytics-filter-pill-input {
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--analytics-text) !important;
    font-weight: 600;
    min-height: 36px;
    border-radius: 10px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.analytics-filter-pill-select {
    min-width: 170px;
    padding-left: 0.2rem;
    padding-right: 1.9rem;
    background-position: right 0.15rem center;
}

.analytics-filter-pill-input {
    min-width: 260px;
    padding-left: 0.25rem;
    padding-right: 46px;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.analytics-filter-pill-select:focus,
.analytics-filter-pill-input:focus {
    outline: none;
}

.analytics-filter-pill-control-date {
    min-width: 340px;
    justify-content: space-between;
}

.analytics-filter-pill-control-date .analytics-range-picker-field {
    flex: 1 1 auto;
    min-width: 0;
}

.analytics-filter-pill-control-date .analytics-range-picker-trigger {
    right: 4px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.analytics-filter-grid {
    row-gap: 0.6rem;
    column-gap: 0;
    align-items: end;
}

.analytics-filter-grid > [class*="col-"] {
    position: relative;
}

.analytics-filter-grid .form-control,
.analytics-filter-grid .form-select {
    border-radius: 14px;
    border: 1px solid var(--analytics-border);
    min-height: 46px;
    box-shadow: none;
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
    color: var(--analytics-text);
    font-weight: 600;
    padding-inline: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.analytics-filter-grid .form-control:focus,
.analytics-filter-grid .form-select:focus {
    border-color: var(--analytics-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--analytics-surface-solid);
}

.analytics-filter-grid .form-select {
    background-position: right 0.8rem center;
    padding-right: 2rem;
}

.analytics-filter-grid .form-control:hover,
.analytics-filter-grid .form-select:hover {
    border-color: color-mix(in srgb, var(--analytics-accent) 28%, var(--analytics-border));
}

.analytics-range-picker-input {
    cursor: pointer;
    background-color: var(--analytics-surface-solid);
    padding-right: 48px;
    letter-spacing: 0.01em;
}

.analytics-range-picker-field {
    position: relative;
}

.analytics-range-picker-trigger {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--analytics-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.analytics-range-picker-trigger:hover {
    background: var(--analytics-accent-soft);
    color: var(--analytics-accent);
}

.analytics-range-picker-help {
    margin-top: 0.32rem;
    font-size: 0.72rem;
    color: var(--analytics-text-muted);
    padding-left: 0.15rem;
}

@media (min-width: 992px) {
    .analytics-range-picker-help {
        font-size: 0.68rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.analytics-btn-primary {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--analytics-accent), #3b82f6);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.analytics-btn-primary:hover,
.analytics-btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: transparent;
}

.analytics-btn-ghost {
    border-radius: 12px;
    border: 1px solid var(--analytics-border);
    background: var(--analytics-surface-solid);
    color: var(--analytics-text);
}

.analytics-btn-ghost:hover,
.analytics-btn-ghost:focus {
    color: var(--analytics-accent);
    border-color: var(--analytics-accent);
    background: var(--analytics-accent-soft);
}

.analytics-filter-actions {
    justify-content: flex-start;
    align-items: flex-end;
    width: auto;
    min-width: 0;
}

.analytics-btn-reset-filter {
    min-height: 46px;
    min-width: 98px;
    padding: 0.55rem 0.95rem;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.analytics-summary-strip .card-body {
    padding: 0.95rem 1rem;
}

.analytics-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.analytics-summary-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.analytics-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.16));
    color: var(--analytics-accent);
    font-size: 20px;
    border: 1px solid var(--analytics-chip-border);
    flex-shrink: 0;
}

.analytics-summary-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--analytics-text-strong);
}

.analytics-summary-text {
    font-size: 0.85rem;
    color: var(--analytics-text-muted);
}

.analytics-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.analytics-summary-pill {
    padding: 0.36rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.analytics-summary-pill-success {
    background: var(--analytics-success-bg);
    color: var(--analytics-success-text);
    border-color: var(--analytics-success-border);
}

.analytics-summary-pill-warning {
    background: var(--analytics-warning-bg);
    color: var(--analytics-warning-text);
    border-color: var(--analytics-warning-border);
}

.analytics-summary-pill-danger {
    background: var(--analytics-danger-bg);
    color: var(--analytics-danger-text);
    border-color: var(--analytics-danger-border);
}

.analytics-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.analytics-card-head .header-title,
.analytics-chart-card .header-title,
.analytics-side-panel .header-title,
.analytics-table-panel .header-title {
    color: var(--analytics-text-strong);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.analytics-card-subtitle {
    font-size: 0.83rem;
    color: var(--analytics-text-muted);
    margin-bottom: 0;
}

.analytics-chip-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.analytics-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.analytics-chip-approved {
    background: var(--analytics-success-bg);
    color: var(--analytics-success-text);
    border-color: var(--analytics-success-border);
}

.analytics-chip-pending {
    background: var(--analytics-warning-bg);
    color: var(--analytics-warning-text);
    border-color: var(--analytics-warning-border);
}

.analytics-chip-rejected {
    background: var(--analytics-danger-bg);
    color: var(--analytics-danger-text);
    border-color: var(--analytics-danger-border);
}

.analytics-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.analytics-icon-daily {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.analytics-icon-weekly {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

.analytics-icon-monthly {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.analytics-icon-yearly {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
}

.analytics-stat-value {
    font-size: 1.72rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 0.05rem;
    color: var(--analytics-text-strong);
    letter-spacing: -0.02em;
}

.analytics-stat-label {
    color: var(--analytics-text-muted);
    margin-bottom: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.analytics-kpi-card .card-body {
    padding: 1rem;
}

.analytics-kpi-card {
    transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.analytics-kpi-card:hover {
    box-shadow: var(--analytics-shadow-md);
    transform: translateY(-2px);
}

.analytics-kpi-card-minimal .card-body {
    border-top: 3px solid rgba(59, 130, 246, 0.12);
}

.analytics-chart-wrap {
    position: relative;
    height: 320px;
    border-radius: 14px;
}

.analytics-chart-wrap-3d {
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(248, 250, 252, 0.9) 100%),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.11) 0, rgba(148, 163, 184, 0.11) 1px, transparent 1px, transparent 22px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.07) 0, rgba(148, 163, 184, 0.07) 1px, transparent 1px, transparent 22px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 0.25rem;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-wrap-3d {
    background:
        linear-gradient(180deg, rgba(23, 34, 52, 0.78) 0%, rgba(20, 30, 46, 0.86) 100%),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.05) 0, rgba(148, 163, 184, 0.05) 1px, transparent 1px, transparent 22px),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.035) 0, rgba(148, 163, 184, 0.035) 1px, transparent 1px, transparent 22px);
    border-color: rgba(148, 163, 184, 0.16);
}

@media (prefers-color-scheme: dark) {
    .dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-wrap-3d {
        background:
            linear-gradient(180deg, rgba(23, 34, 52, 0.78) 0%, rgba(20, 30, 46, 0.86) 100%),
            repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.05) 0, rgba(148, 163, 184, 0.05) 1px, transparent 1px, transparent 22px),
            repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.035) 0, rgba(148, 163, 184, 0.035) 1px, transparent 1px, transparent 22px);
        border-color: rgba(148, 163, 184, 0.16);
    }
}

.analytics-chart-wrap-sm {
    height: 260px;
}

.analytics-chart-wrap canvas {
    filter: drop-shadow(0 10px 20px rgba(51, 65, 85, 0.08));
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-wrap canvas {
    filter: drop-shadow(0 12px 22px rgba(2, 6, 23, 0.16));
}

.analytics-chart-wrap-3d canvas {
    filter: drop-shadow(0 14px 28px rgba(30, 41, 59, 0.2));
}

.analytics-filter-grid .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--analytics-text-muted);
    font-weight: 700;
}

.analytics-filter-actions {
    align-items: stretch;
}

.analytics-filter-actions .btn {
    min-height: 44px;
}

.analytics-table > :not(caption) > * > * {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.analytics-table thead th {
    color: var(--analytics-text-muted);
    font-weight: 700;
    border-bottom-color: var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-alt) 86%, transparent);
    position: sticky;
    top: 0;
    z-index: 1;
}

.analytics-table tbody td {
    border-color: color-mix(in srgb, var(--analytics-border) 72%, transparent);
    color: var(--analytics-text);
}

.analytics-table tbody tr:hover {
    background: color-mix(in srgb, var(--analytics-accent-soft) 54%, transparent);
}

.analytics-side-panel .card-body,
.analytics-table-panel .card-body,
.analytics-chart-card > .card-body {
    padding: 1rem;
}

.analytics-card-head-firebase {
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid color-mix(in srgb, var(--analytics-border) 80%, transparent);
}

.analytics-shared-report-side {
    height: 100%;
    padding-left: 1rem;
    border-left: 1px solid color-mix(in srgb, var(--analytics-border) 78%, transparent);
}

@media (max-width: 1199.98px) {
    .analytics-shared-report-side {
        padding-left: 0;
        padding-top: 0.9rem;
        border-left: 0;
        border-top: 1px solid color-mix(in srgb, var(--analytics-border) 78%, transparent);
    }
}

.analytics-table-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.analytics-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
}

.analytics-pagination .page-item {
    margin: 0;
}

.analytics-pagination .page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--analytics-border);
    color: var(--analytics-text);
    background: var(--analytics-surface-solid);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}

.analytics-pagination .page-link:hover {
    color: var(--analytics-accent);
    border-color: var(--analytics-accent);
    background: var(--analytics-accent-soft);
}

.analytics-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.12));
    color: var(--analytics-accent);
    border-color: color-mix(in srgb, var(--analytics-accent) 35%, var(--analytics-border));
    font-weight: 700;
}

.analytics-pagination .page-item.disabled .page-link {
    background: color-mix(in srgb, var(--analytics-surface-alt) 92%, transparent);
    color: var(--analytics-text-faint);
    border-color: color-mix(in srgb, var(--analytics-border) 85%, transparent);
}

.dashboard-analytics .badge-info-lighten {
    background: var(--analytics-info-bg) !important;
    color: var(--analytics-info-text) !important;
    border: 1px solid var(--analytics-info-border);
}

.dashboard-analytics .badge-success-lighten {
    background: var(--analytics-success-bg) !important;
    color: var(--analytics-success-text) !important;
    border: 1px solid var(--analytics-success-border);
}

.dashboard-analytics .badge-warning-lighten {
    background: var(--analytics-warning-bg) !important;
    color: var(--analytics-warning-text) !important;
    border: 1px solid var(--analytics-warning-border);
}

.dashboard-analytics .badge-danger-lighten {
    background: var(--analytics-danger-bg) !important;
    color: var(--analytics-danger-text) !important;
    border: 1px solid var(--analytics-danger-border);
}

.daterangepicker {
    border: 1px solid #dfe3eb;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    font-family: inherit;
    z-index: 1065 !important;
    overflow: hidden;
    max-width: min(760px, calc(100vw - 24px));
}

.daterangepicker::before,
.daterangepicker::after {
    display: none !important;
}

.daterangepicker .ranges {
    border-right-color: rgba(148, 163, 184, 0.16);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.daterangepicker .ranges li {
    border-radius: 10px;
    margin: 2px 6px;
    padding: 8px 10px;
    font-weight: 600;
    color: #475569;
}

.daterangepicker .drp-calendar {
    max-width: 100%;
    padding: 0.65rem 0.65rem 0.5rem;
}

.daterangepicker .calendar-table table {
    width: 100%;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
    min-width: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 8px;
}

.daterangepicker .drp-buttons {
    border-top-color: rgba(148, 163, 184, 0.16);
    padding: 0.6rem 0.75rem;
}

.daterangepicker .calendar-table {
    border: 0;
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker td.in-range,
.daterangepicker td.start-date,
.daterangepicker td.end-date {
    background-color: #1a73e8;
    color: #fff;
}

.daterangepicker td.in-range {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.daterangepicker td.start-date,
.daterangepicker td.end-date {
    background-color: #1a73e8;
    color: #fff;
}

.daterangepicker .ranges li.active {
    background-color: #1a73e8;
}

.daterangepicker .drp-buttons .btn {
    border-radius: 8px;
}

.analytics-daterangepicker.analytics-daterangepicker-mobile {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
}

.analytics-daterangepicker.analytics-daterangepicker-mobile .ranges,
.analytics-daterangepicker.analytics-daterangepicker-mobile .drp-calendar {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.analytics-daterangepicker.analytics-daterangepicker-mobile .ranges {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    max-height: 180px;
    overflow: auto;
}

.analytics-daterangepicker.analytics-daterangepicker-mobile .drp-calendar.left,
.analytics-daterangepicker.analytics-daterangepicker-mobile .drp-calendar.right {
    clear: both;
}

body.analytics-dashboard-theme-dark .daterangepicker {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
    color: #e5edf8;
}

body.analytics-dashboard-theme-dark .daterangepicker .ranges li {
    color: #d1d9e6;
}

body.analytics-dashboard-theme-dark .daterangepicker .calendar-table,
body.analytics-dashboard-theme-dark .daterangepicker table,
body.analytics-dashboard-theme-dark .daterangepicker .drp-calendar,
body.analytics-dashboard-theme-dark .daterangepicker .ranges,
body.analytics-dashboard-theme-dark .daterangepicker .drp-buttons {
    background: #111827;
    color: #e5edf8;
    border-color: rgba(148, 163, 184, 0.16);
}

body.analytics-dashboard-theme-dark .daterangepicker td.off,
body.analytics-dashboard-theme-dark .daterangepicker td.off.in-range,
body.analytics-dashboard-theme-dark .daterangepicker td.off.start-date,
body.analytics-dashboard-theme-dark .daterangepicker td.off.end-date {
    color: #6b7280;
    background: transparent;
}

body.analytics-dashboard-theme-dark .daterangepicker td.available:hover,
body.analytics-dashboard-theme-dark .daterangepicker th.available:hover {
    background: rgba(96, 165, 250, 0.12);
}

body.analytics-dashboard-theme-dark .daterangepicker td.in-range {
    background: rgba(96, 165, 250, 0.14);
    color: #cfe4ff;
}

body.analytics-dashboard-theme-dark .daterangepicker td.active,
body.analytics-dashboard-theme-dark .daterangepicker td.active:hover,
body.analytics-dashboard-theme-dark .daterangepicker td.start-date,
body.analytics-dashboard-theme-dark .daterangepicker td.end-date,
body.analytics-dashboard-theme-dark .daterangepicker .ranges li.active {
    background: #3b82f6;
    color: #fff;
}

body.analytics-dashboard-theme-dark .daterangepicker .drp-buttons .btn {
    border-color: rgba(148, 163, 184, 0.2);
}

@media (prefers-color-scheme: dark) {
    body:not(.analytics-dashboard-theme-light) .daterangepicker {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.16);
        box-shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
        color: #e5edf8;
    }

    body:not(.analytics-dashboard-theme-light) .daterangepicker .calendar-table,
    body:not(.analytics-dashboard-theme-light) .daterangepicker table,
    body:not(.analytics-dashboard-theme-light) .daterangepicker .drp-calendar,
    body:not(.analytics-dashboard-theme-light) .daterangepicker .ranges,
    body:not(.analytics-dashboard-theme-light) .daterangepicker .drp-buttons {
        background: #111827;
        color: #e5edf8;
        border-color: rgba(148, 163, 184, 0.16);
    }

    body:not(.analytics-dashboard-theme-light) .daterangepicker td.off,
    body:not(.analytics-dashboard-theme-light) .daterangepicker td.off.in-range,
    body:not(.analytics-dashboard-theme-light) .daterangepicker td.off.start-date,
    body:not(.analytics-dashboard-theme-light) .daterangepicker td.off.end-date {
        color: #6b7280;
        background: transparent;
    }

    body:not(.analytics-dashboard-theme-light) .daterangepicker td.available:hover,
    body:not(.analytics-dashboard-theme-light) .daterangepicker th.available:hover {
        background: rgba(96, 165, 250, 0.12);
    }

    body:not(.analytics-dashboard-theme-light) .daterangepicker td.in-range {
        background: rgba(96, 165, 250, 0.14);
        color: #cfe4ff;
    }

    body:not(.analytics-dashboard-theme-light) .daterangepicker td.active,
    body:not(.analytics-dashboard-theme-light) .daterangepicker td.active:hover,
    body:not(.analytics-dashboard-theme-light) .daterangepicker td.start-date,
    body:not(.analytics-dashboard-theme-light) .daterangepicker td.end-date,
    body:not(.analytics-dashboard-theme-light) .daterangepicker .ranges li.active {
        background: #3b82f6;
        color: #fff;
    }
}

@media (max-width: 1199.98px) {
    .analytics-hero-top {
        align-items: stretch;
    }

    .analytics-hero-side {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .analytics-range-pill {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .analytics-filter-grid .form-control,
    .analytics-filter-grid .form-select,
    .analytics-filter-actions .btn {
        min-height: 42px;
    }

    .analytics-filter-card .card-body {
        padding: 0.9rem;
    }

    .analytics-filter-toolbar {
        align-items: stretch;
        gap: 0.7rem;
    }

    .analytics-filter-toolbar-left,
    .analytics-filter-toolbar-right {
        width: 100%;
    }

    .analytics-filter-toolbar-right {
        margin-left: 0;
    }

    .analytics-filter-date-icon-wrap {
        width: 42px;
        height: 42px;
    }

    .analytics-filter-toolbar-badge {
        width: auto;
    }

    .analytics-filter-menu {
        min-width: 0;
        width: min(760px, calc(100vw - 20px));
    }

    .analytics-filter-sheet {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .analytics-filter-sheet-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--analytics-border);
        background: #ffffff;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.6rem;
    }

    .analytics-filter-sheet-tab {
        min-width: max-content;
        box-shadow: inset 0 0 0 1px var(--analytics-border);
        background: #ffffff;
    }

    .analytics-filter-sheet-tab.is-active {
        box-shadow: inset 0 0 0 1px #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .analytics-filter-sheet-tab i {
        display: none;
    }

    .analytics-filter-pill-control {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
    }

    .analytics-filter-applied-list {
        width: 100%;
        order: 3;
        overflow-x: auto;
    }

    .analytics-filter-active-chip {
        flex: 0 0 auto;
        min-width: 0;
    }

    .analytics-filter-pill-select {
        min-width: 0;
        width: 100%;
    }

    .analytics-filter-pill-control-date {
        flex: 1 1 100%;
        min-width: 0;
    }

    .analytics-filter-pill-input {
        min-width: 0;
        width: 100%;
    }

    .analytics-btn-reset-filter {
        min-width: 100%;
        width: 100%;
    }

    .daterangepicker {
        max-width: calc(100vw - 16px);
    }
}

@media (max-width: 767.98px) {
    .analytics-filter-dropdown {
        width: 100%;
    }

    .analytics-filter-toolbar-right {
        width: auto;
        margin-left: auto;
    }

    .analytics-filter-toolbar-badge-btn {
        width: 100%;
        justify-content: center;
    }

    .analytics-filter-menu {
        left: 0;
        right: auto;
        width: min(calc(100vw - 24px), 100%);
    }

    .analytics-filter-sheet-search {
        padding: 0.7rem 0.85rem;
    }

    .analytics-filter-sheet-footer {
        padding: 0.75rem 0.85rem;
    }

    .analytics-filter-sheet-btn {
        min-width: 92px;
    }

    .analytics-filter-active-chip {
        width: 100%;
    }

    .analytics-filter-active-chip-text {
        width: 100%;
    }

    .analytics-filter-active-chip-value {
        max-width: none;
    }

    .analytics-filter-toolbar-badge {
        padding: 0.52rem 0.82rem;
    }

    .analytics-filter-pill-control {
        flex: 1 1 100%;
        gap: 0.45rem;
        padding: 0.22rem 0.38rem 0.22rem 0.58rem;
    }

    .analytics-filter-pill-label {
        min-width: 72px;
        font-size: 0.72rem;
    }

    .analytics-filter-pill-select {
        font-size: 0.92rem;
    }

    .analytics-filter-pill-input {
        font-size: 0.92rem;
    }

    .analytics-hero {
        padding: 1rem;
        border-radius: 16px;
    }

    .analytics-firebase-subtitle {
        font-size: 0.88rem;
    }

    .analytics-chart-wrap {
        height: 260px;
    }

    .analytics-chart-wrap-sm {
        height: 240px;
    }

    .analytics-stat-value {
        font-size: 1.4rem;
    }

    .analytics-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-pagination {
        justify-content: flex-start;
    }

    .analytics-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .analytics-hero-top {
        flex-direction: column;
    }

    .analytics-hero-side {
        justify-content: flex-start;
    }

    .analytics-theme-toggle-label {
        display: none;
    }

    .analytics-summary-main {
        align-items: flex-start;
    }

    .analytics-summary-pills {
        width: 100%;
    }
}

/* Firebase-like admin sidebar (reuses Hyper's built-in condensed mode) */
.firebase-admin-sidebar {
    --firebase-sidebar-bg: #1f2937;
    --firebase-sidebar-logo-bg: #1f2937;
    --firebase-sidebar-border: rgba(255, 255, 255, 0.08);
    --firebase-sidebar-inset: rgba(255, 255, 255, 0.03);
    --firebase-sidebar-panel-shadow: none;
    --firebase-sidebar-logo-shadow: none;
    --firebase-sidebar-text: rgba(255, 255, 255, 0.8);
    --firebase-sidebar-text-muted: rgba(255, 255, 255, 0.65);
    --firebase-sidebar-title: rgba(255, 255, 255, 0.72);
    --firebase-sidebar-hover-bg: rgba(255, 255, 255, 0.08);
    --firebase-sidebar-hover-text: #fff;
    --firebase-sidebar-outline: rgba(255, 255, 255, 0.12);
    --firebase-sidebar-btn-bg: rgba(255, 255, 255, 0.04);
    --firebase-sidebar-btn-bg-hover: rgba(255, 255, 255, 0.08);
    --firebase-sidebar-brand-text: #fff;
    display: flex;
    flex-direction: column;
    background: var(--firebase-sidebar-bg) !important;
    border-right: 1px solid var(--firebase-sidebar-border);
    box-shadow: inset -1px 0 0 var(--firebase-sidebar-inset), var(--firebase-sidebar-panel-shadow);
}

html[data-theme="light"] .firebase-admin-sidebar {
    --firebase-sidebar-bg: #ffffff;
    --firebase-sidebar-logo-bg: linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%);
    --firebase-sidebar-border: rgba(15, 23, 42, 0.08);
    --firebase-sidebar-inset: rgba(15, 23, 42, 0.02);
    --firebase-sidebar-panel-shadow: 1px 0 0 rgba(255, 255, 255, 0.55);
    --firebase-sidebar-logo-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.7);
    --firebase-sidebar-text: #334155;
    --firebase-sidebar-text-muted: #64748b;
    --firebase-sidebar-title: #64748b;
    --firebase-sidebar-hover-bg: rgba(37, 99, 235, 0.08);
    --firebase-sidebar-hover-text: #0f172a;
    --firebase-sidebar-outline: rgba(148, 163, 184, 0.22);
    --firebase-sidebar-btn-bg: rgba(148, 163, 184, 0.08);
    --firebase-sidebar-btn-bg-hover: rgba(148, 163, 184, 0.14);
    --firebase-sidebar-brand-text: #0f172a;
    background:
        radial-gradient(circle at 8% 5%, rgba(59, 130, 246, 0.05), transparent 34%),
        linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%) !important;
    border-right-color: rgba(148, 163, 184, 0.12);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.65), 1px 0 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .firebase-admin-sidebar {
    --firebase-sidebar-bg: linear-gradient(180deg, #111c2e 0%, #0d1626 100%);
    --firebase-sidebar-logo-bg: linear-gradient(180deg, #111c2e 0%, #0d1626 100%);
    --firebase-sidebar-border: rgba(148, 163, 184, 0.14);
    --firebase-sidebar-inset: rgba(255, 255, 255, 0.025);
    --firebase-sidebar-panel-shadow: 1px 0 0 rgba(59, 130, 246, 0.04);
    --firebase-sidebar-logo-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.015);
    --firebase-sidebar-text: rgba(255, 255, 255, 0.8);
    --firebase-sidebar-text-muted: rgba(255, 255, 255, 0.65);
    --firebase-sidebar-title: rgba(255, 255, 255, 0.72);
    --firebase-sidebar-hover-bg: rgba(255, 255, 255, 0.08);
    --firebase-sidebar-hover-text: #fff;
    --firebase-sidebar-outline: rgba(255, 255, 255, 0.12);
    --firebase-sidebar-btn-bg: rgba(255, 255, 255, 0.04);
    --firebase-sidebar-btn-bg-hover: rgba(255, 255, 255, 0.08);
    --firebase-sidebar-brand-text: #fff;
    background: linear-gradient(180deg, #111c2e 0%, #0d1626 100%) !important;
    border-right-color: rgba(148, 163, 184, 0.12);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02), 1px 0 0 rgba(59, 130, 246, 0.035);
}

html[data-sidenav-color="light"] .leftside-menu.firebase-admin-sidebar .logo,
html[data-sidenav-color="dark"] .leftside-menu.firebase-admin-sidebar .logo,
.firebase-admin-sidebar .logo.logo-light,
.firebase-admin-sidebar .logo.logo-dark {
    background: var(--firebase-sidebar-logo-bg) !important;
    border-bottom: 0;
    box-shadow: none;
}

.firebase-admin-sidebar .logo .logo-lg,
.firebase-admin-sidebar .logo .logo-sm {
    background: transparent !important;
}

.firebase-admin-sidebar .button-sm-hover {
    color: var(--firebase-sidebar-text-muted);
}

.firebase-admin-sidebar .button-sm-hover:hover {
    color: var(--firebase-sidebar-hover-text);
}

.firebase-admin-sidebar-scroll {
    display: flex;
    flex-direction: column;
}

.firebase-admin-sidebar .simplebar-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.firebase-admin-sidebar .simplebar-content > .leftbar-user {
    display: none;
}

.firebase-side-nav {
    flex: 1 1 auto;
    padding-top: 0.35rem;
}

.firebase-side-nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    height: 54px;
    padding: 0.2rem 1rem 0.28rem;
    margin: 0.05rem 0.55rem 0.15rem !important;
    text-align: center;
    overflow: hidden;
}

.firebase-side-nav-brand h4 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--firebase-sidebar-brand-text);
    line-height: 1.15;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.firebase-side-nav-brand-text {
    display: block;
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--firebase-sidebar-brand-text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html.firebase-sidebar-preinit .firebase-admin-sidebar,
html.firebase-sidebar-preinit .firebase-admin-sidebar * {
    transition: none !important;
    animation: none !important;
}

html.firebase-sidebar-preinit .wrapper .content-page,
html.firebase-sidebar-preinit .wrapper .navbar-custom,
html.firebase-sidebar-preinit .wrapper .footer,
html.firebase-sidebar-preinit .wrapper .leftside-menu,
html.firebase-sidebar-preinit .wrapper .leftside-menu .logo {
    transition: none !important;
    animation: none !important;
}

html.firebase-sidebar-preinit .firebase-side-nav-brand-text {
    opacity: 0;
}

html:not(.firebase-sidebar-preinit) .firebase-side-nav-brand-text {
    opacity: 1;
    transition: opacity 0.12s ease;
}

.firebase-side-nav-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--firebase-sidebar-title);
    opacity: 1;
}

.firebase-admin-sidebar .side-nav .side-nav-item {
    margin: 0.15rem 0.55rem;
    overflow: hidden;
}

.firebase-admin-sidebar .side-nav .side-nav-link {
    border-radius: 14px;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--firebase-sidebar-text);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.firebase-admin-sidebar .side-nav .side-nav-link i {
    font-size: 1.1rem;
    width: 22px;
    min-width: 22px;
    text-align: center;
    line-height: 1;
    color: inherit;
}

.firebase-admin-sidebar .side-nav .side-nav-link span {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.firebase-admin-sidebar .side-nav .side-nav-link:hover {
    background: var(--firebase-sidebar-hover-bg);
    color: var(--firebase-sidebar-hover-text);
}

html[data-theme="light"] .firebase-admin-sidebar .side-nav .side-nav-link {
    color: #64748b;
}

html[data-theme="light"] .firebase-admin-sidebar .side-nav .side-nav-link:hover,
html[data-theme="light"] .firebase-admin-sidebar .side-nav .side-nav-link:focus {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    color: #0f172a;
}

html[data-theme="dark"] .firebase-admin-sidebar .side-nav .side-nav-link {
    color: #b9c7da;
}

html[data-theme="dark"] .firebase-admin-sidebar .side-nav .side-nav-link:hover,
html[data-theme="dark"] .firebase-admin-sidebar .side-nav .side-nav-link:focus {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    color: #f8fbff;
}

.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-disabled > .firebase-side-nav-link-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.firebase-coming-soon-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #dc2626;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    padding: 0.18em 0.55em;
    border-radius: 20px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.95));
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

html[data-theme="dark"] .firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link,
html[data-theme="dark"] .firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

html[data-theme="light"] .firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link,
html[data-theme="light"] .firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link {
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link i,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link i {
    color: #fff;
}

.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link span,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link span {
    color: #fff;
}

/* Keep active sidebar item readable on hover/focus across light/dark themes */
.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link:hover,
.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link:focus,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link:hover,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link:focus {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.95)) !important;
    color: #fff !important;
}

.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link:hover i,
.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link:hover span,
.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link:focus i,
.firebase-admin-sidebar .side-nav-item.firebase-side-nav-item-active > .side-nav-link:focus span,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link:hover i,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link:hover span,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link:focus i,
.firebase-admin-sidebar .side-nav-item.mm-active > .side-nav-link:focus span {
    color: #fff !important;
    opacity: 1;
}

.firebase-sidebar-rail-toggle-item {
    display: none;
    margin-top: 0.2rem !important;
    margin-bottom: 0.35rem !important;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--firebase-sidebar-border);
}

.firebase-sidebar-rail-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.firebase-sidebar-rail-toggle:hover,
.firebase-sidebar-rail-toggle:focus {
    background: var(--firebase-sidebar-hover-bg);
    color: var(--firebase-sidebar-hover-text);
    outline: 0;
}

.firebase-sidebar-rail-toggle-label {
    font-weight: 600;
}

.firebase-sidebar-footer {
    margin-top: auto;
    padding: 0.65rem 0.55rem 0.85rem;
    border-top: 1px solid var(--firebase-sidebar-border);
}

.firebase-sidebar-collapse-btn {
    width: 100%;
    border: 1px solid var(--firebase-sidebar-outline);
    background: var(--firebase-sidebar-btn-bg);
    color: var(--firebase-sidebar-text);
    border-radius: 12px;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.15s ease;
}

.firebase-sidebar-collapse-btn:hover,
.firebase-sidebar-collapse-btn:focus {
    background: var(--firebase-sidebar-btn-bg-hover);
    border-color: color-mix(in srgb, var(--firebase-sidebar-outline) 70%, var(--firebase-sidebar-hover-bg));
    outline: 0;
}

.firebase-sidebar-collapse-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.firebase-sidebar-collapse-label {
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-side-nav-brand,
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-side-nav-title,
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-link span,
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-sidebar-collapse-label,
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .button-sm-hover {
    display: none !important;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-item {
    margin: 0.2rem 0.4rem;
    width: auto !important;
    max-width: calc(100% - 0.8rem);
    overflow: hidden !important;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-link {
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    padding: 0.65rem 0.4rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 12px;
    min-height: 40px;
    gap: 0;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    transform: none !important;
    margin: 0 !important;
    box-shadow: none;
    display: flex !important;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-link i {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: block !important;
    text-align: center !important;
    line-height: 1 !important;
    font-size: 1.18rem;
    flex: 0 0 auto;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-item:hover > .side-nav-link,
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-item.firebase-side-nav-item-active > .side-nav-link,
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .side-nav .side-nav-item.mm-active > .side-nav-link {
    width: 100% !important;
    max-width: 100% !important;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-sidebar-rail-toggle-item {
    display: none;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-sidebar-footer {
    display: block;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-sidebar-collapse-btn {
    justify-content: center;
    padding: 0.45rem;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .firebase-sidebar-collapse-icon {
    margin: 0;
}

/* Hyper sets a fixed 70px icon width in condensed mode; keep icons visually centered in the custom sidebar rail */
html[data-sidenav-size="condensed"]:not(.authentication-bg) .wrapper .firebase-admin-sidebar .side-nav .side-nav-item .side-nav-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html[data-sidenav-size="condensed"]:not(.authentication-bg) .wrapper .firebase-admin-sidebar .side-nav .side-nav-item .side-nav-link i {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Make the minimized logo fill the rail better and stay centered */
html[data-sidenav-size="condensed"] .firebase-admin-sidebar .logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 70px !important;
    min-width: 70px !important;
    text-align: center;
    padding: 0 !important;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .logo .logo-sm {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    line-height: 1 !important;
}

html[data-sidenav-size="condensed"] .firebase-admin-sidebar .logo .logo-sm img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
}

html[data-sidenav-size="condensed"]:not([data-layout="topnav"]) .firebase-admin-sidebar,
html[data-sidenav-size="condensed"]:not([data-layout="topnav"]) .firebase-admin-sidebar:not(:hover) {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh !important;
    overflow: hidden;
    z-index: 1035;
}

html[data-sidenav-size="condensed"]:not([data-layout="topnav"]) .firebase-admin-sidebar .firebase-admin-sidebar-scroll {
    height: calc(100vh - 70px);
}

html[data-sidenav-size="condensed"]:not(.authentication-bg) .wrapper .firebase-admin-sidebar .side-nav .side-nav-item:hover > .side-nav-link,
html[data-sidenav-size="condensed"]:not(.authentication-bg) .wrapper .firebase-admin-sidebar .side-nav .side-nav-item.firebase-side-nav-item-active > .side-nav-link,
html[data-sidenav-size="condensed"]:not(.authentication-bg) .wrapper .firebase-admin-sidebar .side-nav .side-nav-item.mm-active > .side-nav-link {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
}

html[data-sidenav-size="default"] .firebase-admin-sidebar .firebase-sidebar-rail-toggle-item,
html[data-sidenav-size="full"] .firebase-admin-sidebar .firebase-sidebar-rail-toggle-item,
html[data-sidenav-size="sm-hover"] .firebase-admin-sidebar .firebase-sidebar-rail-toggle-item,
html[data-sidenav-size="sm-hover-active"] .firebase-admin-sidebar .firebase-sidebar-rail-toggle-item {
    display: none;
}

@media (max-width: 991.98px) {
    .firebase-sidebar-footer {
        display: none;
    }
}

/* Topbar profile dropdown (global reusable) */
.topnav-navbar .button-toggle-menu {
    display: none !important;
}

.topnav-navbar .topbar-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.topnav-navbar .topbar-menu > li {
    display: flex;
    align-items: center;
}

.topnav-navbar .topbar-menu > li > .nav-link {
    display: inline-flex;
    align-items: center;
}

.navbar-custom.topnav-navbar .detached-nav {
    position: relative;
}

.navbar-custom.topnav-navbar {
    border-bottom: 0 !important;
}

html[data-theme="light"] .navbar-custom.topnav-navbar,
body.analytics-dashboard-theme-light .navbar-custom.topnav-navbar {
    background: linear-gradient(180deg, rgba(251, 252, 255, 0.98) 0%, rgba(246, 248, 252, 0.97) 100%) !important;
    border-bottom: 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

html[data-theme="dark"] .navbar-custom.topnav-navbar,
body.analytics-dashboard-theme-dark .navbar-custom.topnav-navbar {
    background: linear-gradient(180deg, rgba(17, 28, 46, 0.97) 0%, rgba(13, 22, 38, 0.97) 100%) !important;
    border-bottom: 0;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

html[data-theme="light"] .topnav-navbar .topbar-menu > li > .nav-link,
html[data-theme="light"] .topnav-navbar .button-toggle-menu,
html[data-theme="light"] .topnav-navbar .topbar-menu .nav-link i {
    color: #64748b;
}

html[data-theme="light"] .topnav-navbar .topbar-menu > li > .nav-link:hover,
html[data-theme="light"] .topnav-navbar .topbar-menu > li > .nav-link:focus {
    color: #0f172a;
}

html[data-theme="dark"] .topnav-navbar .topbar-menu > li > .nav-link,
html[data-theme="dark"] .topnav-navbar .button-toggle-menu,
html[data-theme="dark"] .topnav-navbar .topbar-menu .nav-link i,
body.analytics-dashboard-theme-dark .topnav-navbar .topbar-menu > li > .nav-link,
body.analytics-dashboard-theme-dark .topnav-navbar .button-toggle-menu,
body.analytics-dashboard-theme-dark .topnav-navbar .topbar-menu .nav-link i {
    color: #c4d0e2;
}

html[data-theme="dark"] .topnav-navbar .topbar-menu > li > .nav-link:hover,
html[data-theme="dark"] .topnav-navbar .topbar-menu > li > .nav-link:focus,
body.analytics-dashboard-theme-dark .topnav-navbar .topbar-menu > li > .nav-link:hover,
body.analytics-dashboard-theme-dark .topnav-navbar .topbar-menu > li > .nav-link:focus {
    color: #edf4ff;
}

/* Workspace pages use the same global topbar theme as other pages */

.analytics-topbar-profile-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.3rem 0.55rem !important;
    min-height: 46px !important;
    height: 46px !important;
    width: auto !important;
    min-width: 180px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    transition: all 0.15s ease;
    max-width: 260px;
    overflow: hidden;
    line-height: 1 !important;
    vertical-align: middle;
}

/* .analytics-topbar-profile-trigger:hover,
.analytics-topbar-profile-trigger:focus,
.show > .analytics-topbar-profile-trigger {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
} */

.analytics-topbar-profile-trigger::after {
    display: none !important;
}

.analytics-topbar-profile-trigger .account-user-avatar {
    position: relative;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    line-height: 1;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 34px;
    padding: 0 !important;
    background: transparent !important;
}

.analytics-topbar-profile-trigger .account-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 !important;
    transform: none !important;
    border-radius: 999px;
    position: relative;
    inset: auto;
}

.analytics-topbar-profile-caret {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex: 0 0 auto;
    position: relative;
}

.analytics-topbar-profile-caret i {
    display: none;
}

.analytics-topbar-profile-caret::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}

.analytics-profile-status-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.analytics-topbar-profile-trigger .analytics-profile-status-dot {
    display: none !important;
}

.analytics-topbar-profile-meta {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.analytics-topbar-profile-trigger .analytics-topbar-profile-meta {
    display: inline-flex !important;
    align-items: flex-start;
}

.analytics-topbar-profile-email {
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.05;
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="dark"] .analytics-topbar-profile-trigger {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.22);
}

html[data-theme="dark"] .analytics-topbar-profile-trigger:hover,
html[data-theme="dark"] .analytics-topbar-profile-trigger:focus,
html[data-theme="dark"] .show > .analytics-topbar-profile-trigger {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(96, 165, 250, 0.28);
}

/* Labels notification popover (compact modern panel) */
#notice-list.labels-notice-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0.75rem;
    width: min(360px, calc(100vw - 1.5rem));
    max-width: 360px;
    max-height: min(460px, calc(100vh - 110px));
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    z-index: 1105;
}

#notice-list.labels-notice-popover .labels-notice-popover-body {
    padding: 0;
}

.labels-notice-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.labels-notice-popover-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.labels-notice-popover-subtitle {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
}

.labels-notice-close-btn {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s ease;
    flex: 0 0 28px;
}

.labels-notice-close-btn:hover,
.labels-notice-close-btn:focus {
    color: #0f172a;
    background: #fff;
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    outline: 0;
}

.labels-notice-list {
    max-height: min(372px, calc(100vh - 188px));
    overflow: auto;
    padding: 0.65rem 0.7rem 0.75rem;
    display: grid;
    gap: 0.55rem;
}

.labels-notice-item-card {
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: none;
}

.labels-notice-item-card .labels-notice-item-body {
    padding: 0.7rem 0.8rem;
}

.labels-notice-item-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.labels-notice-item-message {
    margin: 0.32rem 0 0;
    font-size: 0.76rem;
    line-height: 1.35;
    color: #64748b;
}

.labels-notice-item-time {
    margin: 0.4rem 0 0;
    font-size: 0.68rem;
    line-height: 1.15;
    color: #94a3b8;
}

.labels-notice-empty {
    padding: 1rem 0.85rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
    background: rgba(248, 250, 252, 0.85);
}

html[data-theme="dark"] #notice-list.labels-notice-popover,
body.analytics-dashboard-theme-dark #notice-list.labels-notice-popover {
    border-color: rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(26, 36, 52, 0.97), rgba(20, 30, 45, 0.98));
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .labels-notice-popover-head,
body.analytics-dashboard-theme-dark .labels-notice-popover-head {
    border-bottom-color: rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(34, 47, 66, 0.95), rgba(26, 38, 56, 0.94));
}

html[data-theme="dark"] .labels-notice-popover-title,
body.analytics-dashboard-theme-dark .labels-notice-popover-title {
    color: #e8eef9;
}

html[data-theme="dark"] .labels-notice-popover-subtitle,
body.analytics-dashboard-theme-dark .labels-notice-popover-subtitle,
html[data-theme="dark"] .labels-notice-item-message,
body.analytics-dashboard-theme-dark .labels-notice-item-message {
    color: #a9b8cd;
}

html[data-theme="dark"] .labels-notice-close-btn,
body.analytics-dashboard-theme-dark .labels-notice-close-btn {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #b8c6da;
}

html[data-theme="dark"] .labels-notice-close-btn:hover,
html[data-theme="dark"] .labels-notice-close-btn:focus,
body.analytics-dashboard-theme-dark .labels-notice-close-btn:hover,
body.analytics-dashboard-theme-dark .labels-notice-close-btn:focus {
    color: #eef4ff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.24);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.22);
}

html[data-theme="dark"] .labels-notice-item-card,
body.analytics-dashboard-theme-dark .labels-notice-item-card {
    border-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
}

html[data-theme="dark"] .labels-notice-item-title,
body.analytics-dashboard-theme-dark .labels-notice-item-title {
    color: #e6eefb;
}

html[data-theme="dark"] .labels-notice-item-time,
body.analytics-dashboard-theme-dark .labels-notice-item-time {
    color: #8193ad;
}

html[data-theme="dark"] .labels-notice-empty,
body.analytics-dashboard-theme-dark .labels-notice-empty {
    color: #a9b8cd;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 767.98px) {
    #notice-list.labels-notice-popover {
        right: 0.5rem;
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 96px);
    }

    .labels-notice-list {
        max-height: calc(100vh - 180px);
        padding: 0.6rem;
    }
}

/* Songs page modern UI (global reusable) */
.songs-modern-page.dashboard-analytics {
    padding-bottom: 1rem;
}

.songs-modern-page .page-title-box {
    margin-bottom: 0.75rem;
}

.songs-ui-page-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.songs-ui-hero-card .card-body {
    padding: 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.songs-ui-hero-head {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.songs-ui-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
}

.songs-ui-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    flex: 0 0 auto;
}

.songs-ui-hero-icon i {
    font-size: 1.2rem;
}

.songs-ui-hero-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--analytics-text-muted);
    font-weight: 700;
}

.songs-ui-hero-title {
    margin: 0.15rem 0 0.2rem;
    color: var(--analytics-text-strong);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.songs-ui-hero-subtitle {
    margin: 0;
    color: var(--analytics-text-muted);
    max-width: 640px;
}

.songs-ui-hero-mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--analytics-chip-border);
    background: var(--analytics-chip-bg);
    color: var(--analytics-chip-text);
    font-weight: 700;
    font-size: 0.82rem;
}

.songs-ui-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
    flex: 1 1 auto;
    align-content: stretch;
    grid-auto-rows: minmax(98px, 1fr);
}

.songs-ui-stat-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-solid) 94%, transparent);
    min-height: 98px;
}

.songs-ui-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
}

.songs-ui-stat-card-total .songs-ui-stat-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.songs-ui-stat-card-approved .songs-ui-stat-icon { background: linear-gradient(135deg, #059669, #10b981); }
.songs-ui-stat-card-pending .songs-ui-stat-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.songs-ui-stat-card-rejected .songs-ui-stat-icon { background: linear-gradient(135deg, #dc2626, #ef4444); }

.songs-ui-stat-value {
    color: var(--analytics-text-strong);
    font-size: 1.15rem;
    line-height: 1.1;
    font-weight: 800;
}

.songs-ui-stat-label {
    color: var(--analytics-text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-top: 0.1rem;
}

.songs-ui-table-card .card-body {
    padding: 1rem;
}

.songs-ui-table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.songs-ui-table-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--analytics-text-strong);
    font-weight: 800;
    font-size: 1.12rem;
}

.songs-ui-table-subtitle {
    margin: 0.2rem 0 0;
    color: var(--analytics-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.songs-ui-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--analytics-border);
    padding: 0.36rem 0.58rem;
    color: var(--analytics-text-muted);
    background: color-mix(in srgb, var(--analytics-surface-alt) 85%, transparent);
    font-weight: 700;
    font-size: 0.74rem;
}

.songs-ui-table-head-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

button.songs-ui-status-badge.songs-ui-status-badge-btn {
    appearance: none;
    -webkit-appearance: none;
    background: color-mix(in srgb, var(--analytics-surface-alt) 85%, transparent);
    color: var(--analytics-text-muted);
    cursor: pointer;
    box-shadow: none;
    line-height: 1;
}

button.songs-ui-status-badge.songs-ui-status-badge-btn:hover,
button.songs-ui-status-badge.songs-ui-status-badge-btn:focus {
    color: var(--analytics-accent);
    border-color: color-mix(in srgb, var(--analytics-accent) 26%, var(--analytics-border));
    background: color-mix(in srgb, var(--analytics-accent-soft) 42%, var(--analytics-surface-alt));
    outline: 0;
}

button.songs-ui-status-badge.songs-ui-status-badge-btn::after {
    margin-left: .2rem;
    vertical-align: middle;
}

.songs-ui-table-head-filter .songs-ui-dropdown-menu {
    min-width: 210px;
}

.songs-ui-table-head-filter .analytics-filter-menu {
    left: auto;
    right: 0;
    width: min(680px, calc(100vw - 28px));
    min-width: 600px;
}

.songs-ui-date-filter-form.songs-ui-date-filter-form-head {
    margin: 0;
    flex: 0 0 auto;
}

.songs-ui-table-date-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.songs-ui-table-date-icon-wrap .analytics-filter-date-icon-btn {
    border-radius: 14px;
}

.songs-ui-toolbar-wrap {
    border: 1px solid var(--analytics-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
    padding: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.songs-ui-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.songs-ui-toolbar-status,
.songs-ui-toolbar-actions,
.songs-ui-date-filter-form {
    min-width: 0;
}

.songs-ui-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.songs-ui-selection-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.38rem 0.55rem;
    border-radius: 11px;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-alt) 88%, transparent);
}

.songs-ui-selection-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--analytics-text);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.songs-ui-selection-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--analytics-accent);
    cursor: pointer;
}

.songs-ui-selection-count {
    color: var(--analytics-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.songs-ui-btn {
    min-height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    border: 1px solid transparent;
    padding: 0.38rem 0.65rem;
    box-shadow: none;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.songs-ui-btn i { font-size: 0.92rem; line-height: 1; }

.songs-ui-btn-soft {
    background: var(--analytics-chip-bg);
    color: var(--analytics-chip-text);
    border-color: var(--analytics-chip-border);
}

.songs-ui-btn-success {
    background: var(--analytics-success-bg);
    color: var(--analytics-success-text);
    border-color: var(--analytics-success-border);
}

.songs-ui-btn-danger {
    background: var(--analytics-danger-bg);
    color: var(--analytics-danger-text);
    border-color: var(--analytics-danger-border);
}

.songs-ui-btn-dark {
    background: color-mix(in srgb, var(--analytics-surface-alt) 90%, transparent);
    color: var(--analytics-text);
    border-color: var(--analytics-border);
}

.songs-ui-btn:not(:disabled):hover,
.songs-ui-btn:not(:disabled):focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.songs-ui-btn-soft:not(:disabled):hover,
.songs-ui-btn-soft:not(:disabled):focus {
    border-color: color-mix(in srgb, var(--analytics-accent) 28%, var(--analytics-chip-border));
    background: color-mix(in srgb, var(--analytics-accent-soft) 60%, var(--analytics-chip-bg));
    color: var(--analytics-accent);
}

.songs-ui-btn-success:not(:disabled):hover,
.songs-ui-btn-success:not(:disabled):focus {
    background: color-mix(in srgb, var(--analytics-success-bg) 72%, #ffffff);
}

.songs-ui-btn-danger:not(:disabled):hover,
.songs-ui-btn-danger:not(:disabled):focus {
    background: color-mix(in srgb, var(--analytics-danger-bg) 72%, #ffffff);
}

.songs-ui-btn-dark:not(:disabled):hover,
.songs-ui-btn-dark:not(:disabled):focus {
    border-color: color-mix(in srgb, var(--analytics-accent) 26%, var(--analytics-border));
    color: var(--analytics-accent);
    background: color-mix(in srgb, var(--analytics-accent-soft) 38%, var(--analytics-surface-alt));
}

.songs-ui-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.songs-ui-dropdown-menu {
    border-radius: 12px;
    border-color: var(--analytics-border);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    background: var(--analytics-surface-solid);
}

.songs-ui-dropdown-menu .dropdown-item {
    color: var(--analytics-text);
    font-weight: 600;
}

.songs-ui-dropdown-menu .dropdown-item:hover,
.songs-ui-dropdown-menu .dropdown-item:focus {
    background: var(--analytics-accent-soft);
    color: var(--analytics-accent);
}

.songs-ui-date-filter-form {
    margin: 0;
    margin-left: auto;
    flex: 0 0 auto;
}

.songs-ui-date-icon-control {
    width: 38px;
    height: 38px;
}

.songs-ui-search-form {
    margin: 0;
    min-width: 0;
    width: auto;
    flex: 1 1 360px;
    max-width: 620px;
}

.songs-ui-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    border-radius: 11px;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
    padding: 0 0.58rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.songs-ui-search-box:focus-within {
    border-color: var(--analytics-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.songs-ui-search-icon {
    color: var(--analytics-text-muted);
    font-size: 0.94rem;
    flex: 0 0 auto;
}

.songs-ui-search-input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 34px !important;
    padding: 0 !important;
    color: var(--analytics-text) !important;
    font-size: 0.9rem !important;
    line-height: 1.2;
}

.songs-ui-search-input::placeholder {
    color: var(--analytics-text-muted);
    font-size: 0.88rem;
}

.songs-ui-table-responsive {
    border: 1px solid var(--analytics-border);
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
}

.songs-ui-data-table {
    margin-bottom: 0 !important;
}

.songs-ui-data-table thead th {
    background: color-mix(in srgb, var(--analytics-surface-alt) 88%, transparent);
    color: var(--analytics-text-muted);
    border-bottom-color: var(--analytics-border);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}

.songs-ui-data-table tbody td {
    color: var(--analytics-text);
    border-color: color-mix(in srgb, var(--analytics-border) 75%, transparent);
    vertical-align: middle;
    font-size: 0.9rem;
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
}

.songs-ui-data-table tbody tr:hover {
    background: color-mix(in srgb, var(--analytics-accent-soft) 45%, transparent);
}

.songs-ui-data-table .action-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-solid) 94%, transparent);
    color: var(--analytics-text-muted);
    margin-right: 0.15rem;
}

.songs-ui-data-table .action-icon:hover {
    color: var(--analytics-accent);
    border-color: color-mix(in srgb, var(--analytics-accent) 35%, var(--analytics-border));
    background: var(--analytics-accent-soft);
}

.songs-ui-data-table .action-icon i {
    font-size: 1rem;
}

.songs-ui-data-table .badge {
    font-size: 0.86rem !important;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.songs-ui-data-table input.row-select {
    width: 18px;
    height: 18px;
    accent-color: var(--analytics-accent);
    cursor: pointer;
}

.songs-ui-table-card .pagination {
    margin-top: 0.9rem;
}

.songs-ui-overview-shell {
    overflow: hidden;
}

.songs-ui-overview-shell > .card-body {
    padding: 0 !important;
}

.songs-ui-overview-toggle {
    width: 100%;
    border: 0;
    margin: 0;
    padding: .9rem 1rem;
    background:
        radial-gradient(circle at 10% -40%, color-mix(in srgb, var(--analytics-accent-soft) 80%, transparent), transparent 55%),
        linear-gradient(180deg, color-mix(in srgb, var(--analytics-surface-solid) 98%, transparent), color-mix(in srgb, var(--analytics-surface-alt) 94%, transparent));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    text-align: left;
    border-bottom: 1px solid color-mix(in srgb, var(--analytics-border) 85%, transparent);
    transition: background-color .18s ease, border-color .18s ease;
}

.songs-ui-overview-toggle:hover {
    background:
        radial-gradient(circle at 10% -40%, color-mix(in srgb, var(--analytics-accent-soft) 90%, transparent), transparent 58%),
        linear-gradient(180deg, color-mix(in srgb, var(--analytics-surface-solid) 99%, transparent), color-mix(in srgb, var(--analytics-surface-alt) 96%, transparent));
}

.songs-ui-overview-toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--analytics-accent) 35%, transparent);
}

.songs-ui-overview-toggle-main {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}

.songs-ui-overview-title-wrap {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.songs-ui-overview-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9 60%, #4f46e5);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
    flex: 0 0 auto;
}

.songs-ui-overview-title {
    color: var(--analytics-text-strong);
    font-weight: 800;
    letter-spacing: -.02em;
}

.songs-ui-overview-sub {
    margin-top: .1rem;
    color: var(--analytics-text-muted);
    font-size: .78rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 560px);
}

.songs-ui-overview-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap;
}

.songs-ui-overview-toggle[aria-expanded="true"] .songs-ui-overview-summary {
    display: none;
}

.songs-ui-overview-chip,
.songs-ui-overview-rate {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 85%, transparent);
    background: color-mix(in srgb, var(--analytics-surface-solid) 98%, transparent);
    color: var(--analytics-text-muted);
    padding: .35rem .6rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.songs-ui-overview-chip.is-success {
    color: #059669;
    border-color: rgba(16, 185, 129, .2);
    background: rgba(16, 185, 129, .08);
}

.songs-ui-overview-chip.is-warn {
    color: #d97706;
    border-color: rgba(245, 158, 11, .22);
    background: rgba(245, 158, 11, .09);
}

.songs-ui-overview-chip.is-danger {
    color: #dc2626;
    border-color: rgba(239, 68, 68, .2);
    background: rgba(239, 68, 68, .07);
}

.songs-ui-overview-rate {
    color: color-mix(in srgb, var(--analytics-accent) 82%, var(--analytics-text));
    border-color: color-mix(in srgb, var(--analytics-accent) 24%, var(--analytics-border));
    background: color-mix(in srgb, var(--analytics-accent-soft) 55%, transparent);
}

.songs-ui-overview-chevron {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--analytics-text-muted);
    background: color-mix(in srgb, var(--analytics-surface-alt) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--analytics-border) 85%, transparent);
    transition: transform .18s ease, color .18s ease, border-color .18s ease;
    flex: 0 0 auto;
}

.songs-ui-overview-toggle:hover .songs-ui-overview-chevron {
    color: var(--analytics-accent);
    border-color: color-mix(in srgb, var(--analytics-accent) 24%, var(--analytics-border));
}

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

.songs-ui-overview-content {
    padding: .95rem;
}

.songs-ui-top-grid .card {
    height: 100%;
}

.songs-ui-console-card .card-body {
    padding: 1rem 1rem .95rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    min-height: 100%;
}

.songs-ui-console-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.songs-ui-console-eyebrow {
    color: var(--analytics-text-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.songs-ui-console-title {
    margin: .15rem 0 0;
    color: var(--analytics-text-strong);
    font-weight: 800;
    letter-spacing: -.02em;
}

.songs-ui-console-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .55rem;
    border-radius: 999px;
    border: 1px solid var(--analytics-chip-border);
    background: var(--analytics-chip-bg);
    color: var(--analytics-chip-text);
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.songs-ui-console-display {
    border-radius: 16px;
    border: 1px solid var(--analytics-border);
    background:
        radial-gradient(circle at 85% 10%, rgba(59,130,246,.14), transparent 38%),
        linear-gradient(160deg, rgba(15,23,42,.04), rgba(255,255,255,.02));
    padding: .85rem .9rem;
    position: relative;
    overflow: hidden;
}

.songs-ui-console-display::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--analytics-accent) 18%, transparent);
    opacity: .55;
}

.songs-ui-console-display-label {
    color: var(--analytics-text-muted);
    font-size: .72rem;
    letter-spacing: .08em;
    font-weight: 700;
    text-transform: uppercase;
}

.songs-ui-console-display-value {
    margin-top: .35rem;
    color: var(--analytics-text-strong);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 20ch;
}

.songs-ui-console-display-meta {
    margin-top: .35rem;
    color: var(--analytics-text-soft);
    font-size: .78rem;
}

.songs-ui-console-meter {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
}

.songs-ui-console-meter-ring {
    --songs-approve-rate: 0;
    --songs-approve-color: #2563eb;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent) 59%, transparent 60%),
        conic-gradient(var(--songs-approve-color) calc(var(--songs-approve-rate) * 1%), rgba(148,163,184,.18) 0);
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 88%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.songs-ui-console-meter-core {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--analytics-border) 82%, transparent);
}

.songs-ui-console-meter-value {
    display: block;
    color: var(--analytics-text-strong);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1;
}

.songs-ui-console-meter-label {
    display: block;
    color: var(--analytics-text-muted);
    font-size: .64rem;
    margin-top: .15rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
}

.songs-ui-console-meter-stats {
    display: grid;
    gap: .45rem;
}

.songs-ui-console-mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 82%, transparent);
    background: color-mix(in srgb, var(--analytics-surface-alt) 86%, transparent);
}

.songs-ui-console-mini-stat .label {
    color: var(--analytics-text-muted);
    font-size: .78rem;
    font-weight: 600;
}

.songs-ui-console-mini-stat .value {
    color: var(--analytics-text-strong);
    font-weight: 800;
}

.songs-ui-console-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
}

.songs-ui-console-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    color: var(--analytics-text);
    font-weight: 700;
    font-size: .76rem;
    border-radius: 999px;
    padding: .38rem .58rem;
    border: 1px solid var(--analytics-border);
    background: color-mix(in srgb, var(--analytics-surface-solid) 96%, transparent);
}

.songs-ui-console-pill:hover,
.songs-ui-console-pill:focus {
    color: var(--analytics-accent);
    border-color: color-mix(in srgb, var(--analytics-accent) 28%, var(--analytics-border));
    background: color-mix(in srgb, var(--analytics-accent-soft) 44%, transparent);
}

.songs-ui-song-cell {
    min-width: 240px;
}

.songs-ui-song-media {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.songs-ui-song-cover {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 46%),
        linear-gradient(135deg, #1d4ed8, #4f46e5 55%, #0ea5e9);
    box-shadow: 0 8px 18px rgba(37,99,235,.12);
    flex-shrink: 0;
}

.songs-ui-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.songs-ui-song-cover-fallback {
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .03em;
}

.songs-ui-song-copy {
    min-width: 0;
}

.songs-ui-song-title {
    display: block;
    color: var(--analytics-text-strong);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.songs-ui-song-meta {
    display: block;
    margin-top: .12rem;
    color: var(--analytics-text-soft);
    font-size: .73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.songs-ui-date-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .55rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 85%, transparent);
    background: color-mix(in srgb, var(--analytics-surface-alt) 90%, transparent);
    font-weight: 700;
    font-size: .76rem;
    color: var(--analytics-text);
    white-space: nowrap;
}

.songs-ui-uploaded-cell {
    min-width: 180px;
}

.songs-ui-uploader-stack {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.songs-ui-uploader-primary {
    display: block;
    color: var(--analytics-text);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songs-ui-uploader-secondary {
    display: block;
    color: var(--analytics-text-soft);
    font-size: .73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songs-ui-status-pill {
    border-radius: 999px !important;
    padding: .28rem .6rem !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
}

.songs-ui-remarks-cell {
    max-width: 170px;
    color: var(--analytics-text-muted);
    font-size: .84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songs-ui-data-table th.songs-ui-remarks-col,
.songs-ui-data-table td.songs-ui-remarks-col {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
}

.songs-ui-data-table th.songs-ui-action-col,
.songs-ui-data-table td.table-action {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    white-space: nowrap;
}

.songs-ui-data-table td.table-action {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}

@media (max-width: 1199.98px) {
    .songs-ui-console-card .card-body {
        gap: .75rem;
    }

    .songs-ui-console-meter {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .songs-ui-console-meter-ring {
        width: 120px;
        height: 120px;
    }

    .songs-ui-search-form {
        flex: 1 1 100%;
        max-width: none;
    }

    .songs-ui-toolbar-actions {
        justify-content: flex-start;
    }

    .songs-ui-date-filter-form {
        margin-left: 0;
        order: 3;
    }

    .songs-ui-overview-summary {
        width: 100%;
        justify-content: flex-start;
    }

    .songs-ui-overview-sub {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .songs-ui-table-head-filter {
        width: 100%;
        justify-content: flex-end;
    }

    .songs-ui-table-head-filter .analytics-filter-menu {
        width: min(100vw - 20px, 680px);
        min-width: 0;
        right: 0;
        left: auto;
    }

    .songs-ui-overview-toggle {
        padding: .8rem .85rem;
        align-items: flex-start;
    }

    .songs-ui-overview-toggle-main {
        gap: .65rem;
    }

    .songs-ui-overview-title-wrap {
        width: 100%;
    }

    .songs-ui-overview-summary {
        width: 100%;
        gap: .4rem;
    }

    .songs-ui-overview-chip,
    .songs-ui-overview-rate {
        font-size: .72rem;
    }

    .songs-ui-overview-content {
        padding: .75rem;
    }

    .songs-ui-console-head {
        flex-wrap: wrap;
    }

    .songs-ui-console-badge {
        width: 100%;
        justify-content: center;
    }

    .songs-ui-console-meter {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .songs-ui-console-meter-stats {
        width: 100%;
    }

    .songs-ui-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(92px, 1fr);
    }

    .songs-ui-toolbar-row {
        align-items: stretch;
    }

    .songs-ui-toolbar-actions {
        width: 100%;
    }

    .songs-ui-selection-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .songs-ui-date-filter-form {
        order: 0;
        margin-left: 0;
    }

    .songs-ui-search-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .songs-ui-btn {
        flex: 1 1 calc(50% - 0.3rem);
        justify-content: center;
        font-size: 0.8rem;
    }

    .songs-ui-song-title,
    .songs-ui-song-meta {
        max-width: 170px;
    }

    .songs-ui-toolbar-status .songs-ui-btn-soft {
        width: 100%;
        justify-content: center;
    }

    .songs-ui-table-responsive {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .songs-ui-data-table {
        min-width: 0 !important;
    }

    .songs-ui-data-table thead {
        display: none;
    }

    .songs-ui-data-table tbody,
    .songs-ui-data-table tr,
    .songs-ui-data-table td {
        display: block;
        width: 100%;
    }

    .songs-ui-data-table tbody tr {
        border: 1px solid var(--analytics-border);
        border-radius: 12px;
        margin-bottom: .7rem;
        background: color-mix(in srgb, var(--analytics-surface-solid) 98%, transparent);
        overflow: hidden;
    }

    .songs-ui-data-table tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .65rem;
        border-bottom: 1px solid color-mix(in srgb, var(--analytics-border) 78%, transparent);
        padding: .62rem .72rem !important;
    }

    .songs-ui-data-table tbody td:last-child {
        border-bottom: 0;
    }

    .songs-ui-data-table tbody td::before {
        content: attr(data-label);
        color: var(--analytics-text-muted);
        font-size: .65rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        line-height: 1.2;
        flex: 0 0 84px;
        margin-top: .15rem;
    }

    .songs-ui-song-cell,
    .songs-ui-uploaded-cell,
    .songs-ui-data-table td.songs-ui-remarks-col,
    .songs-ui-data-table td.table-action {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .songs-ui-song-cell .songs-ui-song-media,
    .songs-ui-uploaded-cell .songs-ui-uploader-stack,
    .songs-ui-data-table td.songs-ui-remarks-col .songs-ui-remarks-cell {
        flex: 1 1 auto;
        min-width: 0;
    }

    .songs-ui-song-title,
    .songs-ui-song-meta,
    .songs-ui-remarks-cell {
        max-width: none;
    }

    .songs-ui-data-table td.table-action {
        align-items: center;
    }

    .songs-ui-data-table td.table-action .action-icon {
        margin-right: .35rem;
    }

    .songs-ui-data-table td[data-label="Select"] {
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .songs-ui-console-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .songs-ui-console-pill {
        justify-content: center;
    }

    .songs-ui-stat-grid {
        grid-template-columns: 1fr;
    }

    .songs-ui-toolbar-actions .songs-ui-btn {
        flex: 1 1 100%;
    }

    .songs-ui-selection-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }

    .songs-ui-song-title,
    .songs-ui-song-meta {
        max-width: none;
    }
}

.analytics-topbar-profile-meta .account-user-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.05;
}

.analytics-topbar-profile-meta .account-position {
    color: #64748b;
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1.05;
}

.analytics-profile-dropdown {
    width: 286px;
    min-width: 286px;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.98);
}

.analytics-profile-dropdown-head {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.analytics-profile-dropdown-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.analytics-profile-dropdown-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.analytics-profile-dropdown-badge {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: 2px solid #fff;
}

.analytics-profile-dropdown-meta {
    min-width: 0;
}

.analytics-profile-dropdown-name {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.15;
    font-size: 0.9rem;
}

.analytics-profile-dropdown-role {
    margin-top: 0.08rem;
    font-size: 0.7rem;
    color: #475569;
    font-weight: 600;
}

.analytics-profile-dropdown-email {
    margin-top: 0.08rem;
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 185px;
}

.analytics-profile-dropdown-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
    padding-inline: 0.15rem;
}

.analytics-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    font-size: 0.67rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #475569;
    background: rgba(248, 250, 252, 0.78);
}

.analytics-profile-pill-role {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(37, 99, 235, 0.08);
}

.analytics-profile-pill-online {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.08);
}

.analytics-profile-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.analytics-profile-dropdown-item {
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.6rem !important;
    color: #0f172a;
    font-weight: 500;
    font-size: 0.88rem;
}

.analytics-profile-dropdown-item i {
    color: #64748b;
    font-size: 0.95rem;
}

.analytics-profile-dropdown-item:hover,
.analytics-profile-dropdown-item:focus,
.analytics-profile-dropdown-item-card:hover,
.analytics-profile-dropdown-item-card:focus {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.analytics-profile-dropdown-item-danger {
    color: #b42318;
}

.analytics-profile-dropdown-item-danger i {
    color: #ef4444;
}

.analytics-profile-dropdown-item-danger:hover,
.analytics-profile-dropdown-item-danger:focus {
    background: rgba(239, 68, 68, 0.08);
    color: #b42318;
}

.analytics-profile-dropdown-divider {
    margin: 0.35rem 0;
    border-top-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .analytics-topbar-profile-trigger,
body.analytics-dashboard-theme-dark .analytics-topbar-profile-trigger {
    background: rgba(17, 24, 39, 0.85);
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .analytics-topbar-profile-meta .account-user-name,
body.analytics-dashboard-theme-dark .analytics-topbar-profile-meta .account-user-name {
    color: #e5edf8;
}

html[data-theme="dark"] .analytics-topbar-profile-meta .account-position,
body.analytics-dashboard-theme-dark .analytics-topbar-profile-meta .account-position {
    color: #b6c2d9;
}

html[data-theme="dark"] .analytics-topbar-profile-email,
html[data-theme="dark"] .analytics-topbar-profile-caret,
body.analytics-dashboard-theme-dark .analytics-topbar-profile-email,
body.analytics-dashboard-theme-dark .analytics-topbar-profile-caret {
    color: #b6c2d9;
}

html[data-theme="dark"] .analytics-profile-status-dot,
body.analytics-dashboard-theme-dark .analytics-profile-status-dot {
    border-color: #111827;
}

html[data-theme="dark"] .analytics-profile-dropdown,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown {
    background: rgba(17, 24, 39, 0.98);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .analytics-profile-dropdown-head,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-head {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.88));
    border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .analytics-profile-dropdown-name,
html[data-theme="dark"] .analytics-profile-dropdown-item,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-name,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-item {
    color: #e5edf8;
}

html[data-theme="dark"] .analytics-profile-dropdown-role,
html[data-theme="dark"] .analytics-profile-dropdown-email,
html[data-theme="dark"] .analytics-profile-dropdown-item i,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-role,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-email,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-item i {
    color: #b6c2d9;
}

html[data-theme="dark"] .analytics-profile-pill,
body.analytics-dashboard-theme-dark .analytics-profile-pill {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(148, 163, 184, 0.14);
    color: #dbe5f5;
}

html[data-theme="dark"] .analytics-profile-pill-role,
body.analytics-dashboard-theme-dark .analytics-profile-pill-role {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
}

html[data-theme="dark"] .analytics-profile-pill-online,
body.analytics-dashboard-theme-dark .analytics-profile-pill-online {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

html[data-theme="dark"] .analytics-profile-dropdown-item:hover,
html[data-theme="dark"] .analytics-profile-dropdown-item:focus,
html[data-theme="dark"] .analytics-profile-dropdown-item-card:hover,
html[data-theme="dark"] .analytics-profile-dropdown-item-card:focus,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-item:hover,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-item:focus,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-item-card:hover,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-item-card:focus {
    background: rgba(96, 165, 250, 0.14);
    color: #dbeafe;
}

html[data-theme="dark"] .analytics-profile-dropdown-divider,
body.analytics-dashboard-theme-dark .analytics-profile-dropdown-divider {
    border-top-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 991.98px) {
    .analytics-topbar-profile-meta {
        display: none;
    }

    .analytics-topbar-profile-trigger {
        padding: 0.25rem 0.35rem !important;
        gap: 0.35rem;
        min-height: 40px !important;
        height: 40px !important;
        min-width: 84px !important;
        max-width: none;
    }

    .analytics-topbar-profile-trigger::after {
        display: none;
    }

    .analytics-topbar-profile-trigger .account-user-avatar {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (max-width: 575.98px) {
    .analytics-profile-dropdown {
        min-width: 260px;
        width: min(286px, calc(100vw - 20px));
        right: 8px !important;
        left: auto !important;
    }
}

/* Labels topbar profile trigger (moved from labels/topbar.php) */
.labels-topbar-profile-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .9);
    padding: .28rem .55rem !important;
    max-width: 280px;
}

.labels-topbar-profile-trigger .labels-topbar-profile-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #64748b;
    flex: 0 0 auto;
    position: relative;
}

.labels-topbar-profile-trigger .labels-topbar-profile-caret i {
    display: none;
}

.labels-topbar-profile-trigger .labels-topbar-profile-caret::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
}

.labels-topbar-profile-trigger .account-user-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.labels-topbar-profile-trigger .account-user-avatar img {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.labels-topbar-profile-meta {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.05;
}

.labels-topbar-profile-meta .account-user-name {
    font-weight: 700;
    color: #0f172a;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labels-topbar-profile-email {
    color: #64748b;
    font-size: .68rem;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .labels-topbar-profile-meta {
        display: none;
    }

    .labels-topbar-profile-trigger {
        padding: .25rem .4rem !important;
        min-height: 40px;
        height: 40px;
    }

    .labels-topbar-profile-trigger .account-user-avatar,
    .labels-topbar-profile-trigger .account-user-avatar img {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
}

/* Firebase-like dashboard overview analytics module */
.analytics-overview-count-chip {
    font-weight: 700;
    background: #ffffff;
}

.analytics-overview-count-chip-link {
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, color .14s ease;
}

.analytics-overview-count-chip-link:hover,
.analytics-overview-count-chip-link:focus {
    color: inherit !important;
    border-color: color-mix(in srgb, var(--analytics-accent) 30%, var(--analytics-border)) !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.analytics-overview-count-chip i {
    font-size: 0.95rem;
}

.analytics-dashboard-overview-shell {
    overflow: hidden;
    padding: 0.6rem;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-dashboard-overview-shell,
body.analytics-dashboard-theme-dark .analytics-dashboard-overview-shell {
    background: var(--analytics-surface-solid);
}

.analytics-dashboard-overview-shell > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

.analytics-dashboard-overview-shell > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.analytics-dashboard-overview-shell .analytics-hero,
.analytics-dashboard-overview-shell .analytics-firebase-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.analytics-dashboard-overview-shell .analytics-firebase-panel.analytics-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.analytics-dashboard-overview-shell .analytics-hero {
    padding: 0.4rem 0.4rem 0.8rem;
}

.analytics-dashboard-overview-shell .analytics-firebase-panel .card-body {
    padding: 0.55rem 0.4rem 0.4rem;
}

.analytics-dashboard-overview-shell .analytics-filter-chip,
.analytics-dashboard-overview-shell .analytics-range-pill {
    background: #ffffff;
    border-color: var(--analytics-border);
    color: var(--analytics-text-muted);
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-dashboard-overview-shell .analytics-filter-chip,
.dashboard-analytics[data-analytics-theme="dark"] .analytics-dashboard-overview-shell .analytics-range-pill,
body.analytics-dashboard-theme-dark .analytics-dashboard-overview-shell .analytics-filter-chip,
body.analytics-dashboard-theme-dark .analytics-dashboard-overview-shell .analytics-range-pill {
    background: color-mix(in srgb, var(--analytics-surface-alt) 82%, transparent);
    border-color: color-mix(in srgb, var(--analytics-border) 95%, transparent);
    color: var(--analytics-chip-text);
}

.analytics-firebase-panel {
    border-radius: 18px;
}

.analytics-firebase-panel .card-body {
    padding: 1rem;
}

.analytics-firebase-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.analytics-firebase-panel-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--analytics-border);
    background: var(--analytics-surface-solid);
    color: var(--analytics-text-muted);
}

.analytics-firebase-panel-action:hover,
.analytics-firebase-panel-action:focus {
    color: var(--analytics-accent);
    border-color: var(--analytics-accent);
    background: #ffffff;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-firebase-panel-action:hover,
.dashboard-analytics[data-analytics-theme="dark"] .analytics-firebase-panel-action:focus,
body.analytics-dashboard-theme-dark .analytics-firebase-panel-action:hover,
body.analytics-dashboard-theme-dark .analytics-firebase-panel-action:focus {
    background: color-mix(in srgb, var(--analytics-accent-soft) 62%, var(--analytics-surface-solid));
    box-shadow: 0 0 0 3px rgba(106, 169, 255, 0.1);
}

.analytics-firebase-inner-card {
    border: 1px solid color-mix(in srgb, var(--analytics-border) 88%, transparent);
    background: color-mix(in srgb, var(--analytics-surface-solid) 95%, transparent);
    border-radius: 14px;
    padding: 0.85rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.analytics-firebase-inner-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.analytics-firebase-inner-head-stack {
    display: block;
    margin-bottom: 0.45rem;
}

.analytics-firebase-metric-label {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--analytics-text-muted);
    font-weight: 700;
}

.analytics-firebase-metric-value {
    font-size: 1.75rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--analytics-text-strong);
    letter-spacing: -0.02em;
    margin-top: 0.15rem;
}

.analytics-firebase-metric-sub {
    font-size: 0.76rem;
    color: var(--analytics-text-muted);
    margin-top: 0.15rem;
}

.analytics-firebase-mini-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.23rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--analytics-text-muted);
    background: #ffffff;
    border: 1px solid var(--analytics-border);
    white-space: nowrap;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-firebase-mini-pill,
body.analytics-dashboard-theme-dark .analytics-firebase-mini-pill {
    background: color-mix(in srgb, var(--analytics-surface-alt) 84%, transparent);
    border-color: color-mix(in srgb, var(--analytics-border) 92%, transparent);
    color: var(--analytics-text-muted);
}

.analytics-chart-wrap-md {
    height: 210px;
}

.analytics-chart-wrap-xs {
    height: 165px;
}

.analytics-chart-wrap-firebase {
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 75%, transparent);
    padding: 0.35rem;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-wrap-firebase,
body.analytics-dashboard-theme-dark .analytics-chart-wrap-firebase {
    background:
        linear-gradient(180deg, rgba(22, 34, 53, 0.9) 0%, rgba(18, 28, 44, 0.92) 100%);
    border-color: color-mix(in srgb, var(--analytics-border) 88%, transparent);
}

.analytics-chart-wrap-no-grid {
    background: transparent;
    border: 0;
    padding: 0;
}

.analytics-firebase-pie-card .analytics-firebase-metric-value {
    font-size: 1.55rem;
}

.analytics-firebase-pie-card {
    display: flex;
    flex-direction: column;
}

.analytics-firebase-status-list {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.4rem;
}

.analytics-firebase-status-list .analytics-chip {
    font-size: 0.66rem;
    padding: 0.2rem 0.45rem;
}

.analytics-firebase-stat-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 86%, transparent);
    background: color-mix(in srgb, var(--analytics-surface-solid) 95%, transparent);
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
    height: 100%;
}

.analytics-firebase-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--analytics-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-firebase-stat-icon,
body.analytics-dashboard-theme-dark .analytics-firebase-stat-icon {
    background: color-mix(in srgb, var(--analytics-surface-alt) 80%, rgba(255, 255, 255, 0.02));
    color: #84b8ff;
    border: 1px solid color-mix(in srgb, var(--analytics-border) 82%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-analytics[data-analytics-theme="dark"] .analytics-chart-wrap-firebase canvas,
body.analytics-dashboard-theme-dark .analytics-chart-wrap-firebase canvas {
    filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.12));
}

.analytics-firebase-stat-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--analytics-text-muted);
    font-weight: 700;
}

.analytics-firebase-stat-value {
    margin-top: 0.1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--analytics-text-strong);
    line-height: 1.05;
}

html[data-theme="dark"] .analytics-firebase-inner-card,
body.analytics-dashboard-theme-dark .analytics-firebase-inner-card,
html[data-theme="dark"] .analytics-firebase-stat-card,
body.analytics-dashboard-theme-dark .analytics-firebase-stat-card {
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    .analytics-chart-wrap-md {
        height: 190px;
    }
}

@media (max-width: 991.98px) {
    .analytics-firebase-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .analytics-chart-wrap-md {
        height: 180px;
    }

    .analytics-chart-wrap-xs {
        height: 150px;
    }
}

@media (max-width: 767.98px) {
    .analytics-firebase-panel .card-body {
        padding: 0.85rem;
    }

    .analytics-firebase-inner-card {
        padding: 0.75rem;
    }

    .analytics-firebase-metric-value {
        font-size: 1.45rem;
    }

    .analytics-firebase-pie-card .analytics-firebase-metric-value {
        font-size: 1.35rem;
    }

    .analytics-chart-wrap-md {
        height: 170px;
    }

    .analytics-overview-count-chip {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
    }
}

/* Rounded topbar profile badge (desktop) */
@media (min-width: 992px) {
    .analytics-topbar-profile-trigger-card {
        position: relative;
        min-height: 66px !important;
        height: 66px !important;
        max-width: 126px;
        min-width: 108px;
        padding: 0.45rem 0.65rem 0.35rem 0.65rem !important;
        border-radius: 18px;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
    }

    .analytics-topbar-profile-trigger-card::after {
        display: none;
    }

    .analytics-topbar-profile-trigger-card .analytics-topbar-profile-meta {
        margin-left: auto;
        align-items: flex-end;
        text-align: right;
        padding-right: 0.05rem;
        max-width: 74px;
    }

    .analytics-topbar-profile-trigger-card .analytics-topbar-profile-meta .account-user-name {
        max-width: 74px;
        font-size: 0.82rem;
    }

    .analytics-topbar-profile-trigger-card .analytics-topbar-profile-meta .account-position {
        font-size: 0.64rem;
    }

    .analytics-topbar-profile-trigger-card .account-user-avatar {
        position: absolute;
        left: 10px;
        bottom: -10px;
        z-index: 2;
    }

    .analytics-topbar-profile-trigger-card .account-user-avatar img {
        width: 42px;
        height: 42px;
        border: 2px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    }

    html[data-theme="dark"] .analytics-topbar-profile-trigger-card .account-user-avatar img,
    body.analytics-dashboard-theme-dark .analytics-topbar-profile-trigger-card .account-user-avatar img {
        border-color: rgba(17, 24, 39, 0.92);
    }

    .analytics-topbar-profile-trigger-card .analytics-profile-status-dot {
        right: -2px;
        bottom: -2px;
        width: 11px;
        height: 11px;
    }
}


/* ===== Users Management Page (admin/users.php) ===== */
    .users-modern-page {
        --users-bg: #eef2f9;
        --users-surface: rgba(255, 255, 255, 0.9);
        --users-surface-strong: rgba(255, 255, 255, 0.98);
        --users-border: #dbe4f0;
        --users-border-strong: #cdd8ea;
        --users-text: #0f172a;
        --users-text-muted: #64748b;
        --users-text-soft: #94a3b8;
        --users-accent: #4f46e5;
        --users-accent-2: #2563eb;
        --users-accent-3: #06b6d4;
        --users-accent-soft: #eef2ff;
        --users-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
        --users-shadow-lg: 0 24px 52px rgba(15, 23, 42, 0.14);
        background:
            radial-gradient(circle at 10% 6%, rgba(79, 70, 229, 0.12), transparent 44%),
            radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.10), transparent 42%),
            linear-gradient(180deg, #f7faff 0%, var(--users-bg) 55%, #eaf0f8 100%);
    }

    .users-modern-page .page-title-box {
        display: none;
    }

    .users-modern-page .users-hero {
        position: relative;
        overflow: hidden;
        border-radius: 22px;
        padding: 1.15rem;
        background:
            radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.22), transparent 34%),
            radial-gradient(circle at 18% 92%, rgba(167, 139, 250, 0.18), transparent 36%),
            linear-gradient(135deg, #0b1220 0%, #13213c 42%, #2d2c86 100%);
        color: #fff;
        box-shadow: 0 26px 58px rgba(15, 23, 42, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .users-modern-page .users-hero::after {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        right: -110px;
        top: -110px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        filter: blur(6px);
        pointer-events: none;
    }

    .users-modern-page .users-hero-grid {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 1rem;
        align-items: stretch;
    }

    .users-modern-page .users-hero-main {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: .9rem;
    }

    .users-modern-page .hero-brand {
        display: inline-flex;
        align-items: center;
        gap: .75rem;
        align-self: flex-start;
        padding: .55rem .8rem;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(6px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .users-modern-page .hero-brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.95));
        overflow: hidden;
    }

    .users-modern-page .hero-brand-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .users-modern-page .hero-brand-copy {
        line-height: 1.15;
    }

    .users-modern-page .hero-brand-copy .eyebrow {
        display: block;
        color: rgba(255, 255, 255, 0.74);
        font-size: .75rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .users-modern-page .hero-brand-copy .name {
        display: block;
        font-weight: 700;
        font-size: .95rem;
        color: #fff;
    }

    .users-modern-page .hero-title {
        margin: 0;
        font-size: clamp(1.35rem, 2vw, 2rem);
        font-weight: 700;
        letter-spacing: -0.02em;
        color: #fff;
    }

    .users-modern-page .hero-subtitle {
        margin: .35rem 0 0;
        color: rgba(255, 255, 255, 0.78);
        max-width: 60ch;
        line-height: 1.5;
    }

    .users-modern-page .hero-filter-pill {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .45rem .7rem;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #fff;
        font-weight: 600;
        font-size: .85rem;
        width: fit-content;
    }

    .users-modern-page .hero-filter-pill i {
        color: #93c5fd;
    }

    .users-modern-page .users-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .users-modern-page .stat-tile {
        min-height: 86px;
        border-radius: 16px;
        padding: .85rem .95rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
    }

    .users-modern-page .users-hero-stats .stat-tile:nth-child(1) {
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.13), rgba(255, 255, 255, 0.07));
    }

    .users-modern-page .users-hero-stats .stat-tile:nth-child(2) {
        background: linear-gradient(180deg, rgba(16, 185, 129, 0.10), rgba(255, 255, 255, 0.07));
    }

    .users-modern-page .users-hero-stats .stat-tile:nth-child(3) {
        background: linear-gradient(180deg, rgba(239, 68, 68, 0.10), rgba(255, 255, 255, 0.07));
    }

    .users-modern-page .users-hero-stats .stat-tile:nth-child(4) {
        background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.07));
    }

    .users-modern-page .stat-tile .label {
        color: rgba(255, 255, 255, 0.72);
        font-size: .82rem;
    }

    .users-modern-page .stat-tile .value {
        margin-top: .35rem;
        font-weight: 700;
        font-size: 1.4rem;
        color: #fff;
        line-height: 1;
    }

    .users-modern-page .stat-tile .meta {
        margin-top: .35rem;
        font-size: .75rem;
        color: rgba(255, 255, 255, 0.65);
    }

    .users-modern-page .users-table-card {
        margin-top: 1rem;
        position: relative;
        border: 1px solid var(--users-border);
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 255, 0.88));
        box-shadow: var(--users-shadow);
        overflow: hidden;
    }

    .users-modern-page .users-table-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: linear-gradient(90deg, var(--users-accent), var(--users-accent-2), var(--users-accent-3));
        opacity: .9;
        pointer-events: none;
    }

    .users-modern-page .users-table-card .card-body {
        padding: 1.15rem 1.15rem 1rem;
    }

    .users-modern-page .users-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: .85rem;
        margin-bottom: 1rem;
    }

    .users-modern-page .users-toolbar-left {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .65rem;
    }

    .users-modern-page .toolbar-chip {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .45rem .7rem;
        border-radius: 999px;
        background: linear-gradient(180deg, #f8fbff, #f2f6fd);
        border: 1px solid var(--users-border);
        color: #44556f;
        font-weight: 600;
        font-size: .82rem;
    }

    .users-modern-page .toolbar-chip i {
        color: var(--users-accent);
    }

    .users-modern-page .btn.users-status-btn {
        border: 0;
        border-radius: 12px;
        padding: .65rem .95rem;
        background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 60%, #06b6d4 100%);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 12px 24px rgba(59, 130, 246, 0.24);
    }

    .users-modern-page .btn.users-status-btn:hover,
    .users-modern-page .btn.users-status-btn:focus {
        color: #fff;
        opacity: .96;
    }

    .users-modern-page .dropdown-menu {
        border-radius: 14px;
        border: 1px solid var(--users-border);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
        padding: .4rem;
    }

    .users-modern-page .dropdown-menu .dropdown-item {
        border-radius: 10px;
        padding: .55rem .65rem;
        font-weight: 500;
    }

    .users-modern-page .dropdown-menu .dropdown-item:hover {
        background: #eef2ff;
        color: var(--users-accent);
    }

    .users-modern-page #basic-datatable_wrapper .row:first-child {
        align-items: center;
        margin-bottom: .25rem;
    }

    .users-modern-page #basic-datatable_wrapper .dataTables_length label,
    .users-modern-page #basic-datatable_wrapper .dataTables_filter label {
        color: var(--users-text-muted);
        font-weight: 500;
    }

    .users-modern-page #basic-datatable_wrapper .form-select,
    .users-modern-page #basic-datatable_wrapper .form-control {
        border-radius: 10px;
        border-color: var(--users-border);
        background-color: #fbfdff;
        min-height: 38px;
        box-shadow: none;
    }

    .users-modern-page #basic-datatable_wrapper .form-control:focus,
    .users-modern-page #basic-datatable_wrapper .form-select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 .18rem rgba(99, 102, 241, 0.1);
    }

    .users-modern-page .table-responsive-shell {
        border-radius: 16px;
        border: 1px solid #e7edf7;
        background: rgba(255, 255, 255, 0.85);
        overflow: hidden;
    }

    .users-modern-page #basic-datatable {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .users-modern-page #basic-datatable thead th {
        background: linear-gradient(180deg, #f8fbff, #f3f7ff);
        color: #425269;
        font-weight: 700;
        font-size: .83rem;
        letter-spacing: .02em;
        text-transform: uppercase;
        border-bottom: 1px solid #dde5f2 !important;
        padding: .9rem .8rem;
        white-space: nowrap;
    }

    .users-modern-page #basic-datatable tbody td {
        border-bottom: 1px solid #eaf0f8;
        vertical-align: middle;
        padding: .85rem .8rem;
        background: rgba(255, 255, 255, 0.92);
    }

    .users-modern-page #basic-datatable tbody tr:hover td {
        background: linear-gradient(180deg, #fcfdff, #f7faff);
    }

    .users-modern-page .index-badge {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: linear-gradient(180deg, #eef2ff, #e8eeff);
        color: var(--users-accent);
        font-weight: 700;
        font-size: .85rem;
        border: 1px solid #d9e2ff;
    }

    .users-modern-page .user-cell {
        display: flex;
        align-items: center;
        gap: .75rem;
        min-width: 220px;
    }

    .users-modern-page .user-media {
        position: relative;
        flex-shrink: 0;
    }

    .users-modern-page .user-avatar,
    .users-modern-page .user-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .users-modern-page .user-avatar {
        display: grid;
        place-items: center;
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 48%, #7c3aed 100%);
        color: #fff;
        font-weight: 700;
        font-size: .85rem;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 20px rgba(79, 70, 229, 0.14);
    }

    .users-modern-page .user-logo {
        background: #fff;
        border: 1px solid #e3eaf5;
        padding: .2rem;
        overflow: hidden;
        display: grid;
        place-items: center;
        box-shadow: 0 6px 12px rgba(15, 23, 42, 0.05);
    }

    .users-modern-page .user-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .users-modern-page .user-copy {
        min-width: 0;
    }

    .users-modern-page .user-copy .name {
        display: block;
        color: var(--users-text);
        font-weight: 600;
        line-height: 1.2;
    }

    .users-modern-page .user-copy .meta {
        display: block;
        color: var(--users-text-soft);
        font-size: .75rem;
        margin-top: .15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .users-modern-page .email-stack {
        min-width: 210px;
    }

    .users-modern-page .email-stack .primary {
        color: #1e293b;
        font-weight: 500;
        text-decoration: none;
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .users-modern-page .email-stack .primary:hover {
        color: var(--users-accent);
    }

    .users-modern-page .email-stack .secondary {
        display: block;
        color: #8796ad;
        font-size: .75rem;
        margin-top: .1rem;
    }

    .users-modern-page .role-pill {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        padding: .35rem .65rem;
        border-radius: 999px;
        border: 1px solid #cfe0ff;
        background: linear-gradient(180deg, #eef4ff, #e9f1ff);
        color: #2456cf;
        font-weight: 600;
        font-size: .78rem;
    }

    .users-modern-page .role-pill i {
        font-size: .9rem;
    }

    .users-modern-page .status-pill {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        padding: .35rem .7rem;
        border-radius: 999px;
        font-weight: 700;
        font-size: .78rem;
        border: 1px solid transparent;
        line-height: 1;
    }

    .users-modern-page .status-pill::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
        opacity: .9;
    }

    .users-modern-page .status-active {
        background: linear-gradient(180deg, #edfff7, #e7faef);
        color: #059669;
        border-color: #a7f3d0;
    }

    .users-modern-page .status-pending {
        background: linear-gradient(180deg, #fffdf0, #fff8df);
        color: #d97706;
        border-color: #fde68a;
    }

    .users-modern-page .status-blocked {
        background: linear-gradient(180deg, #fff3f4, #feecee);
        color: #dc2626;
        border-color: #fecaca;
    }

    .users-modern-page .date-stack {
        color: #334155;
        font-weight: 500;
        white-space: nowrap;
    }

    .users-modern-page .date-stack i {
        color: #8ea0ba;
        margin-right: .25rem;
    }

    .users-modern-page .action-group {
        display: flex;
        align-items: center;
        gap: .35rem;
    }

    .users-modern-page .action-icon-btn {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        border: 1px solid var(--users-border);
        background: linear-gradient(180deg, #fff, #f8fbff);
        color: #64748b;
        transition: all .15s ease;
    }

    .users-modern-page .action-icon-btn:hover:not(.is-disabled):not([aria-disabled="true"]) {
        color: var(--users-accent);
        border-color: #c9d5ff;
        background: linear-gradient(180deg, #f2f5ff, #edf3ff);
        box-shadow: 0 8px 16px rgba(79, 70, 229, 0.10);
    }

    .users-modern-page .action-icon-btn.is-disabled,
    .users-modern-page .action-icon-btn[aria-disabled="true"] {
        color: #94a3b8;
        border-color: #dbe4f0;
        background: linear-gradient(180deg, #f8fafc, #f1f5f9);
        cursor: not-allowed;
        pointer-events: none;
        box-shadow: none;
    }

    .users-modern-page #basic-datatable_wrapper .dataTables_info {
        color: var(--users-text-muted);
        padding-top: .85rem !important;
        font-weight: 500;
    }

    .users-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
        border-radius: 10px !important;
        border: 1px solid transparent !important;
        color: var(--users-text-muted) !important;
    }

    .users-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
        background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 65%, #06b6d4 100%) !important;
        color: #fff !important;
        border-color: transparent !important;
        box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    }

    .users-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
        background: #eef2ff !important;
        color: var(--users-accent) !important;
        border-color: #c7d2fe !important;
    }

    @media (max-width: 1199.98px) {
        .users-modern-page .users-hero-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 767.98px) {
        .users-modern-page .users-hero {
            border-radius: 16px;
            padding: .95rem;
        }

        .users-modern-page .users-hero-stats {
            grid-template-columns: 1fr 1fr;
        }

        .users-modern-page .users-table-card {
            border-radius: 16px;
        }

        .users-modern-page .users-table-card .card-body {
            padding: .9rem .75rem .8rem;
        }

        .users-modern-page .users-toolbar {
            align-items: stretch;
        }

        .users-modern-page .users-toolbar-left {
            width: 100%;
        }

        .users-modern-page .btn.users-status-btn,
        .users-modern-page .toolbar-chip {
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 575.98px) {
        .users-modern-page .users-hero-stats {
            grid-template-columns: 1fr;
        }

        .users-modern-page .hero-subtitle {
            font-size: .9rem;
        }

        .users-modern-page #basic-datatable_wrapper .dataTables_filter,
        .users-modern-page #basic-datatable_wrapper .dataTables_length {
            width: 100%;
            text-align: left !important;
        }

        .users-modern-page #basic-datatable_wrapper .dataTables_filter input {
            width: 100%;
            margin-left: 0 !important;
            margin-top: .35rem;
        }
    }

/* ===== User Edit Page (admin/edit_user.php) ===== */
.user-editor-modern-page {
    --editor-bg: #eef2f9;
    --editor-surface: rgba(255, 255, 255, 0.92);
    --editor-border: #dbe4f0;
    --editor-border-strong: #cfd9ea;
    --editor-text: #0f172a;
    --editor-text-muted: #64748b;
    --editor-text-soft: #94a3b8;
    --editor-accent: #4f46e5;
    --editor-accent-2: #2563eb;
    --editor-accent-3: #06b6d4;
    background:
        radial-gradient(circle at 10% 3%, rgba(79, 70, 229, 0.10), transparent 42%),
        radial-gradient(circle at 92% 10%, rgba(6, 182, 212, 0.08), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, var(--editor-bg) 58%, #eaf0f8 100%);
}

.user-editor-modern-page .page-title-box {
    display: none;
}

.user-editor-modern-page .user-editor-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.15rem;
    background:
        radial-gradient(circle at 85% 14%, rgba(14, 165, 233, 0.22), transparent 34%),
        radial-gradient(circle at 18% 92%, rgba(167, 139, 250, 0.18), transparent 36%),
        linear-gradient(135deg, #0b1220 0%, #13213c 45%, #2d2c86 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.user-editor-modern-page .user-editor-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -110px;
    right: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(6px);
    pointer-events: none;
}

.user-editor-modern-page .user-editor-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

.user-editor-modern-page .editor-hero-main {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.user-editor-modern-page .editor-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    align-self: flex-start;
    padding: .52rem .75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
}

.user-editor-modern-page .editor-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.user-editor-modern-page .editor-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.user-editor-modern-page .editor-brand-copy .eyebrow {
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.user-editor-modern-page .editor-brand-copy .name {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.user-editor-modern-page .editor-user-row {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.user-editor-modern-page .editor-user-avatar,
.user-editor-modern-page .editor-user-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
}

.user-editor-modern-page .editor-user-avatar {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #8b5cf6);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.user-editor-modern-page .editor-user-logo {
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.18);
    display: grid;
    place-items: center;
    padding: .2rem;
    overflow: hidden;
}

.user-editor-modern-page .editor-user-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.user-editor-modern-page .editor-user-copy .label {
    display: block;
    color: rgba(255,255,255,.74);
    font-size: .75rem;
}

.user-editor-modern-page .editor-user-copy .value {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
}

.user-editor-modern-page .editor-user-copy .meta {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    margin-top: .12rem;
}

.user-editor-modern-page .editor-hero-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.user-editor-modern-page .editor-hero-subtitle {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
    max-width: 58ch;
}

.user-editor-modern-page .editor-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.user-editor-modern-page .editor-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .68rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
}

.user-editor-modern-page .editor-chip i {
    color: #93c5fd;
}

.user-editor-modern-page .editor-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}

.user-editor-modern-page .editor-stat-card {
    border-radius: 16px;
    padding: .85rem .95rem;
    min-height: 88px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
}

.user-editor-modern-page .editor-stat-card .title {
    font-size: .8rem;
    color: rgba(255,255,255,.74);
}

.user-editor-modern-page .editor-stat-card .value {
    margin-top: .32rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.user-editor-modern-page .editor-stat-card .meta {
    margin-top: .28rem;
    font-size: .74rem;
    color: rgba(255,255,255,.65);
}

.user-editor-modern-page .editor-panel {
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid var(--editor-border);
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(249,252,255,.90));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    position: relative;
}

.user-editor-modern-page .editor-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--editor-accent), var(--editor-accent-2), var(--editor-accent-3));
}

.user-editor-modern-page .editor-panel .card-body {
    padding: 1.15rem;
}

.user-editor-modern-page .editor-section + .editor-section {
    margin-top: 1rem;
}

.user-editor-modern-page .editor-section-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--editor-text);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: .75rem;
}

.user-editor-modern-page .editor-section-title i {
    color: var(--editor-accent);
}

.user-editor-modern-page .editor-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.user-editor-modern-page .editor-info-card {
    border: 1px solid var(--editor-border);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    padding: .8rem .85rem;
}

.user-editor-modern-page .editor-info-card .label {
    display: block;
    color: var(--editor-text-muted);
    font-size: .78rem;
    margin-bottom: .28rem;
}

.user-editor-modern-page .editor-info-card .value {
    display: block;
    color: var(--editor-text);
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.user-editor-modern-page .editor-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.user-editor-modern-page .editor-field label {
    display: block;
    color: #334155;
    font-weight: 600;
    margin-bottom: .45rem;
}

.user-editor-modern-page .editor-field .form-control,
.user-editor-modern-page .editor-field .form-select,
.user-editor-modern-page .editor-field select {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--editor-border);
    background: #fbfdff;
    padding: .55rem .9rem;
    box-shadow: none;
}

.user-editor-modern-page .editor-field .form-control:focus,
.user-editor-modern-page .editor-field .form-select:focus,
.user-editor-modern-page .editor-field select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 .18rem rgba(99, 102, 241, 0.10);
}

.user-editor-modern-page .editor-help {
    margin-top: .45rem;
    color: var(--editor-text-soft);
    font-size: .78rem;
}

.user-editor-modern-page .editor-alert {
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    padding: .75rem .85rem;
    font-weight: 500;
}

.user-editor-modern-page .editor-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding-top: .95rem;
    border-top: 1px solid #e7edf7;
}

.user-editor-modern-page .editor-actions-left {
    color: var(--editor-text-muted);
    font-size: .82rem;
}

.user-editor-modern-page .btn.editor-btn-primary {
    border: 0;
    border-radius: 12px;
    min-height: 46px;
    padding: .6rem 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 60%, #06b6d4 100%);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.22);
}

.user-editor-modern-page .btn.editor-btn-primary:hover,
.user-editor-modern-page .btn.editor-btn-primary:focus {
    color: #fff;
}

.user-editor-modern-page .btn.editor-btn-secondary {
    border-radius: 12px;
    min-height: 46px;
    padding: .6rem 1rem;
    border: 1px solid var(--editor-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #475569;
    font-weight: 600;
}

.user-editor-modern-page .btn.editor-btn-secondary:hover {
    border-color: var(--editor-border-strong);
    color: var(--editor-text);
}

@media (max-width: 1199.98px) {
    .user-editor-modern-page .user-editor-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .user-editor-modern-page .user-editor-hero,
    .user-editor-modern-page .editor-panel {
        border-radius: 16px;
    }

    .user-editor-modern-page .editor-panel .card-body {
        padding: .95rem .85rem;
    }

    .user-editor-modern-page .editor-readonly-grid,
    .user-editor-modern-page .editor-form-grid,
    .user-editor-modern-page .editor-hero-stats {
        grid-template-columns: 1fr;
    }

    .user-editor-modern-page .editor-actions {
        align-items: stretch;
    }

    .user-editor-modern-page .editor-actions .btn {
        width: 100%;
    }
}

/* ===== User Edit Shared Workspace Variant (admin/edit_user.php) ===== */
.user-editor-modern-page.user-editor-shared-workspace-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.05), transparent 40%),
        radial-gradient(circle at 92% 10%, rgba(99,102,241,.05), transparent 42%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f8 72%, #e9eff6 100%);
}

.user-editor-modern-page.user-editor-shared-workspace-page .user-editor-shared-shell {
    margin-top: .2rem;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
    padding: .85rem;
}

.user-editor-modern-page.user-editor-shared-workspace-page .user-editor-hero {
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    color: #0f172a;
    box-shadow: none;
}

.user-editor-modern-page.user-editor-shared-workspace-page .user-editor-hero::after {
    display: none;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-user-copy .label {
    color: #64748b;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-user-copy .value {
    color: #0f172a;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-user-copy .meta {
    color: #64748b;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-hero-title {
    color: #0f172a;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-chip {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-color: #e2e8f0;
    color: #334155;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-chip i {
    color: #64748b;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-hero-stats {
    align-content: start;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f9fbff);
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card .title {
    color: #64748b;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card .value {
    color: #0f172a;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card .meta {
    color: #94a3b8;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-panel {
    margin-top: .85rem;
    border-radius: 18px;
    border-color: #e2e8f0;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    box-shadow: none;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-panel::before {
    height: 2px;
    opacity: .8;
    background: linear-gradient(90deg, #3b82f6, #6366f1 45%, #06b6d4);
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-info-card {
    background: #fff;
    border-color: #e8eef7;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-field label {
    color: #334155;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-field .form-control,
.user-editor-modern-page.user-editor-shared-workspace-page .editor-field .form-select,
.user-editor-modern-page.user-editor-shared-workspace-page .editor-field select {
    background: #fbfdff;
    border-color: #e2e8f0;
}

.user-editor-modern-page.user-editor-shared-workspace-page .editor-actions {
    border-top-color: #edf1f7;
}

.user-editor-modern-page.user-editor-shared-workspace-page .btn.editor-btn-secondary {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-color: #e2e8f0;
}

@media (max-width: 767.98px) {
    .user-editor-modern-page.user-editor-shared-workspace-page .user-editor-shared-shell {
        border-radius: 16px;
        padding: .7rem;
    }

    .user-editor-modern-page.user-editor-shared-workspace-page .user-editor-hero,
    .user-editor-modern-page.user-editor-shared-workspace-page .editor-panel {
        border-radius: 14px;
    }
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(59,130,246,.10), transparent 44%),
        radial-gradient(circle at 92% 10%, rgba(99,102,241,.10), transparent 46%),
        linear-gradient(180deg, #0b1220 0%, #101a2d 72%, #0c1424 100%);
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .user-editor-shared-shell {
    border-color: #243246;
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 40px rgba(2,6,23,.30);
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .user-editor-hero {
    border-color: #243246;
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(13,20,34,.94));
    color: #e5edf7;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-user-copy .label {
    color: #a9b8cc;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-user-copy .value,
html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-hero-title {
    color: #f8fbff;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-user-copy .meta {
    color: #9db0c9;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-chip {
    background: rgba(255,255,255,.03);
    border-color: rgba(148,163,184,.16);
    color: #c9d6e8;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-chip i {
    color: #9fb2cd;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card {
    border-color: #243246;
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card .title {
    color: #b7c8dc;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card .value {
    color: #f8fbff;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-stat-card .meta {
    color: #9db0c9;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-panel {
    border-color: #243246;
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-info-card {
    border-color: #27354a;
    background: rgba(17,24,39,.55);
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-info-card .label {
    color: #a9b8cc;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-info-card .value {
    color: #e5edf7;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-section-title {
    color: #e5edf7;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-section-title i {
    color: #93c5fd;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-field label,
html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-actions-left {
    color: #a9b8cc;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-field .form-control,
html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-field .form-select,
html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-field select {
    border-color: #2c3a51;
    background: #111a2c;
    color: #e5edf7;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-field .form-control::placeholder {
    color: #7f93ae;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-help {
    color: #8da0ba;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-alert {
    border-color: rgba(248,113,113,.30);
    background: rgba(220,38,38,.14);
    color: #fca5a5;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .editor-actions {
    border-top-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .btn.editor-btn-secondary {
    border-color: rgba(148,163,184,.18);
    background: linear-gradient(180deg, #162033, #111a2c);
    color: #d7e3f2;
}

html[data-theme="dark"] .user-editor-modern-page.user-editor-shared-workspace-page .btn.editor-btn-secondary:hover {
    background: linear-gradient(180deg, #1a2740, #142138);
    color: #f2f7ff;
    border-color: rgba(148,163,184,.24);
}

/* ===== Billing Page (admin/billing.php) ===== */
.billing-modern-page {
    --bill-bg: #edf3fa;
    --bill-surface: rgba(255, 255, 255, 0.92);
    --bill-border: #dbe6f2;
    --bill-border-strong: #cfdced;
    --bill-text: #0f172a;
    --bill-text-muted: #64748b;
    --bill-text-soft: #94a3b8;
    --bill-primary: #2563eb;
    --bill-primary-2: #06b6d4;
    --bill-primary-3: #14b8a6;
    --bill-success: #059669;
    --bill-warning: #d97706;
    --bill-danger: #dc2626;
    background:
        radial-gradient(circle at 8% 4%, rgba(37, 99, 235, 0.10), transparent 42%),
        radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.10), transparent 38%),
        linear-gradient(180deg, #f8fbff 0%, var(--bill-bg) 56%, #e9f0f8 100%);
}

.billing-modern-page .page-title-box {
    display: none;
}

.billing-modern-page .billing-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.15rem;
    background:
        radial-gradient(circle at 86% 16%, rgba(34, 211, 238, 0.22), transparent 34%),
        radial-gradient(circle at 14% 88%, rgba(59, 130, 246, 0.16), transparent 36%),
        linear-gradient(135deg, #071a33 0%, #10294a 46%, #0f4c81 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.billing-modern-page .billing-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    filter: blur(6px);
    pointer-events: none;
}

.billing-modern-page .billing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    gap: 1rem;
}

.billing-modern-page .billing-hero-main {
    display: flex;
    flex-direction: column;
    gap: .95rem;
    justify-content: space-between;
}

.billing-modern-page .billing-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    align-self: flex-start;
    padding: .55rem .8rem;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
}

.billing-modern-page .billing-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.billing-modern-page .billing-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.billing-modern-page .billing-brand-copy .eyebrow {
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.billing-modern-page .billing-brand-copy .name {
    display: block;
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
}

.billing-modern-page .billing-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.billing-modern-page .billing-subtitle {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.80);
    line-height: 1.5;
    max-width: 60ch;
}

.billing-modern-page .billing-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 600;
    font-size: .84rem;
    width: fit-content;
}

.billing-modern-page .billing-filter-pill i {
    color: #7dd3fc;
}

.billing-modern-page .billing-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}

.billing-modern-page .billing-stat-card {
    border-radius: 16px;
    padding: .85rem .95rem;
    min-height: 88px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
}

.billing-modern-page .billing-stat-card .label {
    color: rgba(255,255,255,.74);
    font-size: .8rem;
}

.billing-modern-page .billing-stat-card .value {
    margin-top: .35rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    font-size: 1.3rem;
}

.billing-modern-page .billing-stat-card .meta {
    margin-top: .3rem;
    color: rgba(255,255,255,.65);
    font-size: .74rem;
}

.billing-modern-page .billing-table-card {
    position: relative;
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid var(--bill-border);
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,252,255,.90));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.billing-modern-page .billing-table-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bill-primary), var(--bill-primary-2), var(--bill-primary-3));
}

.billing-modern-page .billing-table-card .card-body {
    padding: 1.1rem 1.15rem 1rem;
}

.billing-modern-page .billing-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.billing-modern-page .billing-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.billing-modern-page .billing-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .44rem .68rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff, #f2f7ff);
    border: 1px solid var(--bill-border);
    color: #44566f;
    font-weight: 600;
    font-size: .82rem;
}

.billing-modern-page .billing-chip i {
    color: var(--bill-primary);
}

.billing-modern-page .btn.billing-btn-primary,
.billing-modern-page .btn.billing-btn-filter {
    border: 0;
    border-radius: 12px;
    min-height: 42px;
    padding: .6rem .95rem;
    color: #fff;
    font-weight: 600;
}

.billing-modern-page .btn.billing-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
    box-shadow: 0 12px 24px rgba(37,99,235,.22);
}

.billing-modern-page .btn.billing-btn-filter {
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 60%, #2563eb 100%);
    box-shadow: 0 12px 24px rgba(8,145,178,.18);
}

.billing-modern-page .btn.billing-btn-primary:hover,
.billing-modern-page .btn.billing-btn-primary:focus,
.billing-modern-page .btn.billing-btn-filter:hover,
.billing-modern-page .btn.billing-btn-filter:focus {
    color: #fff;
}

.billing-modern-page .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--bill-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
    padding: .4rem;
}

.billing-modern-page .dropdown-menu .dropdown-item {
    border-radius: 10px;
    padding: .55rem .65rem;
    font-weight: 500;
}

.billing-modern-page .dropdown-menu .dropdown-item:hover {
    background: #e9f3ff;
    color: #1d4ed8;
}

.billing-modern-page #basic-datatable_wrapper .row:first-child {
    align-items: center;
    margin-bottom: .25rem;
}

.billing-modern-page #basic-datatable_wrapper .dataTables_length label,
.billing-modern-page #basic-datatable_wrapper .dataTables_filter label {
    color: var(--bill-text-muted);
    font-weight: 500;
}

.billing-modern-page #basic-datatable_wrapper .form-select,
.billing-modern-page #basic-datatable_wrapper .form-control {
    border-radius: 10px;
    border-color: var(--bill-border);
    background-color: #fbfdff;
    min-height: 38px;
    box-shadow: none;
}

.billing-modern-page #basic-datatable_wrapper .form-control:focus,
.billing-modern-page #basic-datatable_wrapper .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 .18rem rgba(59,130,246,.10);
}

.billing-modern-page .billing-table-shell {
    border-radius: 16px;
    border: 1px solid #e5edf7;
    background: rgba(255,255,255,.86);
    overflow: hidden;
}

.billing-modern-page #basic-datatable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.billing-modern-page #basic-datatable thead th {
    background: linear-gradient(180deg, #f8fbff, #f3f8ff);
    color: #425269;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid #dde7f3 !important;
    padding: .9rem .8rem;
    white-space: nowrap;
}

.billing-modern-page #basic-datatable tbody td {
    border-bottom: 1px solid #eaf0f8;
    padding: .85rem .8rem;
    vertical-align: middle;
    background: rgba(255,255,255,.94);
}

.billing-modern-page #basic-datatable tbody tr:hover td {
    background: linear-gradient(180deg, #fcfeff, #f6fbff);
}

.billing-modern-page .bill-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #e9f3ff, #e3eeff);
    color: #1d4ed8;
    border: 1px solid #cfe0ff;
    font-weight: 700;
    font-size: .84rem;
}

.billing-modern-page .customer-cell {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 210px;
}

.billing-modern-page .customer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    background: linear-gradient(135deg, #2563eb, #0ea5e9 55%, #14b8a6);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}

.billing-modern-page .customer-copy .name {
    display: block;
    color: var(--bill-text);
    font-weight: 600;
    line-height: 1.2;
}

.billing-modern-page .customer-copy .meta {
    display: block;
    color: var(--bill-text-soft);
    font-size: .75rem;
    margin-top: .15rem;
}

.billing-modern-page .invoice-cell {
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.billing-modern-page .invoice-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(180deg, #edf4ff, #e7f0ff);
    border: 1px solid #d7e5ff;
    flex-shrink: 0;
}

.billing-modern-page .invoice-copy .name {
    display: block;
    color: #1e293b;
    font-weight: 600;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.billing-modern-page .invoice-copy .meta {
    display: block;
    color: #94a3b8;
    font-size: .74rem;
    margin-top: .1rem;
}

.billing-modern-page .pay-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    line-height: 1;
    border: 1px solid transparent;
}

.billing-modern-page .pay-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.billing-modern-page .pay-pill-paid {
    color: var(--bill-success);
    background: linear-gradient(180deg, #effdf6, #e7faef);
    border-color: #a7f3d0;
}

.billing-modern-page .pay-pill-unpaid {
    color: var(--bill-danger);
    background: linear-gradient(180deg, #fff4f5, #ffebee);
    border-color: #fecdd3;
}

.billing-modern-page .due-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #fbfdff, #f3f8ff);
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.billing-modern-page .due-chip i {
    color: #8ea0ba;
}

.billing-modern-page .due-chip.due-overdue {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff4f5, #ffebee);
    color: #dc2626;
}

.billing-modern-page .due-chip.due-soon {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffdf0, #fff8df);
    color: #d97706;
}

.billing-modern-page .action-group {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.billing-modern-page .bill-action-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--bill-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #64748b;
    transition: all .15s ease;
}

.billing-modern-page .bill-action-btn:hover {
    border-color: #cfe0ff;
    background: linear-gradient(180deg, #eef5ff, #e8f1ff);
    color: #1d4ed8;
    box-shadow: 0 8px 16px rgba(37,99,235,.10);
}

.billing-modern-page #basic-datatable_wrapper .dataTables_info {
    color: var(--bill-text-muted);
    font-weight: 500;
    padding-top: .85rem !important;
}

.billing-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    color: var(--bill-text-muted) !important;
}

.billing-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #0ea5e9, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

.billing-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9f3ff !important;
    border-color: #cfe0ff !important;
    color: #1d4ed8 !important;
}

@media (max-width: 1199.98px) {
    .billing-modern-page .billing-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .billing-modern-page .billing-hero,
    .billing-modern-page .billing-table-card {
        border-radius: 16px;
    }

    .billing-modern-page .billing-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .billing-modern-page .billing-table-card .card-body {
        padding: .95rem .8rem .85rem;
    }

    .billing-modern-page .billing-toolbar-left {
        width: 100%;
    }

    .billing-modern-page .btn.billing-btn-primary,
    .billing-modern-page .btn.billing-btn-filter,
    .billing-modern-page .billing-chip {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .billing-modern-page .billing-hero-stats {
        grid-template-columns: 1fr;
    }

    .billing-modern-page .billing-subtitle {
        font-size: .9rem;
    }

    .billing-modern-page #basic-datatable_wrapper .dataTables_filter,
    .billing-modern-page #basic-datatable_wrapper .dataTables_length {
        width: 100%;
        text-align: left !important;
    }

    .billing-modern-page #basic-datatable_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0 !important;
        margin-top: .35rem;
    }
}

/* ===== Billing Shared Workspace Overrides (admin/billing.php) ===== */
.billing-modern-page.billing-shared-workspace-page {
    --bws-bg: #eef2f7;
    --bws-surface: #ffffff;
    --bws-surface-soft: #f8fafc;
    --bws-border: #e2e8f0;
    --bws-border-strong: #d5dfec;
    --bws-text: #0f172a;
    --bws-text-muted: #64748b;
    --bws-text-soft: #94a3b8;
    --bws-accent: #2563eb;
    --bws-accent-2: #06b6d4;
    --bws-accent-3: #4f46e5;
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.05), transparent 38%),
        radial-gradient(circle at 92% 10%, rgba(6,182,212,.05), transparent 42%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f8 72%, #e8eef6 100%);
}

.billing-modern-page.billing-shared-workspace-page .billing-shared-shell {
    margin-top: .2rem;
    border-radius: 22px;
    border: 1px solid var(--bws-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
    overflow: hidden;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .9rem;
    align-items: start;
    padding: 1.05rem 1.05rem .95rem;
    border-bottom: 1px solid #edf2f7;
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.08), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(6,182,212,.08), transparent 34%),
        linear-gradient(180deg, #ffffff, #fbfcff);
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-head::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .45;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,.25));
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-head-main,
.billing-modern-page.billing-shared-workspace-page .billing-workspace-actions {
    position: relative;
    z-index: 1;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-head-main {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    padding: .5rem .72rem;
    border-radius: 14px;
    border: 1px solid var(--bws-border);
    background: rgba(255,255,255,.92);
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e5edf7;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-brand-copy .eyebrow {
    display: block;
    color: var(--bws-text-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .69rem;
    line-height: 1.1;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-brand-copy .name {
    display: block;
    color: var(--bws-text);
    font-weight: 700;
    line-height: 1.15;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-title {
    margin: 0;
    color: var(--bws-text);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-subtitle {
    margin: 0;
    color: var(--bws-text-muted);
    line-height: 1.45;
    max-width: 64ch;
}

.billing-modern-page.billing-shared-workspace-page .billing-workspace-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.billing-modern-page.billing-shared-workspace-page .btn.billing-btn-primary {
    min-height: 44px;
    border-radius: 12px;
    padding: .6rem .95rem;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 12px 20px rgba(15,23,42,.10);
}

.billing-modern-page.billing-shared-workspace-page .btn.billing-btn-primary:hover,
.billing-modern-page.billing-shared-workspace-page .btn.billing-btn-primary:focus {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #fff;
}

.billing-modern-page.billing-shared-workspace-page .billing-overview-shell,
.billing-modern-page.billing-shared-workspace-page .billing-payment-shell {
    margin: 0 1.05rem 1rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-section-heading {
    margin: 0 0 .65rem;
    color: var(--bws-text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.billing-modern-page.billing-shared-workspace-page .billing-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: .9rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-overview-card {
    border-radius: 18px;
    border: 1px solid var(--bws-border);
    background: linear-gradient(180deg, #ffffff, #fafcff);
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    overflow: hidden;
}

.billing-modern-page.billing-shared-workspace-page .billing-overview-card-head {
    padding: .9rem 1rem .75rem;
    border-bottom: 1px solid #edf2f7;
}

.billing-modern-page.billing-shared-workspace-page .billing-overview-card-head h5 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--bws-text);
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-card-body {
    padding: .95rem 1rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .8rem;
    align-items: end;
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    padding: .32rem .58rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #effdf5;
    color: #15803d;
    font-weight: 700;
    font-size: .74rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-price {
    margin-top: .45rem;
    color: var(--bws-text);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.9rem;
    line-height: 1;
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-price span {
    color: var(--bws-text-soft);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: 0;
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-meta {
    margin-top: .45rem;
    color: var(--bws-text-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn {
    align-self: center;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #111827;
    font-weight: 700;
    padding: .55rem .9rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 4px 10px rgba(15,23,42,.04);
}

.billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn:hover,
.billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn:focus {
    color: #0f172a;
    background: #fff;
    border-color: var(--bws-border-strong);
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-grid {
    padding: .95rem 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .9rem .95rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-item {
    min-width: 0;
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .35rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-value {
    color: var(--bws-text);
    font-weight: 700;
    letter-spacing: -.015em;
    white-space: nowrap;
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-percent {
    color: var(--bws-text-muted);
    font-weight: 600;
    font-size: .8rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-bar {
    height: 6px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-bar-warning > span {
    background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-bar-danger > span {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-bar-neutral > span {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.billing-modern-page.billing-shared-workspace-page .billing-usage-label {
    margin-top: .35rem;
    color: var(--bws-text-muted);
    font-size: .79rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-table-card {
    margin: 0 1.05rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--bws-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.97));
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.billing-modern-page.billing-shared-workspace-page .billing-table-card::before {
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1 45%, #06b6d4);
    opacity: .85;
}

.billing-modern-page.billing-shared-workspace-page .billing-table-card .card-body {
    padding: .95rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .65rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-history-title {
    margin: 0;
    color: var(--bws-text);
    font-weight: 700;
    letter-spacing: -.015em;
}

.billing-modern-page.billing-shared-workspace-page .billing-history-subtitle {
    margin: .2rem 0 0;
    color: var(--bws-text-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.billing-modern-page.billing-shared-workspace-page .billing-toolbar {
    margin-bottom: .75rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #edf2f7;
}

.billing-modern-page.billing-shared-workspace-page .billing-chip {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: var(--bws-border);
    color: #475569;
    box-shadow: none;
}

.billing-modern-page.billing-shared-workspace-page .billing-chip i {
    color: #64748b;
}

.billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter {
    border-radius: 12px;
    border: 1px solid var(--bws-border);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #334155;
    box-shadow: none;
}

.billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter:hover,
.billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter:focus {
    background: #fff;
    border-color: var(--bws-border-strong);
    color: #0f172a;
}

.billing-modern-page.billing-shared-workspace-page .dropdown-menu {
    border-color: var(--bws-border);
    box-shadow: 0 14px 28px rgba(15,23,42,.10);
    background: #fff;
}

.billing-modern-page.billing-shared-workspace-page .dropdown-menu .dropdown-item:hover {
    background: #f4f7fd;
    color: #1e293b;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_length label,
.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_filter label {
    color: var(--bws-text-muted);
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .form-select,
.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .form-control {
    border-radius: 10px;
    border-color: var(--bws-border);
    background: #fbfdff;
    color: #0f172a;
}

.billing-modern-page.billing-shared-workspace-page .billing-table-shell {
    border-radius: 14px;
    border: 1px solid #e8eef7;
    background: #fff;
    overflow: auto;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable thead th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e5ecf5 !important;
    font-size: .8rem;
    letter-spacing: .02em;
    text-transform: none;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable tbody td {
    background: #fff;
    border-bottom-color: #edf2f8;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable tbody tr:hover td {
    background: #fafcff;
}

.billing-modern-page.billing-shared-workspace-page .bill-index {
    border-radius: 10px;
    border-color: #dfe7f4;
    background: linear-gradient(180deg, #f4f7ff, #eef2ff);
    color: #4f46e5;
}

.billing-modern-page.billing-shared-workspace-page .customer-avatar {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.billing-modern-page.billing-shared-workspace-page .customer-copy .name,
.billing-modern-page.billing-shared-workspace-page .invoice-copy .name {
    color: var(--bws-text);
}

.billing-modern-page.billing-shared-workspace-page .customer-copy .meta,
.billing-modern-page.billing-shared-workspace-page .invoice-copy .meta {
    color: var(--bws-text-soft);
}

.billing-modern-page.billing-shared-workspace-page .pay-pill-paid {
    background: #edfdf4;
    border-color: #a7f3d0;
    color: #059669;
}

.billing-modern-page.billing-shared-workspace-page .pay-pill-unpaid {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}

.billing-modern-page.billing-shared-workspace-page .bill-action-btn {
    border-color: var(--bws-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #64748b;
    box-shadow: none;
}

.billing-modern-page.billing-shared-workspace-page .bill-action-btn:hover {
    border-color: #cfe0ff;
    background: #eef5ff;
    color: #1d4ed8;
    box-shadow: none;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_info {
    color: var(--bws-text-muted);
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    color: var(--bws-text-muted) !important;
    background: transparent !important;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: none;
}

.billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f4f7fd !important;
    border-color: #d9e4f3 !important;
    color: #1e293b !important;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: .9rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card {
    position: relative;
    min-height: 180px;
    border-radius: 18px;
    border: 1px solid var(--bws-border);
    background: linear-gradient(180deg, #ffffff, #fafcff);
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    overflow: hidden;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-primary {
    padding: 1rem;
    border-color: #e5dccf;
    background:
        radial-gradient(circle at 12% 16%, rgba(249,115,22,.26), transparent 38%),
        radial-gradient(circle at 78% 88%, rgba(16,185,129,.22), transparent 44%),
        linear-gradient(135deg, #c9b299 0%, #b79062 42%, #728d78 100%);
    color: #fff;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-logo {
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 1.55rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-menu {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.15);
    color: #fff;
    display: grid;
    place-items: center;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-number {
    margin-top: 2.6rem;
    font-size: 1.18rem;
    letter-spacing: .05em;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(15,23,42,.14);
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-foot {
    margin-top: 1.15rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .9rem;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-foot .label {
    display: block;
    color: rgba(255,255,255,.76);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-foot .value {
    display: block;
    color: #fff;
    font-weight: 700;
    margin-top: .12rem;
    line-height: 1.2;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-add {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-style: dashed;
    border-color: #d4dbe6;
    background:
        radial-gradient(circle at 90% 8%, rgba(99,102,241,.04), transparent 34%),
        linear-gradient(180deg, #ffffff, #fafcff);
    color: #0f172a;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-card-add:hover,
.billing-modern-page.billing-shared-workspace-page .billing-payment-card-add:focus {
    color: #0f172a;
    border-color: #c6d4e9;
    background: #fff;
    transform: translateY(-1px);
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-add-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--bws-border);
    background: #fff;
    display: grid;
    place-items: center;
    color: #0f172a;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-add-title {
    color: var(--bws-text);
    font-weight: 700;
}

.billing-modern-page.billing-shared-workspace-page .billing-payment-add-subtitle {
    color: var(--bws-text-soft);
    font-size: .8rem;
    text-align: center;
    max-width: 34ch;
}

@media (max-width: 1199.98px) {
    .billing-modern-page.billing-shared-workspace-page .billing-overview-grid,
    .billing-modern-page.billing-shared-workspace-page .billing-payment-grid {
        grid-template-columns: 1fr;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-plan-card-body {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn {
        width: fit-content;
    }
}

@media (max-width: 991.98px) {
    .billing-modern-page.billing-shared-workspace-page .billing-workspace-head {
        grid-template-columns: 1fr;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-workspace-actions {
        width: 100%;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-workspace-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-usage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .billing-modern-page.billing-shared-workspace-page .billing-shared-shell {
        border-radius: 16px;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-workspace-head {
        padding: .9rem;
        border-bottom-color: #edf2f7;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-overview-shell,
    .billing-modern-page.billing-shared-workspace-page .billing-table-card,
    .billing-modern-page.billing-shared-workspace-page .billing-payment-shell {
        margin-left: .9rem;
        margin-right: .9rem;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-table-card {
        border-radius: 16px;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-history-head {
        flex-direction: column;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-history-head-actions {
        width: 100%;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-history-head-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-toolbar-left {
        width: 100%;
        gap: .5rem;
    }

    .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter,
    .billing-modern-page.billing-shared-workspace-page .billing-chip {
        width: 100%;
        justify-content: center;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-payment-card,
    .billing-modern-page.billing-shared-workspace-page .billing-payment-card-add {
        min-height: 160px;
    }
}

@media (max-width: 575.98px) {
    .billing-modern-page.billing-shared-workspace-page .billing-workspace-title {
        font-size: 1.55rem;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-workspace-subtitle {
        font-size: .9rem;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-overview-card-head,
    .billing-modern-page.billing-shared-workspace-page .billing-plan-card-body,
    .billing-modern-page.billing-shared-workspace-page .billing-usage-grid,
    .billing-modern-page.billing-shared-workspace-page .billing-table-card .card-body {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-payment-card-primary {
        padding: .9rem;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-payment-card-number {
        margin-top: 1.9rem;
        font-size: .98rem;
        letter-spacing: .03em;
    }

    .billing-modern-page.billing-shared-workspace-page .billing-payment-card-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page {
    --bws-bg: #0f172a;
    --bws-surface: #111827;
    --bws-surface-soft: #0b1220;
    --bws-border: #253247;
    --bws-border-strong: #32445e;
    --bws-text: #e5edf7;
    --bws-text-muted: #a9b8cc;
    --bws-text-soft: #8ea1bb;
    background:
        radial-gradient(circle at 10% 0%, rgba(59,130,246,.12), transparent 42%),
        radial-gradient(circle at 92% 10%, rgba(6,182,212,.10), transparent 44%),
        linear-gradient(180deg, #0b1220 0%, #101a2d 72%, #0c1424 100%);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-shared-shell {
    border-color: var(--bws-border);
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 40px rgba(2,6,23,.32);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-workspace-head {
    border-bottom-color: rgba(148,163,184,.12);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.07), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(6,182,212,.09), transparent 36%),
        linear-gradient(180deg, rgba(17,24,39,.95), rgba(13,20,34,.95));
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-workspace-head::after {
    background-image:
        linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
    opacity: .28;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-workspace-brand {
    border-color: rgba(148,163,184,.16);
    background: rgba(255,255,255,.03);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-workspace-brand-logo {
    border-color: rgba(148,163,184,.16);
    background: #0f172a;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3730a3);
    border-color: rgba(96,165,250,.24);
    box-shadow: none;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-primary:hover,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-primary:focus {
    background: linear-gradient(135deg, #2563eb, #4338ca);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-overview-card,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-table-card,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-card {
    border-color: var(--bws-border);
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
    box-shadow: 0 10px 20px rgba(2,6,23,.18);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-overview-card-head,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-toolbar,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-history-head,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-history-head + .billing-toolbar,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-workspace-head,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-table-card .card-body,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-overview-card-head {
    border-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-plan-pill {
    background: rgba(22,163,74,.16);
    border-color: rgba(34,197,94,.25);
    color: #86efac;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter {
    color: #dbe7f5;
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
    box-shadow: none;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn:hover,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-plan-upgrade-btn:focus,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter:hover,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .btn.billing-btn-filter:focus {
    color: #eef4ff;
    background: linear-gradient(180deg, #1a2740, #142138);
    border-color: #364861;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-chip {
    border-color: #2b3950;
    background: rgba(148,163,184,.08);
    color: #c5d3e6;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-chip i {
    color: #9cb0cb;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .dropdown-menu {
    background: #111827;
    border-color: #2c3a51;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .dropdown-menu .dropdown-item {
    color: #d8e4f2;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .dropdown-menu .dropdown-item:hover {
    background: rgba(59,130,246,.12);
    color: #eef4ff;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_length label,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_filter label,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_info {
    color: var(--bws-text-muted);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .form-select,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .form-control {
    border-color: #2c3a51;
    background: #111a2c;
    color: #e5edf7;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .form-control::placeholder {
    color: #7f93ae;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-table-shell {
    border-color: #2b3950;
    background: #0f172a;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable thead th {
    background: #131d31;
    color: #b8c7da;
    border-bottom-color: #28364c !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable tbody td {
    background: #111827;
    border-bottom-color: #243248;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable tbody tr:hover td {
    background: #162033;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .bill-index {
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(79,70,229,.18), rgba(59,130,246,.14));
    color: #c7d2fe;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .invoice-icon {
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(59,130,246,.10));
    color: #93c5fd;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .due-chip {
    border-color: #304159;
    background: rgba(148,163,184,.08);
    color: #dbe7f5;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .due-chip i {
    color: #9cb0cb;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .due-chip.due-overdue {
    border-color: rgba(244,114,182,.26);
    background: rgba(225,29,72,.12);
    color: #fda4af;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .due-chip.due-soon {
    border-color: rgba(250,204,21,.22);
    background: rgba(217,119,6,.12);
    color: #fcd34d;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .text-muted {
    color: #8ea1bb !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .bill-action-btn {
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
    color: #b3c2d5;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .bill-action-btn:hover {
    border-color: #395172;
    background: #1a2740;
    color: #eef4ff;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    color: #b5c4d8 !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #fff !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(59,130,246,.12) !important;
    border-color: #304159 !important;
    color: #eef4ff !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-card-add {
    border-color: #32445e;
    background:
        radial-gradient(circle at 90% 8%, rgba(99,102,241,.08), transparent 34%),
        linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
    color: #e5edf7;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-card-add:hover,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-card-add:focus {
    border-color: #445c7c;
    background: linear-gradient(180deg, rgba(19,28,45,.96), rgba(13,20,34,.96));
    color: #eef4ff;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-add-icon {
    border-color: #32445e;
    background: #0f172a;
    color: #e5edf7;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-add-title {
    color: #e5edf7;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page .billing-payment-add-subtitle {
    color: #8ea1bb;
}

/* ===== Invoice Form Pages (admin/upload_invoice.php, admin/edit_invoice.php) ===== */
.invoice-editor-modern-page {
    --invf-bg: #edf3fa;
    --invf-surface: rgba(255, 255, 255, 0.94);
    --invf-border: #dbe6f2;
    --invf-border-strong: #cfdbeb;
    --invf-text: #0f172a;
    --invf-text-muted: #64748b;
    --invf-text-soft: #94a3b8;
    --invf-accent: #2563eb;
    --invf-accent-2: #06b6d4;
    --invf-accent-3: #4f46e5;
    background:
        radial-gradient(circle at 8% 4%, rgba(37, 99, 235, 0.10), transparent 42%),
        radial-gradient(circle at 92% 10%, rgba(6, 182, 212, 0.08), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, var(--invf-bg) 58%, #e8f0f8 100%);
}

.invoice-editor-modern-page .page-title-box {
    display: none;
}

.invoice-editor-modern-page .invoice-editor-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.15rem;
    background:
        radial-gradient(circle at 86% 16%, rgba(34, 211, 238, 0.22), transparent 34%),
        radial-gradient(circle at 16% 90%, rgba(99, 102, 241, 0.18), transparent 36%),
        linear-gradient(135deg, #071a33 0%, #10294a 46%, #1d3f8b 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.invoice-editor-modern-page .invoice-editor-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    filter: blur(6px);
    pointer-events: none;
}

.invoice-editor-modern-page .invoice-editor-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    gap: 1rem;
}

.invoice-editor-modern-page .invoice-editor-hero-main {
    display: flex;
    flex-direction: column;
    gap: .95rem;
    justify-content: space-between;
}

.invoice-editor-modern-page .invoice-editor-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    align-self: flex-start;
    padding: .55rem .8rem;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
}

.invoice-editor-modern-page .invoice-editor-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.invoice-editor-modern-page .invoice-editor-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.invoice-editor-modern-page .invoice-editor-brand-copy .eyebrow {
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.invoice-editor-modern-page .invoice-editor-brand-copy .name {
    display: block;
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
}

.invoice-editor-modern-page .invoice-editor-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.3rem, 2vw, 1.95rem);
}

.invoice-editor-modern-page .invoice-editor-subtitle {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
    max-width: 60ch;
}

.invoice-editor-modern-page .invoice-editor-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.invoice-editor-modern-page .invoice-editor-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .68rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
}

.invoice-editor-modern-page .invoice-editor-chip i {
    color: #7dd3fc;
}

.invoice-editor-modern-page .invoice-editor-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}

.invoice-editor-modern-page .invoice-editor-stat {
    border-radius: 16px;
    padding: .85rem .95rem;
    min-height: 88px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
}

.invoice-editor-modern-page .invoice-editor-stat .label {
    color: rgba(255,255,255,.74);
    font-size: .8rem;
}

.invoice-editor-modern-page .invoice-editor-stat .value {
    margin-top: .35rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    word-break: break-word;
}

.invoice-editor-modern-page .invoice-editor-stat .meta {
    margin-top: .28rem;
    color: rgba(255,255,255,.65);
    font-size: .74rem;
}

.invoice-editor-modern-page .invoice-editor-panel {
    position: relative;
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid var(--invf-border);
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,252,255,.91));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.invoice-editor-modern-page .invoice-editor-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--invf-accent), var(--invf-accent-2), var(--invf-accent-3));
}

.invoice-editor-modern-page .invoice-editor-panel .card-body {
    padding: 1.15rem;
}

.invoice-editor-modern-page .invoice-section + .invoice-section {
    margin-top: 1rem;
}

.invoice-editor-modern-page .invoice-section-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--invf-text);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: .75rem;
}

.invoice-editor-modern-page .invoice-section-title i {
    color: var(--invf-accent);
}

.invoice-editor-modern-page .invoice-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .9rem;
}

.invoice-editor-modern-page .invoice-form-grid .span-2 {
    grid-column: span 2;
}

.invoice-editor-modern-page .invoice-field label {
    display: block;
    color: #334155;
    font-weight: 600;
    margin-bottom: .45rem;
}

.invoice-editor-modern-page .invoice-field .form-control,
.invoice-editor-modern-page .invoice-field .form-select,
.invoice-editor-modern-page .invoice-field select {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--invf-border);
    background: #fbfdff;
    padding: .55rem .9rem;
    box-shadow: none;
}

.invoice-editor-modern-page .invoice-field .form-control:focus,
.invoice-editor-modern-page .invoice-field .form-select:focus,
.invoice-editor-modern-page .invoice-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 .18rem rgba(59,130,246,.10);
}

.invoice-editor-modern-page .invoice-field textarea.form-control {
    min-height: 132px;
    resize: vertical;
    line-height: 1.45;
}

.invoice-editor-modern-page .invoice-field input[type="color"].form-control {
    min-height: 52px;
    padding: .35rem;
    cursor: pointer;
}

.invoice-editor-modern-page .invoice-field .invalid-feedback {
    display: block;
    font-size: .82rem;
    margin-top: .35rem;
}

.invoice-editor-modern-page .invoice-help {
    margin-top: .45rem;
    color: var(--invf-text-soft);
    font-size: .78rem;
}

.invoice-editor-modern-page .invoice-file-drop {
    border: 1px dashed #cddbee;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff, #f4f9ff);
    padding: .95rem;
}

.invoice-editor-modern-page .invoice-file-row {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.invoice-editor-modern-page .invoice-file-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(180deg, #edf4ff, #e6efff);
    border: 1px solid #d6e5ff;
    flex-shrink: 0;
}

.invoice-editor-modern-page .invoice-file-meta .title {
    display: block;
    color: var(--invf-text);
    font-weight: 600;
    line-height: 1.2;
}

.invoice-editor-modern-page .invoice-file-meta .sub {
    display: block;
    color: var(--invf-text-soft);
    font-size: .75rem;
    margin-top: .12rem;
}

.invoice-editor-modern-page .invoice-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    border: 1px solid var(--invf-border);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    padding: .85rem;
}

.invoice-editor-modern-page .invoice-preview-main {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.invoice-editor-modern-page .invoice-preview-main .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(180deg, #edf4ff, #e6efff);
    border: 1px solid #d6e5ff;
    flex-shrink: 0;
}

.invoice-editor-modern-page .invoice-preview-main .name {
    display: block;
    color: var(--invf-text);
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-editor-modern-page .invoice-preview-main .path {
    display: block;
    color: var(--invf-text-soft);
    font-size: .74rem;
    margin-top: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.invoice-editor-modern-page .settings-color-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .55rem;
    border-radius: 999px;
    border: 1px solid var(--invf-border);
    background: rgba(255,255,255,.9);
    color: #475569;
    font-size: .8rem;
    font-weight: 600;
}

.invoice-editor-modern-page .settings-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--settings-color, #2563eb);
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 0 0 1px rgba(148,163,184,.35);
    display: inline-block;
}

.invoice-editor-modern-page .settings-logo-preview-card {
    align-items: center;
}

.invoice-editor-modern-page .settings-logo-visual {
    width: 132px;
    height: 74px;
    border-radius: 14px;
    border: 1px solid #dbe6f2;
    background:
        linear-gradient(135deg, rgba(37,99,235,.06), rgba(79,70,229,.08)),
        #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.invoice-editor-modern-page .settings-logo-visual img {
    max-width: calc(100% - 12px);
    max-height: calc(100% - 12px);
    object-fit: contain;
    display: block;
}

.invoice-editor-modern-page .settings-logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 10px 20px rgba(79,70,229,.20);
}

.invoice-editor-modern-page .btn.invoice-btn-primary {
    border: 0;
    border-radius: 12px;
    min-height: 46px;
    padding: .6rem 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 60%, #4f46e5 100%);
    box-shadow: 0 12px 24px rgba(37,99,235,.20);
}

.invoice-editor-modern-page .btn.invoice-btn-primary:hover,
.invoice-editor-modern-page .btn.invoice-btn-primary:focus {
    color: #fff;
}

.invoice-editor-modern-page .btn.invoice-btn-secondary {
    border-radius: 12px;
    min-height: 46px;
    padding: .6rem 1rem;
    border: 1px solid var(--invf-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #475569;
    font-weight: 600;
}

.invoice-editor-modern-page .btn.invoice-btn-secondary:hover {
    border-color: var(--invf-border-strong);
    color: var(--invf-text);
}

.invoice-editor-modern-page .invoice-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding-top: .95rem;
    border-top: 1px solid #e7edf7;
}

.invoice-editor-modern-page .invoice-actions-left {
    color: var(--invf-text-muted);
    font-size: .82rem;
}

.invoice-editor-modern-page .invoice-alert {
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff4f5;
    color: #b91c1c;
    padding: .75rem .85rem;
    font-weight: 500;
}

.invoice-editor-modern-page .invoice-alert.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 1199.98px) {
    .invoice-editor-modern-page .invoice-editor-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .invoice-editor-modern-page .invoice-editor-hero,
    .invoice-editor-modern-page .invoice-editor-panel {
        border-radius: 16px;
    }

    .invoice-editor-modern-page .invoice-editor-stats,
    .invoice-editor-modern-page .invoice-form-grid {
        grid-template-columns: 1fr;
    }

    .invoice-editor-modern-page .invoice-form-grid .span-2 {
        grid-column: auto;
    }

    .invoice-editor-modern-page .invoice-editor-panel .card-body {
        padding: .95rem .85rem;
    }

    .invoice-editor-modern-page .invoice-preview-card {
        flex-direction: column;
        align-items: stretch;
    }

    .invoice-editor-modern-page .invoice-actions {
        align-items: stretch;
    }

    .invoice-editor-modern-page .invoice-actions .btn {
        width: 100%;
    }
}

/* ===== Invoice Upload Shared Workspace Overrides (admin/upload_invoice.php) ===== */
.invoice-editor-modern-page.invoice-editor-shared-workspace-page {
    --ies-bg: #eef2f7;
    --ies-surface: #ffffff;
    --ies-surface-soft: #f8fafc;
    --ies-border: #e2e8f0;
    --ies-border-strong: #d5dfec;
    --ies-text: #0f172a;
    --ies-text-muted: #64748b;
    --ies-text-soft: #94a3b8;
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.05), transparent 38%),
        radial-gradient(circle at 92% 8%, rgba(6,182,212,.05), transparent 42%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f8 72%, #e8eef6 100%);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-shared-shell {
    margin-top: .2rem;
    border-radius: 22px;
    border: 1px solid var(--ies-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
    overflow: hidden;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-shared-shell > .row {
    margin-left: 0;
    margin-right: 0;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-shared-shell > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero {
    margin: 0;
    border-radius: 0;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    box-shadow: none;
    color: var(--ies-text);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.08), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(6,182,212,.08), transparent 34%),
        linear-gradient(180deg, #ffffff, #fbfcff);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .45;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.35));
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero-grid {
    position: relative;
    z-index: 1;
    gap: .9rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero-main {
    justify-content: flex-start;
    gap: .75rem;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-title {
    color: var(--ies-text);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-subtitle {
    color: var(--ies-text-muted);
    margin-top: .25rem;
    max-width: 58ch;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-chip {
    color: #475569;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid var(--ies-border);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-chip i {
    color: #64748b;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat {
    min-height: 84px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f9fbff);
    border: 1px solid var(--ies-border);
    box-shadow: none;
    backdrop-filter: none;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat .label {
    color: var(--ies-text-muted);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat .value {
    color: var(--ies-text);
    font-size: 1.1rem;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat .meta {
    color: var(--ies-text-soft);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-panel {
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-panel::before {
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1 45%, #06b6d4);
    opacity: .9;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-panel .card-body {
    padding: 1rem;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-section {
    border-radius: 16px;
    border: 1px solid var(--ies-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    padding: .95rem;
    box-shadow: 0 6px 16px rgba(15,23,42,.03);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-section + .invoice-section {
    margin-top: .9rem;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-section-title {
    margin-bottom: .8rem;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-field label {
    color: #334155;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-file-drop {
    border-color: #dce5f2;
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-primary {
    background: linear-gradient(135deg, #111827, #1f2937);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 12px 20px rgba(15,23,42,.10);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-primary:hover,
.invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-primary:focus {
    background: linear-gradient(135deg, #0f172a, #111827);
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-secondary {
    border-color: var(--ies-border);
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #475569;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-secondary:hover,
.invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-secondary:focus {
    border-color: var(--ies-border-strong);
    background: #fff;
    color: #0f172a;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-actions {
    margin-top: .95rem;
    border-top: 1px solid #edf2f7;
}

.invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-alert {
    border-radius: 12px;
}

@media (max-width: 1199.98px) {
    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-shared-shell {
        border-radius: 16px;
    }

    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero {
        padding: .9rem;
    }

    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-panel .card-body {
        padding: .9rem;
    }

    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-section {
        border-radius: 14px;
        padding: .85rem;
    }

    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stats,
    .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-form-grid {
        grid-template-columns: 1fr;
    }
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page {
    --ies-bg: #0f172a;
    --ies-surface: #111827;
    --ies-surface-soft: #0b1220;
    --ies-border: #253247;
    --ies-border-strong: #32445e;
    --ies-text: #e5edf7;
    --ies-text-muted: #a9b8cc;
    --ies-text-soft: #8ea1bb;
    background:
        radial-gradient(circle at 10% 0%, rgba(59,130,246,.12), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(6,182,212,.10), transparent 44%),
        linear-gradient(180deg, #0b1220 0%, #101a2d 72%, #0c1424 100%);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-shared-shell {
    border-color: var(--ies-border);
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 40px rgba(2,6,23,.32);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero {
    border-bottom-color: rgba(148,163,184,.14);
    color: var(--ies-text);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.07), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(6,182,212,.09), transparent 36%),
        linear-gradient(180deg, rgba(17,24,39,.95), rgba(13,20,34,.95));
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-hero::after {
    opacity: .28;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-title {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-subtitle {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-chip {
    color: #c5d3e6;
    border-color: #2b3950;
    background: rgba(148,163,184,.08);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-chip i {
    color: #9cb0cb;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat {
    border-color: var(--ies-border);
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(12,19,32,.92));
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat .label {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat .value {
    color: #eef4ff;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-stat .meta {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-editor-panel::before {
    opacity: .75;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-section {
    border-color: var(--ies-border);
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
    box-shadow: none;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-section-title,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-field label {
    color: #d6e1ef;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-field .form-control,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-field .form-select,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-field select {
    border-color: #2c3a51;
    background: #111a2c;
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-field .form-control::placeholder {
    color: #7f93ae;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-help,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-actions-left {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-file-drop {
    border-color: #334259;
    background: linear-gradient(180deg, rgba(17,24,39,.82), rgba(11,18,32,.9));
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-file-icon,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-preview-main .icon {
    color: #93c5fd;
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(59,130,246,.10));
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-file-meta .title,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-preview-main .name {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-file-meta .sub,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-preview-main .path {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3730a3);
    border-color: rgba(96,165,250,.24);
    box-shadow: none;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-primary:hover,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-primary:focus {
    background: linear-gradient(135deg, #2563eb, #4338ca);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-secondary {
    color: #dbe7f5;
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-secondary:hover,
html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .btn.invoice-btn-secondary:focus {
    color: #eef4ff;
    border-color: #364861;
    background: linear-gradient(180deg, #1a2740, #142138);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-actions {
    border-top-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-alert {
    border-color: rgba(239,68,68,.35);
    background: rgba(127,29,29,.18);
    color: #fecaca;
}

html[data-theme="dark"] .invoice-editor-modern-page.invoice-editor-shared-workspace-page .invoice-alert.is-success {
    border-color: rgba(34,197,94,.34);
    background: rgba(20,83,45,.20);
    color: #bbf7d0;
}

/* ===== Report Upload Workspace Overrides (admin/upload_report.php) ===== */
.invoice-editor-modern-page.report-upload-workspace-page {
    --ruw-border: #e2e8f0;
    --ruw-border-strong: #d5dfec;
    --ruw-text: #0f172a;
    --ruw-text-muted: #64748b;
    --ruw-text-soft: #94a3b8;
}

.invoice-editor-modern-page.report-upload-workspace-page .invoice-editor-hero {
    background:
        radial-gradient(circle at 0% 0%, rgba(99,102,241,.10), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,.08), transparent 36%),
        linear-gradient(180deg, #ffffff, #fbfcff);
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    padding: .45rem .65rem;
    border-radius: 14px;
    border: 1px solid var(--ruw-border);
    background: rgba(255,255,255,.92);
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e6edf7;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-copy .eyebrow {
    display: block;
    color: var(--ruw-text-soft);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-copy .name {
    display: block;
    color: var(--ruw-text);
    font-weight: 700;
    line-height: 1.15;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-hero-pills {
    gap: .5rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: .95rem;
    align-items: start;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-main {
    min-width: 0;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-sidebar {
    display: grid;
    gap: .9rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-side-card {
    border-radius: 16px;
    border: 1px solid var(--ruw-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    box-shadow: 0 6px 16px rgba(15,23,42,.03);
    padding: .9rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .side-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .75rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .side-card-head.compact {
    margin-bottom: .65rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .side-card-head h6 {
    margin: 0;
    color: var(--ruw-text);
    font-weight: 700;
    font-size: .95rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .side-card-head p {
    margin: .15rem 0 0;
    color: var(--ruw-text-muted);
    font-size: .78rem;
    line-height: 1.3;
}

.invoice-editor-modern-page.report-upload-workspace-page .side-card-head .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--ruw-border);
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #64748b;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring {
    --used: 42%;
    width: 186px;
    height: 186px;
    border-radius: 50%;
    margin: .15rem auto .85rem;
    background:
        conic-gradient(from 210deg,
            #4f46e5 0 var(--used),
            #a5b4fc var(--used) calc(var(--used) + 14%),
            #c7d2fe calc(var(--used) + 14%) calc(var(--used) + 22%),
            #e2e8f0 calc(var(--used) + 22%) 100%);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.16);
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e3eaf5;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring .ring-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    z-index: 1;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring .ring-center strong {
    display: block;
    color: var(--ruw-text);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring .ring-center span {
    display: block;
    color: var(--ruw-text-muted);
    font-size: .82rem;
    margin-top: .25rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list {
    display: grid;
    gap: .5rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .45rem .55rem;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    background: #fff;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list span {
    color: var(--ruw-text-muted);
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list strong {
    color: var(--ruw-text);
    font-size: .82rem;
    font-weight: 700;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.invoice-editor-modern-page.report-upload-workspace-page .dot-primary { background: #4f46e5; }
.invoice-editor-modern-page.report-upload-workspace-page .dot-secondary { background: #6366f1; }
.invoice-editor-modern-page.report-upload-workspace-page .dot-muted { background: #cbd5e1; }

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-activity-list {
    display: grid;
    gap: .6rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .activity-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .45rem;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.invoice-editor-modern-page.report-upload-workspace-page .activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #eef4ff, #e9f0ff);
    color: #4f46e5;
    flex-shrink: 0;
}

.invoice-editor-modern-page.report-upload-workspace-page .activity-copy .title {
    display: block;
    color: var(--ruw-text);
    font-weight: 600;
    line-height: 1.2;
}

.invoice-editor-modern-page.report-upload-workspace-page .activity-copy .sub {
    display: block;
    color: var(--ruw-text-soft);
    font-size: .76rem;
    line-height: 1.35;
    margin-top: .12rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-checklist li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: var(--ruw-text-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-checklist i {
    color: #4f46e5;
    margin-top: .05rem;
    flex-shrink: 0;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-file-section .invoice-file-drop {
    padding: .9rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropboard {
    border-style: solid;
    border-color: #e3e9f4;
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,.06), transparent 38%),
        linear-gradient(180deg, #fbfdff, #f7fbff);
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .8rem;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropboard-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .38rem .62rem;
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
    font-weight: 700;
    font-size: .75rem;
    white-space: nowrap;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone {
    border: 2px dashed #c7d7ef;
    border-radius: 16px;
    padding: .95rem;
    margin-bottom: .85rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(99,102,241,.05), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,251,255,.95));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-copy .headline {
    display: block;
    color: var(--ruw-text);
    font-weight: 600;
    line-height: 1.3;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-copy .headline span {
    color: #4f46e5;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-copy .subline {
    display: block;
    margin-top: .22rem;
    color: var(--ruw-text-soft);
    font-size: .78rem;
    line-height: 1.35;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    position: relative;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: linear-gradient(180deg, #ffffff, #f4f7ff);
    border: 1px solid #dbe6fb;
    overflow: hidden;
    flex-shrink: 0;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual i {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual .ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(79,70,229,.18);
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual .ring-a {
    inset: 10px;
}

.invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual .ring-b {
    inset: 20px;
    border-color: rgba(59,130,246,.16);
}

@media (max-width: 1199.98px) {
    .invoice-editor-modern-page.report-upload-workspace-page .report-upload-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropboard-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone {
        grid-template-columns: 1fr;
    }

    .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring {
        width: 160px;
        height: 160px;
    }

    .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring::before {
        inset: 20px;
    }
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page {
    --ruw-border: #253247;
    --ruw-border-strong: #32445e;
    --ruw-text: #e5edf7;
    --ruw-text-muted: #a9b8cc;
    --ruw-text-soft: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand {
    border-color: rgba(148,163,184,.16);
    background: rgba(255,255,255,.03);
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-logo {
    border-color: rgba(148,163,184,.16);
    background: #0f172a;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-copy .eyebrow {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-brand-copy .name {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-side-card {
    border-color: #2a394f;
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(12,19,32,.92));
    box-shadow: none;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .side-card-head h6 {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .side-card-head p {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .side-card-head .icon-btn {
    border-color: #304159;
    background: linear-gradient(180deg, #162033, #111a2c);
    color: #b7c6d9;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring {
    background:
        conic-gradient(from 210deg,
            #6366f1 0 var(--used),
            #818cf8 var(--used) calc(var(--used) + 14%),
            #475569 calc(var(--used) + 14%) calc(var(--used) + 22%),
            #1f2937 calc(var(--used) + 22%) 100%);
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.18);
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring::before {
    background: linear-gradient(180deg, #111827, #0f172a);
    border-color: #2b3950;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring .ring-center strong {
    color: #eef4ff;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-ring .ring-center span {
    color: #9fb0c6;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list > div,
html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .activity-row {
    border-color: #2b3950;
    background: rgba(148,163,184,.05);
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list span {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-storage-list strong {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .activity-icon {
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(79,70,229,.18), rgba(59,130,246,.12));
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .activity-copy .title {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .activity-copy .sub,
html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-checklist li {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-checklist i {
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropboard {
    border-color: #2f4057;
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,.10), transparent 38%),
        linear-gradient(180deg, rgba(17,24,39,.85), rgba(11,18,32,.9));
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropboard-badge {
    border-color: rgba(99,102,241,.30);
    background: rgba(79,70,229,.14);
    color: #c7d2fe;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone {
    border-color: #3a4f6d;
    background:
        radial-gradient(circle at 12% 12%, rgba(99,102,241,.08), transparent 38%),
        linear-gradient(180deg, rgba(17,24,39,.78), rgba(11,18,32,.82));
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-copy .headline {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-copy .headline span {
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-copy .subline {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual {
    border-color: #31445f;
    background: linear-gradient(180deg, #111a2c, #0f172a);
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual .ring-a {
    border-color: rgba(165,180,252,.20);
}

html[data-theme="dark"] .invoice-editor-modern-page.report-upload-workspace-page .report-upload-dropzone-visual .ring-b {
    border-color: rgba(96,165,250,.16);
}

/* ===== Notification Composer Workspace (admin/notification.php) ===== */
.invoice-editor-modern-page.notification-composer-page {
    --ncp-border: #e2e8f0;
    --ncp-border-strong: #d5dfec;
    --ncp-text: #0f172a;
    --ncp-text-muted: #64748b;
    --ncp-text-soft: #94a3b8;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-shared-shell {
    border-radius: 20px;
    border-color: #d5deeb;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f7fd 100%);
    box-shadow: 0 14px 28px rgba(15,23,42,.05);
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-hero {
    padding: 1.05rem 1.15rem 1.02rem;
    border-bottom-color: #d8e2f0;
    background:
        radial-gradient(circle at 0% 0%, rgba(59,130,246,.10), transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(99,102,241,.16), transparent 42%),
        linear-gradient(180deg, #f5f7ff 0%, #f2f6ff 100%);
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-hero::after {
    display: none;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .78fr);
    gap: .95rem;
    align-items: center;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-hero-main {
    gap: .72rem;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-title {
    font-size: clamp(1.68rem, 2.25vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: #0f172a;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-subtitle {
    margin-top: .3rem;
    max-width: 60ch;
    color: #607189;
    font-size: clamp(.95rem, 1.02vw, 1.02rem);
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-pills {
    gap: .55rem;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-chip {
    padding: .46rem .86rem;
    border-radius: 999px;
    border: 1px solid #cfdae8;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,249,255,.96));
    color: #475569;
    font-size: .88rem;
    font-weight: 600;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-chip i {
    color: #64748b;
    font-size: .96rem;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-stats {
    grid-template-columns: minmax(220px, 340px);
    justify-content: end;
    gap: 0;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-stat {
    border-radius: 18px;
    border: 1px solid #cfdbea;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    min-height: 0;
    padding: .82rem .94rem;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .label {
    color: #5f718a;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .value {
    margin-top: .32rem;
    font-size: 1.72rem;
    line-height: 1.05;
    color: #0f172a;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .meta {
    margin-top: .34rem;
    color: #8295ae;
    font-size: .82rem;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-panel::before {
    height: 3px;
    background: linear-gradient(90deg, #4f6ef7 0%, #3b82f6 56%, #22c1ee 100%);
    opacity: 1;
}

.invoice-editor-modern-page.notification-composer-page .invoice-editor-panel .card-body {
    padding: 1.08rem 1.15rem;
}

.invoice-editor-modern-page.notification-composer-page .invoice-section,
.invoice-editor-modern-page.notification-composer-page .notification-side-card {
    border-radius: 18px;
    border-color: #d4dfed;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: none;
}

.invoice-editor-modern-page.notification-composer-page .invoice-section {
    padding: .95rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-side-card {
    padding: .9rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    padding: .45rem .65rem;
    border-radius: 14px;
    border: 1px solid var(--ncp-border);
    background: rgba(255,255,255,.92);
}

.invoice-editor-modern-page.notification-composer-page .notification-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e6edf7;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.invoice-editor-modern-page.notification-composer-page .notification-brand-copy .eyebrow {
    display: block;
    color: var(--ncp-text-soft);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.invoice-editor-modern-page.notification-composer-page .notification-brand-copy .name {
    display: block;
    color: var(--ncp-text);
    font-weight: 700;
    line-height: 1.15;
}

.invoice-editor-modern-page.notification-composer-page .notification-compose-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: .95rem;
    align-items: start;
}

.invoice-editor-modern-page.notification-composer-page .notification-compose-main {
    min-width: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-compose-side {
    display: grid;
    gap: .9rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    gap: .9rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-field-grid .span-2 {
    grid-column: 1 / -1;
}

.invoice-editor-modern-page.notification-composer-page .notification-channel-card {
    border: 1px solid #e8eef7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fafcff);
    padding: .75rem;
    align-self: start;
}

.invoice-editor-modern-page.notification-composer-page .notification-channel-card label {
    margin-bottom: .5rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-channel-pill {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border-radius: 12px;
    border: 1px solid #dbe7fb;
    background: linear-gradient(180deg, #eef4ff, #e8f0ff);
    padding: .6rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-channel-pill > i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid #cfdefa;
    background: rgba(255,255,255,.75);
    color: #2563eb;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-channel-pill strong {
    display: block;
    color: var(--ncp-text);
    font-size: .84rem;
    line-height: 1.2;
}

.invoice-editor-modern-page.notification-composer-page .notification-channel-pill span {
    display: block;
    color: var(--ncp-text-muted);
    font-size: .74rem;
    line-height: 1.3;
    margin-top: .12rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-message-field textarea.form-control {
    min-height: 190px;
}

.invoice-editor-modern-page.notification-composer-page .notification-field-meta {
    margin-top: .35rem;
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    align-items: flex-start;
}

.invoice-editor-modern-page.notification-composer-page .notification-counter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: .2rem .45rem;
    border-radius: 999px;
    border: 1px solid var(--ncp-border);
    background: #fff;
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
}

.invoice-editor-modern-page.notification-composer-page .notification-side-card {
    border-radius: 16px;
    border: 1px solid var(--ncp-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    box-shadow: 0 6px 16px rgba(15,23,42,.03);
    padding: .9rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .75rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-side-head h6 {
    margin: 0;
    color: var(--ncp-text);
    font-weight: 700;
    font-size: .95rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-side-head p {
    margin: .15rem 0 0;
    color: var(--ncp-text-muted);
    font-size: .78rem;
    line-height: 1.3;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-device {
    border-radius: 16px;
    border: 1px solid #e5ecf7;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    overflow: hidden;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-topbar {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .65rem;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-topbar .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-topbar .label {
    margin-left: .25rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .8rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #d8e4fb;
    background: linear-gradient(180deg, #eef4ff, #e8f0ff);
    color: #4f46e5;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-copy {
    min-width: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-copy .title {
    display: block;
    color: var(--ncp-text);
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-copy .body {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ncp-text-muted);
    font-size: .8rem;
    line-height: 1.4;
    margin-top: .2rem;
    word-break: break-word;
}

.invoice-editor-modern-page.notification-composer-page .notification-preview-copy .meta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--ncp-text-soft);
    font-size: .72rem;
    margin-top: .35rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-checklist li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: var(--ncp-text-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.invoice-editor-modern-page.notification-composer-page .notification-checklist i {
    color: #4f46e5;
    margin-top: .05rem;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .55rem;
}

.invoice-editor-modern-page.notification-composer-page .metric-tile {
    border-radius: 12px;
    border: 1px solid #e8eef7;
    background: linear-gradient(180deg, #ffffff, #fafcff);
    padding: .65rem;
    min-height: 76px;
}

.invoice-editor-modern-page.notification-composer-page .metric-tile .label {
    display: block;
    color: var(--ncp-text-soft);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.invoice-editor-modern-page.notification-composer-page .metric-tile .value {
    display: block;
    color: var(--ncp-text);
    font-weight: 700;
    font-size: 1rem;
    margin-top: .2rem;
    line-height: 1.15;
    word-break: break-word;
}

.invoice-editor-modern-page.notification-composer-page .metric-tile .meta {
    display: block;
    color: var(--ncp-text-soft);
    font-size: .72rem;
    margin-top: .16rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-panel .invoice-section {
    padding-bottom: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-list {
    display: grid;
    gap: .75rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    padding: .8rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe6fb;
    background: linear-gradient(180deg, #eef4ff, #e7efff);
    color: #4f46e5;
    font-size: 1.05rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-content {
    min-width: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .7rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-width: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-title {
    color: var(--ncp-text);
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin-top: .22rem;
    color: var(--ncp-text-soft);
    font-size: .72rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-meta span {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: .2rem .5rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-message {
    margin-top: .4rem;
    color: var(--ncp-text-muted);
    line-height: 1.45;
    font-size: .84rem;
    word-break: break-word;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-footer {
    margin-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-summary {
    color: var(--ncp-text-soft);
    font-size: .8rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-pager {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.invoice-editor-modern-page.notification-composer-page .notification-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-width: 34px;
    height: 34px;
    padding: 0 .55rem;
    border-radius: 10px;
    border: 1px solid #dbe6f5;
    background: #fff;
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}

.invoice-editor-modern-page.notification-composer-page a.notification-page-link:hover {
    border-color: #c7d8f3;
    background: #f8fbff;
    color: #1e293b;
}

.invoice-editor-modern-page.notification-composer-page .notification-page-link.is-active {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: #fff;
    box-shadow: 0 8px 16px rgba(79,70,229,.20);
}

.invoice-editor-modern-page.notification-composer-page .notification-page-link.is-disabled {
    opacity: .55;
    cursor: default;
    background: #f8fafc;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-empty {
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px dashed #d6e2f3;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f8fbff);
    padding: .9rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe6fb;
    background: #eef4ff;
    color: #4f46e5;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-empty strong {
    display: block;
    color: var(--ncp-text);
    font-size: .92rem;
}

.invoice-editor-modern-page.notification-composer-page .notification-history-empty p {
    margin: .15rem 0 0;
    color: var(--ncp-text-muted);
    font-size: .82rem;
}

@media (max-width: 1199.98px) {
    .invoice-editor-modern-page.notification-composer-page .invoice-editor-hero-grid {
        grid-template-columns: 1fr;
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-stats {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-compose-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .invoice-editor-modern-page.notification-composer-page .invoice-editor-shared-shell {
        border-radius: 16px;
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-hero {
        padding: .82rem;
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-panel .card-body {
        padding: .82rem;
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-chip {
        font-size: .84rem;
        padding: .4rem .72rem;
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-title {
        font-size: clamp(1.38rem, 6.8vw, 1.78rem);
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .label {
        font-size: .7rem;
    }

    .invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .value {
        font-size: 1.45rem;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-field-grid {
        grid-template-columns: 1fr;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-field-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-counter {
        min-width: 0;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-metrics-grid {
        grid-template-columns: 1fr;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-history-item {
        grid-template-columns: 1fr;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-history-icon {
        display: none;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-history-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-history-footer {
        align-items: stretch;
    }

    .invoice-editor-modern-page.notification-composer-page .notification-history-pager {
        width: 100%;
    }
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page {
    --ncp-border: #253247;
    --ncp-border-strong: #32445e;
    --ncp-text: #e5edf7;
    --ncp-text-muted: #a9b8cc;
    --ncp-text-soft: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-shared-shell {
    border-color: #27364b;
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 34px rgba(2,6,23,.35);
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-hero {
    border-bottom-color: rgba(148,163,184,.16);
    background:
        radial-gradient(circle at 0% 0%, rgba(59,130,246,.14), transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(99,102,241,.18), transparent 44%),
        linear-gradient(180deg, rgba(17,24,39,.95), rgba(13,20,34,.95));
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-title {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-subtitle {
    color: #9db0c7;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-chip {
    border-color: #304159;
    background: rgba(148,163,184,.08);
    color: #d5e1f1;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-chip i {
    color: #9cb0cb;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-stat {
    border-color: #304159;
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(12,19,32,.92));
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .label {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .value {
    color: #eef4ff;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-editor-stat .meta {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .invoice-section,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-side-card {
    border-color: #2a394f;
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-brand {
    border-color: rgba(148,163,184,.16);
    background: rgba(255,255,255,.03);
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-brand-logo {
    border-color: rgba(148,163,184,.16);
    background: #0f172a;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-brand-copy .eyebrow {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-brand-copy .name {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-channel-card,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-side-card,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .metric-tile,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-device {
    border-color: #2a394f;
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(12,19,32,.92));
    box-shadow: none;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-channel-pill {
    border-color: #304159;
    background: rgba(79,70,229,.10);
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-channel-pill > i {
    border-color: #31445f;
    background: rgba(17,24,39,.7);
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-channel-pill strong,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-side-head h6,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-copy .title,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .metric-tile .value {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-channel-pill span,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-side-head p,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-copy .body,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-checklist li {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-topbar {
    border-bottom-color: rgba(148,163,184,.14);
    background: linear-gradient(180deg, rgba(17,24,39,.85), rgba(12,19,32,.85));
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-topbar .dot {
    background: #475569;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-topbar .label,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-copy .meta,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .metric-tile .label,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .metric-tile .meta {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-preview-icon {
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(79,70,229,.18), rgba(59,130,246,.12));
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-checklist i {
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-counter {
    border-color: #304159;
    background: rgba(148,163,184,.08);
    color: #dbe7f5;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-item,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-empty {
    border-color: #2a394f;
    background: linear-gradient(180deg, rgba(17,24,39,.92), rgba(12,19,32,.92));
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-icon,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-empty-icon {
    border-color: #31445f;
    background: rgba(79,70,229,.10);
    color: #a5b4fc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-title,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-empty strong {
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-meta,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-message,
html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-empty p {
    color: #a9b8cc;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-chip {
    border-color: #304159;
    background: rgba(59,130,246,.12);
    color: #bfdbfe;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-history-summary {
    color: #8ea1bb;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-page-link {
    border-color: #304159;
    background: rgba(148,163,184,.06);
    color: #cbd5e1;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page a.notification-page-link:hover {
    border-color: #3b4f6b;
    background: rgba(59,130,246,.10);
    color: #e5edf7;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-page-link.is-active {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #fff;
}

html[data-theme="dark"] .invoice-editor-modern-page.notification-composer-page .notification-page-link.is-disabled {
    background: rgba(148,163,184,.05);
    color: #94a3b8;
}

/* ===== Report Page (admin/report.php) ===== */
.report-modern-page {
    --rep-bg: #edf3fa;
    --rep-surface: rgba(255, 255, 255, 0.93);
    --rep-border: #dbe6f2;
    --rep-border-strong: #cfdced;
    --rep-text: #0f172a;
    --rep-text-muted: #64748b;
    --rep-text-soft: #94a3b8;
    --rep-primary: #2563eb;
    --rep-primary-2: #06b6d4;
    --rep-primary-3: #4f46e5;
    background:
        radial-gradient(circle at 10% 4%, rgba(37, 99, 235, 0.10), transparent 42%),
        radial-gradient(circle at 92% 12%, rgba(79, 70, 229, 0.10), transparent 38%),
        linear-gradient(180deg, #f8fbff 0%, var(--rep-bg) 56%, #e9f0f8 100%);
}

.report-modern-page .page-title-box {
    display: none;
}

.report-modern-page .report-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1.15rem;
    background:
        radial-gradient(circle at 86% 16%, rgba(34, 211, 238, 0.22), transparent 34%),
        radial-gradient(circle at 16% 88%, rgba(139, 92, 246, 0.16), transparent 36%),
        linear-gradient(135deg, #071a33 0%, #13294d 46%, #2a2f88 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.report-modern-page .report-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    filter: blur(6px);
    pointer-events: none;
}

.report-modern-page .report-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr);
    gap: 1rem;
}

.report-modern-page .report-hero-main {
    display: flex;
    flex-direction: column;
    gap: .95rem;
    justify-content: space-between;
}

.report-modern-page .report-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    align-self: flex-start;
    padding: .55rem .8rem;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
}

.report-modern-page .report-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.report-modern-page .report-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.report-modern-page .report-brand-copy .eyebrow {
    display: block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.report-modern-page .report-brand-copy .name {
    display: block;
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
}

.report-modern-page .report-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.report-modern-page .report-subtitle {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
    max-width: 60ch;
}

.report-modern-page .report-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 600;
    font-size: .84rem;
    width: fit-content;
}

.report-modern-page .report-filter-pill i {
    color: #7dd3fc;
}

.report-modern-page .report-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}

.report-modern-page .report-stat-card {
    border-radius: 16px;
    padding: .85rem .95rem;
    min-height: 88px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
}

.report-modern-page .report-stat-card .label {
    color: rgba(255,255,255,.74);
    font-size: .8rem;
}

.report-modern-page .report-stat-card .value {
    margin-top: .35rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.05;
    word-break: break-word;
}

.report-modern-page .report-stat-card .meta {
    margin-top: .28rem;
    color: rgba(255,255,255,.65);
    font-size: .74rem;
}

.report-modern-page .report-table-card {
    position: relative;
    margin-top: 1rem;
    border-radius: 22px;
    border: 1px solid var(--rep-border);
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,252,255,.91));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.report-modern-page .report-table-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rep-primary), var(--rep-primary-2), var(--rep-primary-3));
}

.report-modern-page .report-table-card .card-body {
    padding: 1.1rem 1.15rem 1rem;
}

.report-modern-page .report-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.report-modern-page .report-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.report-modern-page .report-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .44rem .68rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff, #f2f7ff);
    border: 1px solid var(--rep-border);
    color: #44566f;
    font-weight: 600;
    font-size: .82rem;
}

.report-modern-page .report-chip i {
    color: var(--rep-primary);
}

.report-modern-page .btn.report-btn-primary {
    border: 0;
    border-radius: 12px;
    min-height: 42px;
    padding: .6rem .95rem;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
    box-shadow: 0 12px 24px rgba(37,99,235,.22);
}

.report-modern-page .btn.report-btn-primary:hover,
.report-modern-page .btn.report-btn-primary:focus {
    color: #fff;
}

.report-modern-page #basic-datatable_wrapper .row:first-child {
    align-items: center;
    margin-bottom: .25rem;
}

.report-modern-page #basic-datatable_wrapper .dataTables_length label,
.report-modern-page #basic-datatable_wrapper .dataTables_filter label {
    color: var(--rep-text-muted);
    font-weight: 500;
}

.report-modern-page #basic-datatable_wrapper .form-select,
.report-modern-page #basic-datatable_wrapper .form-control {
    border-radius: 10px;
    border-color: var(--rep-border);
    background-color: #fbfdff;
    min-height: 38px;
    box-shadow: none;
}

.report-modern-page #basic-datatable_wrapper .form-control:focus,
.report-modern-page #basic-datatable_wrapper .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 .18rem rgba(59,130,246,.10);
}

.report-modern-page .report-table-shell {
    border-radius: 16px;
    border: 1px solid #e5edf7;
    background: rgba(255,255,255,.86);
    overflow: hidden;
}

.report-modern-page #basic-datatable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.report-modern-page #basic-datatable thead th {
    background: linear-gradient(180deg, #f8fbff, #f3f8ff);
    color: #425269;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 1px solid #dde7f3 !important;
    padding: .9rem .8rem;
    white-space: nowrap;
}

.report-modern-page #basic-datatable tbody td {
    border-bottom: 1px solid #eaf0f8;
    padding: .85rem .8rem;
    vertical-align: middle;
    background: rgba(255,255,255,.94);
}

.report-modern-page #basic-datatable tbody tr:hover td {
    background: linear-gradient(180deg, #fcfeff, #f6fbff);
}

.report-modern-page .rep-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #e9f3ff, #e3eeff);
    color: #1d4ed8;
    border: 1px solid #cfe0ff;
    font-weight: 700;
    font-size: .84rem;
}

.report-modern-page .report-customer-cell {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 200px;
}

.report-modern-page .report-customer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    background: linear-gradient(135deg, #2563eb, #0ea5e9 55%, #4f46e5);
    box-shadow: 0 10px 18px rgba(37,99,235,.12);
    flex-shrink: 0;
}

.report-modern-page .report-customer-copy .name {
    display: block;
    color: var(--rep-text);
    font-weight: 600;
    line-height: 1.2;
}

.report-modern-page .report-customer-copy .meta {
    display: block;
    color: var(--rep-text-soft);
    font-size: .75rem;
    margin-top: .15rem;
}

.report-modern-page .report-file-cell {
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.report-modern-page .report-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(180deg, #edf4ff, #e7f0ff);
    border: 1px solid #d7e5ff;
    flex-shrink: 0;
}

.report-modern-page .report-file-copy .name {
    display: block;
    color: #1e293b;
    font-weight: 600;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-modern-page .report-file-copy .meta {
    display: block;
    color: #94a3b8;
    font-size: .74rem;
    margin-top: .1rem;
}

.report-modern-page .report-date-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #fbfdff, #f3f8ff);
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.report-modern-page .report-date-chip i {
    color: #8ea0ba;
}

.report-modern-page .report-range-cell {
    min-width: 210px;
}

.report-modern-page .report-range-meta {
    display: block;
    color: #94a3b8;
    font-size: .74rem;
    margin-top: .25rem;
}

.report-modern-page .action-group {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.report-modern-page .report-action-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--rep-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #64748b;
    transition: all .15s ease;
}

.report-modern-page .report-action-btn:hover {
    border-color: #cfe0ff;
    background: linear-gradient(180deg, #eef5ff, #e8f1ff);
    color: #1d4ed8;
    box-shadow: 0 8px 16px rgba(37,99,235,.10);
}

.report-modern-page #basic-datatable_wrapper .dataTables_info {
    color: var(--rep-text-muted);
    font-weight: 500;
    padding-top: .85rem !important;
}

.report-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    color: var(--rep-text-muted) !important;
}

.report-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #0ea5e9, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

.report-modern-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9f3ff !important;
    border-color: #cfe0ff !important;
    color: #1d4ed8 !important;
}

@media (max-width: 1199.98px) {
    .report-modern-page .report-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .report-modern-page .report-hero,
    .report-modern-page .report-table-card {
        border-radius: 16px;
    }

    .report-modern-page .report-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .report-modern-page .report-table-card .card-body {
        padding: .95rem .8rem .85rem;
    }

    .report-modern-page .report-toolbar-left {
        width: 100%;
    }

    .report-modern-page .btn.report-btn-primary,
    .report-modern-page .report-chip {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .report-modern-page .report-hero-stats {
        grid-template-columns: 1fr;
    }

    .report-modern-page .report-subtitle {
        font-size: .9rem;
    }

    .report-modern-page #basic-datatable_wrapper .dataTables_filter,
    .report-modern-page #basic-datatable_wrapper .dataTables_length {
        width: 100%;
        text-align: left !important;
    }

    .report-modern-page #basic-datatable_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0 !important;
        margin-top: .35rem;
    }
}

/* ===== Report Shared Dashboard Overrides (admin/report.php) ===== */
.report-modern-page.report-shared-dashboard-page {
    --rsd-bg: #eef2f7;
    --rsd-surface: #ffffff;
    --rsd-surface-soft: #f8fafc;
    --rsd-border: #e2e8f0;
    --rsd-border-strong: #d5dfec;
    --rsd-text: #0f172a;
    --rsd-text-muted: #64748b;
    --rsd-text-soft: #94a3b8;
    --rsd-accent: #2563eb;
    --rsd-accent-2: #6366f1;
    --rsd-success: #16a34a;
    --rsd-warn: #d97706;
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.05), transparent 38%),
        radial-gradient(circle at 92% 8%, rgba(99,102,241,.05), transparent 42%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f8 72%, #e8eef6 100%);
}

.report-modern-page.report-shared-dashboard-page .report-dashboard-shell {
    margin-top: .2rem;
    border-radius: 22px;
    border: 1px solid var(--rsd-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
    overflow: hidden;
    padding: .9rem;
}

.report-modern-page.report-shared-dashboard-page .report-dashboard-shell > .row {
    margin-left: -.45rem;
    margin-right: -.45rem;
}

.report-modern-page.report-shared-dashboard-page .report-dashboard-shell > .row > [class*="col-"] {
    padding-left: .45rem;
    padding-right: .45rem;
}

.report-modern-page.report-shared-dashboard-page .report-hero {
    margin: 0;
    border-radius: 18px;
    padding: 1rem;
    color: var(--rsd-text);
    border: 1px solid var(--rsd-border);
    box-shadow: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.08), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(6,182,212,.08), transparent 36%),
        linear-gradient(180deg, #ffffff, #fbfcff);
}

.report-modern-page.report-shared-dashboard-page .report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .38;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
}

.report-modern-page.report-shared-dashboard-page .report-hero-grid {
    gap: .9rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.report-modern-page.report-shared-dashboard-page .report-hero-main {
    justify-content: flex-start;
    gap: .8rem;
}

.report-modern-page.report-shared-dashboard-page .report-dash-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    padding: .45rem .65rem;
    border-radius: 14px;
    border: 1px solid var(--rsd-border);
    background: rgba(255,255,255,.9);
}

.report-modern-page.report-shared-dashboard-page .report-dash-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e6edf7;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.report-modern-page.report-shared-dashboard-page .report-dash-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.report-modern-page.report-shared-dashboard-page .report-dash-brand-copy .eyebrow {
    display: block;
    color: var(--rsd-text-soft);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.report-modern-page.report-shared-dashboard-page .report-dash-brand-copy .name {
    display: block;
    color: var(--rsd-text);
    font-weight: 700;
    line-height: 1.15;
}

.report-modern-page.report-shared-dashboard-page .report-title {
    color: var(--rsd-text);
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.report-modern-page.report-shared-dashboard-page .report-subtitle {
    margin-top: .25rem;
    color: var(--rsd-text-muted);
    max-width: 58ch;
}

.report-modern-page.report-shared-dashboard-page .report-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
}

.report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary {
    border-radius: 12px;
    min-height: 42px;
    padding: .55rem .9rem;
    border: 1px solid var(--rsd-border);
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #334155;
    font-weight: 600;
}

.report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary:hover,
.report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary:focus {
    color: #0f172a;
    border-color: var(--rsd-border-strong);
    background: #fff;
}

.report-modern-page.report-shared-dashboard-page .report-filter-pill {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-color: var(--rsd-border);
    color: #334155;
}

.report-modern-page.report-shared-dashboard-page .report-filter-pill i {
    color: #64748b;
}

.report-modern-page.report-shared-dashboard-page .report-hero-stats {
    gap: .65rem;
}

.report-modern-page.report-shared-dashboard-page .report-stat-card {
    min-height: 84px;
    border-radius: 14px;
    border: 1px solid var(--rsd-border);
    background: linear-gradient(180deg, #fff, #f9fbff);
    box-shadow: none;
    backdrop-filter: none;
}

.report-modern-page.report-shared-dashboard-page .report-stat-card .label {
    color: var(--rsd-text-muted);
}

.report-modern-page.report-shared-dashboard-page .report-stat-card .value {
    color: var(--rsd-text);
    font-size: 1.15rem;
}

.report-modern-page.report-shared-dashboard-page .report-stat-card .meta {
    color: var(--rsd-text-soft);
}

.report-modern-page.report-shared-dashboard-page .report-insight-card,
.report-modern-page.report-shared-dashboard-page .report-table-card {
    border-radius: 18px;
    border: 1px solid var(--rsd-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
    overflow: hidden;
}

.report-modern-page.report-shared-dashboard-page .report-insight-card {
    margin-top: .9rem;
}

.report-modern-page.report-shared-dashboard-page .report-insight-card .card-body {
    padding: .95rem 1rem;
}

.report-modern-page.report-shared-dashboard-page .report-insight-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.report-modern-page.report-shared-dashboard-page .report-insight-title {
    margin: 0;
    color: var(--rsd-text);
    font-weight: 700;
    letter-spacing: -.01em;
}

.report-modern-page.report-shared-dashboard-page .report-insight-subtitle {
    margin: .15rem 0 0;
    color: var(--rsd-text-muted);
    font-size: .79rem;
    line-height: 1.35;
}

.report-modern-page.report-shared-dashboard-page .report-insight-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #effdf5;
    color: #15803d;
    font-weight: 700;
    font-size: .75rem;
    padding: .32rem .55rem;
    white-space: nowrap;
}

.report-modern-page.report-shared-dashboard-page .report-insight-pill.neutral {
    border-color: #dbe4f0;
    background: linear-gradient(180deg, #fbfdff, #f4f8ff);
    color: #334155;
}

.report-modern-page.report-shared-dashboard-page .report-bars-chart {
    margin-top: .9rem;
    min-height: 190px;
    border-radius: 14px;
    border: 1px solid #e8eef7;
    background:
        linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(180deg, #ffffff, #fbfdff);
    padding: .8rem .85rem .6rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: .65rem;
    align-items: end;
}

.report-modern-page.report-shared-dashboard-page .report-bars-chart .bar-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .22rem;
    align-items: end;
    height: 100%;
}

.report-modern-page.report-shared-dashboard-page .report-bars-chart .bar {
    display: block;
    width: 100%;
    border-radius: 8px 8px 4px 4px;
    align-self: end;
}

.report-modern-page.report-shared-dashboard-page .report-bars-chart .bar-a {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.report-modern-page.report-shared-dashboard-page .report-bars-chart .bar-b {
    background: linear-gradient(180deg, #a78bfa, #6366f1);
}

.report-modern-page.report-shared-dashboard-page .report-bars-chart .bar-group em {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: .35rem;
    color: var(--rsd-text-soft);
    font-style: normal;
    font-size: .73rem;
    font-weight: 600;
}

.report-modern-page.report-shared-dashboard-page .report-insight-legend {
    margin-top: .6rem;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    color: var(--rsd-text-muted);
    font-size: .78rem;
    font-weight: 600;
}

.report-modern-page.report-shared-dashboard-page .report-insight-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: .35rem;
    vertical-align: middle;
}

.report-modern-page.report-shared-dashboard-page .report-insight-legend .dot-a {
    background: #2563eb;
}

.report-modern-page.report-shared-dashboard-page .report-insight-legend .dot-b {
    background: #6366f1;
}

.report-modern-page.report-shared-dashboard-page .report-line-chart {
    margin-top: .9rem;
    height: 190px;
    border-radius: 14px;
    border: 1px solid #e8eef7;
    background: linear-gradient(180deg, #fff, #fbfdff);
    position: relative;
    overflow: hidden;
}

.report-modern-page.report-shared-dashboard-page .report-line-chart .grid-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px) 0 0 / 56px 100%;
    pointer-events: none;
}

.report-modern-page.report-shared-dashboard-page .report-line-chart svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.report-modern-page.report-shared-dashboard-page .report-line-chart .line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-modern-page.report-shared-dashboard-page .report-line-chart .line-primary {
    stroke: #2563eb;
}

.report-modern-page.report-shared-dashboard-page .report-line-chart .line-secondary {
    stroke: #16a34a;
    opacity: .9;
}

.report-modern-page.report-shared-dashboard-page .report-line-labels {
    margin-top: .55rem;
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: .4rem;
    color: var(--rsd-text-soft);
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
}

.report-modern-page.report-shared-dashboard-page .report-table-card {
    margin-top: .9rem;
    border-radius: 18px;
    border-color: var(--rsd-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.97));
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.report-modern-page.report-shared-dashboard-page .report-table-card::before {
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1 45%, #06b6d4);
    opacity: .85;
}

.report-modern-page.report-shared-dashboard-page .report-table-card .card-body {
    padding: .95rem;
}

.report-modern-page.report-shared-dashboard-page .report-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .6rem;
}

.report-modern-page.report-shared-dashboard-page .report-section-head-actions {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.report-modern-page.report-shared-dashboard-page .report-section-title {
    margin: 0;
    color: var(--rsd-text);
    font-weight: 700;
    letter-spacing: -.015em;
}

.report-modern-page.report-shared-dashboard-page .report-section-subtitle {
    margin: .2rem 0 0;
    color: var(--rsd-text-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.report-modern-page.report-shared-dashboard-page .report-toolbar {
    margin-bottom: .75rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #edf2f7;
}

.report-modern-page.report-shared-dashboard-page .btn.report-btn-primary {
    background: linear-gradient(135deg, #111827, #1f2937);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 12px 20px rgba(15,23,42,.10);
}

.report-modern-page.report-shared-dashboard-page .btn.report-btn-primary:hover,
.report-modern-page.report-shared-dashboard-page .btn.report-btn-primary:focus {
    background: linear-gradient(135deg, #0f172a, #111827);
}

.report-modern-page.report-shared-dashboard-page .report-chip {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-color: var(--rsd-border);
    color: #475569;
    box-shadow: none;
}

.report-modern-page.report-shared-dashboard-page .report-chip i {
    color: #64748b;
}

.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_length label,
.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_filter label,
.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_info {
    color: var(--rsd-text-muted);
}

.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .form-select,
.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .form-control {
    border-radius: 10px;
    border-color: var(--rsd-border);
    background: #fbfdff;
    color: #0f172a;
}

.report-modern-page.report-shared-dashboard-page .report-table-shell {
    border-radius: 14px;
    border: 1px solid #e8eef7;
    background: #fff;
    overflow: auto;
}

.report-modern-page.report-shared-dashboard-page.labels-reporting-page .report-library-calendar-icon.is-active {
    border-color: rgba(59, 130, 246, 0.34);
    background: rgba(59, 130, 246, 0.07);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.report-modern-page.report-shared-dashboard-page #basic-datatable thead th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e5ecf5 !important;
    text-transform: none;
    font-size: .8rem;
}

.report-modern-page.report-shared-dashboard-page #basic-datatable tbody td {
    background: #fff;
    border-bottom-color: #edf2f8;
}

.report-modern-page.report-shared-dashboard-page #basic-datatable tbody tr:hover td {
    background: #fafcff;
}

.report-modern-page.report-shared-dashboard-page .rep-index {
    border-radius: 10px;
    border-color: #dfe7f4;
    background: linear-gradient(180deg, #f4f7ff, #eef2ff);
    color: #4f46e5;
}

.report-modern-page.report-shared-dashboard-page .report-customer-avatar {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.report-modern-page.report-shared-dashboard-page .report-customer-copy .name,
.report-modern-page.report-shared-dashboard-page .report-file-copy .name {
    color: var(--rsd-text);
}

.report-modern-page.report-shared-dashboard-page .report-customer-copy .meta,
.report-modern-page.report-shared-dashboard-page .report-file-copy .meta,
.report-modern-page.report-shared-dashboard-page .report-range-meta {
    color: var(--rsd-text-soft);
}

.report-modern-page.report-shared-dashboard-page .report-date-chip {
    border-color: #dbe4f0;
    background: linear-gradient(180deg, #fbfdff, #f3f8ff);
    color: #334155;
}

.report-modern-page.report-shared-dashboard-page .report-action-btn {
    border-color: var(--rsd-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #64748b;
    box-shadow: none;
}

.report-modern-page.report-shared-dashboard-page .report-action-btn:hover {
    border-color: #cfe0ff;
    background: #eef5ff;
    color: #1d4ed8;
    box-shadow: none;
}

.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    color: var(--rsd-text-muted) !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    box-shadow: none;
}

.report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f4f7fd !important;
    border-color: #d9e4f3 !important;
    color: #1e293b !important;
}

@media (max-width: 1199.98px) {
    .report-modern-page.report-shared-dashboard-page .report-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .report-modern-page.report-shared-dashboard-page .report-hero-actions {
        width: 100%;
    }

    .report-modern-page.report-shared-dashboard-page .report-insight-head {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .report-modern-page.report-shared-dashboard-page .report-dashboard-shell {
        border-radius: 16px;
        padding: .85rem;
    }

    .report-modern-page.report-shared-dashboard-page .report-hero,
    .report-modern-page.report-shared-dashboard-page .report-insight-card,
    .report-modern-page.report-shared-dashboard-page .report-table-card {
        border-radius: 16px;
    }

    .report-modern-page.report-shared-dashboard-page .report-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .report-modern-page.report-shared-dashboard-page .report-insight-card .card-body,
    .report-modern-page.report-shared-dashboard-page .report-table-card .card-body {
        padding: .9rem;
    }

    .report-modern-page.report-shared-dashboard-page .report-toolbar-left {
        width: 100%;
        gap: .5rem;
    }

    .report-modern-page.report-shared-dashboard-page .btn.report-btn-primary,
    .report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary,
    .report-modern-page.report-shared-dashboard-page .report-chip,
    .report-modern-page.report-shared-dashboard-page .report-filter-pill {
        width: 100%;
        justify-content: center;
    }

    .report-modern-page.report-shared-dashboard-page .report-bars-chart {
        min-height: 170px;
        gap: .45rem;
        padding: .7rem .7rem .5rem;
    }
}

@media (max-width: 575.98px) {
    .report-modern-page.report-shared-dashboard-page .report-hero-stats {
        grid-template-columns: 1fr;
    }

    .report-modern-page.report-shared-dashboard-page .report-title {
        font-size: 1.55rem;
    }

    .report-modern-page.report-shared-dashboard-page .report-subtitle {
        font-size: .9rem;
    }

    .report-modern-page.report-shared-dashboard-page .report-line-labels {
        font-size: .68rem;
        gap: .2rem;
    }
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page {
    --rsd-border: #253247;
    --rsd-border-strong: #32445e;
    --rsd-text: #e5edf7;
    --rsd-text-muted: #a9b8cc;
    --rsd-text-soft: #8ea1bb;
    background:
        radial-gradient(circle at 10% 0%, rgba(59,130,246,.12), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(99,102,241,.10), transparent 44%),
        linear-gradient(180deg, #0b1220 0%, #101a2d 72%, #0c1424 100%);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-dashboard-shell {
    border-color: var(--rsd-border);
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 40px rgba(2,6,23,.32);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-hero {
    border-color: var(--rsd-border);
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,.07), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(6,182,212,.09), transparent 36%),
        linear-gradient(180deg, rgba(17,24,39,.95), rgba(13,20,34,.95));
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-hero::after {
    opacity: .22;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-dash-brand {
    border-color: rgba(148,163,184,.16);
    background: rgba(255,255,255,.03);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-dash-brand-logo {
    border-color: rgba(148,163,184,.16);
    background: #0f172a;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-title {
    color: #e5edf7;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-subtitle {
    color: #a9b8cc;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-filter-pill {
    color: #dbe7f5;
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary:hover,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .btn.report-btn-secondary:focus {
    color: #eef4ff;
    border-color: #364861;
    background: linear-gradient(180deg, #1a2740, #142138);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-filter-pill i {
    color: #9cb0cb;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-stat-card,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-insight-card,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-table-card {
    border-color: var(--rsd-border);
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
    box-shadow: 0 10px 20px rgba(2,6,23,.18);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page.labels-reporting-page .report-library-calendar-icon.is-active,
body.analytics-dashboard-theme-dark .report-modern-page.report-shared-dashboard-page.labels-reporting-page .report-library-calendar-icon.is-active {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(37, 99, 235, 0.18);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-stat-card .label,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-insight-subtitle,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-section-subtitle,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_length label,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_filter label,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_info {
    color: #a9b8cc;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-stat-card .value,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-insight-title,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-section-title {
    color: #e5edf7;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-stat-card .meta,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-line-labels,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-insight-legend {
    color: #8ea1bb;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-insight-pill {
    background: rgba(22,163,74,.14);
    border-color: rgba(34,197,94,.26);
    color: #86efac;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-insight-pill.neutral {
    background: rgba(148,163,184,.08);
    border-color: #304159;
    color: #dbe7f5;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-bars-chart,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-line-chart,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-table-shell {
    border-color: #2b3950;
    background: #0f172a;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-bars-chart {
    background:
        linear-gradient(rgba(148,163,184,.10) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(180deg, #111827, #0f172a);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-line-chart .grid-lines {
    background:
        linear-gradient(rgba(148,163,184,.10) 1px, transparent 1px) 0 0 / 100% 28px,
        linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px) 0 0 / 56px 100%;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-toolbar {
    border-bottom-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .btn.report-btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3730a3);
    border-color: rgba(96,165,250,.24);
    box-shadow: none;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .btn.report-btn-primary:hover,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .btn.report-btn-primary:focus {
    background: linear-gradient(135deg, #2563eb, #4338ca);
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-chip {
    border-color: #2b3950;
    background: rgba(148,163,184,.08);
    color: #c5d3e6;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-chip i {
    color: #9cb0cb;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .form-select,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .form-control {
    border-color: #2c3a51;
    background: #111a2c;
    color: #e5edf7;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .form-control::placeholder {
    color: #7f93ae;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable thead th {
    background: #131d31;
    color: #b8c7da;
    border-bottom-color: #28364c !important;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable tbody td {
    background: #111827;
    border-bottom-color: #243248;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable tbody tr:hover td {
    background: #162033;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .rep-index {
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(79,70,229,.18), rgba(59,130,246,.14));
    color: #c7d2fe;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-file-icon {
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(59,130,246,.10));
    color: #93c5fd;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-customer-copy .name,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-file-copy .name {
    color: #e5edf7;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-customer-copy .meta,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-file-copy .meta,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-range-meta {
    color: #8ea1bb;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-date-chip {
    border-color: #304159;
    background: rgba(148,163,184,.08);
    color: #dbe7f5;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-date-chip i {
    color: #9cb0cb;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-action-btn {
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
    color: #b3c2d5;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page .report-action-btn:hover {
    border-color: #395172;
    background: #1a2740;
    color: #eef4ff;
    box-shadow: none;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    color: #b5c4d8 !important;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #fff !important;
}

html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(59,130,246,.12) !important;
    border-color: #304159 !important;
    color: #eef4ff !important;
}

/* ===== Settings Workspace Page (admin/create_setting.php) ===== */
.settings-workspace-page {
    --set-bg: #eef2f7;
    --set-surface: #ffffff;
    --set-surface-soft: #f8fafc;
    --set-border: #e2e8f0;
    --set-border-strong: #d3dbe8;
    --set-text: #0f172a;
    --set-text-muted: #64748b;
    --set-text-soft: #94a3b8;
    --set-accent: #2563eb;
    --set-accent-2: #4f46e5;
    --set-success: #16a34a;
    --set-warn: #d97706;
    background:
        radial-gradient(circle at 8% 0%, rgba(37,99,235,.05), transparent 38%),
        radial-gradient(circle at 92% 8%, rgba(79,70,229,.05), transparent 40%),
        linear-gradient(180deg, #f7f9fd 0%, var(--set-bg) 72%, #eaf0f7 100%);
}

.settings-workspace-page .page-title-box {
    display: none;
}

.settings-workspace-page .settings-shell {
    margin-top: .25rem;
    border-radius: 22px;
    border: 1px solid var(--set-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
    box-shadow: 0 22px 45px rgba(15,23,42,.06);
    overflow: hidden;
}

.settings-workspace-page .settings-shell-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.15rem .85rem;
    border-bottom: 1px solid #edf1f7;
    background: linear-gradient(180deg, #fff, #fbfcff);
}

.settings-workspace-page .settings-shell-head-main {
    min-width: 0;
}

.settings-workspace-page .settings-mini-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .7rem;
    padding: .45rem .65rem;
    border-radius: 14px;
    border: 1px solid var(--set-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.settings-workspace-page .settings-mini-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #e3eaf5;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.settings-workspace-page .settings-mini-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.settings-workspace-page .settings-mini-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.settings-workspace-page .settings-mini-brand-copy .label {
    color: var(--set-text-soft);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.1;
}

.settings-workspace-page .settings-mini-brand-copy .value {
    color: var(--set-text);
    font-weight: 700;
    line-height: 1.2;
}

.settings-workspace-page .settings-title {
    margin: 0;
    color: var(--set-text);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.settings-workspace-page .settings-subtitle {
    margin: .35rem 0 0;
    color: var(--set-text-muted);
    max-width: 70ch;
    line-height: 1.5;
}

.settings-workspace-page .settings-head-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-workspace-page .settings-btn-primary,
.settings-workspace-page .settings-btn-secondary {
    border-radius: 12px;
    min-height: 42px;
    padding: .55rem .9rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.settings-workspace-page .settings-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 10px 18px rgba(37,99,235,.18);
}

.settings-workspace-page .settings-btn-primary:hover,
.settings-workspace-page .settings-btn-primary:focus {
    color: #fff;
}

.settings-workspace-page .settings-btn-secondary {
    color: #475569;
    background: #fff;
    border-color: var(--set-border);
}

.settings-workspace-page .settings-btn-secondary:hover {
    color: var(--set-text);
    border-color: var(--set-border-strong);
    background: #f8fbff;
}

.settings-workspace-page .settings-tabs {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    padding: .8rem 1.15rem;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
}

.settings-workspace-page .settings-tab {
    border: 1px solid transparent;
    background: transparent;
    color: #667085;
    padding: .55rem .8rem;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1;
    cursor: default;
}

.settings-workspace-page .settings-tab.active {
    color: var(--set-text);
    border-color: #d7e0ee;
    background: linear-gradient(180deg, #fafcff, #f3f7fd);
    box-shadow: inset 0 -2px 0 rgba(37,99,235,.8);
}

.settings-workspace-page .settings-tabs-note {
    margin-left: .35rem;
    color: var(--set-text-soft);
    font-size: .8rem;
    line-height: 1.35;
}

.settings-workspace-page .settings-alert {
    margin: 1rem 1.15rem 0;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    padding: .75rem .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .55rem;
}

.settings-workspace-page .settings-alert.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.settings-workspace-page .settings-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr);
    gap: 1rem;
    padding: 1rem 1.15rem 1.15rem;
    align-items: start;
}

.settings-workspace-page .settings-main-column,
.settings-workspace-page .settings-side-column {
    display: grid;
    gap: .95rem;
}

.settings-workspace-page .settings-panel,
.settings-workspace-page .settings-side-card {
    border-radius: 18px;
    border: 1px solid var(--set-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.95));
    box-shadow: 0 10px 20px rgba(15,23,42,.03);
    overflow: hidden;
}

.settings-workspace-page .settings-panel-head,
.settings-workspace-page .settings-side-card-head {
    padding: .95rem 1rem .8rem;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
}

.settings-workspace-page .settings-panel-head h5,
.settings-workspace-page .settings-side-card-head h6 {
    margin: 0;
    color: var(--set-text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.settings-workspace-page .settings-panel-head p {
    margin: .18rem 0 0;
    color: var(--set-text-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.settings-workspace-page .settings-panel-body {
    padding: .95rem 1rem 1rem;
}

.settings-workspace-page .settings-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.settings-workspace-page .settings-span-2 {
    grid-column: span 2;
}

.settings-workspace-page .settings-field label {
    display: block;
    color: #334155;
    font-weight: 600;
    margin-bottom: .45rem;
}

.settings-workspace-page .settings-field .form-control {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #dbe5f1;
    background: #fbfdff;
    padding: .55rem .85rem;
    box-shadow: none;
}

.settings-workspace-page .settings-field .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .18rem rgba(59,130,246,.09);
}

.settings-workspace-page .settings-field input[type="color"].form-control {
    width: 62px;
    min-width: 62px;
    height: 46px;
    min-height: 46px;
    padding: .25rem;
    cursor: pointer;
    border-radius: 12px;
}

.settings-workspace-page .settings-field .invalid-feedback {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
}

.settings-workspace-page .settings-help {
    margin-top: .35rem;
    color: var(--set-text-soft);
    font-size: .78rem;
}

.settings-workspace-page .settings-color-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.settings-workspace-page .settings-color-readout {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .65rem;
    border-radius: 12px;
    border: 1px solid var(--set-border);
    background: linear-gradient(180deg, #fff, #f8fbff);
    min-height: 46px;
}

.settings-workspace-page .settings-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--settings-color, #2563eb);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(148,163,184,.35);
    flex-shrink: 0;
}

.settings-workspace-page .settings-color-label {
    display: block;
    color: var(--set-text-soft);
    font-size: .7rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.settings-workspace-page .settings-color-value {
    display: block;
    color: var(--set-text);
    font-weight: 700;
    line-height: 1.2;
}

.settings-workspace-page .settings-upload-drop {
    border: 1px dashed #d4dfef;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f6faff);
    padding: .9rem;
}

.settings-workspace-page .settings-upload-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
}

.settings-workspace-page .settings-upload-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #2563eb;
    border: 1px solid #d7e4fb;
    background: linear-gradient(180deg, #edf4ff, #e9f1ff);
    flex-shrink: 0;
}

.settings-workspace-page .settings-upload-title {
    color: var(--set-text);
    font-weight: 600;
    line-height: 1.2;
}

.settings-workspace-page .settings-upload-subtitle {
    margin-top: .12rem;
    color: var(--set-text-soft);
    font-size: .76rem;
    line-height: 1.35;
}

.settings-workspace-page .settings-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    padding: .2rem .1rem 0;
    flex-wrap: wrap;
}

.settings-workspace-page .settings-bottom-note {
    color: var(--set-text-muted);
    font-size: .82rem;
}

.settings-workspace-page .settings-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .6rem;
    font-size: .76rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.settings-workspace-page .settings-badge.is-success {
    background: #effdf5;
    border-color: #bbf7d0;
    color: #15803d;
}

.settings-workspace-page .settings-badge.is-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.settings-workspace-page .settings-brand-preview-surface {
    --brand-accent: #2563eb;
    margin: .95rem 1rem 1rem;
    border-radius: 16px;
    border: 1px solid #dbe7f7;
    box-shadow: inset 0 3px 0 var(--brand-accent);
    background:
        radial-gradient(circle at 100% 12%, rgba(99,102,241,.08), transparent 42%),
        radial-gradient(circle at 10% 4%, rgba(37,99,235,.07), transparent 42%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    padding: .95rem;
}

.settings-workspace-page .settings-brand-preview-top {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.settings-workspace-page .settings-brand-logo-frame {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    border: 1px solid #d9e4f2;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.settings-workspace-page .settings-brand-logo-frame img {
    max-width: calc(100% - 10px);
    max-height: calc(100% - 10px);
    object-fit: contain;
    display: block;
}

.settings-workspace-page .settings-brand-fallback {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.settings-workspace-page .settings-brand-copy {
    min-width: 0;
}

.settings-workspace-page .settings-brand-copy .name {
    display: block;
    color: var(--set-text);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-workspace-page .settings-brand-copy .meta {
    display: block;
    color: var(--set-text-soft);
    font-size: .76rem;
    margin-top: .15rem;
}

.settings-workspace-page .settings-brand-pills {
    margin-top: .8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.settings-workspace-page .settings-brand-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .6rem;
    border: 1px solid #dce6f3;
    background: rgba(255,255,255,.9);
    color: #475569;
    font-weight: 600;
    font-size: .76rem;
}

.settings-workspace-page .settings-brand-pills .pill i {
    color: #64748b;
}

.settings-workspace-page .settings-option-list {
    display: grid;
    gap: .75rem;
    padding: .95rem 1rem 1rem;
}

.settings-workspace-page .settings-option-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.settings-workspace-page .settings-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dce6f5;
    background: linear-gradient(180deg, #edf4ff, #e7f0ff);
    color: #2563eb;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.settings-workspace-page .settings-option-item .title {
    color: var(--set-text);
    font-weight: 600;
    line-height: 1.2;
}

.settings-workspace-page .settings-option-item .sub {
    margin-top: .12rem;
    color: var(--set-text-soft);
    font-size: .76rem;
    line-height: 1.35;
}

.settings-workspace-page .settings-mini-stats {
    display: grid;
    gap: .65rem;
    padding: .95rem 1rem 1rem;
}

.settings-workspace-page .mini-stat {
    border-radius: 12px;
    border: 1px solid #e5ecf6;
    background: linear-gradient(180deg, #fff, #f9fbff);
    padding: .7rem .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
}

.settings-workspace-page .mini-stat .label {
    color: var(--set-text-muted);
    font-size: .8rem;
}

.settings-workspace-page .mini-stat .value {
    color: var(--set-text);
    font-weight: 700;
    font-size: .84rem;
    text-align: right;
}

@media (max-width: 1199.98px) {
    .settings-workspace-page .settings-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .settings-workspace-page .settings-shell {
        border-radius: 16px;
    }

    .settings-workspace-page .settings-shell-head {
        padding: .95rem .9rem .8rem;
    }

    .settings-workspace-page .settings-tabs {
        padding: .7rem .9rem;
        gap: .3rem;
    }

    .settings-workspace-page .settings-tab {
        width: calc(50% - .15rem);
        text-align: center;
        justify-content: center;
    }

    .settings-workspace-page .settings-tabs-note {
        width: 100%;
        margin-left: 0;
        margin-top: .25rem;
    }

    .settings-workspace-page .settings-alert {
        margin: .85rem .9rem 0;
    }

    .settings-workspace-page .settings-content-grid {
        padding: .85rem .9rem .95rem;
        gap: .85rem;
    }

    .settings-workspace-page .settings-fields-grid {
        grid-template-columns: 1fr;
    }

    .settings-workspace-page .settings-span-2 {
        grid-column: auto;
    }

    .settings-workspace-page .settings-head-actions,
    .settings-workspace-page .settings-bottom-actions {
        width: 100%;
    }

    .settings-workspace-page .settings-bottom-actions {
        align-items: stretch;
    }

    .settings-workspace-page .settings-head-actions .btn,
    .settings-workspace-page .settings-bottom-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .settings-workspace-page .settings-color-row {
        align-items: stretch;
    }

    .settings-workspace-page .settings-color-readout {
        width: 100%;
    }

    .settings-workspace-page .settings-brand-preview-top {
        align-items: flex-start;
    }
}

@media (max-width: 479.98px) {
    .settings-workspace-page .settings-tab {
        width: 100%;
    }

    .settings-workspace-page .settings-mini-brand {
        width: 100%;
    }

    .settings-workspace-page .settings-shell-head {
        gap: .7rem;
    }
}

html[data-theme="dark"] .settings-workspace-page {
    --set-bg: #0f172a;
    --set-surface: #111827;
    --set-surface-soft: #0b1220;
    --set-border: #253247;
    --set-border-strong: #32445e;
    --set-text: #e5edf7;
    --set-text-muted: #a9b8cc;
    --set-text-soft: #8ea1bb;
    background:
        radial-gradient(circle at 8% 0%, rgba(59,130,246,.10), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(99,102,241,.11), transparent 44%),
        linear-gradient(180deg, #0b1220 0%, #101a2d 72%, #0c1424 100%);
}

html[data-theme="dark"] .settings-workspace-page .settings-shell {
    border-color: var(--set-border);
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 40px rgba(2, 6, 23, .35);
}

html[data-theme="dark"] .settings-workspace-page .settings-shell-head {
    border-bottom-color: rgba(148,163,184,.14);
    background: linear-gradient(180deg, rgba(19,28,45,.96), rgba(15,23,38,.95));
}

html[data-theme="dark"] .settings-workspace-page .settings-mini-brand {
    border-color: rgba(148,163,184,.16);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

html[data-theme="dark"] .settings-workspace-page .settings-mini-brand-logo {
    border-color: rgba(148,163,184,.16);
    background: #0f172a;
}

html[data-theme="dark"] .settings-workspace-page .settings-btn-secondary {
    color: #c8d4e4;
    background: linear-gradient(180deg, #162033, #111a2c);
    border-color: rgba(148,163,184,.18);
}

html[data-theme="dark"] .settings-workspace-page .settings-btn-secondary:hover {
    color: #eef4ff;
    background: linear-gradient(180deg, #1a2740, #142138);
    border-color: rgba(148,163,184,.26);
}

html[data-theme="dark"] .settings-workspace-page .settings-tabs {
    border-bottom-color: rgba(148,163,184,.14);
    background: rgba(17,24,39,.78);
}

html[data-theme="dark"] .settings-workspace-page .settings-tab {
    color: #9fb0c6;
}

html[data-theme="dark"] .settings-workspace-page .settings-tab.active {
    color: #eef4ff;
    border-color: rgba(96,165,250,.32);
    background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(79,70,229,.15));
    box-shadow: inset 0 -2px 0 rgba(96,165,250,.95);
}

html[data-theme="dark"] .settings-workspace-page .settings-panel,
html[data-theme="dark"] .settings-workspace-page .settings-side-card {
    border-color: var(--set-border);
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
    box-shadow: 0 10px 20px rgba(2,6,23,.18);
}

html[data-theme="dark"] .settings-workspace-page .settings-panel-head,
html[data-theme="dark"] .settings-workspace-page .settings-side-card-head {
    border-bottom-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .settings-workspace-page .settings-field label {
    color: #d6e1ef;
}

html[data-theme="dark"] .settings-workspace-page .settings-field .form-control {
    border-color: #2c3a51;
    background: #111a2c;
    color: #e5edf7;
}

html[data-theme="dark"] .settings-workspace-page .settings-field .form-control::placeholder {
    color: #7f93ae;
}

html[data-theme="dark"] .settings-workspace-page .settings-field .form-control:focus {
    border-color: rgba(96,165,250,.8);
    box-shadow: 0 0 0 .18rem rgba(59,130,246,.18);
}

html[data-theme="dark"] .settings-workspace-page .settings-color-readout {
    border-color: #2c3a51;
    background: linear-gradient(180deg, #121c2f, #101827);
}

html[data-theme="dark"] .settings-workspace-page .settings-color-swatch {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px rgba(148,163,184,.45);
}

html[data-theme="dark"] .settings-workspace-page .settings-upload-drop {
    border-color: #334259;
    background: linear-gradient(180deg, rgba(17,24,39,.82), rgba(11,18,32,.9));
}

html[data-theme="dark"] .settings-workspace-page .settings-upload-icon {
    color: #93c5fd;
    border-color: #31445f;
    background: linear-gradient(180deg, rgba(37,99,235,.16), rgba(59,130,246,.10));
}

html[data-theme="dark"] .settings-workspace-page .settings-badge {
    border-color: rgba(148,163,184,.18);
    background: rgba(148,163,184,.08);
    color: #c7d4e6;
}

html[data-theme="dark"] .settings-workspace-page .settings-badge.is-success {
    background: rgba(22,163,74,.14);
    border-color: rgba(34,197,94,.28);
    color: #86efac;
}

html[data-theme="dark"] .settings-workspace-page .settings-badge.is-warning {
    background: rgba(217,119,6,.14);
    border-color: rgba(251,191,36,.26);
    color: #fcd34d;
}

html[data-theme="dark"] .settings-workspace-page .settings-brand-preview-surface {
    border-color: #2b3a4f;
    box-shadow: inset 0 3px 0 var(--brand-accent);
    background:
        radial-gradient(circle at 100% 12%, rgba(99,102,241,.16), transparent 46%),
        radial-gradient(circle at 10% 4%, rgba(37,99,235,.15), transparent 46%),
        linear-gradient(180deg, #111a2c, #0d1524);
}

html[data-theme="dark"] .settings-workspace-page .settings-brand-logo-frame {
    border-color: #2b3a4f;
    background: #0f172a;
}

html[data-theme="dark"] .settings-workspace-page .settings-brand-pills .pill {
    border-color: #304159;
    background: rgba(17,24,39,.72);
    color: #c5d3e6;
}

html[data-theme="dark"] .settings-workspace-page .settings-brand-pills .pill i {
    color: #9cb0cb;
}

html[data-theme="dark"] .settings-workspace-page .settings-option-icon {
    border-color: #304159;
    background: linear-gradient(180deg, rgba(37,99,235,.14), rgba(59,130,246,.08));
    color: #93c5fd;
}

html[data-theme="dark"] .settings-workspace-page .mini-stat {
    border-color: #2a394f;
    background: linear-gradient(180deg, rgba(17,24,39,.72), rgba(12,19,32,.82));
}

html[data-theme="dark"] .settings-workspace-page .settings-alert {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(127, 29, 29, .18);
    color: #fecaca;
}

html[data-theme="dark"] .settings-workspace-page .settings-alert.is-success {
    border-color: rgba(34,197,94,.34);
    background: rgba(20,83,45,.20);
    color: #bbf7d0;
}

/* Label pages should use the same clean white content-page background as labels dashboard/songs */
.users-modern-page.users-shared-workspace-page.labels-users-workspace-page,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page,
.report-modern-page.report-shared-dashboard-page.labels-reporting-page {
    background: #ffffff !important;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page.labels-users-workspace-page,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page,
html[data-theme="dark"] .report-modern-page.report-shared-dashboard-page.labels-reporting-page,
body.analytics-dashboard-theme-dark .users-modern-page.users-shared-workspace-page.labels-users-workspace-page,
body.analytics-dashboard-theme-dark .billing-modern-page.billing-shared-workspace-page.labels-billing-page,
body.analytics-dashboard-theme-dark .report-modern-page.report-shared-dashboard-page.labels-reporting-page {
    background: #0f1726 !important;
}

/* Reusable admin white workspace shell (to match labels page backgrounds) */
body.rdc-white-workspace-body,
body.rdc-white-workspace-body .wrapper {
    background: #ffffff !important;
}

body.rdc-white-workspace-body .content-page.rdc-white-workspace-page {
    background: #ffffff !important;
}

html[data-theme="dark"] body.rdc-white-workspace-body,
html[data-theme="dark"] body.rdc-white-workspace-body .wrapper,
html[data-theme="dark"] body.rdc-white-workspace-body .content-page.rdc-white-workspace-page,
body.analytics-dashboard-theme-dark.rdc-white-workspace-body,
body.analytics-dashboard-theme-dark.rdc-white-workspace-body .wrapper,
body.analytics-dashboard-theme-dark.rdc-white-workspace-body .content-page.rdc-white-workspace-page {
    background: #0f1726 !important;
}

/* Labels reporting page: hide DataTables top controls row (Show entries / Search) */
.report-modern-page.report-shared-dashboard-page.labels-reporting-page #basic-datatable_wrapper > .row:first-child {
    display: none !important;
}

/* Labels sub-label page: hide DataTables top controls row (Show entries / Search) */
.users-modern-page.users-shared-workspace-page.labels-users-workspace-page #basic-datatable_wrapper > .row:first-child {
    display: none !important;
}

/* ===== Users Shared Workspace Overrides (admin/users.php) ===== */
.users-modern-page.users-shared-workspace-page {
    --umw-bg: #eef2f7;
    --umw-surface: #ffffff;
    --umw-surface-soft: #f8fafc;
    --umw-border: #e2e8f0;
    --umw-border-strong: #d4deeb;
    --umw-text: #0f172a;
    --umw-text-muted: #64748b;
    --umw-text-soft: #94a3b8;
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.05), transparent 40%),
        radial-gradient(circle at 92% 10%, rgba(79,70,229,.05), transparent 42%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f8 72%, #e9eff6 100%);
}

.users-modern-page.users-shared-workspace-page .users-shared-shell {
    margin-top: .2rem;
    border-radius: 22px;
    border: 1px solid var(--umw-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
    overflow: visible;
}

.users-modern-page.users-shared-workspace-page .users-hero {
    margin: .85rem .85rem .7rem;
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border: 1px solid var(--umw-border);
    box-shadow: none;
    color: var(--umw-text);
}

.users-modern-page.users-shared-workspace-page .users-hero::after {
    display: none;
}

.users-modern-page.users-shared-workspace-page .users-hero-grid {
    gap: .9rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.users-modern-page.users-shared-workspace-page .users-hero-main {
    justify-content: flex-start;
    gap: .75rem;
}

.users-modern-page.users-shared-workspace-page .hero-brand {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--umw-border);
    box-shadow: none;
    backdrop-filter: none;
}

.users-modern-page.users-shared-workspace-page .hero-brand-logo {
    background: #fff;
    border: 1px solid #e6edf7;
}

.users-modern-page.users-shared-workspace-page .hero-brand-copy .eyebrow {
    color: var(--umw-text-soft);
}

.users-modern-page.users-shared-workspace-page .hero-brand-copy .name {
    color: var(--umw-text);
}

.users-modern-page.users-shared-workspace-page .hero-title {
    color: var(--umw-text);
    font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.users-modern-page.users-shared-workspace-page .hero-subtitle {
    color: var(--umw-text-muted);
    max-width: 58ch;
    margin-top: .25rem;
}

.users-modern-page.users-shared-workspace-page .hero-filter-pill {
    background: linear-gradient(180deg, #f8fbff, #f3f7fd);
    border: 1px solid var(--umw-border);
    color: #334155;
    font-weight: 600;
}

.users-modern-page.users-shared-workspace-page .hero-filter-pill i {
    color: #64748b;
}

.users-modern-page.users-shared-workspace-page .users-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    align-content: start;
}

.users-modern-page.users-shared-workspace-page .stat-tile {
    min-height: 80px;
    border-radius: 14px;
    padding: .75rem .85rem;
    background: linear-gradient(180deg, #fff, #f9fbff);
    border: 1px solid var(--umw-border);
    backdrop-filter: none;
}

.users-modern-page.users-shared-workspace-page .users-hero-stats .stat-tile:nth-child(n) {
    background: linear-gradient(180deg, #fff, #f9fbff);
}

.users-modern-page.users-shared-workspace-page .stat-tile .label {
    color: var(--umw-text-muted);
}

.users-modern-page.users-shared-workspace-page .stat-tile .value {
    color: var(--umw-text);
    font-size: 1.2rem;
}

.users-modern-page.users-shared-workspace-page .stat-tile .meta {
    color: var(--umw-text-soft);
}

/* ===== Albums hero refinements (admin/albums.php) ===== */
.albums-modern-page.users-shared-workspace-page .users-hero {
    padding: 1.1rem 1.15rem;
    background:
        radial-gradient(circle at 15% -35%, rgba(37, 99, 235, 0.12), transparent 52%),
        linear-gradient(180deg, #ffffff, #f9fbff);
}

.albums-modern-page.users-shared-workspace-page .users-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
    align-items: stretch;
    gap: .9rem;
}

.albums-modern-page.users-shared-workspace-page .users-hero-main.albums-hero-main {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.albums-modern-page.users-shared-workspace-page .albums-hero-heading {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .85rem;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.albums-modern-page.users-shared-workspace-page .albums-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #0ea5e9);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
    flex: 0 0 auto;
}

.albums-modern-page.users-shared-workspace-page .albums-hero-icon i {
    font-size: 1.18rem;
}

.albums-modern-page.users-shared-workspace-page .albums-hero-stats {
    display: block;
    align-content: stretch;
}

.albums-modern-page.users-shared-workspace-page .albums-total-stat {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    border: 1px solid #d8e3f4;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.albums-modern-page.users-shared-workspace-page .albums-total-stat .value {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.02em;
}

/* ===== ISRC/UPC hero refinements (admin/isrc-upc.php) ===== */
.isrc-upc-modern-page.users-shared-workspace-page .users-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.users-modern-page.users-shared-workspace-page .users-table-card {
    margin: 0 .85rem .85rem;
    border-radius: 18px;
    border: 1px solid var(--umw-border);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,255,.96));
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page .users-table-card::before {
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1 45%, #06b6d4);
    opacity: .8;
}

.users-modern-page.users-shared-workspace-page .users-table-card .card-body {
    padding: .95rem .95rem .85rem;
}

.users-modern-page.users-shared-workspace-page .users-toolbar {
    margin-bottom: .8rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #edf1f7;
}

.users-modern-page.users-shared-workspace-page .users-toolbar-left {
    width: 100%;
    min-width: 0;
}

.users-modern-page.users-shared-workspace-page .users-table-card,
.users-modern-page.users-shared-workspace-page .users-table-card .card-body,
.users-modern-page.users-shared-workspace-page .users-toolbar {
    overflow: visible;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form {
    margin: 0;
    width: 100%;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form.analytics-filter-toolbar {
    width: 100%;
    justify-content: space-between;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-toolbar-left {
    gap: .55rem;
    flex: 1 1 auto;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-toolbar-right {
    margin-left: auto;
    flex: 0 0 auto;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-menu {
    width: min(560px, calc(100vw - 36px));
    min-width: 460px;
    z-index: 120;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-applied-list {
    max-width: min(620px, 60vw);
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 0;
    height: 268px;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-panes {
    min-height: 0;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-option-list {
    max-height: 138px;
    padding-bottom: .4rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-sidebar {
    padding: .45rem .4rem;
    gap: .18rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-tab {
    padding: .48rem .5rem;
    font-size: .84rem;
    border-radius: 9px;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-search {
    padding: .5rem .65rem;
    gap: .45rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-search .form-control {
    font-size: .88rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-pane-title {
    padding: .45rem .65rem;
    font-size: .8rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-option-list {
    padding: .3rem;
    gap: .14rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-option-item {
    padding: .38rem .42rem;
    gap: .45rem;
    font-size: .84rem;
    border-radius: 8px;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-option-check {
    width: 16px;
    height: 16px;
    border-radius: 5px;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-option-check i {
    font-size: .68rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-footer {
    padding: .45rem .65rem;
    gap: .4rem;
}

.users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-btn {
    min-width: 74px;
    padding: .34rem .72rem;
    font-size: .84rem;
}

.users-modern-page.users-shared-workspace-page .btn.users-status-btn {
    border-radius: 12px;
    border: 1px solid var(--umw-border);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: #334155;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page .btn.users-status-btn:hover,
.users-modern-page.users-shared-workspace-page .btn.users-status-btn:focus {
    background: #f8fbff;
    border-color: var(--umw-border-strong);
    color: #0f172a;
}

.users-modern-page.users-shared-workspace-page .toolbar-chip {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-color: var(--umw-border);
    color: #475569;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page .toolbar-chip i {
    color: #64748b;
}

.users-modern-page.users-shared-workspace-page .dropdown-menu {
    border-color: var(--umw-border);
    box-shadow: 0 14px 28px rgba(15,23,42,.10);
    background: #fff;
}

.users-modern-page.users-shared-workspace-page .dropdown-menu .dropdown-item:hover {
    background: #f4f7fd;
    color: #1e293b;
}

.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_length label,
.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_filter label {
    color: var(--umw-text-muted);
}

.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .form-select,
.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .form-control {
    border-radius: 10px;
    border-color: var(--umw-border);
    background: #fbfdff;
}

.users-modern-page.users-shared-workspace-page .table-responsive-shell {
    border-radius: 14px;
    border: 1px solid #e8eef7;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.users-modern-page.users-shared-workspace-page #basic-datatable {
    min-width: 860px;
}

.users-modern-page.users-shared-workspace-page #basic-datatable thead th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e5ecf5 !important;
    font-size: .8rem;
    letter-spacing: .02em;
}

.users-modern-page.users-shared-workspace-page #basic-datatable tbody td {
    background: #fff;
    border-bottom-color: #edf2f8;
}

.users-modern-page.users-shared-workspace-page #basic-datatable tbody tr:hover td {
    background: #fafcff;
}

.users-modern-page.users-shared-workspace-page .index-badge {
    border-radius: 10px;
    border-color: #dfe7f4;
    background: linear-gradient(180deg, #f4f7ff, #eef2ff);
    color: #4f46e5;
}

.users-modern-page.users-shared-workspace-page .user-avatar {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.users-modern-page.users-shared-workspace-page .user-logo {
    border-color: #e4ebf6;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page .user-copy .name {
    color: var(--umw-text);
}

.users-modern-page.users-shared-workspace-page .user-copy .meta {
    color: var(--umw-text-soft);
}

.users-modern-page.users-shared-workspace-page .email-stack .primary {
    color: #1e293b;
}

.users-modern-page.users-shared-workspace-page .email-stack .secondary {
    color: #8ba0b8;
}

.users-modern-page.users-shared-workspace-page .role-pill {
    border-color: #d9e5f8;
    background: #f4f8ff;
    color: #305fcb;
}

.users-modern-page.users-shared-workspace-page .status-active {
    background: #edfdf4;
    border-color: #a7f3d0;
    color: #059669;
}

.users-modern-page.users-shared-workspace-page .status-pending {
    background: #fff9ea;
    border-color: #fde68a;
    color: #d97706;
}

.users-modern-page.users-shared-workspace-page .status-blocked {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #dc2626;
}

.users-modern-page.users-shared-workspace-page .date-stack {
    color: #334155;
}

.users-modern-page.users-shared-workspace-page .action-icon-btn {
    border-color: var(--umw-border);
    background: #fff;
    color: #64748b;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page .action-icon-btn:hover:not(.is-disabled):not([aria-disabled="true"]) {
    border-color: #cfd9ea;
    background: #f8fbff;
    color: #2563eb;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page .action-icon-btn.is-disabled,
.users-modern-page.users-shared-workspace-page .action-icon-btn[aria-disabled="true"] {
    border-color: #dfe7f4;
    background: #f8fafc;
    color: #9aa9bf;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_info {
    color: var(--umw-text-muted);
}

.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
}

.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #4f46e5, #3b82f6) !important;
    box-shadow: none;
}

.users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5ff !important;
    border-color: #d7e2f4 !important;
    color: #2563eb !important;
}

@media (max-width: 1199.98px) {
    .users-modern-page.users-shared-workspace-page .users-hero-grid {
        grid-template-columns: 1fr;
    }

    .users-modern-page.users-shared-workspace-page .users-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .albums-modern-page.users-shared-workspace-page .users-hero {
        padding: .95rem;
    }

    .albums-modern-page.users-shared-workspace-page .users-hero-grid {
        grid-template-columns: 1fr;
    }

    .albums-modern-page.users-shared-workspace-page .users-hero-main.albums-hero-main {
        align-items: flex-start;
    }

    .albums-modern-page.users-shared-workspace-page .albums-hero-stats {
        max-width: 330px;
    }
}

@media (max-width: 767.98px) {
    .users-modern-page.users-shared-workspace-page .users-shared-shell {
        border-radius: 16px;
    }

    .users-modern-page.users-shared-workspace-page .users-hero {
        margin: .7rem .7rem .6rem;
        border-radius: 14px;
        padding: .85rem;
    }

    .users-modern-page.users-shared-workspace-page .users-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .isrc-upc-modern-page.users-shared-workspace-page .users-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .albums-modern-page.users-shared-workspace-page .albums-hero-heading {
        gap: .65rem;
    }

    .albums-modern-page.users-shared-workspace-page .albums-hero-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .albums-modern-page.users-shared-workspace-page .albums-total-stat {
        min-height: 0;
    }

    .users-modern-page.users-shared-workspace-page .users-table-card {
        margin: 0 .7rem .7rem;
        border-radius: 14px;
    }

    .users-modern-page.users-shared-workspace-page .users-table-card .card-body {
        padding: .8rem .75rem;
    }

    .users-modern-page.users-shared-workspace-page .users-toolbar {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: .6rem;
    }

    .users-modern-page.users-shared-workspace-page .users-toolbar-left {
        width: 100%;
        gap: .5rem;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form {
        width: 100%;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-menu {
        left: 0;
        right: auto;
        width: min(100%, calc(100vw - 28px));
        min-width: 0;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--umw-border);
        background: transparent;
        flex-direction: row;
        overflow-x: auto;
        padding: .55rem;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-tab {
        min-width: max-content;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-tab i {
        display: none;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-main {
        min-width: 0;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-footer {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-sheet-btn {
        flex: 1 1 120px;
        min-width: 0;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-option-list {
        max-height: 220px;
    }

    .users-modern-page.users-shared-workspace-page .users-dashboard-filter-form .analytics-filter-applied-list {
        max-width: 100%;
    }

    .users-modern-page.users-shared-workspace-page .btn.users-status-btn,
    .users-modern-page.users-shared-workspace-page .toolbar-chip {
        width: 100%;
        justify-content: center;
    }

    .users-modern-page.users-shared-workspace-page #basic-datatable {
        min-width: 760px;
    }
}

@media (max-width: 575.98px) {
    .users-modern-page.users-shared-workspace-page .users-hero-stats {
        grid-template-columns: 1fr;
    }

    .isrc-upc-modern-page.users-shared-workspace-page .users-hero-stats {
        grid-template-columns: 1fr;
    }

    .users-modern-page.users-shared-workspace-page .hero-brand {
        width: 100%;
    }

    .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_filter,
    .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_length {
        width: 100%;
        text-align: left !important;
    }

    .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0 !important;
        margin-top: .35rem;
    }

    .users-modern-page.users-shared-workspace-page #basic-datatable {
        min-width: 680px;
    }
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page {
    --umw-border: #243246;
    --umw-border-strong: #33465f;
    --umw-text: #e5edf7;
    --umw-text-muted: #a9b8cc;
    --umw-text-soft: #8da0ba;
    background:
        radial-gradient(circle at 12% 0%, rgba(59,130,246,.10), transparent 44%),
        radial-gradient(circle at 92% 10%, rgba(99,102,241,.10), transparent 46%),
        linear-gradient(180deg, #0b1220 0%, #101a2d 72%, #0c1424 100%);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-shared-shell {
    border-color: var(--umw-border);
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,19,32,.95));
    box-shadow: 0 18px 40px rgba(2,6,23,.30);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-hero {
    border-color: var(--umw-border);
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(13,20,34,.94));
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .hero-brand {
    border-color: rgba(148,163,184,.16);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .hero-brand-logo {
    border-color: rgba(148,163,184,.16);
    background: #0f172a;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .hero-filter-pill {
    background: rgba(255,255,255,.03);
    border-color: rgba(148,163,184,.16);
    color: #c9d6e8;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .hero-filter-pill i {
    color: #9fb2cd;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .stat-tile {
    border-color: var(--umw-border);
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-hero-stats .stat-tile:nth-child(1) {
    background: linear-gradient(180deg, rgba(37,99,235,.18), rgba(17,24,39,.88));
    border-color: rgba(96,165,250,.22);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-hero-stats .stat-tile:nth-child(2) {
    background: linear-gradient(180deg, rgba(16,185,129,.16), rgba(17,24,39,.88));
    border-color: rgba(52,211,153,.22);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-hero-stats .stat-tile:nth-child(3) {
    background: linear-gradient(180deg, rgba(239,68,68,.14), rgba(17,24,39,.88));
    border-color: rgba(248,113,113,.22);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-hero-stats .stat-tile:nth-child(4) {
    background: linear-gradient(180deg, rgba(99,102,241,.16), rgba(17,24,39,.88));
    border-color: rgba(129,140,248,.22);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .stat-tile .label {
    color: #b7c8dc;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .stat-tile .value {
    color: #f8fbff;
    text-shadow: 0 1px 0 rgba(0,0,0,.18);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .stat-tile .meta {
    color: #9db0c9;
}

html[data-theme="dark"] .albums-modern-page.users-shared-workspace-page .users-hero {
    background:
        radial-gradient(circle at 15% -35%, rgba(59, 130, 246, 0.18), transparent 56%),
        linear-gradient(180deg, rgba(17, 24, 39, .95), rgba(13, 20, 34, .95));
}

html[data-theme="dark"] .albums-modern-page.users-shared-workspace-page .albums-total-stat {
    border-color: #2d3d54;
    background: linear-gradient(180deg, rgba(37, 99, 235, .18), rgba(17, 24, 39, .92));
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-table-card {
    border-color: var(--umw-border);
    background: linear-gradient(180deg, rgba(17,24,39,.94), rgba(12,19,32,.94));
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .users-toolbar {
    border-bottom-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .btn.users-status-btn {
    border-color: rgba(148,163,184,.18);
    background: linear-gradient(180deg, #162033, #111a2c);
    color: #d7e3f2;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .btn.users-status-btn:hover,
html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .btn.users-status-btn:focus {
    background: linear-gradient(180deg, #1a2740, #142138);
    color: #f2f7ff;
    border-color: rgba(148,163,184,.24);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .toolbar-chip {
    border-color: #2c3a51;
    background: rgba(255,255,255,.03);
    color: #bfd0e5;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .toolbar-chip i {
    color: #9bb0ca;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .dropdown-menu {
    background: #111a2c;
    border-color: #2c3a51;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .dropdown-menu .dropdown-item {
    color: #d6e2f0;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .dropdown-menu .dropdown-item:hover {
    background: #17233a;
    color: #fff;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .form-select,
html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .form-control {
    border-color: #2c3a51;
    background: #111a2c;
    color: #e5edf7;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .form-control::placeholder {
    color: #7f93ae;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .table-responsive-shell {
    border-color: #27354a;
    background: rgba(17,24,39,.55);
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable thead th {
    background: #131d30;
    color: #b8c6d9;
    border-bottom-color: #27364b !important;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable tbody td {
    background: #0f172a;
    border-bottom-color: #1f2a3c;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable tbody tr:hover td {
    background: #121d31;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .index-badge {
    border-color: #33445d;
    background: linear-gradient(180deg, #1a2740, #162238);
    color: #b4c8ff;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .user-logo {
    border-color: #2d3d54;
    background: #0f172a;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .email-stack .primary {
    color: #dce7f5;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .role-pill {
    border-color: #2e466a;
    background: rgba(37,99,235,.14);
    color: #9bc1ff;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .status-active {
    background: rgba(5,150,105,.16);
    border-color: rgba(16,185,129,.35);
    color: #6ee7b7;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .status-pending {
    background: rgba(217,119,6,.14);
    border-color: rgba(245,158,11,.30);
    color: #fcd34d;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .status-blocked {
    background: rgba(220,38,38,.14);
    border-color: rgba(248,113,113,.30);
    color: #fca5a5;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .date-stack {
    color: #c6d3e6;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .date-stack i {
    color: #8ea1bc;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .action-icon-btn {
    border-color: #2c3a51;
    background: #111a2c;
    color: #b9c8db;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .action-icon-btn:hover:not(.is-disabled):not([aria-disabled="true"]) {
    border-color: #3a4f6d;
    background: #16233a;
    color: #93c5fd;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .action-icon-btn.is-disabled,
html[data-theme="dark"] .users-modern-page.users-shared-workspace-page .action-icon-btn[aria-disabled="true"] {
    border-color: #2e3d55;
    background: #0f1726;
    color: #6f83a0;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_info,
html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_length label,
html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_filter label {
    color: #a9b8cc;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    color: #a9b8cc !important;
}

html[data-theme="dark"] .users-modern-page.users-shared-workspace-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #16233a !important;
    border-color: #33465f !important;
    color: #93c5fd !important;
}

/* Labels dashboard shared styles (moved from labels/dashboard.php) */
.dashboard-analytics-lite {
    --da-bg: #f5f8fd;
    --da-surface: #ffffff;
    --da-surface-soft: #f8fbff;
    --da-border: #dbe5f0;
    --da-text: #0f172a;
    --da-muted: #667085;
    --da-accent: #3b82f6;
    --da-accent-soft: #eaf2ff;
    --da-success-bg: #eaf8ee;
    --da-success-text: #177245;
    --da-success-border: #c7ead3;
    --da-warning-bg: #fff4de;
    --da-warning-text: #b36a00;
    --da-warning-border: #ffe3b2;
    --da-danger-bg: #ffe7ea;
    --da-danger-text: #c8344a;
    --da-danger-border: #ffc8d0;
    --da-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.isrc-upc-upload-page .page-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.isrc-upc-upload-page .container-fluid {
    padding-bottom: 1.4rem;
}

.isrc-upc-upload-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.isrc-upc-upload-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.45rem;
    border: 1px solid #d9e5f4;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #f7fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.isrc-upc-upload-hero-main {
    max-width: 820px;
}

.isrc-upc-upload-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.9rem;
}

.isrc-upc-upload-title {
    margin-bottom: 0.45rem;
    font-size: 1.95rem;
    line-height: 1.06;
    font-weight: 900;
    color: #0f172a;
}

.isrc-upc-upload-subtitle {
    margin: 0;
    max-width: 720px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

.isrc-upc-upload-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.isrc-upc-upload-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d9e5f4;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.isrc-upc-upload-hero-actions {
    flex: 0 0 auto;
}

.isrc-upc-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
    gap: 1rem;
    align-items: start;
}

.isrc-upc-upload-main,
.isrc-upc-upload-sidecard {
    min-width: 0;
}

.isrc-upc-upload-card {
    border: 1px solid #d9e5f4;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.isrc-upc-upload-card .card-body {
    padding: 1.35rem;
}

.isrc-upc-upload-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.isrc-upc-upload-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
}

.isrc-upc-upload-section-copy {
    margin: 0.35rem 0 0;
    max-width: 720px;
    color: #64748b;
    line-height: 1.68;
}

.isrc-upc-upload-section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.52rem 0.85rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #177245;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.isrc-upc-upload-form-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.isrc-upc-upload-page .form-group.row {
    margin-left: 0;
    margin-right: 0;
}

.isrc-upc-upload-type-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.isrc-upc-upload-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.isrc-upc-upload-panel {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    padding: 1.05rem;
    border: 1px solid #dbe6f3;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.isrc-upc-upload-panel-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #eaf2ff, #dbeafe);
    color: #2563eb;
    font-size: 1.3rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.isrc-upc-upload-panel-body {
    width: 100%;
}

.isrc-upc-upload-panel-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 900;
}

.isrc-upc-upload-panel-copy {
    margin: 0 0 0.8rem;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.92rem;
}

.isrc-upc-upload-page .form-control,
.isrc-upc-upload-page select.form-control,
.isrc-upc-upload-page textarea.form-control {
    border-radius: 14px;
    border: 1px solid #d7e0ec;
    background: #f8fbff;
    min-height: 48px;
    box-shadow: none;
}

.isrc-upc-upload-page textarea.form-control {
    min-height: 220px;
    resize: vertical;
}

.isrc-upc-upload-page .form-control:focus,
.isrc-upc-upload-page select.form-control:focus,
.isrc-upc-upload-page textarea.form-control:focus {
    border-color: rgba(37, 99, 235, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.isrc-upc-upload-file-meta {
    margin-top: 0.55rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.isrc-upc-upload-progress {
    margin-top: 0.75rem;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8efff;
}

.isrc-upc-upload-progress .progress-bar {
    line-height: 10px;
    font-size: 0.68rem;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.isrc-upc-upload-feedback {
    min-height: 1.5rem;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px dashed #d8e3f2;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
}

.isrc-upc-upload-feedback.is-success {
    background: #ecfdf3;
    border-style: solid;
    border-color: #bde8cb;
    color: #177245;
}

.isrc-upc-upload-feedback.is-error {
    background: #fff1f2;
    border-style: solid;
    border-color: #fecdd3;
    color: #be123c;
}

.isrc-upc-upload-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.isrc-upc-upload-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: 14px;
    padding: 0.82rem 1.15rem;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    box-shadow: 0 16px 26px rgba(29, 78, 216, 0.18);
    font-weight: 800;
}

.isrc-upc-upload-submit:hover,
.isrc-upc-upload-submit:focus {
    background: linear-gradient(135deg, #1e293b, #2563eb);
}

.isrc-upc-upload-action-note {
    color: #64748b;
    font-size: 0.88rem;
}

.isrc-upc-upload-sidecard {
    padding: 1.15rem;
    border: 1px solid #d9e5f4;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff, #f9fcff);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.isrc-upc-upload-sidecard-head h6 {
    margin: 0.4rem 0 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
}

.isrc-upc-upload-sidecard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 800;
}

.isrc-upc-upload-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.isrc-upc-upload-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #334155;
    line-height: 1.58;
}

.isrc-upc-upload-checklist i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 0.15rem;
}

.isrc-upc-upload-sidecard-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #0f172a;
    color: #e2e8f0;
}

.isrc-upc-upload-sidecard-note .label {
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.isrc-upc-upload-sidecard-note .value {
    font-size: 0.92rem;
    font-weight: 700;
}

.isrc-upc-upload-page .page-title-right {
    margin-left: auto;
}

.isrc-upc-upload-page .isrc-upc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: .9rem;
    padding: .46rem .74rem;
    border-radius: 999px;
    border: 1px solid #d6e2f1;
    background: linear-gradient(180deg, #ffffff, #f3f7ff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transition: all .16s ease;
}

.isrc-upc-upload-page .isrc-upc-back-btn:hover,
.isrc-upc-upload-page .isrc-upc-back-btn:focus {
    color: #1d4ed8;
    border-color: #c2d5f2;
    background: linear-gradient(180deg, #f8fbff, #edf3ff);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .10);
}

.isrc-upc-upload-page .isrc-upc-back-btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e1f3;
    background: #ffffff;
    color: #3b82f6;
    font-size: .95rem;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .isrc-upc-upload-hero {
        flex-direction: column;
        padding: 1.1rem;
    }

    .isrc-upc-upload-title {
        font-size: 1.55rem;
    }

    .isrc-upc-upload-panels {
        grid-template-columns: 1fr;
    }

    .isrc-upc-upload-page .page-title-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .isrc-upc-upload-page .page-title-right {
        width: 100%;
        margin-left: 0;
    }

    .isrc-upc-upload-page .isrc-upc-back-btn {
        width: 100%;
        justify-content: center;
    }
}

html[data-theme="dark"] .isrc-upc-upload-page .isrc-upc-back-btn,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page .isrc-upc-back-btn {
    color: #dce7f5;
    border-color: #2c3a51;
    background: linear-gradient(180deg, #1a263d, #142037);
    box-shadow: 0 12px 26px rgba(2, 6, 23, .30);
}

html[data-theme="dark"] .isrc-upc-upload-page .isrc-upc-back-btn:hover,
html[data-theme="dark"] .isrc-upc-upload-page .isrc-upc-back-btn:focus,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page .isrc-upc-back-btn:hover,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page .isrc-upc-back-btn:focus {
    color: #93c5fd;
    border-color: #3a4f6f;
    background: linear-gradient(180deg, #1f2f4a, #182740);
}

html[data-theme="dark"] .isrc-upc-upload-page .isrc-upc-back-btn-icon,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page .isrc-upc-back-btn-icon {
    border-color: #314764;
    background: #13243b;
    color: #93c5fd;
}

html[data-theme="dark"] .isrc-upc-upload-hero,
body.analytics-dashboard-theme-dark .isrc-upc-upload-hero {
    border-color: rgba(96, 165, 250, 0.16);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96));
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.34);
}

html[data-theme="dark"] .isrc-upc-upload-badge,
body.analytics-dashboard-theme-dark .isrc-upc-upload-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
}

html[data-theme="dark"] .isrc-upc-upload-title,
body.analytics-dashboard-theme-dark .isrc-upc-upload-title {
    color: #e2e8f0;
}

html[data-theme="dark"] .isrc-upc-upload-subtitle,
html[data-theme="dark"] .isrc-upc-upload-action-note,
html[data-theme="dark"] .isrc-upc-upload-section-copy,
html[data-theme="dark"] .isrc-upc-upload-panel-copy,
body.analytics-dashboard-theme-dark .isrc-upc-upload-subtitle,
body.analytics-dashboard-theme-dark .isrc-upc-upload-action-note,
body.analytics-dashboard-theme-dark .isrc-upc-upload-section-copy,
body.analytics-dashboard-theme-dark .isrc-upc-upload-panel-copy {
    color: #94a3b8;
}

html[data-theme="dark"] .isrc-upc-upload-chip,
body.analytics-dashboard-theme-dark .isrc-upc-upload-chip {
    border-color: rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
}

html[data-theme="dark"] .isrc-upc-upload-card,
html[data-theme="dark"] .isrc-upc-upload-sidecard,
body.analytics-dashboard-theme-dark .isrc-upc-upload-card,
body.analytics-dashboard-theme-dark .isrc-upc-upload-sidecard {
    border-color: rgba(96, 165, 250, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    box-shadow: 0 20px 34px rgba(2, 6, 23, 0.26);
}

html[data-theme="dark"] .isrc-upc-upload-section-title,
html[data-theme="dark"] .isrc-upc-upload-panel-label,
html[data-theme="dark"] .isrc-upc-upload-sidecard-head h6,
body.analytics-dashboard-theme-dark .isrc-upc-upload-section-title,
body.analytics-dashboard-theme-dark .isrc-upc-upload-panel-label,
body.analytics-dashboard-theme-dark .isrc-upc-upload-sidecard-head h6 {
    color: #e2e8f0;
}

html[data-theme="dark"] .isrc-upc-upload-section-pill,
body.analytics-dashboard-theme-dark .isrc-upc-upload-section-pill {
    background: rgba(16, 185, 129, 0.14);
    color: #86efac;
}

html[data-theme="dark"] .isrc-upc-upload-panel,
body.analytics-dashboard-theme-dark .isrc-upc-upload-panel {
    border-color: rgba(96, 165, 250, 0.14);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.82));
}

html[data-theme="dark"] .isrc-upc-upload-panel-icon,
body.analytics-dashboard-theme-dark .isrc-upc-upload-panel-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(56, 189, 248, 0.14));
    color: #bfdbfe;
}

html[data-theme="dark"] .isrc-upc-upload-page .form-control,
html[data-theme="dark"] .isrc-upc-upload-page select.form-control,
html[data-theme="dark"] .isrc-upc-upload-page textarea.form-control,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page .form-control,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page select.form-control,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page textarea.form-control {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.16);
    color: #e2e8f0;
}

html[data-theme="dark"] .isrc-upc-upload-page .form-control::placeholder,
html[data-theme="dark"] .isrc-upc-upload-file-meta,
body.analytics-dashboard-theme-dark .isrc-upc-upload-page .form-control::placeholder,
body.analytics-dashboard-theme-dark .isrc-upc-upload-file-meta {
    color: #94a3b8;
}

html[data-theme="dark"] .isrc-upc-upload-feedback,
body.analytics-dashboard-theme-dark .isrc-upc-upload-feedback {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(96, 165, 250, 0.16);
    color: #cbd5e1;
}

html[data-theme="dark"] .isrc-upc-upload-feedback.is-success,
body.analytics-dashboard-theme-dark .isrc-upc-upload-feedback.is-success {
    background: rgba(20, 83, 45, 0.36);
    border-color: rgba(34, 197, 94, 0.26);
    color: #86efac;
}

html[data-theme="dark"] .isrc-upc-upload-feedback.is-error,
body.analytics-dashboard-theme-dark .isrc-upc-upload-feedback.is-error {
    background: rgba(127, 29, 29, 0.34);
    border-color: rgba(248, 113, 113, 0.26);
    color: #fda4af;
}

html[data-theme="dark"] .isrc-upc-upload-sidecard-badge,
body.analytics-dashboard-theme-dark .isrc-upc-upload-sidecard-badge {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

html[data-theme="dark"] .isrc-upc-upload-checklist li,
body.analytics-dashboard-theme-dark .isrc-upc-upload-checklist li {
    color: #cbd5e1;
}

@media (max-width: 1199.98px) {
    .isrc-upc-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Global admin responsive safeguards ===== */
@media (max-width: 991.98px) {
    .content-page .container-fluid {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .page-title-box {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: .55rem;
    }

    .page-title-box .page-title-right {
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    .content-page .container-fluid {
        padding-left: .72rem;
        padding-right: .72rem;
    }

    .page-title-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title-box .page-title-right {
        width: 100%;
        margin-left: 0;
    }

    .page-title-box .btn,
    .page-title-box .btn-group {
        width: 100%;
    }

    .table-responsive,
    .table-responsive-shell {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: .35rem;
    }
}

.dashboard-analytics-lite .content,
.dashboard-analytics-lite .container-fluid {
    background: transparent;
}

.dashboard-analytics-lite .container-fluid {
    padding-bottom: 1.25rem;
}

.dashboard-analytics-lite .legacy-page-title {
    display: none;
}

.dashboard-analytics-lite .analytics-dashboard-overview-shell {
    border: 1px solid var(--da-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--da-shadow);
    padding: 0.75rem;
}

.dashboard-analytics-lite .analytics-dashboard-overview-shell .row {
    --bs-gutter-x: 0.95rem;
}

.dashboard-analytics-lite .analytics-dashboard-overview-shell .row + .row {
    margin-top: 0;
}

.analytics-firebase-hero-lite {
    border: 0;
    border-radius: 14px;
    background: #fff;
    padding: 0.35rem 0.1rem 0.85rem;
}

.analytics-firebase-title-lite {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--da-text);
    letter-spacing: -0.02em;
}

.analytics-hero-top-lite {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.analytics-range-pill-lite {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--da-border);
    background: #f6f8fc;
    color: var(--da-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.analytics-hero-chips-lite {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.analytics-overview-chip-lite {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--da-border);
    background: #ffffff;
    color: var(--da-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

.analytics-overview-chip-lite i {
    font-size: 1rem;
}

.analytics-firebase-panel-lite {
    border: 1px solid var(--da-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.analytics-firebase-panel-lite .card-body {
    padding: 0.55rem 0.1rem 0.1rem;
}

.analytics-firebase-panel-head-lite {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.analytics-firebase-panel-head-lite .header-title {
    margin: 0;
    color: var(--da-muted);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.analytics-firebase-panel-action-lite {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--da-border);
    background: #fff;
    color: var(--da-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.analytics-firebase-inner-card-lite,
.analytics-firebase-stat-card-lite {
    border: 1px solid var(--da-border);
    background: #fff;
    border-radius: 16px;
    height: 100%;
}

.analytics-firebase-inner-card-lite {
    padding: 1rem;
}

.labels-inline-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.15rem 0 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--da-border);
}

.labels-inline-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--da-border);
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    padding: 0.48rem 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.labels-inline-filter-btn i {
    color: var(--da-muted);
    font-size: 0.95rem;
}

.labels-inline-filter-date-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--da-border);
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.labels-inline-filter-date-btn i {
    font-size: 1.1rem;
}

.analytics-firebase-inner-head-lite {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.analytics-firebase-inner-head-stack-lite {
    display: block;
    margin-bottom: 0.35rem;
}

.analytics-firebase-metric-label-lite {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--da-muted);
}

.analytics-firebase-metric-value-lite {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--da-text);
    margin-top: 0.2rem;
}

.analytics-firebase-pie-card-lite .analytics-firebase-metric-value-lite {
    font-size: 1.85rem;
}

.analytics-firebase-metric-sub-lite {
    font-size: 0.9rem;
    color: var(--da-muted);
    margin-top: 0.25rem;
}

.analytics-firebase-mini-pill-lite {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--da-border);
    background: #ffffff;
    color: var(--da-muted);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.analytics-chart-wrap-lite {
    position: relative;
}

.analytics-chart-wrap-md-lite {
    height: 260px;
    border: 1px solid var(--da-border);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.5rem;
}

.analytics-chart-wrap-xs-lite {
    height: 190px;
}

.analytics-chart-wrap-lite canvas {
    width: 100% !important;
    height: 100% !important;
}

.analytics-firebase-status-list-lite {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.analytics-chip-lite {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.analytics-chip-approved-lite {
    background: var(--da-success-bg);
    color: var(--da-success-text);
    border-color: var(--da-success-border);
}

.analytics-chip-pending-lite {
    background: var(--da-warning-bg);
    color: var(--da-warning-text);
    border-color: var(--da-warning-border);
}

.analytics-chip-rejected-lite {
    background: var(--da-danger-bg);
    color: var(--da-danger-text);
    border-color: var(--da-danger-border);
}

.analytics-firebase-stat-card-lite {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
}

.analytics-firebase-stat-icon-lite {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.analytics-firebase-stat-title-lite {
    color: var(--da-muted);
    font-size: 0.95rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-firebase-stat-value-lite {
    color: var(--da-text);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    margin-top: 0.2rem;
}

.analytics-recent-card-lite {
    border-radius: 16px;
    border: 1px solid var(--da-border);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.analytics-recent-card-lite .card-header,
.analytics-recent-card-lite .card-body {
    background: #fff;
}

.analytics-recent-subhead-lite {
    border-top: 1px solid var(--da-border);
    border-bottom: 1px solid var(--da-border);
    background: #ffffff;
}

@media (max-width: 1199.98px) {
    .analytics-chart-wrap-md-lite {
        height: 230px;
    }
}

@media (max-width: 991.98px) {
    .analytics-firebase-title-lite {
        font-size: 1.65rem;
    }

    .analytics-firebase-panel-head-lite .header-title {
        font-size: 1.35rem;
    }

    .analytics-chart-wrap-md-lite {
        height: 210px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-analytics-lite .analytics-dashboard-overview-shell {
        padding: 0.6rem;
        border-radius: 16px;
    }

    .analytics-firebase-inner-card-lite {
        padding: 0.8rem;
    }

    .labels-inline-filter-bar {
        padding-bottom: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .labels-inline-filter-btn {
        padding: 0.44rem 0.65rem;
        font-size: 0.84rem;
    }

    .labels-inline-filter-date-btn {
        width: 38px;
        height: 38px;
    }

    .analytics-firebase-metric-value-lite {
        font-size: 1.6rem;
    }

    .analytics-firebase-pie-card-lite .analytics-firebase-metric-value-lite {
        font-size: 1.45rem;
    }

    .analytics-chart-wrap-md-lite {
        height: 190px;
    }

    .analytics-overview-chip-lite {
        flex: 1 1 calc(50% - 0.3rem);
        justify-content: center;
    }
}
/* Shared login visual refresh (blue/purple illustration style) */
body.rdc-auth-page {
    background:
        radial-gradient(circle at 8% 14%, rgba(255, 86, 40, 0.16), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(116, 120, 255, 0.20), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(240, 77, 178, 0.15), transparent 42%),
        linear-gradient(180deg, #061c8f 0%, #1b228f 24%, #4f258b 62%, #b6429d 100%);
}

body.rdc-auth-page::before {
    opacity: .55;
    background:
        radial-gradient(circle at 10% 14%, rgba(255,255,255,.09) 0 1.2px, transparent 2px),
        radial-gradient(circle at 76% 24%, rgba(255,255,255,.07) 0 1px, transparent 2px),
        radial-gradient(circle at 54% 66%, rgba(255,255,255,.05) 0 1.2px, transparent 2px),
        radial-gradient(circle at 28% 82%, rgba(255,255,255,.05) 0 1px, transparent 2px);
    background-size: 68px 68px, 78px 78px, 72px 72px, 86px 86px;
}

.rdc-auth-shell {
    width: min(1240px, 100%);
}

.rdc-auth-frame {
    grid-template-columns: minmax(330px, 400px) minmax(0, 1fr);
    min-height: 640px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    box-shadow:
        0 35px 80px rgba(10, 9, 40, 0.30),
        inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rdc-auth-form-col {
    margin: 18px;
    border-radius: 22px;
    padding: 1.95rem 1.55rem 1.25rem;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 18px 40px rgba(11, 19, 63, 0.18);
    justify-content: flex-start;
}

.rdc-auth-form-col::after {
    display: none;
}

.rdc-auth-brandline {
    color: #1b2a57;
    gap: .55rem;
    margin-bottom: .7rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.rdc-auth-brandmark {
    display: none !important;
}

.rdc-auth-brand-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 12px;
    background: rgba(255,255,255,.98);
    padding: 6px;
    box-shadow:
        0 10px 22px rgba(29, 78, 216, 0.14),
        inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.rdc-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-bottom: .85rem;
    padding: .38rem .78rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.10);
    color: #4f46e5;
    font-size: .84rem;
    font-weight: 600;
}

.rdc-auth-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.rdc-auth-title {
    color: #0f172a;
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    margin-bottom: .45rem;
}

.rdc-auth-subtitle {
    color: #64748b;
    font-size: .96rem;
    line-height: 1.5;
    max-width: 34ch;
    margin-bottom: 1.25rem;
}

.rdc-auth-form .form-label {
    color: #334155;
    font-size: .84rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.rdc-auth-form .form-control {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    background: #f8fafc;
    color: #0f172a;
    padding-inline: 1rem;
    font-size: .95rem;
}

.rdc-auth-form .form-control::placeholder {
    color: #94a3b8;
}

.rdc-auth-form .form-control:focus {
    background: #fff;
    color: #0f172a;
    border-color: #8b8dff;
    box-shadow: 0 0 0 .22rem rgba(99, 102, 241, 0.13);
}

.rdc-auth-form .invalid-feedback {
    color: #c2410c;
}

.rdc-auth-form .alert {
    background: rgba(254, 226, 226, 0.9);
    border-color: rgba(252, 165, 165, 0.6);
    color: #991b1b;
}

.rdc-auth-submit {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5865f2 0%, #6f8cff 100%);
    box-shadow: 0 14px 26px rgba(88, 101, 242, 0.24);
}

.rdc-auth-submit:hover,
.rdc-auth-submit:focus {
    box-shadow: 0 18px 30px rgba(88, 101, 242, 0.30);
}

.rdc-auth-form-meta {
    margin-top: .8rem;
}

.rdc-auth-remember {
    color: #334155;
    font-size: .9rem;
}

.rdc-auth-remember .form-check-input {
    border-color: #cbd5e1;
    background-color: #fff;
}

.rdc-auth-remember .form-check-input:checked {
    background-color: #5865f2;
    border-color: #5865f2;
}

.rdc-auth-link {
    color: #4f46e5;
    font-weight: 600;
    font-size: .88rem;
}

.rdc-auth-link:hover {
    color: #4338ca;
}

.rdc-auth-footer-note {
    color: #64748b;
    font-size: .9rem;
    margin-top: 1.15rem;
}

.rdc-auth-footer-note a {
    color: #1e293b;
    font-weight: 700;
}

.rdc-auth-art-col {
    background:
        radial-gradient(circle at 20% 16%, rgba(255,255,255,.14), transparent 34%),
        radial-gradient(circle at 84% 72%, rgba(255, 66, 158, .16), transparent 30%),
        linear-gradient(180deg, rgba(25, 32, 137, .95), rgba(70, 34, 146, .92) 55%, rgba(166, 54, 150, .82));
    border-radius: 0 22px 22px 0;
}

.rdc-auth-photo-stage {
    inset: 14px 14px 92px 8px;
    border-radius: 18px;
    overflow: hidden;
}

.rdc-auth-hero-photo {
    object-position: center center;
    filter: saturate(.94) contrast(1.02) brightness(.92);
}

.rdc-auth-photo-stage::before {
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.16), transparent 30%),
        radial-gradient(circle at 74% 58%, rgba(255, 85, 164, .18), transparent 34%),
        linear-gradient(135deg, rgba(36, 25, 136, .54), rgba(77, 36, 150, .36) 52%, rgba(194, 76, 170, .24));
}

.rdc-auth-photo-stage::after {
    background:
        linear-gradient(90deg, rgba(14, 13, 58, .18), rgba(14, 13, 58, 0) 25%, rgba(14, 13, 58, .10)),
        linear-gradient(180deg, rgba(14, 13, 58, .04), rgba(14, 13, 58, .10) 70%, rgba(14, 13, 58, .18));
}

.rdc-auth-art-grid {
    opacity: .42;
    z-index: 3;
    inset: 0;
}

.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar,
.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar-head,
.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar-neck,
.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar-frets,
.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar-strings,
.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar-body,
.rdc-auth-photo-stage.is-fallback .rdc-auth-guitar-pickguard {
    opacity: .95;
}

.rdc-auth-art-caption {
    left: auto;
    right: 24px;
    bottom: 22px;
    width: min(78%, 460px);
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 14px 28px rgba(11, 19, 63, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,.78);
    letter-spacing: .08em;
}

.rdc-auth-art-caption strong {
    margin-top: .35rem;
    font-size: 1.8rem;
    line-height: 1.12;
    color: #fff;
    max-width: 18ch;
}

@media (max-width: 991.98px) {
    .rdc-auth-frame {
        grid-template-columns: 1fr;
        border-radius: 18px;
        min-height: 0;
    }

    .rdc-auth-art-col {
        order: -1;
        min-height: 250px;
        border-radius: 18px 18px 0 0;
    }

    .rdc-auth-photo-stage {
        inset: 10px 10px 72px 10px;
        border-radius: 14px;
    }

    .rdc-auth-form-col {
        margin: 0;
        border-radius: 0 0 18px 18px;
        box-shadow: none;
        border-top: 1px solid rgba(148, 163, 184, 0.10);
        padding: 1.2rem 1rem 1rem;
    }

    .rdc-auth-brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .rdc-auth-title {
        font-size: 1.7rem;
    }

    .rdc-auth-art-caption {
        right: 14px;
        left: 14px;
        width: auto;
        bottom: 12px;
        padding: .75rem .85rem;
    }

    .rdc-auth-art-caption strong {
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .rdc-auth-stage {
        padding: .7rem;
    }

    .rdc-auth-frame {
        border-radius: 14px;
    }

    .rdc-auth-art-col {
        min-height: 205px;
        border-radius: 14px 14px 0 0;
    }

    .rdc-auth-photo-stage {
        inset: 8px 8px 62px 8px;
        border-radius: 12px;
    }

    .rdc-auth-form-col {
        border-radius: 0 0 14px 14px;
    }

    .rdc-auth-form .form-control,
    .rdc-auth-submit {
        min-height: 48px;
        border-radius: 12px;
    }

    .rdc-auth-form-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .rdc-auth-footer-note {
        font-size: .84rem;
    }
}

/* Shared login visual refresh v2 (phone-card inspired, no guitar art) */
body.rdc-auth-page {
    background: #ececec;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.rdc-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .65;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 20px, transparent 22px),
        radial-gradient(circle at 20% 28%, rgba(255,255,255,.55) 0 10px, transparent 12px),
        radial-gradient(circle at 82% 10%, rgba(255,255,255,.85) 0 16px, transparent 18px),
        radial-gradient(circle at 90% 16%, rgba(255,255,255,.55) 0 9px, transparent 11px),
        radial-gradient(circle at 88% 26%, rgba(255,255,255,.42) 0 7px, transparent 9px),
        radial-gradient(circle at 74% 86%, rgba(255,255,255,.35) 0 13px, transparent 15px),
        linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45) 52%, rgba(255,255,255,0));
}

.rdc-auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.rdc-auth-shell {
    width: min(1100px, 100%);
    position: relative;
}

.rdc-auth-shell::after {
    content: "";
    position: absolute;
    inset: 8% 48% 10% 48%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.08));
    filter: blur(10px);
    pointer-events: none;
}

.rdc-auth-frame {
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(320px, 430px);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.rdc-auth-form-col,
.rdc-auth-art-col {
    border-radius: 34px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255,255,255,.94);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.rdc-auth-form-col {
    margin: 0;
    padding: 1.55rem 1.6rem 1.35rem;
    min-height: 700px;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.rdc-auth-form-col::before {
    content: "9:41";
    position: absolute;
    top: 14px;
    left: 22px;
    color: #111827;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
}

.rdc-auth-form-col::after {
    display: block;
    content: "";
    position: absolute;
    top: 18px;
    right: 22px;
    width: 54px;
    height: 10px;
    border-radius: 999px;
    background:
        radial-gradient(circle, #111827 0 1.5px, transparent 2px) 0 50% / 7px 10px repeat-x,
        linear-gradient(#111827, #111827) right 0 top 1px / 18px 8px no-repeat;
    opacity: .8;
}

.rdc-auth-brandline {
    margin-top: 3rem;
    margin-bottom: .65rem;
    justify-content: center;
    gap: .75rem;
    color: #10132b;
    font-size: clamp(1.8rem, 2.2vw, 2.45rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.rdc-auth-brandline span {
    display: inline-flex;
    align-items: center;
}

.rdc-auth-brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    padding: 4px;
    background: #fff;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08),
        inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.rdc-auth-eyebrow {
    align-self: center;
    margin-bottom: .95rem;
    padding: .35rem .72rem;
    border-radius: 999px;
    background: rgba(87, 95, 255, 0.10);
    color: #5562ff;
    font-size: .82rem;
    font-weight: 700;
}

.rdc-auth-eyebrow::before {
    width: 7px;
    height: 7px;
    background: #6673ff;
    box-shadow: 0 0 0 3px rgba(102, 115, 255, 0.14);
}

.rdc-auth-head {
    text-align: center;
    margin-bottom: .35rem;
}

.rdc-auth-title {
    color: #0f172a;
    font-size: clamp(2rem, 2.7vw, 2.45rem);
    margin-bottom: .45rem;
    letter-spacing: -0.03em;
}

.rdc-auth-subtitle {
    color: #5f6b7a;
    font-size: .98rem;
    line-height: 1.55;
    max-width: 32ch;
    margin: 0 auto 1.35rem;
}

.rdc-auth-form .mb-3 {
    margin-bottom: 1rem !important;
}

.rdc-auth-form .form-label {
    color: #1f2937;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.rdc-auth-form .form-control {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: #f3f4f7;
    color: #111827;
    padding: .9rem 1rem;
    font-size: .95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.rdc-auth-form .form-control::placeholder {
    color: #99a2af;
}

.rdc-auth-form .form-control:focus {
    background: #fff;
    color: #111827;
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.rdc-auth-submit {
    min-height: 56px;
    border-radius: 999px;
    margin-top: .25rem;
    background: linear-gradient(180deg, #15183a 0%, #10132d 100%);
    border: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 14px 24px rgba(16, 19, 45, 0.18);
}

.rdc-auth-submit:hover,
.rdc-auth-submit:focus {
    background: linear-gradient(180deg, #1a1e46 0%, #121538 100%);
    box-shadow: 0 16px 28px rgba(16, 19, 45, 0.22);
}

.rdc-auth-form-meta {
    margin-top: .85rem;
    align-items: center;
    gap: .75rem;
}

.rdc-auth-remember {
    color: #303b4b;
    font-size: .92rem;
}

.rdc-auth-remember .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0;
    border-radius: .35rem;
    border-color: #d3d9e3;
    background-color: #fff;
}

.rdc-auth-link {
    color: #111827;
    font-weight: 700;
    font-size: .9rem;
}

.rdc-auth-link:hover {
    color: #111827;
    opacity: .85;
}

.rdc-auth-footer-note {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
    font-size: .9rem;
}

.rdc-auth-footer-note a {
    color: #111827;
}

/* Decorative second card to mimic shared reference (no guitar/photo visuals) */
.rdc-auth-art-col {
    min-height: 690px;
    position: relative;
    transform: rotate(8deg);
    transform-origin: center;
    padding: 0;
    background: rgba(255,255,255,.92);
    overflow: hidden;
    pointer-events: none;
}

.rdc-auth-photo-stage {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,251,253,.96));
    border: 0;
    overflow: hidden;
}

.rdc-auth-hero-photo,
.rdc-auth-art-grid,
.rdc-auth-guitar,
.rdc-auth-guitar-head,
.rdc-auth-guitar-neck,
.rdc-auth-guitar-frets,
.rdc-auth-guitar-strings,
.rdc-auth-guitar-body,
.rdc-auth-guitar-pickguard {
    display: none !important;
}

.rdc-auth-photo-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#111827, #111827) 24px 26px / 34px 6px no-repeat,
        linear-gradient(#111827, #111827) calc(100% - 66px) 24px / 44px 10px no-repeat,
        radial-gradient(circle at 72px 96px, #0f172a 0 16px, transparent 17px),
        linear-gradient(#121633, #121633) 100px 80px / 170px 16px no-repeat,
        linear-gradient(#1c223f, #1c223f) 34px 120px / 260px 10px no-repeat,
        linear-gradient(#f2f3f7, #f2f3f7) 34px 188px / calc(100% - 68px) 54px no-repeat,
        linear-gradient(#f2f3f7, #f2f3f7) 34px 262px / calc(100% - 68px) 54px no-repeat,
        linear-gradient(#f2f3f7, #f2f3f7) 34px 336px / calc(100% - 68px) 54px no-repeat,
        linear-gradient(#10132d, #10132d) 34px 430px / calc(100% - 68px) 56px no-repeat,
        linear-gradient(#e3e6eb, #e3e6eb) 34px 540px / 38% 2px no-repeat,
        linear-gradient(#e3e6eb, #e3e6eb) calc(100% - 34px) 540px / 38% 2px no-repeat,
        radial-gradient(circle at calc(50% - 24px) 592px, #ffffff 0 18px, #e9edf3 19px, transparent 20px),
        radial-gradient(circle at calc(50% + 24px) 592px, #ffffff 0 18px, #e9edf3 19px, transparent 20px),
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,250,252,.92));
}

.rdc-auth-photo-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 86% 86%, rgba(99, 102, 241, .10), transparent 34%),
        radial-gradient(circle at 14% 18%, rgba(59, 130, 246, .06), transparent 28%);
}

.rdc-auth-art-caption {
    left: 26px;
    right: 26px;
    bottom: 34px;
    width: auto;
    border-radius: 20px;
    padding: .95rem 1rem;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #64748b;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    letter-spacing: .04em;
    font-weight: 700;
}

.rdc-auth-art-caption strong {
    color: #111827;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-top: .3rem;
    max-width: none;
}

@media (max-width: 1199.98px) {
    .rdc-auth-frame {
        gap: 1.8rem;
        grid-template-columns: minmax(320px, 410px) minmax(290px, 380px);
    }

    .rdc-auth-art-col {
        min-height: 620px;
        transform: rotate(6deg);
    }

    .rdc-auth-photo-stage::before {
        background:
            linear-gradient(#111827, #111827) 20px 22px / 28px 5px no-repeat,
            linear-gradient(#111827, #111827) calc(100% - 58px) 21px / 38px 8px no-repeat,
            radial-gradient(circle at 60px 82px, #0f172a 0 14px, transparent 15px),
            linear-gradient(#121633, #121633) 84px 68px / 140px 14px no-repeat,
            linear-gradient(#1c223f, #1c223f) 28px 102px / 220px 9px no-repeat,
            linear-gradient(#f2f3f7, #f2f3f7) 28px 162px / calc(100% - 56px) 48px no-repeat,
            linear-gradient(#f2f3f7, #f2f3f7) 28px 228px / calc(100% - 56px) 48px no-repeat,
            linear-gradient(#f2f3f7, #f2f3f7) 28px 294px / calc(100% - 56px) 48px no-repeat,
            linear-gradient(#10132d, #10132d) 28px 374px / calc(100% - 56px) 50px no-repeat,
            linear-gradient(#e3e6eb, #e3e6eb) 28px 468px / 37% 2px no-repeat,
            linear-gradient(#e3e6eb, #e3e6eb) calc(100% - 28px) 468px / 37% 2px no-repeat,
            radial-gradient(circle at calc(50% - 20px) 514px, #ffffff 0 16px, #e9edf3 17px, transparent 18px),
            radial-gradient(circle at calc(50% + 20px) 514px, #ffffff 0 16px, #e9edf3 17px, transparent 18px),
            linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,250,252,.92));
    }
}

@media (max-width: 991.98px) {
    .rdc-auth-shell::after {
        display: none;
    }

    .rdc-auth-frame {
        grid-template-columns: 1fr;
        gap: 0;
        justify-items: center;
    }

    .rdc-auth-art-col {
        display: none;
    }

    .rdc-auth-form-col {
        width: min(430px, 100%);
        min-height: auto;
        border-radius: 28px;
        padding: 1.25rem 1.15rem 1.1rem;
    }

    .rdc-auth-brandline {
        margin-top: 2.2rem;
        font-size: 2rem;
    }

    .rdc-auth-brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .rdc-auth-form-meta {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .rdc-auth-stage {
        padding: .85rem;
    }

    .rdc-auth-form-col {
        border-radius: 22px;
        padding: 1rem .95rem 1rem;
    }

    .rdc-auth-form-col::before {
        top: 12px;
        left: 16px;
        font-size: .82rem;
    }

    .rdc-auth-form-col::after {
        top: 15px;
        right: 16px;
        width: 46px;
    }

    .rdc-auth-brandline {
        margin-top: 1.95rem;
        font-size: 1.65rem;
        gap: .55rem;
    }

    .rdc-auth-brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 11px;
    }

    .rdc-auth-title {
        font-size: 1.85rem;
    }

    .rdc-auth-subtitle {
        font-size: .9rem;
    }

    .rdc-auth-form .form-control,
    .rdc-auth-submit {
        min-height: 50px;
        border-radius: 14px;
    }

    .rdc-auth-submit {
        border-radius: 999px;
    }

    .rdc-auth-form-meta {
        width: 100%;
        gap: .5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .rdc-auth-link {
        align-self: flex-end;
    }
}

/* Shared login visual refresh v3 (strict override, reference-matching phone cards) */
body.authentication-bg.rdc-auth-page {
    background: #ececec !important;
    background-image: none !important;
}

body.authentication-bg.rdc-auth-page::before {
    opacity: .72;
}

body.authentication-bg.rdc-auth-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 55%, rgba(255,255,255,.65) 0%, rgba(255,255,255,.38) 26%, rgba(255,255,255,0) 64%),
        linear-gradient(90deg, rgba(255,255,255,0) 36%, rgba(255,255,255,.48) 50%, rgba(255,255,255,0) 64%);
    opacity: .7;
}

body.authentication-bg.rdc-auth-page .rdc-auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 1.25rem;
    position: relative;
    z-index: 1;
}

body.authentication-bg.rdc-auth-page .rdc-auth-shell {
    width: min(980px, 100%);
    position: relative;
}

body.authentication-bg.rdc-auth-page .rdc-auth-shell::after {
    inset: 7% 49% 9% 49%;
    background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.06));
    filter: blur(14px);
}

body.authentication-bg.rdc-auth-page .rdc-auth-frame {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(340px, 420px);
    justify-content: center;
    align-items: center;
    gap: 2.75rem;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col,
body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
    display: flex;
    flex-direction: column;
    border-radius: 34px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(255,255,255,.97);
    box-shadow:
        0 26px 55px rgba(15, 23, 42, 0.07),
        0 2px 6px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255,255,255,.98);
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
    margin: 0;
    padding: 1.5rem 1.5rem 1.25rem;
    min-height: 680px;
    justify-content: flex-start;
    transform: rotate(-7deg);
    transform-origin: center;
    position: relative;
    z-index: 2;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form {
    width: 100%;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col::before {
    content: "9:41";
    position: absolute;
    top: 14px;
    left: 22px;
    font-weight: 700;
    font-size: .95rem;
    color: #0f172a;
    letter-spacing: .01em;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col::after {
    display: block;
    content: "";
    position: absolute;
    top: 20px;
    right: 22px;
    width: 54px;
    height: 9px;
    border-radius: 999px;
    background:
        radial-gradient(circle, #111827 0 1.3px, transparent 2px) left center / 7px 9px repeat-x,
        linear-gradient(#111827,#111827) right center / 16px 8px no-repeat;
    opacity: .85;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin-top: 3.15rem;
    margin-bottom: .85rem;
    color: #0f1230;
    font-size: clamp(1.9rem, 2.4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08),
        inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

body.authentication-bg.rdc-auth-page .rdc-auth-eyebrow {
    display: none;
}

body.authentication-bg.rdc-auth-page .rdc-auth-head {
    text-align: center;
    margin-bottom: .8rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-title {
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: .4rem;
    letter-spacing: -0.03em;
}

body.authentication-bg.rdc-auth-page .rdc-auth-subtitle {
    color: #5f6b7a;
    font-size: .95rem;
    line-height: 1.45;
    max-width: 30ch;
    margin: 0 auto 1.2rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-label {
    color: #0f172a;
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: .45rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control {
    min-height: 54px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f4f4f6;
    color: #111827;
    font-size: .94rem;
    padding: .9rem 1rem;
    box-shadow: none;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control:focus {
    background: #fff;
    border-color: rgba(31, 41, 55, .12);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .05);
}

body.authentication-bg.rdc-auth-page .rdc-auth-submit {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    background: linear-gradient(180deg, #111536 0%, #0c112b 100%);
    border: 0;
    color: #fff;
    font-size: .98rem;
    font-weight: 700;
    box-shadow: 0 14px 24px rgba(12, 17, 43, .16);
}

body.authentication-bg.rdc-auth-page .rdc-auth-submit:hover,
body.authentication-bg.rdc-auth-page .rdc-auth-submit:focus {
    background: linear-gradient(180deg, #131941 0%, #0f1536 100%);
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: .85rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-remember {
    color: #364152;
    font-size: .9rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-remember .form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: .35rem;
    border-color: #d7dbe3;
}

body.authentication-bg.rdc-auth-page .rdc-auth-link {
    color: #121735;
    font-size: .9rem;
    font-weight: 700;
}

body.authentication-bg.rdc-auth-page .rdc-auth-footer-note {
    margin-top: 1.05rem;
    text-align: center;
    color: #6b7280;
}

body.authentication-bg.rdc-auth-page .rdc-auth-footer-note a {
    color: #121735;
    font-weight: 700;
}

body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
    min-height: 680px;
    position: relative;
    transform: rotate(8deg);
    transform-origin: center;
    pointer-events: none;
    overflow: hidden;
}

body.authentication-bg.rdc-auth-page .rdc-auth-photo-stage {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,252,253,.96));
    border: 0;
    overflow: hidden;
}

body.authentication-bg.rdc-auth-page .rdc-auth-hero-photo,
body.authentication-bg.rdc-auth-page .rdc-auth-art-grid,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar-head,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar-neck,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar-frets,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar-strings,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar-body,
body.authentication-bg.rdc-auth-page .rdc-auth-guitar-pickguard,
body.authentication-bg.rdc-auth-page .rdc-auth-art-caption {
    display: none !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-photo-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#111827, #111827) 22px 24px / 34px 6px no-repeat,
        linear-gradient(#111827, #111827) calc(100% - 66px) 24px / 44px 10px no-repeat,
        radial-gradient(circle at 76px 98px, #0f172a 0 17px, transparent 18px),
        linear-gradient(#111630, #111630) 104px 82px / 168px 16px no-repeat,
        linear-gradient(#1c223f, #1c223f) 34px 122px / 258px 10px no-repeat,
        linear-gradient(#f2f3f7, #f2f3f7) 34px 190px / calc(100% - 68px) 54px no-repeat,
        linear-gradient(#f2f3f7, #f2f3f7) 34px 264px / calc(100% - 68px) 54px no-repeat,
        linear-gradient(#f2f3f7, #f2f3f7) 34px 338px / calc(100% - 68px) 54px no-repeat,
        linear-gradient(#10132d, #10132d) 34px 434px / calc(100% - 68px) 56px no-repeat,
        linear-gradient(#ebedf1, #ebedf1) 34px 548px / 38% 2px no-repeat,
        linear-gradient(#ebedf1, #ebedf1) calc(100% - 34px) 548px / 38% 2px no-repeat,
        radial-gradient(circle at calc(50% - 24px) 600px, #ffffff 0 19px, #e9edf3 20px, transparent 21px),
        radial-gradient(circle at calc(50% + 24px) 600px, #ffffff 0 19px, #e9edf3 20px, transparent 21px),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,251,253,.93));
}

body.authentication-bg.rdc-auth-page .rdc-auth-photo-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 86% 86%, rgba(99,102,241,.08), transparent 34%),
        radial-gradient(circle at 14% 20%, rgba(59,130,246,.05), transparent 28%);
}

@media (max-width: 991.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-shell::after,
    body.authentication-bg.rdc-auth-page::after {
        display: none;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-frame {
        grid-template-columns: 1fr;
        gap: 0;
        justify-items: center;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
        display: none;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
        transform: none;
        width: min(430px, 100%);
        min-height: auto;
        border-radius: 26px;
        padding: 1.15rem 1.05rem 1rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
        margin-top: 2.2rem;
        font-size: 1.9rem;
    }
}

@media (max-width: 575.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-stage {
        padding: .85rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
        border-radius: 20px;
        padding: .95rem .9rem .95rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-col::before {
        top: 12px;
        left: 16px;
        font-size: .84rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-col::after {
        top: 16px;
        right: 16px;
        width: 46px;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
        margin-top: 1.95rem;
        font-size: 1.55rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-title {
        font-size: 1.9rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control,
    body.authentication-bg.rdc-auth-page .rdc-auth-submit {
        min-height: 50px;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-link {
        align-self: flex-end;
    }
}

/* Shared login visual refresh v4 (modern polish + live clock + signup preview card) */
body.authentication-bg.rdc-auth-page .rdc-auth-form-col::before,
body.authentication-bg.rdc-auth-page .rdc-auth-form-col::after {
    display: none !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-stage {
    background: none;
}

/* Shared auth register page (labels/register.php) using login design system */
body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-shell {
    width: min(980px, 100%);
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-shell::before {
    inset: 8% 8% 4% 8%;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-frame {
    grid-template-columns: minmax(560px, 820px) !important;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-form-col {
    width: min(820px, 100%);
    padding: 1.25rem 1.45rem 1.25rem;
    border-radius: 28px;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-brandline {
    justify-content: flex-start;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    padding: .7rem .85rem;
    margin-bottom: .95rem;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-head {
    text-align: left;
    margin-bottom: .95rem;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-title {
    font-size: clamp(2rem, 2.6vw, 2.5rem);
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 48ch;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-form {
    width: 100%;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .95rem 1rem;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-grid > .mb-3 {
    margin-bottom: 0 !important;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-span-2 {
    grid-column: 1 / -1;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-form .form-control {
    min-height: 52px;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-hint-row {
    min-height: 18px;
    margin-top: .35rem;
    display: flex;
    align-items: center;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-hint {
    color: #94a3b8;
    font-size: .78rem;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-match-msg {
    font-size: .8rem;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    padding: .85rem .95rem;
    background: rgba(248, 250, 252, .95);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent:focus-within {
    border-color: rgba(99, 102, 241, .35);
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .06);
    background: #fbfdff;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-input {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    margin: .1rem 0 0 0;
    border-radius: .35rem;
    border: 1.5px solid #cbd5e1;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-input:checked {
    border-color: #1f2b72;
    background: linear-gradient(135deg, #0d1231 0%, #1b255e 100%);
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    line-height: 1.2;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-copy .title {
    color: #334155;
    font-weight: 600;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-copy .subtitle {
    color: #94a3b8;
    font-size: .78rem;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-copy a {
    color: #1f2b72;
    text-decoration: none;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent-copy a:hover {
    text-decoration: underline;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-submit {
    min-height: 54px;
}

body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-footer-note {
    text-align: center;
    margin-top: .95rem;
}

@media (max-width: 991.98px) {
    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-shell {
        width: min(720px, 100%);
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-form-col {
        width: min(720px, 100%);
        padding: 1rem 1rem 1.05rem;
        border-radius: 24px;
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-grid {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-form-col {
        border-radius: 20px;
        padding: .9rem .85rem 1rem;
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-brandline {
        font-size: 1.35rem;
        padding: .55rem .65rem;
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-title {
        font-size: 1.75rem;
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-subtitle {
        font-size: .9rem;
    }

    body.authentication-bg.rdc-auth-page.rdc-auth-register-page .rdc-auth-register-consent {
        padding: .75rem .8rem;
        border-radius: 14px;
    }
}

body.authentication-bg.rdc-auth-page .rdc-auth-shell::before {
    content: "";
    position: absolute;
    inset: 5% 6% 4% 6%;
    background: radial-gradient(circle at 50% 56%, rgba(203, 213, 225, .35), rgba(203, 213, 225, 0) 65%);
    filter: blur(10px);
    pointer-events: none;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col,
body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
    overflow: hidden;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col::selection,
body.authentication-bg.rdc-auth-page .rdc-auth-art-col::selection {
    background: rgba(99, 102, 241, .18);
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-status {
    position: absolute;
    top: 14px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-time {
    color: #111827;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .01em;
    min-width: 3.2ch;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons span {
    display: inline-block;
    background: #111827;
    opacity: .92;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons span:nth-child(1) {
    width: 14px;
    height: 2px;
    border-radius: 999px;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons span:nth-child(2) {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons span:nth-child(3) {
    width: 16px;
    height: 8px;
    border-radius: 3px;
    border: 1.5px solid #111827;
    background: transparent;
    position: relative;
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons span:nth-child(3)::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 4px;
    border-radius: 1px;
    background: #111827;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
    margin-top: 2.95rem;
    gap: .7rem;
    position: relative;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brandline::after {
    content: "";
    position: absolute;
    inset: -10px -18px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 40%, rgba(99,102,241,.06), transparent 55%);
    z-index: -1;
}

body.authentication-bg.rdc-auth-page .rdc-auth-head {
    margin-bottom: .95rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-title {
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

body.authentication-bg.rdc-auth-page .rdc-auth-subtitle {
    max-width: 31ch;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-label {
    margin-left: .25rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control {
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control:not(:focus) {
    border-color: rgba(15, 23, 42, 0.03);
}

body.authentication-bg.rdc-auth-page .rdc-auth-submit {
    letter-spacing: .015em;
    background: linear-gradient(135deg, #0d1231 0%, #131b47 54%, #1b255e 100%);
    position: relative;
    overflow: hidden;
}

body.authentication-bg.rdc-auth-page .rdc-auth-submit::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
    pointer-events: none;
}

body.authentication-bg.rdc-auth-page .rdc-auth-submit:hover,
body.authentication-bg.rdc-auth-page .rdc-auth-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(12, 17, 43, .2);
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-meta {
    padding-inline: .25rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(252,252,254,.93));
}

body.authentication-bg.rdc-auth-page .rdc-auth-photo-stage {
    display: none !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-card {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 1.4rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 18%, rgba(99,102,241,.07), transparent 36%),
        radial-gradient(circle at 88% 88%, rgba(59,130,246,.05), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(251,251,253,.95));
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-status--preview {
    position: static;
    margin-bottom: 2.6rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: #0f1230;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    padding: 2px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-title {
    margin: 0;
    text-align: center;
    color: #111827;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-subtitle {
    margin: .35rem auto 1.15rem;
    max-width: 30ch;
    text-align: center;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.45;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-fields {
    display: grid;
    gap: .75rem;
    margin-top: .25rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-field {
    height: 50px;
    border-radius: 999px;
    background: #f3f4f7;
    border: 1px solid rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #9aa3b2;
    font-size: .88rem;
    position: relative;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-field::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1.5px solid #7c8698;
    margin-right: .7rem;
    opacity: .8;
    flex-shrink: 0;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-cta {
    margin-top: 1rem;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1231 0%, #161f55 55%, #202b69 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 14px 24px rgba(12,17,43,.14);
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-divider {
    position: relative;
    margin: 1rem 0 .7rem;
    text-align: center;
    color: #6b7280;
    font-size: .78rem;
    font-weight: 600;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-divider::before,
body.authentication-bg.rdc-auth-page .rdc-auth-preview-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 34%;
    height: 1px;
    background: #e5e7eb;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-divider::before { left: 0; }
body.authentication-bg.rdc-auth-page .rdc-auth-preview-divider::after { right: 0; }

body.authentication-bg.rdc-auth-page .rdc-auth-preview-divider span {
    background: rgba(255,255,255,.94);
    padding: 0 .45rem;
    position: relative;
    z-index: 1;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-socials {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-bottom: .75rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-socials span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #111827;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-footnote {
    margin-top: auto;
    text-align: center;
    color: #6b7280;
    font-size: .88rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-preview-footnote strong {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-frame {
        gap: 2rem;
        grid-template-columns: minmax(320px, 400px) minmax(320px, 400px);
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-col,
    body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
        min-height: 630px;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-preview-title,
    body.authentication-bg.rdc-auth-page .rdc-auth-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 991.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
        transform: none;
        overflow: visible;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-phone-status {
        top: 12px;
        left: 14px;
        right: 14px;
    }
}

@media (max-width: 575.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-phone-time {
        font-size: .84rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-phone-icons span:nth-child(1) {
        width: 12px;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-meta {
        gap: .5rem;
    }
}

/* Shared login visual refresh v5 (single-card desktop layout, no side signup preview) */
body.authentication-bg.rdc-auth-page .rdc-auth-shell {
    width: min(700px, 100%);
}

body.authentication-bg.rdc-auth-page .rdc-auth-shell::after {
    display: none !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-shell::before {
    inset: 6% 12% 4% 12%;
    background: radial-gradient(circle at 50% 56%, rgba(203, 213, 225, .42), rgba(203, 213, 225, 0) 70%);
    filter: blur(14px);
}

body.authentication-bg.rdc-auth-page .rdc-auth-frame {
    grid-template-columns: minmax(420px, 560px) !important;
    justify-content: center;
    gap: 0 !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-art-col {
    display: none !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
    width: min(560px, 100%);
    min-height: auto !important;
    margin: 0 auto;
    padding: 1.1rem 1.5rem 1.25rem;
    border-radius: 30px;
    transform: none !important;
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.09),
        0 8px 20px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255,255,255,.98);
}

body.authentication-bg.rdc-auth-page .rdc-auth-phone-status {
    position: static;
    margin-bottom: .7rem;
    padding: .15rem .1rem 0;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
    margin-top: .15rem;
    margin-bottom: .85rem;
    padding: .75rem .85rem;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

body.authentication-bg.rdc-auth-page .rdc-auth-brandline::after {
    display: none;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 13px;
}

body.authentication-bg.rdc-auth-page .rdc-auth-head {
    margin-bottom: 1rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-title {
    font-size: clamp(2.25rem, 3vw, 2.95rem);
}

body.authentication-bg.rdc-auth-page .rdc-auth-subtitle {
    font-size: 1rem;
    max-width: 33ch;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .mb-3 {
    margin-bottom: 1.05rem !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-label {
    font-size: .9rem;
    margin-left: .2rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control {
    min-height: 56px;
    border-radius: 999px;
    padding-inline: 1.15rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-submit {
    min-height: 58px;
    margin-top: .15rem;
    font-size: 1.02rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-form-meta {
    margin-top: .95rem;
    padding-inline: .15rem;
}

body.authentication-bg.rdc-auth-page .rdc-auth-footer-note {
    margin-top: .95rem;
    padding-inline: .15rem;
}

@media (max-width: 991.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-shell {
        width: min(560px, 100%);
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
        width: min(520px, 100%);
        border-radius: 24px;
        padding: 1rem 1rem 1.05rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
        margin-top: .1rem;
        font-size: 1.85rem;
        padding: .65rem .75rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    body.authentication-bg.rdc-auth-page .rdc-auth-form-col {
        border-radius: 20px;
        padding: .9rem .85rem 1rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-phone-status {
        margin-bottom: .55rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
        font-size: 1.45rem;
        gap: .5rem;
        border-radius: 14px;
        padding: .55rem .6rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-title {
        font-size: 1.75rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-subtitle {
        font-size: .9rem;
    }

    body.authentication-bg.rdc-auth-page .rdc-auth-form .form-control,
    body.authentication-bg.rdc-auth-page .rdc-auth-submit {
        min-height: 50px;
    }
}

/* Shared login visual refresh v6 (remove phone status icons/time) */
body.authentication-bg.rdc-auth-page .rdc-auth-phone-status {
    display: none !important;
}

body.authentication-bg.rdc-auth-page .rdc-auth-brandline {
    margin-top: 0 !important;
}

/* Shared login visual refresh v7 (music-themed premium background) */
body.authentication-bg.rdc-auth-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 120, 72, 0.14), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(99, 102, 241, 0.14), transparent 34%),
        radial-gradient(circle at 78% 82%, rgba(236, 72, 153, 0.10), transparent 34%),
        radial-gradient(circle at 28% 78%, rgba(14, 165, 233, 0.08), transparent 30%),
        linear-gradient(135deg, #f5f5f7 0%, #edf0f7 42%, #f6f2f8 100%) !important;
}

body.authentication-bg.rdc-auth-page::before {
    opacity: .45 !important;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18) 50%, rgba(255,255,255,0));
    background-repeat: no-repeat;
}

body.authentication-bg.rdc-auth-page::after {
    opacity: .85 !important;
    background:
        radial-gradient(ellipse at 50% 58%, rgba(59, 130, 246, .08) 0%, rgba(255,255,255,0) 55%),
        radial-gradient(ellipse at 52% 62%, rgba(168, 85, 247, .07) 0%, rgba(255,255,255,0) 62%),
        linear-gradient(90deg, rgba(255,255,255,0) 36%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 64%);
}

body.authentication-bg.rdc-auth-page .rdc-auth-shell::before {
    background:
        radial-gradient(circle at 50% 56%, rgba(79, 70, 229, .10), rgba(79, 70, 229, 0) 46%),
        radial-gradient(circle at 46% 62%, rgba(236, 72, 153, .07), rgba(236, 72, 153, 0) 54%),
        radial-gradient(circle at 56% 66%, rgba(59, 130, 246, .08), rgba(59, 130, 246, 0) 58%);
    filter: blur(18px);
}

/* Labels songs / release UI upgrades */
.songs-ui-date-filter-form-inline {
    flex: 0 0 auto;
}

.songs-ui-date-range-pill-wrap {
    display: flex;
    align-items: center;
}

.songs-ui-date-range-pill {
    min-width: 210px;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 14px;
}

.songs-ui-date-range-pill span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.songs-ui-audio-wrap {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 18px rgba(37, 99, 235, 0.08);
}

.songs-ui-audio-wrap audio {
    width: 300px;
    max-width: 100%;
    height: 38px;
    display: block;
    border-radius: 999px;
}

/* Labels upload single/album modern form shell */
.label-release-editor-page .container-fluid {
    padding-bottom: 1rem;
}

.label-release-editor-card {
    border-radius: 22px;
}

.label-release-editor-card .card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.label-release-form-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(37,99,235,0.04), rgba(37,99,235,0.02));
}

.label-release-form-head-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.45rem;
}

.label-release-form-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.label-release-form-back-btn:hover {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.34);
    color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(59, 130, 246, 0.16);
}

.label-release-form-back-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.label-release-form-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.label-release-form-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.label-release-editor-page .label-release-form .form-group.row {
    margin-left: 0;
    margin-right: 0;
    padding: 0.7rem 0.85rem;
    /* border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.03); */
}

.label-release-editor-page .label-release-form .col-form-label {
    color: #334155;
    font-weight: 700;
}

.label-release-editor-page .label-release-form .form-control,
.label-release-editor-page .label-release-form select.form-control,
.label-release-editor-page .label-release-form textarea.form-control {
    border-radius: 12px;
    border: 1px solid #d7e0ec;
    background: #f8fbff;
    color: #0f172a;
    min-height: 46px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.label-release-editor-page .label-release-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.label-release-editor-page .label-release-form .form-control:focus,
.label-release-editor-page .label-release-form select.form-control:focus,
.label-release-editor-page .label-release-form textarea.form-control:focus {
    border-color: rgba(37, 99, 235, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.label-release-editor-page .label-release-form .progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #eef2ff;
}

.label-release-editor-page .label-release-form .progress-bar {
    font-size: 0.7rem;
    line-height: 10px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.label-release-editor-page .label-release-form .metadata-chip-field {
    width: 100%;
    position: relative;
}

.label-release-editor-page .label-release-form .metadata-chip-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #d7e0ec;
    background: #f8fbff;
    cursor: text;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.label-release-editor-page .label-release-form .metadata-chip-field.is-invalid .metadata-chip-control {
    border-color: #dc3545;
}

.label-release-editor-page .label-release-form .metadata-chip-control:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.label-release-editor-page .label-release-form .metadata-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.label-release-editor-page .label-release-form .metadata-chip-token {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.48rem 0.7rem 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #c99216;
    background: #fff4db;
    color: #6b4d08;
    font-size: 0.92rem;
    font-weight: 700;
}

.label-release-editor-page .label-release-form .metadata-chip-token-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.label-release-editor-page .label-release-form .metadata-chip-token-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(107, 77, 8, 0.12);
    color: #7c5407;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.label-release-editor-page .label-release-form .metadata-chip-input {
    flex: 1 1 180px;
    min-width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    padding: 0;
    min-height: 34px;
}

.label-release-editor-page .label-release-form .metadata-chip-input::placeholder {
    color: #94a3b8;
}

.label-release-editor-page .label-release-form .metadata-chip-hidden-inputs {
    display: none;
}

.label-release-editor-page .label-release-form .metadata-chip-suggestions {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.45rem;
    border: 1px solid #d7e0ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.label-release-editor-page .label-release-form .metadata-chip-suggestion-item {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0f172a;
    text-align: left;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 0.72rem 0.8rem;
    cursor: pointer;
}

.label-release-editor-page .label-release-form .metadata-chip-suggestion-item:hover,
.label-release-editor-page .label-release-form .metadata-chip-suggestion-item:focus {
    background: #eef4ff;
    color: #1d4ed8;
    outline: none;
}

.label-release-editor-page .label-release-form .metadata-chip-suggestion-item-create {
    background: #f0f4ff;
    color: #4361ee;
    border: 1px dashed #c7d4fb;
    font-style: italic;
}

.label-release-editor-page .label-release-form .metadata-chip-suggestion-item-create:hover,
.label-release-editor-page .label-release-form .metadata-chip-suggestion-item-create:focus {
    background: #e0eaff;
    color: #2d4fd6;
    border-color: #a5b4fc;
    outline: none;
}

.label-release-editor-page .label-release-form .msg,
.label-release-editor-page .label-release-form .msg_album_art {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.label-release-editor-page .label-release-form .field_wrapper > div {
    margin-top: 0.75rem !important;
    padding: 0.65rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.label-release-editor-page .label-release-form .add_button button,
.label-release-editor-page .label-release-form .btn-info,
.label-release-editor-page .label-release-form .btn-success {
    border-radius: 12px;
    border: 0;
    padding: 0.7rem 1rem;
    font-weight: 700;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.18);
}

.label-release-editor-page .label-release-form .btn-info {
    background: linear-gradient(135deg, #22c1ee, #2563eb);
}

.label-release-editor-page .label-release-form .btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.label-release-editor-page .label-release-form .remove_button {
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.14);
}

.label-release-editor-page #img-tag {
    width: 220px !important;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dbe3ee;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .songs-ui-audio-wrap {
    background: linear-gradient(180deg, rgba(30,41,59,0.92), rgba(15,23,42,0.92));
    border-color: rgba(96, 165, 250, 0.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 12px 24px rgba(2, 6, 23, 0.35);
}

html[data-theme="dark"] .songs-ui-date-range-pill {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(96, 165, 250, 0.18);
    color: #dbeafe;
}

html[data-theme="dark"] .label-release-form-head {
    border-color: rgba(96, 165, 250, 0.16);
    background: linear-gradient(180deg, rgba(37,99,235,0.10), rgba(37,99,235,0.04));
}

html[data-theme="dark"] .label-release-form-back-btn {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(96, 165, 250, 0.22);
    color: #e2e8f0;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.36);
}

html[data-theme="dark"] .label-release-form-back-btn:hover {
    background: rgba(30, 41, 59, 0.96);
    border-color: rgba(96, 165, 250, 0.38);
    color: #93c5fd;
}

html[data-theme="dark"] .label-release-form-title {
    color: #e2e8f0;
}

html[data-theme="dark"] .label-release-form-subtitle {
    color: #94a3b8;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .form-group.row {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(96, 165, 250, 0.12);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.22);
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .col-form-label {
    color: #cbd5e1;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .form-control,
html[data-theme="dark"] .label-release-editor-page .label-release-form select.form-control,
html[data-theme="dark"] .label-release-editor-page .label-release-form textarea.form-control {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.16);
    color: #e2e8f0;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .form-control::placeholder,
html[data-theme="dark"] .label-release-editor-page .label-release-form textarea.form-control::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-control {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(96, 165, 250, 0.16);
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-control:focus-within {
    background: rgba(30, 41, 59, 0.96);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-token {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(120, 53, 15, 0.38);
    color: #fcd34d;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-token-remove {
    background: rgba(252, 211, 77, 0.14);
    color: #fde68a;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-input {
    color: #e2e8f0;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-suggestions {
    border-color: rgba(96, 165, 250, 0.18);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-suggestion-item {
    color: #e2e8f0;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-suggestion-item:hover,
html[data-theme="dark"] .label-release-editor-page .label-release-form .metadata-chip-suggestion-item:focus {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

html[data-theme="dark"] .label-release-editor-page .label-release-form .field_wrapper > div {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(96, 165, 250, 0.16);
}

html[data-theme="dark"] .label-release-editor-page #img-tag {
    border-color: rgba(96, 165, 250, 0.18);
    background: rgba(15, 23, 42, 0.85);
}

/* Song review editor + share editor */
.song-review-editor-page .container-fluid,
.share-editor-page .container-fluid,
.label-release-editor-page .container-fluid {
    padding-bottom: 1rem;
}

.song-review-shell,
.share-editor-shell,
.label-release-editor-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-review-hero,
.share-editor-hero,
.label-release-editor-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.song-review-hero-main,
.share-editor-hero-main,
.label-release-editor-hero-main {
    flex: 1 1 auto;
    min-width: 0;
}

.song-review-badge,
.share-editor-badge,
.label-release-editor-badge {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .16);
    background: rgba(37, 99, 235, .08);
    color: #1d4ed8;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.song-review-title,
.share-editor-title,
.label-release-editor-hero-title {
    margin: .7rem 0 .4rem;
    color: #0f172a;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.song-review-subtitle,
.share-editor-subtitle,
.label-release-editor-hero-copy {
    margin: 0;
    max-width: 820px;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.65;
}

.song-review-chip-row,
.label-release-editor-chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .9rem;
}

.song-review-chip,
.label-release-editor-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .8rem;
    border-radius: 999px;
    border: 1px solid #d7e3f5;
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
    color: #334155;
    font-size: .85rem;
    font-weight: 700;
}

.song-review-chip-approved,
.label-release-editor-chip-approved {
    border-color: rgba(22, 163, 74, .24);
    background: rgba(22, 163, 74, .10);
    color: #15803d;
}

.song-review-chip-pending,
.label-release-editor-chip-pending {
    border-color: rgba(245, 158, 11, .26);
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.song-review-chip-rejected,
.label-release-editor-chip-rejected {
    border-color: rgba(239, 68, 68, .24);
    background: rgba(239, 68, 68, .10);
    color: #b91c1c;
}

.song-review-hero-actions,
.share-editor-actions,
.label-release-editor-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}

.song-review-hero-btn,
.share-editor-btn,
.label-release-editor-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 46px;
    padding: .78rem 1rem;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 22px rgba(37, 99, 235, .22);
}

.song-review-hero-btn:hover,
.share-editor-btn:hover,
.label-release-editor-hero-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.song-review-hero-btn-soft,
.share-editor-btn-soft,
.label-release-editor-hero-btn-soft {
    border: 1px solid #d7e3f5;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: #1e293b;
    box-shadow: none;
}

.song-review-hero-btn-soft:hover,
.share-editor-btn-soft:hover,
.label-release-editor-hero-btn-soft:hover {
    color: #0f172a;
    border-color: #c7d7ee;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.song-review-grid,
.share-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .92fr);
    gap: 1rem;
}

.song-review-main,
.share-editor-main,
.song-review-side,
.share-editor-side {
    min-width: 0;
}

.song-review-card,
.share-editor-card,
.label-release-editor-summary-card {
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, .92);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .05);
}

.song-review-card,
.share-editor-card {
    padding: 1.15rem 1.2rem 1.2rem;
}

.song-review-card + .song-review-card {
    margin-top: 1rem;
}

.song-review-card-head,
.share-editor-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
}

.song-review-card-title,
.share-editor-card-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.song-review-card-copy,
.share-editor-card-copy {
    margin: .18rem 0 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.55;
}

.song-review-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.song-review-detail-item {
    padding: .9rem 1rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fbff;
}

.song-review-detail-label,
.share-editor-side-label,
.label-release-editor-summary-label {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.song-review-detail-value,
.share-editor-side-value {
    margin-top: .36rem;
    color: #0f172a;
    font-size: .97rem;
    font-weight: 700;
    line-height: 1.55;
    word-break: break-word;
}

.song-review-lyrics-block {
    margin-top: .95rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fbfdff, #f8fbff);
}

.song-review-lyrics-copy {
    margin-top: .55rem;
    color: #334155;
    line-height: 1.75;
    white-space: normal;
}

.song-review-form .form-control,
.song-review-form select.form-control,
.song-review-form textarea.form-control,
.share-editor-form .form-control {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #d7e0ec;
    background: #f8fbff;
    color: #0f172a;
    box-shadow: none;
}

.song-review-form textarea.form-control {
    min-height: 116px;
}

.song-review-form .form-control:focus,
.song-review-form select.form-control:focus,
.song-review-form textarea.form-control:focus,
.share-editor-form .form-control:focus {
    border-color: rgba(37, 99, 235, .45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.song-review-form-actions,
.share-editor-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.song-review-submit-btn,
.share-editor-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .82rem 1.15rem;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 22px rgba(5, 150, 105, .22);
}

.song-review-cover-wrap,
.share-editor-preview-card {
    overflow: hidden;
}

.song-review-cover-art,
.share-editor-cover-art,
.label-release-editor-summary-art {
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
}

.song-review-cover-art,
.share-editor-cover-art {
    aspect-ratio: 1 / 1;
}

.label-release-editor-summary-art {
    max-width: 170px;
    aspect-ratio: 1 / 1;
    margin-top: .65rem;
}

.song-review-audio-wrap,
.share-editor-side-meta,
.song-review-side-note,
.label-release-editor-summary-meta {
    margin-top: 1rem;
}

.song-review-audio-wrap audio,
.label-release-editor-audio-wrap audio {
    width: 100%;
}

.song-review-side-note-copy,
.share-editor-side-note,
.label-release-editor-summary-meta {
    color: #475569;
    line-height: 1.7;
}

.share-editor-save-state {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .72rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, .24);
    background: rgba(22, 163, 74, .10);
    color: #15803d;
    font-size: .82rem;
    font-weight: 800;
}

.share-editor-rows {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.share-editor-row,
.share-editor-custom-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    padding: .82rem .9rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fbff;
}

.share-editor-custom-row {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) 44px;
}

.share-editor-row-label {
    color: #1e293b;
    font-weight: 700;
}

.share-editor-custom-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.share-editor-custom-head h6 {
    margin: 0;
    color: #0f172a;
    font-size: .95rem;
    font-weight: 800;
}

.share-editor-custom-head p {
    margin: .22rem 0 0;
    color: #64748b;
    font-size: .88rem;
}

.share-editor-custom-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin-top: .9rem;
}

.share-editor-remove-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, .18);
    background: rgba(239, 68, 68, .08);
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-editor-side-meta + .share-editor-side-meta {
    margin-top: .8rem;
}

.label-release-editor-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.label-release-editor-summary-card {
    padding: 1rem 1.05rem;
}

.label-release-editor-summary-meta {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .7rem;
}

html[data-theme="dark"] .song-review-hero,
html[data-theme="dark"] .share-editor-hero,
html[data-theme="dark"] .label-release-editor-hero {
    border-color: rgba(96, 165, 250, .16);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
    box-shadow: 0 18px 32px rgba(2, 6, 23, .34);
}

html[data-theme="dark"] .song-review-badge,
html[data-theme="dark"] .share-editor-badge,
html[data-theme="dark"] .label-release-editor-badge {
    border-color: rgba(96, 165, 250, .24);
    background: rgba(59, 130, 246, .14);
    color: #bfdbfe;
}

html[data-theme="dark"] .song-review-title,
html[data-theme="dark"] .share-editor-title,
html[data-theme="dark"] .label-release-editor-hero-title,
html[data-theme="dark"] .song-review-card-title,
html[data-theme="dark"] .share-editor-card-title,
html[data-theme="dark"] .share-editor-custom-head h6 {
    color: #e2e8f0;
}

html[data-theme="dark"] .song-review-subtitle,
html[data-theme="dark"] .share-editor-subtitle,
html[data-theme="dark"] .label-release-editor-hero-copy,
html[data-theme="dark"] .song-review-card-copy,
html[data-theme="dark"] .share-editor-card-copy,
html[data-theme="dark"] .share-editor-custom-head p,
html[data-theme="dark"] .song-review-side-note-copy,
html[data-theme="dark"] .share-editor-side-note,
html[data-theme="dark"] .label-release-editor-summary-meta {
    color: #94a3b8;
}

html[data-theme="dark"] .song-review-chip,
html[data-theme="dark"] .label-release-editor-chip {
    border-color: rgba(96, 165, 250, .16);
    background: rgba(15, 23, 42, .78);
    color: #dbeafe;
}

html[data-theme="dark"] .song-review-chip-approved,
html[data-theme="dark"] .label-release-editor-chip-approved {
    background: rgba(22, 163, 74, .12);
    color: #86efac;
}

html[data-theme="dark"] .song-review-chip-pending,
html[data-theme="dark"] .label-release-editor-chip-pending {
    background: rgba(245, 158, 11, .16);
    color: #fcd34d;
}

html[data-theme="dark"] .song-review-chip-rejected,
html[data-theme="dark"] .label-release-editor-chip-rejected {
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
}

html[data-theme="dark"] .song-review-hero-btn-soft,
html[data-theme="dark"] .share-editor-btn-soft,
html[data-theme="dark"] .label-release-editor-hero-btn-soft {
    border-color: rgba(96, 165, 250, .16);
    background: rgba(15, 23, 42, .74);
    color: #e2e8f0;
}

html[data-theme="dark"] .song-review-hero-btn-soft:hover,
html[data-theme="dark"] .share-editor-btn-soft:hover,
html[data-theme="dark"] .label-release-editor-hero-btn-soft:hover {
    color: #f8fafc;
    border-color: rgba(96, 165, 250, .24);
    background: rgba(30, 41, 59, .92);
    box-shadow: 0 12px 22px rgba(2, 6, 23, .22);
}

html[data-theme="dark"] .song-review-card,
html[data-theme="dark"] .share-editor-card,
html[data-theme="dark"] .label-release-editor-summary-card {
    border-color: rgba(96, 165, 250, .12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
    box-shadow: 0 18px 30px rgba(2, 6, 23, .30);
}

html[data-theme="dark"] .song-review-detail-item,
html[data-theme="dark"] .song-review-lyrics-block,
html[data-theme="dark"] .share-editor-row,
html[data-theme="dark"] .share-editor-custom-row {
    border-color: rgba(96, 165, 250, .12);
    background: rgba(30, 41, 59, .72);
}

html[data-theme="dark"] .song-review-detail-label,
html[data-theme="dark"] .share-editor-side-label,
html[data-theme="dark"] .label-release-editor-summary-label {
    color: #93a4bc;
}

html[data-theme="dark"] .song-review-detail-value,
html[data-theme="dark"] .share-editor-side-value,
html[data-theme="dark"] .share-editor-row-label {
    color: #e2e8f0;
}

html[data-theme="dark"] .song-review-form .form-control,
html[data-theme="dark"] .song-review-form select.form-control,
html[data-theme="dark"] .song-review-form textarea.form-control,
html[data-theme="dark"] .share-editor-form .form-control {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(96, 165, 250, .16);
    color: #e2e8f0;
}

html[data-theme="dark"] .share-editor-custom-head {
    border-top-color: rgba(96, 165, 250, .12);
}

html[data-theme="dark"] .share-editor-save-state {
    background: rgba(22, 163, 74, .12);
    color: #86efac;
}

html[data-theme="dark"] .song-review-cover-art,
html[data-theme="dark"] .share-editor-cover-art,
html[data-theme="dark"] .label-release-editor-summary-art {
    border-color: rgba(96, 165, 250, .16);
    background: rgba(30, 41, 59, .8);
}

@media (max-width: 1199.98px) {
    .song-review-grid,
    .share-editor-grid,
    .label-release-editor-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .songs-ui-audio-wrap audio {
        width: 240px;
    }

    .songs-ui-date-range-pill {
        min-width: 180px;
    }

    .label-release-editor-page .label-release-form .metadata-chip-input {
        min-width: 100%;
    }

    .songs-ui-date-range-pill span {
        max-width: 140px;
    }

    .label-release-editor-page .label-release-form .form-group.row {
        padding: 0.8rem;
    }

    .song-review-hero,
    .share-editor-hero,
    .label-release-editor-hero,
    .share-editor-custom-head {
        flex-direction: column;
    }

    .song-review-hero-actions,
    .share-editor-actions,
    .label-release-editor-hero-actions {
        width: 100%;
    }

    .song-review-hero-btn,
    .share-editor-btn,
    .label-release-editor-hero-btn {
        width: 100%;
    }

    .song-review-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .share-editor-row,
    .share-editor-custom-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Labels billing page compact polish */
.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-table-card {
    margin-bottom: .5rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-table-card .card-body {
    padding: .85rem .9rem .75rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-head {
    margin-bottom: .45rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-title {
    font-size: 1rem;
    letter-spacing: -.01em;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-subtitle {
    font-size: .76rem;
    line-height: 1.3;
    margin-top: .12rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-head-actions {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--bws-border);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: none;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon:hover {
    border-color: var(--bws-border-strong);
    background: #fff;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon.is-active {
    border-color: rgba(37,99,235,.28);
    background: color-mix(in srgb, var(--analytics-accent-soft) 45%, #ffffff);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon .analytics-filter-date-icon-btn {
    color: #2563eb;
    font-size: 1.08rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-toolbar {
    margin-bottom: .55rem;
    padding-bottom: .55rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-chip,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page .btn.billing-btn-filter {
    min-height: 40px;
    padding: .45rem .75rem;
    font-size: .88rem;
    border-radius: 12px;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-chip i,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page .btn.billing-btn-filter i {
    font-size: .95rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_info {
    font-size: .82rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    min-height: 34px;
    line-height: 34px !important;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper > .row:first-child {
    display: none;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper > .row:nth-child(2) {
    margin-top: 0 !important;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .row:last-child {
    margin-top: .55rem;
    padding-top: .65rem;
    border-top: 1px solid #edf2f7;
    align-items: center;
    row-gap: .55rem;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .billing-dt-info-pill,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_info {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    width: auto;
    max-width: 100%;
    padding: .4rem .7rem;
    border-radius: 999px;
    border: 1px solid #dfe8f4;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: #5f7089;
    font-weight: 600;
    letter-spacing: .01em;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .billing-dt-info-pill::before,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_info::before {
    content: "\F0E6";
    font-family: "Material Design Icons";
    font-size: .95rem;
    color: #64748b;
    line-height: 1;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .billing-dt-paginate-shell,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    padding: .22rem;
    border-radius: 999px;
    border: 1px solid #dfe8f4;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .pagination {
    margin: 0;
    gap: .2rem;
    align-items: center;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .page-item .page-link,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    min-width: 36px;
    height: 36px;
    padding: 0 .55rem !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #64748b !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1 !important;
    box-shadow: none !important;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .page-item.active .page-link,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(99, 102, 241, .22) !important;
}

.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .page-item .page-link:hover,
.billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eef4ff !important;
    border-color: #cfddf2 !important;
    color: #1e293b !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon {
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon:hover {
    border-color: #364861;
    background: linear-gradient(180deg, #1a2740, #142138);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon.is-active {
    border-color: rgba(106,169,255,.28);
    background: rgba(106,169,255,.08);
    box-shadow: 0 0 0 3px rgba(106, 169, 255, .08);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-calendar-icon .analytics-filter-date-icon-btn {
    color: #6aa9ff;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .row:last-child {
    border-top-color: rgba(148,163,184,.14);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .billing-dt-info-pill,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_info {
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
    color: #b8c7da;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .billing-dt-info-pill::before,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_info::before {
    color: #9cb0cb;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .billing-dt-paginate-shell,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate {
    border-color: #2b3950;
    background: linear-gradient(180deg, #162033, #111a2c);
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .page-item .page-link,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button {
    color: #b5c4d8 !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .page-item.active .page-link,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #fff !important;
}

html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .page-item .page-link:hover,
html[data-theme="dark"] .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(59,130,246,.12) !important;
    border-color: #304159 !important;
    color: #eef4ff !important;
}

@media (max-width: 991.98px) {
    .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-table-card {
        margin-bottom: .35rem;
    }

    .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-title {
        font-size: .96rem;
    }

    .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-subtitle {
        font-size: .74rem;
    }

    .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-head-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: .5rem;
    }

    .billing-modern-page.billing-shared-workspace-page.labels-billing-page .billing-history-head-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .billing-modern-page.billing-shared-workspace-page.labels-billing-page #basic-datatable_wrapper .dataTables_paginate {
        width: 100%;
        justify-content: center;
    }
}
