﻿/* ============================================================
   Bestand : compassflow-grafiek.css
   Locatie : wwwroot/css
   Doel    : Styling voor de liquiditeitsgrafiek modal
   Context :
     - Grote rustige forecastmodal voor liquiditeitsanalyse
     - Grafiek centraal tonen binnen beschikbare ruimte
     - Basis leggen voor KPI-strip en prognosetabel
     - Gebruikt door LiquiditeitsGrafiekModal.razor
   Auteur  : Raymond Falck
   Datum   : 2026-05-06
   ============================================================ */

/* ============================================================
   MODAL
   ============================================================ */

.cf-modal.cf-liquiditeitsgrafiek-modal {
    width: min(1400px, 96vw) !important;
    max-width: 1400px !important;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.cf-liquiditeitsgrafiek-modal-body {
    flex: 1;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   GRAFIEK CONTAINER
   ============================================================ */

.cf-liquiditeitsgrafiek {
    flex: 1;
    min-height: 0;
    padding: 12px 8px 4px 8px;
    display: flex;
    flex-direction: column;
}

.cf-liquiditeitsgrafiek-chart {
    flex: 1;
    min-height: 0;
}

/* ============================================================
   KPI-STRIP
   ============================================================ */

.cf-liquiditeitsgrafiek-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.cf-liquiditeitsgrafiek-kpi {
    padding: 12px 14px;
    background: #f7faf8;
    border: 1px solid #dfe8e3;
    border-radius: 12px;
}

    .cf-liquiditeitsgrafiek-kpi span {
        display: block;
        margin-bottom: 4px;
        font-size: 0.78rem;
        color: #66756f;
    }

    .cf-liquiditeitsgrafiek-kpi strong {
        display: block;
        font-size: 1.1rem;
        color: #21433e;
    }

/* ============================================================
   PROGNOSETABEL
   ============================================================ */

/* Container onder de grafiek voor de compacte prognosetabel */
.cf-liquiditeitsgrafiek-tabel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dfe8e3;
    max-height: 220px;
    overflow-y: auto;
    position: relative;
}

/* Titel boven de prognosetabel */
.cf-liquiditeitsgrafiek-tabel-kop {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #21433e;
}

/* Tabel met compacte prognosemomenten onder de grafiek */
.cf-liquiditeitsgrafiek-prognosetabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

    /* Header van de prognosetabel */
    .cf-liquiditeitsgrafiek-prognosetabel thead th {
        padding: 8px 10px;
        text-align: left;
        font-size: 0.75rem;
        font-weight: 700;
        color: #66756f;
        background: #ffffff;
        border-bottom: 1px solid #dfe8e3;
    }
    
        /* Financiële kolomkoppen rechts uitlijnen */
        .cf-liquiditeitsgrafiek-prognosetabel thead th.cf-liquiditeitsgrafiek-bedrag {
            text-align: right;
        }

    /* Cellen van de prognosetabel */
    .cf-liquiditeitsgrafiek-prognosetabel tbody td {
        padding: 10px;
        border-bottom: 1px solid #eef3f0;
    }

    /* Rustige hover voor betere leesbaarheid */
    .cf-liquiditeitsgrafiek-prognosetabel tbody tr:hover {
        background: #f7faf8;
    }

/* Financiële kolommen rechts uitlijnen */
.cf-liquiditeitsgrafiek-bedrag {
    text-align: right;
}
