﻿/* --- 1. BASIS & LAYOUT --- */
body {
    margin: 0;
    padding: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11pt;
    color: #1e293b;
    background-color: #f8fafc;
}

*, *:after, *:before {
    box-sizing: border-box;
}
p {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo {
    margin: 0px;
    padding: 0px;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 85px;
    display: block;
    z-index: 201;
}
.logoimg {
    margin-top: 10px;
    padding-left: 10px;
    padding-top: 10px;
    box-sizing: unset;
    height: 59px;
    display: inline;
    border: none;
}
.logotxt {
    padding-top: 20px;
    padding-left: 15px;
    font-weight: 600;
    font-size: 20pt;
    position: fixed;
    display: inline-block;
}
.bg_white {
    background-color: white;
    border: none;
}

/* --- CONTAINERS & SHADOWS --- */
.content {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1px;
    margin: 1px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.knop {
    display: inline-block;
}
.selected {
    background: linear-gradient(to bottom, #FFB347 0%, #FF8C00 100%) !important;
    border-color: #CC7000;
    color: white;
}

    .knop a {
        font-size: 10pt;
        width: auto;
        max-width: 400px;
        max-height: 25px;
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 3px;
        margin: 3px;
        box-shadow: 3px 3px #808080;
        border: 1px solid #000000;
        flex-wrap: nowrap;
        text-wrap: nowrap;
        text-decoration: none;
        display: inline-table;
        height: 40px;
        font-weight: 200;
        color: #00A1DE;
    }

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* --- 2. DE KNOPPEN BASIS (MODERN GLOSSY) --- */
a, button, .klantbut, .enlc, input[type="submit"], .klant-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start; /* Netjes links uitgelijnd */
    height: 38px;
    min-width: 90px;
    /*max-width: 250px;*/ /* Stel een max-breedte in voor stabiliteit */
    padding: 6px;
    background: #ffffff;
    color: #002d62 !important;
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #94a3b8;
    border-radius: 8px;
    /* Lettertype compacter maken */
    font-size: 9.5pt; /* Iets kleiner voor meer ruimte */
    font-weight: 600;
    letter-spacing: -0.2px; /* Tekst iets dichter op elkaar */
    /* De "..." logica (Truncation) */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .klant-link{
        width:180px;
    }
    /* De Sprekende Oranje Hover uit WPF */
    a:hover, button:hover, .klantbut:hover, .enlc:hover, input[type="submit"]:hover {
        background: linear-gradient(to bottom, #FFB347 0%, #FF8C00 100%) !important;
        border-color: #CC7000;
        color: white !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

    a:active, button:active {
        transform: scale(0.96);
    }

/* Knoppen in tabellen */
td a, td button, td .enlc, .status, .delete, .status-not, .today {
    width: auto;
/*    min-width: 180px;*/
    justify-content: flex-start;
    padding-left: 3px;
}

/* Navigatie knoppen (Kort) */
.short {
    min-width: 10px !important;
    width: auto !important;
    padding: 8px 12px;
    max-width: 80px;
}

/* --- 3. STATUS & ACTIE KLEUREN (GLOSSY) --- */
.status, .delete, .status-not, .today {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: none;
    border-bottom: 2px solid rgba(0,0,0,0.3);
}

.status {
    background: linear-gradient(to bottom, #00A1DE 0%, #0086B8 100%);
}

.delete {
    background: linear-gradient(to bottom, #ef4444 0%, #b91c1c 100%);
}

.status-not {
    background: linear-gradient(to bottom, #94a3b8 0%, #64748b 100%);
}

.today {
    background: linear-gradient(to bottom, #FFD700 0%, #FFA500 100%);
    color: #b91c1c !important;
    font-weight: bold;
}

/* --- 4. KLANTKAARTEN & AGENDA (GECOMBINEERD) --- */
.klant {
    display: inline-block;
    border-radius: 10px;
    padding: 12px;
    width: 240px;
    max-width: calc(100% - 16px);
    border: 1px solid #cbd5e1;
    margin: 8px;
    background-color: #ffffff;
    vertical-align: top;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .klant:hover {
        border-color: #00A1DE; /* Je WPF Blauw */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }

.agenda {
    display: block;
    padding: 10px;
    border-radius: 8px;
    margin: 4px 0;
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(0,0,0,0.1);
    color: white;
  /*  font-weight: 500;*/
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* De grote klantknop bovenin */
.klantnummer {
    width: 100% !important;
    display: block !important;
    margin: 10px 0;
}

    .klantnummer button {
        width: 100% !important;
        height: auto !important;
        min-height: 44px;
        text-align: left;
        justify-content: flex-start;
        line-height: 1.2;
        background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
    }

/* --- 5. INPUTS & SELECTS --- */
input, select {
    display: inline-block;
    height: 32px;
    padding: 4px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 6px;
    font-size: 10pt;
    vertical-align: middle;
}

    input:focus, select:focus {
        outline: none;
        border-color: #00A1DE;
        box-shadow: 0 0 0 3px rgba(0, 161, 222, 0.15);
    }

    select.purple, input.purple {
        background-color: #1e293b;
        color: #ffffff;
    }


/* Verticale balkjes in tabel */
td.refcol, td.navymails, td.red {
    width: 32px;
    position: relative;
    padding: 0 !important;
}

.navymails {
    background-color: #002d62;
}

.red {
    background-color: #ef4444;
}

/* readonly */
.read-only-display {
    background-color: #f8f9fa; /* Heel licht grijs/blauw */
    border: 3px solid #f0aaaa;
    color: #495057;
    cursor: default;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); /* Subtiele diepte */
    border-radius: 12px;
}

.rotate, .rotatea {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    color: white;
    font-size: 9px;
    font-weight: normal;
    white-space: nowrap;
    /* De puntjes logica */
    max-width: 100px; /* Pas dit aan de hoogte van je rij aan */
    overflow: hidden;
    text-overflow: ellipsis; /* Hier komen de puntjes! */
    text-align: center;
}

/* --- 7. RADIO BOXES & SCROLL --- */
.radio-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .radio-box:hover {
        border-color: #00A1DE;
        background-color: #f0f9ff;
    }

.scroll-container {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
}

/* --- 8. TEXTAREA AUTO-GROW --- */
.grow-wrap {
    display: grid;
}

    .grow-wrap::after {
        content: attr(data-replicated-value) " ";
        white-space: pre-wrap;
        visibility: hidden;
        grid-area: 1 / 1 / 2 / 2;
        padding: 10px;
    }

    .grow-wrap > textarea {
        grid-area: 1 / 1 / 2 / 2;
        width: 100%;
        height: 100%;
        padding: 8px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-family: inherit;
        resize: vertical;
        overflow: hidden;
    }
.wait {
    background: linear-gradient(to bottom, #64748b 0%, #475569 100%);
    color: white !important;
    border-bottom: 2px solid #334155;
}

.iframe {
    width: 100%;
    min-height: 500px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

/* --- STATUS SWITCHER CONTAINER --- */
.status-switcher {
    display: inline-flex;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    vertical-align: middle;
    margin-right: 10px;
}

    .status-switcher input[type="radio"] {
        display: none;
    }

    .status-switcher label {
        padding: 6px 15px;
        border-radius: 7px;
        cursor: pointer;
        font-size: 10pt;
        font-weight: 600;
        color: #64748b;
        transition: all 0.2s ease;
        min-width: 80px;
        text-align: center;
        border: 1px solid transparent;
    }

        /* --- HOVER EFFECTEN --- */
        .status-switcher label:hover {
            background-color: #ffffff;
            color: #00A1DE;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transform: translateY(-1px);
        }

    /* --- DE GESELECTEERDE STATES (AAN de hand van de database status) --- */
    .status-switcher input[type="radio"]:checked + label {
        color: white !important;
        border-bottom: 2px solid rgba(0,0,0,0.3);
        box-shadow: 0 3px 6px rgba(0,0,0,0.2);
        cursor: default;
    }

#status-todo:checked + label {
    background: linear-gradient(to bottom, #00A1DE 0%, #0086B8 100%);
}

#status-wait:checked + label {
    background: linear-gradient(to bottom, #94a3b8 0%, #64748b 100%);
}

#status-done:checked + label {
    background: linear-gradient(to bottom, #22c55e 0%, #16a34a 100%);
}

#status-delete:checked + label {
    background: linear-gradient(to bottom, #ef4444 0%, #b91c1c 100%);
}

/* De overige knoppen (Reply, Forward etc) */
.action-bar button {
    margin: 2px;
}

/* Container voor de actie-knoppen onderaan */
.reply-group {
    display: flex;
    flex-wrap: wrap; /* Zorgt dat het op mobiel netjes verspringt */
    gap: 8px;
    margin-top: 10px;
    padding: 5px 0;
}

    /* Zorg dat deze knoppen allemaal dezelfde hoogte en stijl hebben */
    .reply-group button {
        flex: 1; /* De knoppen verdelen de beschikbare ruimte */
        min-width: 100px;
        height: 40px;
        background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
        border: 1px solid #cbd5e1;
        border-bottom: 2px solid #94a3b8;
        color: #002d62 !important;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .reply-group button:hover {
            background: linear-gradient(to bottom, #FFB347 0%, #FF8C00 100%) !important;
            color: white !important;
            border-color: #CC7000;
        }
.dag {
    background-color: #0074d9;
    color: white;
    display: block;
    clear: both;
    border-radius: 4px;
    padding: 2px;
    margin: 0px;
    border: 1px solid darkgray;
    height: 40px;
    width: 100%;
}
/* --- DATE INPUT FIX (DD/MM/YYYY weergave) --- */
input[type="date"] {
    position: relative;
    padding: 4px 8px;
    appearance: none; /* Verwijdert standaard browser pijltjes */
    -webkit-appearance: none;
}

    /* Verberg de standaard datum tekst van de browser */
    input[type="date"]::-webkit-datetime-edit,
    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-clear-button {
        display: none;
    }

    /* Toon de waarde uit het 'data-date' attribuut */
    input[type="date"]::before {
        content: attr(data-date);
        display: inline-block;
        color: #1e293b;
        margin-right: 0.5em;
    }

    /* Zorg dat het kalender icoontje rechts blijft staan */
    input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        background: transparent;
        color: transparent; /* Verbergt standaard icoon om plek te maken voor eigen styling indien nodig */
    }

/* --- STANDAARD TABEL STYLING --- */
table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #f1f5f9; /* Licht grijze buitenlijn */
    margin-bottom: 20px;
}

    /* De Header (1e rij) - Overal Navy Glossy */
    table th {
        background: linear-gradient(135deg, #002d62 0%, #1e293b 100%) !important;
        color: white !important;
        font-weight: 600;
        text-align: left;
        padding: 12px 10px;
    }

/* Zebra-striping voor leesbaarheid */
tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

/* De cel-styling */
td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

/* Getallen rechts uitlijnen */
.number {
    text-align: right;
    padding-right: 15px;
}

/* De 'Product' kolom (meestal de eerste) links laten staan */
td:first-child, th:first-child {
    text-align: left;
}

/* --- 8. TABLE RESPONSIVE FIX --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

    .table-responsive table {
        margin-bottom: 0;
        /* Verwijder de min-width: 800px! */
        min-width: 100%; /* Zorg dat hij minimaal de breedte van het scherm vult */
        white-space: nowrap; /* Zorg dat jaartallen niet onder elkaar klappen */
    }

.info-row {
    display: flex; /* Zet de elementen naast elkaar */
    justify-content: flex-start; /* Begin aan de linkerkant */
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9; /* Dat subtiele lijntje van je */
}

.label {
    width: 150px; /* Geef alle labels dezelfde vaste breedte */
    font-weight: 600;
    color: #64748b; /* Een rustige grijstint voor het label */
    flex-shrink: 0; /* Zorg dat het label niet smaller wordt */
}

.data {
    color: #1e293b; /* De donkere kleur voor de echte gegevens */
    font-weight: 500;
}
.status-small {
    background: linear-gradient(135deg, #002d62 0%, #1e293b 100%);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 9pt;
    cursor: pointer;
    transition: background 0.3s;
}

    .status-small:hover {
        background: #ff8c00; /* De bekende oranje hover */
    }

.edit-input {
    border: none;
    border-bottom: 1px solid #e2e8f0; /* Subtiel lijntje zoals in image_2550ca.png */
    background-color: transparent;
    padding: 4px 2px;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #1e293b;
}

    .edit-input:focus {
        border-bottom: 2px solid #ff8c00; /* De bekende oranje actiekleur */
        background-color: #fff;
        outline: none;
    }

/* Zorg dat de iconen niet verspringen door de min-width fix */
.icon-button {
    min-width: 25px !important;
    text-align: center;
}

/* De 'Save' wordt oranje bij hover, passend bij de actieknoppen */
.save-icon {
    color: #002d62;
}

    .save-icon:hover {
        color: #ff8c00;
        transform: scale(1.2);
    }

/* De 'Delete' wordt rood bij hover voor een duidelijke waarschuwing */
.delete-icon {
    color: #94a3b8;
}
    /* Rustig grijs als basis */
    .delete-icon:hover {
        color: #ef4444;
        transform: scale(1.2);
    }

/* --- 9. SUB-TABLE STANDAARD (Herbruikbaar) --- */
.sub-table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
    .sub-table td div {
        white-space: pre-wrap; /* Essentieel voor innerText regeleinden! [cite: 2026-01-16] */
        word-wrap: break-word;
    }
    .sub-table th {
        /* De Navy Glossy Header uit je standaard */
        background: linear-gradient(135deg, #002d62 0%, #1e293b 100%) !important;
        color: white !important;
        padding: 12px 10px;
        font-size: 10pt;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .sub-table td {
        padding: 10px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 10.5pt;
        transition: all 0.2s ease;
    }

    /* De specifieke Ankersmid-oranje focus lijn bij hover */
    .sub-table tr:hover {
        border-left: 4px solid #ff8c00;
        background-color: #fff9f0 !important; /* Of je lichtgrijs */
    }

    /* Zebra striping specifiek voor sub-table */
    .sub-table tr:nth-child(even) {
        background-color: #f8fafc;
    }
    /* Zorg dat de eerste kolom (Productnaam) wel mag omvouwen als die erg lang is */
    .sub-table td:first-child {
        white-space: normal;
        position: sticky; /* Optioneel: houdt de productnaam in beeld bij scrollen */
        left: 0;
        z-index: 1;
    }
.section-header {
    /*background-color: #0078d4 !important;*/ /* Terug naar het vertrouwde blauw */
    background: linear-gradient(to bottom, #00A1DE 0%, #0086B8 100%);
    color: #ffffff;
    padding: 12px 15px;
    margin: 20px -15px 15px -15px; /* Full-width effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Subtiele witte lijn voor diepte */
}

.data-content {
    white-space: pre-wrap;
}