:root {
    --navbar-height: 84px;
    --safebooks-logo-size: 48px;
    --color-primary: #1f5ed9;
    --color-primary-deep: #174ab5;
    --color-primary-soft: #dfeaff;
    --color-surface: #ffffff;
    --color-bg: #f5f8ff;
    --color-bg-alt: #eef3ff;
    --color-text: #0f1f40;
    --color-text-muted: #53617e;
    --color-border: #dbe6ff;
    --shadow-soft: 0 16px 36px rgba(19, 49, 112, 0.11);
    --shadow-card: 0 10px 24px rgba(18, 46, 108, 0.09);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, #f7faff 0%, #f3f7ff 45%, #f8fbff 100%);
    line-height: 1.6;
    padding-top: var(--navbar-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--color-text);
    font-weight: 700;
}

p {
    margin-bottom: 0;
}

.section-spacing-lg {
    padding: 8rem 0 6.5rem;
}

.section-spacing {
    padding: 5.5rem 0;
}

.section-spacing-sm {
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 2.25rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: var(--color-text-muted);
    font-size: 1.04rem;
}

.safe-navbar {
    min-height: var(--navbar-height);
    background: rgba(246, 250, 255, 0.84);
    border-bottom: 1px solid rgba(31, 94, 217, 0.12);
    box-shadow: 0 8px 18px rgba(18, 46, 108, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, min-height 0.25s ease;
    z-index: 1100;
}

.safe-navbar .container {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.safe-navbar.is-scrolled {
    min-height: 74px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(31, 94, 217, 0.18);
    box-shadow: 0 12px 24px rgba(15, 43, 104, 0.12);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    text-decoration: none;
    color: var(--color-primary);
}

.brand-mark:hover,
.brand-mark:focus-visible {
    color: var(--color-primary-deep);
}

.brand-logo-img {
    width: var(--safebooks-logo-size);
    height: var(--safebooks-logo-size);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.brand-logo-text {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.4px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.navbar .nav-link {
    color: #36507f;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: color 0.22s ease, background-color 0.22s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: var(--color-primary);
    background: rgba(31, 94, 217, 0.1);
}

.btn-safe-nav {
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.58rem 1.2rem;
    border: 1px solid transparent;
    box-shadow: 0 8px 16px rgba(22, 63, 143, 0.2);
}

.btn-safe-nav:hover,
.btn-safe-nav:focus-visible {
    background: var(--color-primary-deep);
    color: #ffffff;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-glow-left {
    width: 320px;
    height: 320px;
    background: #8aaeff;
    top: 70px;
    left: -80px;
}

.hero-glow-right {
    width: 360px;
    height: 360px;
    background: #c0d6ff;
    right: -90px;
    bottom: -80px;
}

.eyebrow {
    color: var(--color-primary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 1.2;
    margin-bottom: 1.1rem;
    max-width: 14ch;
}

.hero-subtext {
    color: var(--color-text-muted);
    font-size: 1.08rem;
    max-width: 56ch;
    margin-bottom: 1.9rem;
}

.btn-safe-primary,
.btn-safe-outline,
.btn-cta {
    border-radius: 999px;
    padding: 0.82rem 1.5rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-safe-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-safe-primary:hover,
.btn-safe-primary:focus-visible {
    background: var(--color-primary-deep);
    color: #ffffff;
}

.btn-safe-outline {
    border-color: #b9ccf5;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.75);
}

.btn-safe-outline:hover,
.btn-safe-outline:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary-deep);
    background: #ffffff;
}

.dashboard-mockup {
    background: linear-gradient(160deg, #ffffff, #f6f9ff 55%, #eef4ff 100%);
    border: 1px solid rgba(109, 140, 209, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}

.hero-preview-column {
    display: flex;
    align-items: center;
}

.hero-overview-card {
    width: 100%;
    max-width: 710px;
    margin-left: auto;
}

.hero-overview-header {
    margin-bottom: 0.95rem;
}

.hero-overview-title {
    font-size: 1.22rem;
    margin-bottom: 0.32rem;
}

.hero-overview-subtitle {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.hero-overview-table-wrap {
    border: 1px solid #dbe7ff;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
}

.hero-preview-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero-search-wrap {
    position: relative;
    flex: 1 1 0;
}

.hero-search-icon {
    position: absolute;
    left: 0.82rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.hero-search-input {
    border-color: #e2e8f0;
    border-radius: 0.5rem;
    color: #1f345f;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
}

.hero-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem #dbeafe;
}

.hero-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.hero-filter-btn {
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
}

.hero-filter-btn:hover,
.hero-filter-btn:focus-visible {
    background: #e2e8f0;
    color: #1f345f;
}

.hero-filter-btn.is-active {
    background: #2563eb;
    color: #ffffff;
}

.overview-table {
    margin: 0;
    width: 100%;
    table-layout: fixed;
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #edf3ff;
}

.overview-table th {
    border-bottom-color: #dbe7ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #3f5684;
    padding: 0.72rem 0.72rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.overview-table td {
    border-bottom-color: #e8efff;
    color: #1f345f;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.68rem 0.72rem;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color 0.25s ease;
}

.overview-table th:nth-child(1),
.overview-table td:nth-child(1) {
    width: 24%;
}

.overview-table th:nth-child(2),
.overview-table td:nth-child(2) {
    width: 18%;
}

.overview-table th:nth-child(3),
.overview-table td:nth-child(3) {
    width: 20%;
}

.overview-table th:nth-child(4),
.overview-table td:nth-child(4) {
    width: 21%;
}

.overview-table th:nth-child(5),
.overview-table td:nth-child(5) {
    width: 17%;
}

.overview-table tbody tr {
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.overview-table tbody tr:hover {
    background-color: rgba(239, 246, 255, 0.45);
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

.status-filed,
.risk-low,
.remark-new,
.remark-active {
    background: #dfeeff;
    color: #1e5fd9;
}

.status-pending,
.risk-medium,
.remark-separated {
    background: #fff0d8;
    color: #a25f00;
}

.status-late,
.risk-high,
.remark-closed {
    background: #ffe0e0;
    color: #ad2d2d;
}

.status-updated {
    background: #dff3e8;
    color: #1e7f53;
}

.status-no-entries {
    background: #fff0d8;
    color: #9a5d00;
}

.status-needs-attention {
    background: #ffe0e0;
    color: #ad2d2d;
}

.mock-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.mock-pill {
    width: 46%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d6e3ff, #bed3ff);
}

.mock-chip-group {
    display: flex;
    gap: 0.45rem;
}

.mock-chip {
    width: 38px;
    height: 12px;
    border-radius: 999px;
    background: #dbe8ff;
}

.mock-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    padding: 0.8rem 0.72rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d8e4fc;
    border-radius: var(--radius-sm);
}

.metric-card p {
    color: #70819f;
    font-size: 0.78rem;
    margin-bottom: 0.18rem;
}

.metric-card h3 {
    margin: 0;
    font-size: 1.28rem;
}

.trend {
    font-size: 0.74rem;
    font-weight: 700;
}

.trend.positive {
    color: #1f8a52;
}

.trend.warning {
    color: #c67c1d;
}

.mock-chart {
    background: #f4f8ff;
    border: 1px solid #d9e5ff;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 0.45rem;
    height: 146px;
    padding: 0.8rem;
}

.bar {
    border-radius: 7px;
    background: linear-gradient(180deg, #81a8ff 0%, #2e67e0 100%);
}

.bar-1 {
    height: 36%;
}

.bar-2 {
    height: 72%;
}

.bar-3 {
    height: 48%;
}

.bar-4 {
    height: 80%;
}

.bar-5 {
    height: 58%;
}

.bar-6 {
    height: 92%;
}

.feature-card {
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.45rem;
}

.card-interactive,
.step-card-interactive {
    cursor: default;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card-interactive:hover,
.card-interactive:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
    transform: translateY(-0.375rem);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.38rem;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    margin-bottom: 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.card-interactive:hover .feature-icon,
.card-interactive:focus-within .feature-icon {
    background: #2563eb;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.14rem;
    margin-bottom: 0.55rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
}

.how-it-works-section {
    background: linear-gradient(180deg, #edf3ff 0%, #f7f9ff 100%);
}

.step-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid #d8e4fd;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-card);
}

.step-card-interactive:hover,
.step-card-interactive:focus-within {
    border-color: #a5b4fc;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
    transform: translateY(-0.375rem);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf3ff;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 800;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e3edff;
    color: var(--color-primary);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.step-card-interactive:hover .step-number,
.step-card-interactive:hover .step-icon,
.step-card-interactive:focus-within .step-number,
.step-card-interactive:focus-within .step-icon {
    background: #4f46e5;
    color: #ffffff;
}

.step-card h3 {
    font-size: 1.16rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
}

.trust-banner-section {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    padding: 2rem 0;
}

.trust-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.trust-banner-main,
.trust-banner-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-banner-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06);
    font-size: 1.5rem;
}

.trust-banner-main h4 {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.125rem;
}

.trust-banner-main p,
.trust-banner-copy p {
    margin: 0;
}

.trust-banner-main p {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.trust-banner-divider {
    width: 1px;
    height: 2rem;
    background: #e2e8f0;
}

.trust-banner-copy {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 700;
}

.trust-banner-copy span {
    color: #2563eb;
    font-weight: 800;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

.trust-badge-success {
    background: #f0fdf4;
    border-color: #c9f4d8;
    color: #15803d;
}

.trust-badge-primary {
    background: #eff6ff;
    border-color: #cfe3ff;
    color: #1d4ed8;
}

.stats-band {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
    padding: 4rem 0;
}

.stats-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    opacity: 0.1;
    filter: blur(64px);
}

.stats-glow-blue {
    top: -5rem;
    left: -5rem;
    background: #2563eb;
}

.stats-glow-indigo {
    right: -5rem;
    bottom: -5rem;
    background: #4f46e5;
}

.stats-band-content {
    position: relative;
    z-index: 1;
}

.stats-block {
    padding: 1.5rem;
}

.stats-block-middle {
    border-left: 1px solid #1e293b;
    border-right: 1px solid #1e293b;
}

.stats-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-value-blue {
    color: #60a5fa;
}

.stats-value-indigo {
    color: #818cf8;
}

.stats-label {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    margin-bottom: 0;
    text-transform: uppercase;
}

.stats-note {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.25rem 0 0;
}

.faq-section {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.faq-accordion {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-button {
    color: #1e293b;
    font-weight: 800;
    padding: 1rem 1.25rem;
}

.faq-button:focus {
    background: rgba(239, 246, 255, 0.2);
    color: #2563eb;
    box-shadow: none;
}

.faq-body {
    color: #3f4f63;
    font-size: 0.875rem;
    line-height: 1.625;
    padding: 0 1.25rem 1.25rem;
}

.hero-preview-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.hero-preview-modal-header {
    background: linear-gradient(to right, #2563eb, #4f46e5);
    border: 0;
    color: #ffffff;
    padding: 1rem;
}

.hero-preview-modal-title {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 800;
}

.hero-preview-modal-body {
    padding: 1.25rem;
}

.modal-detail-stack > * + * {
    margin-top: 1rem;
}

.modal-detail-item,
.hero-preview-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-detail-item,
.modal-detail-notes {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

.modal-detail-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.modal-detail-label {
    color: #64748b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
}

.modal-detail-value {
    color: #172033;
    font-weight: 800;
}

.modal-detail-mono {
    color: #1e293b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.modal-detail-note {
    background: #f8fafc;
    border-radius: 0.75rem;
    color: #3f4f63;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.25rem;
    padding: 0.875rem;
}

.hero-preview-modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 0.75rem;
}

.modal-footer-note {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.close-preview-btn {
    border: 0;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1rem;
}

.close-preview-btn:hover,
.close-preview-btn:focus-visible {
    background: #1d4ed8;
    color: #ffffff;
}

@media (min-width: 640px) {
    .hero-preview-controls {
        flex-direction: row;
    }
}

@media (max-width: 991.98px) {
    .trust-banner-content {
        align-items: stretch;
        flex-direction: column;
    }

    .trust-banner-divider {
        width: 100%;
        height: 1px;
    }

    .trust-banner-copy {
        text-align: center;
    }

    .stats-block-middle {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #1e293b;
        border-bottom: 1px solid #1e293b;
    }
}

.dashboard-preview-section {
    background: linear-gradient(180deg, #f7faff 0%, #f0f6ff 100%);
}

.preview-board {
    max-width: 900px;
    border-radius: 22px;
    border: 1px solid #d3e0fb;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.preview-header {
    border-bottom: 1px solid #ebf1ff;
    padding: 1rem 1.2rem;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
}

.dot-red {
    background: #fd7474;
}

.dot-yellow {
    background: #f8ba56;
}

.dot-green {
    background: #65cb84;
}

.preview-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.4rem;
    padding: 1.4rem;
}

.preview-column {
    background: #f7faff;
    border: 1px solid #dbe7ff;
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.preview-column h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.timeline-item {
    color: #4b5f83;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.timeline-item span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.sparkline {
    height: 84px;
    display: flex;
    align-items: end;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.spark {
    flex: 1;
    border-radius: 8px;
    background: linear-gradient(180deg, #8cb1ff 0%, #2f67e1 100%);
}

.spark-1 {
    height: 32%;
}

.spark-2 {
    height: 48%;
}

.spark-3 {
    height: 66%;
}

.spark-4 {
    height: 54%;
}

.spark-5 {
    height: 80%;
}

.preview-note {
    font-size: 0.92rem;
    color: #486296;
    font-weight: 700;
}

.cta-section {
    background: linear-gradient(145deg, #1f5ed9, #1a52c2 55%, #174ab5 100%);
}

.cta-section h2 {
    color: #ffffff;
    max-width: 760px;
    margin: 0 auto 1.2rem;
    font-size: clamp(1.6rem, 2.6vw, 2.45rem);
}

.btn-cta {
    background: #ffffff;
    color: var(--color-primary);
}

.btn-cta:hover,
.btn-cta:focus-visible {
    color: #ffffff;
    background: #0f3f9d;
}

.site-footer {
    background: #0d224a;
    color: #d8e5ff;
    padding: 3rem 0 1.4rem;
}

.site-footer h3 {
    color: #ffffff;
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
}

.site-footer p {
    color: #bfd1f3;
    max-width: 620px;
}

.footer-links-wrap {
    display: flex;
    gap: 1.1rem;
    justify-content: flex-end;
    align-items: center;
}

.footer-links-wrap a {
    color: #dbe8ff;
    font-weight: 700;
    text-decoration: none;
}

.footer-links-wrap a:hover,
.footer-links-wrap a:focus-visible {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(173, 198, 240, 0.23);
    margin-top: 1.6rem;
    padding-top: 1rem;
}

.footer-bottom p {
    color: #a9bfeb;
    font-size: 0.9rem;
}

body.auth-page {
    padding-top: 0;
    min-height: 100vh;
    background: linear-gradient(140deg, #f6f9ff 0%, #edf3ff 48%, #f7faff 100%);
}

.auth-shell,
.auth-grid {
    min-height: 100vh;
}

.auth-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem clamp(1.2rem, 4.8vw, 4rem);
    background: linear-gradient(160deg, #ebf2ff 0%, #dce8ff 48%, #cfdfff 100%);
}

.auth-side::before {
    content: "";
    position: absolute;
    width: min(64vw, 520px);
    height: min(64vw, 520px);
    border-radius: 50%;
    top: -190px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 68%);
}

.auth-side::after {
    content: "";
    position: absolute;
    width: min(54vw, 420px);
    height: min(54vw, 420px);
    border-radius: 50%;
    bottom: -170px;
    right: -110px;
    background: radial-gradient(circle, rgba(49, 107, 231, 0.14) 0%, rgba(49, 107, 231, 0) 70%);
}

.auth-side-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.auth-brand {
    display: inline-block;
    text-decoration: none;
    color: #1044ad;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 1.15rem;
}

.auth-brand:hover,
.auth-brand:focus-visible {
    color: #0b368d;
}

.auth-eyebrow {
    color: #245fda;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-size: 0.79rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.auth-heading {
    font-size: clamp(2rem, 4.1vw, 3.05rem);
    line-height: 1.18;
    margin-bottom: 0.9rem;
    color: #112754;
}

.auth-tagline {
    color: #4d628e;
    font-size: 1.08rem;
    line-height: 1.62;
    max-width: 42ch;
}

.auth-feature-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.auth-feature-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(87, 125, 202, 0.22);
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
}

.auth-feature-pill i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #1f5ed9;
    background: #e8f0ff;
    flex-shrink: 0;
}

.auth-feature-pill span {
    color: #2d4878;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1.3rem;
    background: rgba(248, 251, 255, 0.9);
}

.auth-form-wrap {
    width: min(100%, 520px);
}

.auth-card {
    background: #ffffff;
    border: 1px solid #d9e5ff;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(18, 53, 125, 0.14);
    padding: clamp(1.3rem, 2.8vw, 2.2rem);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #4366a5;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.auth-back-link i {
    font-size: 1.2rem;
}

.auth-back-link:hover,
.auth-back-link:focus-visible {
    color: #1f5ed9;
}

.auth-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.3rem;
    color: #13274f;
}

.auth-card-subtitle {
    color: #5d739e;
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
}

.auth-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    border: 1px solid #d9e5fb;
    border-radius: 12px;
    background: #ffffff;
    color: #2f4d85;
    font-weight: 700;
    padding: 0.7rem 0.92rem;
    box-shadow: 0 7px 14px rgba(17, 46, 107, 0.08);
}

.auth-google-btn:hover,
.auth-google-btn:focus-visible {
    border-color: #c4d6f7;
    background: #ffffff;
    color: #1f3f79;
}

.auth-google-btn:active {
    color: #1f3f79;
}

.auth-google-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-google-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-google-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    margin: 1rem 0 1.12rem;
    color: #8da2c6;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dce6fb;
}

.auth-divider span {
    line-height: 1;
}

.auth-form-label {
    color: #304b7b;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.auth-input {
    background: #fbfdff;
    border: 1px solid #c6d8fd;
    border-radius: 12px;
    color: #15315f;
    font-weight: 600;
    padding: 0.72rem 0.9rem;
}

.auth-input::placeholder {
    color: #8ca0c6;
    font-weight: 500;
}

.auth-input:focus {
    border-color: #2c68e1;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.16);
}

.auth-two-factor-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 8px 0 18px;
    place-items: center;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    color: #1764d8;
    background: #edf4ff;
    font-size: 24px;
}

.auth-two-factor-code {
    text-transform: uppercase;
}

.auth-field-guidance {
    margin: 8px 0 0;
    color: #667da8;
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-input[readonly] {
    background: #eef4ff;
    color: #23477f;
    cursor: not-allowed;
}

.auth-password-field {
    border: 1px solid #c6d8fd;
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-password-field:focus-within {
    border-color: #2c68e1;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.16);
    background: #ffffff;
}

/* Disabled state for auth inputs & password fields */
.auth-input:disabled,
.auth-input[disabled] {
    background-color: #eaecef !important;
    border-color: #d2d5da !important;
    color: #8c9bb0 !important;
    cursor: not-allowed !important;
}

.auth-password-field:has(.auth-input:disabled),
.auth-password-field:has(.form-control:disabled),
.auth-password-field.is-disabled {
    background-color: #eaecef !important;
    border-color: #d2d5da !important;
    box-shadow: none !important;
}

/* Invalid / error state for auth inputs & password fields */
.auth-input.is-invalid {
    border-color: #ef4444 !important;
    background-image: none !important;
}

.auth-input.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2) !important;
}

.auth-password-field.is-invalid,
.auth-password-field:has(.auth-input.is-invalid),
.auth-password-field:has(.form-control.is-invalid) {
    border-color: #ef4444 !important;
}

.auth-password-field.is-invalid:focus-within,
.auth-password-field:has(.auth-input.is-invalid):focus-within,
.auth-password-field:has(.form-control.is-invalid):focus-within {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.2) !important;
}

.auth-password-field:has(.auth-input:disabled) .auth-input,
.auth-password-field:has(.form-control:disabled) .auth-input,
.auth-password-field.is-disabled .auth-input,
.auth-password-field .auth-input:disabled {
    background-color: transparent !important;
    color: #8c9bb0 !important;
    cursor: not-allowed !important;
}

.auth-password-field:has(.auth-input:disabled) .auth-password-toggle,
.auth-password-field:has(.form-control:disabled) .auth-password-toggle,
.auth-password-field.is-disabled .auth-password-toggle,
.auth-password-toggle:disabled,
.auth-password-toggle[disabled] {
    color: #a4b3c7 !important;
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.auth-password-wrap {
    position: relative;
    display: block;
}

.auth-password-field .auth-input {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.72rem 2.9rem 0.72rem 0.9rem;
}

.auth-password-field .auth-input:focus {
    border: none;
    box-shadow: none;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b82af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: #eaf1ff;
    color: #2b56ad;
}

.auth-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.14);
}

/* Progressive Disclosure for Password Guidance on Auth Pages */
.auth-password-disclosure {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 240ms ease,
                visibility 320ms ease;
}

.auth-password-field.has-requirements.is-active .auth-password-disclosure,
.auth-password-disclosure.is-visible {
    max-height: 280px;
    opacity: 1;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
}

/* Password strength meter feedback */
.settings-password-strength,
.auth-password-strength {
    margin: 0;
    padding: 0.65rem 0.7rem 0.6rem;
    border-top: 1px solid #e8eefb;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
}

.settings-password-strength-header,
.auth-password-strength-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    color: #6a80aa;
    font-size: 0.75rem;
    font-weight: 700;
}

.settings-password-strength-label,
.auth-password-strength-label {
    color: #7b8ba8;
    transition: color 180ms ease;
}

.settings-password-strength-bar,
.auth-password-strength-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}

.settings-password-strength-segment,
.auth-password-strength-segment {
    height: 0.34rem;
    border-radius: 999px;
    background-color: #dbe6f7;
    transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.settings-password-strength[data-strength="weak"] .settings-password-strength-label,
.settings-password-strength[data-strength="weak"] .auth-password-strength-label,
.auth-password-strength[data-strength="weak"] .settings-password-strength-label,
.auth-password-strength[data-strength="weak"] .auth-password-strength-label {
    color: #c2410c;
}

.settings-password-strength[data-strength="medium"] .settings-password-strength-label,
.settings-password-strength[data-strength="medium"] .auth-password-strength-label,
.auth-password-strength[data-strength="medium"] .settings-password-strength-label,
.auth-password-strength[data-strength="medium"] .auth-password-strength-label {
    color: #a16207;
}

.settings-password-strength[data-strength="strong"] .settings-password-strength-label,
.settings-password-strength[data-strength="strong"] .auth-password-strength-label,
.auth-password-strength[data-strength="strong"] .settings-password-strength-label,
.auth-password-strength[data-strength="strong"] .auth-password-strength-label {
    color: #15803d;
}

.settings-password-strength[data-strength="weak"] [data-strength-segment="1"],
.auth-password-strength[data-strength="weak"] [data-strength-segment="1"],
.settings-password-strength[data-strength="medium"] [data-strength-segment="1"],
.auth-password-strength[data-strength="medium"] [data-strength-segment="1"] {
    background-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.settings-password-strength[data-strength="medium"] [data-strength-segment="2"],
.auth-password-strength[data-strength="medium"] [data-strength-segment="2"] {
    background-color: #eab308;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.12);
}

.settings-password-strength[data-strength="strong"] .settings-password-strength-segment,
.settings-password-strength[data-strength="strong"] .auth-password-strength-segment,
.auth-password-strength[data-strength="strong"] .settings-password-strength-segment,
.auth-password-strength[data-strength="strong"] .auth-password-strength-segment {
    background-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
    transform: scaleY(1.15);
}

.auth-password-field .auth-requirement-chip {
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.auth-password-field .auth-requirement-chip.is-active {
    transform: translateY(-1px);
}

body.theme-dark .settings-password-strength,
body.theme-dark .auth-password-strength {
    border-top-color: #1f304d;
    background: #0d182b;
}

body.theme-dark .settings-password-strength-header,
body.theme-dark .auth-password-strength-header {
    color: #94aacd;
}

body.theme-dark .settings-password-strength-label,
body.theme-dark .auth-password-strength-label {
    color: #7186a8;
}

body.theme-dark .settings-password-strength-segment,
body.theme-dark .auth-password-strength-segment {
    background-color: #25344f;
}

.auth-password-field.has-requirements .auth-password-requirements {
    margin: 0;
    padding: 0.5rem 0.7rem 0.62rem;
    border-top: 1px solid #e8eefb;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
}

.auth-password-requirements-title {
    margin: 0 0 0.34rem;
    color: #6a80aa;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-requirement-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.auth-requirement-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #dbe6fb;
    background: #f3f7ff;
    color: #6077a2;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.auth-requirement-icon {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 1px solid #c7d5f4;
    background: #d9e4fb;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
    flex: 0 0 auto;
}

.auth-requirement-chip.is-valid {
    color: #1d7a46;
    border-color: #b9e6ce;
    background: #e8f8ef;
}

.auth-requirement-chip.is-valid .auth-requirement-icon {
    color: #ffffff;
    border-color: #1d7a46;
    background: #1d7a46;
}

.auth-requirement-chip.is-valid .auth-requirement-icon::before {
    content: "\2713";
}

.auth-inline-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.05rem;
}

.auth-inline-link {
    color: #3364c8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
    color: #163f96;
}

.auth-submit-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.82rem 1.2rem;
    background: linear-gradient(145deg, #1f5ed9, #184db9);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(26, 82, 194, 0.24);
}

.auth-submit-btn:hover,
.auth-submit-btn:focus-visible {
    background: linear-gradient(145deg, #184db9, #133f99);
    color: #ffffff;
}

.auth-switch-text {
    text-align: center;
    margin-top: 1.2rem;
    color: #5d739e;
    font-size: 0.95rem;
}

.auth-switch-text a {
    color: #1f5ed9;
    font-weight: 800;
    text-decoration: none;
}

.auth-switch-text a:hover,
.auth-switch-text a:focus-visible {
    color: #153f9f;
}

body.dashboard-page {
    --dashboard-sidebar-width: 264px;
    --dashboard-sidebar-collapsed-width: 88px;
    --dashboard-main-padding-x: 1.2rem;
    padding-top: 0;
    background: linear-gradient(165deg, #f5f8ff 0%, #edf3ff 56%, #f7fbff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-layout {
    min-height: 100vh;
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--dashboard-sidebar-width);
    background: #ffffff;
    border-right: 1px solid #dbe6fb;
    padding: 1.1rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1200;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    will-change: transform, width;
}

.dashboard-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.52rem;
    margin-bottom: 0.8rem;
}

.dashboard-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 1.34rem;
    color: #1f5ed9;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.dashboard-logo-glyph {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.dashboard-logo-image {
    width: var(--safebooks-logo-size);
    height: var(--safebooks-logo-size);
    object-fit: cover;
    display: block;
}

.dashboard-logo-image.logo-dark {
    display: none;
}

.dashboard-logo-text {
    margin-left: 0.55rem;
    white-space: nowrap;
    max-width: 170px;
    overflow: hidden;
    transition: opacity 0.24s ease, max-width 0.24s ease, margin-left 0.24s ease;
}

.dashboard-logo:hover,
.dashboard-logo:focus-visible {
    color: #174ab5;
}

.dashboard-sidebar-label {
    color: #7d8fb3;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.05px;
    font-weight: 800;
    margin-bottom: 0.8rem;
    padding-left: 0.55rem;
    white-space: nowrap;
    max-height: 22px;
    overflow: hidden;
    transition: opacity 0.24s ease, max-height 0.24s ease, margin-bottom 0.24s ease, padding-left 0.24s ease;
}

.dashboard-nav {
    display: grid;
    gap: 0.35rem;
}

.dashboard-nav-item {
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.65rem 0.72rem;
    border-radius: 11px;
    text-align: left;
    text-decoration: none;
    background: transparent;
    color: #3f5787;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    max-width: 160px;
    transition: opacity 0.24s ease, max-width 0.24s ease;
}

.dashboard-nav-item i {
    font-size: 1.05rem;
}

.dashboard-nav-item.active {
    color: #1a56cd;
    background: #e8f1ff;
    box-shadow: inset 0 0 0 1px #d2e1ff;
}

.dashboard-nav-item:hover,
.dashboard-nav-item:focus-visible {
    color: #1a56cd;
    background: #f0f5ff;
}

.dashboard-landing-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    text-decoration: none;
    color: #4c6799;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.58rem 0.62rem;
}

.dashboard-landing-link span {
    white-space: nowrap;
    overflow: hidden;
    max-width: 165px;
    transition: opacity 0.24s ease, max-width 0.24s ease;
}

.dashboard-landing-link:hover,
.dashboard-landing-link:focus-visible {
    color: #1a56cd;
    background: #eef4ff;
}

.dashboard-main {
    margin-left: var(--dashboard-sidebar-width);
    width: calc(100% - var(--dashboard-sidebar-width));
    min-height: 100vh;
    padding: 1rem var(--dashboard-main-padding-x) 1.7rem;
    transition: margin-left 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body.sidebar-collapsed .dashboard-sidebar {
    width: var(--dashboard-sidebar-collapsed-width);
    padding: 1rem 0.58rem 0.92rem;
    overflow-x: hidden;
}

body.sidebar-collapsed .dashboard-main {
    margin-left: var(--dashboard-sidebar-collapsed-width);
    width: calc(100% - var(--dashboard-sidebar-collapsed-width));
}

body.sidebar-collapsed .dashboard-logo {
    justify-content: center;
}

body.sidebar-collapsed .dashboard-logo-text {
    opacity: 0;
    max-width: 0;
    margin-left: 0;
}

body.sidebar-collapsed .dashboard-sidebar-label {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-left: 0;
}

body.sidebar-collapsed .dashboard-nav-item {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

body.sidebar-collapsed .dashboard-nav-item span {
    opacity: 0;
    max-width: 0;
}

body.sidebar-collapsed .dashboard-landing-link {
    justify-content: center;
    padding-left: 0.46rem;
    padding-right: 0.46rem;
}

body.sidebar-collapsed .dashboard-landing-link span {
    opacity: 0;
    max-width: 0;
}

.dashboard-topbar {
    border: 1px solid #dce7fc;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(18, 49, 112, 0.1);
    padding: 0.86rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0.9rem;
    z-index: 40;
}

.dashboard-topbar::before {
    content: "";
    position: absolute;
    top: -1.2rem;
    left: calc(-1 * var(--dashboard-main-padding-x));
    right: calc(-1 * var(--dashboard-main-padding-x));
    height: 1.25rem;
    background: #f5f8ff;
    pointer-events: none;
    z-index: -1;
}

body.theme-dark .dashboard-topbar::before {
    background: #0b1324;
}

.dashboard-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.66rem;
    min-width: 0;
}

.dashboard-page-title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin: 0;
    color: #122a5a;
}

.dashboard-page-subtitle {
    margin-top: 0.12rem;
    color: #6077a3;
    font-size: 0.92rem;
}

.dashboard-utility-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.45rem;
    color: #6a83ad;
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard-utility-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #d7e4fb;
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    background: #f3f7ff;
    color: #5e78a6;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-utility-item i {
    color: #5474b0;
}

.dashboard-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.24rem 0.7rem;
    background: #f6f9ff;
    border: 1px solid #cdddf8;
    color: #1f5ed9;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-utility-link:hover,
.dashboard-utility-link:focus-visible {
    color: #174ab5;
    border-color: #b8cdf5;
    background: #eef4ff;
}

.dashboard-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-menu-toggle {
    border: 1px solid #d5e2fb;
    color: #1f5ed9;
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    background: #f4f8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
}

.dashboard-menu-toggle i {
    font-size: 1.2rem;
}

.dashboard-collapse-btn {
    box-shadow: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.dashboard-search {
    min-width: min(48vw, 360px);
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    border: 1px solid #d7e4fb;
    border-radius: 11px;
    padding: 0.54rem 0.7rem;
    background: #f9fbff;
}

.dashboard-search i {
    color: #6881af;
    font-size: 0.92rem;
}

.dashboard-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: #304e82;
    font-size: 0.9rem;
}

.dashboard-search input::placeholder {
    color: #8ba0c5;
}

.dashboard-profile-btn {
    border: 1px solid #d9e5fb;
    border-radius: 11px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.36rem 0.56rem;
    color: #3e5b8f;
}

.dashboard-profile-btn .bi-chevron-down {
    transition: transform 0.18s ease;
}

.dashboard-profile-btn.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.dashboard-profile-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.dashboard-profile-btn:hover,
.dashboard-profile-btn:focus-visible {
    color: #214fbb;
    border-color: #c9daf9;
    background: #f8fbff;
}

.dashboard-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dcebff;
    color: #1f5ed9;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.dashboard-user-meta {
    display: grid;
    text-align: left;
    line-height: 1.1;
}

.dashboard-user-meta strong {
    font-size: 0.81rem;
}

.dashboard-user-meta small {
    color: #7f95bb;
    font-size: 0.74rem;
}

.dashboard-profile-menu {
    border: 1px solid #d8e5fb;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.32rem;
    box-shadow: 0 14px 24px rgba(18, 49, 112, 0.14);
    min-width: 150px;
}

.dashboard-profile-menu .dropdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    color: #2f4f84;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.48rem 0.58rem;
}

.dashboard-profile-menu .dropdown-item i {
    font-size: 0.88rem;
}

.dashboard-profile-menu .dropdown-item:hover,
.dashboard-profile-menu .dropdown-item:focus-visible {
    color: #1845a5;
    background: #eef4ff;
}

.dashboard-profile-menu .dropdown-item.text-danger {
    color: #b23a4d;
}

.dashboard-profile-menu .dropdown-item.text-danger:hover,
.dashboard-profile-menu .dropdown-item.text-danger:focus-visible {
    color: #982d40;
    background: #fff1f3;
}

.dashboard-content {
    margin-top: 1rem;
}

.dashboard-stat-card {
    background: #ffffff;
    border: 1px solid #dce7fc;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 0.92rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.dashboard-stat-card.is-clickable {
    cursor: pointer;
}

.dashboard-stat-card.is-clickable:hover {
    border-color: #b7cdf8;
    box-shadow: 0 14px 26px rgba(16, 62, 147, 0.16);
    transform: translateY(-2px);
}

.dashboard-stat-card.is-clickable:focus-visible {
    outline: none;
    border-color: #aac2ee;
    box-shadow: 0 14px 26px rgba(16, 62, 147, 0.16), 0 0 0 3px rgba(39, 103, 225, 0.16);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e8f0ff;
    color: #1f5ed9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-label {
    color: #5a739f;
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
}

.dashboard-stat-card h3 {
    margin: 0;
    font-size: 1.62rem;
    color: #15315f;
}

.stat-note {
    margin-top: 0.2rem;
    color: #7890b7;
    font-size: 0.8rem;
}

.stat-trend-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 0.4rem;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    background: #eef4ff;
    color: #4e6897;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid #d6e3fb;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-overview-note {
    margin: 0.76rem 0 0;
    color: #607aa8;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-section-hint {
    margin: 0 0 0.66rem;
    color: #6d86b1;
    font-size: 0.81rem;
    font-weight: 600;
}

.dashboard-table-label {
    margin: 0 0 0.6rem;
    color: #5f78a6;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dashboard-panel-hint {
    margin: 0 0 0.68rem;
    color: #6d86b1;
    font-size: 0.79rem;
    font-weight: 600;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #dce7fc;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1rem;
}

.dashboard-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.78rem;
}

.dashboard-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #173261;
}

.dashboard-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e2ebfb;
}

.dashboard-card-link {
    color: #1f5ed9;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-card-link:hover,
.dashboard-card-link:focus-visible {
    color: #174ab5;
    text-decoration: underline;
}

.dashboard-link-muted {
    border: none;
    background: transparent;
    color: #4e6897;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0;
}

.dashboard-link-muted:hover,
.dashboard-link-muted:focus-visible {
    color: #1f5ed9;
}

.dashboard-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.62rem;
    margin-bottom: 0.82rem;
}

.dashboard-table-left-controls {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    max-width: 620px;
}

.dashboard-table-search {
    min-width: min(100%, 320px);
    flex: 1 1 260px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d7e4fb;
    border-radius: 11px;
    background: #f9fbff;
    padding: 0.46rem 0.62rem;
}

.admin-bookkeeper-toolbar-row {
    flex-wrap: nowrap;
}

.admin-bookkeeper-search {
    flex: 1 1 420px;
    max-width: 790px;
}

.admin-bookkeeper-sort {
    flex: 0 0 240px;
    width: 240px;
    min-width: 200px;
    margin-left: auto;
}

.admin-approvals-toolbar-row {
    flex-wrap: nowrap;
}

.admin-approvals-search {
    flex: 1 1 420px;
    max-width: 790px;
}

.admin-approvals-sort {
    flex: 0 0 240px;
    width: 240px;
    min-width: 200px;
}

.admin-approval-queue-card {
    min-height: 0;
}

.admin-approvals-table-wrap {
    overflow-x: auto;
    border: 1px solid #dce7fc;
    border-radius: 12px;
}

.admin-approvals-table-wrap .admin-table {
    table-layout: fixed;
    width: 100%;
    min-width: 720px;
}

.admin-approvals-table-wrap .admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-approvals-table-wrap .admin-table th,
.admin-approvals-table-wrap .admin-table td {
    padding-left: 0.48rem;
    padding-right: 0.48rem;
    vertical-align: middle;
}

.admin-approvals-table-wrap .admin-table th:nth-child(1),
.admin-approvals-table-wrap .admin-table td:nth-child(1) {
    width: 16%;
}

.admin-approvals-table-wrap .admin-table th:nth-child(2),
.admin-approvals-table-wrap .admin-table td:nth-child(2) {
    width: 32%;
}

.admin-approvals-table-wrap .admin-table th:nth-child(3),
.admin-approvals-table-wrap .admin-table td:nth-child(3) {
    width: 15%;
}

.admin-approvals-table-wrap .admin-table th:nth-child(4),
.admin-approvals-table-wrap .admin-table td:nth-child(4) {
    width: 13%;
}

.admin-approvals-table-wrap .admin-table th:nth-child(5),
.admin-approvals-table-wrap .admin-table td:nth-child(5) {
    width: 24%;
}

.admin-approvals-table-wrap .admin-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-approvals-table-wrap .admin-table td:nth-child(5) {
    overflow: visible;
    white-space: nowrap;
}

.admin-approvals-table-wrap .admin-table-actions {
    flex-wrap: nowrap;
    gap: 0.28rem;
    align-items: center;
}

.admin-approvals-table-wrap .admin-action-btn {
    padding: 0.18rem 0.46rem;
    font-size: 0.7rem;
}

.admin-approvals-table-wrap tbody tr[data-approval-id] {
    cursor: pointer;
}

.admin-approvals-table-wrap tbody tr[data-approval-id]:focus-visible td {
    background: #eef5ff;
    outline: 2px solid #8db7ff;
    outline-offset: -2px;
}

.dashboard-table-search i {
    color: #6881af;
    font-size: 0.88rem;
}

.dashboard-table-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    color: #304e82;
    font-size: 0.88rem;
    font-weight: 600;
}

.dashboard-table-search input::placeholder {
    color: #8ba0c5;
    font-weight: 500;
}

.dashboard-table-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dashboard-filter-chip {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #d7e4fb;
    border-radius: 999px;
    background: #f9fbff;
    color: #2f4f83;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.32rem 0.7rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-filter-chip:hover,
.dashboard-filter-chip:focus-visible {
    border-color: #b8cdf5;
    background: #eef4ff;
}

.dashboard-filter-chip.is-active {
    background: #1f5ed9;
    border-color: #1f5ed9;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(25, 78, 178, 0.2);
}

.dashboard-filter-chip.is-active:hover,
.dashboard-filter-chip.is-active:focus-visible {
    background: #1f5ed9;
    border-color: #1f5ed9;
    color: #ffffff;
}

.dashboard-filter-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 103, 225, 0.18);
}

.dashboard-filter-summary {
    margin: 0 0 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #607aa8;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px dashed #d8e5fb;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.32rem 0.6rem;
}

.dashboard-filter-select {
    min-width: 148px;
    width: auto;
    border: 1px solid #d7e4fb;
    border-radius: 10px;
    background-color: #f9fbff;
    color: #2f4f83;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.46rem 2rem 0.46rem 0.62rem;
    box-shadow: none;
}

.dashboard-filter-select:focus {
    border-color: #aac2ee;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.12);
}

.dashboard-table tbody.is-filtering {
    opacity: 0.58;
}

.dashboard-client-row {
    cursor: pointer;
}

.dashboard-table tbody tr.dashboard-client-row:hover td {
    background-color: #edf4ff;
}

.dashboard-table tbody tr.dashboard-client-row:focus-visible {
    outline: 2px solid #9fbcf5;
    outline-offset: -2px;
}

.dashboard-table-empty {
    margin: 0.8rem 0 0;
    text-align: center;
    border: 1px dashed #d8e5fb;
    border-radius: 10px;
    background: #f8fbff;
    color: #6f86b0;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.64rem 0.5rem;
}

.dashboard-data-empty {
    margin-top: 0.88rem;
    border: 1px dashed #d6e3fb;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.95rem 0.86rem;
    text-align: center;
}

.dashboard-data-empty p {
    color: #6880ad;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.66rem;
}

.dashboard-empty-actions {
    display: flex;
    gap: 0.46rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dashboard-empty-actions .dashboard-action-btn {
    width: auto;
    min-width: 140px;
}

.client-preview-modal .modal-content {
    border: 1px solid #dce7fc;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(17, 52, 123, 0.18);
}

.client-preview-modal .modal-header {
    border-bottom: 1px solid #e5edf9;
    padding: 0.88rem 1rem;
}

.client-preview-modal .modal-title {
    color: #173261;
    font-size: 1.02rem;
    font-weight: 800;
}

.client-preview-modal .modal-body {
    padding: 0.9rem 1rem 1rem;
}

.client-modal-grid {
    display: grid;
    gap: 0.56rem;
    margin: 0;
}

.client-modal-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.72rem;
}

.client-modal-field dt {
    color: #6983b1;
    font-size: 0.8rem;
    font-weight: 700;
}

.client-modal-field dd {
    margin: 0;
    color: #1e3f75;
    font-size: 0.89rem;
    font-weight: 700;
    text-align: right;
}

.client-modal-badges {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.client-modal-note {
    margin-top: 0.84rem;
    color: #7188b3;
    font-size: 0.82rem;
    font-weight: 600;
}

.clients-action-card {
    padding: 0.86rem;
}

.clients-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.68rem;
    flex-wrap: wrap;
}

.clients-page-search {
    margin: 0;
    min-width: min(100%, 360px);
}

.clients-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding-left: 0.84rem;
    padding-right: 0.84rem;
}

.dashboard-guidance-text {
    margin: 0.64rem 0 0;
    color: #607aa8;
    font-size: 0.8rem;
    font-weight: 600;
}

.clients-remarks-preview-note {
    color: #1f4fa8;
}

.clients-directory-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: #f1f4fa;
    border-radius: 10px;
    width: fit-content;
}

body.theme-dark .clients-directory-tabs {
    background-color: #17243c;
}

.directory-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5c78;
    background: transparent;
    transition: all 0.2s ease-in-out;
}

body.theme-dark .directory-tab-btn {
    color: #a0aec0;
}

.directory-tab-btn:hover {
    color: #1f5ed9;
    background-color: rgba(31, 94, 217, 0.05);
}

body.theme-dark .directory-tab-btn:hover {
    color: #5390f5;
    background-color: rgba(83, 144, 245, 0.05);
}

.directory-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1f5ed9 0%, #184db9 100%);
    box-shadow: 0 4px 10px rgba(31, 94, 217, 0.2);
}

body.theme-dark .directory-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%);
    box-shadow: 0 4px 10px rgba(43, 108, 176, 0.3);
}

.clients-table tbody.is-filtering {
    opacity: 0.6;
}

.clients-row {
    cursor: pointer;
}

.clients-table tbody tr.clients-row:hover td {
    background-color: #edf4ff;
}

.clients-table tbody tr.clients-row:focus-visible {
    outline: 2px solid #9fbcf5;
    outline-offset: -2px;
}

.clients-actions-cell {
    min-width: 355px;
}

#clientsTable .clients-actions-cell {
    width: 100px;
    min-width: 100px !important;
    text-align: right;
    padding-right: 1.5rem !important;
    white-space: nowrap !important;
}

#clientsTable .clients-actions-cell .dropdown {
    display: inline-flex;
}

#financialClientsTable .clients-actions-cell {
    width: 220px;
    min-width: 220px !important;
    text-align: right;
    padding-right: 1.5rem !important;
    white-space: nowrap !important;
}

#financialClientsTable .clients-actions-cell .clients-actions {
    display: inline-flex;
}


.client-name-cell,
.client-trade-cell {
    white-space: nowrap !important;
}

.client-tin-cell {
    white-space: nowrap !important;
}

.clients-actions {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    flex-wrap: wrap;
}

.client-action-btn {
    border: 1px solid #d4e3fb;
    border-radius: 9px;
    background: #f9fbff;
    color: #2f4f83;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.33rem 0.52rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.client-action-btn i {
    font-size: 0.86rem;
}

.client-action-btn:hover,
.client-action-btn:focus-visible {
    color: #1f4fa8;
    border-color: #b9cdf6;
    background: #f2f7ff;
}

.client-action-btn.delete {
    color: #a93a3a;
    border-color: #f0d1d1;
    background: #fff6f6;
}

.client-action-btn.delete:hover,
.client-action-btn.delete:focus-visible {
    color: #8c2020;
    border-color: #e3b5b5;
    background: #ffecec;
}

.client-menu-toggle-btn {
    border: 1px solid #d4e3fb;
    border-radius: 9px;
    background: #f9fbff;
    color: #2f4f83;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.client-menu-toggle-btn:hover,
.client-menu-toggle-btn:focus-visible {
    color: #1f4fa8;
    border-color: #b9cdf6;
    background: #f2f7ff;
}

body.theme-dark .client-menu-toggle-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #9eb0d3;
}

body.theme-dark .client-menu-toggle-btn:hover,
body.theme-dark .client-menu-toggle-btn:focus-visible {
    color: #8bb3ff;
    border-color: #3a5490;
    background: #142442;
}

.clients-actions-menu {
    border: 1px solid #dce7fc;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.35rem;
    box-shadow: 0 14px 28px rgba(18, 49, 112, 0.12);
    min-width: 220px;
}

.clients-actions-menu .dropdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    color: #2f4f84;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.52rem 0.64rem;
    transition: background-color 0.18s ease, color 0.18s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.clients-actions-menu .dropdown-item i {
    font-size: 0.94rem;
    color: #4a6fa5;
    transition: color 0.18s ease;
}

.clients-actions-menu .dropdown-item:hover,
.clients-actions-menu .dropdown-item:focus-visible {
    color: #1845a5;
    background: #eef4ff;
}

.clients-actions-menu .dropdown-item:hover i,
.clients-actions-menu .dropdown-item:focus-visible i {
    color: #1845a5;
}

.clients-actions-menu .dropdown-item.text-danger {
    color: #a93a3a;
}

.clients-actions-menu .dropdown-item.text-danger i {
    color: #c45b5b;
}

.clients-actions-menu .dropdown-item.text-danger:hover,
.clients-actions-menu .dropdown-item.text-danger:focus-visible {
    color: #912b2b;
    background: #fff1f3;
}

.clients-actions-menu .dropdown-item.text-danger:hover i,
.clients-actions-menu .dropdown-item.text-danger:focus-visible i {
    color: #912b2b;
}

body.theme-dark .clients-actions-menu {
    border-color: #25344f;
    background: #101a2c;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

body.theme-dark .clients-actions-menu .dropdown-item {
    color: #d0def3;
}

body.theme-dark .clients-actions-menu .dropdown-item i {
    color: #8fa0bd;
}

body.theme-dark .clients-actions-menu .dropdown-item:hover,
body.theme-dark .clients-actions-menu .dropdown-item:focus-visible {
    color: #8bb3ff;
    background: #192a4a;
}

body.theme-dark .clients-actions-menu .dropdown-item:hover i,
body.theme-dark .clients-actions-menu .dropdown-item:focus-visible i {
    color: #8bb3ff;
}

body.theme-dark .clients-actions-menu .dropdown-item.text-danger {
    color: #ff8d8d;
}

body.theme-dark .clients-actions-menu .dropdown-item.text-danger i {
    color: #ff8d8d;
}

body.theme-dark .clients-actions-menu .dropdown-item.text-danger:hover,
body.theme-dark .clients-actions-menu .dropdown-item.text-danger:focus-visible {
    color: #ffb3b3;
    background: #2a151b;
}

body.theme-dark .clients-actions-menu .dropdown-item.text-danger:hover i,
body.theme-dark .clients-actions-menu .dropdown-item.text-danger:focus-visible i {
    color: #ffb3b3;
}

.client-action-btn.add-record {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(145deg, #1f5ed9, #184db9);
}

.client-action-btn.add-record:hover,
.client-action-btn.add-record:focus-visible {
    color: #ffffff;
    background: linear-gradient(145deg, #184db9, #133f99);
}

.client-action-btn.primary {
    color: #ffffff !important;
    border-color: transparent !important;
    background: linear-gradient(145deg, #1f5ed9, #184db9) !important;
}

.client-action-btn.primary i {
    color: #ffffff !important;
}

.client-action-btn.primary:hover,
.client-action-btn.primary:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(145deg, #184db9, #133f99) !important;
}

.client-action-btn.primary:hover i,
.client-action-btn.primary:focus-visible i {
    color: #ffffff !important;
}


.clients-empty-state {
    margin-top: 0.88rem;
    border: 1px dashed #d6e3fb;
    border-radius: 12px;
    background: #f8fbff;
    padding: 1rem 0.9rem;
    text-align: center;
}

.clients-empty-state p {
    color: #6880ad;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.72rem;
}

.client-manage-modal .modal-content {
    border: 1px solid #dce7fc;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(17, 52, 123, 0.18);
}

.client-manage-modal .modal-header {
    border-bottom: 1px solid #e5edf9;
    padding: 0.88rem 1rem;
}

.client-manage-modal .modal-title {
    color: #173261;
    font-size: 1.02rem;
    font-weight: 800;
}

.client-manage-modal .modal-body {
    padding: 0.9rem 1rem 1rem;
}

body.dashboard-page .modal-backdrop {
    z-index: 1300;
}

body.dashboard-page .modal {
    z-index: 1305;
}


.client-form-label {
    color: #304b7b;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.client-form-input {
    background: #fbfdff;
    border: 1px solid #c6d8fd;
    border-radius: 11px;
    color: #15315f;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.66rem 0.82rem;
}

.client-select-wrap {
    position: relative;
}

.client-select-input {
    appearance: none;
    padding-right: 2.4rem;
    background-image: none;
}

.client-select-icon {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    color: #6f86b6;
    font-size: 0.9rem;
    pointer-events: none;
}

.client-password-field {
    position: relative;
}

.client-password-input {
    padding-right: 2.6rem;
}

.client-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b82af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.client-password-toggle:hover,
.client-password-toggle:focus-visible {
    background: #eaf1ff;
    color: #2b56ad;
}

.client-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.14);
}

.client-form-input:focus {
    border-color: #2c68e1;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.16);
}

.client-custom-fields-block {
    border-top: 1px dashed #d9e5fb;
    padding-top: 0.5rem;
    margin-top: 0.3rem;
}

.client-custom-fields-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    text-align: center;
}

.client-custom-fields-title {
    color: #5f79a8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-custom-add-btn {
    border: 1px dashed #c6d8fd;
    border-radius: 999px;
    background: #f6f9ff;
    color: #1f5ed9;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.32rem 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.client-custom-add-btn:hover,
.client-custom-add-btn:focus-visible {
    background: #eef4ff;
    border-color: #b3c9f6;
    color: #1a4fc4;
}

.client-custom-label-input {
    width: 100%;
    border: 1px dashed #c6d8fd;
    border-radius: 10px;
    background: #f8fbff;
    color: #2f4f86;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.32rem 0.55rem;
    margin-bottom: 0.4rem;
}

.client-custom-type-wrap {
    margin-bottom: 0.4rem;
}

.client-custom-value-wrap {
    position: relative;
}

.client-custom-label-input:focus {
    outline: none;
    border-color: #2c68e1;
    box-shadow: 0 0 0 0.16rem rgba(39, 103, 225, 0.14);
    background: #ffffff;
}

.client-details-grid {
    display: grid;
    gap: 0.56rem;
}

.client-details-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.72rem;
}

.client-details-key {
    color: #6983b1;
    font-size: 0.8rem;
    font-weight: 700;
}

.client-details-row strong {
    color: #1e3f75;
    font-size: 0.89rem;
    font-weight: 700;
    text-align: right;
}

.client-details-note {
    margin-top: 0.8rem;
    color: #7188b3;
    font-size: 0.82rem;
    font-weight: 600;
}

.client-details-custom {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dbe6fb;
}

.client-details-custom-title {
    color: #6d83ab;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.client-details-custom-list {
    display: grid;
    gap: 0.5rem;
}

.client-details-actions {
    gap: 0.42rem;
}

.client-delete-modal {
    border: 1px solid #dce7fc;
    border-radius: 16px;
}

.clients-delete-text {
    color: #3f5787;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.clients-delete-name {
    color: #173261;
    font-size: 0.94rem;
    font-weight: 800;
    margin: 0;
}

.financial-context-card {
    padding: 1rem;
}

.financial-client-strip {
    display: grid;
    gap: 0.82rem;
}

.financial-context-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.72rem;
}

.financial-client-heading {
    flex: 1 1 320px;
    min-width: 0;
}

.financial-context-title {
    margin: 0;
    color: #102b5b;
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.financial-context-card .financial-back-btn {
    min-width: auto;
}

.financial-context-card .financial-back-btn span {
    line-height: 1;
}

.financial-context-title,
.financial-client-heading .financial-context-label {
    text-align: left;
}

.financial-context-title {
    color: #173261;
}

.financial-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    margin-bottom: 0.42rem;
    color: #6a83ae;
    font-size: 0.78rem;
    font-weight: 700;
}

.financial-breadcrumb a {
    color: #2e5bbd;
    text-decoration: none;
}

.financial-breadcrumb a:hover,
.financial-breadcrumb a:focus-visible {
    color: #1d49a1;
    text-decoration: underline;
}

.financial-breadcrumb i {
    color: #8ba0c5;
    font-size: 0.68rem;
}

.financial-breadcrumb span {
    color: #4a6593;
}

.financial-context-subtitle {
    margin-top: 0.16rem;
    color: #6d86b1;
    font-size: 0.82rem;
    font-weight: 600;
}

.financial-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.financial-context-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.financial-context-item {
    border: 1px solid #e1e9fb;
    border-radius: 10px;
    background: #fbfdff;
    padding: 0.6rem 0.68rem;
}

.financial-context-label {
    display: block;
    color: #6f86b0;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.16rem;
}

.financial-context-item strong {
    color: #1f3d71;
    font-size: 0.88rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.financial-action-bar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.financial-period-select-wrap {
    display: grid;
    gap: 0.32rem;
    min-width: 240px;
}

.financial-period-label {
    display: inline-block;
    color: #5e79a8;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.financial-period-select {
    border: 1px solid #d7e4fb;
    border-radius: 10px;
    background-color: #f9fbff;
    color: #2f4f83;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.48rem 2rem 0.48rem 0.62rem;
    box-shadow: none;
}

.financial-period-select:focus {
    border-color: #aac2ee;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.12);
}

.financial-add-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 100%;
    min-width: 180px;
}

.financial-client-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 100%;
}

.financial-records-hint {
    margin: 0 0 0.74rem;
    color: #6982ad;
    font-size: 0.82rem;
    font-weight: 600;
}

.financial-table tbody.is-filtering {
    opacity: 0.6;
}

.financial-entry-row {
    cursor: pointer;
}

.financial-table tbody tr.financial-entry-row:hover td {
    background-color: #edf4ff;
}

.financial-table tbody tr.financial-entry-row:focus-visible {
    outline: 2px solid #9fbcf5;
    outline-offset: -2px;
}

.financial-entry-actions-cell {
    min-width: 270px;
}

.financial-entry-actions {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.financial-line-item-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    background: #eef4ff;
    color: #2a5bbf;
    font-size: 0.74rem;
    font-weight: 800;
}

.financial-entry-btn {
    border: 1px solid #d4e3fb;
    border-radius: 9px;
    background: #f9fbff;
    color: #2f4f83;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.32rem 0.54rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.financial-entry-btn i {
    font-size: 0.84rem;
}

.financial-entry-btn:hover,
.financial-entry-btn:focus-visible {
    color: #1f4fa8;
    border-color: #b9cdf6;
    background: #f2f7ff;
}

.financial-entry-btn.toggle {
    color: #2459be;
    background: #edf4ff;
    border-color: #cfe0ff;
}

.financial-entry-btn.toggle:hover,
.financial-entry-btn.toggle:focus-visible {
    color: #174698;
    border-color: #b9cff6;
    background: #e5efff;
}

.financial-entry-btn.delete {
    color: #a93a3a;
    border-color: #f0d1d1;
    background: #fff6f6;
}

.financial-entry-btn.delete:hover,
.financial-entry-btn.delete:focus-visible {
    color: #8c2020;
    border-color: #e3b5b5;
    background: #ffecec;
}

.financial-entry-details-row td {
    padding: 0 !important;
    border-top: none;
}

.financial-entry-details-shell {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0.88rem;
    background: #f8fbff;
    border-left: 3px solid #d5e4ff;
    transition: max-height 0.28s ease, opacity 0.24s ease, padding 0.24s ease;
}

.financial-entry-details-shell.is-open {
    max-height: 480px;
    opacity: 1;
    padding: 0.76rem 0.88rem 0.86rem;
}

.financial-entry-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.financial-entry-details-head h3 {
    margin: 0;
    color: #214071;
    font-size: 0.88rem;
    font-weight: 800;
}

.financial-line-items-preview-table {
    border: 1px solid #dfe9fc;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.financial-line-items-preview-table thead th {
    color: #2f4f83;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #f4f8ff;
    border-bottom: 1px solid #dfebff;
    padding: 0.5rem 0.56rem;
}

.financial-line-items-preview-table td {
    color: #2d4f82;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.56rem;
    border-color: #edf3ff;
}

.financial-entry-no-items {
    margin: 0;
    color: #7086b0;
    font-size: 0.82rem;
    font-weight: 700;
}

.financial-entry-notes {
    margin: 0.58rem 0 0;
    color: #355887;
    font-size: 0.8rem;
    font-weight: 600;
}

.financial-entry-notes span {
    color: #1f4379;
    font-weight: 800;
}

.financial-line-items-section {
    margin-top: 1rem;
    border: 1px solid #dfe9fc;
    border-radius: 14px;
    background: #fbfdff;
    padding: 0.8rem;
}

.financial-line-items-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.58rem;
}

.financial-line-items-title {
    margin: 0;
    color: #1e3d71;
    font-size: 0.96rem;
    font-weight: 800;
}

.financial-line-items-help {
    margin: 0.22rem 0 0;
    color: #6982ad;
    font-size: 0.78rem;
    font-weight: 600;
}

.financial-line-items-table-wrap {
    border: 1px solid #dce8fd;
    border-radius: 11px;
    overflow: hidden;
    background: #ffffff;
}

.financial-line-items-table {
    margin: 0;
}

.financial-line-items-table thead th {
    color: #2f4f83;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #f2f7ff;
    border-bottom: 1px solid #ddeaff;
    padding: 0.52rem 0.58rem;
}

.financial-line-items-table td {
    border-color: #edf3ff;
    padding: 0.52rem 0.58rem;
    vertical-align: middle;
}

.financial-line-item-row {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.financial-line-item-row.is-entering {
    opacity: 0;
    transform: translateY(5px);
}

.financial-line-item-row.is-removing {
    opacity: 0;
    transform: translateY(-5px);
}

.financial-line-code-input,
.financial-line-description-input,
.financial-line-amount-input {
    font-size: 0.84rem;
    padding: 0.54rem 0.64rem;
}

.financial-line-amount-wrap {
    display: grid;
    gap: 0.3rem;
    align-items: start;
}

.financial-line-remove-btn {
    border: 1px solid #e7c3c3;
    border-radius: 9px;
    background: #fff4f4;
    color: #983636;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.financial-line-remove-btn:hover,
.financial-line-remove-btn:focus-visible {
    color: #7d2222;
    border-color: #dbacac;
    background: #ffeaea;
}

.financial-line-remove-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.financial-add-line-item-btn {
    margin-top: 0.66rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: auto;
}

.financial-empty-state {
    margin-top: 0.86rem;
    border: 1px dashed #d6e3fb;
    border-radius: 12px;
    background: #f8fbff;
    padding: 1rem 0.9rem;
    text-align: center;
}

.financial-empty-state p {
    color: #6880ad;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.72rem;
}

.financial-summary-grid {
    display: grid;
    gap: 0.62rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
}

.financial-summary-item {
    border: 1px solid #e1e9fb;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0.72rem;
}

.financial-summary-item p {
    color: #6b85b0;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.22rem;
}

.financial-summary-item h3 {
    margin: 0;
    color: #173261;
    font-size: 1.05rem;
}

.financial-summary-item-total h3 {
    font-size: 1.18rem;
}

.financial-summary-item-total small {
    display: inline-block;
    margin-top: 0.24rem;
    color: #6d86b2;
    font-size: 0.77rem;
    font-weight: 700;
}

.financial-breakdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.38rem;
}

.financial-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid #e3ecff;
    border-radius: 9px;
    background: #f8fbff;
    padding: 0.42rem 0.52rem;
}

.financial-breakdown-item span {
    color: #335684;
    font-size: 0.78rem;
    font-weight: 700;
}

.financial-breakdown-item strong {
    color: #1f4378;
    font-size: 0.8rem;
    font-weight: 800;
}

.financial-breakdown-empty {
    margin: 0.48rem 0 0;
    color: #7187b1;
    font-size: 0.78rem;
    font-weight: 700;
}

.financial-manage-modal .modal-content {
    border: 1px solid #dce7fc;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(17, 52, 123, 0.18);
}

.financial-manage-modal .modal-header {
    border-bottom: 1px solid #e5edf9;
    padding: 0.88rem 1rem;
}

.financial-manage-modal .modal-title {
    color: #173261;
    font-size: 1.08rem;
    font-weight: 800;
}

.financial-manage-modal .modal-body {
    padding: 0.9rem 1rem 1rem;
}

.financial-form-label {
    color: #304b7b;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.financial-form-input {
    background-color: #fbfdff;
    border: 1px solid #c6d8fd;
    border-radius: 11px;
    color: #15315f;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.66rem 0.82rem;
}

select.financial-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23304b7b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem !important;
}

.financial-form-input:focus {
    border-color: #2c68e1;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 225, 0.16);
}

.financial-line-code-wrapper {
    position: relative;
    width: 100%;
}

.financial-line-code-custom-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.financial-line-code-custom-wrapper .financial-line-code-custom-input {
    flex: 1;
    min-width: 0;
}

.financial-line-code-cancel-btn {
    border: 1px solid #caddff;
    border-radius: 9px;
    background: #f7faff;
    color: #1f5ed9;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.financial-line-code-cancel-btn:hover,
.financial-line-code-cancel-btn:focus-visible {
    color: #163f96;
    border-color: #aecaef;
    background: #f1f6ff;
}

.financial-reuse-panel {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    border: 1px dashed #cfe0ff;
    background: #f6f9ff;
}

.financial-reuse-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: #e9f2ff;
    color: #2d5ec5;
    border: 1px solid #cfe0ff;
}

.financial-reuse-title {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #173261;
}

.financial-reuse-copy {
    margin: 0;
    color: #6a82ae;
    font-size: 0.76rem;
    font-weight: 600;
}

.financial-reuse-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    color: #5b73a1;
    font-size: 0.74rem;
    font-weight: 700;
}

.financial-reuse-meta i {
    margin-right: 0.3rem;
    color: #3b66c6;
}

.financial-reuse-btn {
    white-space: nowrap;
}

.financial-reuse-panel .dashboard-action-btn.outline.financial-reuse-btn {
    border-color: #b7cdf5;
    background: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 100%);
    color: #1f5ed9;
    box-shadow: 0 10px 18px rgba(31, 94, 217, 0.16);
}

.financial-reuse-panel .dashboard-action-btn.outline.financial-reuse-btn:hover,
.financial-reuse-panel .dashboard-action-btn.outline.financial-reuse-btn:focus-visible {
    border-color: #9fb8f0;
    background: #dfeaff;
    color: #174ab5;
}

.financial-reuse-hint {
    margin: 0.45rem 0 0;
    color: #6a82ae;
    font-size: 0.72rem;
    font-weight: 700;
}

.financial-delete-modal {
    border: 1px solid #dce7fc;
    border-radius: 16px;
}

.financial-delete-text {
    color: #3f5787;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.financial-delete-period {
    color: #173261;
    font-size: 0.94rem;
    font-weight: 800;
    margin: 0;
}

.safebooks-toast-container {
    z-index: 9999 !important;
    max-width: 100%;
    pointer-events: none;
    padding: 1rem 1.25rem 1.65rem !important;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.safebooks-toast-container:not(:empty) { pointer-events: auto; }

.safebooks-toast {
    position: relative;
    overflow: hidden;
    width: min(24rem, calc(100vw - 2rem));
    max-width: 100%;
    pointer-events: auto;
    border: 1px solid #d5e4ff;
    border-inline-start: 4px solid #2463d8;
    border-radius: 10px;
    background: #f5f9ff;
    color: #1f3f74;
    --safebooks-toast-duration: 2800ms;
    --bs-toast-box-shadow: 0 8px 16px -4px rgba(19, 49, 112, 0.14), 0 3px 6px -2px rgba(19, 49, 112, 0.09);
    box-shadow: 0 8px 16px -4px rgba(19, 49, 112, 0.14), 0 3px 6px -2px rgba(19, 49, 112, 0.09);
    overflow-wrap: anywhere;
    animation: safebooks-toast-enter 180ms ease-out;
}

.safebooks-toast::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #2463d8;
    opacity: 0.82;
    transform-origin: left center;
    animation: safebooks-toast-progress var(--safebooks-toast-duration, 2800ms) linear forwards;
    pointer-events: none;
}

@keyframes safebooks-toast-enter {
    from { transform: translateY(-0.35rem); }
    to { transform: translateY(0); }
}

@keyframes safebooks-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .safebooks-toast {
        animation: none;
        transition: none;
    }

    .safebooks-toast::after {
        animation: none;
    }
}

.safebooks-toast.success {
    border-color: #bce5ce;
    border-inline-start-color: #1a7c50;
    background: #edfbf3;
    color: #195c3a;
}

.safebooks-toast.success::after,
.safebooks-toast.safebooks-toast-welcome::after {
    background: #1a7c50;
}

.safebooks-toast.warning {
    border-color: #f0d69f;
    border-inline-start-color: #ad6400;
    background: #fff8e8;
    color: #775000;
}

.safebooks-toast.warning::after {
    background: #ad6400;
}

.safebooks-toast.danger {
    border-color: #f1c2c2;
    border-inline-start-color: #bd3232;
    background: #fff1f1;
    color: #922828;
}

.safebooks-toast.danger::after {
    background: #bd3232;
}

.safebooks-toast .toast-body {
    padding-bottom: 0.82rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.safebooks-toast.safebooks-toast-welcome {
    border-color: #c3ead4;
    border-inline-start-color: #1a7c50;
    background: #edfbf3;
    color: #1f6b42;
}

.dashboard-tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.26rem 0.55rem;
    background: #edf3ff;
    color: #2d5ec5;
    font-size: 0.73rem;
    font-weight: 800;
}

.dashboard-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #eef4ff;
}

.dashboard-table th {
    color: #526b99;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    border-bottom-color: #dbe6fa;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

.dashboard-table td {
    color: #2f4f83;
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom-color: #e6eefc;
    padding-top: 0.66rem;
    padding-bottom: 0.66rem;
}

.dashboard-table .dashboard-table-summary th {
    background: #f5f9ff;
    color: #6a83ad;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-bottom-color: #dbe6fa;
    border-top: 1px solid #dbe6fa;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
}

.dashboard-trend-chart {
    border: 1px solid #dbe6fa;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    padding: 0.8rem 0.7rem;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.trend-grid-line {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    height: 1px;
    background: #e4ebfb;
}

.trend-grid-line:nth-child(1) {
    top: 24%;
}

.trend-grid-line:nth-child(2) {
    top: 44%;
}

.trend-grid-line:nth-child(3) {
    top: 64%;
}

.trend-grid-line:nth-child(4) {
    top: 84%;
}

.trend-bars {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.7rem;
    height: 74%;
    display: flex;
    align-items: end;
    gap: 0.45rem;
}

.trend-bar {
    flex: 1;
    border-radius: 7px 7px 4px 4px;
    background: linear-gradient(180deg, #8fb2ff 0%, #2f67e1 100%);
}

.trend-bar.h-52 {
    height: 52%;
}

.trend-bar.h-58 {
    height: 58%;
}

.trend-bar.h-61 {
    height: 61%;
}

.trend-bar.h-67 {
    height: 67%;
}

.trend-bar.h-68 {
    height: 68%;
}

.trend-bar.h-74 {
    height: 74%;
}

.trend-bar.h-80 {
    height: 80%;
}

.trend-bar.h-89 {
    height: 89%;
}

.insight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.56rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #e0e9fb;
    border-radius: 11px;
    padding: 0.62rem 0.68rem;
    background: #fbfdff;
}

.insight-item .insight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7ea5f6;
    flex-shrink: 0;
}

.insight-item strong {
    display: block;
    color: #1f3d71;
    font-size: 0.9rem;
}

.insight-item small {
    color: #6f86b0;
    font-size: 0.77rem;
}

.insight-value {
    margin-left: auto;
    color: #1f4fa8;
    font-weight: 800;
}

.risk-low-item .insight-dot,
.remark-new-item .insight-dot {
    background: #2a78d8;
}

.remark-active-item .insight-dot {
    background: #1e7f53;
}

.risk-medium-item .insight-dot,
.remark-separated-item .insight-dot {
    background: #d58a26;
}

.risk-high-item .insight-dot,
.remark-closed-item .insight-dot {
    background: #d34c4c;
}

.compliance-meters {
    display: grid;
    gap: 0.78rem;
}

.compliance-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #375787;
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
}

.compliance-meta > div {
    display: grid;
    gap: 0.08rem;
}

.compliance-meta small {
    color: #6f86b0;
    font-size: 0.74rem;
    font-weight: 600;
}

.compliance-meta strong {
    color: #183f85;
}

.compliance-meters .progress {
    height: 8px;
    background: #e9f0fc;
    border-radius: 999px;
}

.compliance-meters .progress-bar.filed {
    background: linear-gradient(90deg, #2b75d3, #4f97ff);
}

.compliance-meters .progress-bar.pending {
    background: linear-gradient(90deg, #d88c29, #f0b456);
}

.compliance-meters .progress-bar.late {
    background: linear-gradient(90deg, #d55353, #ef8585);
}

.dashboard-actions {
    display: grid;
    gap: 0.58rem;
}

.dashboard-actions .dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-action-btn {
    width: 100%;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    padding: 0.62rem 0.95rem;
}

.dashboard-action-btn.primary {
    color: #ffffff;
    background: linear-gradient(145deg, #1f5ed9, #184db9);
}

.dashboard-action-btn.primary:hover,
.dashboard-action-btn.primary:focus-visible {
    color: #ffffff;
    background: linear-gradient(145deg, #184db9, #133f99);
}

.dashboard-action-btn.outline {
    color: #1f5ed9;
    border-color: #caddff;
    background: #f7faff;
}

.dashboard-action-btn.outline:hover,
.dashboard-action-btn.outline:focus-visible {
    color: #163f96;
    border-color: #aecaef;
    background: #f1f6ff;
}

.dashboard-action-btn.reject {
    background: #fff1f3;
    border-color: #f7b5c1;
    color: #b23a4d;
}

.dashboard-action-btn.reject:hover,
.dashboard-action-btn.reject:focus-visible {
    background: #ffe2e7;
    border-color: #f191a3;
    color: #8c2637;
}

.dashboard-action-btn.deactivate {
    background: #fff0dc;
    border-color: #f0b456;
    color: #a46200;
}

.dashboard-action-btn.deactivate:hover,
.dashboard-action-btn.deactivate:focus-visible {
    background: #ffe6c2;
    border-color: #df9e38;
    color: #7d4a00;
}

.recent-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.68rem;
}

.recent-activity-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.72rem 0.75rem;
    border: 1px solid #e1e9fb;
    border-radius: 11px;
    background: #fbfdff;
}

.recent-activity-list p {
    color: #2e4b7a;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.recent-activity-list small {
    color: #7188b3;
    font-size: 0.77rem;
}

.activity-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: #e7f0ff;
    color: #1f5ed9;
    flex-shrink: 0;
}

.activity-pill.warning {
    background: #fff0dc;
    color: #a46200;
}

.dashboard-backdrop {
    border: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 31, 69, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1150;
}

body.dashboard-page.admin-console {
    --dashboard-sidebar-width: 264px;
    --dashboard-sidebar-collapsed-width: 88px;
    --admin-accent: #1d4ed8;
    --admin-accent-soft: #e8f1ff;
    background: linear-gradient(165deg, #f5f8ff 0%, #eef3ff 56%, #f7fbff 100%);
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: #122a5a;
}

body.dashboard-page.admin-console .dashboard-layout {
    background: transparent;
}

body.dashboard-page.admin-console .dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid #dbe6fb;
}

body.dashboard-page.admin-console .dashboard-logo,
body.dashboard-page.admin-console .dashboard-logo-text {
    color: var(--admin-accent);
}

body.dashboard-page.admin-console .dashboard-sidebar-label {
    color: #7d8fb3;
}

body.dashboard-page.admin-console .dashboard-nav-item {
    color: #3f5787;
}

body.dashboard-page.admin-console .dashboard-nav-item.active {
    color: var(--admin-accent);
    background: var(--admin-accent-soft);
    box-shadow: inset 0 0 0 1px #d2e1ff;
}

body.dashboard-page.admin-console .dashboard-nav-item:hover,
body.dashboard-page.admin-console .dashboard-nav-item:focus-visible {
    color: var(--admin-accent);
    background: #f0f5ff;
}

body.dashboard-page.admin-console .dashboard-landing-link {
    color: #4c6799;
}

body.dashboard-page.admin-console .dashboard-landing-link:hover,
body.dashboard-page.admin-console .dashboard-landing-link:focus-visible {
    color: var(--admin-accent);
    background: #eef4ff;
}

body.dashboard-page.admin-console .dashboard-topbar {
    background: #ffffff;
    border: 1px solid #dce7fc;
    box-shadow: 0 10px 26px rgba(18, 49, 112, 0.1);
}

body.dashboard-page.admin-console .dashboard-page-title,
body.dashboard-page.admin-console .dashboard-card-head h2,
body.dashboard-page.admin-console h2,
body.dashboard-page.admin-console h3 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body.dashboard-page.admin-console .dashboard-page-title {
    color: #122a5a;
}

body.dashboard-page.admin-console .dashboard-page-subtitle,
body.dashboard-page.admin-console .dashboard-section-hint,
body.dashboard-page.admin-console .dashboard-panel-hint {
    color: #6077a3;
}

body.dashboard-page.admin-console .admin-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a83ad;
    font-weight: 800;
}

body.dashboard-page.admin-console .admin-utility-strip {
    margin-top: 0.45rem;
}

body.dashboard-page.admin-console .admin-utility-chip {
    background: #f3f7ff;
    border-color: #d7e4fb;
    color: #4f6ea6;
    white-space: normal;
    line-height: 1.2;
}

body.dashboard-page.admin-console .admin-utility-chip i {
    color: var(--admin-accent);
}

body.dashboard-page.admin-console .dashboard-profile-btn {
    background: #ffffff;
    border-color: #d9e5fb;
}

body.dashboard-page.admin-console .dashboard-profile-btn:hover,
body.dashboard-page.admin-console .dashboard-profile-btn:focus-visible {
    background: #f8fbff;
    border-color: #c9daf9;
}

body.dashboard-page.admin-console .dashboard-avatar {
    background: #dcebff;
    color: #1f5ed9;
}

body.dashboard-page.admin-console .dashboard-card {
    border-color: #dce7fc;
    box-shadow: var(--shadow-card);
}

body.dashboard-page.admin-console .admin-card {
    padding: 1rem;
}

body.dashboard-page.admin-console .admin-kpi-card {
    padding: 0.92rem;
}

body.dashboard-page.admin-console .admin-kpi-card h3 {
    font-size: 1.6rem;
}

body.dashboard-page.admin-console .admin-action-summary .admin-kpi-card {
    min-height: 118px;
}

body.dashboard-page.admin-console .stat-icon {
    background: #e8f0ff;
    color: #1f5ed9;
}

body.dashboard-page.admin-console .dashboard-link-muted {
    color: #4e6897;
}

body.dashboard-page.admin-console .dashboard-link-muted:hover,
body.dashboard-page.admin-console .dashboard-link-muted:focus-visible {
    color: #1f5ed9;
}

.admin-card-tag {
    border-radius: 999px;
    background: #e8f1ff;
    color: #1f5ed9;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border: 1px solid #d2e1ff;
}

.admin-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.admin-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #1f3d71;
    font-weight: 700;
}

.admin-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.admin-status-chip.pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.admin-status-chip.approved {
    background: #ccfbf1;
    color: #0f766e;
    border-color: #5eead4;
}

.admin-status-chip.rejected {
    background: #fff1f3;
    color: #b91c1c;
    border-color: #f7b5c1;
}

.admin-status-chip.suspended {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.admin-status-chip.inactive {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.admin-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 0.72rem;
}

.admin-review-panel,
.admin-quick-actions-panel {
    align-self: start;
}

.admin-review-panel .dashboard-card-head,
.admin-quick-actions-panel .dashboard-card-head {
    margin-bottom: 0.78rem;
}

.admin-review-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    min-height: 86px;
    border: 1px solid #dce7fc;
    border-radius: 14px;
    background: #f8fbff;
    color: #1f3d71;
    padding: 0.82rem;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-review-card:hover,
.admin-review-card:focus-visible {
    border-color: #b8cdf5;
    box-shadow: 0 12px 24px rgba(32, 83, 177, 0.12);
    color: #173261;
    transform: translateY(-1px);
}

.admin-review-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e8f1ff;
    color: #1f5ed9;
    font-size: 1.1rem;
}

.admin-review-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.admin-review-copy strong {
    color: #163260;
    font-size: 0.94rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-review-copy small {
    color: #6983b1;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-review-action {
    color: #1f5ed9;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-review-card.overdue .admin-review-icon,
.admin-review-card.inactive .admin-review-icon {
    background: #fff1f3;
    color: #b91c1c;
}

.admin-review-card.load .admin-review-icon {
    background: #fff7ed;
    color: #c76612;
}

.admin-review-empty {
    grid-column: 1 / -1;
}

.admin-action-stack {
    display: grid;
    gap: 0.58rem;
}

.admin-action-tile {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.72rem;
    row-gap: 0.1rem;
    align-items: center;
    border: 1px solid #d9e5fb;
    border-radius: 14px;
    background: #f8fbff;
    color: #1f3d71;
    padding: 0.66rem 0.72rem;
    text-align: left;
    text-decoration: none;
}

.admin-action-tile:hover,
.admin-action-tile:focus-visible {
    border-color: #b8cdf5;
    background: #f1f6ff;
    color: #173261;
}

.admin-action-tile span {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1ff;
    color: #1f5ed9;
    font-size: 1.04rem;
}

.admin-action-tile strong {
    color: inherit;
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-action-tile small {
    color: #6983b1;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-health-list {
    margin-bottom: 0.9rem;
}

.admin-approval-aging {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e2ebfb;
}

.admin-aging-item {
    border: 1px solid #dce7fc;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.68rem;
    display: grid;
    gap: 0.12rem;
}

.admin-aging-item span,
.admin-aging-item small {
    color: #6b83ad;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-aging-item strong {
    color: #122a5a;
    font-size: 1.18rem;
    font-weight: 900;
}

.admin-table {
    margin: 0;
    border-color: #dce7fc;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
}

.admin-table thead th {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #5f78a6;
    background: #f3f7ff;
    border-bottom: 1px solid #dce7fc;
    white-space: nowrap;
}

.admin-table td {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f3d71;
    border-top: 1px solid #e2ebfb;
    white-space: nowrap;
    vertical-align: middle;
    transition: background-color 0.20s ease;
}

.admin-table tbody tr:hover td {
    background: #edf4ff;
}

.admin-table tbody tr.is-selected td {
    background: #e6efff;
}

.admin-table tbody tr.is-selected td:first-child {
    border-left: 3px solid #2563eb;
}

.admin-table .admin-table-empty td {
    color: #6f86b0;
    background: #f8fbff;
    font-weight: 600;
    padding: 0.92rem 0.85rem;
}

.admin-table-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

/* Bookkeepers Directory Table Layout */
.admin-bookkeepers-table-wrap .admin-table {
    width: 100%;
    min-width: 740px;
}

.admin-bookkeepers-table-wrap .admin-table th,
.admin-bookkeepers-table-wrap .admin-table td {
    padding: 0.72rem 0.62rem;
    vertical-align: middle;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(1),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(1) {
    min-width: 140px;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(2),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(2) {
    min-width: 160px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(3),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(3) {
    min-width: 65px;
    text-align: center;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(4),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(4) {
    min-width: 95px;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(5),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(5) {
    min-width: 95px;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(6),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(6) {
    min-width: 90px;
}

.admin-bookkeepers-table-wrap .admin-table th:nth-child(7),
.admin-bookkeepers-table-wrap .admin-table td:nth-child(7) {
    min-width: 105px;
    white-space: nowrap;
}

.admin-bookkeepers-table-wrap .admin-table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-bookkeepers-table-wrap .admin-action-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.2;
}

.admin-row-main {
    font-weight: 800;
    color: #1f4178;
}

.admin-row-subnote {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.28rem;
    color: #6f86b0;
    font-size: 0.72rem;
    font-weight: 700;
    max-width: 18rem;
}

.admin-row-subnote .admin-status-chip {
    font-size: 0.68rem;
    padding: 0.16rem 0.46rem;
}

/* KPI Card micro-interactions */
.admin-kpi-card {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.admin-kpi-card:hover {
    border-color: #aac2ee;
    box-shadow: 0 6px 16px rgba(25, 78, 178, 0.06);
}
.admin-kpi-card:hover .stat-icon {
    background: #1f5ed9;
    color: #ffffff;
    transform: scale(1.05);
}
.stat-icon {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* Deactivation Request Card UI */
.admin-deactivation-request-box {
    margin-top: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    max-width: 22rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.04);
    transition: all 0.2s ease;
}

.admin-deactivation-request-box:hover {
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.08);
    border-color: #fcd34d;
}

body.theme-dark .admin-deactivation-request-box {
    background: #1e1b15;
    border-color: #78350f;
    box-shadow: none;
}

.admin-deactivation-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-deactivation-date {
    font-size: 0.7rem;
    color: #b45309;
    font-weight: 600;
}

body.theme-dark .admin-deactivation-date {
    color: #d97706;
}

.admin-deactivation-reason {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.5rem 0.6rem;
    background: #ffffff;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.theme-dark .admin-deactivation-reason {
    background: #111827;
    border-left-color: #d97706;
}

.admin-deactivation-reason i {
    font-size: 0.8rem;
    color: #d97706;
    margin-top: 2px;
}

.admin-deactivation-reason-text {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    word-break: break-word;
}

body.theme-dark .admin-deactivation-reason-text {
    color: #d1d5db;
}

.admin-action-btn {
    border: 1px solid #cdddf8;
    border-radius: 999px;
    background: #f7faff;
    color: #4e6897;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.24rem 0.65rem;
    cursor: not-allowed;
    opacity: 0.85;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-action-btn.is-enabled {
    cursor: pointer;
    opacity: 1;
}

.admin-action-btn.approve {
    background: #eef4ff;
    border-color: #b8cdf5;
    color: #1f5ed9;
}

.admin-action-btn.reject {
    background: #fff1f3;
    border-color: #f7b5c1;
    color: #b23a4d;
}

.admin-action-btn.delete {
    background: #ffecef;
    border-color: #f2a8b5;
    color: #9c2e42;
}

.admin-action-btn.suspend {
    background: #fff0dc;
    border-color: #f0b456;
    color: #a46200;
}

.admin-action-btn.deactivate {
    background: #fff0dc;
    border-color: #f0b456;
    color: #a46200;
}

.admin-action-btn.reactivate {
    background: #eef4ff;
    border-color: #b8cdf5;
    color: #1f5ed9;
}

.admin-action-btn.detail {
    background: #f7faff;
    border-color: #caddff;
    color: #4e6897;
}

.admin-audit-person {
    display: grid;
    gap: 0.12rem;
    min-width: 10rem;
}

.admin-audit-person strong {
    color: #17376d;
    font-weight: 800;
}

.admin-audit-person small {
    color: #6f86b0;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-audit-date-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(138px, 1fr));
    gap: 0.5rem;
    flex: 0 1 430px;
}

.admin-audit-toolbar-row {
    align-items: flex-end !important;
    flex-wrap: nowrap;
}

.admin-audit-search {
    min-height: 48px;
}

.admin-audit-sort {
    min-height: 48px;
}

.admin-audit-date-filters label {
    display: grid;
    gap: 0.22rem;
    margin: 0;
}

.admin-audit-date-filters label > span {
    color: #6079a6;
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-audit-date-filters .form-control {
    min-height: 48px;
    border-color: #d7e4fb;
    background: #f9fbff;
    color: #24477f;
    font-weight: 700;
}

.admin-audit-message {
    display: grid;
    gap: 0.2rem;
    min-width: 12rem;
}

.admin-audit-decision-note {
    color: #6079a6;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-audit-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    border-top: 1px solid #e1e9f8;
    margin-top: 0.7rem;
    padding-top: 0.8rem;
}

.admin-audit-pagination > span {
    min-width: 7rem;
    color: #6079a6;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.admin-audit-page-button {
    border: 1px solid #caddff;
    background: #f7faff;
    color: #1f5ed9;
    font-weight: 800;
}

.admin-audit-page-button:disabled {
    opacity: 0.48;
}

.admin-bookkeeper-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e1e9f8;
    margin-top: 0.7rem;
    padding-top: 0.8rem;
    color: #6079a6;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-bookkeeper-pagination[hidden] {
    display: none;
}

.admin-approval-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e1e9f8;
    margin-top: 0.7rem;
    padding-top: 0.8rem;
    color: #6079a6;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-approval-pagination[hidden] {
    display: none;
}

.admin-approval-page-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-approval-page-actions > span {
    min-width: 6.5rem;
    text-align: center;
}

.admin-bookkeeper-page-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-bookkeeper-page-actions > span {
    min-width: 6.5rem;
    text-align: center;
}

@media (max-width: 991px) {
    .admin-audit-toolbar-row {
        align-items: stretch !important;
        flex-wrap: wrap;
    }

    .admin-audit-search,
    .admin-audit-date-filters,
    .admin-audit-sort {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .admin-audit-date-filters {
        grid-template-columns: 1fr;
    }

    .admin-audit-pagination {
        justify-content: space-between;
    }

    .admin-bookkeeper-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-approval-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-bookkeeper-page-actions {
        justify-content: space-between;
    }

    .admin-approval-page-actions {
        justify-content: space-between;
    }
}

/* ==========================================================================
   Clients & Dashboard Pagination (Clients, Dashboard, Financial Records)
   ========================================================================== */

.clients-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e1e9f8;
    margin-top: 0.85rem;
    padding-top: 0.95rem;
    flex-wrap: wrap;
}

.clients-pagination[hidden] {
    display: none !important;
}

.clients-pagination-range {
    color: #6079a6;
    font-size: 0.84rem;
    font-weight: 700;
}

.clients-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.clients-page-button,
.btn.clients-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.32rem 0.75rem;
    border: 1px solid #caddff;
    border-radius: 8px;
    background: #f7faff;
    color: #1f5ed9;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.clients-page-button:hover:not(:disabled),
.btn.clients-page-button:hover:not(:disabled) {
    background: #1f5ed9;
    color: #ffffff;
    border-color: #1f5ed9;
    box-shadow: 0 4px 10px rgba(31, 94, 217, 0.2);
}

.clients-page-button:disabled,
.btn.clients-page-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #d8e2f1;
    background: #f8fafc;
    color: #94a3b8;
}

.clients-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.clients-page-num,
.btn.clients-page-num {
    min-width: 34px;
    height: 34px;
    padding: 0 0.4rem;
    border-radius: 8px;
    border: 1px solid #dce7fc;
    background: #ffffff;
    color: #324c7b;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.clients-page-num:hover:not(.active),
.btn.clients-page-num:hover:not(.active) {
    background: #eef4ff;
    border-color: #bad3fe;
    color: #1f5ed9;
}

.clients-page-num.active,
.btn.clients-page-num.active {
    background: #1f5ed9 !important;
    color: #ffffff !important;
    border-color: #1f5ed9 !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(31, 94, 217, 0.25);
    cursor: default;
}

.clients-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 34px;
    color: #8fa0c0;
    font-size: 0.84rem;
    font-weight: 800;
    user-select: none;
}

@media (max-width: 575px) {
    .clients-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .clients-pagination-range {
        text-align: center;
    }

    .clients-pagination-controls {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* Dark Theme */
body.theme-dark .clients-pagination {
    border-color: #334155;
}

body.theme-dark .clients-pagination-range {
    color: #94a3b8;
}

body.theme-dark .clients-page-button,
body.theme-dark .btn.clients-page-button {
    border-color: #31558a;
    background: #13233c;
    color: #93c5fd;
}

body.theme-dark .clients-page-button:hover:not(:disabled),
body.theme-dark .btn.clients-page-button:hover:not(:disabled) {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

body.theme-dark .clients-page-button:disabled,
body.theme-dark .btn.clients-page-button:disabled {
    border-color: #203350;
    background: #0d1728;
    color: #475569;
}

body.theme-dark .clients-page-num,
body.theme-dark .btn.clients-page-num {
    border-color: #273e66;
    background: #101c33;
    color: #cbd5e1;
}

body.theme-dark .clients-page-num:hover:not(.active),
body.theme-dark .btn.clients-page-num:hover:not(.active) {
    background: #182c52;
    border-color: #3b5f9e;
    color: #93c5fd;
}

body.theme-dark .clients-page-num.active,
body.theme-dark .btn.clients-page-num.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

body.theme-dark .clients-page-ellipsis {
    color: #64748b;
}

.admin-approval-detail {
    display: grid;
    gap: 0.8rem;
}

.admin-approval-person {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    border: 1px solid #dce7fc;
    border-radius: 14px;
    background: #f8fbff;
    padding: 0.78rem;
}

.admin-approval-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1ff;
    color: #1f5ed9;
    font-size: 0.88rem;
    font-weight: 900;
}

.admin-approval-person strong,
.admin-approval-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-approval-person strong {
    color: #163260;
    font-size: 0.95rem;
    font-weight: 900;
}

.admin-approval-person small {
    color: #6b83ad;
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-approval-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.48rem;
    margin: 0;
}

.admin-detail-list div {
    display: grid;
    gap: 0.14rem;
    border: 1px solid #e0e9fb;
    border-radius: 12px;
    background: #fbfdff;
    padding: 0.56rem 0.64rem;
}

.admin-detail-list dt {
    color: #6b83ad;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-detail-list dd {
    margin: 0;
    color: #1f3d71;
    font-size: 0.83rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-notification-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.68rem;
    align-items: start;
    border: 1px solid #dce7fc;
    border-radius: 14px;
    background: #f8fbff;
    padding: 0.78rem;
}

.admin-notification-preview span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1ff;
    color: #1f5ed9;
}

.admin-notification-preview p {
    margin: 0;
    color: #1f3d71;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.admin-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.admin-activity-empty {
    border: 1px dashed #d8e5fb;
    border-radius: 12px;
    background: #f8fbff;
    color: #6f86b0;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.9rem;
    text-align: center;
}

.admin-empty-state {
    border: 1px dashed #d8e5fb;
    border-radius: 12px;
    background: #f8fbff;
    color: #6f86b0;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.92rem;
}

body.dashboard-page.admin-console .dashboard-action-btn.primary {
    background: linear-gradient(145deg, #1f5ed9, #184db9);
}

body.dashboard-page.admin-console .dashboard-action-btn.primary:hover,
body.dashboard-page.admin-console .dashboard-action-btn.primary:focus-visible {
    background: linear-gradient(145deg, #184db9, #133f99);
}

body.dashboard-page.admin-console .dashboard-action-btn.outline {
    background: #f7faff;
    color: #1f5ed9;
    border-color: #caddff;
}

body.dashboard-page.admin-console .dashboard-action-btn.outline:hover,
body.dashboard-page.admin-console .dashboard-action-btn.outline:focus-visible {
    background: #f1f6ff;
    border-color: #aecaef;
    color: #163f96;
}

body.dashboard-page.admin-console .dashboard-action-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    :root {
        --navbar-height: 76px;
    }

    .dashboard-sidebar {
        width: var(--dashboard-sidebar-width);
        transform: translateX(-106%);
        transition: transform 0.24s ease;
        z-index: 1300;
        box-shadow: 0 14px 28px rgba(9, 28, 66, 0.22);
    }

    body.sidebar-collapsed .dashboard-sidebar {
        width: var(--dashboard-sidebar-width);
        transform: translateX(-106%);
        padding: 1.1rem 0.9rem 1rem;
    }

    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    body.sidebar-collapsed.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-main {
        --dashboard-main-padding-x: 0.78rem;
        margin-left: 0;
        width: 100%;
        padding: 0.88rem var(--dashboard-main-padding-x) 1.4rem;
    }

    body.sidebar-collapsed .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

    body.sidebar-collapsed .dashboard-logo {
        justify-content: flex-start;
    }

    body.sidebar-collapsed .dashboard-logo-text {
        opacity: 1;
        max-width: 170px;
        margin-left: 0.55rem;
    }

    body.sidebar-collapsed .dashboard-sidebar-label {
        opacity: 1;
        max-height: 22px;
        margin-bottom: 0.8rem;
        padding-left: 0.55rem;
    }

    body.sidebar-collapsed .dashboard-nav-item {
        justify-content: flex-start;
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }

    body.sidebar-collapsed .dashboard-nav-item span {
        opacity: 1;
        max-width: 160px;
    }

    body.sidebar-collapsed .dashboard-landing-link {
        justify-content: flex-start;
        padding-left: 0.62rem;
        padding-right: 0.62rem;
    }

    body.sidebar-collapsed .dashboard-landing-link span {
        opacity: 1;
        max-width: 165px;
    }

    .dashboard-topbar {
        top: 0.55rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.78rem;
    }

    .dashboard-topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .dashboard-search {
        min-width: 0;
        flex: 1;
    }

    .dashboard-table-toolbar {
        align-items: stretch;
    }

    .dashboard-table-search {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .dashboard-table-filters {
        width: 100%;
    }

    .dashboard-filter-chips {
        width: 100%;
    }

    .dashboard-filter-select {
        min-width: 0;
        flex: 1 1 160px;
    }

    .admin-bookkeeper-search {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .admin-bookkeeper-sort {
        width: 100%;
        margin-left: 0;
    }

    .admin-bookkeeper-toolbar-row {
        flex-wrap: wrap;
    }

    .admin-approvals-search {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .admin-approvals-sort {
        width: 100%;
        margin-left: 0;
    }

    .admin-approvals-toolbar-row {
        flex-wrap: wrap;
    }

    .clients-action-bar {
        align-items: stretch;
    }

    .clients-page-search {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .clients-actions-cell {
        min-width: 420px;
    }

    .financial-context-grid {
        grid-template-columns: 1fr;
    }

    .financial-action-bar {
        align-items: stretch;
    }

    .financial-period-select-wrap {
        min-width: 0;
        width: 100%;
    }

    .financial-add-entry-btn {
        width: 100%;
        justify-content: center;
    }

    .financial-entry-actions-cell {
        min-width: 320px;
    }

    .financial-summary-grid {
        grid-template-columns: 1fr;
    }

    .financial-line-items-table {
        min-width: 640px;
    }

    .financial-add-line-item-btn {
        width: 100%;
        justify-content: center;
    }

    .financial-reuse-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .financial-reuse-btn {
        width: 100%;
    }

    .dashboard-table {
        min-width: 700px;
    }

    .dashboard-backdrop {
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    body.sidebar-open .dashboard-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .auth-shell,
    .auth-grid {
        min-height: 0;
    }

    .auth-side {
        padding: 2.1rem 1.2rem;
    }

    .auth-panel {
        padding: 1.2rem 1rem 2rem;
    }

    .auth-form-wrap {
        width: min(100%, 640px);
    }

    .hero-overview-card {
        max-width: 100%;
    }

    .section-spacing-lg {
        padding: 7rem 0 4.8rem;
    }

    .section-spacing {
        padding: 4.25rem 0;
    }

    .navbar .nav-link {
        padding-left: 0;
        padding-right: 0;
    }

    .btn-safe-nav {
        margin-top: 0.7rem;
        width: fit-content;
    }

    .hero-title {
        max-width: 100%;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dashboard-page-title {
        font-size: 1.45rem;
    }

    .dashboard-page-subtitle {
        font-size: 0.84rem;
    }

    .dashboard-card,
    .dashboard-stat-card {
        border-radius: 14px;
        padding: 0.82rem;
    }

    .dashboard-user-meta {
        display: none;
    }

    .dashboard-avatar {
        width: 31px;
        height: 31px;
    }

    .dashboard-profile-btn {
        padding: 0.28rem 0.4rem;
    }

    .dashboard-search {
        padding: 0.48rem 0.62rem;
    }

    .dashboard-table-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-filter-select {
        width: 100%;
    }

    .clients-add-btn {
        width: 100%;
        justify-content: center;
    }

    .clients-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .client-action-btn {
        width: 100%;
        justify-content: center;
    }

    .clients-actions-cell {
        min-width: 320px;
    }

    .financial-entry-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .financial-entry-btn {
        width: 100%;
        justify-content: center;
    }

    .financial-entry-actions-cell {
        min-width: 230px;
    }

    .financial-summary-grid {
        grid-template-columns: 1fr;
    }

    .financial-line-items-section {
        padding: 0.66rem;
    }

    .financial-line-items-table {
        min-width: 560px;
    }

    .financial-entry-details-shell.is-open {
        max-height: 560px;
        padding: 0.66rem;
    }

    .financial-back-btn {
        width: 100%;
        justify-content: center;
    }

    .client-details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.24rem;
    }

    .client-details-row strong {
        text-align: left;
    }

    .dashboard-trend-chart {
        height: 190px;
    }

    .dashboard-empty-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-empty-actions .dashboard-action-btn {
        width: 100%;
    }

    .recent-activity-list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-brand {
        font-size: 1.62rem;
    }

    .auth-tagline {
        font-size: 0.98rem;
    }

    .auth-card {
        border-radius: 20px;
        padding: 1.2rem;
    }

    .auth-feature-pill {
        padding: 0.72rem 0.82rem;
    }

    .auth-input {
        padding: 0.68rem 0.82rem;
    }

    .auth-password-toggle {
        width: 1.9rem;
        height: 1.9rem;
    }

    .auth-requirement-chip {
        font-size: 0.72rem;
        padding: 0.22rem 0.5rem;
    }

    .auth-google-btn {
        padding: 0.68rem 0.82rem;
    }

    .auth-divider {
        margin-top: 0.92rem;
        margin-bottom: 1rem;
    }

    .section-heading {
        margin-bottom: 1.7rem;
    }

    .hero-overview-title {
        font-size: 1.12rem;
    }

    .overview-table th,
    .overview-table td {
        font-size: 0.78rem;
        padding: 0.6rem 0.58rem;
    }

    .overview-table th:nth-child(1),
    .overview-table td:nth-child(1),
    .overview-table th:nth-child(2),
    .overview-table td:nth-child(2),
    .overview-table th:nth-child(3),
    .overview-table td:nth-child(3),
    .overview-table th:nth-child(4),
    .overview-table td:nth-child(4),
    .overview-table th:nth-child(5),
    .overview-table td:nth-child(5) {
        width: auto;
    }

    .mock-metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-mockup {
        padding: 1.2rem;
    }

    .mock-chart {
        height: 120px;
    }

    .feature-card,
    .step-card {
        padding: 1.25rem;
    }

    .site-footer {
        padding-top: 2.4rem;
    }
}

/* Dark theme overrides */
body.theme-dark {
    color: #e6edf7;
    background: linear-gradient(165deg, #0b1324 0%, #0f1b32 56%, #0b1426 100%);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #e6edf7;
}

body.theme-dark.dashboard-page {
    background: linear-gradient(165deg, #0b1324 0%, #0f1b32 56%, #0b1426 100%);
}

body.theme-dark .dashboard-sidebar {
    background: #0f182a;
    border-color: #1f2a40;
}

body.theme-dark .dashboard-logo {
    color: #86b2ff;
}

body.theme-dark .dashboard-logo-image.logo-light {
    display: none;
}

body.theme-dark .dashboard-logo-image.logo-dark {
    display: block;
}

body.theme-dark .dashboard-logo-image:not(.logo-dark):not(.logo-light) {
    content: url("/static/images/Logo_safebooks_dark.1d5c74aa1029.png");
}


body.theme-dark .dashboard-logo:hover,
body.theme-dark .dashboard-logo:focus-visible {
    color: #b6d0ff;
}

body.theme-dark .dashboard-sidebar-label {
    color: #91a7c9;
}

body.theme-dark .dashboard-nav-item {
    color: #a7bedf;
}

body.theme-dark .dashboard-nav-item.active {
    color: #d7e6ff;
    background: #1a2b4a;
    box-shadow: inset 0 0 0 1px #2b3d61;
}

body.theme-dark .dashboard-nav-item:hover,
body.theme-dark .dashboard-nav-item:focus-visible {
    color: #d7e6ff;
    background: #16263f;
}

body.theme-dark .dashboard-landing-link {
    color: #a1b5d9;
}

body.theme-dark .dashboard-landing-link:hover,
body.theme-dark .dashboard-landing-link:focus-visible {
    color: #d7e6ff;
    background: #16263f;
}

body.theme-dark .dashboard-topbar {
    background: #101b2f;
    border-color: #22314c;
    box-shadow: 0 10px 26px rgba(2, 8, 20, 0.4);
}

body.theme-dark .dashboard-page-title {
    color: #e6edf7;
}

body.theme-dark .dashboard-page-subtitle {
    color: #9eb0d3;
}

body.theme-dark .dashboard-utility-item {
    background: #122038;
    border-color: #2b3c5a;
    color: #b3c6e5;
}

body.theme-dark .dashboard-utility-item i {
    color: #9eb7df;
}

body.theme-dark .dashboard-utility-link {
    background: #122038;
    border-color: #2b3c5a;
    color: #aecdff;
}

body.theme-dark .dashboard-utility-link:hover,
body.theme-dark .dashboard-utility-link:focus-visible {
    background: #1a2b4a;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .dashboard-menu-toggle {
    background: #122038;
    border-color: #2b3c5a;
    color: #aecdff;
}

body.theme-dark .dashboard-menu-toggle:hover,
body.theme-dark .dashboard-menu-toggle:focus-visible {
    background: #1a2b4a;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .dashboard-card,
body.theme-dark .dashboard-stat-card {
    background: #101a2c;
    border-color: #23324d;
    box-shadow: 0 10px 24px rgba(2, 8, 20, 0.5);
}

body.theme-dark .dashboard-card-head h2 {
    color: #e6edf7;
}

body.theme-dark .dashboard-section-hint,
body.theme-dark .dashboard-panel-hint,
body.theme-dark .dashboard-overview-note,
body.theme-dark .stat-label,
body.theme-dark .stat-note {
    color: #9eb0d3;
}

body.theme-dark .stat-trend-chip {
    background: #1a2b4a;
    color: #aecdff;
    border-color: #2b3c5a;
}

body.theme-dark .dashboard-stat-card h3 {
    color: #e6edf7;
}

body.theme-dark .stat-icon {
    background: #122038;
    color: #aecdff;
    box-shadow: inset 0 0 0 1px #2b3c5a;
}

body.theme-dark .dashboard-tag {
    background: #1a2b4a;
    color: #aecdff;
}

body.theme-dark .dashboard-table-label {
    color: #9eb0d3;
}

body.theme-dark .dashboard-table {
    --bs-table-hover-bg: #16263f;
}

body.theme-dark .dashboard-table th {
    color: #9eb0d3;
    border-bottom-color: #2b3c5a;
}

body.theme-dark .dashboard-table td {
    color: #d0def3;
    border-bottom-color: #25344f;
}

body.theme-dark .dashboard-table .dashboard-table-summary th {
    background: #122038;
    color: #9eb0d3;
    border-bottom-color: #2b3c5a;
    border-top-color: #2b3c5a;
}

body.theme-dark .dashboard-table tbody tr.dashboard-client-row:hover td {
    background-color: #16263f;
}

body.theme-dark .dashboard-table-search {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .dashboard-table-search i {
    color: #8ea5c9;
}

body.theme-dark .dashboard-table-search input {
    color: #e6edf7;
}

body.theme-dark .dashboard-table-search input::placeholder {
    color: #7f98c0;
}

body.theme-dark .dashboard-filter-chip {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark .dashboard-filter-chip:hover,
body.theme-dark .dashboard-filter-chip:focus-visible {
    background: #16263f;
    border-color: #3a5490;
}

body.theme-dark .dashboard-filter-chip.is-active {
    background: #2f66d1;
    border-color: #2f66d1;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(16, 32, 64, 0.4);
}

body.theme-dark .dashboard-filter-summary {
    color: #9eb0d3;
    background: #0f1c33;
    border-color: #2b3c5a;
}

body.theme-dark .dashboard-filter-select,
body.theme-dark .form-select,
body.theme-dark .form-control {
    background-color: #0f1c33;
    border-color: #25344f;
    color: #e6edf7;
    color-scheme: dark;
}

body.theme-dark .form-select,
body.theme-dark .dashboard-filter-select,
body.theme-dark .financial-period-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239eb0d3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-color: #0f1c33;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239eb0d3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
    color-scheme: dark;
}

body.theme-dark option {
    background-color: #0f1c33;
    color: #e6edf7;
}

body.theme-dark optgroup {
    background-color: #0f1c33;
    color: #9eb0d3;
}

body.theme-dark .form-control::placeholder {
    color: #7f98c0;
}

body.theme-dark .dashboard-action-btn.outline {
    background: #111f36;
    border-color: #30466d;
    color: #aecdff;
}

body.theme-dark .dashboard-card-footer {
    border-top-color: #25344f;
}

body.theme-dark .dashboard-card-link {
    color: #aecdff;
}

body.theme-dark .dashboard-card-link:hover,
body.theme-dark .dashboard-card-link:focus-visible {
    color: #d7e6ff;
}

body.theme-dark .dashboard-action-btn.outline:hover,
body.theme-dark .dashboard-action-btn.outline:focus-visible {
    background: #162745;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .dashboard-action-btn.primary {
    background: linear-gradient(145deg, #3d78e6, #2d5fc4);
}

body.theme-dark .dashboard-action-btn.primary:hover,
body.theme-dark .dashboard-action-btn.primary:focus-visible {
    background: linear-gradient(145deg, #2f66d1, #254ea8);
}

body.theme-dark .dashboard-data-empty {
    background: #0f1c33;
    border-color: #2a3c5a;
}

body.theme-dark .dashboard-data-empty p {
    color: #9eb0d3;
}

body.theme-dark .dashboard-table-empty {
    background: #0f1c33;
    border-color: #2a3c5a;
    color: #9eb0d3;
}

body.theme-dark .dashboard-guidance-text {
    color: #9eb0d3;
}

body.theme-dark .insight-item {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .insight-item strong {
    color: #e6edf7;
}

body.theme-dark .insight-item small {
    color: #9eb0d3;
}

body.theme-dark .insight-value {
    color: #aecdff;
}

body.theme-dark .insight-item .insight-dot {
    background: #4f7ad4;
    box-shadow: 0 0 0 4px rgba(79, 122, 212, 0.2);
}

body.theme-dark .risk-low-item .insight-dot,
body.theme-dark .remark-new-item .insight-dot {
    background: #4f8fe8;
    box-shadow: 0 0 0 4px rgba(79, 143, 232, 0.2);
}

body.theme-dark .remark-active-item .insight-dot {
    background: #34a853;
    box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.2);
}

body.theme-dark .risk-medium-item .insight-dot,
body.theme-dark .remark-separated-item .insight-dot {
    background: #f0b04b;
    box-shadow: 0 0 0 4px rgba(240, 176, 75, 0.2);
}

body.theme-dark .risk-high-item .insight-dot,
body.theme-dark .remark-closed-item .insight-dot {
    background: #f06a6a;
    box-shadow: 0 0 0 4px rgba(240, 106, 106, 0.2);
}

body.theme-dark .safebooks-toast {
    background: #101b2f;
    border-color: #2a3c5a;
    border-inline-start-color: #87b5ff;
    color: #d7e6ff;
    --bs-toast-box-shadow: 0 8px 18px -4px rgba(2, 8, 20, 0.45), 0 3px 7px -2px rgba(2, 8, 20, 0.3);
    box-shadow: 0 8px 18px -4px rgba(2, 8, 20, 0.45), 0 3px 7px -2px rgba(2, 8, 20, 0.3);
}

body.theme-dark .safebooks-toast::after {
    background: #87b5ff;
}

body.theme-dark .safebooks-toast.safebooks-toast-welcome {
    background: #152a22;
    border-color: #2d5b46;
    color: #bfead3;
    border-inline-start-color: #72d9a5;
}

body.theme-dark .safebooks-toast.success {
    background: #152a22;
    border-color: #2d5b46;
    border-inline-start-color: #72d9a5;
    color: #bfead3;
}

body.theme-dark .safebooks-toast.success::after,
body.theme-dark .safebooks-toast.safebooks-toast-welcome::after {
    background: #72d9a5;
}

body.theme-dark .safebooks-toast.warning {
    background: #302719;
    border-color: #6a522c;
    border-inline-start-color: #f1bd62;
    color: #ffe0a3;
}

body.theme-dark .safebooks-toast.warning::after {
    background: #f1bd62;
}

body.theme-dark .safebooks-toast.danger {
    background: #321e27;
    border-color: #70404c;
    border-inline-start-color: #f48b98;
    color: #ffc7ce;
}

body.theme-dark .safebooks-toast.danger::after {
    background: #f48b98;
}

body.theme-dark .dashboard-search {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .dashboard-search i {
    color: #8ea5c9;
}

body.theme-dark .dashboard-search input {
    color: #e6edf7;
}

body.theme-dark .dashboard-search input::placeholder {
    color: #7f98c0;
}

body.theme-dark .dashboard-profile-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark .dashboard-profile-btn:hover,
body.theme-dark .dashboard-profile-btn:focus-visible {
    background: #16263f;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .dashboard-profile-menu {
    background: #101b2f;
    border-color: #23324d;
    box-shadow: 0 14px 24px rgba(2, 8, 20, 0.5);
}

body.theme-dark .dashboard-profile-menu .dropdown-item {
    color: #cfe0f7;
}

body.theme-dark .dashboard-profile-menu .dropdown-item:hover,
body.theme-dark .dashboard-profile-menu .dropdown-item:focus-visible {
    color: #e6edf7;
    background: #16263f;
}

body.theme-dark .dashboard-profile-menu .dropdown-item.text-danger {
    color: #f4a3a3;
}

body.theme-dark .dashboard-profile-menu .dropdown-item.text-danger:hover,
body.theme-dark .dashboard-profile-menu .dropdown-item.text-danger:focus-visible {
    color: #f7b9b9;
    background: #3a1f2a;
}

body.theme-dark .dashboard-avatar {
    background: #1a2c4f;
    color: #aecdff;
}

body.theme-dark .dashboard-user-meta small {
    color: #9eb0d3;
}

body.theme-dark .clients-empty-state {
    background: #0f1c33;
    border-color: #2a3c5a;
}

body.theme-dark .clients-empty-state p {
    color: #9eb0d3;
}

body.theme-dark .client-action-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark .client-action-btn:hover,
body.theme-dark .client-action-btn:focus-visible {
    background: #16263f;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .client-action-btn.delete {
    background: #2a1b23;
    border-color: #4a2a34;
    color: #f1a2a2;
}

body.theme-dark .client-action-btn.delete:hover,
body.theme-dark .client-action-btn.delete:focus-visible {
    background: #3a1f2a;
    border-color: #5c2b36;
    color: #f7b9b9;
}

body.theme-dark .client-action-btn.primary,
body.theme-dark .client-action-btn.add-record {
    background: linear-gradient(145deg, #2b6de6, #1d4db8) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body.theme-dark .client-action-btn.primary i,
body.theme-dark .client-action-btn.add-record i {
    color: #ffffff !important;
}

body.theme-dark .client-action-btn.primary:hover,
body.theme-dark .client-action-btn.primary:focus-visible,
body.theme-dark .client-action-btn.add-record:hover,
body.theme-dark .client-action-btn.add-record:focus-visible {
    background: linear-gradient(145deg, #1d4db8, #153c94) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body.theme-dark .client-action-btn.primary:hover i,
body.theme-dark .client-action-btn.primary:focus-visible i,
body.theme-dark .client-action-btn.add-record:hover i,
body.theme-dark .client-action-btn.add-record:focus-visible i {
    color: #ffffff !important;
}


body.theme-dark .client-custom-add-btn {
    background: #122038;
    border-color: #2b3c5a;
    color: #aecdff;
}

body.theme-dark .client-custom-add-btn:hover,
body.theme-dark .client-custom-add-btn:focus-visible {
    background: #1a2b4a;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .client-custom-label-input {
    background: #0f1c33;
    border-color: #2a3c5a;
    color: #e6edf7;
}

body.theme-dark .client-password-toggle {
    background: transparent;
    color: #9eb0d3;
}

body.theme-dark .client-password-toggle:hover,
body.theme-dark .client-password-toggle:focus-visible,
body.theme-dark .client-password-toggle:focus {
    background: #192a4a;
    color: #aecdff;
    box-shadow: 0 0 0 0.16rem rgba(61, 120, 230, 0.2);
}

body.theme-dark .client-delete-modal {
    background: #101b2f;
    border-color: #23324d;
    color: #d0def3;
}

body.theme-dark .clients-delete-text {
    color: #9eb0d3;
}

body.theme-dark .clients-delete-name {
    color: #e6edf7;
}

body.theme-dark .client-custom-label-input:focus {
    background: #0f1c33;
    border-color: #3a5490;
    box-shadow: 0 0 0 0.16rem rgba(61, 120, 230, 0.2);
}

body.theme-dark .client-details-key {
    color: #9eb0d3;
}

body.theme-dark .client-details-row strong {
    color: #e6edf7;
}

body.theme-dark .client-details-note {
    color: #9eb0d3;
}

body.theme-dark .client-details-custom {
    border-top-color: #2a3c5a;
}

body.theme-dark .client-details-custom-title {
    color: #9eb0d3;
}

body.theme-dark .client-manage-modal .modal-content {
    background: #101b2f;
    border-color: #23324d;
}

body.theme-dark .client-manage-modal .modal-header {
    border-bottom-color: #25344f;
}

.client-manage-modal.modal-dialog-scrollable .modal-body,
.client-manage-modal .modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

body.theme-dark .client-form-label,
.theme-dark .client-form-label {
    color: #adc0e6;
}

body.theme-dark .client-custom-fields-title,
.theme-dark .client-custom-fields-title {
    color: #9eb0d3;
}

body.theme-dark .client-select-icon,
.theme-dark .client-select-icon {
    color: #9eb0d3;
}

body.theme-dark .client-select-input,
.theme-dark .client-select-input {
    background-image: none !important;
}

body.theme-dark .client-edit-modal-subtitle,
body.theme-dark .clients-access-modal-subtitle,
body.theme-dark .clients-access-modal-note {
    color: #9eb0d3;
}

body.theme-dark .client-report-modal .modal-content,
.theme-dark .client-report-modal .modal-content {
    background: #101b2f;
    border-color: #23324d;
    box-shadow: 0 18px 34px rgba(2, 8, 20, 0.6);
}

body.theme-dark .client-report-modal .modal-header,
body.theme-dark .client-report-modal .modal-footer,
.theme-dark .client-report-modal .modal-header,
.theme-dark .client-report-modal .modal-footer {
    background-color: #101b2f !important;
    border-color: #25344f !important;
}

body.theme-dark .client-report-modal .modal-body,
.theme-dark .client-report-modal .modal-body {
    background-color: #0b1424 !important;
}

body.theme-dark .client-report-modal .modal-title,
.theme-dark .client-report-modal .modal-title {
    color: #f1f5f9 !important;
}

body.theme-dark .client-report-modal .btn-close,
.theme-dark .client-report-modal .btn-close {
    filter: invert(1);
    opacity: 0.75;
}

body.theme-dark .client-report-modal .btn-close:hover,
body.theme-dark .client-report-modal .btn-close:focus-visible,
.theme-dark .client-report-modal .btn-close:hover,
.theme-dark .client-report-modal .btn-close:focus-visible {
    opacity: 1;
}

body.theme-dark .financial-manage-modal .modal-content {
    background: #101b2f;
    border-color: #23324d;
    color: #d0def3;
    box-shadow: 0 18px 34px rgba(2, 8, 20, 0.6);
}

body.theme-dark .financial-manage-modal .modal-header {
    border-bottom-color: #25344f;
}

body.theme-dark .financial-manage-modal .modal-footer {
    border-top-color: #25344f;
}

body.theme-dark .financial-manage-modal .modal-title {
    color: #e6edf7;
}

body.theme-dark .financial-manage-modal .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

body.theme-dark .financial-manage-modal .btn-close:hover,
body.theme-dark .financial-manage-modal .btn-close:focus-visible {
    opacity: 1;
}

body.theme-dark .financial-form-label {
    color: #9eb0d3;
}

body.theme-dark .financial-form-input {
    background-color: #0f1c33;
    border-color: #25344f;
    color: #e6edf7;
}

body.theme-dark select.financial-form-input,
body.theme-dark select.financial-line-code-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239eb0d3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-color: #0f1c33;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239eb0d3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
    color-scheme: dark;
}

body.theme-dark .financial-form-input:focus {
    border-color: #3a5490;
    box-shadow: 0 0 0 0.16rem rgba(61, 120, 230, 0.2);
}

body.theme-dark .financial-line-code-cancel-btn {
    border-color: #273b5c;
    background: #0f1c33;
    color: #9eb0d3;
}

body.theme-dark .financial-line-code-cancel-btn:hover,
body.theme-dark .financial-line-code-cancel-btn:focus-visible {
    border-color: #3b5682;
    background: #172847;
    color: #adc0e6;
}

body.theme-dark .financial-form-input::placeholder {
    color: #7f98c0;
}

body.theme-dark .financial-reuse-panel {
    border-color: #2a3a5b;
    background: #111f38;
}

body.theme-dark .financial-reuse-pill {
    background: #1c2b49;
    color: #9eb8e8;
    border-color: #2d3f64;
}

body.theme-dark .financial-reuse-title {
    color: #e6edf7;
}

body.theme-dark .financial-reuse-copy,
body.theme-dark .financial-reuse-hint {
    color: #9eb0d3;
}

body.theme-dark .financial-reuse-meta {
    color: #8fa6cd;
}

body.theme-dark .financial-reuse-meta i {
    color: #7ea2ec;
}

body.theme-dark .financial-reuse-panel .dashboard-action-btn.outline.financial-reuse-btn {
    border-color: #355084;
    background: linear-gradient(180deg, #182844 0%, #111f38 100%);
    color: #cfe0ff;
    box-shadow: 0 10px 18px rgba(11, 20, 38, 0.5);
}

body.theme-dark .financial-reuse-panel .dashboard-action-btn.outline.financial-reuse-btn:hover,
body.theme-dark .financial-reuse-panel .dashboard-action-btn.outline.financial-reuse-btn:focus-visible {
    border-color: #4663a0;
    background: #1a2c4f;
    color: #e6edf7;
}

body.theme-dark .financial-context-title {
    color: #e6edf7;
}

body.theme-dark .financial-context-subtitle {
    color: #9eb0d3;
}

body.theme-dark .financial-breadcrumb {
    color: #8ea5c9;
}

body.theme-dark .financial-breadcrumb a {
    color: #aecdff;
}

body.theme-dark .financial-breadcrumb a:hover,
body.theme-dark .financial-breadcrumb a:focus-visible {
    color: #d7e6ff;
}

body.theme-dark .financial-breadcrumb i {
    color: #7f98c0;
}

body.theme-dark .financial-breadcrumb span {
    color: #9eb0d3;
}

body.theme-dark .financial-context-item {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .financial-context-label {
    color: #9eb0d3;
}

body.theme-dark .financial-context-item strong {
    color: #e6edf7;
}

body.theme-dark .financial-summary-item {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .financial-summary-item p {
    color: #9eb0d3;
}

body.theme-dark .financial-summary-item h3 {
    color: #e6edf7;
}

body.theme-dark .financial-summary-item-total small {
    color: #9eb0d3;
}

body.theme-dark .financial-breakdown-item {
    background: #111f36;
    border-color: #2b3c5a;
}

body.theme-dark .financial-breakdown-item span {
    color: #cfe0f7;
}

body.theme-dark .financial-breakdown-item strong {
    color: #aecdff;
}

body.theme-dark .financial-breakdown-empty {
    color: #9eb0d3;
}

body.theme-dark .financial-line-item-count {
    background: #1a2b4a;
    color: #aecdff;
}

body.theme-dark .financial-entry-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark .financial-entry-btn:hover,
body.theme-dark .financial-entry-btn:focus-visible {
    background: #16263f;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .financial-entry-btn.toggle {
    background: #1a2b4a;
    border-color: #2f446e;
    color: #aecdff;
}

body.theme-dark .financial-entry-btn.toggle:hover,
body.theme-dark .financial-entry-btn.toggle:focus-visible {
    background: #223257;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark .financial-entry-btn.delete {
    background: #2a1b23;
    border-color: #4a2a34;
    color: #f1a2a2;
}

body.theme-dark .financial-entry-btn.delete:hover,
body.theme-dark .financial-entry-btn.delete:focus-visible {
    background: #3a1f2a;
    border-color: #5c2b36;
    color: #f7b9b9;
}

body.theme-dark .financial-entry-details-shell {
    background: #0f1c33;
    border-left-color: #2b3c5a;
}

body.theme-dark .financial-entry-details-head h3 {
    color: #e6edf7;
}

body.theme-dark .financial-line-items-preview-table {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .financial-line-items-preview-table thead th {
    background: #122038;
    border-bottom-color: #2b3c5a;
    color: #9eb0d3;
}

body.theme-dark .financial-line-items-preview-table td {
    color: #d0def3;
    border-color: #25344f;
}

body.theme-dark .financial-entry-no-items {
    color: #9eb0d3;
}

body.theme-dark .financial-entry-notes {
    color: #9eb0d3;
}

body.theme-dark .financial-entry-notes span {
    color: #d0def3;
}

body.theme-dark .financial-line-items-section {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .financial-line-items-title {
    color: #e6edf7;
}

body.theme-dark .financial-line-items-help {
    color: #9eb0d3;
}

body.theme-dark .financial-line-items-table-wrap {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .financial-line-items-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #16263f;
    color: #d0def3;
}

body.theme-dark .financial-line-items-table thead th {
    background: #122038;
    border-bottom-color: #2b3c5a;
    color: #9eb0d3;
}

body.theme-dark .financial-line-items-table td {
    border-color: #25344f;
    background: transparent;
    color: #d0def3;
}

body.theme-dark .financial-line-code-input,
body.theme-dark .financial-line-description-input,
body.theme-dark .financial-line-amount-input {
    background: #0f1c33;
    border-color: #25344f;
    color: #e6edf7;
    color-scheme: dark;
}

body.theme-dark .financial-line-code-input:focus,
body.theme-dark .financial-line-description-input:focus,
body.theme-dark .financial-line-amount-input:focus {
    border-color: #3a5490;
    box-shadow: 0 0 0 0.16rem rgba(61, 120, 230, 0.2);
}

body.theme-dark .financial-line-code-input::placeholder,
body.theme-dark .financial-line-description-input::placeholder,
body.theme-dark .financial-line-amount-input::placeholder {
    color: #7f98c0;
}

body.theme-dark .financial-line-amount-input::-webkit-inner-spin-button,
body.theme-dark .financial-line-amount-input::-webkit-outer-spin-button {
    background: #0f1c33;
    filter: invert(1) brightness(0.75);
    opacity: 0;
    transition: opacity 0.15s ease;
}

body.theme-dark .financial-line-amount-input:focus::-webkit-inner-spin-button,
body.theme-dark .financial-line-amount-input:focus::-webkit-outer-spin-button,
body.theme-dark .financial-line-amount-input:focus-visible::-webkit-inner-spin-button,
body.theme-dark .financial-line-amount-input:focus-visible::-webkit-outer-spin-button,
body.theme-dark .financial-line-amount-input:hover::-webkit-inner-spin-button,
body.theme-dark .financial-line-amount-input:hover::-webkit-outer-spin-button {
    opacity: 0.9;
}


body.theme-dark .financial-line-remove-btn {
    background: #2a1b23;
    border-color: #4a2a34;
    color: #f1a2a2;
}

body.theme-dark .financial-line-remove-btn:hover,
body.theme-dark .financial-line-remove-btn:focus-visible {
    background: #3a1f2a;
    border-color: #5c2b36;
    color: #f7b9b9;
}

body.theme-dark .financial-empty-state {
    background: #0f1c33;
    border-color: #2a3c5a;
}

body.theme-dark .financial-empty-state p {
    color: #9eb0d3;
}

body.theme-dark .financial-delete-modal {
    background: #101b2f;
    border-color: #23324d;
    color: #d0def3;
}

body.theme-dark .financial-delete-text {
    color: #9eb0d3;
}

body.theme-dark .financial-delete-period {
    color: #e6edf7;
}

body.theme-dark .recent-activity-list li {
    background: #0f1c33;
    border-color: #25344f;
}

body.theme-dark .recent-activity-list p {
    color: #d0def3;
}

body.theme-dark .recent-activity-list small {
    color: #9eb0d3;
}

body.theme-dark .activity-pill {
    background: #1a2b4a;
    color: #aecdff;
}

body.theme-dark .activity-pill.warning {
    background: #3a2a1a;
    color: #f0c27a;
}

body.theme-dark.dashboard-page.admin-console {
    background: linear-gradient(165deg, #0b1324 0%, #0f1b32 56%, #0b1426 100%);
    color: #e6edf7;
}

body.theme-dark.dashboard-page.admin-console .dashboard-sidebar {
    background: #0f182a;
    border-right-color: #1f2a40;
}

body.theme-dark.dashboard-page.admin-console .dashboard-logo,
body.theme-dark.dashboard-page.admin-console .dashboard-logo-text {
    color: #86b2ff;
}

body.theme-dark.dashboard-page.admin-console .dashboard-sidebar-label {
    color: #91a7c9;
}

body.theme-dark.dashboard-page.admin-console .dashboard-nav-item {
    color: #a7bedf;
}

body.theme-dark.dashboard-page.admin-console .dashboard-nav-item.active {
    color: #d7e6ff;
    background: #1a2b4a;
    box-shadow: inset 0 0 0 1px #2b3d61;
}

body.theme-dark.dashboard-page.admin-console .dashboard-nav-item:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-nav-item:focus-visible {
    color: #d7e6ff;
    background: #16263f;
}

body.theme-dark.dashboard-page.admin-console .dashboard-landing-link {
    color: #a1b5d9;
}

body.theme-dark.dashboard-page.admin-console .dashboard-landing-link:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-landing-link:focus-visible {
    color: #d7e6ff;
    background: #16263f;
}

body.theme-dark.dashboard-page.admin-console .dashboard-topbar {
    background: #101b2f;
    border-color: #22314c;
    box-shadow: 0 10px 26px rgba(2, 8, 20, 0.4);
}

body.theme-dark.dashboard-page.admin-console .dashboard-page-title {
    color: #e6edf7;
}

body.theme-dark.dashboard-page.admin-console .dashboard-page-subtitle,
body.theme-dark.dashboard-page.admin-console .dashboard-section-hint,
body.theme-dark.dashboard-page.admin-console .dashboard-panel-hint {
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-eyebrow {
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-utility-chip {
    background: #122038;
    border-color: #2b3c5a;
    color: #b3c6e5;
}

body.theme-dark.dashboard-page.admin-console .admin-utility-chip i {
    color: #9eb7df;
}

body.theme-dark.dashboard-page.admin-console .dashboard-profile-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark.dashboard-page.admin-console .dashboard-profile-btn:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-profile-btn:focus-visible {
    background: #16263f;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark.dashboard-page.admin-console .dashboard-avatar {
    background: #1a2c4f;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-card-tag {
    background: #1a2b4a;
    color: #aecdff;
    border-color: #2b3d61;
}

body.theme-dark.dashboard-page.admin-console .admin-status-item {
    color: #d0def3;
}

body.theme-dark.dashboard-page.admin-console .admin-table {
    border-color: #25344f;
}

body.theme-dark.dashboard-page.admin-console .admin-table thead th {
    background: #122038;
    border-bottom-color: #2b3c5a;
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-table td {
    color: #d0def3;
    border-top-color: #25344f;
}

body.theme-dark.dashboard-page.admin-console .admin-table tbody tr:hover td {
    background: #16263f;
}

body.theme-dark.dashboard-page.admin-console .admin-table tbody tr.is-selected td {
    background: #14243d;
}

body.theme-dark.dashboard-page.admin-console .admin-table tbody tr.is-selected td:first-child {
    box-shadow: inset 3px 0 0 #7eafff;
}

body.theme-dark.dashboard-page.admin-console .admin-table .admin-table-empty td {
    color: #9eb0d3;
    background: #0f1c33;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.approve {
    background: #142a47;
    border-color: #2f446e;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reject,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.delete {
    background: #2a1b23;
    border-color: #4a2a34;
    color: #f1a2a2;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.suspend,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.deactivate {
    background: #3a2a1a;
    border-color: #5c4528;
    color: #f0c27a;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reactivate,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.detail {
    background: #142a47;
    border-color: #2f446e;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-review-card,
body.theme-dark.dashboard-page.admin-console .admin-action-tile,
body.theme-dark.dashboard-page.admin-console .admin-aging-item,
body.theme-dark.dashboard-page.admin-console .admin-approval-person,
body.theme-dark.dashboard-page.admin-console .admin-detail-list div,
body.theme-dark.dashboard-page.admin-console .admin-notification-preview {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark.dashboard-page.admin-console .admin-review-card:hover,
body.theme-dark.dashboard-page.admin-console .admin-review-card:focus-visible,
body.theme-dark.dashboard-page.admin-console .admin-action-tile:hover,
body.theme-dark.dashboard-page.admin-console .admin-action-tile:focus-visible {
    background: #16263f;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark.dashboard-page.admin-console .admin-review-icon,
body.theme-dark.dashboard-page.admin-console .admin-action-tile span,
body.theme-dark.dashboard-page.admin-console .admin-approval-avatar,
body.theme-dark.dashboard-page.admin-console .admin-notification-preview span {
    background: #1a2b4a;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-review-copy strong,
body.theme-dark.dashboard-page.admin-console .admin-action-tile strong,
body.theme-dark.dashboard-page.admin-console .admin-aging-item strong,
body.theme-dark.dashboard-page.admin-console .admin-audit-person strong,
body.theme-dark.dashboard-page.admin-console .admin-approval-person strong,
body.theme-dark.dashboard-page.admin-console .admin-detail-list dd,
body.theme-dark.dashboard-page.admin-console .admin-notification-preview p {
    color: #e6edf7;
}

body.theme-dark.dashboard-page.admin-console .admin-review-copy small,
body.theme-dark.dashboard-page.admin-console .admin-action-tile small,
body.theme-dark.dashboard-page.admin-console .admin-aging-item span,
body.theme-dark.dashboard-page.admin-console .admin-aging-item small,
body.theme-dark.dashboard-page.admin-console .admin-audit-person small,
body.theme-dark.dashboard-page.admin-console .admin-approval-person small,
body.theme-dark.dashboard-page.admin-console .admin-detail-list dt {
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-review-action {
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-review-card.overdue .admin-review-icon,
body.theme-dark.dashboard-page.admin-console .admin-review-card.inactive .admin-review-icon {
    background: #2a1b23;
    color: #f1a2a2;
}

body.theme-dark.dashboard-page.admin-console .admin-review-card.load .admin-review-icon {
    background: #3a2a1a;
    color: #f0c27a;
}

body.theme-dark.dashboard-page.admin-console .admin-approval-aging {
    border-top-color: #25344f;
}

body.theme-dark.dashboard-page.admin-console .admin-activity-empty,
body.theme-dark.dashboard-page.admin-console .admin-empty-state {
    background: #0f1c33;
    border-color: #2a3c5a;
    color: #9eb0d3;
}

@media (max-width: 1199.98px) {
    .admin-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .admin-review-card,
    .admin-action-tile {
        grid-template-columns: 1fr;
    }

    .admin-review-icon,
    .admin-action-tile span {
        width: 36px;
        height: 36px;
    }

    .admin-review-action {
        justify-self: start;
    }

    .admin-approval-aging {
        grid-template-columns: 1fr;
    }
}
/* Responsive adjustments for dashboard Recent Client Activity toolbar to prevent clashing on 15" screens */
@media (max-width: 1680px) {
    .dashboard-table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .dashboard-table-left-controls {
        max-width: 100%;
        width: 100%;
    }
    .dashboard-table-filters {
        width: 100%;
    }
}

/* Client details password visibility styles */
.client-details-value-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.client-details-toggle-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #6b82af;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

body.theme-dark.dashboard-page.admin-console .dashboard-logo,
body.theme-dark.dashboard-page.admin-console .dashboard-logo-text {
    color: #86b2ff;
}

body.theme-dark.dashboard-page.admin-console .dashboard-sidebar-label {
    color: #91a7c9;
}

body.theme-dark.dashboard-page.admin-console .dashboard-nav-item {
    color: #a7bedf;
}

body.theme-dark.dashboard-page.admin-console .dashboard-nav-item.active {
    color: #d7e6ff;
    background: #1a2b4a;
    box-shadow: inset 0 0 0 1px #2b3d61;
}

body.theme-dark.dashboard-page.admin-console .dashboard-nav-item:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-nav-item:focus-visible {
    color: #d7e6ff;
    background: #16263f;
}

body.theme-dark.dashboard-page.admin-console .dashboard-landing-link {
    color: #a1b5d9;
}

body.theme-dark.dashboard-page.admin-console .dashboard-landing-link:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-landing-link:focus-visible {
    color: #d7e6ff;
    background: #16263f;
}

body.theme-dark.dashboard-page.admin-console .dashboard-topbar {
    background: #101b2f;
    border-color: #22314c;
    box-shadow: 0 10px 26px rgba(2, 8, 20, 0.4);
}

body.theme-dark.dashboard-page.admin-console .dashboard-page-title {
    color: #e6edf7;
}

body.theme-dark.dashboard-page.admin-console .dashboard-page-subtitle,
body.theme-dark.dashboard-page.admin-console .dashboard-section-hint,
body.theme-dark.dashboard-page.admin-console .dashboard-panel-hint {
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-eyebrow {
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-utility-chip {
    background: #122038;
    border-color: #2b3c5a;
    color: #b3c6e5;
}

body.theme-dark.dashboard-page.admin-console .admin-utility-chip i {
    color: #9eb7df;
}

body.theme-dark.dashboard-page.admin-console .dashboard-profile-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #d0def3;
}

body.theme-dark.dashboard-page.admin-console .dashboard-profile-btn:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-profile-btn:focus-visible {
    background: #16263f;
    border-color: #3a5490;
    color: #d7e6ff;
}

body.theme-dark.dashboard-page.admin-console .dashboard-avatar {
    background: #1a2c4f;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-card-tag {
    background: #1a2b4a;
    color: #aecdff;
    border-color: #2b3d61;
}

body.theme-dark.dashboard-page.admin-console .admin-status-item {
    color: #d0def3;
}

body.theme-dark.dashboard-page.admin-console .admin-table {
    border-color: #25344f;
}

body.theme-dark.dashboard-page.admin-console .admin-table thead th {
    background: #122038;
    border-bottom-color: #2b3c5a;
    color: #9eb0d3;
}

body.theme-dark.dashboard-page.admin-console .admin-table td {
    color: #d0def3;
    border-top-color: #25344f;
}

body.theme-dark.dashboard-page.admin-console .admin-table tbody tr:hover td {
    background: #16263f;
}

body.theme-dark.dashboard-page.admin-console .admin-table .admin-table-empty td {
    color: #9eb0d3;
    background: #0f1c33;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn {
    background: #0f1c33;
    border-color: #25344f;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.approve {
    background: #142a47;
    border-color: #2f446e;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reject,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.delete {
    background: #2a1b23;
    border-color: #4a2a34;
    color: #f1a2a2;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.suspend,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.deactivate {
    background: #3a2a1a;
    border-color: #5c4528;
    color: #f0c27a;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reactivate,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.detail {
    background: #142a47;
    border-color: #2f446e;
    color: #aecdff;
}

body.theme-dark.dashboard-page.admin-console .admin-activity-empty,
body.theme-dark.dashboard-page.admin-console .admin-empty-state {
    background: #0f1c33;
    border-color: #2a3c5a;
    color: #9eb0d3;
}
/* Responsive adjustments for dashboard Recent Client Activity toolbar to prevent clashing on 15" screens */
@media (max-width: 1680px) {
    .dashboard-table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .dashboard-table-left-controls {
        max-width: 100%;
        width: 100%;
    }
    .dashboard-table-filters {
        width: 100%;
    }
}

/* Client details password visibility styles */
.client-details-value-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.client-details-toggle-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #6b82af;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.client-details-toggle-btn:hover {
    background-color: #eaf1ff;
    color: #2b56ad;
}

body.theme-dark .client-details-toggle-btn:hover {
    background-color: #192a4a;
    color: #8bb3ff;
}

/* Core CSS Tooltip Styling */
.safebooks-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 0.38rem;
    vertical-align: middle;
}

.safebooks-tooltip-wrap i {
    font-size: 0.82rem;
    color: #8fa0c2;
    transition: color 0.16s ease;
}

.safebooks-tooltip-wrap:hover i {
    color: #1f5ed9;
}

.safebooks-tooltip-content {
    visibility: hidden;
    width: 220px;
    background-color: #1e293b;
    color: #f8fafc;
    text-align: left;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    position: absolute;
    z-index: 1070;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    pointer-events: none;
    white-space: normal;
}

.safebooks-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.safebooks-tooltip-wrap:hover .safebooks-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

body.theme-dark .safebooks-tooltip-content {
    background-color: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
}

body.theme-dark .safebooks-tooltip-content::after {
    border-color: #0f172a transparent transparent transparent;
}

/* =====================================================================
   ADMIN CONSOLE DARK MODE ADAPTATIONS
   ===================================================================== */

/* 1. Admin Tables (Audit Log, Approvals, Bookkeepers, Dashboard) */
body.theme-dark .admin-table,
body.theme-dark.dashboard-page.admin-console .admin-table {
    --bs-table-bg: #0f1c33;
    --bs-table-color: #d0def3;
    --bs-table-hover-bg: #16263f;
    --bs-table-border-color: #1f304d;
    border-color: #1f304d;
    background-color: #0f1c33;
}

body.theme-dark .admin-table thead th,
body.theme-dark.dashboard-page.admin-console .admin-table thead th {
    background-color: #122038 !important;
    border-bottom-color: #2b3c5a;
    color: #9eb0d3;
}

body.theme-dark .admin-table td,
body.theme-dark .admin-table th,
body.theme-dark .admin-table tbody tr td,
body.theme-dark.dashboard-page.admin-console .admin-table td,
body.theme-dark.dashboard-page.admin-console .admin-table th,
body.theme-dark.dashboard-page.admin-console .admin-table tbody tr td {
    background-color: #0f1c33 !important;
    color: #d0def3;
    border-top-color: #1f304d;
    border-bottom-color: #1f304d;
}

body.theme-dark .admin-table tbody tr:hover td,
body.theme-dark.dashboard-page.admin-console .admin-table tbody tr:hover td {
    background-color: #16263f !important;
    color: #ffffff;
}

body.theme-dark .admin-table tbody tr.is-selected td,
body.theme-dark.dashboard-page.admin-console .admin-table tbody tr.is-selected td {
    background-color: #14243d !important;
    color: #ffffff;
}

body.theme-dark .admin-table tbody tr.is-selected td:first-child,
body.theme-dark.dashboard-page.admin-console .admin-table tbody tr.is-selected td:first-child {
    box-shadow: inset 3px 0 0 #7eafff;
}

body.theme-dark .admin-table .admin-table-empty td,
body.theme-dark.dashboard-page.admin-console .admin-table .admin-table-empty td {
    color: #9eb0d3;
    background-color: #0f1c33 !important;
}

/* Bookkeeper Names & Table Row Text in Dark Mode */
body.theme-dark .admin-row-main,
body.theme-dark .admin-row-main span,
body.theme-dark.dashboard-page.admin-console .admin-row-main,
body.theme-dark.dashboard-page.admin-console .admin-row-main span {
    color: #f1f5f9 !important;
}

body.theme-dark .admin-row-subnote,
body.theme-dark.dashboard-page.admin-console .admin-row-subnote {
    color: #9eb0d3 !important;
}

body.theme-dark .admin-deactivation-trigger {
    background-color: #2b1f0d !important;
    color: #fbbf24 !important;
    border: 1px solid #78350f !important;
}

body.theme-dark .admin-deactivation-trigger:hover {
    background-color: #3d2a0d !important;
    border-color: #b45309 !important;
    color: #fef3c7 !important;
}

/* 2. Audit Log Content Text & Badges */
body.theme-dark .admin-audit-message span,
body.theme-dark.dashboard-page.admin-console .admin-audit-message span {
    color: #d0def3;
}

body.theme-dark .admin-audit-decision-note,
body.theme-dark.dashboard-page.admin-console .admin-audit-decision-note {
    color: #8da6cf;
}

body.theme-dark .admin-status-chip.pending,
body.theme-dark.dashboard-page.admin-console .admin-status-chip.pending {
    background: #3a2203;
    color: #fcd34d;
    border-color: #78350f;
}

body.theme-dark .admin-status-chip.approved,
body.theme-dark.dashboard-page.admin-console .admin-status-chip.approved {
    background: #043f30;
    color: #6ee7b7;
    border-color: #065f46;
}

body.theme-dark .admin-status-chip.rejected,
body.theme-dark.dashboard-page.admin-console .admin-status-chip.rejected,
body.theme-dark .admin-status-chip.suspended,
body.theme-dark.dashboard-page.admin-console .admin-status-chip.suspended {
    background: #440a18;
    color: #fda4af;
    border-color: #881337;
}

body.theme-dark .admin-status-chip.inactive,
body.theme-dark.dashboard-page.admin-console .admin-status-chip.inactive {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

/* 3. Pagination Controls (Approvals & Audit Log) */
body.theme-dark .admin-audit-page-button,
body.theme-dark.dashboard-page.admin-console .admin-audit-page-button {
    background: #152542;
    border: 1px solid #2b3f63;
    color: #93c5fd;
}

body.theme-dark .admin-audit-page-button:hover:not(:disabled),
body.theme-dark.dashboard-page.admin-console .admin-audit-page-button:hover:not(:disabled) {
    background: #1f5ed9;
    border-color: #1f5ed9;
    color: #ffffff;
}

body.theme-dark .admin-audit-page-button:disabled,
body.theme-dark.dashboard-page.admin-console .admin-audit-page-button:disabled {
    background: #0f1c33;
    border-color: #1c2b42;
    color: #435b7f;
    opacity: 0.55;
    cursor: not-allowed;
}

body.theme-dark .admin-approval-pagination,
body.theme-dark .admin-audit-pagination,
body.theme-dark .admin-bookkeeper-pagination,
body.theme-dark.dashboard-page.admin-console .admin-approval-pagination,
body.theme-dark.dashboard-page.admin-console .admin-audit-pagination,
body.theme-dark.dashboard-page.admin-console .admin-bookkeeper-pagination {
    border-top-color: #1f304d;
    color: #9eb0d3;
}

body.theme-dark .admin-approval-pagination > span,
body.theme-dark .admin-approval-page-actions > span,
body.theme-dark .admin-audit-pagination > span,
body.theme-dark .admin-bookkeeper-pagination > span,
body.theme-dark .admin-bookkeeper-page-actions > span,
body.theme-dark.dashboard-page.admin-console .admin-approval-pagination > span,
body.theme-dark.dashboard-page.admin-console .admin-approval-page-actions > span,
body.theme-dark.dashboard-page.admin-console .admin-audit-pagination > span,
body.theme-dark.dashboard-page.admin-console .admin-bookkeeper-pagination > span,
body.theme-dark.dashboard-page.admin-console .admin-bookkeeper-page-actions > span {
    color: #9eb0d3 !important;
}

/* 4. Audit Log Date Filters */
body.theme-dark .admin-audit-date-filters label > span,
body.theme-dark.dashboard-page.admin-console .admin-audit-date-filters label > span {
    color: #9eb0d3;
}

body.theme-dark .admin-audit-date-filters .form-control,
body.theme-dark.dashboard-page.admin-console .admin-audit-date-filters .form-control {
    background: #0f1c33;
    border-color: #25344f;
    color: #e6edf7;
    color-scheme: dark;
}

/* 5. System Settings Field Labels & Toggle Rows */
body.theme-dark .settings-field-label,
body.theme-dark.dashboard-page.admin-console .settings-field-label {
    color: #e2ecfb;
}

body.theme-dark .settings-field-hint,
body.theme-dark.dashboard-page.admin-console .settings-field-hint {
    color: #94aacd;
}

body.theme-dark .settings-toggle-row,
body.theme-dark.dashboard-page.admin-console .settings-toggle-row {
    border-bottom-color: #1e304f;
}

/* 6. Admin Console Outline Buttons (Change Password, Enable 2FA, Modal Cancel, Print, Copy) */
body.theme-dark.dashboard-page.admin-console .dashboard-action-btn.outline,
body.theme-dark .dashboard-action-btn.outline {
    background: #13233c !important;
    border: 1px solid #2b3f63 !important;
    color: #93c5fd !important;
}

body.theme-dark.dashboard-page.admin-console .dashboard-action-btn.outline:hover,
body.theme-dark.dashboard-page.admin-console .dashboard-action-btn.outline:focus-visible,
body.theme-dark .dashboard-action-btn.outline:hover,
body.theme-dark .dashboard-action-btn.outline:focus-visible {
    background: #1f355c !important;
    border-color: #3b598d !important;
    color: #ffffff !important;
}

body.theme-dark.dashboard-page.admin-console .dashboard-action-btn.outline:disabled,
body.theme-dark.dashboard-page.admin-console .dashboard-action-btn:disabled,
body.theme-dark .dashboard-action-btn.outline:disabled,
body.theme-dark .dashboard-action-btn:disabled {
    background: #0f1c33 !important;
    border-color: #1f2d45 !important;
    color: #4b6287 !important;
    opacity: 0.55;
    cursor: not-allowed;
}

/* 7. Modal Close Buttons in Dark Mode */
body.theme-dark .btn-close,
body.theme-dark.dashboard-page.admin-console .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.75;
}

body.theme-dark .btn-close:hover,
body.theme-dark.dashboard-page.admin-console .btn-close:hover {
    opacity: 1;
}

/* 8. Password Requirements Popover in Dark Mode */
body.theme-dark .auth-input:disabled,
body.theme-dark .auth-input[disabled] {
    background-color: #0d1728 !important;
    border-color: #1e2c44 !important;
    color: #556d94 !important;
    cursor: not-allowed !important;
}

body.theme-dark .auth-password-field:has(.auth-input:disabled),
body.theme-dark .auth-password-field:has(.form-control:disabled),
body.theme-dark .auth-password-field.is-disabled {
    background-color: #0d1728 !important;
    border-color: #1e2c44 !important;
    box-shadow: none !important;
}

/* Invalid / error state for auth inputs & password fields in Dark Mode */
body.theme-dark .auth-input.is-invalid {
    border-color: #f87171 !important;
    background-color: #1a1017 !important;
    color: #fee2e2 !important;
    background-image: none !important;
}

body.theme-dark .auth-input.is-invalid:focus {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.25) !important;
}

body.theme-dark .auth-password-field.is-invalid,
body.theme-dark .auth-password-field:has(.auth-input.is-invalid),
body.theme-dark .auth-password-field:has(.form-control.is-invalid) {
    border-color: #f87171 !important;
    background-color: #1a1017 !important;
}

body.theme-dark .auth-password-field.is-invalid:focus-within,
body.theme-dark .auth-password-field:has(.auth-input.is-invalid):focus-within,
body.theme-dark .auth-password-field:has(.form-control.is-invalid):focus-within {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.25) !important;
}

body.theme-dark .auth-password-field:has(.auth-input:disabled) .auth-input,
body.theme-dark .auth-password-field:has(.form-control:disabled) .auth-input,
body.theme-dark .auth-password-field.is-disabled .auth-input,
body.theme-dark .auth-password-field .auth-input:disabled {
    background-color: transparent !important;
    color: #556d94 !important;
    cursor: not-allowed !important;
}

body.theme-dark .auth-password-field:has(.auth-input:disabled) .auth-password-toggle,
body.theme-dark .auth-password-field:has(.form-control:disabled) .auth-password-toggle,
body.theme-dark .auth-password-field.is-disabled .auth-password-toggle,
body.theme-dark .auth-password-toggle:disabled,
body.theme-dark .auth-password-toggle[disabled] {
    color: #4b6287 !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

body.theme-dark .auth-password-field.has-requirements .auth-password-requirements {
    background: #0d182b;
    border-top: 1px solid #1f304d;
}

body.theme-dark .auth-password-requirements-title {
    color: #94aacd;
}

body.theme-dark .auth-requirement-chip {
    border-color: #25344f;
    background: #122038;
    color: #94aacd;
}

body.theme-dark .auth-requirement-chip.is-valid {
    border-color: #065f46;
    background: #043f30;
    color: #6ee7b7;
}

/* 9. Admin Console Modals Dark Mode (Approvals & General Admin Modals) */
body.theme-dark.dashboard-page.admin-console .modal-content,
body.theme-dark .modal-content {
    background-color: #101b2f !important;
    border: 1px solid #22314c !important;
    color: #e6edf7 !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65) !important;
}

body.theme-dark.dashboard-page.admin-console .modal-header,
body.theme-dark .modal-header {
    border-bottom: 1px solid #1f304d !important;
}

body.theme-dark.dashboard-page.admin-console .modal-title,
body.theme-dark .modal-title {
    color: #e6edf7 !important;
    font-weight: 700;
}

body.theme-dark.dashboard-page.admin-console .modal-footer,
body.theme-dark .modal-footer {
    border-top: 1px solid #1f304d !important;
}

/* Approvals Details Modal Dark Mode */
body.theme-dark #approvalDetailsModal .modal-title i {
    color: #60a5fa !important;
}

body.theme-dark #approvalDetailsModal .col-md-6.border-end {
    border-color: #1f304d !important;
}

body.theme-dark #approvalDetailsModal #approvalDetailName {
    color: #e6edf7 !important;
}

body.theme-dark #approvalDetailsModal #approvalDetailEmail {
    color: #93c5fd !important;
}

body.theme-dark #approvalDetailsModal .admin-detail-list div {
    background: #0b1526 !important;
    border-color: #1f304d !important;
}

body.theme-dark #approvalDetailsModal .admin-detail-list dt {
    color: #7f98c0 !important;
}

body.theme-dark #approvalDetailsModal .admin-detail-list dd {
    color: #e2ecfb !important;
}

body.theme-dark #approvalDetailsModal #approvalDetailReason {
    background: #231219 !important;
    border: 1px solid #5c202e !important;
    border-left: 4px solid #ef4444 !important;
    color: #fca5a5 !important;
}

/* Approvals Modal: Notification Decision Message Box */
body.theme-dark #approvalDetailsModal .col-md-6 h6.text-muted {
    color: #9eb0d3 !important;
}

body.theme-dark #approvalDetailsModal #approvalNotificationPreview {
    background-color: #0b1526 !important;
    border-color: #1f304d !important;
}

body.theme-dark #approvalDetailsModal #approvalNotificationPreview .text-primary,
body.theme-dark #approvalDetailsModal #approvalNotificationPreview .text-primary i {
    color: #60a5fa !important;
}

body.theme-dark #approvalDetailsModal #approvalNotificationText {
    color: #cbd5e1 !important;
}

/* Approvals Modal Buttons */
body.theme-dark #approvalDetailsModal #approvalDetailRejectBtn {
    background: #2a151d !important;
    border: 1px solid #5c202e !important;
    color: #fca5a5 !important;
    font-weight: 700;
}

body.theme-dark #approvalDetailsModal #approvalDetailRejectBtn:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

body.theme-dark #approvalDetailsModal #approvalDetailApproveBtn {
    background: linear-gradient(145deg, #1d4ed8, #2563eb) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
}

body.theme-dark #approvalDetailsModal #approvalDetailApproveBtn:hover {
    background: linear-gradient(145deg, #1e40af, #1d4ed8) !important;
    border-color: #1d4ed8 !important;
}

/* Approvals Action Confirmation Modal Dark Mode */
body.theme-dark #approvalsActionModal #approvalsActionModalMessage {
    color: #cbd5e1 !important;
}

body.theme-dark #approvalsActionModal label {
    color: #9eb0d3 !important;
    font-weight: 700;
}

body.theme-dark #approvalsActionModal #approvalsActionReasonInput {
    background: #0b1526 !important;
    border-color: #1f304d !important;
    color: #e6edf7 !important;
}

body.theme-dark #approvalsActionModal #approvalsActionReasonInput:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2) !important;
}

body.theme-dark #approvalsActionModal .form-text {
    color: #7f98c0 !important;
}

/* 10. Bookkeepers Modals Dark Mode */
body.theme-dark #deactivationRequestModal label.text-muted,
body.theme-dark #deactivationRequestModal label {
    color: #9eb0d3 !important;
    font-weight: 700;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalName {
    color: #e6edf7 !important;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalDate {
    color: #cbd5e1 !important;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalReason {
    background-color: #0b1526 !important;
    border: 1px solid #78350f !important;
    border-left: 4px solid #f59e0b !important;
    color: #fef3c7 !important;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalDeclineBtn {
    background: #2a151d !important;
    border: 1px solid #5c202e !important;
    color: #fca5a5 !important;
    font-weight: 700;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalDeclineBtn:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalApproveBtn {
    background: #2b1f0d !important;
    border: 1px solid #78350f !important;
    color: #fcd34d !important;
    font-weight: 700;
}

body.theme-dark #deactivationRequestModal #deactivationRequestModalApproveBtn:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

/* Bookkeepers Action Confirmation Modal Dark Mode */
body.theme-dark #bookkeeperActionModal #bookkeeperActionModalMessage {
    color: #cbd5e1 !important;
}

body.theme-dark #bookkeeperActionModal label {
    color: #9eb0d3 !important;
    font-weight: 700;
}

body.theme-dark #bookkeeperActionModal #bookkeeperActionPasswordInput {
    background-color: #0b1526 !important;
    border-color: #1f304d !important;
    color: #e6edf7 !important;
}

body.theme-dark #bookkeeperActionModal #bookkeeperActionPasswordInput:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2) !important;
}

body.theme-dark #bookkeeperActionModal #bookkeeperActionPasswordInput::placeholder {
    color: #64748b !important;
}

body.theme-dark #bookkeeperActionModal .form-text {
    color: #7f98c0 !important;
}

body.theme-dark #bookkeeperActionModal #bookkeeperActionModalWarning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fcd34d !important;
}

/* Bookkeeper Action Modal Password Input & Eye Toggle */
#bookkeeperActionModal .auth-password-wrap {
    position: relative;
    display: block;
}

#bookkeeperActionModal .auth-password-wrap .form-control {
    padding-right: 2.85rem !important;
}

/* Invalid State Styling in Bookkeeper Action Modal */
#bookkeeperActionModal .auth-password-wrap .form-control.is-invalid {
    border-color: #ef4444 !important;
    background-image: none !important;
}

#bookkeeperActionModal .auth-password-wrap .form-control.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

body.theme-dark #bookkeeperActionModal .auth-password-wrap .form-control.is-invalid {
    border-color: #f87171 !important;
    background-color: #1c1017 !important;
    color: #fee2e2 !important;
    background-image: none !important;
}

body.theme-dark #bookkeeperActionModal .auth-password-wrap .form-control.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.3) !important;
}

#bookkeeperActionModal .invalid-feedback {
    display: none;
    margin-top: 0.45rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #dc2626;
}

body.theme-dark #bookkeeperActionModal .invalid-feedback {
    color: #fca5a5 !important;
}

#bookkeeperActionModal .invalid-feedback.is-visible {
    display: block !important;
}

/* Disabled Input and Toggle Styling while Submitting */
#bookkeeperActionModal #bookkeeperActionPasswordInput:disabled {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

body.theme-dark #bookkeeperActionModal #bookkeeperActionPasswordInput:disabled {
    background-color: #070e1a !important;
    border-color: #16243b !important;
    color: #4b6287 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

#bookkeeperActionModal .auth-password-toggle:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

#bookkeeperActionModal .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b82af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

#bookkeeperActionModal .auth-password-toggle:hover,
#bookkeeperActionModal .auth-password-toggle:focus-visible {
    background: #eaf1ff;
    color: #2b56ad;
    outline: none;
}

#bookkeeperActionModal .auth-password-toggle i {
    font-size: 1.15rem;
    line-height: 1;
    pointer-events: none;
}

body.theme-dark #bookkeeperActionModal .auth-password-toggle {
    color: #7d96bd;
}

body.theme-dark #bookkeeperActionModal .auth-password-toggle:hover,
body.theme-dark #bookkeeperActionModal .auth-password-toggle:focus-visible {
    background: #1a2c4d;
    color: #c2d8fc;
}

body.theme-dark #bookkeeperActionModal .auth-password-toggle:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Modal Confirm Button Disabled States */
#bookkeeperActionModal .dashboard-action-btn.primary:disabled {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

body.theme-dark #bookkeeperActionModal .dashboard-action-btn.primary:disabled {
    background: #101d33 !important;
    border-color: #1f2f4a !important;
    color: #4b6287 !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

body.theme-dark .dashboard-action-btn.reject {
    background: #2a151d !important;
    border: 1px solid #5c202e !important;
    color: #fca5a5 !important;
}

body.theme-dark .dashboard-action-btn.reject:hover,
body.theme-dark .dashboard-action-btn.reject:focus-visible {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

body.theme-dark .dashboard-action-btn.deactivate {
    background: #2b1f0d !important;
    border: 1px solid #78350f !important;
    color: #fcd34d !important;
}

body.theme-dark .dashboard-action-btn.deactivate:hover,
body.theme-dark .dashboard-action-btn.deactivate:focus-visible {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

/* 11. Admin Table Action Buttons (Bookkeepers, Approvals) Dark Mode */
body.theme-dark.dashboard-page.admin-console .admin-action-btn,
body.theme-dark .admin-action-btn {
    background: #111d33;
    border: 1px solid #223454;
    color: #aecdff;
    white-space: nowrap;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn:disabled,
body.theme-dark .admin-action-btn:disabled {
    background: #0b1526 !important;
    border-color: #1c2b42 !important;
    color: #485c7d !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.deactivate.is-enabled,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.suspend.is-enabled,
body.theme-dark .admin-action-btn.deactivate.is-enabled,
body.theme-dark .admin-action-btn.suspend.is-enabled {
    background: #2b1f0d !important;
    border-color: #78350f !important;
    color: #fbbf24 !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.deactivate.is-enabled:hover,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.suspend.is-enabled:hover,
body.theme-dark .admin-action-btn.deactivate.is-enabled:hover,
body.theme-dark .admin-action-btn.suspend.is-enabled:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reactivate.is-enabled,
body.theme-dark .admin-action-btn.reactivate.is-enabled {
    background: #0f2442 !important;
    border-color: #1e40af !important;
    color: #93c5fd !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reactivate.is-enabled:hover,
body.theme-dark .admin-action-btn.reactivate.is-enabled:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.approve.is-enabled,
body.theme-dark .admin-action-btn.approve.is-enabled {
    background: #043f30 !important;
    border-color: #065f46 !important;
    color: #6ee7b7 !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.approve.is-enabled:hover,
body.theme-dark .admin-action-btn.approve.is-enabled:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reject.is-enabled,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.delete.is-enabled,
body.theme-dark .admin-action-btn.reject.is-enabled,
body.theme-dark .admin-action-btn.delete.is-enabled {
    background: #2a151d !important;
    border-color: #5c202e !important;
    color: #fca5a5 !important;
}

body.theme-dark.dashboard-page.admin-console .admin-action-btn.reject.is-enabled:hover,
body.theme-dark.dashboard-page.admin-console .admin-action-btn.delete.is-enabled:hover,
body.theme-dark .admin-action-btn.reject.is-enabled:hover,
body.theme-dark .admin-action-btn.delete.is-enabled:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}




