/* Neftprom: de huisstijl, geladen na stijl.css. Gebouwd op de ontwerpregels uit Documents\Werk\Reels\uxy.app ontwerpregels.md:
   - een accentkleur (het blauw uit het logo), alleen op wat ertoe doet
   - lichte achtergrond, witte kaarten, ruimte scheidt; geen doos in een doos, geen schaduw op wat niet zweeft
   - hoeken uit een familie: 16 voor een kaart, 10 daarbinnen
   - drie tekstgroottes: titel, tekst (16, op de telefoon 17), bijschrift (13)
   - iconen in een stijl en een maat
   - op de telefoon: de onderdelen in een balk onderin, de hoofdknop onder je duim */
:root {
  --accent: #2452c9; --accent-donker: #1c44ab; --accent-zacht: #e8eefc;
  --pagina: #f5f5f7; --kaart: #ffffff;
  --inkt: #111318; --inkt-zacht: #4a4f5a; --grijs: #6b7280;
  --vul: #eef0f3; --vul-donker: #e3e6ea; --waas: #f5f6f8; --lijn: #e6e8ec; --lijn-donker: #cfd3da;
  --hoek-klein: 6px; --hoek: 10px; --hoek-groot: 16px;
  --zweef: 0 2px 4px rgba(16, 32, 80, .10), 0 12px 32px rgba(16, 32, 80, .08);
  --tabhoogte: 56px;
}
body { background: var(--pagina); color: var(--inkt); }
body:has(main.smal) { background: #fff; }
.icoon { width: 22px; height: 22px; flex: none; display: block; }
h1 { letter-spacing: -.02em; }
a { color: var(--accent); }
.sub { color: var(--inkt-zacht); }

/* knoppen: een blauwe hoofdknop, de rest rustig */
button { border-radius: var(--hoek); background: var(--vul); color: var(--inkt); }
button.hoofd { background: var(--accent); color: #fff; }
button.hoofd:active { background: var(--accent-donker); }
button.stil { background: none; color: var(--inkt-zacht); }
button.link { color: var(--accent); text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  button:hover { background: var(--vul-donker); }
  button.hoofd:hover { background: var(--accent-donker); }
  button.stil:hover { background: var(--vul); color: var(--inkt); }
  button.link:hover { background: none; color: var(--accent-donker); }
  button.gevaar:hover { background: var(--rood-zacht); }
}
input[type=text], input[type=password], input[type=search], select, textarea { border-radius: var(--hoek); border-width: 1.5px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #fff; }
.vinkregel input, input[type=checkbox], input[type=range] { accent-color: var(--accent); }
.tabs a { color: var(--grijs); }
.tabs a.aan { color: var(--accent); border-bottom-color: var(--accent); }

/* de balk bovenaan: licht, het logo in kleur */
.kop { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); color: var(--inkt); border-bottom: 1px solid var(--lijn); height: 64px; }
.merk.klein { color: var(--inkt); }
.merk.klein .merkteken { background-image: url('/merk.svg'); width: 32px; height: 32px; }
.merk.klein .merknaam { background-image: url('/naam.svg'); --naamhoogte: 28px; }
.kopnav a { color: var(--grijs); border-radius: 0; }
.kopnav a.aan { color: var(--accent); }
.kopnav a.aan::after { background: var(--accent); height: 2px; }
@media (hover: hover) and (pointer: fine) { .kopnav a:hover { color: var(--inkt); } .kop .wie .wie-knop:hover { background: var(--vul); } .kop .wie button:hover { background: var(--vul); } }
.kop .wie { color: var(--grijs); }
.kop .wie b { color: var(--inkt); }
.kop .wie .wie-knop { color: var(--inkt); }
.kop .wie .wie-tekst .rol { color: var(--grijs); }
.kop .wie button { background: none; color: var(--inkt-zacht); }
.kop .wie button.klein:not(.stil) { background: var(--vul); color: var(--inkt); }
.avatar { background: var(--accent-zacht); color: var(--accent); font-weight: 600; }
.avatar.licht { background: var(--vul-donker); color: var(--inkt-zacht); }
.avatar.groot { background: var(--accent-zacht); color: var(--accent); }
.kopnieuw { background: var(--accent); color: #fff; }

/* kaarten */
.tegel { background: var(--kaart); border-radius: var(--hoek-groot); }
.tegel .steen { border-radius: 0; }
.tegel .open { background: var(--accent-zacht); color: var(--accent); border-radius: var(--hoek); }
@media (hover: hover) and (pointer: fine) { .tegel:hover { background: var(--kaart); box-shadow: 0 0 0 2px var(--accent-zacht); } }
.onder { border-top: 0; padding-top: 0; }
.onder button.link { background: var(--kaart); color: var(--inkt); }
table { background: var(--kaart); border-radius: var(--hoek-groot); overflow: hidden; }
th, td { padding-left: var(--a2); }
th:last-child, td:last-child { padding-right: var(--a2); }
tbody tr:last-child td { border-bottom: 0; }
.profiel { background: var(--kaart); border-radius: var(--hoek-groot); border-top: 0; padding: 0 var(--a3); }
.profielregel:last-child { border-bottom: 0; }
.logboek { background: var(--kaart); border-radius: var(--hoek-groot); padding: 0 var(--a2); }
.logboek .logregel:first-child { border-top: 0; }
.logboek .logregel:last-child { border-bottom: 0; }
.venster { border-radius: var(--hoek-groot); box-shadow: var(--zweef); }
.venster-achter { background: rgba(17, 19, 24, .38); }
#melding { background: #1b1e25; border-radius: var(--hoek); box-shadow: var(--zweef); display: flex; align-items: center; gap: var(--a2); }
#melding.toon { pointer-events: auto; }
#melding button { height: 32px; padding: 0 var(--a15); background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; }
.code { border-radius: var(--hoek); font-variant-numeric: tabular-nums; }
.let-op { border-radius: var(--hoek); }

/* de balk onderin: alleen op de telefoon */
.tabbalk { display: none; }
@media (max-width: 720px) {
  body { font-size: 17px; }
  .kop { height: 52px; }
  .kop .wie { display: none; }
  .merk.klein .merkteken { width: 26px; height: 26px; }
  .merk.klein .merknaam { --naamhoogte: 24px; }
  .tabbalk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 32; display: flex; justify-content: space-around; align-items: stretch;
    height: calc(var(--tabhoogte) + env(safe-area-inset-bottom, 0px)); padding: 0 var(--a05) env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--lijn); }
  .tabbalk a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--grijs); text-decoration: none;
    font-size: 11px; line-height: 14px; font-weight: 500; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
  .tabbalk a.aan { color: var(--accent); }
  .tabbalk a:active .tab-beeld { transform: scale(.9); }
  .tab-beeld { position: relative; display: block; transition: transform .1s ease-out; }
  .tab-beeld .icoon { width: 24px; height: 24px; }
  .tab-beeld .kopnieuw { position: absolute; top: -4px; left: 14px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; }
  body.met-tabbalk main { padding-bottom: calc(var(--tabhoogte) + var(--a4) + env(safe-area-inset-bottom, 0px)); }
  body.met-tabbalk #melding { bottom: calc(var(--tabhoogte) + var(--a2) + env(safe-area-inset-bottom, 0px)); }
  .tegel { background: var(--kaart); }
  .tegel:active { background: var(--vul); }
  table { background: none; border-radius: 0; border-top: 0; }
  tr { background: var(--kaart); border-radius: var(--hoek-groot); padding: var(--a2); margin-bottom: var(--a15); border-bottom: 0; }
  td { padding-left: 0; }
  .profiel { padding: 0 var(--a2); }
  .venster, .venster.groot, .venster.breed { border-radius: var(--hoek-groot) var(--hoek-groot) 0 0; }
}

/* de tegels op de startpagina: een eigen tekening per onderdeel */
.tegel .steen, .tegel.kluis .steen, .tegel.prive .steen, .tegel.chat .steen { filter: none; background: #eef0f3 center / cover no-repeat; }
.tegel.bord .steen { background-image: url('/beeld-bord.svg'); }
.tegel.kluis .steen { background-image: url('/beeld-kluis.svg'); }
.tegel.prive .steen { background-image: url('/beeld-prive.svg'); }
.tegel.chat .steen { background-image: url('/beeld-chat.svg'); }
.welkom::after { content: none; }
.welkom h1 { font-size: 30px; line-height: 40px; }
@media (min-width: 721px) { .tegel .steen { height: 150px; } .tegel b { margin-top: var(--a2); } .tegel .open { display: none; } .tegel p { margin-bottom: var(--a3); font-size: 15px; line-height: 22px; } }
@media (max-width: 720px) { .tegel { grid-template-columns: 96px minmax(0, 1fr) 20px; } .tegel .steen { width: 96px; height: 80px; } }

/* het inlogscherm en de andere smalle schermen blijven zoals ze waren: zwart-wit met de gevel rechts */
main.smal button.hoofd { background: #000; color: #fff; }
main.smal button.hoofd:active { background: #4b4b4b; }
@media (hover: hover) and (pointer: fine) { main.smal button.hoofd:hover { background: #333; } main.smal button.link:hover { color: #545454; } }
main.smal input:focus { border-color: #000; }
main.smal a, main.smal button.link { color: #000; text-decoration: underline; text-underline-offset: 3px; }
main.smal button:focus-visible, main.smal a:focus-visible { outline-color: #000; }

/* het menu onder je naam rechtsboven */
.kop .wie .wie-knop { cursor: pointer; padding-right: var(--a1); gap: var(--a1); }
.kop .wie .wie-knop .wie-tekst { margin-left: var(--a05); }
.wie-pijl { width: 16px; height: 16px; transform: rotate(90deg); color: var(--grijs); }
.wiemenu { position: fixed; z-index: 46; min-width: 232px; padding: var(--a05); background: #fff; border-radius: 14px; box-shadow: var(--zweef); }
.wiemenu button { display: flex; align-items: center; gap: var(--a15); width: 100%; height: 44px; padding: 0 var(--a15); background: none; border-radius: var(--hoek); font-size: 15px; font-weight: 400; text-align: left; color: var(--inkt); }
.wiemenu button .icoon { width: 20px; height: 20px; color: var(--grijs); }
.wiemenu button.gevaar { color: var(--rood); }
.wiemenu button.gevaar .icoon { color: var(--rood); }
.wiemenu-lijn { display: block; height: 1px; margin: var(--a05) var(--a15); background: var(--lijn); }
@media (hover: hover) and (pointer: fine) { .wiemenu button:hover { background: var(--waas); } }
@media (max-width: 720px) {
  .kop .wie { display: flex; margin-left: auto; gap: var(--a1); }
  .kop .wie .wie-knop { height: 40px; padding: 0; }
  .kop .wie .wie-tekst, .wie-pijl { display: none; }
  .kop .wie .avatar { width: 34px; height: 34px; }
  .wiemenu { left: var(--a2); right: var(--a2) !important; }
  .wiemenu button { height: 48px; font-size: 16px; }
}

/* de code van de tweede stap */
input.codeveld { font-family: var(--mono); font-size: 22px; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; }
a.knoplink { display: inline-flex; align-items: center; height: 48px; padding: 0 var(--a2); border-radius: var(--hoek); background: var(--vul); color: var(--inkt); font-weight: 500; text-decoration: none; }

/* een momentopname in de lijst met versies */
tr.moment td:first-child b { color: var(--accent); }

/* accounts: het blok voor een nieuwe teamsleutel, en de voortgang tijdens het omzetten */
.instelblok { display: flex; align-items: center; justify-content: space-between; gap: var(--a3); margin-top: var(--a4); padding: var(--a2) var(--a3); background: var(--kaart); border-radius: var(--hoek-groot); }
.instelblok b { font-weight: 600; }
.instelblok .onderregel { max-width: 62ch; margin-top: var(--a05); }
.instelblok button { flex: none; }
.voortgang { height: 6px; border-radius: 3px; background: var(--vul-donker); overflow: hidden; margin: var(--a1) 0 var(--a2); }
.voortgang i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s ease-out; }
@media (max-width: 720px) { .instelblok { flex-direction: column; align-items: stretch; padding: var(--a2); } }

/* tabellen zonder de kolom 'laatst actief' en 'door' */
td:nth-child(2) { white-space: normal; color: inherit; }

/* in het menu van de beheerder: alleen hij ziet dat hij beheerder is */
.wiemenu-rol { padding: var(--a1) var(--a15) var(--a05); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--grijs); }
.kop .wie .wie-knop .wie-tekst b { font-size: 15px; line-height: 20px; }

/* inlogscherm: zakelijker. Geen losse voetregel meer, maar een blok met een slot; op de telefoon de gevel als band bovenaan */
main.smal::after { content: none; }
main.smal .kaart h1 { font-size: 30px; line-height: 38px; letter-spacing: -.01em; }
main.smal .kaart .sub { color: #545454; }
main.smal .kaart > .hint { margin-top: var(--a2); }
.inlogvoet { display: flex; gap: var(--a15); align-items: flex-start; margin-top: var(--a6); padding-top: var(--a3); border-top: 1px solid #e2e2e2; color: #6b6b6b; }
.inlogvoet .icoon { width: 20px; height: 20px; margin-top: 2px; color: #000; }
.inlogvoet b { display: block; font-size: 13px; line-height: 20px; font-weight: 600; color: #000; }
.inlogvoet span { display: block; font-size: 12px; line-height: 18px; }
@media (max-width: 880px) {
  /* de gevel als donkere band bovenaan, met het logo er in het wit op */
  body:has(main.smal)::after { display: block; left: 0; right: 0; top: 0; bottom: auto; height: calc(128px + env(safe-area-inset-top, 0px)); z-index: 0;
    background: linear-gradient(rgba(4, 22, 30, .62), rgba(4, 22, 30, .62)), #06222b url('/gevel.svg') center 38% / cover no-repeat; }
  main.smal { position: relative; z-index: 1; padding-top: calc(42px + env(safe-area-inset-top, 0px)); min-height: 100dvh; }
  main.smal .merk { margin-bottom: 74px; }
  main.smal .merk .merkteken { width: 40px; height: 40px; background-image: url('/merk-wit.svg'); }
  main.smal .merk .merknaam { --naamhoogte: 36px; background-image: url('/naam-wit.svg'); }
}
