﻿/* =======================
   THEMA KLEUREN (CENTRAAL)
======================= */
:root {
    /* basis */
    --brand-bg: #00214b; /* donkerblauw */
    --brand-text: #c2f1bf; /* groenig */
    /* menu */
    --menu-disabled-text: #777;
    --menu-hover-bg: rgba(254,197,38,0.15);
    /* pastel */
    --menu-pastel-bg: #d9e7f5;
    --menu-pastel-border: #b7cbe6;
    /* dropdown */
    --dropdown-shadow: rgba(0,0,0,0.35);
    --dropdown-hover-bg: rgba(0,33,75,0.08);
    --dropdown-hover-text: #001630;
    /* panels */
    --panel-header-bg: #d9e7f5; /* pastelblauw */
    --panel-header-bg-strong: #c3d8ee;
    --panel-filter-bg: #EFE3C8; /* licht oker */
    --panel-actions-bg: #9fc8b6; /* groen */
    /* grid */
    --grid-bg: #eaf2fb;
    --grid-sortable-header: #4da3ff;
    --grid-row-selected: #ffe699;
    /* lighter blue */
    --grid-sortable-header-active: #2b6cb0;
    --grid-sortable-header-hover: #004f99;
    /* actie kolommen – groen metallic (subtiel) */
    --grid-action-odd: #dfeee7; /* licht, beetje groen */
    --grid-action-even: #d3e6dc; /* iets donkerder */
    /* algemeen */
    --white: #fff;
    --black: #000;
    --page-padding: 20px;
    /* ===== MODALS / POPUPS ===== */
    --modal-backdrop: rgba(0,0,0,0.55);
    --modal-bg: var(--white);
    --modal-text: var(--black);
    --modal-border: var(--menu-pastel-border);
    --modal-shadow: 0 12px 30px rgba(0,0,0,0.45);
    --modal-input-bg: var(--white);
    --modal-input-border: #cfcfcf;
    --modal-invalid-bg: #ffe0e6;
    --modal-invalid-border: #d33;
    --modal-mini-grid-bg: rgba(0,0,0,0.05);
    --modal-mini-grid-border: var(--menu-pastel-border);
    --modal-header-bg: var(--brand-bg);
    --modal-header-text: var(--brand-text);
}



html,
body {
    margin: 0;
    padding: 0;
}
    body.login-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
        body.login-page #Pagewrapper {
            width: 100%;
            max-width: 100%;
        }
        body.login-page #pnlVMenuBody,
        body.login-page .content-wrapper,
        body.login-page #ContentBody {
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }


.page {
    max-width: 2600px;
    margin: 0 auto;
}


.layout {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.header {
    height: 90px;
}

.footer {
    margin-top: 20px;
}

.right,
.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.grid-selected {
    background-color: #f7c873;
}

.gridIcon {
    width: 20px;
    height: 20px;
}

/* Textboxen en dropdowns gelijk maken */
input[type="text"],
select {
    border: 1px solid var(--menu-pastel-border);
    background-color: var(--white);
    height: 22px;
    padding: 2px 4px;
    line-height: 18px;
    box-sizing: border-box;
    border-radius: 6px;
}

/* Datepicker */
.dpick {
    width: 140px;
}

/* De TERUG-knop */
.back-link {
    position: absolute;
    bottom: 48px;
    left: var(--page-padding);
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-bg);
}




    .back-link:hover {
        text-decoration: underline;
    }

.login-page .back-link {
    display: none !important;
}



/* =======================
   HEADER
======================= */
#Header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding: 0 32px;
    background-color: var(--brand-bg);
    color: var(--brand-text);
}

.header-left,
.header-right {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .header-center h2 {
        margin: 0 20px;
    }

#Header img {
    max-height: 70px;
}


/* =======================
   HORIZONTAAL MENU
======================= */
#uiHorizontalMenu {
    background-color: var(--menu-pastel-bg);
    display: flex;
    align-items: center;
}

    #uiHorizontalMenu .ui-menu {
        display: flex;
    }

    #uiHorizontalMenu a {
        color: var(--brand-bg);
        text-decoration: none;
    }

        #uiHorizontalMenu a:hover {
            color: var(--dropdown-hover-text);
        }

    /* dropdown vanuit horizontaal menu */
    #uiHorizontalMenu li ul {
        top: 100%;
        background-color: var(--menu-pastel-bg);
        padding: 8px 0;
        margin-top: 0;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 8px 20px var(--dropdown-shadow);
        border: 1px solid var(--menu-pastel-border);
    }

        #uiHorizontalMenu li ul li a {
            padding: 8px 18px;
            color: var(--brand-bg);
        }

            #uiHorizontalMenu li ul li a:hover {
                background-color: var(--dropdown-hover-bg);
                color: var(--dropdown-hover-text);
            }


/* =======================
   VERTICAAL MENU
======================= */
#uiVerticalMenu {
    position: relative; /* ← */
    width: 200px;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: visible;  /* voor het pijltje */
}

body.menu-collapsed #menuToggle::after {
    content: "→";
}


body.logged-in #uiVerticalMenu {
    display: block;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    padding: 15px;
    min-height: 100%;
}

    body.logged-in #uiVerticalMenu a,
    body.logged-in #uiVerticalMenu span {
        color: var(--brand-text);
        cursor: pointer;
    }

        body.logged-in #uiVerticalMenu a:hover {
            background-color: var(--menu-hover-bg);
        }

/* Contentbody (die moet meebegwegen met het inklapbare menu*/
#Pagewrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 2600px;
    margin: 0 auto;
    padding: 0 var(--page-padding);
    box-sizing: border-box;
}

/* tijdelij */
.content-wrapper,
#ContentBody {
    width: 100%;
    box-sizing: border-box;
}

#pnlVMenuBody {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding-top: 0px;
    width: 100%;
    flex: 1;
}



/* pijltje in het verticale menu */
#menuToggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--brand-text);
    background-color: var(--brand-bg);
    border-radius: 0 4px 4px 0;
    z-index: 10;
    display: none; /* standaard UIT */
}

    #menuToggle::after {
        content: "←";
    }

body.logged-in #menuToggle {
    display: block; /* NA login zichtbaar */
}

body.menu-collapsed #uiVerticalMenu {
    width: 40px;
    padding: 8px 4px;
}

body.menu-collapsed #uiVerticalMenu .Menu a {
    display: none;
}






body.logged-in #pnlVMenuBody {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
}

body.menu-collapsed #pnlVMenuBody {
    grid-template-columns: 40px 1fr;
}





body:not(.logged-in) #pnlVMenuBody {
    display: block;
}

#topbar {
    display: flex;
    align-items: center; /* ← verticaal centreren */
}

.topbar-right {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 8px;
}

    /* Topbar right icons (Account / Logout) */
    .topbar-right input[type="image"] {
        all: unset; /* nukes jQuery UI styling */
        display: inline-block;
        width: 30px;
        height: 30px;
        cursor: pointer;
        background: none;
    }






/* =======================
   LOGIN PAGINA
======================= */
.login-page #MasterPageiframeOverlay {
    display: none !important;
}

/* iFrame */
#MasterPageiframeOverlay {
    display: none;
}

    #MasterPageiframeOverlay.show {
        display: block;
    }

    #MasterPageiframeOverlay .modal-close-btn {
        display: none;
    }

    #MasterPageiframeOverlay.show .modal-close-btn {
        display: block;
    }



.login-page #uiHorizontalMenu,
.login-page #uiVerticalMenu {
    display: none;
}


/* =======================
   FOOTER
======================= */
#Footer {
    background-color: var(--brand-bg);
    color: var(--brand-text);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px; /* ← dit is die “lege regel” */
}

.footer-right label {
    margin-left: 10px;
}


/* =======================
   LAYOUT / OVERIG
======================= */

/*#Pagewrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 2600px;
    margin: 0 auto;
    padding: 0 var(--page-padding);
    box-sizing: border-box;
}*/

/* tijdelijk */
#Pagewrapper {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo-small {
    height: 40px;
    max-width: 180px;
}

.logo-large {
    height: 70px;
    max-width: 260px;
}


.icon-save {
    display: none;
    width: 20px;
    height: 20px;
    background-image: url('/Images/Icons/Save.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-edit {
    width: 20px;
    height: 20px;
    background-image: url('/Images/Icons/Bewerk.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


input[type="image"] {
    width: 20px;
    height: 20px;
}

.view-mode {
    background-color: #eee;
    pointer-events: none; /* user cannot interact */
}

.edit-mode {
    background-color: #fff;
    pointer-events: auto; /* datepicker works */
}





/* OFFERTE SCHERM */
#pnlProjectQuote {
    margin-bottom: 20px; /* ruimte onder quote grid */
}

.quote-blocks-host {
    margin-top: 10px; /* extra ademruimte */
    display: flex;
    align-items: stretch;
    gap: 8px; /* geen ruimte ertussen */
}

.quote-blocks-host {
    display: flex;
    align-items: stretch;
}

.quote-left {
    width: 280px;
    min-height: 420px;
}

    .quote-left .GridClass {
        width: 100%;
    }



.quote-right {
    flex: 1;
    margin: 0;
    padding: 0;
    display: flex;
}

    .quote-right textarea {
        flex: 1;
        margin: 0;
    }





.entityDetail {
    display: grid;
    grid-template-columns: 120px 1fr 120px 1fr 40px;
    gap: 8px 12px;
    padding: 12px;
    background-color: var(--panel-header-bg);
}

    /* Labels */
    .entityDetail .pd-lbl {
        align-self: center;
    }

    /* Input cell */
    .entityDetail .pd-input {
        align-self: center;
    }

    /* Textbox */
    .entityDetail input[type="text"] {
        width: 100%;
        height: 30px;
        border: 1px solid #6f7a83;
        box-sizing: border-box;
    }

    /* Dropdown (FIX) */
    .entityDetail select {
        width: 100%;
        height: 30px;
        border: 1px solid #6f7a83;
        box-sizing: border-box;
    }

    /* Readonly / Editable */
    .entityDetail input.input-readonly {
        background-color: #e6e6e6;
        color: #555;
    }

    .entityDetail input.input-editable {
        background-color: #ffffff;
        color: #000;
    }

    /* Icon */
    .entityDetail .pd-icon {
        align-self: center;
        justify-self: end;
    }

    /* Split binnen 1 grid-cel */
    .entityDetail .split {
        display: flex;
        gap: 6px;
    }


 


.ddl-300 {
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.ddl-400 {
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}
.ddl-500 {
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}

.wrap-text {
    white-space: normal;
    word-break: break-word;
}
.section-tabs a {
    color: #c2f1bf;
    margin-right: 16px;
    font-weight: 600;
    text-decoration: none;
}

    .section-tabs a:hover {
        text-decoration: underline;
    }

.section-nav {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    background-color: #00214b;
}

    .section-nav a {
        color: #c2f1bf;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 4px;
        font-weight: 600;
    }

        .section-nav a:hover {
            background-color: #013a80;
        }

        .section-nav a.active {
            background-color: #c2f1bf;
            color: #00214b;
        }


.ts-dialog {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 14px;
    padding: 16px;
}

    .ts-dialog label {
        align-self: center;
        font-weight: 600;
    }

    .ts-dialog input,
    .ts-dialog select {
        height: 30px;
        box-sizing: border-box;
    }




/* Panel goedkeurings opties */
.timesheet-disabled {
    opacity: 0.45;
    pointer-events: none;
}


/* ===============================
   TIMESHEET TOOLBAR STYLING
=============================== */

#tsToolbarHost {
    margin-top: 8px;
}
    #tsToolbarHost .e-tbar-btn#tsDelete {
        background-color: #ffd6d6 !important;
    }

    #tsToolbarHost .e-tbar-btn#tsChecked {
        background-color: #fff2cc !important;
    }

    #tsToolbarHost .e-tbar-btn#tsApprove {
        background-color: #d9f2d9 !important;
    }

/* base button look */
.e-toolbar .e-toolbar-item .e-tbar-btn {
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 600;
    transition: background-color 0.15s ease-in-out;
}

/* DELETE = RED */
#tsDelete .e-tbar-btn {
    background-color: #ffe5e5;
    color: #8b0000;
}

    #tsDelete .e-tbar-btn:hover {
        background-color: #ffbcbc;
    }

/* CHECKED = ORANGE */
#tsChecked .e-tbar-btn {
    background-color: #fff2cc;
    color: #8a6d00;
}

    #tsChecked .e-tbar-btn:hover {
        background-color: #ffe08a;
    }

/* APPROVE = GREEN */
#tsApprove .e-tbar-btn {
    background-color: #e6ffe6;
    color: #145214;
}

    #tsApprove .e-tbar-btn:hover {
        background-color: #bff0bf;
    }


/* =======================
   MASTERPAGE SAFETY
======================= */

#pnlVMenuBody > div,
.content-wrapper {
    min-width: 0;
}


/* =======================
   SPLIT HOST
======================= */

.HoursSplitHost {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    align-items: stretch;
}


/* =======================
   LEFT GRID (FIXED)
======================= */

.HoursLeft {
    width: auto;
    border-right: 2px solid #666;
    box-sizing: border-box;
}

    .HoursLeft th,
    .HoursLeft td {
        white-space: nowrap;
    }


/* =======================
   RIGHT SCROLL CONTAINER
======================= */

.HoursScrollRight {
    overflow-x: auto;
    width: 100%;
    min-width: 0;
}


/* =======================
   RIGHT GRID
======================= */

.HoursRight {
    min-width: 2200px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    box-sizing: border-box;
}

    .HoursRight th,
    .HoursRight td {
        white-space: nowrap;
        text-align: center;
        font-size: 12px;
        padding: 6px 8px;
    }


    /* =======================
   HEADER ALIGNMENT FIX
======================= */

    /* Beide grids identieke header metrics */
    .HoursLeft thead th,
    .HoursRight thead th {
        padding: 6px 8px;
        line-height: 18px;
        vertical-align: middle;
    }

    /* Custom groep-header (RowCreated) */
    .HoursLeft thead tr.week-group-row th,
    .HoursRight thead tr.week-group-row th {
        height: 34px;
        padding: 6px 8px;
        line-height: 18px;
        background-color: var(--brand-bg);
        color: var(--brand-text);
        font-weight: 700;
        border: 1px solid #aaa;
    }

    /* Tweede header rij */
    .HoursLeft thead tr:not(.week-group-row) th,
    .HoursRight thead tr:not(.week-group-row) th {
        height: 30px;
    }


/* =======================
   WEEK GROUP HEADER
======================= */

.week-group-header {
    background: var(--brand-bg);
    color: var(--brand-text);
    font-weight: 700;
    border: 1px solid #999;
    text-align: center;
}



/* zelfde table model */
.HoursLeft,
.HoursRight {
    border-collapse: collapse;
}

    /* HEADER RIJ 1 */
    .HoursLeft thead tr:first-child th,
    .HoursRight thead tr:first-child th {
        height: 36px;
    }

    /* HEADER RIJ 2 */
    .HoursLeft thead tr:nth-child(2) th,
    .HoursRight thead tr:nth-child(2) th {
        height: 30px;
    }

    /* DATA RIJEN */
    .HoursLeft tbody tr,
    .HoursRight tbody tr {
        height: 34px;
    }

    /* FOOTER */
    .HoursLeft tfoot tr,
    .HoursRight tfoot tr {
        height: 34px;
    }



.readonly-field {
    background-color: #b3b3b3;
}


