/* 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; } }

.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; }
.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; }
