/* Rentabilité workbench — design Jupiter */
.rent-workbench {
    --rent-bg: #F5F8FA;
    --rent-text: #33475B;
    --rent-muted: #506E91;
    --rent-border: #E5EBF0;
    --rent-card: #FFFFFF;
    --rent-green: #008000;
    --rent-green-soft: #E6F4E6;
    --rent-link: #0091AE;
    --rent-ext: #0091AE;
    --rent-por: #F59E0B;
    --rent-int: #10B981;
    --rent-shadow: 0 1px 3px rgba(15, 32, 61, .08);
    padding: 12px 8px 24px;
    background: var(--rent-bg);
    color: var(--rent-text);
    font-size: 13px;
}

.rent-wb-header {
    border: 1px solid var(--rent-border);
    border-radius: 6px;
    background: var(--rent-card);
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: var(--rent-shadow);
}

.rent-wb-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rent-wb-title-inline {
    font-weight: 700;
    font-size: 16px;
    margin-right: 6px;
}

.rent-wb-spacer { flex: 1 1 auto; }

.rent-wb-month-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rent-wb-month-nav.is-locked .btn {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.rent-wb-month-nav.is-locked .rent-wb-period-chip {
    opacity: 0.65;
    color: #6B7280;
}

.rent-wb-period-chip {
    border: 1px solid var(--rent-border);
    border-radius: 20px;
    padding: 5px 14px;
    background: #f4f8ff;
    font-weight: 600;
}

.rent-wb-kpis {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 1400px) {
    .rent-wb-kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .rent-wb-kpis { grid-template-columns: repeat(2, 1fr); }
}

.rent-wb-kpi {
    background: var(--rent-card);
    border: 1px solid var(--rent-border);
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: var(--rent-shadow);
    position: relative;
    overflow: hidden;
}

.rent-wb-kpi .label {
    font-size: 10.5px;
    color: var(--rent-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}

.rent-wb-kpi .value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
}

.rent-wb-kpi .sub {
    font-size: 10.5px;
    color: var(--rent-muted);
    margin-top: 4px;
}

.rent-wb-kpi .tag {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    background: #FEF3C7;
    color: #92400E;
}

.rent-wb-kpi.alert {
    background: linear-gradient(135deg, #FEF2F2 0%, #fff 100%);
    border-color: #FECACA;
}

.rent-wb-kpi.accent-ca { border-top: 3px solid var(--rent-link); }
.rent-wb-kpi.accent-mb { border-top: 3px solid var(--rent-green); }
.rent-wb-kpi.accent-mn { border-top: 3px solid #10B981; }
.rent-wb-kpi.accent-rfa { border-top: 3px solid #7C3AED; }
.rent-wb-kpi.accent-ext { border-top: 3px solid var(--rent-ext); }
.rent-wb-kpi.accent-por { border-top: 3px solid var(--rent-por); }
.rent-wb-kpi.accent-int { border-top: 3px solid var(--rent-int); }
.rent-wb-kpi.accent-cra { border-top: 3px solid #F59E0B; }

.rent-wb-cra-progress {
    height: 5px;
    background: #FEE2E2;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.rent-wb-cra-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 3px;
}

.rent-wb-dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 1100px) {
    .rent-wb-dash-row { grid-template-columns: 1fr; }
}

.rent-wb-dash-card {
    background: #fff;
    border: 1px solid var(--rent-border);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: var(--rent-shadow);
}

.rent-wb-dash-card h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.rent-wb-dash-card h3 .sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--rent-muted);
}

.rent-wb-rank-line {
    display: grid;
    grid-template-columns: 130px 1fr 80px;
    gap: 8px;
    align-items: center;
    font-size: 12.5px;
    padding: 5px 0;
}

.rent-wb-rank-bar {
    height: 8px;
    background: #E5EBF0;
    border-radius: 4px;
    overflow: hidden;
}

.rent-wb-rank-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
}

.rent-wb-rank-bar .rb-ca { background: linear-gradient(90deg, #0091AE, #06B6D4); }
.rent-wb-rank-bar .rb-mn { background: linear-gradient(90deg, #008000, #34D399); }

.rent-wb-rank-val {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.rent-wb-spark-wrap {
    height: 155px;
    position: relative;
    margin-top: 4px;
}

.rent-wb-spark-grid {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 4px 12px 0;
}

.rent-wb-spark-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.rent-wb-spark-bar .vals {
    display: flex;
    gap: 4px;
    width: 100%;
    flex: 1;
    justify-content: center;
    align-items: flex-end;
    min-height: 0;
    padding-bottom: 2px;
}

.rent-wb-spark-bar .b {
    width: 16px;
    min-height: 2px;
    border-radius: 3px 3px 0 0;
}

.rent-wb-spark-bar .b-ca { background: linear-gradient(180deg, #0091AE, #06B6D4); }
.rent-wb-spark-bar .b-mn { background: linear-gradient(180deg, #008000, #34D399); }

.rent-wb-spark-bar .lbl {
    position: static;
    flex-shrink: 0;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--rent-text);
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

.rent-wb-spark-legend {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    font-size: 11px;
    color: var(--rent-muted);
    margin-top: 4px;
}

.rent-wb-spark-legend .ld {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.rent-wb-spark-legend .ld-ca { background: #0091AE; }
.rent-wb-spark-legend .ld-mn { background: #008000; }

.rent-wb-ytd-bar {
    border-top: 1px solid var(--rent-border);
    margin-top: 8px;
    padding-top: 8px;
    font-size: 11px;
    color: var(--rent-muted);
    display: flex;
    justify-content: space-between;
}

.rent-wb-filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--rent-card);
    border: 1px solid var(--rent-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: var(--rent-shadow);
}

.rent-wb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rent-green);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.rent-wb-chip.outline {
    background: #fff;
    border: 1px solid var(--rent-border);
    color: var(--rent-text);
}

.rent-wb-select {
    background: transparent;
    border: 0;
    font: inherit;
    color: inherit;
    outline: none;
    cursor: pointer;
}

.rent-wb-select option {
    color: #33475B;
    background: #fff;
}

.rent-wb-chip.outline .rent-wb-select {
    color: #33475B;
}

.rent-wb-type-filter {
    position: relative;
}

.rent-wb-dd {
    position: relative;
    display: inline-block;
}

.rent-wb-dd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    padding: 2px 0 2px 4px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: inherit;
    color: #33475B;
    cursor: pointer;
    text-align: left;
}

.rent-wb-dd-trigger:hover {
    color: var(--rent-link);
}

.rent-wb-dd-chevron {
    font-size: 10px;
    color: #94A3B8;
    transition: transform .15s ease, color .15s ease;
}

.rent-wb-type-filter.is-open .rent-wb-dd-chevron {
    transform: rotate(180deg);
    color: var(--rent-link);
}

.rent-wb-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 168px;
    padding: 6px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 32, 61, 0.12);
}

.rent-wb-dd-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 400;
    color: var(--rent-text);
    cursor: pointer;
    transition: background-color .12s ease;
}

.rent-wb-dd-option:hover {
    background: #F8FAFC;
}

.rent-wb-dd-option input[type="checkbox"] {
    margin: 0;
    accent-color: var(--rent-link);
    cursor: pointer;
}

.rent-wb-dd-option span {
    flex: 1;
    font-size: 12px;
}

.rent-wb-search-inline {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rent-border);
    border-radius: 3px;
    padding: 5px 10px;
    flex: 1;
    min-width: 180px;
}

.rent-wb-search-inline input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font: inherit;
}

.rent-wb-btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.rent-wb-btn-reset .fas {
    font-size: 11px;
    color: #94A3B8;
    transition: color .15s ease, transform .15s ease;
}

.rent-wb-btn-reset:hover {
    border-color: rgba(0, 145, 174, 0.4);
    background: #F8FAFC;
    color: var(--rent-text);
    box-shadow: 0 1px 3px rgba(0, 145, 174, 0.08);
}

.rent-wb-btn-reset:hover .fas {
    color: var(--rent-link);
    transform: rotate(-30deg);
}

.rent-wb-btn-reset:active {
    background: #F1F5F9;
    box-shadow: none;
}

.rent-wb-table-wrap {
    background: var(--rent-card);
    border: 1px solid var(--rent-border);
    border-radius: 6px;
    box-shadow: var(--rent-shadow);
    overflow: hidden;
}

.rent-wb-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rent-border);
    font-size: 12px;
    color: var(--rent-muted);
}

.rent-wb-table-head .left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rent-wb-table-head .right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rent-wb-table-scroll { overflow: auto; }

.rent-wb-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rent-wb-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    font-weight: 500;
    font-size: 12px;
    text-align: left;
    padding: 0;
    border-bottom: 1px solid var(--rent-border);
    white-space: nowrap;
    vertical-align: middle;
}

.rent-wb-grid thead th .rent-th-label {
    line-height: 1.2;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color .12s ease;
}

.rent-wb-grid thead th:not(.rent-sortable) {
    padding: 10px 12px;
}

.rent-wb-grid thead th.rent-sortable {
    padding: 0;
    cursor: pointer;
    user-select: none;
}

.rent-wb-grid thead th.rent-sortable .rent-th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
}

.rent-wb-grid thead th.num.rent-sortable .rent-th-inner {
    justify-content: flex-end;
}

.rent-wb-grid thead th.rent-sortable:hover .rent-th-label,
.rent-wb-grid thead th.rent-sortable.is-sorted .rent-th-label {
    color: var(--rent-text);
}

.rent-wb-grid thead th.rent-sortable.is-sorted .rent-th-label {
    font-weight: 600;
}

.rent-sort-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #CBD5E1;
    opacity: 0;
    transition: opacity .15s ease;
}

.rent-wb-grid thead th.rent-sortable:hover .rent-sort-icon,
.rent-sort-icon.is-active {
    opacity: 1;
}

.rent-sort-icon .rent-chev-up,
.rent-sort-icon .rent-chev-down {
    transition: stroke .12s ease, stroke-width .12s ease;
}

.rent-sort-icon.is-active.is-asc .rent-chev-up {
    stroke: var(--rent-link);
    stroke-width: 2;
}

.rent-sort-icon.is-active.is-asc .rent-chev-down {
    stroke: #E2E8F0;
}

.rent-sort-icon.is-active.is-desc .rent-chev-down {
    stroke: var(--rent-link);
    stroke-width: 2;
}

.rent-sort-icon.is-active.is-desc .rent-chev-up {
    stroke: #E2E8F0;
}

.rent-sort-chip-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.rent-sort-chip {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 32, 61, 0.04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.rent-sort-chip:hover {
    border-color: rgba(0, 145, 174, 0.4);
    box-shadow: 0 2px 6px rgba(0, 145, 174, 0.1);
}

.rent-sort-chip-main {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 4px 5px 10px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.rent-sort-chip-main:hover {
    color: var(--rent-text);
    background: #F8FAFC;
}

.rent-sort-chip-svg {
    flex-shrink: 0;
    color: var(--rent-link);
}

.rent-sort-chip-label {
    font-weight: 500;
    color: var(--rent-text);
}

.rent-sort-chip-sep {
    color: #CBD5E1;
    font-weight: 400;
}

.rent-sort-chip-dir {
    color: var(--rent-link);
    font-weight: 600;
}

.rent-sort-chip-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    padding: 0;
    border: 0;
    border-left: 1px solid #E2E8F0;
    border-radius: 0;
    background: transparent;
    color: #94A3B8;
    font-size: 10px;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.rent-sort-chip:hover .rent-sort-chip-clear {
    border-left-color: rgba(0, 145, 174, 0.2);
}

.rent-sort-chip-clear:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.rent-wb-grid thead th.num,
.rent-wb-grid tbody td.num,
.rent-wb-grid tfoot td.num { text-align: right; font-variant-numeric: tabular-nums; }

.rent-wb-grid thead th.ytd,
.rent-wb-grid tbody td.ytd {
    background: #EFF6FF;
    color: #1E40AF;
}

.rent-wb-grid tbody td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--rent-border);
    vertical-align: middle;
}

.rent-wb-grid tbody tr:hover { background: #FAFBFD; cursor: pointer; }
.rent-wb-grid tbody tr.cra-missing { background: #FEF2F2 !important; }
.rent-wb-grid tbody tr.cra-soumis { background: #DBEAFE !important; }
.rent-wb-grid tbody tr.cra-missing:hover { background: #FECACA !important; }
.rent-wb-grid tbody tr.cra-soumis:hover { background: #BFDBFE !important; }
.rent-wb-grid tbody tr:not(.cra-missing):not(.cra-soumis):hover { background: #FAFBFD; }

.rent-wb-grid tfoot td {
    background: #FAFBFD;
    font-weight: 600;
    border-top: 2px solid var(--rent-border);
    padding: 11px 8px;
}

.rent-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.rent-type-externe { background: #CFFAFE; color: #155E75; border: 1px solid #A5F3FC; }
.rent-type-portage { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.rent-type-interne { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }

.rent-badge-class {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
}

.rent-badge-class.a { background: #10B981; }
.rent-badge-class.b { background: #3B82F6; }
.rent-badge-class.c { background: #F59E0B; }
.rent-badge-class.d { background: #EF4444; }

.rent-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.rent-pill.green { background: var(--rent-green-soft); color: #0A6E0A; }
.rent-pill.gray { background: #F1F5F9; color: #64748B; }
.rent-pill.red { background: #FEE2E2; color: #991B1B; }

.rent-rfa-cell {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.rent-rfa-value {
    font-size: 11px;
    color: #64748B;
    line-height: 1;
    white-space: nowrap;
}

.rent-wb-grid td.rent-col-oneline,
.rent-wb-grid th.rent-col-oneline {
    white-space: nowrap;
}

.rent-cra-default {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    color: #991B1B;
    font-weight: 600;
    border-bottom: 1px dotted #DC2626;
}

.rent-pill-cra-ok { background: #E6F4E6; color: #0A6E0A; font-size: 10.5px; padding: 2px 7px; border-radius: 10px; }
.rent-pill-cra-ko { background: #FEE2E2; color: #991B1B; font-size: 10.5px; padding: 2px 7px; border-radius: 10px; animation: rent-pulse 2s ease-in-out infinite; }
.rent-pill-cra-soumis { background: #2563EB; color: #FFFFFF; font-size: 10.5px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

@keyframes rent-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}

.rent-marge-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.rent-marge-bar { width: 40px; height: 5px; background: #E5EBF0; border-radius: 3px; overflow: hidden; }
.rent-marge-bar > span { display: block; height: 100%; border-radius: 3px; }
.rent-m-pos { background: linear-gradient(90deg, #10B981, #34D399); }
.rent-m-mid { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.rent-m-neg { background: linear-gradient(90deg, #DC2626, #F87171); }
.rent-m-num.pos { color: #0A6E0A; font-weight: 600; }
.rent-m-num.mid { color: #92400E; font-weight: 600; }
.rent-m-num.neg { color: #991B1B; font-weight: 600; }

.rent-wb-footnote {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 11px;
    color: var(--rent-muted);
    flex-wrap: wrap;
    gap: 8px;
}

.rent-wb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 32, 61, .25);
    z-index: 1040;
}

.rent-wb-backdrop.hidden { display: none; }

.rent-wb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 560px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(15, 32, 61, .12);
    border-left: 1px solid var(--rent-border);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.rent-wb-drawer.open { transform: translateX(0); }
.rent-wb-drawer.hidden { display: none; }

.rent-wb-drawer-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--rent-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rent-wb-drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.rent-wb-drawer-sub { font-size: 12px; color: var(--rent-muted); margin-top: 2px; }
.rent-wb-drawer-body { flex: 1; overflow: auto; padding: 18px; }

.rent-wb-section { margin-bottom: 20px; }
.rent-wb-section h4 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--rent-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rent-wb-kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 6px;
    font-size: 13px;
}

.rent-wb-kv .k { color: var(--rent-muted); }
.rent-wb-kv .v { font-weight: 500; }

.rent-wb-calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--rent-border);
    font-size: 13px;
}

.rent-wb-calc-row.total {
    border-bottom: 0;
    border-top: 2px solid var(--rent-text);
    font-size: 14px;
    font-weight: 600;
    padding-top: 10px;
}

.rent-wb-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rent-wb-content {
    position: relative;
    min-height: 480px;
}

.rent-wb-content.is-loading {
    pointer-events: none;
}

.rent-wb-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(245, 248, 250, 0.78);
    backdrop-filter: blur(3px);
    pointer-events: all;
}

.rent-wb-loading-overlay.hidden {
    display: none;
}

.rent-wb-loading-box {
    text-align: center;
    padding: 28px 36px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 32, 61, 0.12);
    border: 1px solid var(--rent-border);
    min-width: 280px;
}

.rent-wb-loading-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0F7FA 0%, #ECFDF5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rent-wb-loading-icon i {
    font-size: 26px;
    color: #0091AE;
    position: relative;
    z-index: 1;
}

.rent-wb-loading-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid #E5EBF0;
    border-top-color: #0091AE;
    border-right-color: #008000;
    animation: rent-wb-spin 0.85s linear infinite;
}

@keyframes rent-wb-spin {
    to { transform: rotate(360deg); }
}

.rent-wb-loading-box p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #33475B;
    letter-spacing: 0.01em;
}

.rent-wb-loading {
    text-align: center;
    padding: 40px;
    color: var(--rent-muted);
}

/* Modal export Excel (Rentabilité + Report CRA) */
.workbench-export-modal {
    padding: 4px 2px;
}

.workbench-export-period {
    margin-bottom: 14px;
}

.workbench-export-period .form-group {
    margin-bottom: 0;
}

.workbench-export-period .control-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.workbench-export-entity-filter {
    margin-bottom: 14px;
}

.workbench-export-entity-filter .control-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.workbench-export-intro {
    font-size: 13px;
    margin: 0 0 12px;
}

.workbench-export-col-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.workbench-export-col-actions .btn-link {
    padding: 0 4px;
    font-size: 13px;
}

.workbench-export-col-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
}

@media (max-width: 520px) {
    .workbench-export-col-list {
        grid-template-columns: 1fr;
    }
}

.workbench-export-col-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.workbench-export-col-item input {
    margin: 2px 0 0;
}

.workbench-export-col-item span {
    line-height: 1.35;
}

.rent-wb-spark-card.is-loading-extras,
.rent-wb-kpi.is-loading-extras {
    opacity: 0.72;
}

.rent-extras-placeholder {
    margin: 24px 0;
    text-align: center;
    font-size: 12px;
}

.rent-ytd-pending {
    color: var(--rent-muted);
    font-weight: 600;
}
