﻿html[data-placement="vertical"] .nav-container .nav-content .logo a, html[data-placement="horizontal"] .nav-container.mobile-side-ready .nav-content .logo a, html[data-placement="vertical"] .nav-container.mobile-side-ready .nav-content .logo a {
    width: 200px;
}

html[data-color="light-blue"] .logo .img, html[data-color="light-lime"] .logo .img, html[data-color="light-green"] .logo .img, html[data-color="light-red"] .logo .img, html[data-color="light-pink"] .logo .img, html[data-color="light-purple"] .logo .img, html[data-color="light-teal"] .logo .img, html[data-color="light-sky"] .logo .img, html[data-color="dark-blue"] .logo .img, html[data-color="dark-green"] .logo .img, html[data-color="dark-red"] .logo .img, html[data-color="dark-pink"] .logo .img, html[data-color="dark-purple"] .logo .img, html[data-color="dark-lime"] .logo .img, html[data-color="dark-sky"] .logo .img, html[data-color="dark-teal"] .logo .img {
    background-image: url(/template/acorn_bs5/img/logo/paragon_cc.png);
    background-position-x: center;
    background-size: contain;
}

html[data-color="light-blue"][data-menu-animate="hidden"][data-behaviour="unpinned"] .logo .img,
html[data-color="light-blue"][data-behaviour="unpinned"]:not([data-menu-animate="show"]) .logo .img {
    background-image: url(/template/acorn_bs5/img/logo/paragon_cc_Ico.png) !important;
    background-position-x: left;
}

html[data-color="light-blue"][data-menu-animate="hidden"][data-behaviour="unpinned"] .user-container .name,
html[data-color="light-blue"][data-behaviour="unpinned"]:not([data-menu-animate="show"]) .user-container .name {
    display: none;
}

html[data-placement="horizontal"] .nav-container .logo img, html[data-placement="horizontal"] .nav-container .logo .img, html[data-placement="vertical"] .nav-container .logo img, html[data-placement="vertical"] .nav-container .logo .img {
    width: 200px;
}

html[data-placement="vertical"][data-behaviour="unpinned"]:not([data-menu-animate="show"]) .nav-container .nav-content .menu-container .menu li a.active,
html[data-placement="horizontal"][data-behaviour="unpinned"]:not([data-menu-animate="show"]) .nav-container.mobile-side-ready .nav-content .menu-container .menu li a.active,
html[data-placement="vertical"][data-behaviour="unpinned"]:not([data-menu-animate="show"]) .nav-container.mobile-side-ready .nav-content .menu-container .menu li a.active {
    background: none;
}

.bg-gradient-primary {
    background-image: linear-gradient(160deg, var(--primary), var(--primary), var(--secondary)) !important;
}

h5 {
    font-size: 1.20em;
}

.text-strong-label {
    font-weight: bold;
    border-bottom: 1px solid var(--primary);
}

/****** Menu Tiles *******/
.tile-notification {
    min-height: 45px;
}

.tile-indicator {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: default;
}

.tiles-wrapper .hover-scale-up:hover {
    background-image: linear-gradient(160deg, rgb(var(--gradient-1-rgb-25)), rgb(var(--gradient-1-rgb-25)), rgb(var(--gradient-1-lighter-rgb-25))) !important;
    transition: all 200ms ease-in;
}

/****** Footer ********/
html[data-footer="true"] body {
    padding-bottom: 0;
}

html[data-footer="true"] #root > footer {
    position: sticky;
    background-color: var(--background);
    z-index: 300;
    height: auto;
}
html[data-footer="true"] #root > footer > div {
    padding: 3px 0;
}

.footer-content p:last-child {
    margin-bottom: 0 !important;
}
/******** Navigation *********/
.nav-link-parent-name {
    width: 78% !important;
}

.nav-link-parent-arrow {
    width: 20% !important;
}

.menu a[data-bs-toggle="collapse"]::before {
    right: 1.3rem;
}

/********* Forms **********/
.select2-dropdown {
    border-radius: var(--border-radius-md);
}

.select2-container--default .select2-selection--single {
    border-radius: var(--border-radius-md);
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option[aria-selected=true] {
    cursor: pointer;
    color: var(--primary);
    background: var(--separator-light) !important;
    border-radius: var(--border-radius-sm);
}

/******* Dropzone *******/
.dropzone .dz-preview.dz-image-preview .download, .dropzone .dz-preview.dz-file-preview .download {
    position: absolute;
    right: 28px;
    top: 10px;
    color: var(--muted) !important;
}
    .dropzone .dz-preview.dz-image-preview .download:hover, .dropzone .dz-preview.dz-file-preview .download:hover {
        color: var(--primary) !important;
        cursor: pointer !important;
    }
    .dropzone .dz-preview.dz-image-preview .download i, .dropzone .dz-preview.dz-file-preview .download i,
    .dropzone .dz-preview.dz-image-preview .download svg, .dropzone .dz-preview.dz-file-preview .download svg,
    .dropzone .dz-preview.dz-image-preview .download path, .dropzone .dz-preview.dz-file-preview .download path{
        cursor: pointer !important;
    }
.dropzone.dz-clickable .dz-message {
    position: relative;
}

/******* Staffels *******/
/* ── Page shell ──────────────────────────────────────────────────────── */
.staffels-page {
    font-family: var(--font-sans, "Segoe UI", Arial, sans-serif);
    color: #333;
    font-size: 13px;
}

.page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}

    .page-header h1 {
        font-size: 20px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }

.page-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn--primary {
    background: #3aafe0;
    color: #fff;
    border: none;
}

    .btn--primary:hover {
        background: #2e9dcc;
    }

.btn--secondary {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}

    .btn--secondary:hover {
        background: #f5f5f5;
    }

.btn--success {
    background: #2a8a50;
    color: #fff;
    border: none;
}

    .btn--success:hover {
        background: #22713f;
    }

/* ── Search bar ──────────────────────────────────────────────────────── */
.search-wrap {
    position: relative;
    max-width: 140px;
    width: 100%;
}

    .search-wrap .search-icon {
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        font-size: 13px;
        pointer-events: none;
    }

.search-input {
    width: 100%;
    padding: 6px 8px 6px 28px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px;
    color: #222;
    background: #fff;
    box-sizing: border-box;
}

    .search-input:focus {
        outline: none;
        border-color: #3aafe0;
        box-shadow: 0 0 0 2px rgba(58,175,224,0.15);
    }

/* ── Table card ──────────────────────────────────────────────────────── */
.staffels-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.staffels-table {
    width: 100%;
    border-collapse: collapse;
}

    .staffels-table th {
        padding: 9px 1rem;
        text-align: left;
        color: #666;
        font-weight: 500;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 2px solid #e8e8e8;
        background: #f7f8f9;
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
    }

        .staffels-table th.text-right {
            text-align: right;
        }

        .staffels-table th .sort-icon {
            display: inline-block;
            margin-left: 4px;
            color: #ccc;
            font-size: 10px;
            vertical-align: middle;
        }

        .staffels-table th.sort-asc .sort-icon::after {
            content: "▲";
            color: #3aafe0;
        }

        .staffels-table th.sort-desc .sort-icon::after {
            content: "▼";
            color: #3aafe0;
        }

        .staffels-table th:not(.sort-asc):not(.sort-desc) .sort-icon::after {
            content: "⇅";
        }

    .staffels-table td {
        padding: 8px 1rem;
        border-bottom: 1px solid #f2f2f2;
        vertical-align: middle;
        font-size: 13px;
    }

        .staffels-table td.text-right {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

    .staffels-table tr:last-child td {
        border-bottom: none;
    }

    .staffels-table tbody tr:hover {
        background: #f9fbfd;
    }

.badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: #eaf4fb;
    color: #1a6f9a;
    font-weight: 500;
}

.staffels-empty, .staffels-loading, .staffels-error {
    padding: 2.5rem;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.staffels-error {
    color: #c0392b;
}

/* ── Status bar ──────────────────────────────────────────────────────── */
.status-bar {
    margin-top: 1rem;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .status-bar .row-count {
        font-variant-numeric: tabular-nums;
    }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    color: #444;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .1s, border-color .1s;
}

    .page-btn:hover:not(:disabled) {
        background: #f0f7fc;
        border-color: #3aafe0;
        color: #1a6f9a;
    }

    .page-btn.is-active {
        background: #3aafe0;
        border-color: #3aafe0;
        color: #fff;
        cursor: default;
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

.page-size-select {
    height: 32px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    padding: 0 6px;
    font-size: 12px;
    color: #444;
    background: #fff;
    cursor: pointer;
}

    .page-size-select:focus {
        outline: none;
        border-color: #3aafe0;
    }

/* ── Import drop-zone ────────────────────────────────────────────────── */
.import-zone {
    margin-top: 1rem;
    border: 2px dashed #c8dce8;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: #f7fbfd;
    display: none; /* shown by JS */
}

    .import-zone.is-open {
        display: block;
    }

    .import-zone p {
        margin: 0 0 .75rem;
        color: #666;
        font-size: 13px;
    }

/* ── Feedback toast ──────────────────────────────────────────────────── */
.spbe-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 13px;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    z-index: 9999;
    max-width: 420px;
}

    .spbe-toast.toast--show {
        opacity: 1;
        transform: translateY(0);
    }

    .spbe-toast.toast--success {
        background: #2a8a50;
    }

    .spbe-toast.toast--danger {
        background: #c0392b;
    }

    .spbe-toast.toast--warning {
        background: #e67e22;
    }


/******* Drukwerkmarges *******/
/* ── Layout & page shell ──────────────────────────────────────────────────── */
.marge-page {
    font-family: var(--font-sans, "Segoe UI", Arial, sans-serif);
    color: #333;
    font-size: 13px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}

    .page-header h1 {
        font-size: 20px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }

.page-header__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background: #3aafe0;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn--primary:disabled {
        opacity: 0.6;
        cursor: default;
    }

.btn--secondary {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}

.btn--filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #c0c0c0;
    color: #444;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
}

    .btn--filter.btn--filter-active {
        background: #fff8ec;
        border-color: #f0a030;
        color: #854f0b;
    }

.badge {
    background: #f0a030;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    padding: 1px 7px;
    font-weight: 500;
}

/* ── Table container ──────────────────────────────────────────────────── */
.marge-table-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* One card per SectieNaam, each with its own table. */
.marge-sectie {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.marge-sectie-titel {
    margin: 0;
    padding: 12px 1rem;
    background: #e9f2f9;
    border-bottom: 1px solid #dce8f0;
    color: #134d71;
    font-size: 15px;
    font-weight: 600;
}

/* ── Table ──────────────────────────────────────────────────── */
.marge-table {
    width: 100%;
    border-collapse: collapse;
}

    .marge-table thead {
        background: #f0f7fc;
        border-bottom: 1px solid #dce8f0;
    }

    .marge-table th {
        padding: 9px 1rem;
        text-align: left;
        color: #1a6f9a;
        font-weight: 500;
        font-size: 11px;
        white-space: nowrap;
    }

        .marge-table th.text-right {
            text-align: right;
        }

    .marge-table td {
        padding: 9px 1rem;
        border-bottom: 1px solid #f5f5f5;
        vertical-align: middle;
    }

    .marge-table tr:last-child td {
        border-bottom: none;
    }

    .marge-table tr.is-modified {
        background: #fffdf7;
    }

    .marge-table td.marge-geen-staffel {
        color: #b02a37;
        font-style: italic;
        font-size: 12px;
    }

    .marge-table tr.marge-subsection-row td.marge-subsection-label {
        padding: 8px 1rem;
        background: #f0f7fc;
        border-bottom: 1px solid #dce8f0;
        color: #1a6f9a;
        font-weight: 600;
        font-size: 12px;
    }

    .marge-table td.text-right {
        text-align: right;
    }

.col-omschrijving {
    color: #888;
    font-size: 12px;
}

/* Rij die niet aan de Conditie voldoet: zou normaal niet op de offerte staan.
   Elke waarde behalve de marge zelf wordt doorstreept getoond. */
.marge-row--uitgesloten td:not(:last-child) {
    text-decoration: line-through;
    color: #aaa;
}

.marge-uitgesloten-badge {
    text-decoration: none;
    font-style: italic;
    font-size: 11px;
    color: #b02a37;
}

.marge-link-icon {
    margin-right: 4px;
    font-size: 12px;
}

.col-number {
    font-variant-numeric: tabular-nums;
}

/* Totaal cell gets re-rendered on marge change */
.col-totaal {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ── Marge input ──────────────────────────────────────────────────── */
.marge-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.marge-input {
    width: 62px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 13px;
    text-align: right;
    color: #222;
    background: #fff;
}

    .marge-input:focus {
        outline: none;
        border-color: #3aafe0;
        box-shadow: 0 0 0 2px rgba(58,175,224,0.15);
    }

.marge-input--modified {
    border-color: #f0a030;
    background: #fffbf2;
}

.marge-suffix {
    font-size: 11px;
    color: #bbb;
}

/* ── State: loading / empty / error ──────────────────────────────────────────────────── */
.marge-state {
    padding: 2.5rem;
    text-align: center;
    color: #999;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.marge-state--error {
    color: #c0392b;
}

.marge-state--hint {
    color: #aaa;
    font-style: italic;
}

/* ── Grand summary (over alle secties heen) ──────────────────────────────────────────────────── */
.marge-sectie--totaal .marge-sectie-titel {
    background: #134d71;
    border-bottom-color: #134d71;
    color: #fff;
}

.marge-row--totaal td {
    font-weight: 600;
    color: #134d71;
}

.marge-row--totaal .col-omschrijving {
    color: #134d71;
    font-size: 13px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.marge-footer {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.marge-footer__status {
    font-size: 12px;
    color: #f0a030;
}

.marge-footer__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Grand total row ──────────────────────────────────────────────────── */
.marge-table tfoot td {
    padding: 10px 1rem;
    border-top: 2px solid #dce8f0;
    background: #f0f7fc;
    font-weight: 600;
    font-size: 13px;
}

.marge-table tfoot .col-totaal-label {
    color: #1a6f9a;
}

.marge-table tfoot .col-grand-total {
    text-align: right;
    color: #1a6f9a;
    font-variant-numeric: tabular-nums;
}


/* ── Hint line (excl. BTW) ──────────────────────────────────────────────────── */
.price-hint {
    font-size: 12px;
    color: #888;
}

/******* Factuurafwijkingen *******/
.afwijkingen-page {
    font-family: var(--font-sans, "Segoe UI", Arial, sans-serif);
    color: #333;
    font-size: 13px;
}

    .afwijkingen-page .page-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 1.25rem;
    }

        .afwijkingen-page .page-header h1 {
            font-size: 20px;
            font-weight: 500;
            color: #222;
            margin: 0;
        }

.afwijkingen-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

    .afwijkingen-table th {
        padding: 8px 1rem;
        text-align: left;
        color: #999;
        font-weight: 400;
        font-size: 11px;
        border-bottom: 1px solid #f0f0f0;
        background: #fafafa;
    }

        .afwijkingen-table th.text-right,
        .afwijkingen-table td.text-right {
            text-align: right;
        }

    .afwijkingen-table td {
        padding: 8px 1rem;
        border-bottom: 1px solid #f5f5f5;
        vertical-align: middle;
    }

    .afwijkingen-table tr:last-child td {
        border-bottom: none;
    }

.afwijkingen-id {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    width: 1%;
}

.afwijkingen-input {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 5px 7px;
    font-size: 13px;
    color: #222;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.afwijkingen-input--number {
    text-align: right;
    width: 100px;
}

.afwijkingen-input--modified {
    border-color: #f0a030;
    background: #fffbf2;
}

.afwijkingen-input--invalid {
    border-color: #c0392b;
    background: #fdecea;
}

.afwijkingen-row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

.afwijkingen-state, .afwijkingen-error {
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.afwijkingen-error {
    color: #c0392b;
}

.afwijkingen-add-row td {
    background: #f7fbfd;
}

.afwijkingen-totaal-row td {
    font-weight: 500;
    border-top: 1px solid #e0e0e0;
}

.afwijkingen-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .afwijkingen-modal-backdrop.is-open {
        display: flex;
    }

.afwijkingen-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 640px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.afwijkingen-modal--wide {
    max-width: 820px;
}

.afwijkingen-modal h2 {
    font-size: 16px;
    margin: 0 0 0.25rem 0;
}

.afwijkingen-modal-hint {
    font-size: 12px;
    color: #888;
    margin: 0 0 1rem 0;
}

.afwijkingen-modal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.afwijkingen-modal th, .afwijkingen-modal td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

    .afwijkingen-modal th.text-right, .afwijkingen-modal td.text-right {
        text-align: right;
    }

.afwijkingen-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.afwijkingen-badge--insert {
    background: #e6f7ee;
    color: #2a8a50;
}

.afwijkingen-badge--update {
    background: #fff8ec;
    color: #854f0b;
}

.afwijkingen-badge--delete {
    background: #fdecea;
    color: #c0392b;
}
