/* T-Dogs Office. Builds on styles.css. Big, thumb-friendly, phone first. */
body.admin { background: var(--sky); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.admin-top { background: linear-gradient(160deg, var(--sky) 0%, var(--sky-2) 100%); border-bottom: 4px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.admin-top .wrap { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.admin-top h1 { font-size: 1.5rem; margin: 0; flex: 1; line-height: 1; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: .95rem; box-shadow: 2px 2px 0 var(--ink); }

.panel { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 16px; margin: 16px 0; box-shadow: 4px 4px 0 var(--ink); }
.panel h2 { font-family: Inter, system-ui, sans-serif; font-size: 1.25rem; margin: 0 0 10px; }
.panel h3 { margin: 16px 0 8px; font-size: 1.1rem; }
.tab-title { font-family: Inter, system-ui, sans-serif; font-size: 1.4rem; margin: 18px 0 10px; }
.hint { color: var(--muted); font-size: 1rem; margin: 0 0 12px; }
.label { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.msg { font-weight: 700; min-height: 1.4em; margin: 8px 0; }
.msg.good { color: #1b7a3a; }
.msg.bad { color: #b3261e; }
.alert { background: #fff1c2; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 700; margin: 12px 0; }
.pill { display: inline-block; font-size: .85rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--ink); margin-left: 8px; vertical-align: 2px; }
.pill.bad { background: #ffb4a8; }
.linkish { background: none; border: 0; text-decoration: underline; font: inherit; color: var(--muted); cursor: pointer; padding: 10px 0; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; min-height: 48px; margin-bottom: 8px; }
.check input { width: 26px; height: 26px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }

/* Bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 4px solid var(--ink);
  display: grid; grid-template-columns: repeat(6, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; min-height: 64px;
  background: none; border: 0; font: inherit; font-size: .72rem; font-weight: 800; color: var(--ink); cursor: pointer; min-width: 0;
}
.tabbar button span { font-size: 1.5rem; line-height: 1; }
.tabbar button[aria-current="page"] { background: var(--yellow); }

/* Sell */
.today-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.today-strip > div { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; }
.today-strip .label { color: var(--yellow); }
.today-strip strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.sell-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .sell-grid { grid-template-columns: repeat(3, 1fr); } }
.sell-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 92px; padding: 12px;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.sell-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--yellow); }
.sell-btn .n { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.sell-btn .p { font-weight: 800; font-size: 1.2rem; color: #0b5f86; }
.sell-btn.custom { background: var(--sky); }
.sell-btn.custom .p { font-size: .95rem; color: var(--muted); }
.custom-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 8px; margin-top: 10px; }
.custom-row input { min-width: 0; padding: 10px; font: inherit; font-size: 18px; border: 2px solid var(--ink); border-radius: 10px; min-height: 52px; }
.ticket-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.ticket-lines li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 2px dotted var(--line); }
.tl-name { font-weight: 800; font-size: 1.15rem; }
.tl-amt { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tl-tools { grid-column: 1 / -1; display: flex; gap: 8px; }
.sums { margin: 10px 0 14px; }
.sums div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 1.1rem; }
.sums dt { color: var(--muted); font-weight: 700; }
.sums dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.sums .grand { border-top: 3px solid var(--ink); margin-top: 6px; padding-top: 8px; font-size: 1.5rem; }
.sums .grand dt { color: var(--ink); }
.pay-row, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip { min-height: 48px; padding: 8px 16px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Totals */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.stat { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px; min-width: 0; }
.stat.wide { grid-column: 1 / -1; background: var(--yellow); }
.stat strong { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat strong.neg { color: #b3261e; }
.panel .stat-grid .stat { box-shadow: none; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid var(--ink); }
.tbl td { padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.tbl th:not(:first-child), .tbl td:not(:first-child) { text-align: right; }
.tbl tr.need td { background: #fff6d6; font-weight: 700; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows .r-main { font-size: 1.05rem; }
.rows .r-sub { grid-column: 1; color: var(--muted); font-size: .95rem; }
.rows .tool { grid-row: 1 / span 2; grid-column: 2; }

/* Stock */
.stock-list { display: grid; gap: 12px; margin-bottom: 14px; }
.stock { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px; }
.stock.low { background: #fff1ec; border-color: #b3261e; }
.stock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stock-name { font-size: 1.2rem; }
.stock-qty { text-align: right; }
.stock-qty strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; display: block; line-height: 1; }
.stock-qty span { color: var(--muted); font-size: .9rem; }
.stock-tools { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; margin-top: 10px; }
.stock-tools input { min-width: 0; padding: 8px 10px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 10px; min-height: 48px; }
.stock-edit { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
.mini { display: grid; gap: 4px; font-weight: 700; }
.mini input, .use-row input { padding: 10px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 10px; min-height: 48px; min-width: 0; }
.uses { display: grid; gap: 6px; }
.use-row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; align-items: center; font-weight: 600; }

/* Website editor (moved from the old admin page) */
.items { display: grid; gap: 12px; margin-bottom: 14px; }
.item-edit { border: 2px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; grid-template-columns: 1fr 110px; }
.item-edit input { width: 100%; min-width: 0; padding: 10px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 8px; min-height: 48px; }
.item-edit .desc { grid-column: 1 / -1; }
.item-edit .price-wrap { position: relative; }
.item-edit .price-wrap span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.item-edit .price-wrap input { padding-left: 24px; }
.item-edit .row-tools { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tool {
  min-width: 48px; min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff;
  font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.tool:disabled { opacity: .35; }
.tool.star[aria-pressed="true"] { background: var(--yellow); }
.tool.del { margin-left: auto; color: #b3261e; border-color: #b3261e; }
.tool.armed { background: #b3261e; color: #fff; }
.hours-edit { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.day label.on { display: flex; gap: 10px; align-items: center; font-weight: 700; min-height: 48px; }
.day input[type=checkbox] { width: 26px; height: 26px; }
.day .times { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.day .times input { flex: 1; min-width: 0; padding: 8px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 8px; min-height: 48px; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.photo-edit { border: 2px solid var(--line); border-radius: 12px; padding: 6px; display: grid; gap: 6px; min-width: 0; }
.photo-edit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.photo-edit input { width: 100%; min-width: 0; padding: 8px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 8px; }
.photo-edit .tool.del { margin-left: 0; }
#photo-btn { cursor: pointer; }

/* GPS spot */
.loc { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px; margin-top: 14px; }
.loc-text { margin: 0 0 6px; font-weight: 800; font-size: 1.1rem; }
.loc-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-tools .chip { min-height: 44px; font-size: .95rem; }
.loc-new { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 10px; }
.spot-list { display: grid; gap: 8px; margin-bottom: 8px; }
.spot-row { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: center; }
.spot-row input { min-width: 0; padding: 10px; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 10px; min-height: 48px; }

/* ---------- Inbox ---------- */
.tabbar button { position: relative; }
.badge-n { position: absolute; top: 4px; right: calc(50% - 26px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: .8rem; line-height: 22px; border: 2px solid var(--ink); }
.inbox-card { border-left-width: 10px; }
.inbox-card.order { border-left-color: var(--red); }
.inbox-card.catering { border-left-color: var(--yellow); }
.inbox-card.prayer { border-left-color: var(--sky-2); }
.inbox-card.done { opacity: .6; }
.inbox-head { margin: 0 0 6px; font-size: 1.15rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.inbox-when { margin-left: auto; font-size: .9rem; color: var(--muted); }
.new-dot { background: var(--red); color: #fff; font-weight: 800; font-size: .75rem; padding: 2px 8px; border-radius: 999px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.inbox-who, .inbox-pick, .inbox-note, .inbox-total { margin: 4px 0; }
.inbox-items { margin: 8px 0; padding: 0; list-style: none; font-size: 1.2rem; }
.inbox-items li { padding: 4px 0; border-bottom: 2px dotted rgba(0,0,0,.15); }
.inbox-note { background: #fff8d9; border-radius: 10px; padding: 8px 10px; }
.inbox-note.big { font-size: 1.15rem; }
.inbox-total { font-weight: 800; font-size: 1.15rem; }
.inbox-actions, .inbox-pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.chip-on { background: #1f8a3b; color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.alerts { background: #fff8d9; border: 3px solid var(--ink); border-radius: 14px; padding: 14px; margin: 10px 0 14px; }
.alerts-state { font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
.alerts .btn-big { width: 100%; }
.cash-help { margin: 10px 0; padding: 12px; background: #effbf1; border: 3px solid var(--ink); border-radius: 14px; }
.cash-help .change { font-size: 1.5rem; margin: 10px 0 0; }
.day-text { white-space: pre-wrap; font: inherit; font-size: 1.05rem; background: var(--sky); border-radius: 12px; padding: 14px; margin: 14px 0 10px; }

/* ================= Easy mode: bigger, plainer, higher contrast ================= */
html { font-size: 19px; }
html.txt-l { font-size: 21px; }
html.txt-xl { font-size: 23px; }
body.admin { --muted: #33383c; --line: #9fc3cf; }
body.admin.has-save { padding-bottom: calc(250px + env(safe-area-inset-bottom, 0px)); }
.hint { font-size: 1.02rem; line-height: 1.5; }
.label { font-size: .9rem; text-transform: none; letter-spacing: 0; }
.tbl th { font-size: .88rem; text-transform: none; letter-spacing: 0; }
.tbl td { font-size: 1.02rem; }
.rows .r-sub { font-size: 1rem; }
.linkish { min-height: 48px; color: var(--ink); font-weight: 700; }
.tool { min-height: 52px; }
.chip { min-height: 52px; font-size: 1.02rem; }
.loc-tools .chip { min-height: 52px; font-size: 1rem; }
.btn-sm { min-height: 50px; font-size: 1rem; }
.tabbar button { font-size: .86rem; min-height: 70px; }
.tabbar button span { font-size: 1.65rem; }
.tabbar button[aria-current="page"] { background: var(--yellow); box-shadow: inset 0 5px 0 var(--ink); }
.badge-n { right: calc(50% - 32px); }
.custom-row input, .stock-tools input, .mini input, .use-row input, .item-edit input, .day .times input, .photo-edit input, .spot-row input { font-size: 1.05rem; }
.tab-title { font-size: 1.6rem; }
.inbox-when { font-size: .95rem; }
.new-dot { font-size: .85rem; }

/* Home */
.home-hello { font-family: Inter, system-ui, sans-serif; font-size: 1.7rem; margin: 18px 0 10px; }
.home-orders { display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.home-orders.has { background: var(--red); color: #fff; }
.ho-big { display: block; font-weight: 800; font-size: 1.45rem; line-height: 1.25; }
.ho-small { display: block; font-size: 1.02rem; margin-top: 4px; }
.home-money { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 1.1rem; margin: 14px 0; }
.home-money strong { color: var(--yellow); font-size: 1.5rem; margin: 0 6px; font-variant-numeric: tabular-nums; }
.home-ask { font-size: 1.25rem; margin: 20px 0 10px; }
.home-grid { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 640px) { .home-grid { grid-template-columns: 1fr 1fr; } }
.home-tile { display: grid; grid-template-columns: 3rem 1fr; column-gap: 12px; align-items: center; text-align: left; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; min-height: 84px; box-shadow: 4px 4px 0 var(--ink); }
.home-tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--yellow); }
.home-tile span { grid-row: 1 / span 2; font-size: 2.2rem; line-height: 1; text-align: center; }
.home-tile b { font-size: 1.3rem; line-height: 1.2; }
.home-tile small { font-size: 1rem; color: var(--muted); line-height: 1.3; }
.back-home { display: inline-flex; align-items: center; min-height: 50px; margin-top: 14px; padding: 6px 18px; font: inherit; font-weight: 800; font-size: 1.05rem; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; cursor: pointer; }

/* Help */
.help-list { display: grid; gap: 10px; margin-bottom: 18px; }
details.help { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 0 16px; }
details.help summary { font-weight: 800; font-size: 1.2rem; padding: 16px 0; min-height: 60px; cursor: pointer; list-style-position: outside; margin-left: 1.2rem; }
details.help[open] { background: #fffbe6; padding-bottom: 16px; }
details.help ol, details.help ul { margin: 0 0 14px; padding-left: 1.5rem; font-size: 1.12rem; }
details.help li { margin-bottom: 10px; }
details.help p { font-size: 1.08rem; margin: 0 0 10px; }

/* Website editor rows with their own labels */
.ie-label { display: grid; gap: 4px; font-weight: 700; font-size: .98rem; min-width: 0; }
.ie-label.desc { grid-column: 1 / -1; }
.item-edit { border: 3px solid var(--ink); border-radius: 14px; padding: 12px; }
.tool.del { background: #fff; font-weight: 800; }

/* Save bar: pops up whenever something on the website was changed */
.save-bar { position: fixed; left: 0; right: 0; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 29; background: #fff8d9; border-top: 4px solid var(--ink); padding: 10px 16px 12px; box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
.save-bar .msg { margin: 0 0 8px; min-height: 0; font-size: 1.05rem; }
.save-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; max-width: 820px; margin: 0 auto; }
.save-btns .btn { width: 100%; min-height: 60px; padding: 8px 10px; }
.save-btns .btn-ghost { font-size: 1rem; }

/* Are you sure? box, the tour, and the little note with Undo */
.shade { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 26, .62); display: grid; place-items: center; padding: 18px; overflow: auto; }
.sure-box { background: #fff; border: 4px solid var(--ink); border-radius: 22px; padding: 22px 20px; width: 100%; max-width: 440px; box-shadow: 6px 6px 0 var(--ink); display: grid; gap: 12px; }
.sure-q { font-size: 1.35rem; font-weight: 800; line-height: 1.35; margin: 0 0 6px; }
.sure-box .btn-big { width: 100%; }
.sure-yes { background: #b3261e; color: #fff; }
.tour-box { text-align: center; }
.tour-icon { font-size: 4rem; line-height: 1; }
.tour-title { font-family: Inter, system-ui, sans-serif; font-size: 1.6rem; margin: 0; }
.tour-text { font-size: 1.2rem; line-height: 1.5; margin: 0; }
.tour-dots { color: var(--muted); font-weight: 700; margin: 0; }
.tour-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 55; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1.08rem; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
body.has-save .toast { bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
.toast-undo { flex: none; min-height: 52px; padding: 6px 20px; font: inherit; font-weight: 800; font-size: 1.1rem; background: var(--yellow); color: var(--ink); border: 0; border-radius: 999px; cursor: pointer; }

.tabbar { grid-template-columns: repeat(5, 1fr); }
.stock-tools { grid-template-columns: 1fr 1fr; align-items: end; }
.stock-tools .stock-add { grid-column: 1 / -1; background: var(--yellow); }
.stock-tools input { width: 100%; }
.inbox-none { font-size: 1.15rem; font-weight: 700; }
#inbox-msg:empty { display: none; }

/* Quick switches */
.selling { background: #e6f8ea; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.selling.off { background: #ffe1da; }
.selling-state { font-weight: 800; font-size: 1.25rem; margin: 0 0 10px; }
.selling .btn { width: 100%; }
.selling .hint { margin: 10px 0 0; }
.soldout-chip[aria-pressed="true"] { background: #b3261e; border-color: #b3261e; color: #fff; }

/* Item extras in the menu editor */
.ie-extra { grid-column: 1 / -1; display: grid; gap: 10px; }
.ie-extra textarea { width: 100%; padding: 10px; font: inherit; font-size: 1.05rem; border: 2px solid var(--ink); border-radius: 8px; }
.ie-photo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ie-photo img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
.ie-pick { display: inline-flex; align-items: center; cursor: pointer; }
.ie-note { flex-basis: 100%; margin: 0; }
.ie-note:empty { display: none; }

/* Small phones and "Biggest" text: nothing wraps badly or spills sideways */
.admin-top h1 { font-size: min(1.5rem, 5vw); white-space: nowrap; min-width: 0; }
.admin-top .btn-sm { white-space: nowrap; padding: 6px 12px; font-size: min(1rem, 4vw); flex: none; }
@media (max-width: 350px) { .admin-top img { width: 30px; height: auto; } }
.admin-top img { flex: none; }
.tabbar { justify-content: center; grid-template-columns: repeat(5, minmax(0, 170px)); }
.tabbar button { font-size: min(.86rem, 3.9vw); }
.today-strip > div, .sell-btn, .stock-tools > *, .stat, .home-tile > *, .save-btns > * { min-width: 0; }
.today-strip strong { font-size: min(1.35rem, 5.6vw); }
.sell-btn .n, .home-tile b, .stock-name, .ie-label { overflow-wrap: anywhere; }
.stock-head > :first-child { min-width: 0; }
.stock-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stock-tools .tool { padding: 0 6px; overflow-wrap: anywhere; }
@media (max-width: 380px) { .item-edit { grid-template-columns: minmax(0, 1fr); } }
html.txt-xl .item-edit, html.txt-l .item-edit { grid-template-columns: minmax(0, 1fr); }
.panel:has(.tbl) { overflow-x: auto; }
.tbl th, .tbl td { overflow-wrap: anywhere; }

/* Cut-off fixes: date boxes get a full row on phones, labels and long web addresses wrap. */
@media (max-width: 560px) { .two:has(input[type=date]), .two:has(input[type=time]) { grid-template-columns: 1fr; } }
input[type=date], input[type=time] { min-width: 0; max-width: 100%; }
.label, .panel strong, .panel b, .help strong { overflow-wrap: anywhere; }
.admin-top h1 { line-height: 1.2; padding-top: .18em; }

/* Money boxes: one per row on small phones or biggest text, so amounts never break in two. */
@media (max-width: 380px) { .stat-grid { grid-template-columns: minmax(0, 1fr); } }
html.txt-xl .stat-grid, html.txt-l .stat-grid { grid-template-columns: minmax(0, 1fr); }
.stat strong { overflow-wrap: normal; }

/* Home warning when this phone will not ping for new orders. */
.home-alerts { display: block; width: 100%; text-align: left; margin: 0 0 14px; padding: 16px 18px; border: 3px solid var(--ink); border-radius: 18px; background: #fff3c4; box-shadow: 4px 4px 0 var(--ink); font: inherit; color: var(--ink); cursor: pointer; }
.home-alerts[hidden] { display: none; }
.home-alerts strong { display: block; font-size: 1.15rem; line-height: 1.3; }
.home-alerts span { display: block; margin-top: 4px; }

/* Punch cards, special and coming up */
.sale-punch { border-color: var(--ink); background: #fffbe8; }
.punch-out .msg { margin: 12px 0 6px; }
.punch-card-line { margin: 8px 0; padding: 12px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.punch-card-line strong, .punch-card-line span { display: block; overflow-wrap: anywhere; }
.punch-free { font-weight: 800; margin: 10px 0 8px; }
.club-list { list-style: none; margin: 0 0 10px; padding: 0; }
.club-list li { display: grid; gap: 2px; padding: 12px 0; border-top: 2px dotted var(--line); }
.club-list li:first-child { border-top: 0; }
.club-list .chip { justify-self: start; margin-top: 6px; }
#club-box.off { background: #ffe9e5; }
#tab-news h3 { margin: 18px 0 8px; }

/* Code and square code after a sale; punch history */
.sale-qr { width: min(260px, 78%); margin: 10px auto 6px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 8px; }
.sale-qr:empty { display: none; }
.sale-qr svg { display: block; width: 100%; height: auto; }
.sale-code-text { text-align: center; font-size: 2.4rem; font-weight: 800; letter-spacing: .2em; margin: 4px 0 8px; padding-left: .2em; }
#sale-punch-or { margin: 16px 0 8px; }
.club-list li.removed strong, .club-list li.removed span:not(.hint) { text-decoration: line-through; opacity: .6; }
.club-list .flag { color: #b3261e; font-weight: 800; }

/* Secret menu editor */
.secret-row { border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px 10px; margin: 0 0 12px; background: #fff; }
.secret-row .field { margin-bottom: 8px; }

/* Location: one big button, off unless Tim turns it on */
.loc-tools { display: grid; gap: 10px; }
.loc-tools .btn-big { width: 100%; }
.loc-hours { margin: 0; }
.loc-hours select { width: 100%; font-size: 1.05rem; min-height: 52px; }
.loc.loc-on { border-color: #2e9e4f; box-shadow: 0 0 0 3px rgba(46,158,79,.18); }
.loc-home { margin-top: 12px; padding-top: 12px; border-top: 2px dashed rgba(0,0,0,.15); display: grid; gap: 8px; }
.loc-home .chip { white-space: normal; text-align: left; }

.stat strong { font-size: clamp(1.05rem, 5.6vw, 1.5rem); }
html.txt-l .stat strong, html.txt-xl .stat strong { font-size: clamp(1.2rem, 7vw, 1.7rem); }
/* Location box: quieter once Home is saved */
.loc-text { line-height: 1.3; }
.loc-hours { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.loc-hours label { margin: 0; }
.loc-home.saved { border-top: 0; margin-top: 4px; padding-top: 0; }
.loc-home.saved .chip { justify-self: start; min-height: 44px; font-size: .9rem; }

.home-week { display: block; width: 100%; text-align: left; margin: 0 0 14px; padding: 14px 18px; border: 3px solid var(--ink); border-radius: 18px; background: #f4e4c1; box-shadow: 4px 4px 0 var(--ink); font: inherit; color: var(--ink); cursor: pointer; }
.home-week[hidden] { display: none; }
.home-week strong { display: block; font-size: 1.1rem; line-height: 1.3; margin-bottom: 2px; }
.home-week span { line-height: 1.45; }

/* Catering: booking a day */
.booked-badge { display: inline-block; background: #d9f5df; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--line); }
.book-row .book-day { font: inherit; font-size: 16px; min-height: 48px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; max-width: 100%; }
.book-row label { display: grid; gap: 6px; width: 100%; }

/* Pre-orders nobody picked up */
.noshow-note { margin: 8px 0; padding: 10px 12px; background: #fde7e4; border: 2px solid #b3261e; border-radius: 12px; font-weight: 800; line-height: 1.45; color: #7a1710; }
.noshow-note .linkish { display: block; min-height: 40px; padding: 6px 0 0; }
.noshow-badge { display: inline-block; background: #fde7e4; border: 2px solid #b3261e; color: #7a1710; border-radius: 999px; padding: 4px 12px; font-weight: 800; white-space: nowrap; }
