/* Общие стили Bar&Lobby. Цвета — золото с логотипа «Арчабиль». Шрифты системные: сайт работает без интернета. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ece3;
  --fg: #1d1b17;
  --muted: #6d675c;
  --line: #e1dbcf;
  --gold: #a7832d;
  --gold-strong: #8a6a1f;
  --gold-soft: #f3ead3;
  --on-gold: #ffffff;
  --ok: #2f7d4f;
  --ok-soft: #e3f2e8;
  --warn: #b26a00;
  --warn-soft: #fbefd9;
  --bad: #b3362d;
  --bad-soft: #f9e3e1;
  --info: #2f5f9e;
  --info-soft: #e3ecf8;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f; --surface: #1d1b16; --surface-2: #262319; --fg: #eee9dd; --muted: #a59e8f; --line: #353127;
    --gold: #e2c88f; --gold-strong: #f0d9a6; --gold-soft: #2f2817; --on-gold: #1d1b16;
    --ok: #6cc28f; --ok-soft: #17301f; --warn: #f0b24f; --warn-soft: #33270f; --bad: #f07b70; --bad-soft: #3a1a17;
    --info: #8cb4ea; --info-soft: #172537;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
[v-cloak] { display: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }

button, .btn {
  font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 8px; padding: 9px 14px; cursor: pointer; min-height: 40px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.danger { color: var(--bad); border-color: var(--bad); }
.ghost { background: transparent; border-color: transparent; }
.big { min-height: 52px; font-size: 18px; padding: 12px 18px; }
.block { width: 100%; }

input, select, textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 40px; width: 100%;
}
textarea { min-height: 60px; resize: vertical; }
label.f { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
label.f > span { font-weight: 500; }
label.chk { display: inline-flex; gap: 6px; align-items: center; }
label.chk input { width: auto; min-height: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.new { background: var(--info-soft); color: var(--info); }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.cooking { background: var(--warn-soft); color: var(--warn); }
.pill.ready { background: var(--ok-soft); color: var(--ok); }
.pill.served { background: var(--surface-2); color: var(--muted); }
.pill.cancelled { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.pill.gold { background: var(--gold-soft); color: var(--gold-strong); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.err { background: var(--bad); color: #fff; }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; }
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 14px; } }

.logo { width: 36px; height: 36px; flex: none; }
.brand { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; }
pre.receipt { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; background: var(--surface-2); padding: 10px; border-radius: 8px; overflow-x: auto; white-space: pre; }
