/* Elzanne Karg Orders — one stylesheet for customer + admin. Mobile first. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:17px;line-height:1.45;color:#1d2420;background:#f5f2ea}
a{color:var(--brand)}
h1{font-size:1.6rem;margin:.2em 0 .3em;line-height:1.2}
h2{font-size:1.15rem;margin:1.2em 0 .5em}
small,.small{font-size:.85rem}
.muted{color:#6b726e}

.top{background:var(--brand);color:#fff;padding:14px 16px calc(14px);padding-top:max(14px,env(safe-area-inset-top))}
.top .brand{font-weight:700;font-size:1.15rem;letter-spacing:.2px}
.top .tag{opacity:.85;font-size:.9rem}

.wrap{max-width:560px;margin:0 auto;padding:16px 16px 40px}
.wrap.narrow{max-width:420px}
.wrap.wide{max-width:980px}
.lead{margin:.2em 0}
.notice{display:inline-block;background:#fff4dc;border-left:4px solid var(--accent);padding:6px 10px;border-radius:6px;font-weight:600;margin:.6em 0 1em}
.foot{text-align:center;color:#6b726e;margin-top:24px}

.card{background:#fff;border-radius:14px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.06),0 6px 20px rgba(0,0,0,.04);margin-bottom:14px}

label{display:block;font-weight:600;margin:12px 0 6px}
input,select,textarea{font:inherit;width:100%;padding:12px;border:1.5px solid #cfd4cf;border-radius:10px;background:#fff;color:inherit}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 20%,transparent)}
fieldset{border:0;padding:0;margin:16px 0 0}
legend{font-weight:700;margin-bottom:6px;padding:0}

.phone{display:flex;align-items:stretch}
.phone span{display:flex;align-items:center;padding:0 12px;background:#eef0ec;border:1.5px solid #cfd4cf;border-right:0;border-radius:10px 0 0 10px;font-weight:600}
.phone input{border-radius:0 10px 10px 0}

.choice{display:flex;gap:12px;align-items:flex-start;font-weight:400;border:1.5px solid #e1e4df;border-radius:10px;padding:12px;margin:8px 0;cursor:pointer}
.choice input{width:22px;height:22px;margin:2px 0 0;flex:none;accent-color:var(--brand)}
.choice em{display:block;font-style:normal;color:#6b726e;font-size:.9rem}
.choice:has(input:checked){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,#fff)}

.pickup .other-box{display:none;margin:-2px 0 8px;padding:4px 12px 12px;border-left:3px solid var(--brand)}
.pickup .other-box label{margin-top:4px}
.pickup:has(input[value=other]:checked) .other-box{display:block}
.product{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eef0ec}
.product:last-child{border-bottom:0}
.pinfo span{display:block;color:#6b726e;font-size:.9rem}
.stepper{display:flex;align-items:center;flex:none}
.stepper button{width:44px;height:44px;border-radius:50%;border:0;background:var(--brand);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
.stepper input{width:54px;text-align:center;border:0;font-size:1.25rem;font-weight:700;padding:6px 0;-moz-appearance:textfield}
.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none}

.totalbar{margin:18px 0 12px;padding:12px;border-radius:10px;background:#f5f2ea;text-align:center;font-size:1.1rem}
.totalbar strong{font-size:1.35rem}

.btn{display:inline-block;width:100%;text-align:center;padding:14px 18px;border:0;border-radius:12px;background:var(--brand);color:#fff;font:inherit;font-weight:700;font-size:1.05rem;text-decoration:none;cursor:pointer;margin-top:8px}
.btn:disabled{opacity:.6}
.btn.ghost{background:#fff;color:var(--brand);border:1.5px solid var(--brand)}
.privacy{display:block;text-align:center;color:#6b726e;margin-top:10px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.errors{background:#fdecec;color:#8a1f1f;border-radius:10px;padding:10px 12px;margin:0 0 12px}
.errors div+div{margin-top:4px}
.okmsg{background:#e6f4ea;color:#1e5b2e;border-radius:10px;padding:10px 12px;margin-bottom:12px}
.closed h2{margin-top:0}
h2.first{margin-top:0}
.money-in input{font-size:1.2rem;font-weight:700}

.done{text-align:center}
.done .tick{width:64px;height:64px;border-radius:50%;background:var(--brand);color:#fff;font-size:2rem;display:flex;align-items:center;justify-content:center;margin:4px auto 8px}
.lines{list-style:none;padding:0;margin:12px 0;text-align:left}
.lines li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #e1e4df}
.lines li em{font-style:normal;color:#6b726e;font-size:.85rem}
.lines li.sum{font-weight:700;border-bottom:0}

/* ---------- Admin ---------- */
.tabs{display:flex;gap:4px;overflow-x:auto;background:#fff;border-bottom:1px solid #e1e4df;padding:0 8px;position:sticky;top:0;z-index:5}
.tabs a{padding:12px 10px;font-size:.95rem;text-decoration:none;color:#3b433f;font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}
.tabs a.on{color:var(--brand);border-bottom-color:var(--brand)}
.tabs a.out{margin-left:auto;color:#8a1f1f}
.pill{display:inline-block;padding:1px 8px;border-radius:99px;font-size:.8rem;font-weight:700}
.pill.ok{background:#d9f2df;color:#1e5b2e}.pill.off{background:#fde2e2;color:#8a1f1f}

.filters label{margin-top:6px}
.filters .row{display:flex;gap:10px}
.filters .row>label{flex:1;min-width:0}
.filters input,.filters select{min-width:0;max-width:100%}
input[type=date]{-webkit-appearance:none;appearance:none;min-height:48px;padding:10px 8px}
.filters .actions{flex-wrap:wrap}
.filters .actions .btn{flex:1 1 140px;width:auto}

.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.stat{background:#fff;border-radius:12px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.stat span{display:block;font-size:.8rem;color:#6b726e}
.stat strong{font-size:1.35rem}

.orders{display:grid;gap:12px}
@media (min-width:760px){.orders{grid-template-columns:1fr 1fr}}
.order{background:#fff;border-radius:14px;padding:14px;box-shadow:0 1px 3px rgba(0,0,0,.06);border-left:5px solid #cfd4cf}
.order.st-new{border-left-color:var(--accent)}
.order.st-paid{border-left-color:#3b82c4}
.order.st-packed{border-left-color:#8a5cc4}
.order.st-collected{border-left-color:#2e8b4e}
.order.st-cancelled{opacity:.6;border-left-color:#c44}
.ohead{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.9rem}
.badge{margin-left:auto;padding:2px 10px;border-radius:99px;font-size:.78rem;font-weight:700;background:#eef0ec}
.badge.st-new{background:#fff1cf;color:#7a5600}.badge.st-paid{background:#dcebf8;color:#1d4f7a}
.badge.st-packed{background:#ece2f8;color:#53338a}.badge.st-collected{background:#d9f2df;color:#1e5b2e}.badge.st-cancelled{background:#fde2e2;color:#8a1f1f}
.who{margin-top:6px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.wa{font-size:.9rem;font-weight:600;color:#1f8f4e;text-decoration:none}
.warn{font-size:.75rem;background:#fff1cf;color:#7a5600;padding:1px 8px;border-radius:99px;font-weight:700}
.where{font-size:.92rem;color:#3b433f;margin-top:2px}
.status-form{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chip{border:1.5px solid #cfd4cf;background:#fff;border-radius:99px;padding:7px 12px;font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;color:#3b433f}
.chip.danger{color:#8a1f1f;border-color:#f0c2c2}

.progress{text-align:center;font-size:1.05rem;margin:6px 0 0}
.checklist{display:grid;gap:8px}
.tick-row{display:flex;gap:12px;align-items:center;background:#fff;border-radius:12px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.tick-row.done{opacity:.55}
.tick-row.done strong{text-decoration:line-through}
.tickbox{flex:none;width:48px;height:48px;border-radius:12px;border:2.5px solid var(--brand);background:#fff;font-size:1.6rem;color:#fff;cursor:pointer}
.tick-row.done .tickbox{background:var(--brand)}
.qty{display:inline-block;background:#f5f2ea;border-radius:6px;padding:1px 8px;margin:4px 6px 0 0;font-weight:600;font-size:.9rem}

.links{list-style:none;padding:0;margin:0}
.links li{margin:10px 0}
.links span{display:block;font-weight:600;font-size:.9rem;margin-bottom:4px}
.links input{font-size:.85rem;padding:9px}
