:root {
    --app-bg: #f4f7fb;
    --sidebar-bg: #111827;
    --sidebar-soft: #1f2937;
    --primary: #3157d5;
    --primary-dark: #2446b5;
}

body {
    background: var(--app-bg);
    color: #172033;
}

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

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
}

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

.sidebar .nav {
    padding: 1rem;
    flex: 1;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .72rem .85rem;
}

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

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.content {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
}

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

.topbar h1 {
    font-size: 1.55rem;
    margin: 0;
    font-weight: 750;
}

.panel {
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.dashboard-card {
    min-height: 124px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
    color: #172033;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-card:hover {
    color: #172033;
    transform: translateY(-3px);
    border-color: rgba(49, 87, 213, .35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
}

.dashboard-card .card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.35rem;
}

.dashboard-card .card-content {
    min-width: 0;
}

.dashboard-card .card-label {
    display: block;
    font-size: .83rem;
    color: #64748b;
    margin-bottom: .15rem;
}

.dashboard-card strong {
    display: block;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1.1;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.dashboard-card small {
    display: block;
    margin-top: .4rem;
    color: #64748b;
}

.dashboard-card .card-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.dashboard-card:hover .card-arrow {
    transform: translateX(3px);
    background: #172033;
    color: #fff;
}

.card-pis .card-icon {
    background: #eaf1ff;
    color: #3157d5;
}

.card-revenue .card-icon {
    background: #e9f8ef;
    color: #17894f;
}

.card-agencies .card-icon {
    background: #e7f8fb;
    color: #087f96;
}

.card-clients .card-icon {
    background: #f1eefc;
    color: #6550c7;
}

.kpi-row {
    align-items: stretch;
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

.kpi-card {
    min-height: 112px;
    height: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .95rem;
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-left: 4px solid var(--kpi-color);
    border-radius: 8px;
    background: #fff;
    color: #172033;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.kpi-card:hover {
    color: #172033;
    transform: translateY(-3px);
    border-color: var(--kpi-color);
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--kpi-color);
    background: var(--kpi-soft);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.kpi-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    color: #64748b;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.kpi-value {
    color: #0f172a;
    font-size: clamp(1.28rem, 1.7vw, 1.58rem);
    font-weight: 850;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.kpi-action {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .45rem;
    color: var(--kpi-color);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

.kpi-card:hover .kpi-action i {
    transform: translateX(3px);
}

.kpi-action i {
    transition: transform .18s ease;
}

.kpi-blue {
    --kpi-color: #3157d5;
    --kpi-soft: #eaf1ff;
}

.kpi-green {
    --kpi-color: #16814d;
    --kpi-soft: #e8f7ef;
}

.kpi-cyan {
    --kpi-color: #087f96;
    --kpi-soft: #e7f8fb;
}

.kpi-purple {
    --kpi-color: #6550c7;
    --kpi-soft: #f1eefc;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
}

.table > :not(caption) > * > * {
    padding: .85rem;
}

.action-cell {
    width: 150px;
    white-space: nowrap;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 55%, #eef8f3 100%);
}

.login-card {
    width: min(100%, 420px);
}

.progress {
    height: .65rem;
}

.confirm-modal {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.confirm-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.55rem;
}

.modal-backdrop.show {
    opacity: .42;
}

.report-sheet {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.report-control-card {
    margin-bottom: 1.25rem;
    padding: 0;
    background: #fff;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.modern-report-card {
    border: 1px solid #e3e9f4 !important;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.report-control-card .card-body,
.report-card > .card-body {
    padding: 1.2rem;
    width: 100%;
}

.report-control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-eyebrow {
    display: block;
    color: var(--primary);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}

.report-control-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary);
    background: #eaf1ff;
    font-size: 1.15rem;
}

.report-filter-select {
    min-height: 46px;
    border-color: #d8e0ec;
    background-color: #f8fafc;
    font-weight: 650;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.report-filter-select:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(49, 87, 213, .12);
}

.report-filter-status {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 8px;
    color: #3157d5;
    background: #eaf1ff;
    font-size: .82rem;
    font-weight: 750;
}

.report-filter-status.is-loading {
    color: #8a5a00;
    background: #fff4d6;
}

.report-filter-status.is-error {
    color: #b42318;
    background: #fee4e2;
}

.report-results {
    position: relative;
    transition: opacity .18s ease;
}

.report-results.is-loading {
    opacity: .58;
    pointer-events: none;
}

.report-results.is-loading::after {
    content: "Atualizando dados...";
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    padding: .55rem .75rem;
    border-radius: 8px;
    color: #172033;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
    font-size: .82rem;
    font-weight: 800;
}

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #172033;
}

.report-kicker {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-header h2 {
    margin: .15rem 0;
    font-size: 1.55rem;
    font-weight: 800;
}

.report-header p {
    margin: 0;
    color: #64748b;
}

.report-meta {
    min-width: 280px;
    display: grid;
    gap: .5rem;
    align-content: start;
    font-size: .83rem;
}

.report-meta div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .48rem .65rem;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
    background: #f8fafc;
}

.report-meta strong {
    color: #172033;
    white-space: nowrap;
}

.report-meta span {
    color: #475569;
    text-align: right;
}

.report-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
}

.report-filter-tags span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .65rem;
    border-radius: 8px;
    color: #3157d5;
    background: #eaf1ff;
    font-size: .78rem;
    font-weight: 800;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-bottom: 1.5rem;
}

.report-stats-cards {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

.report-stat-card {
    min-height: 118px;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-stat-card .card-body {
    display: flex;
    align-items: center;
    padding: 1.15rem;
}

.report-stat-card .stat-content {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.report-stat-card .stat-heading {
    display: flex !important;
    align-items: center;
    gap: .75rem !important;
    margin-bottom: .55rem;
    color: #64748b;
    font-size: .86rem;
    font-weight: 800;
    width: 100%;
}

.report-stat-card .stat-heading i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--stat-color);
    background: var(--stat-soft);
    font-size: 1rem;
    margin-right: .25rem;
}

.report-stat-card strong,
.report-stat-card .stat-value {
    color: #0f172a;
    display: block !important;
    width: 100%;
    margin-left: calc(32px + .75rem);
    margin-top: .35rem !important;
    font-size: 1.65rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.report-summary-card .report-stats {
    margin-bottom: 0;
}

.report-stats .report-stat-item {
    position: relative;
    padding: .95rem;
    border: 1px solid #e4e9f2;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.report-stat-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .65rem;
    border-radius: 8px;
    color: var(--stat-color);
    background: var(--stat-soft);
}

.report-stats span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    margin-bottom: .25rem;
}

.report-stats strong {
    font-size: 1.15rem;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.stat-money {
    --stat-color: #16814d;
    --stat-soft: #e8f7ef;
}

.stat-docs {
    --stat-color: #3157d5;
    --stat-soft: #eaf1ff;
}

.stat-average {
    --stat-color: #8a5a00;
    --stat-soft: #fff4d6;
}

.report-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    margin-bottom: .35rem;
}

.report-stack .report-card > .card-body {
    padding-bottom: .6rem;
}

.report-card {
    padding: 0;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-card + .report-card {
    margin-top: 0;
}

.report-card-title {
    display: block;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid #edf1f7;
}

.report-card-title .title-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-right: .85rem;
    border-radius: 8px;
    color: var(--primary);
    background: #eaf1ff;
}

.report-card-title h3 {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    color: #172033;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 800;
}

.report-card-title .title-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.report-block {
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-block.full {
    margin-top: 0;
}

.report-block > h3 {
    margin: 0 0 .45rem;
    color: #172033;
    font-size: .92rem;
    font-weight: 800;
}

.report-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed !important;
    font-size: .88rem;
    overflow: hidden;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e3e9f4;
    border-radius: 8px;
    background: #fff;
    display: block;
}

.table-wrap .report-table {
    width: 100% !important;
    min-width: 100% !important;
    border: 0;
    border-radius: 0;
}

.report-table th {
    padding: .85rem 1rem;
    background: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid #e3e9f4;
    font-weight: 700;
}

.report-table tfoot th {
    padding: .85rem 1rem;
    border-top: 2px solid #d8e0ec;
    background: #eef4ff;
    color: #172033;
    font-weight: 850;
}

.report-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #edf1f7;
    vertical-align: top;
    overflow-wrap: anywhere;
    background: #fff;
}

.report-table.detail tbody tr:hover td,
.report-table.compact tbody tr:hover td {
    background: #eef4ff;
}

.report-table tbody tr:nth-child(even) td {
    background: #fbfdff !important;
}

.report-table tbody tr:last-child td {
    border-bottom: 0;
}

.report-table .col-name {
    width: 68%;
}

.report-table .col-qty {
    width: 12%;
}

.report-table .col-money {
    width: 20%;
}

.month-table .col-month {
    width: 46%;
}

.month-table .col-year {
    width: 14%;
}

.detail .col-pi {
    width: 13%;
}

.detail .col-client {
    width: 33%;
}

.detail .col-agency {
    width: 22%;
}

.detail .col-period {
    width: 16%;
}

.report-money {
    color: #16814d;
    font-weight: 850;
    white-space: nowrap;
}

.qty-pill,
.period-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: .22rem .5rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #172033;
    font-weight: 800;
}

.period-pill {
    min-width: 0;
    color: #3157d5;
    background: #eaf1ff;
    white-space: nowrap;
}

.report-table.detail th:nth-child(1),
.report-table.detail td:nth-child(1) {
    width: 11%;
}

.report-table.detail th:nth-child(2),
.report-table.detail td:nth-child(2) {
    width: 30%;
}

.report-table.detail th:nth-child(3),
.report-table.detail td:nth-child(3) {
    width: 18%;
}

.report-table.detail th:nth-child(4),
.report-table.detail td:nth-child(4) {
    width: 23%;
    white-space: nowrap;
}

.report-table.detail th:nth-child(5),
.report-table.detail td:nth-child(5) {
    width: 18%;
}

.report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
}

.report-footer {
    margin-top: 1rem;
    padding-top: .7rem;
    border-top: 1px solid #dbe3ee;
    color: #64748b;
    font-size: .78rem;
    text-align: center;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .sidebar .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content {
        padding: 1rem;
    }

    .report-header,
    .report-stats,
    .report-stack {
        grid-template-columns: 1fr;
        display: grid;
    }

    .report-meta div {
        display: grid;
        gap: .15rem;
    }

    .report-meta span {
        text-align: left;
    }

    .report-control-head {
        align-items: flex-start;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 11mm;
    }

    .sidebar,
    .topbar,
    .no-print,
    .alert {
        display: none !important;
    }

    .app-shell,
    .content {
        display: block;
        padding: 0;
        min-height: auto;
    }

    body {
        background: #fff;
        color: #111827;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .panel {
        box-shadow: none;
        border-color: #d7dce5;
        break-inside: avoid;
    }

    .report-sheet {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .report-card,
    .report-control-card {
        box-shadow: none;
        break-inside: avoid;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .report-card {
        padding: 4mm;
        border-color: #dbe3ee;
        margin-bottom: 5mm;
        break-before: auto;
        page-break-before: auto;
        display: block;
        width: 100%;
        overflow: visible;
    }

    .report-stat-card,
    .report-card-title,
    .report-stats-cards,
    .report-filter-tags,
    .report-header {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-card-title {
        margin-bottom: 2.5mm;
        display: block;
    }

    .report-card-title .title-icon {
        width: 7mm;
        height: 7mm;
        font-size: 8pt;
        flex: 0 0 7mm;
        margin-right: 2.5mm;
    }

    .report-card-title h3 {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .report-header {
        padding-bottom: 7mm;
        margin-bottom: 5mm;
    }

    .report-header h2 {
        font-size: 18pt;
    }

    .report-header p,
    .report-meta,
    .report-footer {
        font-size: 8.5pt;
    }

    .report-stats,
    .report-stats-cards {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 5mm;
        margin-bottom: 8mm;
        width: 100% !important;
    }

    .report-stats-cards > .col-md-4 {
        width: calc((100% - 10mm) / 3) !important;
        flex: 0 0 calc((100% - 10mm) / 3) !important;
        max-width: calc((100% - 10mm) / 3) !important;
        padding: 0 !important;
        display: block !important;
    }

    .report-stats .report-stat-card {
        width: 100% !important;
        min-height: 22mm;
        height: 100%;
        align-items: center;
        gap: 3mm;
        border: 1px solid #dbe3ee;
        border-radius: 3mm;
        background: #fff;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-stat-card .card-body {
        padding: 4mm;
        display: flex !important;
        align-items: center;
        gap: 3mm;
    }

    .report-stat-card .stat-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .report-filter-tags span,
    .report-meta div {
        border-color: #dbe3ee;
        background: #f8fafc;
    }

    .report-stat-card .stat-heading {
        display: flex !important;
        align-items: center;
        gap: 2.5mm !important;
        font-size: 7.5pt;
        margin-bottom: 2mm;
        width: 100%;
    }

    .report-stat-card .stat-heading i {
        width: 7mm;
        height: 7mm;
        font-size: 8pt;
        border-radius: 2mm;
    }

    .report-stats strong,
    .report-stat-card strong,
    .report-stat-card .stat-value {
        font-size: 14pt;
        display: block !important;
        width: 100%;
        margin-left: 9.5mm;
        margin-top: 1.5mm !important;
    }

    .report-stack {
        display: block !important;
        gap: 0;
        margin-bottom: 3mm;
    }

    .report-stack > .report-block {
        display: block !important;
        break-inside: avoid;
        break-inside: avoid-page;
        page-break-inside: avoid;
        margin-bottom: 3mm;
    }

    .report-stack > .report-block.report-card {
        padding: 0;
        border: 0 !important;
        box-shadow: none;
        overflow: visible;
    }

    .report-stack > .report-block > .card-body {
        padding: 0;
    }

    .report-stack .report-card-title {
        margin-bottom: 1.7mm;
        padding-bottom: 1.7mm;
    }

    .report-stack .table-wrap {
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .report-stack .report-table {
        border: 0;
        border-radius: 0;
    }

    .report-stack .report-table thead th {
        border-top: 1px solid #dbe3ee;
    }

    .report-stack > .report-block > .card-body,
    .report-stack .table-wrap,
    .report-stack .report-table,
    .report-stack .report-table thead,
    .report-stack .report-table tbody,
    .report-stack .report-table tfoot {
        break-inside: avoid;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    .report-block h3 {
        font-size: 9.5pt;
        margin-bottom: 2mm;
    }

    .report-table {
        font-size: 7.8pt;
        page-break-inside: avoid;
        break-inside: avoid;
        break-inside: avoid-page;
    }

    .report-table th,
    .report-table td {
        padding: 2mm;
    }

    .report-table.detail {
        font-size: 7.4pt;
    }

    .report-table.detail th,
    .report-table.detail td {
        padding: 1.7mm 1.8mm;
    }

    .report-table.detail th:nth-child(1),
    .report-table.detail td:nth-child(1) {
        width: 11% !important;
    }

    .report-table.detail th:nth-child(2),
    .report-table.detail td:nth-child(2) {
        width: 30% !important;
    }

    .report-table.detail th:nth-child(3),
    .report-table.detail td:nth-child(3) {
        width: 18% !important;
    }

    .report-table.detail th:nth-child(4),
    .report-table.detail td:nth-child(4) {
        width: 23% !important;
        white-space: nowrap !important;
    }

    .report-table.detail th:nth-child(5),
    .report-table.detail td:nth-child(5) {
        width: 18% !important;
    }

    .report-table.detail .period-pill {
        min-width: 24mm;
        padding: 1mm 1.6mm;
        white-space: nowrap !important;
    }

    .report-table thead {
        display: table-header-group;
    }

    .report-table tfoot,
    .report-table.detail tfoot {
        display: table-row-group;
    }

    .report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-block.full {
        margin-top: 0;
    }

    .report-block.full,
    .report-block.full > .card-body,
    .report-block.full .table-wrap,
    .report-block.full .report-table,
    .report-block.full .report-table tbody {
        break-inside: auto;
        page-break-inside: auto;
    }

    .report-block.full.report-card {
        padding: 0;
        border: 0 !important;
        box-shadow: none;
        overflow: visible;
    }

    .report-block.full > .card-body {
        padding: 0;
    }

    .report-block.full .table-wrap {
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .report-block.full .report-table {
        border: 0;
        border-radius: 0;
    }

    .report-block.full .report-table thead th {
        border-top: 1px solid #dbe3ee;
    }

    .report-block.full .report-table tfoot tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-block {
        break-inside: avoid;
        break-inside: avoid-page;
        page-break-inside: avoid;
        display: block;
    }

    .report-block.full {
        break-inside: auto;
        page-break-inside: auto;
    }

    .report-block.full .report-card-title {
        break-after: avoid;
        page-break-after: avoid;
    }

    .report-block + .report-block,
    .report-block.full {
        margin-top: 0;
    }

    .report-card-title,
    .table-wrap {
        break-inside: avoid;
        break-inside: avoid-page;
        page-break-inside: avoid;
    }
}
