﻿    /* ============================================================
       Bestand : compassflow.css
       Locatie : wwwroot/css
       Context : B5a – HTML-first ontwerp, geen businesslogica
       Auteur  : Raymond Falck
       Datum   : 2024-03-01
       ============================================================ */

    /* =============== SHELL / LAYOUT =============== */

    .cf-shell {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .cf-topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 1px solid #ddd;
        background: #fff;
    }

    .cf-nav {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 10px 14px;
    }


    .cf-spacer {
        flex: 1;
    }

    .cf-content {
        padding: 8px 14px;
        max-width: 1600px;
        width: 100%;
        margin: 0 auto;
        flex: 1 1 auto;
        min-height: 0;
    }


    .cf-card {
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 14px;
        margin: 12px 0;
        background: #fff;
    }

    /* ============================================================
       Table actions (Bewerk / Verwijder knoppen)
       ============================================================ */

    .cf-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* =============== DASHBOARD =============== */

    .cf-dashboard-header {
        margin-top: -10px; /* compenseert de content padding-top */
        background: #f8fafc; /* heel licht grijs/blauw */
        display: flex;
        gap: 16px;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 24px;
    }

    .cf-dashboard .cf-block--kpi {
        margin-top: 0px; /* was effectief ~20px door .cf-block */
    }

    .cf-kpi-label {
        font-size: 12px;
        opacity: 0.8;
        margin-bottom: 4px; /* nieuw: minder wit */
    }

    .cf-kpi-value {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.1;
    }

    .cf-updated-value {
        font-size: 14px;
    }

    /* =============== PAGE ACTIONS =============== */

    .cf-page-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        padding-top: 12px;
        border-top: 1px solid #eee;
    }

    .cf-page-actions-hint {
        font-size: 12px;
        opacity: 0.75;
    }

    /* ============================================================
       PAGE ACTIONS – compacte variant
       Doel:
       Gebruik voor pagina-acties boven filters of tabellen,
       zonder scheidingslijn.
       ============================================================ */

    .cf-page-actions-compact {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-bottom: 6px;
    }




    .cf-quickactions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 18px;
    }

    .cf-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        background: #fff;
        padding: 8px 12px;
        border-radius: 10px;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
    }

        .cf-btn:hover {
            text-decoration: none;
        }

        .cf-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }


    /* Dropdowns */
    .cf-select {
        width: 100%;
        max-width: 220px;
        height: 24px;
        padding: 0 8px;
        border: 1px solid #e3e3e3;
        border-radius: 6px;
        background: #fff;
        font-size: 13px;
    }


    .cf-table-wrap {
        overflow-x: auto;
    }

    .cf-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed; /* 🔑 DIT is cruciaal */
    }

        .cf-table thead th {
            font-size: 0.82rem;
            font-weight: 600;
            color: #555;
            text-align: left;
            padding-top: 8px;
            padding-bottom: 8px;
        }

            .cf-table thead th.cf-num {
                text-align: right;
            }
        .cf-table th,
        .cf-table td {
            border-bottom: 1px solid #eee;
            padding: 6px 10px;
            vertical-align: middle;
            white-space: nowrap;
        }

            .cf-table th.cf-col-date,
            .cf-table td.cf-col-date {
                width: 90px;
                min-width: 90px;
            }

            .cf-table th.cf-col-total,
            .cf-table td.cf-col-total {
                width: 120px;
                min-width: 120px;
            }

            .cf-table th.cf-col-balance,
            .cf-table td.cf-col-balance {
                width: 120px;
                min-width: 120px;
            }

            .cf-table th.cf-col-mutations,
            .cf-table td.cf-col-mutations {
                width: 80%; /* of 55% */
                min-width: 600px; /* voorkomt te krap */
            }

    .cf-num {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .cf-muted {
        opacity: 0.6;
    }

    .cf-section-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .cf-actionlist {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

        .cf-actionlist li {
            padding: 0; /* geen extra wit tussen lijnen */
            border: none; /* belangrijk: geen lijnen hier */
        }

    .cf-warn {
        display: inline-block;
        width: 18px;
    }

    .cf-dot {
        display: inline-block;
        width: 18px;
    }


    .cf-footer {
        margin-top: 22px;
        opacity: 0.75;
        font-size: 12px;
    }

    




.cf-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}

.cf-badge-mutatie {
    background-color: #e8f1ff;
    color: #2b5fab;
}

.cf-badge-gepland {
    background-color: #f2f2f2;
    color: #666;
}

    /* Ghost buttons: lichte vervolgactie */
    .cf-btn-ghost {
        border-color: transparent;
        background: transparent;
        opacity: 0.85;
    }

    .cf-btn-ghost:hover {
        background: rgba(0,0,0,0.04);
        opacity: 1;
    }


    .cf-link-primary {
        color: #0b5ed7; /* hyperlink-achtig, niet schreeuwerig */
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

        .cf-link-primary:hover {
            text-decoration: underline;
        }


    .cf-link-secondary {
        color: #444;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }

        .cf-link-secondary:hover {
            text-decoration: underline;
        }


    /* Navigatie-link (uitstap) */
    .cf-link-nav {
        background: none;
        border: none;
        padding: 4px 0;
        color: #0b5ed7; /* klassiek hyperlink-blauw */
        font-weight: 400;
        cursor: pointer;
    }

        .cf-link-nav:hover {
            text-decoration: underline;
        }



    /* ============================================================
       KPI – saldo + contextuele actie (Beginsaldo instellen)
       Doel  : Actie logisch koppelen aan saldo, zonder dashboard
               bewerkbaar te maken
       ============================================================ */

    .cf-kpi-value-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
 
    .cf-kpi-main {
        display: flex;
        flex-direction: column;
    }

    .cf-kpi-value {
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.2;
    }


    /* ============================================================
       MODAL – Beginsaldo instellen (PoC)
       Doel    : Contextuele setup zonder dashboard editable te maken
       Gedrag  : Backdrop click sluit, Escape later (optioneel)
       ============================================================ */

    .cf-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 16px; /* ruimte op kleine schermen */
    }

    .cf-modal {
        width: 100%;
        max-width: 520px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.12);
        box-shadow: 0 10px 40px rgba(0,0,0,0.18);
        overflow: hidden;
    }

    .cf-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
    }

        .cf-modal-header h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

    .cf-modal-close {
        border: none;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 8px;
    }

        .cf-modal-close:hover {
            background: rgba(0,0,0,0.05);
        }

    .cf-modal-body {
        padding: 14px;
    }

    .cf-modal-help {
        margin: 0 0 12px 0;
        color: #444;
    }

    .cf-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cf-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #333;
        margin-top: 6px;
    }

    .cf-modal .cf-input {
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px 10px;
        font-size: 0.95rem;
    }

        .cf-modal .cf-input:focus {
            outline: 2px solid rgba(11,94,215,0.25);
                border-color: rgba(11,94,215,0.35);
        }

    .cf-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 12px 14px;
        border-top: 1px solid #eee;
    }

    /* Buttons (modal) – klein, consistent met dashboard */
    .cf-btn-primary {
        border: 1px solid #0b5ed7;
        background: #0b5ed7;
        color: #fff;
        font-weight: 600;
    }

        .cf-btn-primary:hover {
            filter: brightness(0.95);
            color: #fff;
            text-decoration: none;
        }

        .cf-btn-primary:visited {
            color: #fff;
        }

    /* Kleuraccenten */

    :root {
        --cf-neg: #b42318;
        --cf-hover: #eef2f7;
        --cf-topbar-h: 48px; /* pas aan tot het exact klopt */
        --cf-sticky-gap: 6px; /* kleine ruimte onder topbar */
    }

    /* Negatieve dag (dagsaldo < 0) */
    .cf-row-neg {
        background: rgba(180, 35, 24, 0.04);
    }

        .cf-row-neg:hover {
            background: rgba(180, 35, 24, 0.07);
        }




    /* Negatieve bedragen */
    .cf-neg {
        color: var(--cf-neg);
        font-weight: 600;
    }

    /* ============================================================
       HOOFDBLOKKEN (zachte kaarten)
       ============================================================ */


    /* kaart voor hoofdblokken */
    .cf-block {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px 18px;
        background: #fff;
        margin: 20px 0;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

    .cf-block--kpi {
        /* iets meer gewicht dan andere kaarten */
        border-color: #d1d5db;
        position: sticky;
        top: calc(var(--cf-topbar-h) + var(--cf-sticky-gap));
        z-index: 9; /* onder topbar (10), boven content */
        margin-top: 0; /* belangrijk */
        padding: 10px 14px; /* was ~16/18 */
        margin: 10px 0; /* was 20px 0 via .cf-block */
    }

    /* Prognose als primaire kaart */
    .cf-block--primary {
        border-color: #d1d5db;
    }

        /* iets meer lucht tussen blokken */
        .cf-block + .cf-block {
            margin-top: 20px;
        }

/* ============================================================
   PAGINA-NAVIGATIE (teruglink + breadcrumb)
   Doel    : Compacte navigatieregel boven de paginatitel waarin
             workflow-context en structurele breadcrumb samen
             worden weergegeven.
   Context :
     - Wordt gebruikt op detailpagina's zoals Boeking Detail
     - Links staat een contextuele teruglink (bijv. Prognose of Boekingen)
     - Rechts daarvan staat de breadcrumb
     - De breadcrumb zelf wordt gerenderd door CfBreadcrumb
   Opzet   :
     - Eén compacte horizontale regel
     - Subtiele scheiding tussen teruglink en breadcrumb
     - Rustige styling zodat de paginatitel visueel belangrijker blijft
   ============================================================ */

.cf-nav-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.cf-back-link {
    color: #667085;
    text-decoration: none;
    white-space: nowrap;
}

    .cf-back-link:hover {
        text-decoration: underline;
    }

.cf-nav-context-sep {
    color: #98a2b3;
    white-space: nowrap;
}


/* ============================================================
   PAGE / OVERVIEW PATTERNS
   Doel    : Generieke opmaak voor overzichtsschermen met:
             - paginatitel
             - subtitel
             - actieknoppen
             - filterbalk
             - tabelstatussen
   ============================================================ */

.cf-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cf-page-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}

.cf-page-subtitle {
    margin: 6px 0 0 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.cf-filter-toggle {
    padding: 4px 0;
    margin-bottom: 6px;
}

.cf-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

/* Trek filterbar iets omhoog zodat "Zoek" dichter tegen de kaartrand staat */
.cf-section .cf-panel {
    margin-top: -6px;
}

.cf-filtergroup {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.cf-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.cf-input {
    width: 100%;
    max-width: 260px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}

/* ============================================================
   VALIDATIE – verplichte velden, invoervelden en foutmeldingen
   Doel    : Uniforme visuele feedback bij ongeldige invoer
   Gebruik :
     - cf-required    → markering van verplicht veld in label
     - cf-input-error → op input/select/textarea
     - cf-field-error → tekst onder veld
   Context :
     - Wordt gebruikt in formulieren zoals Boeking Detail
     - Werkt zonder EditForm (handmatige validatie)
   ============================================================ */

.cf-required {
    color: #dc3545;
    margin-left: 2px;
    font-weight: 600;
}

.cf-input-error {
    border: 1px solid #dc3545; /* rood kader */
    background-color: #fff5f5; /* lichte rode tint */
}

    .cf-input-error:focus {
        outline: none;
        border-color: #dc3545;
        box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
    }

.cf-field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    white-space: normal; 
    line-height: 1.2;
}


/* Zet filterlabels zonder extra bovenmarge zodat "Zoek" hoger staat */
.cf-filter-field .cf-label {
    margin-top: 0;
}

.cf-table-empty {
    text-align: center;
    padding: 18px 10px;
    color: #6b7280;
}

.cf-table-actions {
    white-space: nowrap;
}


    /* ============================================================
       Sectie-kop (card header)
       - Subtiele “tinted” balk bovenin elk blok
       - Past bij rustige PROD-look (SaaS)
       ============================================================ */

    /* Kaart */
    .cf-section {
        margin-top: 10px;
        padding: 10px 12px 12px 12px;
        border: 1px solid #eee;
        border-radius: 12px;
        background: #fff;
    }

    /* Header moet “flush” met de kaart-rand */
    .cf-section-head {
        padding: 4px 12px;
        margin: -12px -12px 12px -12px; /* 🔑 trekt header naar de randen */
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
        border-radius: 12px 12px 0 0; /* 🔑 alleen bovenhoeken */
    }

/*   .cf-section-head h2 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: #1f2937;
        }
         */

    .cf-section-title {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: #1f2937;
    }


    /* ============================================================
       Achterstallige mutaties – kop (warning tint)
       Doel: zelfde card-structuur als andere blokken, maar met
             subtiele waarschuwing in de header (niet met harde rand)
       ============================================================ */

    .cf-block--warning .cf-section-head {
        background: #fff7e6; /* licht warm geel */
        border-bottom-color: #f1e6c7; /* zachte scheiding */
    }



    /* ============================================================
       Prognose: weekend / negatief / zebra
       ============================================================ */

    /* Basis zebra-striping */
    .cf-table tbody tr:nth-child(even) {
        background-color: #fafafa;
    }

    /* Weekend subtiel markeren */
    .cf-table tbody tr.cf-row-weekend {
        background-color: #f5f5f5;
    }

    /* Negatieve dag blijft leidend */
    .cf-table tbody tr.cf-row-neg {
        background-color: #fff5f5;
    }

    /* Negatief weekend → negatief blijft leidend */
    .cf-table tbody tr.cf-row-weekend.cf-row-neg {
        background-color: #fff5f5;
    }

    /* Hover normale rij */
    .cf-table tbody tr:not(.cf-row-neg):hover {
        background-color: var(--cf-hover);
    }

    /* Hover negatieve rij */
    .cf-table tbody tr.cf-row-neg:hover {
        background-color: #ffe5e5;
    }


    /* ============================================================
       Hover-effect op prognoserijen
       ============================================================ */

    /* Basis transition */
    .cf-table tbody tr {
        transition: background-color 120ms ease;
    }

        /* Hover normale rij */
        .cf-table tbody tr:not(.cf-row-neg):hover {
            background-color: var(--cf-hover); /* uniform */
        }

        /* Hover negatieve rij */
        .cf-table tbody tr.cf-row-neg:hover {
            background-color: #ffe5e5; /* iets sterker rood */
        }



    /* Actie-rij (klikbaar) */
    /* Acties: lijst reset */
    .cf-actionlist {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    /* Actieknop = grid met vaste kolommen */
    .cf-action-item {
        width: 100%;
        display: grid;
        /* icoon | titel | status | detail */
        grid-template-columns: 20px 280px 140px 1fr;
        align-items: center;
        column-gap: 16px;
        padding: 10px 6px;
        border: none;
        background: transparent;
        text-align: left;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        transition: background-color 120ms ease;
        border: none;
    }
        .cf-action-item:hover {
            background-color: var(--cf-hover);
        }

    .cf-actionlist li + li .cf-action-item {
        border-top: 1px solid #eee;
    }


    /* Titel */
    .cf-action-title {
        font-weight: 500;
    }

    .cf-ellipsis {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0; /* BELANGRIJK bij grid/flex */
    }

    /* Status kolom */
    .cf-action-status {
        font-size: 0.85rem;
        font-weight: 500;
        white-space: nowrap;
    }

    /* Detail kolom */
    .cf-action-detail {
        font-size: 0.85rem;
        color: #6b7280;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .cf-action-status {
        font-size: 0.85rem;
        color: #6b7280; /* neutraal grijs */
        font-weight: 500;
    }


    /* NAV links (alleen topbar) */
    .cf-nav .cf-link {
        text-decoration: none;
        padding: 6px 10px;
        border-radius: 8px;
        color: #111;
        background: transparent;
        border: 1px solid transparent;
    }

        .cf-nav .cf-link.active {
            font-weight: 600;
            border-color: #ddd;
        }

/* Link-knoppen in tabel (Bewerk / Verwijder) */
.cf-link-inline {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #1b4f9c;
    cursor: pointer;
}

    .cf-link-inline:hover {
        text-decoration: underline;
    }

    .cf-link-inline:disabled {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }

        .cf-link-inline:disabled:hover {
            text-decoration: none;
        }


/* ===================== CFINFO (tooltip overlay) ===================== */

/* wrapper */
.cf-info {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* knop */
.cf-info__btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #b8c0cc;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

    .cf-info__btn:focus-visible {
        outline: 2px solid rgba(59,130,246,0.7);
        outline-offset: 2px;
    }

/* popup */
.cf-info__pop {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: max-content;
    min-width: 260px;
    max-width: min(520px, 80vw);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
    z-index: 999;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
}

.cf-info__title {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.cf-info__text {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #1f2937;
}

/* open */
.cf-info:hover .cf-info__pop,
.cf-info:focus-within .cf-info__pop {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* pijltje */
.cf-info__pop::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 10px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.12);
    border-top: 1px solid rgba(0,0,0,0.12);
    transform: rotate(45deg);
}

/* kvline over volledige grid-breedte laten lopen */
.cf-kvline-span2 {
    grid-column: 1 / -1;
}


/* SORTERINGEN */

.cf-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.cf-sort-btn-num {
    justify-content: flex-end;
    width: 100%;
}

.cf-sort-btn:hover {
    text-decoration: underline;
}

.cf-sort-btn-text {
    white-space: nowrap;
}

.cf-sort-btn-indicator {
    min-width: 10px;
    color: #667085;
    font-size: 0.8rem;
}






