/* MORROW HOSPITALITY — Purchasing Portal. Premium, clean, minimal, fast. */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --accent: #1a1a1a;
  --gold: #b98a2f;
  --green: #1e7e34;
  --red: #b3261e;
  --amber: #9a6a00;
  --blue: #0b5cad;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--blue); text-decoration: none; }
a:active { opacity: .7; }

/* ---------- sample banner ---------- */
.sample-banner {
  background: #b3261e; color: #fff; text-align: center;
  font-weight: 800; letter-spacing: .08em; font-size: 13px;
  padding: 10px 12px;
}

/* ---------- header ---------- */
.topbar {
  background: var(--accent); color: #fff;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.brand small { display: block; font-weight: 400; font-size: 11px; letter-spacing: .18em; color: #cbb26a; }
.topbar .who { margin-left: auto; font-size: 13px; color: #ddd; text-align: right; }
.topbar .who a { color: #fff; font-size: 12px; }

/* ---------- nav ---------- */
.nav { display: flex; gap: 4px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 0 8px; }
.nav a { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a.active { border-bottom-color: var(--gold); }
.nav a.admin-link { color: var(--amber); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px 16px 110px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 20px 0 10px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.stat { text-align: left; }
.stat .num { font-size: 26px; font-weight: 800; }
.stat .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 22px; min-height: 52px; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: var(--red); }
.btn.small-btn { font-size: 14px; padding: 10px 16px; min-height: 44px; }
.btn.block { display: block; width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=number], input[type=email], input[type=password],
input[type=date], input[type=time], select, textarea {
  width: 100%; font-size: 16px; padding: 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; min-height: 50px;
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.checkbox-row input { width: 24px; height: 24px; min-height: 0; }

/* ---------- ordering guide ---------- */
.guide-row { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.guide-row .pname { font-weight: 700; font-size: 16px; }
.guide-row .pmeta { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.guide-row .price { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.stepper button {
  width: 56px; height: 56px; font-size: 26px; font-weight: 800; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; border-radius: 10px;
}
.stepper button:active { background: var(--accent); color: #fff; }
.stepper input.qty {
  width: 84px; height: 56px; text-align: center; font-size: 20px; font-weight: 700;
  border-left: none; border-right: none; border-radius: 0; margin: 0;
}
.row-cost { font-size: 13px; color: var(--muted); margin-top: 6px; }
.row-cost b { color: var(--ink); }
.suggest { font-size: 13px; color: var(--green); font-weight: 600; }
.sticky-total {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--accent); color: #fff; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.sticky-total .total { font-size: 22px; font-weight: 800; }
.sticky-total .btn { flex: 1; background: var(--gold); }

/* ---------- badges / alerts ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #eee; }
.badge.ok { background: #e3f2e5; color: var(--green); }
.badge.warn { background: #fff3d6; color: var(--amber); }
.badge.bad { background: #fbe3e1; color: var(--red); }
.badge.info { background: #e3ecf7; color: var(--blue); }
.alert { border-left: 4px solid var(--amber); background: #fffdf4; padding: 12px 14px; border-radius: 0 10px 10px 0; margin-bottom: 10px; }
.alert.price { border-color: var(--red); background: #fff7f6; }
.alert.qty { border-color: var(--blue); background: #f6f9ff; }
.alert.ok { border-color: var(--green); background: #f6fdf7; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.flash.error { background: #fbe3e1; color: var(--red); }
.flash.ok { background: #e3f2e5; color: var(--green); }

/* ---------- bottom nav (mobile) ---------- */
.bottomnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav .row { display: flex; justify-content: space-around; }
.bottomnav a { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 6px 4px; flex: 1; }
.bottomnav a.active { color: var(--ink); }
.bottomnav .ico { font-size: 20px; display: block; }
@media (max-width: 719px) {
  .bottomnav { display: block; }
  .wrap { padding-bottom: 150px; }
  .nav { display: none; }
}

/* ---------- misc ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input[type=text] { flex: 1; min-width: 180px; }
pre.email { background: #111; color: #eee; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.search-highlight { background: #fff3d6; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0 40px; }
.login-card { max-width: 420px; margin: 8vh auto; }
.big-cta { font-size: 20px; padding: 22px; }
.vendor-list a { display: block; }
.vendor-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
.vendor-card .vcode { background: var(--accent); color: #fff; font-weight: 800; border-radius: 10px; padding: 10px 12px; font-size: 14px; min-width: 58px; text-align: center; }
.vendor-card .vname { font-weight: 700; font-size: 18px; }
.vendor-card .vmeta { font-size: 13px; color: var(--muted); }
.vendor-card .go { margin-left: auto; font-size: 24px; color: var(--gold); }
.matrix td, .matrix th { white-space: nowrap; }
.toggle-on { color: var(--green); font-weight: 800; }
.toggle-off { color: var(--muted); }
.inline-input { width: 76px !important; min-height: 40px !important; padding: 6px !important; font-size: 14px !important; }

/* ---------- daily intel ---------- */
.alert-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: none; }
.alert-high { background: #fdf3f2; border-radius: 10px; padding: 10px 12px; }
.over-target { color: var(--red); font-weight: 800; }
