/* Navstar Prijslijsten — uniforme huisstijl, gelijk aan portal.navstar.nl
   en Server Beheer: Inter voor tekst, Outfit voor koppen; blauw #0088ca,
   licht #f0f5fa. Fonts staan lokaal (fonts/), de pagina laadt niets van
   buitenaf. De tabel volgt de opmaak van de Excel-prijslijst (kopregel
   #1F3864 met witte tekst). */

@import url("fonts/fonts.css");

* { box-sizing: border-box; margin: 0; }
:root {
  --blauw: #0088ca; --blauw-donker: #006a9a;
  --achtergrond: #f0f5fa; --rand: #e2e8f0; --inkt: #1e293b;
  --inkt-zacht: #64748b; --wit: #ffffff;
  --goed: #2ecc71; --let-op: #f39c12; --fout: #ef4444;
  --excelkop: #1F3864;
  --kop: "Outfit", "Segoe UI", sans-serif;
  --tekst: "Inter", "Segoe UI", sans-serif;
}
body {
  font-family: var(--tekst); background: var(--achtergrond);
  color: var(--inkt); min-height: 100vh;
  display: flex; flex-direction: column; line-height: 1.5;
}
h1, h2, h3 { font-family: var(--kop); }
.logo-img { height: 30px; width: auto; display: block; }

/* ==== Loginpagina (exact naar portal.navstar.nl / Server Beheer) ==== */
.login-pagina { justify-content: center; align-items: center;
  padding: 2rem; overflow: hidden; position: relative; }
.merken-achtergrond { position: fixed; inset: 0; display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-around;
  gap: 4rem; padding: 4rem; pointer-events: none; z-index: 0; }
.merken-achtergrond img { width: 110px; opacity: .07;
  filter: grayscale(100%); }

.login-container { display: flex; background: var(--wit);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .05);
  width: 100%; max-width: 1100px; min-height: 650px;
  position: relative; z-index: 10; }

.login-formzijde { flex: 1; padding: 4rem 3.5rem; display: flex;
  flex-direction: column; justify-content: center; max-width: 520px;
  margin: 0 auto; width: 100%; }
.login-formzijde h1 { font-size: 2.3rem; font-weight: 800;
  color: var(--inkt); margin-bottom: .5rem; }
.intro-tekst { color: var(--inkt-zacht); margin-bottom: 2rem; }
.melding-fout { background: var(--fout); color: var(--wit);
  border-radius: 8px; padding: .7rem 1rem; font-size: .9rem;
  font-weight: 600; margin-bottom: 1.2rem; text-align: center; }

.veld { margin-bottom: 1.5rem; }
.veld label { display: block; font-size: .9rem; font-weight: 600;
  margin-bottom: .5rem; color: var(--inkt); }
.invoer-met-icoon { position: relative; }
.invoer-met-icoon svg { position: absolute; left: .9rem; top: 50%;
  transform: translateY(-50%); width: 18px; height: 18px;
  color: var(--inkt-zacht); }
input[type=text] { width: 100%; padding: .8rem 1rem; font-size: 1rem;
  font-family: var(--tekst); border: 2px solid var(--rand);
  border-radius: 10px; background: #f8fafc; outline: none;
  transition: border-color .2s, box-shadow .2s; }
.invoer-met-icoon input { padding-left: 2.7rem; }
input[type=text]:focus { border-color: var(--blauw); background: var(--wit);
  box-shadow: 0 0 0 3px rgba(0, 136, 202, .2); }
.code-invoer { letter-spacing: .5em; text-align: center;
  font-size: 1.4rem; }

button, .knop-primair, .knop-terug { font-family: var(--tekst);
  cursor: pointer; }
.knop-primair { display: flex; align-items: center; justify-content: center;
  gap: .5rem; width: 100%; padding: .85rem 1.5rem; font-size: 1rem;
  font-weight: 600; color: var(--wit); background: var(--blauw);
  border: 0; border-radius: 10px; transition: all .25s; }
.knop-primair:hover { background: var(--blauw-donker);
  transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.pijl { font-size: 1.1rem; line-height: 1; }

.of-scheiding { display: flex; align-items: center; margin: 1.5rem 0;
  color: #94a3b8; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; }
.of-scheiding::before, .of-scheiding::after { content: ""; flex: 1;
  border-bottom: 1px solid var(--rand); }
.of-scheiding span { padding: 0 12px; }

.knop-terug { display: flex; align-items: center; justify-content: center;
  gap: .7rem; width: 100%; padding: .8rem; border: 1px solid var(--rand);
  border-radius: 10px; text-decoration: none; color: var(--inkt);
  font-size: .95rem; font-weight: 600; background: var(--wit);
  transition: all .2s; }
.knop-terug:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Fotozijde: Dave's foto onder de blauwe overlay (zoals de portal). */
.login-fotozijde { flex: 1.1; position: relative; overflow: hidden;
  background: url("login-foto.jpg") center/cover no-repeat; }
.foto-overlay { position: absolute; inset: 0; display: flex;
  flex-direction: column; justify-content: center; padding: 3.5rem;
  background: linear-gradient(135deg, rgba(0, 136, 202, .68),
                                      rgba(0, 82, 122, .62)); }
.overlay-logo { height: 50px; width: auto; align-self: flex-start;
  margin-bottom: 1.5rem; }
.foto-overlay h2 { color: var(--wit); font-size: 2.5rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 1rem; }
.foto-overlay p { color: rgba(255, 255, 255, .88); font-size: .95rem;
  max-width: 26rem; }
@media (max-width: 900px) { .login-fotozijde { display: none; }
  .login-container { min-height: 0; } }

/* ==== App-raamwerk (Navstar Portal-stijl) ==== */
.app-pagina { min-height: 100vh; }
.topbalk { background: linear-gradient(90deg, #0e93cf, #0088ca);
  color: var(--wit); display: flex; align-items: center;
  justify-content: space-between; padding: 0 1.6rem; height: 58px;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 82, 122, .25); }
.merk { display: flex; align-items: center; gap: .9rem; }
.merk .logo-img { height: 28px; filter: brightness(0) invert(1); }
.topbalk-titel { font-family: var(--kop); font-weight: 500;
  font-size: 1rem; color: var(--wit); letter-spacing: .02em;
  border-left: 1px solid rgba(255, 255, 255, .35);
  padding-left: .9rem; }
.topbalk-rechts { display: flex; align-items: center; gap: .8rem;
  font-size: .9rem; }
.topbalk-email { opacity: .95; font-weight: 500; }
.avatar { width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .85rem;
  flex-shrink: 0; }
.knop-uitloggen { display: flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .14); border: 0; color: var(--wit);
  padding: .45rem .8rem; border-radius: 8px; font-size: .84rem;
  font-weight: 600; transition: background .2s; }
.knop-uitloggen:hover { background: rgba(255, 255, 255, .26); }
.knop-uitloggen svg { width: 15px; height: 15px; }
@media (max-width: 700px) { .topbalk-email { display: none; }
  .knop-uitloggen span { display: none; } }

/* ---- Verversen (topbalk) ---- */
.ververs-blok { display: flex; align-items: center; gap: .7rem; }
.ververs-tijd { font-size: .78rem; opacity: .9; white-space: nowrap; }
.knop-ververs { display: flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .14); border: 0; color: var(--wit);
  padding: .45rem .8rem; border-radius: 8px; font-size: .84rem;
  font-weight: 600; cursor: pointer; transition: background .2s; }
.knop-ververs:hover:not(:disabled) { background: rgba(255, 255, 255, .26); }
.knop-ververs:disabled { opacity: .7; cursor: default; }
.knop-ververs svg { width: 15px; height: 15px; }
.knop-ververs svg.draait { animation: rondje 1.2s linear infinite; }
@keyframes rondje { to { transform: rotate(360deg); } }
.scheider { width: 1px; height: 22px; background: rgba(255, 255, 255, .3); }
@media (max-width: 900px) { .ververs-tijd { display: none; } }

/* ---- Notificatiebalk ---- */
.notificatie { display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem;
  font-size: .92rem; font-weight: 500; }
.notificatie svg { width: 22px; height: 22px; flex-shrink: 0; }
.notif-ok { background: #e8f6ee; color: #178048; border: 1px solid #b6e3c8; }
.notif-fout { background: #fdeaea; color: var(--fout);
  border: 1px solid #f6c6c6; }

.inhoud { flex: 1; padding: 1.6rem 2rem 2.4rem; width: 100%;
  max-width: 1400px; margin: 0 auto; }
.voetbalk { background: linear-gradient(90deg, #0e93cf, #0088ca);
  color: rgba(255, 255, 255, .92); text-align: center;
  padding: .7rem 1rem; font-size: .8rem; }

.paneel { background: var(--wit); border-radius: 14px;
  padding: 1.2rem 1.4rem; border: 1px solid var(--rand);
  box-shadow: 0 1px 3px rgba(16, 26, 43, .06); margin-bottom: 1.2rem; }
.paneel h2 { font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.01em; }
.paneel-kop { display: flex; align-items: baseline; gap: 1rem;
  justify-content: space-between; flex-wrap: wrap;
  margin-bottom: .8rem; }
.teller { color: var(--inkt-zacht); font-size: .8rem; white-space: nowrap; }
.periode-badge { display: inline-block; margin-left: .6rem;
  font-family: var(--tekst); font-size: .72rem; font-weight: 600;
  color: var(--blauw-donker); background: rgba(0, 136, 202, .1);
  border: 1px solid rgba(0, 136, 202, .25); border-radius: 99px;
  padding: .12rem .65rem; vertical-align: middle; }
.welkomstpaneel h2 { margin-bottom: .5rem; }
.welkomstpaneel p { color: var(--inkt-zacht); font-size: .92rem;
  max-width: 46rem; }
.leegmelding { color: var(--inkt-zacht); font-size: .9rem; }

/* ==== Filterbalk ==== */
.filterpaneel { display: flex; align-items: flex-end; gap: 1.2rem;
  flex-wrap: wrap; }
.filtergroep > label { display: block; font-size: .78rem;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--inkt-zacht); margin-bottom: .4rem; }
.filtergroep select { padding: .6rem .8rem; font-size: .92rem;
  font-family: var(--tekst); border: 2px solid var(--rand);
  border-radius: 10px; background: #f8fafc; min-width: 260px;
  outline: none; cursor: pointer; }
.filtergroep select:focus { border-color: var(--blauw);
  background: var(--wit); box-shadow: 0 0 0 3px rgba(0, 136, 202, .2); }
.filterhint { font-size: .8rem; color: var(--inkt-zacht);
  display: inline-block; padding: .7rem 0; }

.merkkeuze { position: relative; min-width: 240px; }
.merkkeuze[hidden] { display: none; }
.merkkeuze summary { list-style: none; cursor: pointer;
  padding: .6rem .8rem; font-size: .92rem; border: 2px solid var(--rand);
  border-radius: 10px; background: #f8fafc; user-select: none; }
.merkkeuze summary::-webkit-details-marker { display: none; }
.merkkeuze summary::after { content: "▾"; float: right;
  color: var(--inkt-zacht); }
.merkkeuze[open] summary { border-color: var(--blauw);
  background: var(--wit); box-shadow: 0 0 0 3px rgba(0, 136, 202, .2); }
.merklijst { position: absolute; top: calc(100% + .4rem); left: 0;
  z-index: 40; background: var(--wit); border: 1px solid var(--rand);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(13, 39, 64, .18);
  min-width: 100%; max-height: 20rem; overflow-y: auto;
  padding: .5rem; }
.merkacties { display: flex; gap: .4rem; padding: .2rem .3rem .5rem;
  border-bottom: 1px solid var(--rand); margin-bottom: .3rem; }
.knop-klein { margin: 0; width: auto; padding: .3rem .6rem;
  font-size: .74rem; font-weight: 600; background: var(--wit);
  color: var(--blauw); border: 1px solid var(--rand);
  border-radius: 8px; cursor: pointer; }
.knop-klein:hover { background: var(--achtergrond); }
.merkvink { display: flex; align-items: center; gap: .5rem;
  padding: .35rem .5rem; border-radius: 8px; font-size: .88rem;
  cursor: pointer; white-space: nowrap; }
.merkvink:hover { background: var(--achtergrond); }
.merkvink input { accent-color: var(--blauw); width: 15px; height: 15px; }

.filterknoppen .knop-primair.knop-tonen { width: auto;
  padding: .6rem 1.6rem; font-size: .92rem; }
.exportgroep { display: flex; gap: .5rem; margin-left: auto; }
.knop-export { display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; font-size: .84rem; font-weight: 600;
  color: var(--blauw-donker); background: var(--wit);
  border: 1px solid var(--rand); border-radius: 10px;
  text-decoration: none; transition: all .2s; }
.knop-export:hover { background: var(--achtergrond);
  border-color: #cbd5e1; }
.knop-export svg { width: 15px; height: 15px; }

/* ==== Prijstabel — opmaak van de Excel-prijslijst ==== */
.tabel-scroll { overflow-x: auto; }
.prijstabel { border-collapse: collapse; width: 100%; font-size: .87rem; }
.prijstabel th { background: var(--excelkop); color: var(--wit);
  font-weight: 700; text-align: left; padding: .55rem .8rem;
  white-space: nowrap; position: sticky; top: 0; }
.prijstabel td { padding: .45rem .8rem; border-bottom: 1px solid
  var(--rand); white-space: nowrap; }
.prijstabel tbody tr:nth-child(even) { background: #f8fafc; }
.prijstabel tbody tr:hover { background: #eaf4fb; }
.prijstabel .getal { text-align: right;
  font-variant-numeric: tabular-nums; }
.prijstabel .omschrijving { white-space: normal; min-width: 22rem; }
.prijstabel .mono { font-family: ui-monospace, "Cascadia Mono", Consolas,
  monospace; font-size: .82rem; }

/* ==== Calculaties: aanvullingen op de prijslijst-stijl ==== */
.logo-link { display: flex; }
.topbalk-pad { opacity: .85; font-weight: 400; }
.tabbalk { background: var(--wit); border-bottom: 1px solid var(--rand);
  display: flex; gap: .2rem; padding: 0 2rem; overflow-x: auto; }
.tab { padding: .8rem 1rem; font-size: .9rem; font-weight: 600;
  color: var(--inkt-zacht); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; }
.tab:hover { color: var(--inkt); }
.tab.actief { color: var(--blauw-donker); border-bottom-color: var(--blauw); }
.tab-terug { margin-right: .8rem; }
.inhoud-breed { max-width: none; }
.kopacties { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.inline-form { display: flex; align-items: center; gap: .5rem; }
.klein-veld { padding: .45rem .7rem !important; font-size: .84rem !important;
  width: 16rem !important; }
.merklink { color: var(--blauw-donker); font-weight: 600; text-decoration: none; }
.merklink:hover { text-decoration: underline; }
.acties { display: flex; gap: .4rem; }
.regelformulier { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.regelformulier label { font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--inkt-zacht); }
.regelformulier input[type=text] { width: 20rem; }
.info-knop { background: none; border: 0; color: var(--blauw); font-size: 1rem;
  cursor: pointer; padding: 0 .3rem; vertical-align: middle; line-height: 1; }
.info-knop:hover { color: var(--blauw-donker); }
.info-ballon { position: absolute; z-index: 60; background: var(--inkt);
  color: var(--wit); font-size: .82rem; line-height: 1.45; padding: .8rem 1rem;
  border-radius: 10px; box-shadow: 0 12px 30px rgba(13, 39, 64, .25); }

/* Calculatietabel */
.tabel-hoog { max-height: calc(100vh - 230px); overflow: auto; }
.calctabel th, .calctabel td { padding: .35rem .55rem; font-size: .8rem; }
.calctabel thead th { top: 0; z-index: 3; }
.calctabel thead tr.kopgroep th { top: 0; }
.calctabel thead tr + tr th { top: 1.9rem; }
.calctabel .vast { position: sticky; left: 0; z-index: 2; background: inherit; }
.calctabel thead .vast { z-index: 4; background: var(--excelkop); }
.calctabel tbody tr:nth-child(even) .vast { background: #f8fafc; }
.calctabel tbody tr:nth-child(odd) .vast { background: var(--wit); }
.calctabel tbody tr:hover .vast { background: #eaf4fb; }
.omschrijving-kort { max-width: 22rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.groepkop { text-align: center !important; background: #2f4f88 !important;
  font-size: .72rem !important; font-weight: 600 !important; }
.kanaalkop { background: #0f6ea0 !important; }
.kick { display: block; font-size: .66rem; font-weight: 400; opacity: .85; }
.groepsrij td { background: #fde9c9 !important; font-weight: 700; color: #7a4a00;
  text-transform: uppercase; font-size: .76rem; letter-spacing: .03em; }
.invoer { background: #eef7ff; }
.negatief { color: var(--fout); font-weight: 600; }
.kanaalcel { line-height: 1.15; }
.kanaalcel.afwijkend { background: #dbeafe; }
.netto { display: block; font-size: .68rem; color: var(--inkt-zacht); }
.koplink { color: var(--wit); text-decoration: underline dotted; }

/* Invoertabellen */
.invoertabel td { padding: .25rem .4rem; }
.invoertabel input[type=text], .veld-select { padding: .35rem .5rem;
  font-size: .84rem; border: 1px solid var(--rand); border-radius: 6px;
  background: var(--wit); font-family: var(--tekst); }
.invoertabel input[type=text]:focus, .veld-select:focus { border-color: var(--blauw);
  box-shadow: 0 0 0 2px rgba(0, 136, 202, .2); outline: none; }
.invoertabel input.getal { text-align: right; }
.veld-kort { width: 4rem; }
.veld-breed { width: 100%; min-width: 18rem; }
.veld-sku { width: 7rem; }
.veld-ean { width: 9.5rem; }
.veld-geld { width: 6.5rem; }
.veld-pct { width: 5rem; }
.veld-naam { width: 11rem; }
.veld-select { min-width: 10rem; max-width: 16rem; }
.veld-basis { min-width: 8.5rem; }
.groepkolom { max-width: 7rem; white-space: normal !important; font-size: .72rem; }
.uitz { background: #fffdf2; }
.nieuwrij td { background: #f6fbf7 !important; }
.invoertabel input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blauw); }
.onderacties { display: flex; justify-content: flex-end; margin-top: .9rem; }
.prijstabel.smal { width: auto; min-width: 32rem; }

/* Instellingen */
.formulierraster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.4rem; }
.veld-vol { grid-column: 1 / -1; }
.formulierraster textarea, .formulierraster input[type=date] { width: 100%;
  padding: .7rem .9rem; font-size: .95rem; font-family: var(--tekst);
  border: 2px solid var(--rand); border-radius: 10px; background: #f8fafc; }
.formulierraster textarea:focus, .formulierraster input[type=date]:focus {
  border-color: var(--blauw); background: var(--wit); outline: none;
  box-shadow: 0 0 0 3px rgba(0, 136, 202, .2); }
@media (max-width: 900px) { .formulierraster { grid-template-columns: 1fr 1fr; } }
.gevaarzone { border-color: #f6c6c6; }
.knop-gevaar { padding: .6rem 1.2rem; font-size: .9rem; font-weight: 600;
  color: var(--wit); background: var(--fout); border: 0; border-radius: 10px; }

/* Prijslijst */
.legal { margin-top: 1.4rem; font-size: .82rem; color: var(--inkt-zacht); line-height: 1.6; }
.legal strong { color: var(--inkt); }
.legal-klant { margin-top: .8rem; }
