/* Eventra Order Manager (staff app at /order-manager). Same palette and type as the website. */
:root {
  --bg: #F4EEE4; --card: #FBF8F2; --ink: #2B2420; --muted: #5A4E44; --soft: #6B5E52;
  --line: #E2D8C8; --line2: #D6C9B4; --tint: #E8DDCB; --sel: #EFE6D6;
  --accent: #8C6A3A; --hi: #D9C29A; --bad: #9A3B2B; --badbg: #F6E3DC; --ok: #2F6B3F; --okbg: #E2EFE2; --info: #3A5A8C; --infobg: #E1E8F3;
  --bold: "Bricolage Grotesque", Jost, system-ui, sans-serif; --body: Jost, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--bold); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 30px; line-height: 1; } h2 { font-size: 20px; } h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--ink); }
.num { font-family: var(--bold); font-weight: 800; letter-spacing: -0.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; color: var(--soft); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft); }
.row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--bg); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.top .brand { font-family: var(--bold); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.top .brand span { color: var(--hi); font-family: var(--body); font-weight: 500; font-size: 14px; letter-spacing: 0; margin-left: 6px; }
.top .sync { font-size: 12px; color: var(--hi); }
.top button { background: transparent; border: 1.5px solid #5A4E44; color: var(--bg); border-radius: 999px; min-height: 36px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.top button:disabled { opacity: .5; }
.nav { display: flex; gap: 6px; margin-top: 10px; }
.nav button { flex: 1; border: 0; background: #3A322C; color: var(--bg); min-height: 40px; border-radius: 999px; font-family: var(--bold); font-weight: 700; font-size: 15px; }
.nav button[aria-selected="true"] { background: var(--bg); color: var(--ink); }
.nav button.more { flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; }
.menu { background: var(--card, #FFFDF9); border: 1px solid var(--line, #E6DCCD); border-radius: 18px; overflow: hidden; margin: 0 0 14px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px; background: none; border: 0; border-top: 1px solid var(--line, #E6DCCD); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.menu-row:first-child { border-top: 0; }
.menu-row b { display: block; font-size: 17px; }
.menu-row small { display: block; color: var(--muted, #7A6E63); font-size: 14px; margin-top: 2px; }
.menu-row i { font-style: normal; font-size: 24px; color: var(--muted, #7A6E63); }
.link.back { display: inline-block; margin: 0 0 6px; padding: 0; }

main { max-width: 1180px; margin: 0 auto; padding: 14px 14px 120px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- chips + filters ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line2); background: var(--card); border-radius: 999px; min-height: 38px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip b { font-family: var(--bold); margin-left: 4px; }
.chip.alert b { color: var(--bad); } .chip.alert[aria-pressed="true"] b { color: #F2B8A8; }
.search { position: relative; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); padding: 0 16px 0 42px; }
.search svg { position: absolute; left: 15px; top: 14px; color: var(--soft); }

/* ---------- list ---------- */
.day { margin-top: 6px; }
.day > .eyebrow { margin: 0 4px 6px; display: flex; justify-content: space-between; }
.list { display: grid; gap: 8px; }
@media (min-width: 900px) { .list { grid-template-columns: 1fr 1fr; } }
.ord { text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ord:hover { border-color: var(--line2); }
.ord .who { font-family: var(--bold); font-weight: 800; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.ord .flag { font-size: 13px; font-weight: 600; color: var(--bad); }
.ord .flag.info { color: var(--info); }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--ink); white-space: nowrap; }
.tag.s-website { background: #E9E0D0; } .tag.s-link { background: #E6E1EE; } .tag.s-invoice { background: #DFE9E6; } .tag.s-estimate { background: #EEE6D4; color: var(--accent); } .tag.s-squareonline { background: #ECE7DF; }
.st { border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; font-family: var(--bold); white-space: nowrap; }
.st.new { background: var(--hi); color: var(--ink); } .st.scheduled { background: var(--infobg); color: var(--info); }
.st.delivered, .st.picked_up { background: #E9E2F2; color: #5B3F86; } .st.completed { background: var(--okbg); color: var(--ok); }
.st.cancelled { background: var(--tint); color: var(--soft); text-decoration: line-through; }
.pay { font-size: 12px; font-weight: 600; } .pay.unpaid { color: var(--bad); } .pay.deposit { color: var(--accent); } .pay.paid { color: var(--ok); } .pay.refunded, .pay.partly_refunded { color: var(--soft); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- detail sheet ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(43, 36, 32, .45); z-index: 40; }
.sheet { position: fixed; z-index: 41; inset: 0; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .sheet { left: auto; width: 560px; box-shadow: -10px 0 30px rgba(0,0,0,.15); } }
.sheet-head { position: sticky; top: 0; z-index: 2; background: var(--ink); color: var(--bg); padding: calc(12px + env(safe-area-inset-top)) 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.sheet-head h2 { color: var(--bg); font-size: 24px; }
.sheet-head .x { background: #3A322C; border: 0; color: var(--bg); width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.sheet-body { padding: 14px 14px 140px; display: flex; flex-direction: column; gap: 12px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.box > .between h3 { font-size: 15px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 15px; }
.kv dt { color: var(--soft); font-size: 13px; padding-top: 2px; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert { border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; background: var(--badbg); color: var(--bad); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.alert.info { background: var(--infobg); color: var(--info); }
.alert.ok { background: var(--okbg); color: var(--ok); }
.alert button { flex: none; }
.lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lines .between { align-items: baseline; }
.total { border-top: 1px solid var(--line); padding-top: 8px; }
pre.note { margin: 0; white-space: pre-wrap; font-family: var(--body); font-size: 14px; background: var(--sel); border-radius: 10px; padding: 10px; }
.log { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.log .l { border-left: 3px solid var(--line2); padding-left: 10px; }
.log .l.note { border-color: var(--accent); }
.log .l .small b { color: var(--ink); }

/* ---------- buttons + fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-family: var(--bold); font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn.full { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.light { background: var(--bg); color: var(--ink); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.bad { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 140px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { height: 48px; width: 100%; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; padding: 0 12px; }
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--tint); border-radius: 999px; }
.seg button { border: 0; background: transparent; min-height: 38px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }

/* ---------- sign in ---------- */
.signin { max-width: 420px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 18px 60px; display: flex; flex-direction: column; gap: 16px; }
.signin .logo { font-family: var(--bold); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; }

/* ---------- calendar ---------- */
.week { display: grid; gap: 8px; }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wday { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 90px; }
.wday.today { border: 2px solid var(--ink); }
.wday .h { display: flex; justify-content: space-between; align-items: baseline; }
.ev { text-align: left; border: 0; border-radius: 10px; padding: 7px 9px; font-size: 13px; cursor: pointer; background: var(--sel); display: flex; flex-direction: column; gap: 1px; width: 100%; }
.ev b { font-family: var(--bold); font-size: 14px; }
.ev.out { border-left: 4px solid var(--ink); } .ev.back { border-left: 4px solid var(--accent); } .ev.appt { background: transparent; border: 1px dashed var(--line2); cursor: default; }
.ev.cancelled { opacity: .5; text-decoration: line-through; }
.ev .flag { color: var(--bad); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 92vw; }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- create order ---------- */
.pick { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
@media (min-width: 900px) { .pick { grid-template-columns: 1fr 1fr; } }
.pi { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; cursor: pointer; min-height: 56px; }
.pi img, .pi .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--soft); }
.pi b { display: block; font-size: 15px; }
.pi .plus { font-family: var(--bold); font-size: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cart { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.input.qty { width: 84px; flex: none; text-align: center; }
.x.sm { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint); font-size: 20px; cursor: pointer; flex: none; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.opt input, label.row input { width: 20px; height: 20px; accent-color: var(--ink); }
details summary { cursor: pointer; list-style: none; }
@media (max-width: 440px) { .top .brand span { display: none; } .nav button { font-size: 14px; } }
.fbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.fbar .fbtn b { margin-left: 6px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 2px; margin: 0 0 12px; }
.nodel { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 12px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--soft); }
.warn { color: #9A6A1A; }
.asked { padding: 2px 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.asked .kv dd, .asked .kv dt { color: var(--soft); }
.booked-head { margin-top: 2px; }
.link.small { font-size: 15px; }
.stack .small.back { color: #8A6A2E; }
.ac-wrap { position: relative; }
.ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(43,36,32,.16); overflow: hidden; }
.ac-item { display: block; width: 100%; text-align: left; padding: 12px 14px; min-height: 48px; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; }
.ac-item:first-child { border-top: 0; }
.ac-item:hover, .ac-item:focus { background: var(--bg); }
.ac-foot { padding: 6px 14px; font-size: 12px; color: var(--soft); text-align: right; border-top: 1px solid var(--line); }
.calmode { margin: 0 0 12px; }
.dcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--ink); border-radius: 18px; }
.dcard.back { border-left-color: #B8893A; }
.dcard.appt { border-style: dashed; }
.dcard.next { box-shadow: 0 0 0 3px #B8893A; }
.dcard .nextup { align-self: flex-start; background: #B8893A; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.dcard .dtime { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 24px; }
.dcard .dwho { font-size: 19px; }
.dcard .daddr { font-size: 17px; font-weight: 600; color: var(--ink); }
.dcard .ditems { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; }


/* delivery photos */
.photos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.photos.ask { background: #FBF3E4; border: 1px solid #E8D3A8; border-radius: 14px; padding: 12px; }
.prow { display: flex; gap: 8px; flex-wrap: wrap; }
.pthumb { width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb.padd { border-style: dashed; padding: 6px; text-align: center; line-height: 1.2; }
.hide { display: none; }
.pview { position: fixed; inset: 0; background: rgba(20,14,10,.82); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.pview .pbox { background: var(--card); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; max-width: 100%; max-height: 100%; }
.pview img { max-width: 100%; max-height: 70vh; border-radius: 10px; object-fit: contain; background: #000; }
.pcount { font-size: 13px; font-weight: 700; margin-right: 8px; }
.log .l.photo { border-color: #B8893A; }
.fixed { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 600; }
/* Orders tabs (Nov 14 2026) */
.otabs { margin: 12px 0 4px; }
.otabs button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; color: var(--ink); }
.otabs button b { font-size: 13px; opacity: .65; }
.attn-row { display: flex; margin: 8px 0 4px; }
.chip.attn { min-height: 34px; padding: 4px 12px; font-size: 14px; gap: 6px; }

/* add-ons (Nov 14 2026) */
.addon { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.addon.ask { background: #FBF3E4; border-color: #E8D3A8; }
.addon .stack { display: flex; flex-direction: column; gap: 8px; }
.addh { margin-top: 6px; }

/* delivery acceptance (Nov 15 2026) */
.accbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.accbox.ask { background: #FBF3E4; border: 1px solid #E8D3A8; border-radius: 14px; padding: 12px; }
.arow { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.arow.no { color: #A3392A; }
body.noscroll { overflow: hidden; }
.sigsheet { position: fixed; inset: 0; z-index: 210; background: rgba(20,14,10,.6); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(12px, env(safe-area-inset-top)) 10px 24px; }
.sigbox { background: var(--card); border-radius: 18px; padding: 18px 16px; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sigbox h2 { margin: 0; font-size: 24px; }
.sigbox h3 { margin: 8px 0 0; }
.sigbox .x { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; }
.kv dt { color: var(--muted, #6b5d50); } .kv dd { margin: 0; font-weight: 600; }
.terms { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.4; }
.lbl { font-weight: 700; font-size: 14px; margin-top: 4px; display: block; }
.sigpad { width: 100%; height: 180px; border: 2px dashed #B8893A; border-radius: 14px; background: #fff; touch-action: none; display: block; }
.adoc ul, .adoc ol { padding-left: 20px; } .adoc .asig { max-width: 100%; border-bottom: 1px solid var(--line); display: block; margin: 8px 0; background: #fff; }
.adoc .hash { word-break: break-all; }

/* Day view status colors (Nov 15 2026): yellow pending · purple delivered/picked up · green completed */
.dcard.st-pending { border-left-color: #E2B23A; }
.dcard.st-out { border-left-color: #7B5CC4; }
.dcard.st-done { border-left-color: #3F8A55; opacity: .82; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 2px; }
.legend .lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .st-pending::before { background: #E2B23A; } .legend .st-out::before { background: #7B5CC4; } .legend .st-done::before { background: #3F8A55; }
/* Day view cards 25% tighter (Joel, Nov 15 2026): padding, gaps and type × 0.75 */
.dcard { gap: 4px; padding: 12px 12px 12px 13px; border-radius: 14px; border-left-width: 5px; font-size: 12px; }
.dcard .nextup { font-size: 10px; padding: 2px 8px; }
.dcard .dtime { font-size: 18px; }
.dcard .dwho { font-size: 14px; }
.dcard .daddr { font-size: 13px; }
.dcard .ditems { font-size: 12px; padding: 6px 0; gap: 1px; }
.dcard .small { font-size: 11px; }
.dcard .st { font-size: 9px; padding: 2px 8px; }
.dcard .pcount { font-size: 10px; margin-right: 6px; }
.dcard .row { gap: 6px; }
.dcard .btn.sm { min-height: 28px; padding: 0 10px; font-size: 11px; }

.dstack { gap: 8px; }

/* Day view header, Square-style (Nov 16 2026) */
.calhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.calhead .wkbtn { min-width: 40px; font-size: 20px; padding: 0 10px; }
.mlabel { position: relative; font-family: var(--bold); font-weight: 800; font-size: 18px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.mlabel .mpick { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.wkstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.wkday { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; }
.wkday .dow { font-size: 11px; color: var(--soft, #8a7d70); font-weight: 600; }
.wkday .dnum { width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.wkday.today .dnum { color: #B8893A; font-weight: 800; }
.wkday.on .dnum { background: var(--ink); color: var(--bg); font-weight: 800; }
.wkday .dot { width: 5px; height: 5px; border-radius: 3px; background: transparent; }
.wkday.has .dot { background: #B8893A; }

/* customer messages on hold (Nov 16 2026) */
.msgbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #EEF2F7; border: 1px solid #C9D6E6; }
.msgrow { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid #C9D6E6; }
.log .l.notify { border-color: #6C8EBF; }

/* Customers (Nov 16 2026) */
.pfind { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.prow { text-align: left; background: #fff; border: 1.5px solid var(--line, #E6DCCD); border-radius: 14px; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.prow:active, .prow:hover { border-color: var(--ink); }
.prow b { font-size: 16px; }
.pdrop-wrap { position: relative; }
.pdrop { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #fff; border: 1.5px solid var(--line, #E6DCCD); border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.14); max-height: 340px; overflow-y: auto; }
.pdrop .prow { border-color: transparent; }
.pdrop .prow:hover, .pdrop .prow:active { border-color: var(--ink); }
.pdrop.hide { display: none; }
.search input { padding-right: 48px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.sclear { position: absolute; right: 6px; top: 5px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--line2, #E6DCCD); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.sclear.hide { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: 16px; background: var(--card); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.check small { display: block; color: var(--soft); font-size: 13px; margin-top: 2px; }

.mods { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; }
.mods .hot { color: var(--ink); font-weight: 700; }
.sugg { border: 1.5px solid var(--gold, #B08D57); border-radius: 16px; padding: 12px; display: grid; gap: 8px; background: #FBF6EC; }
.sopt { text-align: left; width: 100%; border: 1.5px solid var(--line2, #E6DCCD); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--ink); font: inherit; }
.sopt.best { border-color: var(--ink); }
.sopt.on { background: var(--ink); color: #fff; }
.sopt.on .small { color: #EDE3D3; }
table.load { width: 100%; border-collapse: collapse; font-size: 15px; }
table.load th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); padding: 6px 4px; border-bottom: 1.5px solid var(--line2, #E6DCCD); }
table.load th:not(:first-child), table.load td.num { text-align: right; width: 64px; }
table.load td { padding: 8px 4px; border-bottom: 1px solid var(--line2, #EFE6D8); }
table.load td.ld { font-weight: 800; }
table.load tr.sec td { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); padding-top: 14px; }
table.load tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.lrow { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line2, #EFE6D8); padding: 10px 0; color: var(--ink); font: inherit; cursor: pointer; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--tint); color: var(--ink); white-space: nowrap; }
.badge.bad { background: #F6DDD6; color: #8E2F1D; }
.badge.ok { background: #DDEBDD; color: #2F5B34; }
.mcard { display: grid; gap: 6px; }
.mcard.late { border-color: #C9826F; }
.mrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mcard .actions { margin-top: 4px; }
.mbtns { display: flex; gap: 6px; margin-top: 4px; }
.mbtns > * { flex: 1; min-height: 38px; padding: 0 8px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
table.load tr.sec td { font-weight: 700; color: var(--ink, #2a2420); border-bottom: 1px solid var(--line, #d8cfc2); }
table.load tr.sec .gsum { font-weight: 400; color: var(--soft); text-transform: none; letter-spacing: 0; }
table.load td .muted { margin-top: 2px; }
