* { box-sizing: border-box; }

:root {
  /* Hulpvariabele om env(safe-area-inset-top) via JS leesbaar te maken */
  --_env-sat: env(safe-area-inset-top, 0px);
  /* --sat wordt overschreven door app.js met de werkelijke waarde */
  --sat: env(safe-area-inset-top, 0px);
  --ph-red: #EF4444;
  --ph-red-dark: #dc2626;
  --ph-orange: #F97316;
  --ph-teal: #14B8A6;
  --ph-teal-soft: #e8fbfb;
  --ph-navy: #1E2D5A;
  --ph-navy-2: #172554;
  --ph-purple: #7c3aed;

  /* QuickScan knop gradients — gebaseerd op officiële branding */
  --btn-aanvullen-start: #2E9E40;
  --btn-aanvullen-end:   #48C563;
  --btn-verbruikt-start: var(--ph-red-dark);
  --btn-verbruikt-end:   var(--ph-red);
  --btn-lijstje-start:   var(--ph-orange);
  --btn-lijstje-end:     #F47B20;
  --btn-voorraad-start:  var(--ph-purple);
  --btn-voorraad-end:    #9461f5;
  --ph-bg: #f7f9fc;
  --ph-card: #ffffff;
  --ph-line: #e7ecf3;
  --ph-muted: #64748b;
  --ph-soft-red: #fff1f1;
  --ph-soft-orange: #fff7ed;
  --radius: 18px;
  --shadow: 0 14px 42px rgba(7, 25, 54, 0.08);
}

html {
  min-height: 100%;
  /* Achtergrond op html zodat safe-area zones meekleuren op edge-to-edge Android */
  background:
    radial-gradient(circle at 10% -10%, rgba(255,59,59,0.14), transparent 34%),
    radial-gradient(circle at 90% 0%,  rgba(16,168,168,0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--ph-bg) 42%, #eef3f8 100%);
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  min-height: 100dvh;
  background: transparent;
  color: var(--ph-navy);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.container {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* Voorkomt horizontale scroll op mobiel */
  /* --sat wordt via JS gezet op basis van werkelijke statusbalk hoogte (Android+iOS) */
  padding-top: calc(var(--sat, 0px) + 14px);
  padding-right: 14px;
  padding-bottom: 14px;
  padding-left: 14px;
}

/* App header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.header h1 { margin: 0; font-size: 25px; letter-spacing: -0.04em; color: var(--ph-navy); line-height: 1.05; }

/* PakHuis twee-kleur logo in header */
.app-brand-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 2px;
}

.brand-pak  { color: var(--ph-navy); }
.brand-huis { color: var(--ph-red); }

.header h1 { font-size: 18px !important; font-weight: 600 !important; color: var(--ph-muted) !important; letter-spacing: -0.02em; }
.header p { margin: 5px 0 0; font-size: 13px; color: var(--ph-muted); line-height: 1.35; }

.app-header {
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84)),
    radial-gradient(circle at 10% 0%, rgba(255,59,59,0.16), transparent 38%);
  border: 1px solid rgba(231,236,243,0.95);
  box-shadow: var(--shadow);
}

.app-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ph-red);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.app-header-icon {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  border: 1px solid var(--ph-line);
  background: #fff;
  box-shadow: 0 14px 30px rgba(255,59,59,0.12);
  padding: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Status bar */
.status-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ph-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(7,25,54,0.05);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: var(--ph-muted);
}

.status-info strong { color: var(--ph-navy); }
.status-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online  { background: var(--ph-teal); box-shadow: 0 0 0 3px rgba(16,168,168,0.18); }
.status-dot.offline { background: var(--ph-red); box-shadow: 0 0 0 3px rgba(255,59,59,0.16); }

.version-badge {
  font-size: 11px;
  color: var(--ph-muted);
  background: #f2f5f9;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}

.low-stock-badge {
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
  background: var(--ph-soft-orange);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid #fed7aa;
  font-family: inherit;
}
.low-stock-badge:hover { background: #ffedd5; }

.btn-small {
  font-size: 12px;
  padding: 6px 9px;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  background: #fff;
  color: var(--ph-navy);
  border: 1px solid var(--ph-line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
}

/* Cards */
.card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--ph-line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 12px 32px rgba(7,25,54,0.06);
  width: 100%;
}
.card h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: -0.02em; color: var(--ph-navy); }
.card h3 { color: var(--ph-navy); }
.form-card form { display: grid; gap: 8px; }

/* Inklapbaar */
.collapsible-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.collapsible-header h2 { margin: 0; }
.collapsible-body.hidden { display: none; }
.toggle-icon, #releaseIcon { color: var(--ph-red) !important; }

/* Inputs & buttons */
input, button, .nav-btn, select {
  font-size: 16px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid #d8e0ea;
  font-family: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
input, select {
  background: #fff;
  color: var(--ph-navy);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Checkbox/radio zijn controls, geen full-width tekstvelden.
   Zonder deze override erft een checkbox width:100% van de globale inputregel. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 4px;
  appearance: auto;
  -webkit-appearance: auto;
  flex: 0 0 auto;
}
input::placeholder { color: #94a3b8; }
input:focus, select:focus {
  border-color: rgba(255,59,59,0.6);
  box-shadow: 0 0 0 4px rgba(255,59,59,0.10);
}

button, .nav-btn {
  cursor: pointer;
  font-weight: 800;
  background: #fff;
  color: var(--ph-navy);
  border-color: #d8e0ea;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
  text-align: center;
}
button:active { opacity: 0.78; transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary, .nav-btn, .cart-btn, .barcode-nav .btn-next {
  background: linear-gradient(135deg, var(--ph-red), var(--ph-orange)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 26px rgba(255,59,59,0.18);
}
.btn-primary:active, .nav-btn:active, .cart-btn:active { background: var(--ph-red-dark) !important; }

.top-actions { display: flex; gap: 9px; }
.top-actions .nav-btn { text-align: center; text-decoration: none; display: block; }
.action-stack { flex-direction: column; }
.action-stack .nav-btn, .action-stack button { width: 100%; box-sizing: border-box; }

#pasteBtn,
#minLookupBtn,
#plusLookupBtn,
.actions button:not(.btn-delete) {
  background: #fff;
  color: var(--ph-navy);
  border-color: var(--ph-line);
}
#plusLookupBtn,
.actions button[data-action="plus"] { color: var(--ph-teal); border-color: rgba(16,168,168,.28); background: var(--ph-teal-soft); }
#minLookupBtn,
.actions button[data-action="minus"] { color: var(--ph-red); border-color: rgba(255,59,59,.25); background: var(--ph-soft-red); }

/* Filters */
.category-filters { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.category-filters.visible { display: flex; }
.cat-btn {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--ph-line);
  background: #fff;
  color: var(--ph-muted);
  cursor: pointer;
  font-weight: 800;
  width: auto;
  white-space: nowrap;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cat-btn.active {
  background: var(--ph-navy) !important;
  color: #fff !important;
  border-color: var(--ph-navy) !important;
}

.sort-bar { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.sort-btn {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--ph-line);
  background: #fff;
  color: var(--ph-muted);
  cursor: pointer;
  width: auto;
  font-family: inherit;
  white-space: nowrap;
  font-weight: 800;
}
.sort-btn.active {
  background: var(--ph-soft-red) !important;
  color: var(--ph-red) !important;
  border-color: rgba(255,59,59,0.25) !important;
  font-weight: 900;
}

/* Productlijst */
.product-list { display: grid; gap: 9px; margin-top: 4px; }
.product-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--ph-line);
  border-radius: 16px;
  padding: 10px 11px;
  gap: 9px;
  width: 100%;
  min-width: 0;
  background: #fff;
  transition: border-color 0.15s, box-shadow .15s;
}
.product-card:active { box-shadow: 0 10px 24px rgba(7,25,54,.08); }
.product-info { flex: 1; min-width: 0; overflow: hidden; cursor: pointer; }
.product-info strong { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 12px; color: var(--ph-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qty { min-width: 34px; text-align: center; font-size: 17px; font-weight: 900; }
.qty.out  { color: var(--ph-red); }
.qty.low  { color: var(--ph-orange); }
.qty.ok   { color: var(--ph-teal); }

.actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.actions button { width: 36px; height: 36px; min-width: 36px; padding: 0; font-size: 20px; font-weight: 900; line-height: 1; border-radius: 12px; }
.btn-delete { background: transparent; border: none; color: #c7d0dd; font-size: 16px; width: 30px !important; height: 30px !important; min-width: 30px !important; padding: 0; cursor: pointer; border-radius: 10px; }
.btn-delete:hover, .btn-delete:active { color: var(--ph-red); background: var(--ph-soft-red); }
#searchInput { margin-bottom: 10px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ph-red);
  background: var(--ph-soft-red);
  border: 1px solid rgba(255,59,59,0.22);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  width: auto;
}
.back-btn:active { background: #ffe4e4; }

/* Shopping page */
.shop-card { border-radius: 16px !important; border-color: var(--ph-line) !important; }
.shop-card.selected { border-color: rgba(255,59,59,.42) !important; background: var(--ph-soft-red) !important; }
.shop-card.selected .shop-check { background: var(--ph-red) !important; border-color: var(--ph-red) !important; color: #fff !important; }
.buy-advice { background: var(--ph-soft-orange) !important; color: #9a3412 !important; }
.cart-section { position: sticky; bottom: 10px; }
.barcode-overlay { background: rgba(7,25,54,0.84) !important; }
.barcode-card { border-radius: 22px !important; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--ph-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

/* Stats */
.stat-box { background: #fff !important; border: 1px solid var(--ph-line) !important; border-radius: 16px !important; box-shadow: 0 8px 22px rgba(7,25,54,.04); }
.stat-box .num { color: var(--ph-navy); }
.stat-box.red .num { color: var(--ph-red) !important; }
.stat-box.orange .num { color: var(--ph-orange) !important; }
.stat-box.green .num { color: var(--ph-teal) !important; }
.btn-danger { background: var(--ph-soft-red) !important; color: var(--ph-red) !important; border-color: rgba(255,59,59,.26) !important; }
.log-entry { background: var(--ph-soft-red) !important; border-color: rgba(255,59,59,.22) !important; }
.log-entry .log-ctx { color: var(--ph-red) !important; }

/* Readonly */
.badge { display: inline-block; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #eef2f7; font-weight: 800; }
.qty-low { background: var(--ph-soft-red) !important; color: var(--ph-red) !important; }
.qty-ok { background: var(--ph-teal-soft) !important; color: var(--ph-teal) !important; }
.category-header { font-size: 12px; font-weight: 900; color: var(--ph-muted); margin: 18px 0 7px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Offline Shell */
.offline-banner { background: var(--ph-soft-orange); color: #9a3412; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; font-weight: 800; line-height: 1.35; }
body.is-offline .form-card, body.is-offline #lookupBtn, body.is-offline #pasteBtn, body.is-offline .btn-delete, body.is-offline button[data-action="plus"], body.is-offline button[data-action="minus"] { opacity: 0.55; }
body.is-offline button[data-action="plus"], body.is-offline button[data-action="minus"], body.is-offline .btn-delete { cursor: not-allowed; }



/* ── Houdbaarheidsdatum ─────────────────────────────────────────────────── */
.expiry-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.expiry-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ph-muted);
  display: block;
}
.expiry-input {
  width: 100%;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--ph-line);
  background: #fff;
  color: var(--ph-navy);
  font-family: inherit;
  outline: none;
}
.expiry-input:focus {
  border-color: rgba(239,68,68,.5);
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}
.lookup-expiry-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ph-line);
}
.expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}
.expiry-ok    { background: rgba(20,184,166,.1);  color: #0d9488; }
.expiry-soon  { background: rgba(249,115,22,.12); color: #d97706; }
.expiry-past  { background: rgba(239,68,68,.12);  color: #dc2626; }

@media (max-width: 480px) {
  .container {
    padding-top: calc(var(--sat, 0px) + 10px);
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
  }
  .card { padding: 12px; border-radius: 16px; }
  .header h1 { font-size: 22px; }
  .app-header { padding: 16px; }
  .app-header-icon { width: 58px; height: 58px; }
  .actions button { width: 38px; height: 38px; min-width: 38px; }
}


/* PakHuis v1.9.0.0 clean rebuild patch */
img { max-width:100%; }
.brand-strip { height:10px; border-radius:999px; background:linear-gradient(90deg,var(--ph-red),var(--ph-orange),var(--ph-teal),var(--ph-navy),var(--ph-purple)); }
.nav-btn.secondary-action { background:var(--ph-navy)!important; border-color:var(--ph-navy)!important; }
#lookupBtn { background:linear-gradient(135deg,var(--ph-red),var(--ph-orange))!important; color:#fff!important; }


/* v1.9.0.0 PakHuis branding fix
   - index hero gebruikt het echte image1.png-logo
   - login gebruikt dezelfde PNG, zodat logo en verhoudingen identiek zijn
   - oude dubbele .app-brand-title styling wordt geneutraliseerd */
.app-hero {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.app-hero-logo-wrap {
  width: 100%;
  background: #fff;
}

.app-hero-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 24px 24px 0 0;
}

.app-hero-subtitle {
  margin: 0 !important;
  padding: 12px 16px 16px;
  font-size: 13px;
  color: var(--ph-muted);
  line-height: 1.35;
  background: #fff;
}

@media (max-width: 480px) {
  .app-hero-logo {
    max-height: 220px;
  }

  .app-hero-subtitle {
    padding: 10px 14px 14px;
  }
}


/* PakHuis v1.9.0.0 — clean app dashboard */
:root {
  --ph-red: #EF4444;
  --ph-red-dark: #dc2626;
  --ph-orange: #F97316;
  --ph-teal: #14B8A6;
  --ph-navy: #1E2D5A;
  --ph-navy-2: #172554;
  --ph-purple: #7C3AED;
  --ph-bg: #F7F9FC;
  --ph-line: #E8EEF6;
  --ph-muted: #667085;
  --ph-soft-red: #FEF2F2;
  --ph-soft-orange: #FFF7ED;
  --ph-soft-teal: #F0FDFA;
  --ph-soft-purple: #F5F3FF;
}

.app-dashboard {
  max-width: 760px;
  padding-top: 12px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
  padding: 2px 2px 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ph-navy) !important;
  font-weight: 950;
}

.dashboard-hero p {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--ph-navy-2);
  opacity: .82;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.action-card {
  min-height: 92px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(232, 238, 246, .95);
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: 0 12px 28px rgba(30, 45, 90, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ph-navy) !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
}

.action-card:active {
  transform: translateY(1px);
  opacity: .86;
}

.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 950;
}

.action-scan .action-icon { color: var(--ph-red); background: var(--ph-soft-red); }
.action-add .action-icon { color: var(--ph-teal); background: var(--ph-soft-teal); }
.action-list .action-icon { color: var(--ph-purple); background: var(--ph-soft-purple); }
.action-cats .action-icon { color: var(--ph-orange); background: var(--ph-soft-orange); }

.action-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-card {
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(232,238,246,.95);
  box-shadow: 0 14px 36px rgba(30,45,90,.065);
  overflow: hidden; /* Voorkomt dat lange productnamen buiten de hero lopen */
  min-width: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-row h2,
.dashboard-card > h2,
.form-card h2 {
  margin: 0;
  color: var(--ph-navy);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.text-link-btn {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: var(--ph-muted) !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  padding: 5px 0;
  width: auto;
  box-shadow: none !important;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border-radius: 17px;
  border: 1px solid rgba(232,238,246,.72);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.overview-tile:active { opacity: .82; transform: translateY(1px); }

.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 18px;
}

.tile-title {
  font-size: 13px;
  font-weight: 950;
  color: var(--ph-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ph-muted);
}

.tile-red .tile-icon { color: var(--ph-red); background: var(--ph-soft-red); }
.tile-teal .tile-icon { color: var(--ph-teal); background: var(--ph-soft-teal); }
.tile-orange .tile-icon { color: var(--ph-orange); background: var(--ph-soft-orange); }
.tile-purple .tile-icon { color: var(--ph-purple); background: var(--ph-soft-purple); }

.low-preview-list {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.low-preview-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(232,238,246,.75);
}
.low-preview-item:last-child { border-bottom: 0; }
.low-thumb {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ph-soft-orange);
  color: var(--ph-orange);
  font-size: 18px;
}
.low-name {
  font-weight: 900;
  color: var(--ph-navy);
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.low-meta { color: var(--ph-muted); font-size: 12px; margin-top: 2px; }
.low-bar {
  height: 5px;
  border-radius: 999px;
  background: #EEF2F7;
  overflow: hidden;
}
.low-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ph-teal);
  min-width: 8px;
}

/* Softer action buttons across index */
.btn-primary, .nav-btn, .cart-btn, .barcode-nav .btn-next {
  background: var(--ph-soft-red) !important;
  color: var(--ph-red) !important;
  border-color: rgba(239,68,68,.16) !important;
  box-shadow: none !important;
}
#lookupBtn {
  background: var(--ph-soft-orange) !important;
  color: #9a3412 !important;
  border-color: rgba(249,115,22,.18) !important;
}

.product-card {
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 20px rgba(30,45,90,.035);
}

@media (max-width: 480px) {
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .action-card { min-height: 86px; padding: 10px 5px; border-radius: 16px; }
  .action-icon { width: 34px; height: 34px; border-radius: 12px; font-size: 19px; }
  .action-label { font-size: 11px; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .overview-tile { padding: 10px; min-height: 68px; }
  .low-preview-item { grid-template-columns: 34px minmax(0,1fr) 84px; }
}


/* PakHuis v1.9.0.0 — index polish */
#overviewCard {
  display: none !important;
}

.quantity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}

.suggestion-chip {
  width: auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 45, 90, .10);
  background: #F8FAFC;
  color: var(--ph-navy);
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.suggestion-chip:active {
  transform: translateY(1px);
  opacity: .82;
}

#newProductCard .quantity-row input {
  min-width: 0;
}

@media (max-width: 360px) {
  .quantity-row {
    grid-template-columns: 1fr;
  }
}

/* PakHuis v1.9.0.0 — minimum stepper + boodschappen topbar */
.lookup-product-card {
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.lookup-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.lookup-control-box {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  padding: 10px;
}

.lookup-control-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ph-muted);
  margin-bottom: 8px;
}

.lookup-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lookup-stepper button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 21px;
  font-weight: 900;
  border-radius: 12px;
}

.lookup-stepper button:first-child {
  color: var(--ph-red);
  background: #fff5f5;
  border-color: rgba(239,68,68,.25);
}

.lookup-stepper button:last-child {
  color: var(--ph-teal);
  background: #f0fdfa;
  border-color: rgba(20,184,166,.25);
}

.lookup-stepper-value {
  flex: 1;
  min-width: 28px;
  text-align: center;
  font-size: 23px;
  font-weight: 900;
  color: var(--ph-navy);
}

.lookup-message {
  font-size: 13px;
  color: #555;
  min-height: 18px;
  margin: 8px 0 0;
}

.page-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-title-block {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.page-title-block h1 {
  margin: 0;
  color: var(--ph-navy);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.page-title-block p {
  margin: 4px 0 0;
  color: var(--ph-muted);
  font-size: 12px;
}

.page-topbar .back-btn,
.page-topbar-spacer {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.page-topbar .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  color: var(--ph-navy);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(30,45,90,.06);
}

@media (max-width: 420px) {
  .lookup-control-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.9.0.3 — boodschappen topbar clean classes */
.shopping-topbar { display:flex; align-items:center; gap:12px; margin:0 0 12px; padding:14px 16px; border:1px solid rgba(232,238,246,.95); border-radius:22px; background:rgba(255,255,255,.88); box-shadow:0 14px 36px rgba(30,45,90,.055); }
.shopping-back-btn { width:44px; height:44px; border-radius:16px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; background:#FEF2F2; border:1px solid rgba(239,68,68,.18); color:#EF4444; text-decoration:none; font-size:22px; font-weight:950; line-height:1; box-shadow:none; }
.shopping-title-block { min-width:0; flex:1 1 auto; text-align:left; }
.shopping-title-block h1 { margin:0; color:#1E2D5A; font-size:clamp(22px,6vw,30px); line-height:1.05; font-weight:950; letter-spacing:-0.045em; }
.shopping-title-block p { margin:6px 0 0; color:#667085; font-size:13px; line-height:1.3; }
.shopping-topbar-icon { width:42px; height:42px; border-radius:15px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 42px; background:#F5F3FF; color:#7C3AED; font-size:20px; }
@media (max-width:420px) { .shopping-topbar { padding:12px; border-radius:20px; } .shopping-back-btn { width:40px; height:40px; flex-basis:40px; border-radius:14px; } .shopping-topbar-icon { display:none; } }
