/* Manita report view — aligned with process_house gray-inward-report UX */

.manita-report-page .program-scroll-area {
    min-height: 0;
    padding-bottom: 1.5rem;
    --manita-report-header-bg: #e6eaf5;
    --manita-report-header-border: #c8cedd;
    --manita-report-row-bg: #ffffff;
    --manita-report-border: #d1d5db;
    --manita-report-text: #111827;
    --manita-report-total-border: #d1d5db;
}

.manita-report-page #report_filter_section {
    margin-bottom: 1rem;
}

.manita-report-page #report_filter_section .card-body {
    padding: 1rem 1.25rem;
}

.manita-report-page #report_filter_section .manita-filter-toggle-btn {
    white-space: nowrap;
}

.manita-report-page .contract-report-select2 + .select2-container {
    width: 100% !important;
}

.manita-report-page #report_filter_section .filter-card,
.manita-report-page #report_filter_section .card-body {
    overflow: visible;
}

.manita-report-page #report_filter_section .select2-container--open {
    z-index: 1055;
}

.manita-report-page #report_filter_section .select2-dropdown {
    z-index: 1056;
    border-color: #dee2e6;
}

.manita-report-page #report_filter_section .select2-results__option {
    white-space: normal;
    word-break: break-word;
}

.manita-report-page #report_filter_section .select2-selection--multiple {
    min-height: 38px;
}

.manita-report-page #report_filter_section .select2-selection--multiple .select2-selection__choice {
    max-width: 100%;
}

.manita-report-page .manita-offcanvas-selected-preview {
    min-height: 38px;
}

.manita-report-page .manita-offcanvas-selected-preview .badge {
    font-size: 0.75rem;
    font-weight: 500;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.manita-report-page .manita-offcanvas-selected-badge .manita-offcanvas-badge-text {
    word-break: break-word;
}

.manita-report-page .manita-offcanvas-selected-badge .btn-close {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.85;
}

.manita-report-page .manita-offcanvas-clear-all {
    font-size: 0.8rem;
    text-decoration: none;
}

.manita-report-page .manita-offcanvas-clear-all:hover {
    text-decoration: underline;
}

.manita-report-page .manita-filter-entity-display {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
    cursor: default;
}

.manita-report-page #report_filter_section .input-group-text {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

html[data-bs-theme="dark"] .manita-report-page #report_filter_section .select2-dropdown {
    border-color: var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .manita-report-page #report_filter_section .select2-container--default .select2-selection--single,
html[data-bs-theme="dark"] .manita-report-page #report_filter_section .select2-container--default .select2-selection--multiple {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .manita-report-page .manita-offcanvas-selected-preview {
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

html[data-bs-theme="dark"] .manita-report-page #report_data_section[data-loaded="1"] {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

html[data-bs-theme="dark"] .manita-report-page #report_data_section[data-loaded="1"] > .card-header,
html[data-bs-theme="dark"] .manita-report-page .manita-report-table-scroll,
html[data-bs-theme="dark"] .manita-report-page .manita-report-grand-total-panel,
html[data-bs-theme="dark"] .manita-report-page .manita-report-data-footer {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-table {
    border-color: var(--bs-border-color);
    background: var(--bs-body-bg);
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-table td,
html[data-bs-theme="dark"] .manita-report-page .manita-report-table th {
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .manita-report-page .program-scroll-area {
    --manita-report-header-bg: #2a3148;
    --manita-report-header-border: #3d4663;
    --manita-report-row-bg: var(--bs-body-bg);
    --manita-report-border: var(--bs-border-color);
    --manita-report-text: var(--bs-body-color);
    --manita-report-total-border: var(--bs-border-color);
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row) > td {
    background-color: var(--manita-report-row-bg) !important;
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row):nth-of-type(even) > td {
    background-color: var(--manita-report-row-bg) !important;
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-toolbar .btn {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color);
}

.manita-report-page .manita-report-data-section {
    margin-bottom: 1rem;
}

.manita-report-page #report_data_section[data-loaded="1"],
.manita-report-page #report_data_section.is-loading {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--manita-report-offset-top, 200px) - var(--manita-report-offset-bottom, 0px));
    min-height: 280px;
    overflow: hidden;
    margin-top: 0.25rem;
    border: 1px solid #dfe3e8;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.manita-report-page #report_data_section[data-loaded="1"] > .card-header {
    flex: 0 0 auto;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.manita-report-page #report_data_section.is-loading > .card-header {
    display: none !important;
}

.manita-report-page .manita-report-toolbar .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    border-color: #d1d5db !important;
    color: #374151;
    background: #fff;
}

.manita-report-page .manita-report-toolbar .btn:hover {
    background: #f9fafb;
    border-color: #9ca3af !important;
}

.manita-report-page .manita-report-data-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.manita-report-page .manita-report-data-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 30;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
}

.manita-report-page #report_data_section.is-loading .manita-report-data-body {
    flex: 1 1 auto;
    min-height: 240px;
    position: relative;
}

.manita-report-page #report_data_section.is-loading .manita-report-data-loader {
    display: flex !important;
}

.manita-report-page .manita-report-data-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
}

.manita-report-page .manita-report-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-width: 0.22em;
}

.manita-report-page .manita-report-data-loader-text {
    letter-spacing: 0.01em;
}

.manita-report-page #report_data_section.is-loading .manita-report-data-body > :not(.manita-report-data-loader) {
    display: none !important;
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-data-loader {
    background: rgba(var(--bs-body-bg-rgb, 33, 37, 41), 0.92);
}

html[data-bs-theme="dark"] .manita-report-page .manita-report-data-loader-inner {
    color: var(--bs-body-color);
}

.manita-report-page .manita-report-table-scroll {
    flex: 1 1 auto;
    min-height: 120px;
    overflow: auto;
    width: 100%;
    padding: 0 1.25rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    background: #fff;
    position: relative;
    z-index: 1;
}

.manita-report-page .manita-report-table-scroll .manita-report-table {
    margin: 0;
    border-top: 0;
}

.manita-report-page .manita-report-grand-total-panel {
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--manita-report-row-bg);
    border-top: 0;
    padding: 0 1.25rem 0.25rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.manita-report-page .manita-report-grand-total-track {
    will-change: transform;
}

.manita-report-page .manita-report-grand-total-panel .manita-report-table,
.manita-report-page .manita-report-grand-total-panel .manita-report-total-table {
    margin-bottom: 0;
    border-top: 0;
}

.manita-report-page .manita-report-grand-total-panel .manita-report-sync-header {
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: collapse;
}

.manita-report-page .manita-report-grand-total-panel .manita-report-sync-header td,
.manita-report-page .manita-report-grand-total-panel .manita-report-sync-header th {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.manita-report-page .manita-report-table.manita-report-layout-synced {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.manita-report-page .manita-report-table.manita-report-layout-synced td,
.manita-report-page .manita-report-table.manita-report-layout-synced th {
    padding: 0.4rem 0.5rem;
    overflow: hidden;
    word-wrap: break-word;
    vertical-align: top;
    box-sizing: border-box;
}

.manita-report-page .manita-report-table.manita-report-layout-synced td.text-right,
.manita-report-page .manita-report-table.manita-report-layout-synced th.text-right {
    white-space: nowrap;
}

.manita-report-page .manita-report-table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
    margin-bottom: 0;
    border-collapse: collapse;
    border: 1px solid var(--manita-report-border);
    background: var(--manita-report-row-bg);
}

.manita-report-page .manita-report-table td,
.manita-report-page .manita-report-table th {
    border: 1px solid var(--manita-report-border);
    padding: 0.6rem 0.8rem;
    vertical-align: middle;
}

.manita-report-page .manita-report-table thead td,
.manita-report-page .manita-report-table thead th {
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--manita-report-text);
    text-align: left;
    background-color: var(--manita-report-header-bg) !important;
}

.manita-report-page .manita-report-table tbody td {
    font-size: 0.8125rem;
    color: var(--manita-report-text);
    background-color: var(--manita-report-row-bg);
}

.manita-report-page .manita-report-table td.text-right,
.manita-report-page .manita-report-table th.text-right {
    text-align: right !important;
}

.manita-report-page .manita-report-table td.text-left,
.manita-report-page .manita-report-table th.text-left {
    text-align: left !important;
}

/* Detail rows — plain white */
.manita-report-page .manita-report-table.table-striped > tbody > tr > *,
.manita-report-page .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row) > td {
    background-color: var(--manita-report-row-bg) !important;
    --bs-table-bg-type: initial;
    box-shadow: none;
}

/* Group header rows */
.manita-report-page .manita-report-table tbody tr.manita-group-header td,
.manita-report-page .manita-report-table tbody tr.table-info.manita-group-header td {
    background-color: var(--manita-report-row-bg) !important;
    font-weight: 700;
    color: var(--manita-report-text);
}

/* Subtotal rows */
.manita-report-page tr.manita-subtotal-row td {
    font-weight: 700;
    background-color: var(--manita-report-row-bg) !important;
    vertical-align: middle;
    color: var(--manita-report-text);
}

/* Grand total row */
.manita-report-page tr.manita-grand-total-row td,
.manita-report-page tr.manita-grand-total-row th {
    font-weight: 700;
    background-color: var(--manita-report-row-bg) !important;
    vertical-align: middle;
    color: var(--manita-report-text);
}

.manita-report-page .manita-report-grand-total-panel tr.manita-grand-total-row td {
    font-weight: 700;
    background-color: var(--manita-report-row-bg) !important;
    vertical-align: middle;
    color: var(--manita-report-text);
    border-top: 0 !important;
}

.manita-report-page tr.manita-subtotal-row td.text-right,
.manita-report-page tr.manita-grand-total-row td.text-right,
.manita-report-page .manita-report-grand-total-panel tr.manita-grand-total-row td.text-right {
    white-space: nowrap;
}

.manita-report-page tr.manita-subtotal-row td:empty,
.manita-report-page tr.manita-grand-total-row td:empty,
.manita-report-page .manita-report-grand-total-panel tr.manita-grand-total-row td:empty {
    background-color: var(--manita-report-row-bg) !important;
}

.manita-report-page .manita-report-table-scroll .manita-report-table tbody td {
    position: relative;
    z-index: 1;
    background-clip: padding-box;
}

.manita-report-page .manita-report-grand-total-panel:empty {
    display: none;
    border-top: 0;
    padding: 0;
}

.manita-report-page .manita-report-print-header {
    display: none !important;
}

.manita-report-page .manita-report-print-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.manita-report-page .manita-report-print-logo-wrap {
    flex: 0 0 auto;
}

.manita-report-page .manita-report-print-logo {
    max-width: 110px;
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
}

.manita-report-page .manita-report-print-title-box {
    flex: 1 1 auto;
    text-align: center;
    padding: 6px 20px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #000;
    text-transform: uppercase;
    background: #fff;
    white-space: nowrap;
}

.manita-report-page .manita-report-print-company {
    flex: 0 0 auto;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
}

.manita-report-page .manita-report-print-subtitle,
.manita-report-page .manita-report-print-extra {
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}

.manita-report-page .manita-report-print-subtitle {
    margin-bottom: 2px;
}

.manita-report-page .manita-report-print-extra {
    font-size: 10px;
}

.manita-report-page .manita-report-data-footer {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.65rem 1.25rem 0.85rem;
    margin: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
}

.manita-report-page .manita-report-table-scroll .manita-report-table thead tr {
    position: relative;
    z-index: 5;
}

.manita-report-page .manita-report-table-scroll .manita-report-table thead td,
.manita-report-page .manita-report-table-scroll .manita-report-table thead th {
    position: sticky;
    top: 0;
    z-index: 30;
    vertical-align: middle;
    background-color: var(--manita-report-header-bg) !important;
    background-clip: padding-box;
    box-shadow:
        0 -6px 0 6px var(--manita-report-header-bg),
        inset 0 -1px 0 var(--manita-report-header-border);
}

@media print {
    .manita-report-page .manita-report-table-scroll .manita-report-table thead td,
    .manita-report-page .manita-report-table-scroll .manita-report-table thead th {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        background-clip: border-box !important;
    }
}

.manita-report-page .manita-report-table-scroll .manita-report-table thead.table-primary td,
.manita-report-page .manita-report-table-scroll .manita-report-table thead.table-primary th {
    background-color: var(--manita-report-header-bg) !important;
}

.manita-report-page .manita-report-grand-total-panel .manita-report-total-table {
    border-top: 0;
    margin-top: 0;
}

.manita-report-page .manita-report-table .wrap-text {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 320px;
    line-height: 1.35;
}

.manita-report-page .manita-report-table .manita-col-item {
    min-width: 352px;
}

.manita-report-page .manita-report-table td.manita-col-item.wrap-text,
.manita-report-page .manita-report-table th.manita-col-item {
    max-width: 380px;
}

.manita-report-page .manita-group-header {
    cursor: pointer;
    user-select: none;
}

.manita-report-page .manita-group-header .manita-group-toggle-icon {
    display: none;
}

.manita-report-page tr.manita-group-collapsed-row {
    display: none !important;
}

/* Fullscreen — data section fills viewport */
#report_data_section:fullscreen,
#report_data_section:-webkit-full-screen,
#report_data_section:-moz-full-screen,
#report_data_section:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    overflow: hidden !important;
    background: #fff;
    display: flex !important;
    flex-direction: column !important;
    z-index: 9999;
    --manita-report-offset-top: 0px;
}

#report_data_section:fullscreen .card-header,
#report_data_section:-webkit-full-screen .card-header,
#report_data_section:-moz-full-screen .card-header,
#report_data_section:-ms-fullscreen .card-header {
    flex-shrink: 0;
}

#report_data_section:fullscreen .manita-report-data-body,
#report_data_section:-webkit-full-screen .manita-report-data-body,
#report_data_section:-moz-full-screen .manita-report-data-body,
#report_data_section:-ms-fullscreen .manita-report-data-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#report_data_section:fullscreen .manita-report-table-scroll,
#report_data_section:-webkit-full-screen .manita-report-table-scroll,
#report_data_section:-moz-full-screen .manita-report-table-scroll,
#report_data_section:-ms-fullscreen .manita-report-table-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: auto !important;
}

#report_data_section:fullscreen .manita-report-grand-total-panel,
#report_data_section:-webkit-full-screen .manita-report-grand-total-panel,
#report_data_section:-moz-full-screen .manita-report-grand-total-panel,
#report_data_section:-ms-fullscreen .manita-report-grand-total-panel,
#report_data_section:fullscreen .manita-report-data-footer,
#report_data_section:-webkit-full-screen .manita-report-data-footer,
#report_data_section:-moz-full-screen .manita-report-data-footer,
#report_data_section:-ms-fullscreen .manita-report-data-footer {
    flex-shrink: 0;
}

@media print {
    html,
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.manita-report-page #main-wrapper .left-sidebar,
    body.manita-report-page #main-wrapper .page-wrapper > header,
    body.manita-report-page .preloader,
    body.manita-report-page #report_filter_section,
    body.manita-report-page .manita-report-toolbar,
    body.manita-report-page #toggle_filters,
    body.manita-report-page .button1,
    body.manita-report-page #report_data_section > .card-header,
    body.manita-report-page .manita-report-data-footer,
    body.manita-report-page .manita-report-grand-total-panel,
    body.manita-report-page .page-wrapper footer,
    body.manita-report-page .page-wrapper .footer {
        display: none !important;
    }

    body.manita-report-page .manita-report-print-header {
        display: block !important;
        padding: 4mm 8mm 2mm;
        margin: 0;
        border-bottom: 0;
        background: #fff;
        page-break-after: avoid;
        break-after: avoid;
    }

    body.manita-report-page .manita-report-print-top {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 6px;
    }

    body.manita-report-page .manita-report-print-logo-wrap {
        flex: 0 0 auto;
    }

    body.manita-report-page .manita-report-print-logo {
        max-width: 90px;
        max-height: 54px;
    }

    body.manita-report-page .manita-report-print-title-box {
        flex: 1 1 auto;
        display: block;
        text-align: center;
        padding: 4px 16px;
        border: 0;
        border-radius: 0;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #000;
        background: #fff;
        white-space: nowrap;
        margin: 0;
    }

    body.manita-report-page .manita-report-print-company {
        flex: 0 0 auto;
        text-align: right;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        color: #000;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    body.manita-report-page .manita-report-print-subtitle,
    body.manita-report-page .manita-report-print-extra {
        text-align: center;
        font-size: 9.5px;
        color: #000;
        margin: 0;
        line-height: 1.4;
    }

    body.manita-report-page .manita-report-print-subtitle {
        margin-top: 0;
        margin-bottom: 1px;
    }

    body.manita-report-page .manita-report-print-extra {
        margin-bottom: 3px;
    }

    body.manita-report-page .manita-report-print-meta-block {
        text-align: center;
        margin-bottom: 4px;
    }

    body.manita-report-page #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        background: #fff;
    }

    body.manita-report-page #report_data_section {
        box-shadow: none !important;
        border: 0 !important;
        background: #fff !important;
    }

    body.manita-report-page #report_data_section[data-loaded="1"] {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    body.manita-report-page .manita-report-data-body {
        padding: 0 !important;
    }

    body.manita-report-page .manita-report-table-scroll {
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        padding: 2mm 5mm 6mm !important;
        background: #fff !important;
    }

    body.manita-report-page .manita-report-table-scroll > p,
    body.manita-report-page .manita-report-table-scroll > br {
        display: none !important;
    }

    /* All reports — full black grid on every row and column */
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 8px !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        border: 1px solid #000 !important;
        table-layout: auto !important;
        page-break-inside: auto;
        --bs-table-bg: #fff !important;
        --bs-table-color: #000 !important;
        --bs-table-border-color: #000 !important;
        background: #fff !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table > :not(caption) > *,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table.table-bordered > :not(caption) > * {
        border: 0 !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table > :not(caption) > * > *,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table td,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table th,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table td,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table th,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active td,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active th,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table.table-bordered > :not(caption) > * > * {
        border: none !important;
        box-shadow:
            inset 0 -1px 0 #000,
            inset -1px 0 0 #000 !important;
        padding: 3px 4px !important;
        color: #000 !important;
        vertical-align: top !important;
        outline: none !important;
        background-color: #fff !important;
        background-clip: border-box !important;
        overflow: visible !important;
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        min-height: 14px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table > :not(caption) > * > *:first-child,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table td:first-child,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table th:first-child,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table td:first-child,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table th:first-child,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active td:first-child,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active th:first-child {
        box-shadow:
            inset 1px 0 0 #000,
            inset 0 -1px 0 #000,
            inset -1px 0 0 #000 !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table.manita-report-layout-synced td,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table.manita-report-layout-synced th {
        overflow: visible !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead {
        display: table-header-group !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody {
        display: table-row-group !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr {
        page-break-inside: auto;
        break-inside: auto;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-group-header,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-subtotal-row,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-grand-total-row {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead td,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead th,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table thead td,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table thead th,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active thead td,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active thead th,
    body.manita-report-page .manita-report-table-scroll .manita-report-table thead.table-primary td,
    body.manita-report-page .manita-report-table-scroll .manita-report-table thead.table-primary th {
        border: none !important;
        box-shadow:
            inset 0 1px 0 #000,
            inset 0 -1px 0 #000,
            inset -1px 0 0 #000 !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        vertical-align: middle !important;
        background-color: #fff !important;
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        background-clip: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead td:first-child,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead th:first-child,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table thead td:first-child,
    body.manita-report-page.manita-report-printing #printArea .manita-report-table-scroll .manita-report-table thead th:first-child,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active thead td:first-child,
    body.manita-report-page .manita-report-table-scroll .manita-report-table.manita-print-grid-active thead th:first-child {
        box-shadow:
            inset 1px 0 0 #000,
            inset 0 1px 0 #000,
            inset 0 -1px 0 #000,
            inset -1px 0 0 #000 !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr.manita-group-header td,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr.table-info.manita-group-header td {
        background-color: #fff !important;
        font-weight: 700 !important;
        text-align: left !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row) > td:first-child,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row) > td:nth-child(2) {
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead td.text-left,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead th.text-left {
        text-align: left !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead td.text-right,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table thead th.text-right {
        text-align: right !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table.table-striped > tbody > tr > *,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row) > td {
        background-color: #fff !important;
        --bs-table-bg-type: initial !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody td {
        text-align: left !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr:not(.manita-group-header):not(.manita-subtotal-row):not(.manita-grand-total-row) td {
        background-color: #fff !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-subtotal-row td,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-grand-total-row td,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr.font-weight-bold td {
        background-color: #fff !important;
        font-weight: 700 !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-subtotal-row td.text-right,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tr.manita-grand-total-row td.text-right,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table tbody tr.font-weight-bold td.text-right {
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table td.text-right,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table th.text-right {
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table td.text-left,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table th.text-left,
    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table td.wrap-text {
        text-align: left !important;
        white-space: normal !important;
    }

    body.manita-report-page #printArea .manita-report-table-scroll .manita-report-table .wrap-text {
        max-width: none !important;
        line-height: 1.3;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    body.manita-report-page tr.manita-group-collapsed-row {
        display: table-row !important;
    }

    body.manita-report-page .manita-group-toggle-icon {
        display: none !important;
    }

    @page {
        size: landscape;
        margin: 6mm 8mm;
    }
}
