:root {
    --app-bg: #f6f7f9;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --radius: 10px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--app-bg);
    color: var(--text);
    font-size: 14px;
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border);
    z-index: 1040;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
}

.brand-title {
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-nav {
    padding: 12px;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    color: #374151;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 3px;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: #eef4ff;
    color: var(--primary);
}

.app-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 500;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.icon-btn {
    border: 1px solid var(--border);
    background: #fff;
}

.app-main {
    margin-left: var(--sidebar-width);
    padding: calc(var(--topbar-height) + 24px) 24px 32px;
    min-height: 100vh;
}

.content-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.page-header h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 750;
}

.page-header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.app-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.narrow-card {
    max-width: 620px;
}

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

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.stat-card span {
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 28px;
    line-height: 1;
}

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

.settings-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--text);
    min-height: 108px;
}

.settings-card:hover {
    border-color: #b8c7ff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
}

.settings-card strong {
    display: block;
    margin-bottom: 6px;
}

.settings-card span {
    color: var(--muted);
    font-size: 13px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--muted);
}

.app-alert {
    max-width: 1280px;
    margin: 0 auto 16px;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(180deg, #f6f7f9, #eef4ff);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
}

.login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.login-brand h1 {
    font-size: 22px;
    margin: 14px 0 4px;
}

.login-brand p {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-topbar {
        left: 0;
    }

    .app-main {
        margin-left: 0;
        padding-left: 14px;
        padding-right: 14px;
    }

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

@media (max-width: 575.98px) {
    .dashboard-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }
}


.app-table thead th {
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--border);
}

.app-table td,
.app-table th {
    padding: 12px 14px;
}

.setting-check-card {
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 12px 12px 36px;
    background: #fafafa;
}


.mini-detail {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fafafa;
    min-height: 68px;
}

.mini-detail span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.mini-detail strong {
    display: block;
    overflow-wrap: anywhere;
}


.btn-group-sm .btn {
    white-space: nowrap;
}


.document-card-list {
    padding: 10px;
}

.document-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

.document-card-row:last-child {
    margin-bottom: 0;
}

.doc-title-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.doc-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.doc-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 12px;
}

.document-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.doc-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 240px;
}

.doc-mini {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.doc-mini.uploaded {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.doc-mini.optional-uploaded {
    color: #075985;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.doc-mini.missing {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.doc-mini.optional-missing {
    color: #4b5563;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.doc-mini-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: #fafafa;
    color: var(--muted);
    font-size: 12px;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 5px;
}

.legend-dot.uploaded {
    background: #22c55e;
}

.legend-dot.missing {
    background: #ef4444;
}

.legend-dot.optional {
    background: #9ca3af;
}

@media (max-width: 767.98px) {
    .document-card-row {
        grid-template-columns: 1fr;
    }

    .doc-title-line {
        flex-direction: column;
    }

    .doc-badge-wrap,
    .document-card-actions {
        justify-content: flex-start;
    }

    .document-card-actions .btn,
    .document-card-actions .btn-group {
        width: 100%;
    }

    .document-card-actions .btn-group .btn {
        width: 100%;
    }
}

.export-index-table td {
    vertical-align: top;
}

.export-index-table th {
    white-space: nowrap;
}

.export-index-table .small {
    line-height: 1.35;
}


.ledger-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ledger-summary-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    min-height: 92px;
}

.ledger-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.ledger-summary-card strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.ledger-summary-card .ledger-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.ledger-summary-card.highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ledger-summary-card.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.ledger-progress {
    height: 7px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.ledger-progress > i {
    display: block;
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

.ledger-progress.green > i {
    background: #16a34a;
}

@media (max-width: 991.98px) {
    .ledger-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ledger-summary-grid {
        grid-template-columns: 1fr;
    }
}


/* Phase 12B inward/outward layout hotfix */
.ledger-summary-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ledger-summary-wrapper .card-body {
    overflow-x: auto;
}

.ledger-summary-grid {
    width: 100%;
    max-width: 100%;
}

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

.ledger-summary-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ledger-summary-card strong {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .ledger-summary-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ledger-summary-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Word-style email body editor */
.bank-email-editor-wrapper {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.bank-email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    background: #f8fafc;
}
.bank-email-editor-toolbar .btn {
    line-height: 1.2;
    border-color: #e5e7eb;
}
.bank-email-editor-separator {
    width: 1px;
    height: 22px;
    background: #d1d5db;
    margin: 0 3px;
}
.bank-email-rich-editor {
    min-height: 180px;
    max-height: 360px;
    overflow-y: auto;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff;
    padding: 12px;
    line-height: 1.55;
    white-space: normal;
}
.bank-email-rich-editor:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}
.bank-email-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

/* Zoho-style email template designer */
.bank-email-template-designer { border-radius: 12px; border-color: #d9dde7; }
.bank-email-template-toolbar { gap: 6px; padding: 8px 10px; background: #f5f6fa; border-bottom-color: #d9dde7; }
.bank-email-template-toolbar .btn { min-width: 32px; min-height: 32px; padding: 5px 8px; color: #111827; background: #ffffff; }
.bank-email-template-toolbar .btn:hover, .bank-email-template-toolbar .form-select:hover { background: #eef4ff; border-color: #bfdbfe; }
.bank-editor-select { width: 145px; }
.bank-editor-size { width: 78px; }
.bank-editor-placeholder { width: 190px; }
.bank-email-template-canvas { background: #f8fafc; padding: 18px; max-height: 620px; overflow: auto; }
.bank-email-template-page { width: min(100%, 720px); min-height: 460px; max-height: none; margin: 0 auto; padding: 34px 42px; background: #ffffff; border: 1px solid #e5e7eb !important; box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important; font-size: 15px; line-height: 1.65; }
.bank-email-template-page:focus { box-shadow: 0 10px 26px rgba(15, 23, 42, .08), inset 0 0 0 2px rgba(37, 99, 235, 0.18) !important; }
.bank-email-template-page p { margin-bottom: 12px; }
.bank-email-template-page h2, .bank-email-template-page h3 { margin: 12px 0; font-weight: 700; }
.bank-email-template-page img { max-width: 100%; height: auto; }
.bank-email-template-page table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.bank-email-template-page td, .bank-email-template-page th { border: 1px solid #e5e7eb; padding: 8px 10px; }
@media (max-width: 767.98px) { .bank-email-template-toolbar .form-select, .bank-editor-select, .bank-editor-size, .bank-editor-placeholder { width: 100%; } .bank-email-template-canvas { padding: 10px; } .bank-email-template-page { padding: 18px; min-height: 360px; } }

/* Email template editor: Visual / HTML Source / Preview modes */
.bank-email-template-modebar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: #ffffff;
    border-bottom: 1px solid #d9dde7;
}
.bank-email-template-modebar .btn {
    font-size: 12px;
    font-weight: 600;
}
.bank-email-template-source-wrap,
.bank-email-template-preview-wrap {
    background: #f8fafc;
    padding: 18px;
}
.bank-email-html-source {
    min-height: 460px;
    width: min(100%, 920px);
    margin: 0 auto;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #111827;
    background: #0f172a;
    color: #e5e7eb;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 16px;
    resize: vertical;
}
.bank-email-preview-pane {
    width: min(100%, 720px);
    min-height: 460px;
    margin: 0 auto;
    padding: 34px 42px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    font-size: 15px;
    line-height: 1.65;
}
.bank-email-preview-pane table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.bank-email-preview-pane td,
.bank-email-preview-pane th {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
}
.bank-email-template-helpbar {
    border-top: 1px solid #e5e7eb;
    padding: 8px 10px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
}
@media (max-width: 767.98px) {
    .bank-email-template-source-wrap,
    .bank-email-template-preview-wrap { padding: 10px; }
    .bank-email-html-source,
    .bank-email-preview-pane { min-height: 360px; padding: 16px; }
}

/* Better width for document upload / replace modals - CSS only, no JS */
#globalModal .modal-dialog:has(input[type="file"]) {
    max-width: 760px;
    width: calc(100% - 32px);
}

#globalModal .modal-dialog:has(input[type="file"]) .modal-content {
    border-radius: 14px;
}

#globalModal .modal-dialog:has(input[type="file"]) textarea {
    min-height: 90px;
    resize: vertical;
}

@media (max-width: 767.98px) {
    #globalModal .modal-dialog:has(input[type="file"]) {
        max-width: none;
        width: calc(100% - 18px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Email template rich editor - practical Zoho-style */
.bank-email-template-modebar{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;background:#f8fafc;border:1px solid #d9dee7;border-bottom:0;border-radius:10px 10px 0 0;
}
.bank-email-editor-toolbar{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px;background:#f3f5f9;border:1px solid #d9dee7;border-bottom:0;
}
.bank-email-editor-toolbar .btn{border-color:#dde3ec;background:#fff;color:#111827;line-height:1.2}
.bank-email-editor-toolbar .btn:hover{background:#eef4ff;border-color:#bcd1ff}
.bank-email-editor-separator{width:1px;height:24px;background:#d9dee7;margin:0 3px}
.bank-editor-select{width:135px;max-width:100%}
.bank-editor-size{width:86px;max-width:100%}
.bank-editor-placeholder{width:180px;max-width:100%}
.bank-editor-color-wrap{height:31px;display:inline-flex;align-items:center;gap:5px;padding:3px 7px;background:#fff;border:1px solid #dde3ec;border-radius:6px;font-size:13px;color:#111827;cursor:pointer}
.bank-editor-color-wrap input[type="color"]{width:24px;height:22px;padding:0;border:0;background:transparent;cursor:pointer}
.bank-email-template-canvas{border:1px solid #d9dee7;border-radius:0 0 10px 10px;background:#eef1f6;padding:18px;min-height:420px}
.bank-email-template-page{max-width:760px;min-height:380px;margin:0 auto;background:#fff!important;border:1px solid #d9dee7!important;border-radius:6px!important;box-shadow:0 8px 22px rgba(15,23,42,.08);padding:28px!important;line-height:1.55;font-size:14px;color:#1f2937;overflow:auto}
.bank-email-template-page:empty:before{content:attr(data-placeholder);color:#9ca3af}
.bank-email-template-page table{width:100%;border-collapse:collapse;margin:12px 0}
.bank-email-template-page th,.bank-email-template-page td{border:1px solid #d9dee7;padding:8px;text-align:left;vertical-align:top}
.bank-email-template-source-wrap{border:1px solid #d9dee7;border-radius:0 0 10px 10px;background:#fff;padding:0}
.bank-email-html-source{width:100%;min-height:440px;border:0;border-radius:0 0 10px 10px;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.55;background:#0f172a;color:#e5e7eb;resize:vertical;outline:none}
.bank-email-template-helpbar{padding:9px 12px;background:#f8fafc;border-top:1px solid #d9dee7;color:#64748b;font-size:12px;border-radius:0 0 10px 10px}
.bank-email-template-preview-wrap{border:1px solid #d9dee7;border-radius:0 0 10px 10px;background:#eef1f6;padding:18px;min-height:420px}
.bank-email-preview-pane{max-width:760px;min-height:380px;margin:0 auto;background:#fff;border:1px solid #d9dee7;border-radius:6px;box-shadow:0 8px 22px rgba(15,23,42,.08);padding:28px;line-height:1.55;font-size:14px;color:#1f2937;overflow:auto}
.bank-email-preview-pane table{width:100%;border-collapse:collapse;margin:12px 0}
.bank-email-preview-pane th,.bank-email-preview-pane td{border:1px solid #d9dee7;padding:8px;text-align:left;vertical-align:top}
@media(max-width:767.98px){.bank-email-template-canvas,.bank-email-template-preview-wrap{padding:10px}.bank-email-template-page,.bank-email-preview-pane{padding:16px;min-height:300px}.bank-email-editor-toolbar{gap:5px}.bank-editor-placeholder{width:100%}}
/* =========================================================
   Global Report Print / Export Area
   ========================================================= */

.print-header,
.print-only {
    display: none;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    html,
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body * {
        visibility: hidden !important;
    }

    .print-area,
    .print-area * {
        visibility: visible !important;
    }

    .print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .print-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 20px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #111827 !important;
        color: #111827 !important;
    }

    .print-header h2 {
        margin: 0 0 4px 0 !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        color: #111827 !important;
    }

    .print-header p {
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        color: #374151 !important;
    }

    .print-meta {
        text-align: right !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #374151 !important;
        white-space: nowrap !important;
    }

    .print-only {
        display: block !important;
        visibility: visible !important;
    }

    .no-print,
    .print-hide,
    .export-hide,
    .app-sidebar,
    .sidebar,
    .app-topbar,
    .topbar,
    .navbar,
    .breadcrumb,
    .page-header,
    .page-actions,
    .report-filter-card,
    .ledger-filter,
    .filter-card,
    .report-kpis,
    .ledger-kpis,
    form,
    button,
    .btn {
        display: none !important;
        visibility: hidden !important;
    }

    .app-shell,
    .app-main,
    .content-container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .table-responsive {
        overflow: visible !important;
        width: 100% !important;
    }

    .card,
    .report-card-shell,
    .ledger-card {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }

    th,
    td {
        border: 1px solid #d1d5db !important;
        padding: 3px 4px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        vertical-align: top !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
        color: #111827 !important;
    }

    thead {
        display: table-header-group !important;
    }

    tfoot {
        display: table-footer-group !important;
    }

    thead th {
        background: #f3f4f6 !important;
        color: #111827 !important;
        font-weight: 800 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    a {
        color: #111827 !important;
        text-decoration: none !important;
    }
}