/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Mukta:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0066cc;
    --primary-hover: #005bb5;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border: #e0e0e0;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', 'Mukta', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding-top: 60px;
    /* For fixed nav */
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.container-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: #ebf8ff;
    color: var(--primary);
}

.notification-menu {
    position: relative;
    flex: 0 0 auto;
}

.notification-bell {
    position: relative;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notification-bell:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
}

.bell-symbol {
    font-size: 1.1rem;
    line-height: 1;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    width: 340px;
    max-height: 430px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    z-index: 2500;
    color: var(--text-dark);
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown-header,
.notification-footer {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.notification-dropdown-header {
    border-bottom: 1px solid var(--border);
}

.notification-dropdown-header span {
    color: var(--text-muted);
}

.notification-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    border-left: 4px solid var(--primary);
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.notification-item.warning,
.notification-panel-item.warning,
.toast-card.warning {
    border-left-color: #f59e0b;
}

.notification-item.danger,
.notification-panel-item.danger,
.toast-card.danger {
    border-left-color: var(--danger);
}

.notification-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notification-message {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
    white-space: nowrap;
}

.notification-actions a {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 10px;
    text-decoration: none;
}

.notification-actions a:last-child {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.notification-footer {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.notification-footer {
    border-top: 1px solid var(--border);
    justify-content: center;
}

.notification-empty {
    padding: 18px;
    color: var(--text-muted);
    text-align: center;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #edf2f7;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-light {
    background: white;
    color: var(--text-dark);
    border-color: var(--border);
}

.btn-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.w-100 {
    width: 100%;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

/* Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 10px;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning,
.badge-status {
    background: #fef3c7;
    color: #92400e;
}

/* Dashboard Cards */
.stat-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--success);
}

/* Messages */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.toast-stack {
    position: fixed;
    top: 78px;
    right: 20px;
    width: min(360px, calc(100vw - 40px));
    z-index: 2200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-card {
    position: relative;
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
    padding: 14px 38px 14px 16px;
    animation: toastIn 0.35s ease-out;
}

.toast-card strong,
.toast-card span,
.toast-card a {
    display: block;
}

.toast-card span {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.88rem;
}

.toast-card a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 8px;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

@keyframes toastIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-panel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-panel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid #e6edf5;
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.notification-panel-copy {
    min-width: 0;
}

.notification-panel-copy .notification-title {
    font-size: 1rem;
}

.notification-panel-copy .notification-message {
    font-size: 0.95rem;
    color: #4b5563;
}

.notification-panel-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end;
    margin-left: auto;
}

button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.renewal-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.document-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.workflow-steps span {
    background: #ebf8ff;
    color: var(--primary);
    border: 1px solid #cfe8ff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 10px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.document-preview-content {
    max-width: 960px;
    width: min(96vw, 960px);
    margin: 4vh auto;
    padding: 22px;
}

.document-preview-body {
    min-height: 320px;
}

.document-preview-image,
.document-preview-frame {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.document-preview-image {
    max-height: 75vh;
    object-fit: contain;
}

.document-preview-frame {
    height: 75vh;
}

.document-preview-fallback {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.document-preview-fallback p {
    margin: 0 0 14px;
    color: #475569;
}

.settings-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.settings-hero h1 {
    margin: 0 0 6px;
}

.settings-hero p {
    margin: 0;
    color: #64748b;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.settings-grid-lists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-card {
    padding: 22px;
}

.settings-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.settings-form-actions {
    display: flex;
    align-items: end;
}

.settings-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-bullet-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.settings-bullet-list div span {
    color: #64748b;
    text-align: right;
}

.settings-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-template-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.user-role-row-form {
    display: contents;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
}

.form-group-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }

    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .container-fluid,
    .nav-links,
    .notification-panel-item {
        flex-wrap: wrap;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .notification-dropdown {
        right: auto;
        left: -220px;
        width: min(340px, calc(100vw - 30px));
    }

    .grid-2,
    .grid-3,
    .renewal-layout {
        grid-template-columns: 1fr;
    }

    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .notification-panel-actions {
        margin-top: 12px;
    }
}

/* Reference dashboard layout */
* {
    box-sizing: border-box;
}

body {
    background: #f6f8fb;
    color: #07111f;
    padding-top: 74px;
}

.navbar {
    height: 72px;
    border-bottom: 1px solid #dce3ec;
    box-shadow: none;
}

.container-fluid {
    max-width: 1540px;
    padding: 0 8px;
}

.container {
    max-width: 1540px;
    margin: 36px auto 22px;
    padding: 0 8px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #0b58c5;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.45rem;
}

.brand-title,
.brand-subtitle {
    display: block;
    line-height: 1.1;
}

.brand-title {
    color: #0b58c5;
    font-size: 1rem;
    font-weight: 800;
}

.brand-subtitle {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-top: 4px;
}

.nav-links {
    flex: 1;
    justify-content: center;
    gap: 4px;
}

.nav-link {
    border-radius: 12px;
    color: #556170;
    font-weight: 700;
    padding: 12px 16px;
    font-size: 0.98rem;
}

.nav-link:hover,
.nav-link.active {
    background: #e8f1ff;
    color: #18375d;
}

.nav-actions {
    min-width: 210px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.notification-bell {
    width: 46px;
    height: 46px;
    border: 0;
    background: #eef4fb;
}

.notification-count {
    top: -3px;
    right: -3px;
    background: #ef4444;
}

.logout-link {
    color: #ef2f2f;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-hero {
    margin-bottom: 30px;
}

.dashboard-hero h1 {
    font-size: 2rem;
    margin: 0 0 6px;
    letter-spacing: -0.05em;
}

.dashboard-hero p {
    color: #475569;
    font-size: 0.98rem;
    margin: 0;
}

.dashboard-hero strong {
    color: #0b58c5;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.metric-card,
.panel-card {
    background: #fff;
    border: 1px solid #dde5ef;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.metric-card {
    min-height: 176px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.metric-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric-card-link:hover {
    transform: translateY(-2px);
    border-color: #c9d7e7;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.metric-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-icon.purple {
    background: #eee9ff;
    color: #4f36ff;
}

.metric-icon.green {
    background: #dcf8ef;
    color: #009c61;
}

.metric-icon.cyan {
    background: #e2f7ff;
    color: #0097d7;
}

.metric-icon.orange {
    background: #fff1df;
    color: #e27500;
}

.metric-icon.red {
    background: #ffe3e3;
    color: #cf2e2e;
}

.metric-value {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.metric-label {
    color: #475569;
    font-size: 1rem;
    margin-top: 6px;
}

.collection-banner {
    min-height: 160px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0758c9, #0554bd);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(5, 84, 189, 0.28);
}

/* Compact responsive dashboard overrides */
.collection-banner {
    min-height: 160px;
    padding: 30px;
}

.collection-label {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.collection-amount {
    font-size: 3rem;
}

.collection-subtitle {
    font-size: 1rem;
}

.collection-action {
    font-size: 1rem;
    padding: 14px 22px;
}

@media (max-width: 1400px) {
    .container,
    .container-fluid {
        max-width: 100%;
    }

    .collection-banner {
        min-height: 145px;
        padding: 26px 30px;
    }

    .collection-amount {
        font-size: 2.55rem;
    }
}

@media (max-width: 1180px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-split {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 150px;
    }

    .collection-banner {
        min-height: 132px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 122px;
    }

    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .container-fluid {
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand-lockup {
        min-width: 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .nav-actions {
        min-width: auto;
        margin-left: auto;
    }

    .collection-banner {
        min-height: 118px;
        padding: 22px;
        border-radius: 16px;
    }

    .collection-label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .collection-amount {
        font-size: 2.2rem;
    }

    .collection-subtitle {
        font-size: 0.9rem;
    }

    .collection-action {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 146px;
    }

    .container {
        margin-top: 24px;
        padding: 0 12px;
    }

    .dashboard-hero h1 {
        font-size: 1.65rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .metric-card {
        min-height: 118px;
        padding: 16px;
    }

    .metric-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
    }

    .metric-icon svg {
        width: 22px;
        height: 22px;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .collection-banner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px;
    }

    .collection-amount {
        font-size: 2rem;
    }

    .collection-action {
        width: 100%;
        text-align: center;
    }

    .panel-card {
        padding: 18px;
    }

    .panel-header,
    .alert-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.collection-label {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 12px;
}

.collection-amount {
    font-size: 2.75rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.collection-subtitle {
    color: #dbeafe;
    margin-top: 6px;
}

.collection-action {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    font-weight: 800;
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    gap: 20px;
}

.panel-card {
    padding: 26px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.panel-header p {
    margin: 4px 0 0;
    color: #475569;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    background: #eff5fc;
    padding: 16px 18px;
}

.alert-row strong {
    display: block;
    margin-bottom: 4px;
}

.alert-row p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.alert-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.receipt-mini-list {
    display: flex;
    flex-direction: column;
}

.receipt-mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #dce3ec;
}

.receipt-mini-row:first-child {
    padding-top: 0;
}

.receipt-mini-row span {
    display: block;
    color: #334155;
    font-family: monospace;
    font-size: 0.85rem;
    margin-top: 4px;
}

.receipt-amount {
    color: #00a651;
    white-space: nowrap;
}

.panel-link {
    display: inline-block;
    margin-top: 18px;
    color: #0758c9;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1024px) {
    body {
        padding-top: 120px;
    }

    .navbar {
        height: auto;
        padding: 12px 0;
    }

    .container-fluid {
        flex-wrap: wrap;
    }

    .brand-lockup,
    .nav-actions {
        min-width: auto;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-stats,
    .dashboard-split {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        margin-top: 26px;
        padding: 0 16px;
    }

    .dashboard-stats,
    .dashboard-split {
        grid-template-columns: 1fr;
    }

    .collection-banner,
    .panel-header,
    .alert-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Member register reference layout */
.member-register-shell {
    margin-top: -8px;
}

.member-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.member-page-header h1 {
    margin: 0 0 6px;
    color: #020617;
    font-size: 2.1rem;
}

.member-page-header p {
    color: #52647d;
    margin: 0;
}

.member-page-add {
    border-radius: 12px;
    font-weight: 800;
    min-height: 48px;
}

.member-toolbar {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.member-filter-form {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 190px 150px 150px auto;
    gap: 14px;
    align-items: center;
}

.member-search {
    position: relative;
}

.member-search input,
.member-filter-select {
    width: 100%;
    height: 50px;
    border: 1px solid #d7dfeb;
    border-radius: 12px;
    background: #f9fbfe;
    color: #0f172a;
    font: inherit;
    font-size: 1rem;
    padding: 0 18px;
}

.member-search input {
    padding-left: 48px;
}

.member-search input:focus,
.member-filter-select:focus {
    outline: none;
    border-color: #0b64e0;
    box-shadow: 0 0 0 3px rgba(11, 100, 224, 0.12);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.3rem;
}

.member-table-card {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

.member-register-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.member-register-table th {
    background: #f4f7fb;
    color: #46566d;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 18px 20px;
}

.member-register-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #dbe3ee;
    vertical-align: middle;
}

.member-register-table tr:last-child td {
    border-bottom: 0;
}

.member-register-table td strong {
    display: block;
    color: #020617;
    font-weight: 800;
}

.member-register-table td span {
    display: block;
    color: #52647d;
    font-size: 0.88rem;
    margin-top: 4px;
}

.member-register-table .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #334155;
    font-size: 0.9rem;
}

.member-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 12px;
    white-space: nowrap;
}

.member-status.active {
    background: #cdf9df;
    color: #00843d;
}

.member-status.expired,
.member-status.suspended {
    background: #ffe3e8;
    color: #ef4444;
}

.member-status.pending_renewal {
    background: #ffe9a8;
    color: #8a5a00;
}

.member-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.member-actions .btn {
    border-radius: 10px;
    font-weight: 800;
}

/* Member registration */
.member-form-shell {
    margin-top: -8px;
}

.member-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.member-form-header h1 {
    margin: 0 0 6px;
    color: #020617;
    font-size: 2rem;
}

.member-form-header p {
    color: #52647d;
    margin: 0;
}

.member-registration-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.member-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.member-section-card {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.member-section-card h2 {
    margin: 0 0 18px;
    color: #020617;
    font-size: 1.2rem;
}

.member-section-grid,
.member-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading-row p {
    color: #52647d;
    margin: 8px 0 0;
}

.section-chip {
    border-radius: 999px;
    background: #d2f8dc;
    color: #00843d;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 14px;
    white-space: nowrap;
}

.field-help {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 7px;
}

.field-error {
    color: var(--danger);
    display: block;
    margin-top: 6px;
}

.member-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.member-form-actions .btn {
    border-radius: 12px;
    font-weight: 800;
    min-height: 48px;
}

@media (max-width: 1100px) {
    .member-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .member-register-table {
        min-width: 980px;
    }

    .member-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .member-page-header,
    .member-form-header,
    .section-heading-row,
    .member-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .member-filter-form {
        grid-template-columns: 1fr;
    }

    .member-section-grid,
    .member-doc-grid {
        grid-template-columns: 1fr;
    }

    .member-page-add,
    .member-form-actions .btn,
    .member-form-header .btn {
        width: 100%;
    }
}

/* Renewal wizard */
.renew-page {
    margin-top: -8px;
}

.renew-wizard-steps {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wizard-step {
    border: 0;
    border-radius: 999px;
    background: #edf3fb;
    color: #40536b;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.wizard-step.active {
    background: #075bd8;
    color: #fff;
}

.wizard-step.done {
    background: #d2f8dc;
    color: #00a651;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.wizard-step:not(.active) .step-number {
    background: #e2ecf7;
}

.wizard-step.done .step-number {
    background: #fff;
    color: transparent;
    position: relative;
}

.wizard-step.done .step-number::after {
    content: "\2713";
    color: #00a651;
    font-size: 0.8rem;
    position: absolute;
}

.wizard-hidden-fields {
    display: none;
}

.renew-wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
}

.wizard-main-card,
.wizard-summary-card {
    background: #fff;
    border: 1px solid #d8e2ef;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.wizard-main-card {
    min-height: 495px;
    padding: 28px 30px;
}

.wizard-flow-title {
    color: #075bd8;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
}

.wizard-pane h2 {
    color: #020617;
    font-size: 1.35rem;
    margin: 4px 0 24px;
}

.renew-page label {
    color: #40536b;
    font-size: 0.84rem;
    font-weight: 700;
}

.renew-page .form-control {
    min-height: 50px;
    border-color: #d8e2ef;
    border-radius: 10px;
    background: #f8fbff;
    color: #020617;
    font-size: 0.95rem;
    padding: 12px 14px;
}

.renew-page textarea.form-control {
    min-height: 50px;
    resize: vertical;
}

.member-preview-card {
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #fbfdff;
    padding: 22px;
    margin-top: 18px;
}

.member-preview-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.member-preview-title strong {
    color: #020617;
}

.wizard-muted {
    color: #40536b;
    line-height: 1.45;
}

.wizard-status-pill,
.doc-status {
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
}

.wizard-status-pill.active,
.doc-status.verified {
    background: #cdf9df;
    color: #00843d;
}

.wizard-status-pill.expired,
.wizard-status-pill.suspended,
.doc-status.rejected {
    background: #ffe3e8;
    color: #ef4444;
}

.wizard-status-pill.pending_renewal,
.doc-status.pending {
    background: #ffefbf;
    color: #8a5a00;
}

.wizard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.document-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.documents-pane-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.documents-pane-header h2 {
    margin-bottom: 10px;
}

.documents-pane-header .btn {
    border-radius: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.document-check-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 54px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    padding: 0 16px;
}

.document-icon {
    color: #075bd8;
}

.wizard-footer {
    border-top: 1px solid #d8e2ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 20px;
}

.wizard-footer .btn {
    border-radius: 10px;
    font-weight: 800;
    min-height: 48px;
}

.wizard-confirm {
    gap: 8px;
}

.wizard-summary-card {
    padding: 30px;
    position: sticky;
    top: 86px;
}

.wizard-summary-card h3 {
    color: #40536b;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    margin: 0 0 20px;
}

.summary-row,
.summary-total-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.summary-row span {
    color: #40536b;
}

.summary-row strong,
.summary-total-row strong {
    color: #020617;
    text-align: right;
}

.wizard-summary-card hr {
    border: 0;
    border-top: 1px solid #d8e2ef;
    margin: 14px 0 20px;
}

.summary-total-row {
    align-items: baseline;
    margin-bottom: 0;
}

.summary-total-row span {
    color: #020617;
    font-weight: 800;
}

.summary-total-row strong {
    color: #075bd8;
    font-size: 1.7rem;
}

.wizard-error-card {
    background: #fff5f5;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #b91c1c;
    margin-bottom: 18px;
    padding: 14px 16px;
}

@media (max-width: 1180px) {
    .renew-wizard-layout {
        grid-template-columns: 1fr;
    }

    .wizard-summary-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 760px) {
    .renew-wizard-steps {
        margin-bottom: 18px;
    }

    .wizard-step {
        padding: 8px 14px 8px 8px;
        font-size: 0.82rem;
    }

    .wizard-main-card,
    .wizard-summary-card {
        border-radius: 16px;
        padding: 18px;
    }

    .wizard-main-card {
        min-height: auto;
    }

    .wizard-pane h2 {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    .wizard-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .member-preview-title,
    .documents-pane-header,
    .wizard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .documents-pane-header .btn,
    .wizard-footer .btn,
    .wizard-confirm {
        width: 100%;
    }

    .document-check-row {
        grid-template-columns: auto 1fr;
        padding: 12px;
    }

    .doc-status {
        grid-column: 2;
        justify-self: start;
    }

    .summary-row,
    .summary-total-row {
        margin-bottom: 14px;
    }
}

/* Membership report */
.report-shell {
    margin-top: -8px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.report-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.report-hero-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.report-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4e67f4, #8a7dff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(78, 103, 244, 0.18);
}

.report-hero h1 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 2.2rem;
}

.report-hero p {
    margin: 0;
    color: #60748d;
    font-size: 1.02rem;
}

.report-date-card {
    min-width: 170px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
    padding: 12px 18px;
    text-align: right;
}

.report-date-card span {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-date-card strong {
    color: #0f172a;
    display: block;
    font-size: 1.15rem;
    margin-top: 4px;
}

.report-stat-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 20px;
}

.report-stat-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    box-shadow: 0 18px 35px rgba(148, 163, 184, 0.12);
    padding: 24px 28px;
}

.report-stat-card-primary {
    background: linear-gradient(135deg, #4169e1, #8c79ff);
    border-color: transparent;
    color: #fff;
}

.report-stat-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: inherit;
    font-size: 0.95rem;
}

.report-stat-card-primary .report-stat-head,
.report-stat-card-primary .report-stat-note,
.report-stat-card-primary .report-stat-value {
    color: #fff;
}

.report-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.report-stat-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.report-stat-icon-amber {
    background: #fef3c7;
    color: #d97706;
}

.report-stat-icon-red {
    background: #fee2e2;
    color: #ef4444;
}

.report-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    margin-top: 22px;
}

.report-stat-value-dark {
    color: #0f172a;
}

.report-stat-note {
    color: #64748b;
    font-size: 0.92rem;
    margin-top: 6px;
}

.report-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
    padding: 30px;
}

.report-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.report-panel-header h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.95rem;
}

.report-panel-header p {
    margin: 0;
    color: #60748d;
    font-size: 1rem;
}

.report-panel-total {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    white-space: nowrap;
}

.report-channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.report-channel-card {
    padding: 6px 0;
}

.report-channel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #0f172a;
}

.report-channel-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.report-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    background: #eef2ff;
    color: #4f46e5;
}

.report-channel-icon.cash {
    background: #d1fae5;
    color: #10b981;
}

.report-channel-icon.bank {
    background: #e0e7ff;
    color: #4f46e5;
}

.report-channel-icon.fonepay,
.report-channel-icon.esewa,
.report-channel-icon.khalti {
    background: #f1f5f9;
    color: #64748b;
}

.report-progress {
    width: 100%;
    height: 10px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.report-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 6px;
}

.report-progress span.cash {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.report-progress span.bank {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.report-progress span.fonepay,
.report-progress span.esewa,
.report-progress span.khalti {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.report-panel-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.report-filter-shell {
    gap: 18px;
}

.report-filter-shell-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.report-filter-shell-header h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.55rem;
}

.report-filter-shell-header p {
    margin: 0;
    color: #60748d;
}

.report-book-chip {
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 8px 14px;
}

.report-book-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.report-book-tab {
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border: 1px solid #d7dfeb;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    transition: all 0.2s;
}

.report-book-tab.active {
    background: #0b64e0;
    border-color: #0b64e0;
    color: #fff;
}

.report-filter-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 20px;
}

.report-filter-card-top {
    margin-bottom: 0;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.report-filter-button {
    min-width: 110px;
    min-height: 50px;
    border-radius: 16px;
    font-weight: 800;
}

.report-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.report-balance-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 20px 22px;
}

.report-balance-card span {
    color: #64748b;
    display: block;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.report-balance-card strong {
    color: #0f172a;
    display: block;
    font-size: 1.35rem;
}

.report-balance-card-highlight {
    background: #dfeafe;
    border-color: #bfdbfe;
}

.text-income {
    color: #10b981 !important;
}

.text-expense {
    color: #ef4444 !important;
}

.text-balance {
    color: #2563eb !important;
}

.report-table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
}

.report-table-card table thead th {
    background: #f8fbff;
    color: #52647d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.report-transaction-title {
    color: #0f172a;
    font-weight: 700;
}

.report-transaction-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.report-transaction-links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.88rem;
}

.report-income {
    color: #10b981;
    font-weight: 700;
}

.report-expense {
    color: #ef4444;
    font-weight: 700;
}

.report-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    color: #52647d;
}

.staff-salaries-page {
    font-size: 1.055rem;
    line-height: 1.58;
    position: relative;
    isolation: isolate;
}

.staff-salaries-page::before {
    content: "";
    position: absolute;
    inset: -18px -12px auto;
    height: 240px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 40%),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 32%);
    pointer-events: none;
    z-index: -1;
}

.staff-salaries-page .report-hero {
    padding: 30px 32px;
    background: linear-gradient(135deg, #0f172a 0%, #163b8f 52%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}

.staff-salaries-page .report-hero p,
.staff-salaries-page .report-panel-header p,
.staff-salaries-page .salary-highlight-strip span,
.staff-salaries-page .report-table-card td,
.staff-salaries-page .report-table-card th,
.staff-salaries-page .wizard-form-grid label {
    font-size: 1rem;
}

.staff-salaries-page .report-hero h1 {
    font-size: 2.38rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.staff-salaries-page .report-mark {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.staff-salaries-page .report-date-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(10px);
}

.staff-salaries-page .report-date-card span {
    color: rgba(255, 255, 255, 0.8);
}

.staff-salaries-page .report-date-card strong {
    color: #fff;
    font-size: 1.8rem;
}

.salary-highlight-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: -2px 0 8px;
}

.salary-highlight-strip > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(99, 102, 241, 0.04));
    border: 1px solid #d8e3f0;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.salary-highlight-strip strong {
    color: #0f172a;
    font-size: 1.06rem;
}

.salary-highlight-strip span {
    color: #64748b;
}

.staff-salaries-page .report-stat-value {
    font-size: 2rem;
}

.staff-salaries-page .report-stat-note {
    font-size: 0.96rem;
}

.staff-salaries-page .report-panel {
    padding: 26px;
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.14);
}

.staff-salaries-page .report-panel-header h2 {
    font-size: 1.48rem;
}

.staff-salaries-page .report-panel-total {
    font-size: 1.08rem;
}

.staff-salaries-page .report-table-card table th,
.staff-salaries-page .report-table-card table td {
    padding: 15px 16px;
    font-size: 0.99rem;
}

.staff-salaries-page .report-table-card table th {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.staff-salaries-page .form-control,
.staff-salaries-page .btn {
    font-size: 1rem;
}

.staff-salaries-page .wizard-form-grid {
    row-gap: 20px;
}

.staff-salaries-page .wizard-form-grid .form-group label {
    margin-bottom: 9px;
    color: #334155;
    font-weight: 700;
}

.staff-salaries-page .form-control {
    min-height: 48px;
    border-radius: 15px;
}

.staff-salaries-page .btn {
    border-radius: 15px;
    padding: 11px 18px;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .report-stat-grid,
    .report-balance-grid,
    .settings-grid,
    .settings-grid-lists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-template-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .report-hero,
    .report-panel-header,
    .report-filter-shell-header,
    .report-panel-actions,
    .report-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .report-channel-grid,
    .report-filter-grid,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .report-panel-total,
    .report-date-card {
        text-align: left;
    }

    .settings-bullet-list div {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-bullet-list div span {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .report-shell {
        gap: 18px;
    }

    .report-hero-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-hero h1 {
        font-size: 1.7rem;
    }

    .report-stat-grid,
    .report-balance-grid,
    .settings-grid,
    .settings-grid-lists {
        grid-template-columns: 1fr;
    }

    .report-panel {
        border-radius: 20px;
        padding: 18px;
    }

    .report-filter-button,
    .report-filter-shell-header .btn,
    .report-panel-actions .btn {
        width: 100%;
    }

    .settings-card {
        padding: 18px;
    }

    .salary-highlight-strip {
        grid-template-columns: 1fr;
    }
}
