/* wok-splet — slog po smernicah znamke WOK Pad Thai (enaki žetoni kot wok.si) */
:root {
  --red: #EC1A41; --red-dark: #C81436; --red-tint: #FEF3F5;
  --ink: #231F20; --ink-2: #4D4A4B; --ink-3: #706D6E;
  --paper: #FFFFFF; --cream: #FBF5EA; --line: #F5EBD8; --fresh: #7FA83F; --fresh-tint: #F1F6E6;
  --font: "Source Sans 3", "Myriad Pro", "Segoe UI", Arial, sans-serif;
  --max: 980px; --pad: clamp(16px, 4vw, 40px);
}
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/source-sans-3-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/source-sans-3-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.45; }
a { color: var(--red-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); border-bottom: 2px solid var(--ink); }
.site-head .brand img { height: 44px; width: auto; }
.site-head nav a { margin-left: 18px; font-weight: 700; text-decoration: none; color: var(--ink); }
.site-head nav a:hover { color: var(--red); }
.testni-pas { background: #FFE9A8; color: var(--ink); text-align: center; font-weight: 700; padding: 8px var(--pad); border-bottom: 2px solid var(--ink); }
.status-pill { font-size: 15px; font-weight: 700; padding: 6px 12px; border: 2px solid var(--ink); }
.status-pill[data-state="odprto"] { border-color: var(--fresh); color: var(--fresh); }
.status-pill[data-state="zaprto"] { border-color: var(--red); color: var(--red); }
main { padding: 28px 0 56px; }
body.narocilo main { padding-bottom: 160px; } /* prostor za lepljivi povzetek */
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; }
h1 .sub { display: block; font-size: 20px; font-weight: 400; color: var(--ink-2); margin-top: 8px; }
h2 { font-size: 24px; margin: 36px 0 12px; font-weight: 800; }
h2 .num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: var(--red); color: #fff; margin-right: 10px; font-size: 18px; vertical-align: 3px; }
p.muted, .muted { color: var(--ink-3); }
.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 8px; }
.rule { height: 2px; background: var(--ink); margin: 20px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; font: inherit; font-size: 19px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--red); cursor: pointer; background: transparent; color: var(--red-dark); transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost:hover { background: var(--red-tint); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--cream); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--full { width: 100%; }

/* jedilnik */
.dishes { display: grid; gap: 14px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 18px; border: 2px solid var(--line); background: var(--cream); }
.dish[data-active="1"] { border-color: var(--ink); background: var(--paper); }
.dish h3 { margin: 0; font-size: 22px; }
.dish p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.dish .price { font-weight: 800; font-size: 22px; white-space: nowrap; }
.stepper { grid-column: 2; display: inline-flex; border: 2px solid var(--ink); background: var(--paper); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 700; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--red-tint); color: var(--red); }
.stepper output { width: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }

/* dnevi in okna */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-size: 17px; font-weight: 700; padding: 10px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip:hover { border-color: var(--red); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { font: inherit; font-size: 17px; font-weight: 700; padding: 12px 0; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; position: relative; }
.slot small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.slot[aria-pressed="true"] small { color: #fff; }
.slot[disabled] { border-color: var(--line); color: var(--ink-3); background: var(--cream); cursor: not-allowed; text-decoration: line-through; }
.slot[disabled] small { text-decoration: none; }
.load { display: block; margin: 10px 0 0; padding: 8px 12px; border: 2px solid var(--line); background: var(--cream); font-size: 16px; }
.load b { color: var(--red-dark); }

/* obrazec */
.form { display: grid; gap: 14px; max-width: 560px; }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 16px; }
label.field input, label.field textarea { font: inherit; font-size: 18px; padding: 12px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
label.field input:focus, label.field textarea:focus { outline: 3px solid var(--red-tint); border-color: var(--red); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
label.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.err { color: var(--red-dark); font-weight: 700; margin: 6px 0 0; min-height: 1.2em; }
.summary { position: sticky; bottom: 0; background: var(--paper); border-top: 2px solid var(--ink); padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary .total { font-size: 22px; font-weight: 800; }
.summary .meta { font-size: 15px; color: var(--ink-3); }
#placilo-okvir { margin-top: 12px; }
.notice { border: 2px solid var(--line); background: var(--cream); padding: 14px 16px; font-size: 15px; color: var(--ink-2); margin-top: 24px; }

/* status */
.big-num { font-size: clamp(64px, 18vw, 120px); line-height: 1; font-weight: 800; color: var(--red); margin: 0; }
.state { display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); font-weight: 700; }
.state[data-s="placano"] { border-color: var(--fresh); color: var(--fresh); }
.state[data-s="v_pripravi"] { border-color: #D98E04; color: #D98E04; }
.state[data-s="pripravljeno"] { background: var(--fresh); border-color: var(--fresh); color: #fff; }
.state[data-s="prevzeto"] { background: var(--ink); color: #fff; }
.state[data-s="rezervirano"] { border-color: var(--ink-3); color: var(--ink-3); }
.state[data-s="poteklo"], .state[data-s="neuspelo"], .state[data-s="stornirano"] { border-color: var(--red); color: var(--red); }
table.plain { border-collapse: collapse; width: 100%; max-width: 560px; }
table.plain td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.plain td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

/* kuhinja */
body.kuhinja { background: var(--cream); font-size: 20px; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 3px solid var(--ink); padding: 14px 16px; display: grid; gap: 10px; }
.card[data-s="pripravljeno"] { border-color: var(--fresh); }
.card[data-s="prevzeto"] { opacity: .5; }
.card .top { display: flex; justify-content: space-between; align-items: baseline; }
.card .num { font-size: 40px; font-weight: 800; color: var(--red); line-height: 1; }
.card .time { font-size: 28px; font-weight: 800; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 22px; }
.card ul li b { color: var(--red-dark); }
.card .note { background: var(--red-tint); padding: 6px 10px; font-weight: 700; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card .actions .btn { flex: 1; min-height: 56px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.toolbar .sep { flex: 1; }
.levels { display: inline-flex; border: 2px solid var(--ink); background: var(--paper); }
.levels button { font: inherit; font-size: 16px; font-weight: 700; padding: 10px 14px; border: 0; background: transparent; cursor: pointer; color: var(--ink); border-right: 2px solid var(--ink); }
.levels button:last-child { border-right: 0; }
.levels button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.levels button[data-raven="pavza"][aria-pressed="true"] { background: var(--red); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin-right: 6px; }
.dot.on { background: var(--fresh); }

/* admin */
body.admin { font-size: 16px; }
.admin h2 { font-size: 20px; margin-top: 28px; }
table.grid { border-collapse: collapse; width: 100%; font-size: 15px; }
table.grid th, table.grid td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { background: var(--cream); border-bottom: 2px solid var(--ink); }
table.grid input { font: inherit; padding: 6px 8px; border: 1px solid var(--ink-3); width: 100%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 700; }
.ok { color: var(--fresh); } .bad { color: var(--red-dark); }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); margin-top: 20px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 16px; border: 0; background: transparent; cursor: pointer; color: var(--ink-3); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -4px 0 var(--red); }
.panel { display: none; } .panel.on { display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; display: none; z-index: 50; }
.toast.on { display: block; }

footer.site-foot { border-top: 2px solid var(--ink); padding: 20px var(--pad); font-size: 15px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site-foot a { color: inherit; }
.login { max-width: 420px; margin: 40px auto; display: grid; gap: 14px; }
.login input { font: inherit; font-size: 20px; padding: 12px 14px; border: 2px solid var(--ink); width: 100%; }
@media (max-width: 640px) {
  .site-head nav a { margin-left: 12px; font-size: 15px; }
  .dish { grid-template-columns: 1fr auto; }
  .summary { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
