/* ------------------------------------------------------------------
   Gamp huisstijl (gamp.eu)
   Oranje #EEA119, donker #322827, lichtgrijs #EDEDED, strakke hoeken.
   Gamp gebruikt Museo/Adihaus DIN (licentie); Barlow is het vrije DIN-achtige alternatief.
   ------------------------------------------------------------------ */
:root {
    --gamp-orange: #eea119;
    --gamp-orange-dark: #d68c0b;
    --gamp-dark: #322827;
    --gamp-dark-hover: #4a3d3b;
    --gamp-grey: #ededed;
    --gamp-text: #151515;
    --gamp-font: "Barlow", Arial, sans-serif;
    --gamp-topbar-height: 64px;
    --gamp-sidebar-width: 260px;
    /* DevExpress design-system font */
    --DS-sans-serif: var(--gamp-font);
}

html, body {
    font-family: var(--gamp-font);
    color: var(--gamp-text);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gamp-font);
    font-weight: 700;
    color: var(--gamp-dark);
}

h1:focus {
    outline: none;
}

a {
    color: var(--gamp-dark);
}

/* Topbalk: Gamp-oranje met merk links en acties rechts (beheer en paktafel) */
.gamp-topbar {
    height: var(--gamp-topbar-height);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem 0 1rem;
    background: var(--gamp-orange);
    color: #fff;
    z-index: 100;
}

.gamp-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

    .gamp-brand:hover {
        color: #fff;
    }

.gamp-brand-mark {
    width: 34px;
    height: 34px;
    /* Het favicon is oranje; op de oranje balk wit weergeven */
    filter: brightness(0) invert(1);
}

.gamp-brand-name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--gamp-dark);
}

.gamp-brand-app {
    margin-left: 0.4rem;
    padding-left: 0.9rem;
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gamp-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.gamp-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .gamp-topbar-user {
        display: none;
    }
}

/* ------------------------------------------------------------------
   Paktafel (/Packing/{id}): groot, goed leesbaar op afstand, geen menu
   ------------------------------------------------------------------ */
.packing-station {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gamp-grey);
}

    .packing-station .gamp-topbar {
        height: 72px;
        position: sticky;
        top: 0;
    }

    .packing-station .gamp-brand-app {
        font-size: 1.5rem;
    }

.packing-languages {
    gap: 0;
}

.packing-language {
    min-width: 64px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gamp-dark);
    background: transparent;
    color: var(--gamp-dark);
    font-family: var(--gamp-font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

    .packing-language + .packing-language {
        border-left: 0;
    }

    .packing-language:first-child {
        border-radius: 2px 0 0 2px;
    }

    .packing-language:last-child {
        border-radius: 0 2px 2px 0;
    }

    .packing-language.active {
        background: var(--gamp-dark);
        color: #fff;
    }

    .packing-language:not(.active):hover {
        background: rgba(50, 40, 39, 0.12);
    }

.packing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.packing-panel {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(50, 40, 39, 0.12);
    padding: 1.5rem;
}

.packing-panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gamp-dark);
}

    .packing-panel-title .bi {
        color: var(--gamp-orange);
    }

.packing-scan {
    border-top: 4px solid var(--gamp-orange);
}

.packing-scan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.packing-scan-textbox {
    flex: 1 1 320px;
    --dxbl-text-edit-border-radius: 2px;
}

    .packing-scan-textbox .packing-scan-input {
        font-size: 1.75rem !important;
        font-weight: 600;
        letter-spacing: 0.04em;
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

.packing-btn-large {
    padding: 0.75rem 2rem !important;
    font-size: 1.2rem !important;
}

.packing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.packing-btn-secondary {
    --dxbl-btn-color: var(--gamp-dark);
    --dxbl-btn-border-color: var(--gamp-dark);
    --dxbl-btn-hover-bg: var(--gamp-grey);
    --dxbl-btn-hover-color: var(--gamp-dark);
    padding: 0.6rem 1.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 600;
}

.packing-instructions {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.packing-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--gamp-orange);
}

.packing-lpn {
    padding: 0.35rem 0.85rem;
    background: var(--gamp-dark);
    color: #fff;
    border-radius: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.packing-webshop {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.packing-instructions-body {
    font-size: 1.4rem;
    line-height: 1.5;
    overflow: auto;
}

.packing-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 220px;
    color: #8a8381;
    font-size: 1.4rem;
    text-align: center;
}

    .packing-empty .bi {
        font-size: 3.5rem;
        color: var(--gamp-orange);
    }

.packing-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-left: 6px solid;
    border-radius: 2px;
    font-size: 1.35rem;
    font-weight: 600;
}

    .packing-message .bi {
        font-size: 1.6rem;
        line-height: 1.2;
    }

.packing-message-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.packing-message-warning {
    background: #fff4dc;
    border-color: var(--gamp-orange);
    color: #6b4500;
}

.packing-message-danger {
    background: #fde8e6;
    border-color: #c0392b;
    color: #7a1d14;
}

.packing-message-info {
    background: #eef1f3;
    border-color: var(--gamp-dark);
    color: var(--gamp-dark);
}

/* LPN-informatie met grote bestemming */
.packing-box-info {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 760px) {
    .packing-box-info {
        grid-template-columns: 1fr;
    }
}

.packing-destination {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    background: var(--gamp-dark);
    color: #fff;
}

.packing-destination-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.packing-destination-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.packing-destination-packingtable {
    background: var(--gamp-dark);
}

.packing-destination-special {
    background: var(--gamp-orange);
    color: var(--gamp-dark);
}

.packing-destination-autopacker {
    background: #2f6b4f;
}

.packing-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem 1.5rem;
    margin: 0;
}

    .packing-facts dt {
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #8a8381;
    }

    .packing-facts dd {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--gamp-dark);
        word-break: break-word;
    }

.packing-special-reason {
    grid-column: 1 / -1;
    padding: 0.75rem 1rem;
    background: #fff4dc;
    border-left: 6px solid var(--gamp-orange);
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b4500;
}

/* Grote opdracht: doos verplaatsen / terug op de band */
.packing-callout {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: 2px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

    .packing-callout .bi {
        font-size: 3.5rem;
        line-height: 1;
    }

.packing-callout-move {
    background: var(--gamp-orange);
    color: var(--gamp-dark);
}

.packing-callout-conveyor {
    background: var(--gamp-dark);
    color: #fff;
}

.packing-callout-sub {
    margin-top: 0.35rem;
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.85;
}

.packing-table {
    width: 100%;
    margin-bottom: 0.5rem;
    border-collapse: collapse;
    font-size: 1.2rem;
}

    .packing-table th {
        padding: 0.5rem 0.75rem;
        background: var(--gamp-dark);
        color: #fff;
        font-weight: 600;
        text-align: left;
    }

    .packing-table td {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--gamp-grey);
    }

.packing-table-difference {
    font-weight: 700;
    color: #c0392b;
}

.packing-hint {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: #5a5250;
}

/* Gamp-knop: donker, wit, vetgedrukt, bijna vierkant */
.gamp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 2px;
    font-family: var(--gamp-font);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.gamp-btn-dark {
    background: var(--gamp-dark);
    color: #fff;
}

    .gamp-btn-dark:hover,
    .gamp-btn-dark:focus-visible {
        background: var(--gamp-dark-hover);
        color: #fff;
    }

/* Kaarten */
.gamp-card {
    background: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(50, 40, 39, 0.12);
}

    .gamp-card > .card-header {
        background: #fff;
        border-bottom: 3px solid var(--gamp-orange);
        border-radius: 0;
        padding: 0.4rem 0.75rem;
    }

    .gamp-card .card-title {
        font-weight: 700;
        color: var(--gamp-dark);
    }

/* Zijbalk: navigatie + footer */
.gamp-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding-top: 0.75rem;
}

.gamp-nav-footer {
    margin-top: auto;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Inlogscherm: oranje achtergrond zoals de Gamp-homepage */
.gamp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--gamp-orange);
}

.gamp-hero-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.gamp-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.05;
}

.gamp-hero-subtitle {
    margin: 0.5rem 0 0;
    color: #fff;
    font-size: 1.15rem;
    text-align: center;
}

.gamp-login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(50, 40, 39, 0.25);
}

/* Welkomstblok op de homepage */
.gamp-welcome {
    padding: 2.5rem 2rem;
    background: var(--gamp-orange);
    border-radius: 2px;
}

    .gamp-welcome h1 {
        margin: 0;
        color: #fff;
        font-size: clamp(1.75rem, 4vw, 2.75rem);
    }

    .gamp-welcome p {
        margin: 0.5rem 0 0;
        color: #fff;
        font-size: 1.1rem;
    }

/* Statistieken op de homepage */
.gamp-stats-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d6563;
}

.gamp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.gamp-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: 2px;
    border-top: 4px solid var(--gamp-dark);
    box-shadow: 0 1px 3px rgba(50, 40, 39, 0.12);
    color: var(--gamp-dark);
    text-decoration: none;
}

.gamp-stat-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
}

    .gamp-stat-label .bi {
        color: var(--gamp-orange);
    }

.gamp-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.gamp-stat-sub {
    font-size: 0.9rem;
    color: #6d6563;
}

.gamp-stat-attention {
    border-top-color: var(--gamp-orange);
    background: #fff8ea;
}

.gamp-stat-ok {
    border-top-color: #2f6b4f;
}

.gamp-stat-link:hover {
    color: var(--gamp-dark);
    box-shadow: 0 3px 10px rgba(50, 40, 39, 0.2);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4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    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.red-text {
    color: var(--gamp-orange) !important;
}
