:root{
  --bg1:#f3f6ff;
  --bg2:#eef2ff;
  --card: rgba(255,255,255,.88);
  --text:#101828;
  --muted:#667085;
  --border: rgba(229,231,235,.9);
  --shadow: 0 12px 34px rgba(16,24,40,.10);

  --green:#22c55e;
  --greenDark:#16a34a;

  --danger:#ef4444;
  --dangerDark:#dc2626;

  --focus:#3b82f6;

  --radius:16px;
  --radiusSm:12px;

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing: border-box; }

/* ✅ FIX: nodig voor footer onderaan */
html, body{
  height: 100%;
}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.4;
}

/* ✅ FIX: parent flex container */
.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap{
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 18px 60px;

  /* ✅ FIX: duwt footer naar beneden */
  flex: 1;
  width: 100%;
}

/* Header */
.topbar{
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  gap: 12px;
}

.logo-slot{
  display:flex;
  align-items:center;
  gap:10px;
  min-height: 44px;
}
.logo-slot img{
  max-height: 38px;
  max-width: 170px;
  object-fit: contain;
  display:block;
}
.logo-placeholder{
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed rgba(102,112,133,.35);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,.65);
}

.title{
  text-align:center;
  font-size: 50px;
  font-weight: 800;
  letter-spacing: .2px;
}

.actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}

.btn-plus{
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(34,197,94,.20);
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn-plus:hover{
  background: var(--greenDark);
  box-shadow: 0 14px 26px rgba(34,197,94,.24);
}
.btn-plus:active{ transform: scale(.98); }

/* ✅ NIEUW: Info knop */
.btn-info{
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: rgba(59,130,246,.95);
  color: white;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(59,130,246,.20);
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn-info:hover{
  background: rgba(37,99,235,.95);
  box-shadow: 0 14px 26px rgba(59,130,246,.24);
}
.btn-info:active{ transform: scale(.98); }

/* Content card */
.content{
  margin-top: 16px;
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.hint{
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

/* Table */
.table-wrap{
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.70);
}

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: transparent;
}

thead th{
  text-align:left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(250,250,250,.85);
  border-bottom: 1px solid var(--border);
  padding: 12px 12px;
  white-space: nowrap;
}

tbody td{
  border-bottom: 1px solid rgba(229,231,235,.75);
  padding: 12px 12px;
  vertical-align: middle;
}

tbody tr:hover{
  background: rgba(255,255,255,.55);
}

.amount-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.9);
  font-weight: 700;
}

.delivery-input{
  width: 100%;
  min-width: 180px;
  padding: 10px 10px;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 12px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background: rgba(255,255,255,.92);
}
.delivery-input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}

.checkcell{
  text-align:center;
  width: 110px;
}
.checkcell input[type="checkbox"]{
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.th-actions{
  text-align:right;
}

.row-actions{
  display:flex;
  justify-content:flex-end;
}

/* Rode kruis knop (actie) */
.btn-x{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.30);
  background: rgba(255,255,255,.85);
  color: var(--danger);
  cursor: pointer;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease, transform .08s ease, border-color .15s ease;
  font-size: 18px;
  line-height: 1;
}
.btn-x:hover{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.45);
  color: var(--dangerDark);
}
.btn-x:active{ transform: scale(.98); }

/* Modal */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(16,24,40,.50);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal{
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(229,231,235,.85);
  background: rgba(252,252,253,.9);
}

.modal-title{
  font-weight: 800;
}

.modal-close{
  border: 1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.92);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.modal-body{
  padding: 16px;
  display: grid;
  gap: 12px;
}

label{
  font-size: 13px;
  color: var(--muted);
  display:block;
  margin-bottom: 6px;
}

.text-input{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background: rgba(255,255,255,.95);
}
.text-input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}

.amount-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amount-btn{
  border: 1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.amount-btn:hover{
  border-color: rgba(34,197,94,.6);
  background: rgba(34,197,94,.06);
}
.amount-btn:active{
  transform: scale(.99);
}

.error{
  display:none;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
}

.footer-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ✅ NIEUW: Info tabel styling */
.info-table-wrap{
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.75);
}

.info-table{
  width: 100%;
  border-collapse: collapse;
  min-width: unset; /* voor modal */
}

.info-table th{
  text-align:left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(250,250,250,.85);
  border-bottom: 1px solid var(--border);
  padding: 12px 12px;
  white-space: nowrap;
}

.info-table td{
  border-bottom: 1px solid rgba(229,231,235,.75);
  padding: 12px 12px;
  vertical-align: top;
}

.info-table tr:last-child td{
  border-bottom: none;
}

@media (max-width: 700px){
  .topbar{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title actions"
      "logo  logo";
  }
  .logo-slot{ grid-area: logo; justify-content:center; }
  .title{ grid-area: title; text-align:left; font-size: 26px; }
  .actions{ grid-area: actions; }
}

/* ✅ Footer sticky onderaan (door flex layout) */
.footer{
  padding: 18px 16px;
  background: rgba(2,6,23,.55);
  border-top: 1px solid rgba(148,163,184,.18);
  backdrop-filter: blur(8px);
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: rgba(156,163,175,.9);
  letter-spacing: .4px;
}
