*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  padding:28px;
  font-family:Arial,sans-serif;
  color:#17324d;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,213,79,.55), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255,107,107,.35), transparent 30%),
    linear-gradient(135deg,#6ee7ff 0%,#7dd3fc 35%,#fde68a 72%,#fb923c 100%);
}
.app{
  width:100%;
  max-width:1180px;
  margin:auto;
  padding:24px;
  border-radius:28px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 24px 60px rgba(15,76,129,.25);
  backdrop-filter:blur(14px);
}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px}
h1,h2,h3{margin-top:0}
h1{font-size:42px;color:#0f4c81;text-shadow:0 2px 0 rgba(255,255,255,.45)}
.card{
  margin-top:18px;
  padding:22px;
  border-radius:22px;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(255,255,255,.75);
}
.hidden{display:none!important}
input,select,button,textarea{
  width:100%;
  padding:13px;
  margin:7px 0;
  border:none;
  border-radius:14px;
  font-size:16px;
  font-family:Arial,sans-serif;
}
textarea{min-height:120px;resize:vertical}
button{
  background:linear-gradient(135deg,#06b6d4,#2563eb);
  color:white;
  font-weight:bold;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,99,235,.2);
}
button:hover{filter:brightness(.96)}
.success{background:linear-gradient(135deg,#22c55e,#14b8a6)}
.danger{background:linear-gradient(135deg,#fb7185,#ef4444)}
.ghost{background:rgba(15,76,129,.15);color:#0f4c81;box-shadow:none}
.tabs{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
  margin:14px 0 18px;
}
.user-tabs{grid-template-columns:1fr 1fr}
.tabs button{background:rgba(255,255,255,.65);color:#0f4c81;box-shadow:none}
.tabs button.active{background:linear-gradient(135deg,#f97316,#facc15);color:white}
.admin-tab,.user-tab{display:none}
.admin-tab.active,.user-tab.active{display:block}
.totals,.products,.grid2{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin:16px 0;
}
.grid2{grid-template-columns:repeat(2,1fr)}
.product,.totalbox,.profile-box,.cart-box,.settings-box,.editbox{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.85);
  border-radius:20px;
  padding:18px;
  box-shadow:0 12px 28px rgba(15,76,129,.12);
}
.product{text-align:center;position:relative;transition:.15s;cursor:pointer}
.product:hover{transform:translateY(-3px)}
.product:active{transform:scale(.98)}
.product::after{content:"☀️";position:absolute;right:14px;top:12px;opacity:.22;font-size:28px}
.totalbox{text-align:center}
.totalbox strong{display:block;font-size:27px;margin-top:8px}
.count{font-size:42px;font-weight:bold;margin:10px 0}
.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.category-title{
  margin:26px 0 10px;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(255,237,163,.85));
  color:#0f4c81;
}
.stockline{color:#40576d;font-size:14px;line-height:1.45}
.cart-row{
  display:grid;
  grid-template-columns:1fr 42px 42px 42px;
  gap:8px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid rgba(15,76,129,.12);
}
.cart-row button{padding:8px;margin:0}
.empty-cart,.muted{color:rgba(23,50,77,.68)}
.table-wrap{overflow-x:auto;width:100%}
table{
  width:100%;
  min-width:860px;
  border-collapse:collapse;
  background:white;
  color:#17324d;
  border-radius:14px;
  overflow:hidden;
  margin-top:10px;
}
th,td{padding:10px;border-bottom:1px solid #dde7ef;text-align:left;vertical-align:top}
th{background:linear-gradient(135deg,#06b6d4,#0ea5e9);color:white}
td input,td select{padding:8px;margin:0;font-size:14px}
.request-item{background:white;padding:14px;border-radius:14px;margin:10px 0}
.request-actions,.action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.switch-row{display:flex;align-items:center;gap:12px;background:rgba(0,0,0,.05);padding:12px;border-radius:14px}
.switch-row input{width:22px;height:22px;margin:0}
.big-icon{font-size:58px;text-align:center;animation:bounce 2s infinite}
.maintenance{text-align:center}
.loader{display:flex;justify-content:center;gap:10px;margin:18px 0}
.loader span{width:13px;height:13px;border-radius:50%;background:#0f4c81;display:block;animation:dots 1.2s infinite}
.loader span:nth-child(2){animation-delay:.15s}.loader span:nth-child(3){animation-delay:.3s}
.msg{min-height:22px;font-weight:bold}
.edit-item{display:grid;grid-template-columns:1fr 120px;gap:10px;align-items:center;margin:8px 0}
@keyframes bounce{50%{transform:translateY(-8px) rotate(3deg)}}
@keyframes dots{0%,80%,100%{transform:scale(.65);opacity:.5}40%{transform:scale(1);opacity:1}}
@media(max-width:900px){
  body{padding:16px}
  .tabs{grid-template-columns:repeat(2,1fr)}
  .totals,.products{grid-template-columns:repeat(2,1fr)}
  .grid2{grid-template-columns:1fr}
}
@media(max-width:600px){
  body{padding:10px}
  .app{padding:14px;border-radius:20px}
  .topbar{display:block}
  h1{font-size:30px;text-align:center}
  .tabs,.user-tabs,.totals,.products{grid-template-columns:1fr}
  table{font-size:14px;min-width:900px}
}


.tap-hint {
  margin: 10px 0 0;
  font-weight: bold;
  color: #0f4c81;
  background: rgba(6,182,212,.12);
  border-radius: 999px;
  padding: 8px 12px;
}


/* V12 PWA voorraad */
.alert-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.stock-alert {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px;
  font-weight: bold;
}

.stock-alert.danger-stock {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.stock-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 14px;
  font-weight: bold;
}

.product.out-of-stock {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.2);
}

.product.out-of-stock::before {
  content: "OP";
  position: absolute;
  left: 12px;
  top: 12px;
  background: #ef4444;
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 12px;
  z-index: 2;
}

.product.low-stock {
  outline: 3px solid rgba(249, 115, 22, .5);
}

.stock-warning {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: bold;
  font-size: 13px;
}

.stock-soldout {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #991b1b;
  font-weight: bold;
  font-size: 13px;
}

.install-tip {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  padding: 14px;
  margin: 14px 0;
  color: #17324d;
}


/* V14 admin meldingen */
.site-notice {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0 4px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  color: #9a3412;
  box-shadow: 0 12px 28px rgba(154,52,18,.14);
}

.site-notice.error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
  color: #991b1b;
}

.site-notice.info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.site-notice-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  font-size: 28px;
}

.site-notice p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}

@media(max-width:700px){
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .site-notice {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-notice-icon {
    margin: auto;
  }
}


/* V19 nieuw/update/onderhoud */
.new-badge {
  display: inline-block;
  margin: 8px 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: white;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .5px;
  box-shadow: 0 8px 18px rgba(249,115,22,.25);
}
.update-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at top left, rgba(250,204,21,.42), transparent 35%),
              radial-gradient(circle at bottom right, rgba(6,182,212,.36), transparent 35%),
              rgba(15,23,42,.78);
  backdrop-filter: blur(10px);
}
.update-card {
  width: 100%;
  max-width: 640px;
  text-align: center;
  background: rgba(255,255,255,.97);
  color: #17324d;
  border-radius: 30px;
  padding: 38px 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.9);
}
.update-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  font-size: 46px;
  background: linear-gradient(135deg, #facc15, #fb923c);
}
.update-card h2 {
  font-size: clamp(28px, 5vw, 46px);
  color: #0f4c81;
}
.update-card p {
  font-size: 18px;
  line-height: 1.55;
  white-space: pre-line;
}
