:root {
  /* Pure Nectar brand, from the logo: black, silver and gold. The logo files are public/assets/logo-*.webp. */
  --bg: #F6F4EF; --card: #FFFFFF; --ink: #1F1C1D; --mute: #66625D; --line: #E3DFD6;
  --brand: #231F20; --brand-2: #FCF0CC; --gold: #F2A51A; --link: #8C5B00;
  --amber: #B4530A; --amber-2: #FDEBDC; --red: #A63D2F; --red-2: #F8E5E1;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--link); }
h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 24px 0 8px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 6px; }
p.sub { color: var(--mute); margin: 0 0 16px; font-size: 15px; }
.note { font-size: 13px; color: var(--mute); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
.hint { font-size: 12px; color: var(--mute); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #C9CBC2; border-radius: 10px; background: #fff; color: var(--ink); }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; transform: scale(1.2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
textarea { min-height: 64px; resize: vertical; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
.row .narrow { flex: 0 0 34%; }
button, .btn { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 16px; -webkit-tap-highlight-color: transparent; text-decoration: none; display: inline-block; text-align: center; }
.btn { width: 100%; background: var(--brand); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.amber { background: var(--amber); }
.btn.danger { background: var(--red); }
.btn.small { width: auto; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.link { background: none; color: var(--link); padding: 6px 0; font-size: 14px; }
.link.danger { color: var(--red); }
.stack > * + * { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 14px 6px; font-size: 15px; }
.choice.on { border-color: var(--brand); background: var(--brand-2); color: var(--brand); }
.banner { font-size: 14px; background: var(--amber-2); color: #7A3A06; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.banner.red { background: var(--red-2); color: #7A2A1F; }
.banner.green { background: var(--brand-2); color: var(--brand); }
.err { color: var(--red); font-size: 14px; margin-top: 8px; min-height: 1px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--brand-2); color: var(--brand); white-space: nowrap; }
.badge.amber { background: var(--amber-2); color: var(--amber); }
.badge.red { background: var(--red-2); color: var(--red); }
.badge.gray { background: var(--line); color: var(--mute); }
.pay { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.pay.paid { background: var(--brand-2); color: var(--brand); } .pay.part, .pay.unpaid { background: var(--amber-2); color: var(--amber); }
.status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.done { color: var(--brand); } .status.transit { color: var(--amber); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 14px; margin: 0; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; font-weight: 500; }
.modal { position: fixed; inset: 0; background: rgba(20,25,22,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 18px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; max-width: 90%; }
.brand { font-weight: 700; color: var(--brand); letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand svg { flex: none; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-size: 14px; color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 10px 8px; border-bottom: 2px solid var(--ink); }
table.grid td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid td.num, table.grid th.num { text-align: right; white-space: nowrap; }
.center { text-align: center; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; margin: 12px auto; font-size: 34px; }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox input { font-size: 13px; color: var(--mute); }

/* past-customer pick list (trip app, staff PIN) */
.plist-head { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; font-size: 13px; color: var(--mute); }
.plist { max-height: 372px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.plist button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 12px; min-height: 52px; color: var(--ink); font-size: 15px; font-weight: 600; border-radius: 0; }
.plist button:first-child { border-top: 0; }
.plist button:active { background: var(--brand-2); }
.plist button span { display: block; font-size: 13px; font-weight: 400; color: var(--mute); margin-top: 2px; }
.plist .empty { padding: 12px; font-size: 13px; color: var(--mute); }

/* saved customers (dashboard Account) */
.clist { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.clist .row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.clist .row1:first-child { border-top: 0; }
.clist .row1 b { display: block; font-size: 15px; }
.clist .row1 span { font-size: 13px; color: var(--mute); }
.clist .empty { padding: 12px; font-size: 13px; color: var(--mute); }

/* Sales tab: one row per month */
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 4px; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow b { display: block; font-size: 17px; }
.mrow span { font-size: 13px; color: var(--mute); }
.mrow .acts { display: flex; gap: 8px; }
.mrow .acts .btn { width: auto; min-width: 74px; }
.mrow.all { border-top: 2px solid var(--line); }

/* delivery: change items at the door */
.item .acts2 { display: flex; gap: 18px; margin-top: 6px; }
.item .acts2 .link { padding: 0; font-size: 14px; }
.returned { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.returned .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); padding: 4px 0; }

/* The logo next to the name in page headers. */
.logo-img { display: block; width: 40px; height: 40px; flex: 0 0 auto; }
