﻿/* ============================================================
    Bestand : compassflow.css
    Locatie : wwwroot\css
    Context : CompassFlow 2026 - Geconsolideerde SaaS-stijl
   ============================================================ */

:root {
    /* CompassFlow hoofdkleur (donkergroen)
       - Wordt gebruikt voor primaire acties, accenten en branding
       - Komt terug in topbar, knoppen en indicatoren */
    --cf-dark: #21433e;

    --cf-light-bg: #f2f6f5;
    --cf-marge-gold: #ffd700;
    --cf-text: #2c3e50;
    --cf-border: #eef2f1;

    /* Statuskleuren */
    --cf-success: #27ae60;
    --cf-danger: #e74c3c;
    --cf-zebra: #f4f8f7;
    --cf-muted: #95a5a6;

    /* ------------------------------------------------------------
       HOVER KLEUREN (INTERACTIE)
       ------------------------------------------------------------ */
    /* Subtiele hover (lichtgroen/grijzig)
       - Voor niet-dominante interacties
       - Ondersteunend, niet schreeuwerig */
    --cf-hover: #e9f1f0;
    /* Sterkere hover (duidelijk interactief)
       - Gebruikt voor klikbare rijen (dashboard, prognose)
       - Moet visueel opvallen zonder te agressief te zijn
       - Ligt dicht bij groen-thema maar blijft rustig */
    --cf-hover-strong: #e2e8f0;
}

/* =============== SHELL / LAYOUT =============== */

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--cf-light-bg);
    color: var(--cf-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.cf-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}




.cf-content {
    padding: 20px 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
}

/* =============== GLOBALE NAVIGATIE (BREADCRUMBS) =============== */

/* De container die de link en breadcrumb naast elkaar zet */
.cf-nav-context {
    display: flex;
    align-items: center;
    padding: 12px 0 8px 0; /* Geeft overal dezelfde witruimte bovenin */
    min-height: 32px;
}

/* De 'Terug' link (bijv. ← Geplande posten) */
.cf-back-link {
    color: #21433E !important; /* De CompassFlow groen */
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
}

    .cf-back-link:hover {
        text-decoration: underline !important;
    }

/* Het puntje tussen de link en de breadcrumb */
.cf-nav-context-sep {
    margin: 0 10px;
    color: #cbd5e1;
    font-size: 12px;
    user-select: none; /* Voorkomt dat je het puntje per ongeluk selecteert */
}

/* =============== KAARTEN & BLOKKEN =============== */

.cf-section, .cf-block {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    border: 1px solid var(--cf-border);
}

.cf-section-head {
    margin: -16px -20px 16px -20px;
    padding: 10px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--cf-border);
    border-radius: 8px 8px 0 0;
}

.cf-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cf-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============== TABELLEN =============== */

.cf-table-wrap {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.cf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .cf-table thead th {
        background: #f8fafc;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--cf-muted);
        text-transform: uppercase;
        padding: 12px 10px;
        border-bottom: 2px solid var(--cf-border);
        text-align: left;
    }

    /* Rechts uitlijnen voor bedragen */
    .cf-table th.cf-num, .cf-table td.cf-num {
        text-align: right;
        font-family: 'Roboto Mono', monospace;
        font-weight: 600;
    }

    .cf-table td {
        padding: 10px;
        border-bottom: 1px solid var(--cf-border);
        vertical-align: middle;
    }

    .cf-table tbody tr:nth-child(even) {
        background-color: var(--cf-zebra);
    }

    .cf-table tbody tr:hover {
        background-color: var(--cf-hover);
    }

/* ============================================================
   COMPASSFLOW GLOBAL BUTTONS
   ============================================================ */


/* Basis bouwsteen voor elke knop */
.cf-btn {
    all: unset !important;
    box-sizing: border-box !important;
    height: 32px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    /* Centrerings-fix */
    display: inline-flex !important;
    align-items: center !important; /* Verticaal center */
    justify-content: center !important; /* Horizontaal center */
    line-height: 1 !important; /* Voorkomt dat tekst naar beneden geduwd wordt */

    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center !important;
}

/* Primaire actie: Donkergroen (Zoek, Opslaan) */
.cf-btn-primary {
    background-color: #21433E !important;
    color: #ffffff !important;
    border: 1px solid #21433E !important;
}

    .cf-btn-primary:hover {
        background-color: #1a3531 !important;
        border-color: #1a3531 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }

/* Secundaire actie: Outline (Wis, Nieuw, Verwerkt) */
.cf-btn-outline {
    background-color: #ffffff !important;
    border: 1px solid #d1dbd9 !important;
    color: #374151 !important;
}

    .cf-btn-outline:hover {
        background-color: #f8fafc !important;
        border-color: #94a3b8 !important;
        color: #1e293b !important;
    }


    /* Outline-knop voor destructieve acties zoals verwijderen */
    .cf-btn-outline.cf-danger {
        border-color: #fadbd8 !important; /* lichtere rand */
        color: var(--cf-danger) !important;
    }

        .cf-btn-outline.cf-danger:hover {
            background-color: var(--cf-danger) !important;
            border-color: var(--cf-danger) !important;
            color: #ffffff !important;
        }


/* Interactie-stijlen */
.cf-btn:active {
    transform: translateY(1px);
}

.cf-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.cf-btn-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
}


/* Secundaire actie (maar wél actief en duidelijk klikbaar). Wordt gebruikt bij bv. Regels in BoekingDetail.razor */
.cf-btn-soft {
    background-color: #e3efed !important; /* iets donkerder */
    color: var(--cf-dark) !important;
    border: 1px solid #bcd6d1 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .cf-btn-soft:hover {
        background-color: #dcebea !important;
        border-color: #b8d4cf !important;
    }




/* ============================================================
   VALIDATIE / MELDINGEN
   ============================================================ */

.cf-page-actions-hint {
    font-size: 0.9rem;
}

.cf-error-text {
    color: var(--cf-danger);
    font-weight: 600;
}

/* Inline foutmelding bij invoervelden (mag nooit worden afgekapt) */
.cf-field-error {
    margin-top: 4px;
    color: var(--cf-danger);
    font-size: 11px;
    font-weight: 600;
    display: block;
    line-height: 1.35; /* voorkomt dat letters zoals g/j/p worden afgesneden */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* ============================================================
   STATUS LABELS
   ============================================================ */

.cf-status {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Bezig / waarschuwing */
.cf-status-warning {
    background-color: #fff4cc;
    color: #8a6d00;
}

/* Succes */
.cf-status-success {
    background-color: #e6f7ec;
    color: #1f7a3a;
}

/* Fout */
.cf-status-error {
    background-color: #fdecea;
    color: #a12622;
}



/* ============================================================
   SHARED UI COMPONENTS: LINKS & NAVIGATION
   ============================================================ */

/**
 * .cf-link-nav:    Gebruik voor interface-acties (bijv. "Filters tonen/verbergen")
 * .cf-link-inline: Gebruik voor acties binnen tabellen of tekst (bijv. "Openen", "Wis")
 */
.cf-link-inline,
.cf-link-nav {
    all: unset !important;
    box-sizing: border-box !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* De 'Zwarte/Grijze' variant - Voor navigatie en interface rust */
.cf-link-nav {
    color: #475569 !important; /* Rustig antraciet */
}

    .cf-link-nav:hover {
        color: #1e293b !important; /* Bijna zwart op hover */
        text-decoration: underline !important;
    }

/* De 'Blauwe' variant - Voor acties die data aanroepen of openen */
.cf-link-inline {
    color: #1976d2 !important; /* CompassFlow Blauw */
}

    .cf-link-inline:hover {
        color: #1565c0 !important;
        text-decoration: underline !important;
    }

    /* Gedeelde 'Disabled' status */
    .cf-link-inline:disabled,
    .cf-link-nav:disabled {
        opacity: 0.4 !important;
        cursor: default !important;
        pointer-events: none !important;
        text-decoration: none !important;
    }


/* Markering voor verplichte velden (Globaal) */
.cf-label-required::after {
    content: " *";
    color: var(--cf-danger); /* Gebruikt de variabele uit :root */
    font-weight: 700;
    margin-left: 2px;
}



/* =============== FOOTER =============== */

.cf-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    color: var(--cf-muted);
    background-color: transparent;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.03);
    flex-shrink: 0;
}



/* --- GLOBAL SAAS INPUT FIXES --- */

/* 1. Verwijder de spin-buttons (pijltjes) bij ALLE getalvelden in de app */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
}

/* 2. Forceer het SaaS-font op alle compacte velden */
.cf-input-compact,
.cf-input-num,
.cf-input-date,
select.cf-input-compact,
.cf-textarea { /* Toegevoegd */
    font-size: 11px !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--cf-text) !important;
    -webkit-font-smoothing: antialiased !important;
}

/* 2b. Specifieke correctie voor textarea om font-grootte gelijk te laten lijken */
textarea.cf-textarea {
    height: auto !important; /* Textarea mag niet geforceerd 28px hoog zijn */
    line-height: 1.4 !important; /* Essentieel: voorkomt dat tekst groter lijkt dan in inputs */
    padding: 6px 8px !important;
    box-sizing: border-box !important;
}

/* 2c. Specifieke correctie voor inputs (hoogte) */
.cf-input-compact,
.cf-input-num,
.cf-input-date,
select.cf-input-compact {
    height: 28px !important;
}

/* 3. Zorg dat de browser de date-picker icoontjes ook klein maakt */
input[type="date"]::-webkit-calendar-picker-indicator {
    font-size: 12px;
}



/* ============================================================
   GEDEELDE MODALS
   ============================================================ */

/* ============================================================
   --- Modals (Beginsaldo & Grafiek) --- 
   ============================================================ */
.cf-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 67, 62, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.cf-modal {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}


@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cf-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .cf-modal-header h3 {
        margin: 0;
        font-size: 1.2rem; /* was ±1.15 */
        font-weight: 700;
        color: var(--cf-dark);
    }


.cf-modal-close {
    background: transparent;
    border: none; /* ❗ rand weg */
    font-size: 1.4rem;
    color: #94a3b8; /* subtiel grijs */
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

    .cf-modal-close:hover {
        background: #f1f5f9; /* lichte hover */
        color: var(--cf-dark); /* CompassFlow groen */
    }
    
.cf-modal-body {
    padding: 24px;
}

.cf-modal-help {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 20px;
    background: #f8fafc; /* lichter */
    padding: 12px;
    border-radius: 6px;
}

.cf-modal-footer {
    padding: 12px 24px; /* iets compacter */
    background: #f8fafc;
    border-top: 1px solid #eef2f1;
    display: flex;
    justify-content: flex-end;
}

/* Lijst in help-modals (login / toegang aanvragen) */
.cf-help-list {
    margin: 0;
    padding-left: 18px; /* nette inspringing bullets */
    color: #334155;
    line-height: 1.6;
}

    .cf-help-list li {
        margin-bottom: 6px; /* iets meer lucht tussen regels */
    }


/* ============================================================
   DASHBOARD / CONTENT - MOBIELE QUICK WINS
   ============================================================ */

@media (max-width: 768px) {

    .cf-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 14px 12px;
    }



    .cf-section,
    .cf-block {
        padding: 14px;
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .cf-section-head {
        margin: -14px -14px 12px -14px;
        padding: 9px 14px;
    }

    .cf-section-title {
        font-size: 0.78rem;
        line-height: 1.25;
        letter-spacing: 0.3px;
        overflow-wrap: anywhere;
    }

    .cf-table {
        font-size: 0.8rem;
    }

        .cf-table thead th {
            font-size: 0.68rem;
            padding: 10px 8px;
        }

        .cf-table td {
            padding: 9px 8px;
        }

    .cf-section,
    .cf-block,
    .cf-table-wrap {
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    .cf-footer {
        font-size: 0.62rem;
        line-height: 1.35;
        padding: 14px 10px;
    }

}


