/* ==== basis ==== */
:root{
  --bg: #0b1323;
  --surface: #0f1c33;
  --surface-2: #11203a;
  --border: #1f3358;
  --text: #eef2ff;
  --muted: #9fb3c8;
  --accent: #2b74ff;
  --accent-2: #6aa0ff;
  --bar-h: 96px;             /* PATCH-46: hoger zodat logo van 72px past, zoals op Dockplanner */
  --radius: 12px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:
    radial-gradient(1200px 700px at -10% -15%, #0e2048 0%, transparent 55%),
    radial-gradient(1200px 700px at 110% 120%, #0a1b3f 0%, transparent 55%),
    var(--bg);
  color:var(--text);
  font: 14.5px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* utility */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.muted{ color: var(--muted); }

/* ==== top bar ==== */
.bar{
  position: sticky; top:0; z-index:50;
  height: var(--bar-h);
  padding: 8px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:
    linear-gradient(180deg, rgba(30,52,96,.65), rgba(17,32,58,.92)),
    linear-gradient(90deg, #102446, #0b1a33);
  border-bottom:1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  overflow:hidden;
}
.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.brand-logo{ height:72px; width:auto; display:block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.bar h1{ margin:0; font-size:16px; letter-spacing:.25px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.toolbar{ display:flex; align-items:center; gap:8px; flex-wrap:nowrap; white-space:nowrap; }
.toolbar input[type="date"]{
  height:32px; min-width: 170px;
  border-radius:8px; padding:4px 8px;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  font-size: 13px;
}
.toolbar input[type="date"]:focus{ border-color:var(--accent); box-shadow: 0 0 0 3px rgba(43,116,255,.15); outline:none; }

/* ==== container ==== */
.container{ width:100%; margin: 12px auto 32px; padding: 0 12px; }

/* ==== kaart / tabel ==== */
.card{
  background: linear-gradient(180deg, rgba(17,32,58,.65), rgba(15,28,50,.65));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  overflow: visible;
  padding: 10px;
}

/* Buttons */
.btn{
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color:#fff; border:none;
  padding:6px 10px;           /* compacter */
  border-radius: 10px; cursor:pointer; font-weight:600; font-size:13px;
  box-shadow: 0 6px 16px rgba(43,116,255,.35);
  line-height:1;
}
.btn.ghost{ background:transparent; border:1px solid var(--border); color:var(--text); box-shadow:none; }
.btn:active{ transform: translateY(1px); }

/* ==== tabel ==== */
table{
  width:100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
thead th{
  position: sticky;
  top: calc(var(--bar-h) + 6px);
  z-index: 5;
  background: linear-gradient(180deg, rgba(28,51,96,.95), rgba(21,38,73,.98));
  padding: 8px;                       /* compacter */
  text-align:left; text-transform:uppercase; font-size:11.5px; letter-spacing:.2px;
  border-bottom:1px solid var(--border);
  white-space: nowrap;
}
tbody td{
  padding: 5px 6px;                   /* compacter */
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}
tbody tr:nth-child(odd) td{ background:#0f1b30; }
tbody tr:nth-child(even) td{ background:#0d182a; }
tbody tr:hover td{ background:#13223d; }

/* inputs vullen cel maar compacter */
input, select, textarea{
  width:100%;
  height:32px;                         /* was 36px */
  background: var(--surface-2);
  color: var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  padding:6px 8px;
  outline:none;
  font-size:14px;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder{ color: var(--muted); }
input:focus, select:focus, textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,116,255,.15);
}
textarea{ min-height: 32px; height: 32px; }

input[type="checkbox"]{
  width:18px; height:18px; accent-color: var(--accent);
  display:block; margin:0 auto;
}

/* delete-knop */
.delbtn{
  width:24px;height:24px;
  display:inline-grid;place-items:center;
  padding:0;margin:0 auto;
  border-radius:9999px;
  background:#7f1d1d;
  border:1px solid #ef4444;
  color:#fff;
  cursor:pointer;
}
.delbtn::before{content:"\2715";font-size:13px;line-height:1;}
.delbtn:hover{background:#991b1b;border-color:#f87171;}
.delbtn:focus-visible{outline:2px solid #f87171;outline-offset:2px;}

/* ==== kolombreedtes ==== */
.col-acties      { width:  4%; }
.col-vervoerder  { width: 12%; }
.col-dock        { width:  5%; }
.col-vertrektijd { width:  6%; }
.col-dload       { width:  8%; }
.col-dlos        { width:  8%; }
.col-tlos        { width:  6%; }
.col-losbest     { width: 11%; }
.col-losnr       { width:  5%; }
.col-trailer     { width:  7%; }
.col-laadvolg    { width:  5%; }
.col-pallets     { width:  5%; }
.col-opm         { width: 12%; }
.col-aang        { width:  3%; }
.col-weg         { width:  3%; }

/* uitlijning */
tbody td:nth-child(3)  input{ text-align:center; } /* Dock */
tbody td:nth-child(4)  input{ text-align:center; font-variant-numeric: tabular-nums; } /* Vertrektijd */
tbody td:nth-child(5)  input{ text-align:center; } /* Datum laden */
tbody td:nth-child(6)  input{ text-align:center; } /* Datum lossen */
tbody td:nth-child(7)  input{ text-align:center; font-variant-numeric: tabular-nums; } /* Tijd lossen */
tbody td:nth-child(9)  input{ text-align:center; } /* Losnummer */
tbody td:nth-child(10) input{ text-align:center; } /* Trailer */
tbody td:nth-child(11) input{ text-align:center; } /* Laadvolgorde */
tbody td:nth-child(12) input{ text-align:center; } /* Pallets */

/* responsive kleine tweaks */
@media (max-width: 1280px){
  .toolbar input[type="date"]{ min-width: 150px; }
  .btn{ padding:5px 8px; font-size:12px; }
  .brand-logo{ height:60px; }
  .bar{ padding:8px 12px; }
}
@media (max-width: 1024px){
  body{ font-size:14px; }
  .toolbar{ gap:6px; }
  .toolbar input[type="date"]{ height:30px; }
  thead th { padding:7px; font-size:11px; }
  tbody td { padding:4px 5px; }
}
