/* B2B-dashboard (/b2b-account, /en/b2b-account, /de/b2b-account).
   Eén stylesheet voor de drie taalversies; de inhoud rendert b2b-account.js. */
:root {
    --bg-body: #ffffff;
    --text-main: #000000;
    --text-muted: #666666;
    --ube-pop: #5B2E86;
    --line: rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --card-radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; }
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--ube-pop);
    box-shadow: 0 0 0 3px rgba(91, 46, 134, 0.1);
}
input:disabled { background: #f5f5f5; color: #555; }
textarea { min-height: 72px; resize: vertical; }

.nav-btn {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: #000;
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    border: 1px solid #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-btn:hover { background: var(--ube-pop); border-color: var(--ube-pop); }
.nav-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.nav-btn--ghost { background: transparent; color: #000; border-color: rgba(0, 0, 0, 0.15); }
.nav-btn--ghost:hover { color: #fff; }
.nav-btn--sm { font-size: 0.7rem; padding: 0.45rem 0.9rem; }

/* Pagina */
.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 7.5rem 1.25rem 4rem;
}
.dash-head { margin-bottom: 1.5rem; }
.dash-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ube-pop);
}
.dash-head h1 {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1;
    margin-top: 0.4rem;
    overflow-wrap: anywhere;
}
.dash-head p { margin-top: 0.6rem; color: #444; line-height: 1.6; max-width: 60ch; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}
.card-title {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.card-sub { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin: -0.6rem 0 1rem; }

/* Overzichtstegels */
.tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.25rem; }
.tile-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.tile-main { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.tile-copy { color: #444; font-size: 0.9rem; line-height: 1.5; }
.tile-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: auto; padding-top: 0.4rem; font-size: 0.9rem; }
.tile-links a, .link-btn {
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
}
.tile-links a:hover, .link-btn:hover { color: var(--ube-pop); }

/* Bestellingen */
.orders { display: flex; flex-direction: column; gap: 0.75rem; }
.order { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.order-num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.order-date { color: var(--text-muted); font-size: 0.85rem; }
.order-total { margin-left: auto; font-weight: 700; }
.badge {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
    font-weight: 700;
    white-space: nowrap;
}
.badge--ok { background: #d1fae5; border-color: #a7f3d0; color: #047857; }
.badge--wait { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.badge--bad { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.order-items { margin-top: 0.6rem; font-size: 0.9rem; color: #444; line-height: 1.6; padding-left: 1.1rem; }
.order-actions { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.orders-empty { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.orders-empty .nav-btn { margin-top: 0.9rem; }
@media (max-width: 640px) {
    .order-total { margin-left: 0; width: 100%; }
}

/* Gegevens */
.details-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem 2rem; }
@media (min-width: 860px) { .details-grid { grid-template-columns: 1fr 1fr; } }
.details-block h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}
.row-2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .row-2 { grid-template-columns: 1fr 1.6fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, .field .label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}
.check-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 12px; font-size: 0.95rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ube-pop); }
.hint { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
[hidden] { display: none !important; }
.save-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.msg {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    display: none;
}
.msg.is-show { display: block; }
.msg.is-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.msg.is-ok { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }

.section-gap { margin-bottom: 1.5rem; }
.skeleton { color: var(--text-muted); }

footer {
    border-top: 4px solid #000;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 2.5rem;
}
.big-footer-logo {
    font-family: var(--font-display);
    font-size: 14vw;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: -0.5rem;
    color: #fff;
    -webkit-text-stroke: 3px #000;
}
@media (max-width: 768px) {
    .page { padding-top: 6.5rem; }
    .big-footer-logo { font-size: 20vw; -webkit-text-stroke: 1px #000; }
}
