/* GestRestoSco - Styles de la synthese annuelle */

.annual-summary-scroll {
    max-height: 72vh;
    overflow: auto;
    scrollbar-gutter: stable;
}

.annual-summary-table {
    min-width: 1320px;
    font-variant-numeric: tabular-nums;
}

.annual-summary-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #212529;
    color: #fff;
    white-space: nowrap;
}

.annual-summary-table .annual-label-column {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 220px;
    max-width: 220px;
    white-space: normal;
    background: #fff;
    border-right: 2px solid #dee2e6;
}

.annual-summary-table thead .annual-label-column {
    z-index: 5;
    background: #212529;
    color: #fff;
}

.annual-summary-table .annual-period-column,
.annual-summary-table .annual-value-cell {
    min-width: 84px;
    white-space: nowrap;
}

.annual-summary-table .annual-current-column {
    --bs-table-bg: #fff3cd;
    background: #fff3cd !important;
}

.annual-summary-table thead .annual-current-column {
    background: #ffc107 !important;
    color: #212529 !important;
}

.annual-summary-table .annual-total-column {
    --bs-table-bg: #e7f1ff;
    min-width: 112px;
    background: #e7f1ff !important;
    border-left: 2px solid #9ec5fe;
    font-weight: 700;
}

.annual-summary-table thead .annual-total-column {
    background: #0d6efd !important;
    color: #fff !important;
}

.annual-summary-table .annual-label-info {
    background: #cff4fc;
}

.annual-summary-table .annual-label-warning {
    background: #fff3cd;
}

.annual-summary-table .annual-data-row>* {
    border-bottom-color: #e9ecef;
}

.annual-summary-table .annual-section-row th {
    background: #e9ecef;
    color: #495057;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: .4rem .65rem;
    text-align: left;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .annual-summary-scroll {
        max-height: 68vh;
    }

    .annual-summary-table {
        min-width: 1280px;
    }

    .annual-summary-table .annual-label-column {
        min-width: 190px;
        max-width: 190px;
    }
}

@media print {

    .d-print-none,
    .app-topbar,
    .app-sidebar,
    nav,
    .navbar,
    aside,
    .pagination {
        display: none !important;
    }

    .app-main,
    .app-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    .table {
        font-size: .7rem;
    }

    .annual-summary-scroll {
        max-height: none;
        overflow: visible;
    }

    .annual-summary-table thead th,
    .annual-summary-table .annual-label-column {
        position: static;
    }

    body {
        font-size: .8rem;
    }
}