/* ============================================
   FIDUCIA — Carried Interest LBO
   ============================================ */

/* ── REGIME BADGE ─────────────────────────── */
.regime-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 2px;
    text-transform: uppercase;
}
.regime-pv {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.regime-ts {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ── WATERFALL TABLE ──────────────────────── */
.waterfall-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.waterfall-table th {
    text-align: left;
    padding: 0.45rem 0.75rem;
    color: var(--gris-light);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.waterfall-table td {
    padding: 0.5rem 0.75rem;
    color: var(--blanc);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.waterfall-table tr.wf-total td {
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: var(--or);
}
.waterfall-table .wf-lp { color: #60a5fa; }
.waterfall-table .wf-gp { color: #fbbf24; }
.waterfall-table .wf-neutral { color: var(--gris-light); }

/* ── FISCAL BREAKDOWN ─────────────────────── */
.ci-fiscal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.83rem;
}
.ci-fiscal-row:last-child { border-bottom: none; }
.ci-fiscal-label { color: var(--gris-light); }
.ci-fiscal-value { color: var(--blanc); font-weight: 500; }
.ci-fiscal-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--or);
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.ci-fiscal-contrib { color: #f87171; }

/* ── NET EN POCHE ─────────────────────────── */
.ci-net-card {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    text-align: center;
    margin-top: 0.75rem;
}
.ci-net-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gris-light);
    margin-bottom: 0.35rem;
}
.ci-net-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #10b981;
}
.ci-net-sub {
    font-size: 0.72rem;
    color: var(--gris-light);
    margin-top: 0.25rem;
}

/* ── ALERTE PERTE ─────────────────────────── */
.ci-alerte-perte {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

/* ── ALERTE CONDITIONS CGI ────────────────── */
.ci-alerte-conditions {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(251, 146, 60, 0.08);
    border-left: 3px solid #fb923c;
    color: #fdba74;
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0 0 0.75rem;
}
.ci-alerte-conditions svg { color: #fb923c; }
.ci-alerte-conditions strong { color: #fed7aa; }

/* ── ALERTE T&S cotisations ───────────────── */
.ci-alerte-ts {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(251, 146, 60, 0.08);
    border-left: 3px solid #fb923c;
    color: var(--gris-light);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0.25rem 0 0.5rem;
}
.ci-alerte-ts svg {
    color: #fb923c;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── SIM DISCLAIMER (override gris-mid → gris-light) ─ */
.sim-panel .sim-disclaimer {
    color: var(--gris-light);
}

/* ── CHART CONTAINER ──────────────────────── */
.ci-chart-wrap {
    margin-top: 1rem;
    height: 200px;
}
.ci-chart-wrap canvas {
    max-height: 200px;
}
