.bacheca .header {
    position: relative;
}

.report-cache-banner {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    max-width: min(360px, 42vw);
    padding: 6px 10px;
    border: 1px solid rgba(32, 71, 105, .16);
    border-radius: 6px;
    background: #ffffff;
    color: var(--blu-platform, #204769);
    font-size: 12px;
    line-height: 1.1;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .08);
    cursor: pointer;
    z-index: 2;
}

.report-cache-banner:hover {
    border-color: rgba(32, 71, 105, .35);
}

.report-cache-banner__text {
    font-weight: 700;
    white-space: nowrap;
}

.report-cache-banner__date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #5d6975;
}

#reportBiCacheModal {
    --report-cache-blue: var(--blu-platform, #204769);
    --report-cache-border: #e7ebef;
    --report-cache-muted: #667486;
    --report-cache-text: #3f4650;
    --report-cache-soft: #f7f9fb;
    font-family: "Poppins", sans-serif;
}

#reportBiCacheModal .report-cache-modal__dialog {
    width: min(880px, calc(100vw - 48px));
    max-width: 880px;
}

#reportBiCacheModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 35, 52, .25);
}

#reportBiCacheModal .modal-header {
    align-items: center;
    min-height: 74px;
    padding: 22px 22px 14px;
    border-bottom: 0;
}

#reportBiCacheModal .modal-title {
    color: var(--report-cache-blue);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}

#reportBiCacheModal .report-cache-modal__close {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 6px;
    opacity: .65;
}

#reportBiCacheModal .report-cache-modal__close:hover {
    background-color: #f1f3f5;
    opacity: 1;
}

#reportBiCacheModal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 22px 22px;
}

.report-cache-modal__summary-text {
    display: block;
    color: var(--report-cache-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.report-cache-modal__details-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--report-cache-border);
    border-radius: 6px;
    background: var(--report-cache-soft);
    color: var(--report-cache-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
}

.report-cache-modal__details-toggle:hover {
    border-color: rgba(32, 71, 105, .28);
}

.report-cache-modal__details-toggle i {
    font-size: 12px;
    transition: transform .15s ease;
}

.report-cache-modal__details-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.report-cache-modal__bulk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--report-cache-blue);
    border-radius: 6px;
    background: var(--report-cache-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

.report-cache-modal__bulk:hover:not(:disabled) {
    background: #163852;
    border-color: #163852;
}

.report-cache-modal__bulk-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.report-cache-modal__bulk-icon i,
.report-cache-modal__bulk-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 13px;
    height: 13px;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    transform: translate(-50%, -50%);
}

.report-cache-modal__bulk-icon::after {
    content: "";
    position: absolute;
    inset: 1px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transform-origin: 50% 50%;
}

.report-cache-modal__bulk:disabled {
    opacity: .42;
    cursor: default;
}

.report-cache-modal__table-shell {
    overflow: visible;
    border: 1px solid var(--report-cache-border);
    border-radius: 6px;
    background: #ffffff;
}

.report-cache-modal__table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: var(--report-cache-text);
    font-size: 12px;
}

.report-cache-modal__col-select {
    width: 40px;
}

.report-cache-modal__col-entity {
    width: auto;
}

.report-cache-modal__col-year {
    width: 72px;
}

.report-cache-modal__col-refresh {
    width: 150px;
}

.report-cache-modal__col-status {
    width: 132px;
}

.report-cache-modal__col-actions {
    width: 62px;
}

.report-cache-modal__table th,
.report-cache-modal__table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--report-cache-border);
    vertical-align: middle;
}

.report-cache-modal__table th {
    background: #ffffff;
    color: #526173;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.report-cache-modal__table tbody tr:hover {
    background: #fafbfc;
}

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

.report-cache-modal__select-cell,
.report-cache-modal__row-select {
    text-align: center;
}

.report-cache-modal__table input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--report-cache-blue);
    cursor: pointer;
}

.report-cache-modal__table input[type="checkbox"]:disabled {
    cursor: default;
}

.report-cache-modal__entity {
    color: #4a4d53;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.report-cache-modal__year,
.report-cache-modal__date {
    color: #4a4d53;
    white-space: normal;
}

.report-cache-modal__row-actions {
    text-align: right;
    white-space: nowrap;
}

.report-cache-modal__refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d8e0e8;
    border-radius: 6px;
    background: #ffffff;
    color: var(--report-cache-blue);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.report-cache-modal__refresh:hover:not(:disabled) {
    border-color: var(--report-cache-blue);
    background: var(--report-cache-blue);
    color: #ffffff;
}

.report-cache-modal__refresh:disabled {
    opacity: .45;
    cursor: default;
}

.report-cache-modal__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: #edf8f0;
    color: #236b31;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
}

.report-cache-modal__status.is-untracked {
    background: #fff6df;
    color: #846100;
}

.report-cache-modal__status.is-missing {
    background: #fdecec;
    color: #a12b2b;
}

.report-cache-modal__empty {
    height: 96px;
    color: var(--report-cache-muted);
    font-size: 13px;
    text-align: center;
}

.report-cache-modal__actions {
    display: flex;
    justify-content: flex-end;
}

.report-cache-modal__bulk.is-loading .report-cache-modal__bulk-icon i,
.report-cache-modal__bulk.is-loading .report-cache-modal__bulk-icon svg {
    opacity: 0;
}

.report-cache-modal__bulk.is-loading .report-cache-modal__bulk-icon::after {
    opacity: 1;
    animation: report-cache-spin .8s linear infinite;
}

@keyframes report-cache-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .report-cache-banner {
        position: static;
        margin-top: 10px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #reportBiCacheModal .report-cache-modal__dialog {
        width: calc(100vw - 24px);
        margin-right: auto;
        margin-left: auto;
    }

    #reportBiCacheModal .modal-header {
        min-height: 64px;
        padding: 18px 16px 10px;
    }

    #reportBiCacheModal .modal-title {
        font-size: 20px;
    }

    #reportBiCacheModal .modal-body {
        padding: 0 16px 16px;
    }

    .report-cache-modal__bulk {
        width: 100%;
    }

    .report-cache-modal__table {
        font-size: 11px;
    }

    .report-cache-modal__table th,
    .report-cache-modal__table td {
        padding: 9px 7px;
    }
}
