/* Facturatie Vinted: zelfde opbouw en maten als Stuyver Core, met Vinted-groen als hoofdkleur. */

:root {
    --groen: #09b1ba;          /* Vinted-groen: accenten, actieve stip, focusrand */
    --primair: #007782;        /* donkerder groen voor knoppen en links, goed leesbaar met witte tekst */
    --primair-donker: #005c65;
    --primair-zacht: #e4f5f6;
    --achtergrond: #f4f8f8;
    --paneel: #ffffff;
    --paneel-zacht: #f6fafa;
    --rand: #e0e8e9;
    --rand-sterk: #c7d3d5;
    --tekst: #16252a;
    --grijs: #5f7377;
    --gevaar: #b42331;
    --zijbalk: #0c2326;
    --zijbalk-zacht: #133237;
    --zijbalk-tekst: #a8c3c6;
    --radius-klein: 8px;
    --radius: 12px;
    --radius-groot: 16px;
    --schaduw-klein: 0 1px 2px rgba(12, 35, 38, .04), 0 1px 4px rgba(12, 35, 38, .03);
    --schaduw: 0 8px 24px rgba(12, 35, 38, .07);
    --zijbalk-breedte: 252px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0; min-height: 100vh; color: var(--tekst); font-size: 15px; line-height: 1.5;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at top left, rgba(9, 177, 186, .07), transparent 30%),
        radial-gradient(circle at bottom right, rgba(9, 177, 186, .06), transparent 28%),
        var(--achtergrond);
}
body.menu-open { overflow: hidden; }
::selection { background: #c8eef0; color: #06393e; }

h1, h2, h3 { color: var(--tekst); line-height: 1.2; }
h1 { margin: 0 0 20px; font-size: clamp(1.65rem, 2.3vw, 2.15rem); font-weight: 750; letter-spacing: -.035em; }
h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
p { line-height: 1.65; }
a { color: var(--primair); font-weight: 650; text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--primair-donker); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(9, 177, 186, .35); outline-offset: 2px; }
.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.naar-inhoud {
    position: fixed; left: 18px; top: 14px; z-index: 1000; padding: 10px 14px; border-radius: var(--radius-klein);
    background: var(--paneel); color: var(--primair-donker); box-shadow: var(--schaduw); transform: translateY(-180%); transition: transform .15s ease;
}
.naar-inhoud:focus { transform: translateY(0); }

/* Merk (logo-teken met naam) */

.merk { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; }
.merk-teken {
    width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 50%;
    background: var(--groen); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.02em;
    border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.merk-tekst { display: flex; flex-direction: column; min-width: 0; }
.merk-tekst strong { font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
.merk-tekst span { margin-top: 2px; font-size: 11px; font-weight: 550; letter-spacing: .02em; }

/* Zijbalk */

.zijbalk {
    position: fixed; inset: 0 auto 0 0; z-index: 300; width: var(--zijbalk-breedte); height: 100vh;
    padding: 14px 12px 10px; display: flex; flex-direction: column; overflow: hidden;
    background: var(--zijbalk); color: var(--zijbalk-tekst); border-right: 1px solid rgba(255, 255, 255, .06);
}
.zijbalk:focus { outline: none; }
.zijbalk-kop { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0 4px 12px; }
.zijbalk .merk, .zijbalk .merk:hover { color: #fff; }
.zijbalk .merk-tekst span { color: #7fa0a4; }
.zijbalk-sluit {
    display: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px;
    background: rgba(255, 255, 255, .07); color: #fff; font-size: 25px; line-height: 1; cursor: pointer;
}
.zijbalk-menu { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.zijbalk-label {
    margin: 14px 10px 3px; color: #6f9196; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
}
.zijbalk-label:first-child { margin-top: 0; }
.zijbalk-link {
    display: flex; align-items: center; gap: 10px; min-height: 33px; padding: 5px 10px; border-radius: 9px;
    color: var(--zijbalk-tekst); font-size: 13.5px; font-weight: 600; line-height: 1.2; transition: background .16s ease, color .16s ease;
}
.zijbalk-link::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #3f6266; }
.zijbalk-link:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.zijbalk-link.actief { background: rgba(9, 177, 186, .2); color: #fff; }
.zijbalk-link.actief::before { background: #3fd6de; box-shadow: 0 0 0 4px rgba(63, 214, 222, .14); }
.zijbalk-voet { flex: 0 0 auto; margin-top: 8px; padding: 8px 4px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.profiel { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 6px 6px; }
.profiel-tekst { display: flex; flex-direction: column; min-width: 0; }
.profiel-tekst strong { overflow: hidden; color: #eaf4f5; font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.profiel-tekst small { color: #7f9da1; font-size: 11px; }
.zijbalk-voet form { margin: 0; }
button.zijbalk-actie, .zijbalk-actie {
    display: block; width: 100%; min-height: 30px; margin: 0; padding: 4px 8px; border: 0; border-radius: var(--radius-klein);
    background: none; color: #8fb0b4; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer;
}
button.zijbalk-actie:hover, .zijbalk-actie:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.avatar {
    width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px;
    background: var(--primair-zacht); color: var(--primair-donker); font-size: 13px; font-weight: 800;
}
.profiel .avatar { background: rgba(255, 255, 255, .1); color: #fff; }

/* Bovenbalk en inhoud */

.hoofd { min-width: 0; margin-left: var(--zijbalk-breedte); }
.bovenbalk {
    position: sticky; top: 0; z-index: 200; height: 68px; padding: 0 clamp(22px, 3.5vw, 52px);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--rand); backdrop-filter: blur(14px);
}
.bovenbalk-titel { display: flex; flex-direction: column; min-width: 0; }
.bovenbalk-titel > span { color: var(--grijs); font-size: 10px; font-weight: 700; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.bovenbalk-titel strong { font-size: 17px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bovenbalk-rechts { display: flex; align-items: center; gap: 10px; }
.bovenbalk-naam { max-width: 220px; overflow: hidden; color: var(--grijs); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.menuknop {
    display: none; width: 40px; height: 40px; padding: 10px; margin: 0; flex: 0 0 auto;
    border: 1px solid var(--rand); border-radius: 10px; background: var(--paneel); cursor: pointer;
}
.menuknop > span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: #2d4246; }
.zijbalk-achtergrond[hidden] { display: none; }
main { display: block; width: 100%; max-width: 1680px; margin: 0 auto; padding: clamp(26px, 3.5vw, 48px) clamp(22px, 3.5vw, 52px) 64px; }
main:focus { outline: none; }

/* Kaarten en tegels */

.kaart {
    margin-bottom: 18px; padding: clamp(20px, 2.2vw, 28px); overflow-x: auto;
    background: var(--paneel); border: 1px solid var(--rand); border-radius: var(--radius-groot); box-shadow: var(--schaduw-klein);
}
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; margin-bottom: 18px; }
.raster .kaart { margin: 0; color: var(--grijs); font-size: 13px; font-weight: 650; }
.getal { margin-bottom: 4px; color: var(--tekst); font-size: clamp(1.35rem, 1.9vw, 2.1rem); white-space: nowrap; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.raster .kaart:first-child .getal { color: var(--primair); }
.klein { color: var(--grijs); font-size: .87rem; font-weight: 400; }

/* Tabellen */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; }
th {
    padding: 11px 14px; background: var(--paneel-zacht); border-bottom: 1px solid var(--rand);
    color: var(--grijs); font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}
td { padding: 13px 14px; border-bottom: 1px solid #edf2f3; color: #2d3f44; font-size: 13.5px; }
tr:hover td { background: #f8fbfb; }
tr:last-child td { border-bottom: 0; }
.kaart > table:first-child, .kaart > h2 + table { margin-top: 4px; }
.r { text-align: right; white-space: nowrap; }

/* Formulieren */

label { display: block; margin: 14px 0 7px; color: #3a4f54; font-size: 13px; font-weight: 650; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=file], select, textarea {
    width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--rand-sterk); border-radius: var(--radius-klein);
    background: var(--paneel); color: var(--tekst); font: inherit; box-shadow: 0 1px 2px rgba(12, 35, 38, .02);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #a9b9bc; }
input:focus, select:focus, textarea:focus { border-color: var(--primair); outline: none; box-shadow: 0 0 0 3px rgba(9, 177, 186, .18); }
input:disabled, select:disabled, textarea:disabled { background: #f1f5f5; color: #8a9a9d; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { accent-color: var(--primair); width: 16px; height: 16px; vertical-align: -3px; margin: 0 6px 0 0; }
textarea { min-height: 130px; resize: vertical; }
.rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }

/* Knoppen */

button, .knop {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 14px; padding: 9px 15px;
    border: 1px solid var(--primair); border-radius: var(--radius-klein); background: var(--primair); color: #fff;
    font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button:hover, .knop:hover { background: var(--primair-donker); border-color: var(--primair-donker); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:disabled:hover { background: var(--primair); border-color: var(--primair); }
button.licht, .knop.licht { background: var(--paneel); border-color: var(--rand-sterk); color: #2d4246; }
button.licht:hover, .knop.licht:hover { background: var(--paneel-zacht); border-color: #9fb1b4; color: var(--tekst); }
button.gevaar { background: var(--paneel); border-color: #f0b8be; color: var(--gevaar); }
button.gevaar:hover { background: #fff1f2; border-color: #e9969f; color: var(--gevaar); }
button.link { min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--primair); font-weight: 650; text-decoration: underline; }
button.link:hover { background: none; color: var(--primair-donker); }
p > .knop + .knop { margin-left: 6px; }

/* Meldingen en labels */

.melding { position: relative; margin: 0 0 16px; padding: 12px 14px 12px 40px; border: 1px solid transparent; border-radius: var(--radius-klein); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.melding::before { position: absolute; left: 15px; top: 12px; font-size: 14px; font-weight: 800; }
.melding.ok { background: #effaf6; border-color: #b8e2d1; color: #116846; }
.melding.ok::before { content: "✓"; }
.melding.fout { background: #fff3f4; border-color: #f1c1c6; color: #8f2530; }
.melding.fout::before { content: "!"; }
.melding.let { background: #fff9eb; border-color: #efd99e; color: #795514; }
.melding.let::before { content: "!"; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #edf2f3; color: #3a4f54; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.badge.open { background: #fff4d6; color: #7a5200; }
.badge.klaar { background: var(--primair-zacht); color: var(--primair-donker); }

/* Inlogpagina */

body.inlogpagina {
    display: grid; place-items: center; padding: 24px;
    background: radial-gradient(circle at 15% 10%, rgba(9, 177, 186, .12), transparent 28rem), var(--achtergrond);
}
main.inlogkaart {
    width: 100%; max-width: 430px; margin: 0; padding: 36px;
    background: var(--paneel); border: 1px solid var(--rand); border-radius: var(--radius-groot); box-shadow: 0 18px 50px rgba(12, 35, 38, .09);
}
.inlogkaart .merk { margin-bottom: 24px; }
.inlogkaart .merk-tekst span { color: var(--grijs); }
.inlogkaart h1 { margin-bottom: 8px; font-size: 27px; }
.inlogkaart .kaart { margin: 0; padding: 0; border: 0; box-shadow: none; overflow: visible; }
.inlogkaart button { width: 100%; min-height: 44px; margin-top: 22px; }

/* Orderscherm: links de order, rechts de factuur */

.order-indeling { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; align-items: start; }
@media (min-width: 1200px) {
    .order-indeling { grid-template-columns: minmax(0, 1fr) minmax(400px, 46%); }
    .order-voorbeeld { position: sticky; top: 88px; }
}
.kaart-kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.kaart-kop h2 { margin: 0; }
.kaart-kop input[type=search] { width: min(100%, 260px); min-height: 38px; padding: 7px 12px; border: 1px solid var(--rand-sterk); border-radius: var(--radius-klein); font: inherit; }
.papier { position: relative; overflow: hidden; border: 1px solid var(--rand); border-radius: var(--radius-klein); background: #fff; box-shadow: var(--schaduw); }
.papier iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }

/* Sleepvlak voor artikelen */

[data-sleepdoel] { transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
[data-sleepdoel].sleep-actief { border: 2px dashed var(--groen); }
[data-sleepdoel].sleep-boven { background: var(--primair-zacht); box-shadow: 0 0 0 4px rgba(9, 177, 186, .15); }
[data-sleepdoel].bezig { opacity: .6; }
.sleep-hint { margin: 0; padding: 18px; border: 2px dashed var(--rand-sterk); border-radius: var(--radius); color: var(--grijs); text-align: center; }
.sleep-hint.klein { margin-top: 12px; padding: 10px; }

/* Artikeltegels met foto */

.artikel-tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.artikel-tegel {
    position: relative; display: flex; flex-direction: column; overflow: hidden; margin: 0;
    background: var(--paneel); border: 1px solid var(--rand); border-radius: var(--radius); cursor: grab;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.artikel-tegel[hidden] { display: none; }
.artikel-tegel:hover { border-color: var(--groen); box-shadow: var(--schaduw); }
.artikel-tegel.wordt-gesleept { opacity: .45; cursor: grabbing; }
.tegel-foto { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paneel-zacht); pointer-events: none; }
.tegel-foto.leeg { background: linear-gradient(135deg, var(--primair-zacht), var(--paneel-zacht)); }
.tegel-tekst { display: flex; flex-direction: column; gap: 2px; padding: 9px 44px 10px 11px; }
.tegel-naam { overflow: hidden; color: var(--tekst); font-size: 13px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tegel-prijs { color: var(--primair); font-size: 13px; font-weight: 750; }
button.tegel-plus {
    position: absolute; right: 8px; bottom: 9px; width: 32px; min-height: 32px; height: 32px; margin: 0; padding: 0;
    border-radius: 50%; font-size: 20px; font-weight: 600; line-height: 1;
}

/* Overzicht en kleine formulieren in tabellen */

.kwartaalkeuze { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.kwartaalkeuze > div { min-width: 150px; }
.kwartaalkeuze label { margin-top: 0; }
.kwartaalkeuze button, .kwartaalkeuze .knop { margin-top: 0; min-height: 44px; }
form.inline-bedrag { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline-bedrag input { width: 90px; min-height: 36px; padding: 6px 9px; text-align: right; }
form.inline-bedrag button { margin: 0; min-height: 36px; padding: 6px 10px; }

/* Afbeeldingen bij artikelen */

.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-klein); border: 1px solid var(--rand); display: block; background: var(--paneel); }
.thumb.leeg { background: var(--achtergrond); }
.voorbeeld { max-width: 160px; max-height: 160px; border-radius: var(--radius-klein); border: 1px solid var(--rand); display: block; margin: 6px 0; }
.fotos { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0; }
.foto { width: 160px; }
.foto .voorbeeld { width: 160px; height: 160px; object-fit: cover; }

/* Kleine schermen: zijbalk schuift in via de menuknop */

@media (max-width: 960px) {
    .zijbalk { width: min(292px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 45px rgba(12, 35, 38, .2); }
    .menu-open .zijbalk { transform: translateX(0); }
    .zijbalk-sluit { display: block; }
    .zijbalk-achtergrond { position: fixed; inset: 0; z-index: 290; display: block; background: rgba(12, 35, 38, .46); backdrop-filter: blur(2px); }
    .hoofd { margin-left: 0; }
    .menuknop { display: block; }
    .bovenbalk { height: 64px; padding: 0 16px; gap: 13px; }
    .bovenbalk-titel { margin-right: auto; }
    .bovenbalk-naam { display: none; }
    main { padding: 24px 16px 52px; }
}
@media (max-width: 600px) {
    .verberg-klein { display: none; }
    th, td { white-space: nowrap; }
    .getal { font-size: 1.45rem; }
    main.inlogkaart { padding: 26px 20px; }
}
