/* Talons — restorāna pasūtījumu sistēma.
   Krāsas: biešu sarkanais galvenajām darbībām, tērauda pelēkais virtuvei, papīra baltais taloniem. */
:root {
  --beet: #a3195b;
  --beet-dark: #7c1145;
  --beet-tint: #f8e9f0;
  --ink: #1c2326;
  --muted: #56646a;
  --line: #d3dadc;
  --mist: #edf0f1;
  --surface: #ffffff;
  --steel: #232e33;
  --steel-2: #2f3c42;
  --steel-line: #47585f;
  --paper: #fcfbf6;
  --new: #e9a800;
  --prep: #2c6bd9;
  --ready: #14875a;
  --late: #cf2f25;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.45 var(--font);
  color: var(--ink);
  background: var(--mist);
  font-variant-numeric: tabular-nums;
}
h1, h2, p { margin: 0; }
h1 { font-size: 1.5rem; line-height: 1.2; }
h2 { font-size: 1.125rem; line-height: 1.25; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 3px solid var(--prep); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); font-size: 0.875rem; }
.num { text-align: right; white-space: nowrap; }

/* ---------- pogas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-weight: 600; text-align: center;
}
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn-primary { background: var(--beet); border-color: var(--beet); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--beet-dark); border-color: var(--beet-dark); }
.btn-danger { background: var(--late); border-color: var(--late); color: #fff; }
.btn-small { min-height: 34px; padding: 4px 12px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-big { min-height: 54px; font-size: 1.125rem; }
.btn-ready { background: var(--ready); border-color: var(--ready); color: #fff; min-height: 48px; padding-inline: 22px; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: transparent; font-size: 1.1rem; }
.icon-btn:hover { background: var(--mist); }
.link-btn { border: 0; background: none; padding: 8px 0 0; color: var(--muted); text-decoration: underline; font-size: 0.875rem; }

/* ---------- augšējā josla ---------- */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 16px; background: var(--steel); color: #fff;
}
.topbar-main, .topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-title strong { font-size: 1.125rem; }
.topbar-title span { font-size: 0.8125rem; color: #b9c6cb; }
.topbar-user { font-size: 0.875rem; color: #b9c6cb; }
.topbar .btn { background: transparent; border-color: var(--steel-line); color: #fff; }
.topbar .btn:hover { border-color: #fff; }
.conn { padding: 4px 10px; border-radius: 99px; background: var(--late); color: #fff; font-size: 0.8125rem; font-weight: 700; }

/* ---------- sānu navigācija ar ikonu kvadrātiem ---------- */
#app.has-rail { --rail-h: 0px; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-content: start; min-height: calc(100dvh - var(--demo-h, 0px)); }
#app.has-rail > * { grid-column: 2; min-width: 0; }
#app.has-rail > .sidenav { grid-column: 1; grid-row: 1 / span 40; }
.sidenav { position: sticky; top: 0; z-index: 15; align-self: start; height: 100dvh; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; overflow-y: auto; scrollbar-width: none;
  background: #11181b; color: #b9c6cb; }
.sidenav::-webkit-scrollbar { display: none; }
.has-demo-bar .sidenav { padding-bottom: 64px; }
.sidenav-brand { display: grid; place-items: center; height: 44px; flex: none; }
.sidenav-btn { position: relative; flex: none; width: 80px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 2px;
  border: 0; border-radius: 12px; background: transparent; color: inherit; }
.sidenav-btn:hover { background: var(--steel-2); color: #fff; }
.sidenav-on, .sidenav-on:hover { background: #fff; color: var(--beet); }
.sidenav-btn .icon { width: 26px; height: 26px; }
.sidenav-label { font-size: 0.71875rem; font-weight: 700; line-height: 1.1; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidenav-badge { position: absolute; top: 6px; right: 10px; min-width: 22px; padding: 0 5px; border-radius: 99px; background: var(--ready); color: #fff; font-size: 0.75rem; font-weight: 800; line-height: 22px; text-align: center; }
.sidenav-divider { flex: none; margin: 8px 4px 2px; padding-top: 10px; border-top: 1px solid var(--steel-line); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: #7d9098; }
@media (max-width: 700px) {
  /* Telefonā navigācija ir josla ekrāna apakšā, ko var ritināt uz sāniem. */
  #app.has-rail { --rail-h: 68px; display: block; padding-bottom: var(--rail-h); }
  .sidenav { position: fixed; top: auto; left: 0; right: 0; bottom: var(--demo-h, 0px); z-index: 30; height: calc(var(--rail-h) + env(safe-area-inset-bottom, 0px)); flex-direction: row; align-items: stretch; gap: 2px;
    padding: 4px max(6px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); overflow-x: auto; overflow-y: hidden; box-shadow: 0 -4px 16px rgb(0 0 0 / 0.25); }
  .has-demo-bar .sidenav { padding-bottom: 4px; }
  .sidenav-brand { display: none; }
  .sidenav-btn { width: auto; min-width: 72px; height: auto; flex: 1 0 72px; gap: 3px; }
  .sidenav-btn .icon { width: 24px; height: 24px; }
  .sidenav-divider { width: 1px; margin: 8px 4px; padding: 0; border-top: 0; border-left: 1px solid var(--steel-line); font-size: 0; }
  .sidenav-badge { top: 2px; right: 12px; }
  #app.has-rail .cart-bar { bottom: calc(12px + var(--rail-h) + var(--demo-h, 0px) + env(safe-area-inset-bottom, 0px)); }
  #app.has-rail .cart { bottom: calc(var(--rail-h) + var(--demo-h, 0px)); }
}

/* ---------- lapas ---------- */
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 16px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lead { max-width: 68ch; color: var(--muted); margin-bottom: 16px; }
.empty { padding: 24px 16px; color: var(--muted); max-width: 60ch; }
.inline, .inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-form { margin-bottom: 16px; }

.screens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 0.875rem; }
.tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  position: relative; padding: 12px 16px; border: 0; background: none; white-space: nowrap;
  font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-on { color: var(--beet); border-bottom-color: var(--beet); }
.tabs-main { margin: 0; padding: 0 8px; background: var(--surface); }
.tabs-main .tab { flex: 1; max-width: 280px; padding-block: 14px; font-size: 1rem; }
.badge { display: inline-block; min-width: 22px; margin-left: 8px; padding: 0 6px; border-radius: 99px; background: var(--ready); color: #fff; font-size: 0.8125rem; line-height: 22px; text-align: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; padding: 12px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat span { font-size: 0.8125rem; color: var(--muted); }
.stat strong { font-size: 1.5rem; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .table-wrap { border: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th.num { text-align: right; }
.table th { text-align: left; font-size: 0.8125rem; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-off td { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
td.actions { display: table-cell; text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 4px; }
.item-list { margin: 0; padding: 0; list-style: none; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; background: var(--mist); }
.pill-ok { background: #dcf1e7; color: #0c5c3c; }
.pill-off { background: var(--mist); color: var(--muted); }
.pill-warn { background: #fdf0c4; color: #6b4d00; }
.pill-new { background: #dde8fb; color: #1b458f; }
.pill-bad { background: #fbdcda; color: #8f1d16; }
.pill-preparing { background: #dde8fb; color: #1b458f; }
.pill-ready { background: var(--ready); color: #fff; }
.pill-kitchen { background: #e3e8ea; color: var(--steel); }
.pill-bar { background: var(--beet-tint); color: var(--beet-dark); }

.switch { display: inline-flex; align-items: center; gap: 8px; }
.switch input { width: 20px; height: 20px; accent-color: var(--ready); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.chip-btn { border: 0; background: var(--mist); border-radius: 6px; padding: 4px 8px; font-size: 0.8125rem; }

/* ---------- veidlapas un dialogi ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], input[type="tel"], select {
  min-height: 42px; padding: 8px 12px; border: 1px solid #9aa7ac; border-radius: var(--radius); background: #fff; max-width: 100%;
}
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.field-check input { width: 20px; height: 20px; accent-color: var(--beet); }
.hint { font-size: 0.8125rem; color: var(--muted); }
.form-error { margin-bottom: 12px; padding: 10px 12px; border-radius: var(--radius); background: #fbdcda; color: #8f1d16; font-weight: 600; }

.dialog { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 0; border-radius: 12px; color: var(--ink); }
.dialog-wide { width: min(680px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgb(28 35 38 / 0.6); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-text { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.code { padding: 12px; background: var(--steel); color: #e8eef0; border-radius: var(--radius); font: 0.8125rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }

/* ---------- paziņojumi ---------- */
#toasts { position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / 0.3); }
.toast-text { flex: 1; font-weight: 600; }
.toast-error { background: var(--late); }
.toast-ready { background: var(--ready); padding-block: 18px; font-size: 1.1875rem; }
.toast-close { border: 0; background: none; color: inherit; width: 36px; height: 36px; font-size: 1rem; border-radius: 6px; }
.toast .btn { color: var(--ink); border: 0; }

/* ---------- pieslēgšanās ---------- */
.login-body { background: var(--steel); }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; background: var(--steel); }
.login-side { display: flex; flex-direction: column; padding: 24px clamp(20px, 4vw, 56px) 48px; color: #fff; }
.login-back { align-self: flex-start; padding: 8px 0; border: 0; background: none; color: #b9c6cb; font-weight: 600; }
.login-back:hover { color: #fff; }
.login-side-body { margin: auto 0; max-width: 400px; }
.login-brand { font-size: 2.25rem; }
.login-tagline { margin: 8px 0 36px; font-size: 1.1875rem; color: #d5dee1; }
.login-side-label { margin-bottom: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb0b6; }
.login-roles { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--steel-line); }
.login-roles li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 11px 0; border-bottom: 1px solid var(--steel-line); }
.login-roles span { color: #b9c6cb; font-size: 0.9375rem; }
.login-side-note { font-size: 0.875rem; color: #9fb0b6; max-width: 44ch; }
.login-main { display: grid; place-items: center; padding: 32px 16px 96px; background: var(--mist); }
.login-card { width: min(420px, 100%); padding: 32px 28px 40px; background: var(--paper); border-radius: 4px 4px 0 0; border-top: 8px solid var(--beet); box-shadow: 0 12px 40px rgb(28 35 38 / 0.12);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; }
.login-card h1 { font-size: 1.75rem; }
.login-card input { width: 100%; min-height: 48px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--mist); font-size: 0.8125rem; font-weight: 600; }
.login-help { margin-top: 12px; }
@media (max-width: 820px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-side { padding-bottom: 20px; }
  .login-side-body { margin: 12px 0 0; }
  .login-tagline { margin-bottom: 0; }
  .login-side-label, .login-roles, .login-side-note { display: none; }
  .login-main { padding-top: 20px; place-items: start center; }
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 18px; height: 26px; background: var(--beet); border-radius: 2px 2px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 6px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 6px 100%; }
.login-lead { margin: 6px 0 22px; color: var(--muted); }

/* ---------- apkalpošana ---------- */
.page-waiter { max-width: 1240px; padding-top: 16px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.table-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.table-legend { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--mist); }
.dot:not(:first-child) { margin-left: 8px; }
.dot-busy { background: var(--beet-tint); border-color: var(--beet); }
.dot-reserved { background: #fff1c2; border-color: var(--new); }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.table-btn { min-height: 50px; padding: 4px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); font-size: 0.9375rem; line-height: 1.15; }
.table-btn:hover { border-color: var(--beet); background: var(--beet-tint); }
.table-picker .inline-form { margin: 0; }
.table-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.125rem; }
.search { width: 100%; margin-bottom: 10px; }
.cat-tabs, .filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
/* Kategoriju kvadrāti viesmīļa ekrānā */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.cat-tile { position: relative; min-height: 68px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 12px; text-align: left;
  border: 1px solid var(--line); border-top: 6px solid var(--steel); border-radius: var(--radius); background: var(--surface); }
.cat-tile-bar { border-top-color: var(--beet); }
.cat-tile:hover { border-color: var(--ink); border-top-color: var(--steel); background: var(--mist); }
.cat-tile-bar:hover { border-top-color: var(--beet); background: var(--beet-tint); }
.cat-tile-name { font-size: 0.9375rem; font-weight: 800; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; padding-right: 22px; }
.cat-tile-meta { font-size: 0.75rem; color: var(--muted); }
.cat-tile-count, .dish-count { position: absolute; top: 6px; right: 6px; min-width: 24px; padding: 0 6px; border-radius: 99px; background: var(--beet); color: #fff; font-size: 0.8125rem; font-weight: 800; line-height: 24px; text-align: center; }
.cat-crumb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; }
.cat-back { min-height: 44px; }
.cat-crumb h2 { font-size: 1.125rem; }
/* Ēdienkartes pozīcijas: kompaktas pogas režģī */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.dish { position: relative; min-height: 68px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dish:hover:not(:disabled) { border-color: var(--beet); background: var(--beet-tint); }
.dish:active:not(:disabled) { transform: scale(0.97); }
.dish-on { border-color: var(--beet); box-shadow: inset 0 -3px 0 var(--beet); }
.dish-name { font-weight: 700; font-size: 0.9375rem; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; padding-right: 22px; }
.dish-price { font-size: 0.8125rem; color: var(--muted); }
.dish-price .menu-item-left { margin-left: 6px; font-size: 0.6875rem; }
.dish:disabled .dish-name { text-decoration: line-through; }
.dish-added { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--rail-h, 0px) + var(--demo-h, 0px)); max-width: calc(100vw - 32px);
  padding: 8px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 20px rgb(0 0 0 / 0.3); pointer-events: none; }
.menu-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
/* ---------- rezervācijas ---------- */
.res-day { margin: 6px 0 12px; }
.res-day::first-letter { text-transform: uppercase; }
.res-list { display: grid; gap: 10px; }
.res-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.res-holding { border-color: var(--new); box-shadow: inset 5px 0 0 var(--new); }
.res-cancelled, .res-arrived { background: transparent; }
.res-cancelled .res-time, .res-cancelled strong { color: var(--muted); text-decoration: line-through; }
.res-time { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.01em; }
.res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.res-top strong { font-size: 1.0625rem; }
.res-meta { margin-top: 2px; }
.res-note { width: fit-content; margin: 4px 0; padding: 2px 8px; background: #ffe680; font-weight: 600; font-size: 0.9375rem; }
.res-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.res-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.res-facts div { padding: 10px 12px; background: var(--mist); border-radius: var(--radius); }
.res-facts dt { font-size: 0.8125rem; color: var(--muted); }
.res-facts dd { margin: 0; font-weight: 700; font-size: 1.125rem; }
.filter input[type="date"] { flex: none; min-height: 42px; border-radius: 99px; }
.cat { flex: none; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 600; white-space: nowrap; }
.cat-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.menu-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--mist); }
.menu-item:last-child { border-bottom: 0; }
.menu-item-on { background: var(--beet-tint); box-shadow: inset 4px 0 0 var(--beet); }
.menu-item-main { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 14px; border: 0; background: none; text-align: left; }
.menu-item-name { font-weight: 600; }
.menu-item-price { color: var(--muted); white-space: nowrap; }
.menu-item-off .menu-item-name { text-decoration: line-through; }
.stepper { display: inline-flex; align-items: center; flex: none; align-self: center; margin-right: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.375rem; font-weight: 700; }
.stepper button:hover { background: var(--mist); }
.stepper span { min-width: 32px; text-align: center; font-weight: 800; font-size: 1.0625rem; }

.cart { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-close { display: none; }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 16px; }
.cart-line { padding: 12px 0; border-bottom: 1px solid var(--mist); }
.cart-line-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.cart-line-sum { white-space: nowrap; }
.cart-line-bottom { display: flex; gap: 8px; align-items: center; }
.cart-line-bottom .stepper { margin: 0; }
.note-input { flex: 1; min-width: 0; width: 100%; }
.cart-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.125rem; }
.cart-total strong { font-size: 1.5rem; }
.cart-bar { display: none; }

.orders-pane { max-width: 760px; margin: 0 auto; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.order-card-ready { border-color: var(--ready); box-shadow: inset 5px 0 0 var(--ready); }
.order-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.order-card-head h2 { font-size: 1.25rem; }
.order-no { margin-left: 8px; color: var(--muted); font-weight: 600; font-size: 1rem; }
.order-part { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mist); }
.order-part-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 2px; }
.order-part-info { min-width: 0; }
.order-part .btn { flex: none; }
.order-part-items { color: var(--muted); font-size: 0.9375rem; }
.order-part-served .order-part-top strong { color: var(--muted); }
.pill-served { background: var(--mist); color: var(--muted); }
.order-card-served { border-color: var(--line); }
.order-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--mist); }
.order-total { display: flex; align-items: baseline; gap: 10px; }
.order-total strong { font-size: 1.375rem; }
.order-card-actions { display: flex; gap: 8px; }
.order-card .hint { margin-top: 8px; }
.table-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.table-busy { background: var(--beet-tint); border-color: var(--beet); }
.table-btn span { font-size: 0.6875rem; font-weight: 700; }
.table-btn strong { overflow-wrap: break-word; hyphens: auto; }
.table-busy span { color: var(--beet-dark); }
.table-reserved { background: #fff1c2; border-color: var(--new); }
.table-reserved span { color: #6b4d00; }
.table-reserved:hover { background: #ffe9a3; border-color: #b98600; }
.table-next { color: var(--muted); font-weight: 600; }
.table-other { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.table-other summary { cursor: pointer; padding: 4px 0; }
.table-other .inline-form { margin-top: 6px; }
.table-adding { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 99px; background: var(--beet-tint); color: var(--beet-dark); font-size: 0.8125rem; font-weight: 700; }
.table-chosen { flex-wrap: wrap; }
/* bufete: pasūtījuma numurs viesim */
.number-box { text-align: center; }
.number-label { font-weight: 600; color: var(--muted); }
.number-big { margin: 6px 0 10px; font-size: clamp(3.5rem, 18vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--beet); }
.number-box .btn { margin-top: 18px; }
.discount-card { margin-top: 24px; }
.discount-card .inline-form { margin: 16px 0 0; }
.discount-card input { width: 110px; }
/* atlaide norēķinu logā */
.discount-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.discount-row .cat { min-height: 40px; padding: 6px 14px; }
.discount-label { font-weight: 700; font-size: 0.875rem; margin-right: 4px; }
.bill-sub { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.bill-discount, .bill li.bill-discount { color: #0c5c3c; font-weight: 700; }
.payer-was { margin-right: 8px; color: var(--muted); font-size: 0.9375rem; }
.order-total .pill { margin-left: 4px; }
.discount-chips .chip { font-size: 1.0625rem; }
/* dalīts rēķins */
.split-box { margin-bottom: 10px; }
.split-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--muted); }
.split-toggle input { width: 20px; height: 20px; accent-color: var(--beet); }
.split-payers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 10px; background: var(--beet-tint); border-radius: var(--radius); }
.split-payers .cat { min-height: 40px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 8px; }
.split-payers small { font-weight: 600; opacity: 0.75; }
.split-hint { font-size: 0.8125rem; font-weight: 700; color: var(--beet-dark); margin-right: 2px; }
.cart-payer { display: flex; justify-content: space-between; align-items: baseline; margin: 10px -16px 0; padding: 6px 16px; background: var(--beet-tint); color: var(--beet-dark); }
.payer-move { flex: none; min-height: 44px; padding: 4px 8px; font-weight: 700; }
.order-split { list-style: none; margin: 0; padding: 10px 0; border-top: 1px solid var(--mist); display: grid; gap: 6px; }
.order-split li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.order-split li span:nth-child(2) { font-weight: 700; white-space: nowrap; }
.payer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.payer-card { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.payer-card .bill { flex: 1; max-height: 30vh; }
.payer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.payer-head h3 { margin: 0; font-size: 1rem; }
.payer-head strong { font-size: 1.375rem; }
.payer-paid { background: #dcf1e7; border-color: #9fd3b9; }
.payer-done { font-weight: 700; color: #0c5c3c; }
.payer-card .btn-pay { min-height: 52px; font-size: 1rem; }
.payer-rest { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bill { list-style: none; margin: 0 0 12px; padding: 0; max-height: 40vh; overflow-y: auto; }
.bill li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--mist); }
.bill li span:last-child { white-space: nowrap; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 1.0625rem; }
.bill-total strong { font-size: 1.75rem; }
.bill-ask { font-weight: 700; margin-bottom: 10px; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pay { min-height: 64px; font-size: 1.125rem; background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-pay:hover:not(:disabled) { background: var(--beet); border-color: var(--beet); }
.chit-round { margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.8125rem; }
.queue { padding: 16px; }
.queue-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; margin-bottom: 16px; color: #fff; font-size: 1.25rem; border-bottom: 4px solid var(--new); }
.chit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; align-items: start; }
.rail-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rail-2 .rail-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.slip-round { text-align: center; font-weight: 700; }

/* ---------- virtuves un bāra ekrāns ---------- */
.station-body { background: var(--steel); }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; align-items: start; }
.rail-col h2 { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; margin-bottom: 14px; color: #fff; font-size: 1.25rem; border-bottom: 4px solid var(--steel-line); }
.rail-col-new h2 { border-color: var(--new); }
.rail-col-preparing h2 { border-color: var(--prep); }
.rail-col-ready h2 { border-color: var(--ready); }
.rail-count { min-width: 32px; padding: 0 8px; border-radius: 99px; background: var(--steel-2); text-align: center; font-size: 1rem; line-height: 30px; }
.rail-list { display: flex; flex-direction: column; gap: 16px; }
.rail-empty { color: #9fb0b6; padding: 8px 2px; }

/* Talons izskatās kā no printera noplēsta papīra lente ar robotu apakšmalu. */
.chit {
  --edge: var(--new);
  background: var(--paper); color: var(--ink);
  border-top: 8px solid var(--edge); border-radius: 3px 3px 0 0;
  padding: 12px 14px 26px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.chit-preparing { --edge: var(--prep); }
.chit-ready { --edge: var(--ready); }
.chit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chit-table { font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.chit-time { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.2; }
.chit-time strong { padding: 2px 8px; border-radius: 4px; background: var(--mist); font-size: 1.0625rem; white-space: nowrap; }
.chit-time span { font-size: 0.8125rem; color: var(--muted); }
.chit-late .chit-time strong { background: var(--late); color: #fff; }
.chit-meta { margin-top: 2px; color: var(--muted); font-size: 0.875rem; }
.chit-items { list-style: none; margin: 12px 0; padding: 10px 0 0; border-top: 2px dashed #b9c2c5; }
.chit-items li { display: flex; gap: 10px; padding: 5px 0; font-size: 1.25rem; line-height: 1.25; }
.chit-qty { flex: none; min-width: 2.2ch; font-weight: 800; }
.chit-name { font-weight: 600; }
.chit-name em { display: block; width: fit-content; margin-top: 3px; padding: 1px 6px; background: #ffe680; font-style: normal; font-weight: 700; font-size: 1rem; }
.chit-note { margin-bottom: 12px; padding: 8px 10px; background: #ffe680; font-weight: 700; }
.chit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-chit { flex: 1 1 auto; min-height: 52px; background: var(--ink); border-color: var(--ink); color: #fff; font-size: 1.0625rem; }
.btn-chit-ready { background: var(--ready); border-color: var(--ready); }
.btn-chit-alt { min-height: 52px; background: transparent; border-color: #9aa7ac; }
.chit-fresh { animation: fresh 1s ease-in-out 4; }
@keyframes fresh { 50% { background: #fff1b8; } }

/* ---------- rādītāji un grafiki ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.01em; }
.kpi-note { font-size: 0.8125rem; color: var(--muted); }
.kpi-good { box-shadow: inset 4px 0 0 var(--ready); }
.kpi-bad { box-shadow: inset 4px 0 0 var(--late); }
.kpi-bad .kpi-value { color: var(--late); }
.kpi-up { color: var(--ready); font-weight: 600; }
.kpi-down { color: var(--late); font-weight: 600; }
.card-title { margin-bottom: 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-grid > .card { margin-bottom: 16px; }
.chart-box { min-width: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: var(--mist); stroke-width: 1; }
.chart-grid text, .chart-x { fill: var(--muted); font-size: 12px; }
.chart-bar rect:not(.chart-hit) { fill: #c995ae; transition: fill 0.15s; }
.chart-bar-on rect:not(.chart-hit), .chart-bar:hover rect:not(.chart-hit), .chart-bar:focus rect:not(.chart-hit) { fill: var(--beet); }
.chart-bar:focus { outline: none; }
.chart-readout { min-height: 1.5em; margin-top: 6px; font-weight: 600; font-size: 0.9375rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.hbar-label { font-weight: 600; overflow-wrap: anywhere; }
.hbar-value { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.hbar-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 99px; background: var(--beet); }
.hbar-kitchen, .split-kitchen { background: var(--steel); }
.hbar-bar { background: var(--beet); }
.split-track { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--mist); }
.split-seg { display: block; height: 100%; }
.split-bar { background: var(--beet); }
.split-cash { background: var(--ready); }
.split-open { background: var(--new); }
.card-title-next { margin-top: 22px; }
.split-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; }
.split-legend > div { display: flex; align-items: center; gap: 8px; }
.split-dot { width: 10px; height: 10px; border-radius: 50%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.facts div { padding: 10px 12px; background: var(--mist); border-radius: var(--radius); }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-size: 1.125rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.toolbar .filter { padding-bottom: 0; }
.list-sum { margin-bottom: 8px; }
.log-cat { margin-right: 4px; font-size: 0.75rem; }
.page-head select { min-height: 42px; }
/* ---------- noliktava ---------- */
.stock-list { display: grid; gap: 10px; margin-bottom: 20px; }
.stock-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 20px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stock-low { border-color: var(--late); box-shadow: inset 4px 0 0 var(--late); }
.stock-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.stock-name strong { font-size: 1.0625rem; }
.stock-qty { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; min-width: 110px; }
.stock-qty strong { font-size: 1.625rem; }
.stock-low .stock-qty strong { color: var(--late); }
.stock-qty span { color: var(--muted); }
.stock-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn-stock-in { background: var(--ready); border-color: var(--ready); color: #fff; }
.stock-qty { flex-direction: column; align-items: flex-end; gap: 0; }
.stock-qty > div { display: flex; align-items: baseline; gap: 6px; }
.stock-days { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.stock-low .stock-days { color: var(--late); font-weight: 600; }
.stock-search { width: min(280px, 100%); margin: 0; }
.stock-warn { max-width: none; }
.kpi-text { font-size: 1.25rem; line-height: 1.35; overflow-wrap: anywhere; }
.page-narrow { max-width: 760px; }
.add-form { display: flex; flex-direction: column; gap: 12px; }
.add-now, .add-after { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--mist); }
.add-now strong { font-size: 1.5rem; }
.add-after { background: #dcf1e7; color: #0c5c3c; }
.add-after strong { font-size: 1.25rem; }
.add-label { font-weight: 600; margin-bottom: -6px; }
.add-stepper { display: grid; grid-template-columns: 60px 1fr 60px; gap: 8px; }
.add-stepper button { min-height: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 1.75rem; font-weight: 700; }
.add-stepper button:hover { border-color: var(--muted); }
.add-stepper input { min-height: 60px; width: 100%; text-align: center; font-size: 1.75rem; font-weight: 800; }
.add-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.add-form .field { margin: 0; }
.add-form .field input { width: 100%; }
/* sastāvdaļas ēdienkartē */
.field-label { font-weight: 600; font-size: 0.9375rem; }
.recipe-rows { display: grid; gap: 6px; margin-bottom: 8px; }
.recipe-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 36px 40px; gap: 6px; align-items: center; }
.recipe-row select, .recipe-row input { width: 100%; min-width: 0; }
.recipe-unit { color: var(--muted); font-weight: 600; }
.recipe-none { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.recipe-line { margin-top: 2px; }
.recipe-left { margin-left: 10px; padding: 1px 8px; border-radius: 99px; background: var(--mist); white-space: nowrap; }
.recipe-left-low { background: #fbdcda; color: #8f1d16; font-weight: 700; }
.menu-item-left { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 99px; background: #fdf0c4; color: #6b4d00; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.menu-item-out { background: #fbdcda; color: #8f1d16; }
.stock-plus { color: #0c5c3c; font-weight: 700; }
.stock-minus { color: #8f1d16; font-weight: 700; }
.stock-delete { margin-right: auto; color: var(--late); }
.field textarea { padding: 8px 12px; border: 1px solid #9aa7ac; border-radius: var(--radius); font: inherit; }
.nowrap { white-space: nowrap; }
.pill-btn { padding: 0; border: 0; background: none; border-radius: 99px; }
.pill-btn:hover .pill { text-decoration: underline; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.legend .split-dot + * { margin-right: 8px; }

/* ---------- demo versija ---------- */
.demo-note { max-width: 68ch; margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius); background: #fdf0c4; color: #5a4100; }
.demo-accounts { margin-top: 22px; padding-top: 16px; border-top: 2px dashed #c9cfd1; }
.demo-accounts p { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; }
.demo-accounts code { padding: 1px 5px; background: var(--mist); border-radius: 4px; }
.demo-account-list { display: grid; gap: 6px; }
.demo-account { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.demo-account:hover { border-color: var(--beet); background: var(--beet-tint); }
.demo-account span { color: var(--muted); font-size: 0.8125rem; text-align: right; }
.demo-bar {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: #11181b; color: #e8eef0; font-size: 0.8125rem; box-shadow: 0 -4px 16px rgb(0 0 0 / 0.25);
}
.demo-bar strong { padding: 2px 8px; border-radius: 4px; background: #ffd23f; color: #11181b; letter-spacing: 0.06em; }
.demo-bar-label { color: #9fb0b6; }
.demo-bar button { min-height: 32px; padding: 3px 10px; border: 1px solid #47585f; border-radius: 6px; background: transparent; color: #fff; font-weight: 600; }
.demo-bar button:hover { border-color: #fff; }
.demo-bar button[aria-pressed="true"] { background: #fff; color: #11181b; border-color: #fff; }
.demo-bar .demo-reset { margin-left: auto; color: #9fb0b6; }
.has-demo-bar { --demo-h: 48px; }
.has-demo-bar body { padding-bottom: var(--demo-h); }
.has-demo-bar .cart-bar { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
.slip-preview { margin: 0 auto 14px; width: min(320px, 100%); padding: 16px 14px 28px; background: #fff; color: #000; box-shadow: 0 2px 12px rgb(0 0 0 / 0.18);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.slip-preview .slip { font: 13px/1.35 "Courier New", ui-monospace, monospace; }
.slip-preview .slip-station, .slip-preview .slip-title { text-align: center; font-weight: 700; font-size: 20px; line-height: 1.15; }
.slip-preview .slip-meta { text-align: center; font-size: 11px; margin-top: 4px; }
.slip-preview hr { border: 0; border-top: 1px dashed #000; margin: 8px 0; }
.slip-preview .slip-item { font-size: 16px; font-weight: 700; margin: 4px 0; }
.slip-preview .slip-note { font-size: 13px; padding-left: 14px; }
.slip-preview .slip-order-note { font-size: 14px; font-weight: 700; }

/* ---------- sākumlapa ---------- */
.lp-body { background: var(--surface); }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lp-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgb(28 37 41 / 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.lp-nav-in { display: flex; align-items: center; gap: 12px 28px; min-height: 64px; }
.lp-brand { color: #fff; text-decoration: none; font-size: 1.5rem; }
.lp-links { display: flex; gap: 4px 26px; margin-left: auto; }
.lp-links a { color: #d5dee1; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 8px 0; }
.lp-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.lp-login { background: #fff; border-color: #fff; color: var(--ink); }

.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 0;
  background: radial-gradient(900px 480px at 82% 18%, rgb(163 25 91 / 0.34), transparent 70%), radial-gradient(700px 420px at 0% 100%, rgb(44 107 217 / 0.16), transparent 70%), var(--steel); }
.lp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask: linear-gradient(#000, transparent 85%); mask: linear-gradient(#000, transparent 85%); }
.lp-hero > * { position: relative; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-eyebrow { width: fit-content; margin-bottom: 18px; padding: 5px 12px; border: 1px solid rgb(240 169 200 / 0.4); border-radius: 99px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: #f6bdd6; background: rgb(163 25 91 / 0.22); }
.lp-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.lp-hero h1 span { color: #f59ac3; }
.lp-sub { margin: 22px 0 28px; max-width: 54ch; font-size: 1.1875rem; line-height: 1.5; color: #d5dee1; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta .btn { text-decoration: none; padding-inline: 26px; border-radius: 12px; }
.lp-cta .btn-primary { box-shadow: 0 10px 30px rgb(163 25 91 / 0.45); }
.lp-ghost { background: rgb(255 255 255 / 0.06); border-color: var(--steel-line); color: #fff; }
.lp-ghost:hover:not(:disabled) { border-color: #fff; }
.lp-fine { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.lp-hero .lp-fine { color: #9fb0b6; }
.lp-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 56px 0 0; padding: 20px 0 22px; border-top: 1px solid rgb(255 255 255 / 0.12); color: #c6d2d6; font-weight: 600; font-size: 0.9375rem; }
.lp-strip li { display: flex; align-items: center; gap: 8px; }
.lp-strip .icon { width: 18px; height: 18px; color: #f59ac3; }

/* Pasūtījums, kas sadalās divos talonos */
.lp-split { display: grid; gap: 0; justify-items: center; min-width: 0; }
.lp-order { width: min(340px, 100%); padding: 14px 16px 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); }
.lp-order-head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 800; }
.lp-order-head span:last-child { font-weight: 600; color: var(--muted); }
.lp-order ul { list-style: none; margin: 0; padding: 6px 0 10px; }
.lp-order li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.9375rem; }
.lp-order li span:last-child { color: var(--muted); white-space: nowrap; }
.lp-order-send { padding: 11px; border-radius: 10px; background: var(--beet); color: #fff; text-align: center; font-weight: 700; }
.lp-arrows { display: grid; grid-template-columns: 1fr 1fr; width: min(440px, 100%); height: 64px; }
.lp-arrows span { position: relative; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b9c6cb; }
.lp-arrows span::before { content: ""; position: absolute; top: 4px; bottom: 4px; width: 2px; background: repeating-linear-gradient(#8fa3ab 0 6px, transparent 6px 11px); background-size: 2px 22px; animation: lp-drip 0.9s linear infinite; }
@keyframes lp-drip { to { background-position: 0 22px; } }
.lp-arrows span:first-child::before { left: 30%; transform: rotate(18deg); }
.lp-arrows span:last-child::before { right: 30%; transform: rotate(-18deg); }
.lp-arrows span:first-child { padding-left: 46%; }
.lp-arrows span:last-child { padding-right: 46%; }
.lp-chits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(480px, 100%); align-items: start; }
.lp-chit { padding: 10px 12px 22px; background: var(--paper); color: var(--ink); border-top: 7px solid var(--new); border-radius: 3px 3px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.lp-chit-kitchen { transform: rotate(-1.5deg); }
.lp-chit-bar { transform: rotate(1.5deg); border-top-color: var(--beet); margin-top: 14px; }
.lp-chit-station { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lp-chit-table { font-size: 1.375rem; font-weight: 800; line-height: 1.15; }
.lp-chit ul { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 2px dashed #b9c2c5; }
.lp-chit li { display: flex; gap: 8px; padding: 3px 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.lp-chit em { display: block; width: fit-content; margin-top: 2px; padding: 0 5px; background: #ffe680; font-style: normal; font-size: 0.8125rem; font-weight: 700; }

/* sadaļas */
.lp-section { padding: 84px 0; }
.lp-alt { background: var(--mist); }
.lp-kicker { margin-bottom: 10px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--beet); }
.lp-section h2 { max-width: 22ch; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.lp-section h3 { margin: 0; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.lp-lead { margin-top: 12px; max-width: 62ch; font-size: 1.0625rem; color: var(--muted); }
.lp-ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-ticks li { position: relative; padding-left: 26px; }
.lp-ticks li::before { content: ""; position: absolute; left: 3px; top: 0.4em; width: 11px; height: 6px; border-left: 2.5px solid var(--ready); border-bottom: 2.5px solid var(--ready); transform: rotate(-45deg); }
.lp-fig { min-width: 0; }

/* Kā tas strādā: soļi ar bultiņām */
.lp-flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: stretch; }
.lp-step { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 2px rgb(28 35 38 / 0.05), 0 12px 32px rgb(28 35 38 / 0.06); }
.lp-step-art { display: grid; place-items: center; min-height: 276px; padding: 20px 16px; background: linear-gradient(160deg, #eef1f2, #e3e8ea); border-bottom: 1px solid var(--line); }
.lp-step-text { padding: 18px 18px 20px; }
.lp-step h3 { display: flex; align-items: center; gap: 10px; }
.lp-step-no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--beet); color: #fff; font-size: 0.875rem; font-weight: 800; }
.lp-dots { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; color: var(--muted); font-size: 0.9375rem; }
.lp-dots li { position: relative; padding-left: 16px; }
.lp-dots li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--beet); }
.lp-flow-arrow { display: grid; place-items: center; }
.lp-flow-arrow span { position: relative; width: 24px; height: 2px; background: var(--beet); }
.lp-flow-arrow span::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--beet); border-right: 2px solid var(--beet); transform: rotate(45deg); }

/* 1. solis: telefons */
.lp-phone { width: 184px; padding: 12px 10px 10px; border: 5px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: 0 14px 30px rgb(28 35 38 / 0.2); }
.lp-phone-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 8px; font-size: 0.8125rem; }
.lp-phone-head span { color: var(--muted); font-size: 0.75rem; }
.lp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-tiles span { display: grid; place-items: center; aspect-ratio: 1.15; border: 1px solid var(--line); border-radius: 8px; font-size: 0.625rem; font-weight: 700; text-align: center; }
.lp-tiles .on { background: var(--beet-tint); border-color: var(--beet); color: var(--beet-dark); }
.lp-phone-send { margin-top: 8px; padding: 8px 4px; border-radius: 8px; background: var(--beet); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }
/* 2. solis: sazarojums */
.lp-fork { width: min(210px, 100%); display: grid; justify-items: center; }
.lp-fork-top { padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.875rem; }
.lp-fork-lines { width: 50%; height: 30px; margin-top: 12px; border: 2px dashed var(--muted); border-bottom: 0; border-radius: 10px 10px 0 0; position: relative; }
.lp-fork-lines::before { content: ""; position: absolute; left: 50%; top: -14px; height: 12px; border-left: 2px dashed var(--muted); }
.lp-fork-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.lp-fork-end { display: grid; justify-items: center; gap: 1px; padding: 10px 6px; border-radius: 4px; background: var(--paper); border-top: 5px solid var(--new); box-shadow: 0 6px 16px rgb(28 35 38 / 0.12); font-size: 0.8125rem; }
.lp-fork-end.b { border-top-color: var(--beet); }
.lp-fork-end .icon { width: 22px; height: 22px; }
.lp-fork-end span { color: var(--muted); font-size: 0.75rem; }
.lp-fork-print { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.lp-fork-print .icon { width: 16px; height: 16px; }
/* 3. solis: virtuves ekrāns */
.lp-screen { width: min(200px, 100%); padding: 10px; border-radius: 12px; background: var(--steel); box-shadow: 0 14px 30px rgb(28 35 38 / 0.25); }
.lp-screen-bar { display: flex; justify-content: space-between; color: #fff; font-size: 0.75rem; padding: 0 2px 8px; }
.lp-screen-bar span { color: #9fb0b6; }
.lp-screen-chit { padding: 8px 10px 10px; background: var(--paper); border-top: 5px solid var(--new); border-radius: 3px; font-size: 0.8125rem; font-weight: 600; line-height: 1.5; }
.lp-screen-chit-head { display: flex; justify-content: space-between; margin-bottom: 4px; padding-bottom: 4px; border-bottom: 2px dashed #b9c2c5; }
.lp-screen-chit-head span { color: var(--late); font-weight: 700; }
.lp-screen-ready { margin-top: 8px; padding: 7px; border-radius: 6px; background: var(--ready); color: #fff; text-align: center; font-weight: 700; }
/* 4. solis: signāls un apmaksa */
.lp-notify { width: min(210px, 100%); display: grid; gap: 12px; }
.lp-toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ready); color: #fff; box-shadow: 0 10px 24px rgb(20 135 90 / 0.35); font-size: 0.8125rem; line-height: 1.3; }
.lp-toast b, .lp-toast span { display: block; }
.lp-bell { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgb(255 255 255 / 0.3); animation: lp-ring 1.6s ease-out infinite; }
@keyframes lp-ring { 70%, 100% { box-shadow: 0 0 0 12px rgb(255 255 255 / 0); } }
.lp-pay { padding: 10px 12px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgb(28 35 38 / 0.1); }
.lp-pay-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.75rem; color: var(--muted); }
.lp-pay-sum b { font-size: 1.125rem; color: var(--ink); }
.lp-pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.lp-pay-btns span { padding: 7px 2px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.6875rem; font-weight: 700; text-align: center; }
/* fonā */
.lp-auto { margin-top: 28px; padding: 20px 24px; border: 2px dashed var(--line); border-radius: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 32px; align-items: center; }
.lp-auto-title { font-weight: 800; max-width: 16ch; line-height: 1.25; }
.lp-auto ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.lp-auto li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-auto .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--beet-tint); color: var(--beet); }
.lp-auto b, .lp-auto li span { display: block; }
.lp-auto li span { color: var(--muted); font-size: 0.875rem; }

/* Iespēju režģis */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.lp-card { display: flex; flex-direction: column; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); min-width: 0; }
.lp-card.w2 { grid-column: span 2; } .lp-card.w3 { grid-column: span 3; } .lp-card.w6 { grid-column: span 6; }
.lp-card-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 34px; }
.lp-card-text p:last-child { margin-top: 10px; color: var(--muted); max-width: 52ch; }
.lp-tag { width: fit-content; margin-bottom: 12px; padding: 3px 10px; border-radius: 99px; background: var(--beet-tint); color: var(--beet-dark); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; }
.lp-card > .lp-fig { margin-top: auto; }
.lp-card-dark { background: radial-gradient(600px 300px at 100% 0%, rgb(163 25 91 / 0.35), transparent 70%), var(--steel); border-color: var(--steel); color: #fff; }
.lp-card-dark .lp-card-text p:last-child { color: #c6d2d6; }
.lp-card-dark .lp-tag { background: rgb(255 255 255 / 0.12); color: #f6bdd6; }
.lp-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--muted); }
.lp-row.green { color: var(--ready); font-weight: 700; }
.lp-row.total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); align-items: baseline; color: var(--ink); }
.lp-row.total span:last-child { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
/* dalīts rēķins */
.lp-bill, .lp-disc { padding: 16px; border-radius: 14px; background: var(--mist); }
.lp-bill-head { display: flex; justify-content: space-between; font-size: 1.0625rem; }
.lp-bill-head span { font-weight: 800; }
.lp-bill-track { display: flex; gap: 3px; height: 10px; margin: 12px 0 10px; }
.lp-bill-track span { border-radius: 99px; }
.p1 { --pc: var(--beet); } .p2 { --pc: var(--prep); } .p3 { --pc: var(--new); }
.lp-bill-track span, .lp-payer i { background: var(--pc); }
.lp-payer { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-top: 6px; border-radius: 10px; background: var(--surface); font-size: 0.9375rem; }
.lp-payer i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.lp-payer-how { color: var(--ready); font-size: 0.8125rem; font-weight: 600; }
.lp-payer-how::before { content: "✓ "; }
.lp-payer.wait .lp-payer-how { color: var(--muted); }
.lp-payer.wait .lp-payer-how::before { content: ""; }
.lp-payer-sum { margin-left: auto; font-weight: 800; white-space: nowrap; }
/* atlaide */
.lp-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.lp-pills .lbl { margin-right: 4px; font-weight: 700; font-size: 0.875rem; }
.lp-pills .pill { padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 700; font-size: 0.875rem; }
.lp-pills .pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* noliktava */
.lp-stock { display: grid; gap: 10px; }
.lp-recipe { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; padding: 14px; border-radius: 14px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); }
.lp-recipe b { flex: 1 1 100%; }
.lp-recipe span { padding: 2px 9px; border-radius: 99px; background: rgb(255 255 255 / 0.14); font-size: 0.8125rem; font-weight: 600; }
.lp-recipe em { flex: 1 1 100%; margin-top: 4px; font-style: normal; font-size: 0.8125rem; color: #f6bdd6; }
.lp-stock-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px 92px; gap: 10px; align-items: center; font-size: 0.875rem; }
.lp-stock-name { font-weight: 600; }
.lp-stock-bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / 0.14); overflow: hidden; }
.lp-stock-bar i { display: block; height: 100%; border-radius: 99px; background: #4ccf98; }
.lp-stock-qty { text-align: right; white-space: nowrap; color: #c6d2d6; }
.lp-stock-flag { justify-self: start; font-size: 0.6875rem; font-weight: 800; }
.lp-stock-row.low .lp-stock-bar i { background: var(--new); }
.lp-stock-row.out .lp-stock-bar i { background: #ff6b5e; }
.lp-stock-row.low .lp-stock-flag, .lp-stock-row.out .lp-stock-flag { padding: 2px 8px; border-radius: 99px; background: var(--new); color: var(--ink); }
.lp-stock-row.out .lp-stock-flag { background: #ff6b5e; }
/* galdi */
.lp-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-table { display: grid; align-content: center; gap: 1px; min-height: 74px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 0.875rem; }
.lp-table span { color: var(--muted); font-size: 0.8125rem; }
.lp-table small { color: var(--muted); font-size: 0.6875rem; }
.lp-table.res { background: #fff4d1; border-color: var(--new); }
.lp-table.res span { color: #7a5600; font-weight: 700; }
.lp-table.open { border-color: var(--ready); box-shadow: inset 4px 0 0 var(--ready); }
/* grafiks */
.lp-bars-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: 0.8125rem; }
.lp-bars-head b { color: var(--ink); font-size: 1.125rem; white-space: nowrap; }
.lp-bars-plot { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; height: 124px; margin-top: 12px; }
.lp-bars-plot span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; color: var(--muted); font-size: 0.6875rem; font-weight: 700; }
.lp-bars-plot i { width: 100%; border-radius: 5px 5px 2px 2px; background: #d9b3c6; }
.lp-bars-plot .top i { background: var(--beet); }
/* žurnāls */
.lp-log { display: grid; gap: 0; }
.lp-log-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.35; }
.lp-log-row:first-child { border-top: 0; }
.lp-log-row time { grid-row: span 2; color: var(--muted); }
.lp-log-row span { color: var(--muted); }
/* čeks */
.lp-card-print { background: linear-gradient(120deg, var(--surface) 55%, var(--beet-tint)); }
.lp-receipt { justify-self: center; width: min(280px, 100%); padding: 20px 18px 34px; background: #fff; color: #000; font: 14px/1.4 "Courier New", ui-monospace, monospace; transform: rotate(2deg); filter: drop-shadow(0 14px 22px rgb(28 35 38 / 0.22)); }
.lp-receipt { -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.lp-receipt-title { text-align: center; font-size: 21px; font-weight: 700; line-height: 1.15; }
.lp-receipt-meta { text-align: center; font-size: 12px; margin-top: 4px; }
.lp-receipt hr { border: 0; border-top: 1px dashed #000; margin: 9px 0; }
.lp-receipt-item { font-size: 16px; font-weight: 700; }
.lp-receipt-note { padding-left: 14px; }

/* restorāns vai bufete */
.lp-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.lp-kind { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.lp-kind-art { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 132px; margin-bottom: 22px; padding: 18px; border-radius: 14px; background: var(--mist); }
.lp-kind-art .lp-table { min-width: 110px; }
.lp-kind-pay { padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.875rem; text-align: center; }
.lp-kind-arrow { position: relative; flex: none; width: 26px; height: 2px; background: var(--beet); }
.lp-kind-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--beet); border-right: 2px solid var(--beet); transform: rotate(45deg); }
.lp-number { display: grid; justify-items: center; padding: 8px 20px 10px; border-radius: 12px; background: var(--surface); border: 2px solid var(--beet); }
.lp-number span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lp-number b { font-size: 2.5rem; line-height: 1; letter-spacing: 0.02em; color: var(--beet); }

/* lomas */
.lp-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.lp-role { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.lp-role-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--ink); color: #fff; }
.lp-role-icon .icon { width: 24px; height: 24px; }
.lp-role-who { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--beet); }

/* cenas */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.lp-plan-on { border: 2px solid var(--beet); box-shadow: 0 20px 48px rgb(163 25 91 / 0.16); }
.lp-plan-tag { position: absolute; top: -13px; left: 24px; padding: 2px 12px; border-radius: 99px; background: var(--beet); color: #fff; font-size: 0.8125rem; font-weight: 700; }
.lp-plan-for { margin-top: 4px; color: var(--muted); min-height: 2.9em; }
.lp-price { margin-top: 14px; color: var(--muted); }
.lp-price strong { font-size: 2.75rem; letter-spacing: -0.03em; color: var(--ink); }
.lp-plan .lp-ticks { margin-bottom: 26px; }
.lp-plan .btn { margin-top: auto; text-decoration: none; border-radius: 12px; }
.lp-plan a.btn:not(.btn-primary) { color: var(--ink); }
.lp-addon { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 22px; border-radius: 16px; background: var(--mist); }
.lp-addon .icon { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); color: #fff; }
.lp-addon b, .lp-addon span { display: block; }
.lp-addon span { color: var(--muted); }

/* pieteikums */
.lp-final { color: #fff; background: radial-gradient(800px 420px at 0% 0%, rgb(163 25 91 / 0.4), transparent 70%), var(--steel); }
.lp-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lp-contact p { margin-top: 14px; max-width: 52ch; color: #d5dee1; font-size: 1.0625rem; }
.lp-final .lp-ticks li::before { border-color: #4ccf98; }
.lp-form { padding: 26px; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); }
.lp-form input, .lp-form textarea { width: 100%; }
.lp-form textarea { padding: 10px 12px; border: 1px solid #9aa7ac; border-radius: var(--radius); font: inherit; color: inherit; resize: vertical; }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-form .hint { margin-top: 10px; max-width: none; color: var(--muted); font-size: 0.875rem; }
.lp-thanks { padding: 24px 8px; }
.lp-thanks strong { font-size: 1.25rem; }
.lp-thanks p { margin-top: 8px; color: var(--muted); }
.lp-footer { padding: 28px 0 40px; background: #11181b; color: #9fb0b6; font-size: 0.9375rem; }
.lp-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.lp-footer .lp-brand { font-size: 1.25rem; }
.lp-footer-login { margin-left: auto; padding: 0; color: #d5dee1; font-size: 0.9375rem; }
.badge-beet { background: var(--beet); }
.lead-msg { max-width: 34ch; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .lp-arrows span::before, .lp-bell { animation: none; } }
@media (max-width: 1000px) {
  .lp-links { display: none; }
  .lp-login { margin-left: auto; }
  .lp-hero { padding-top: 40px; }
  .lp-hero-in, .lp-contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-strip { margin-top: 40px; justify-content: flex-start; }
  .lp-section { padding: 56px 0; }
  /* soļi viens zem otra, bultiņas uz leju */
  .lp-flow { grid-template-columns: minmax(0, 1fr); }
  .lp-step { flex-direction: row; }
  .lp-step-art { flex: 0 0 44%; min-height: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .lp-step-text { align-self: center; }
  .lp-flow-arrow { height: 40px; }
  .lp-flow-arrow span { transform: rotate(90deg); }
  .lp-auto { grid-template-columns: minmax(0, 1fr); }
  .lp-auto-title { max-width: none; }
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-card.w2, .lp-card.w3 { grid-column: span 1; }
  .lp-card.w6 { grid-column: span 2; }
  .lp-roles, .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-plan-for { min-height: 0; }
}
@media (max-width: 680px) {
  .lp-step { flex-direction: column; }
  .lp-step-text { align-self: stretch; }
  .lp-step-art { flex: none; padding: 24px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-auto ul, .lp-bento, .lp-kinds, .lp-form-row { grid-template-columns: minmax(0, 1fr); }
  .lp-card.w6 { grid-column: span 1; }
  .lp-card, .lp-card-wide, .lp-kind, .lp-role { padding: 20px; }
  .lp-card-wide { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .lp-stock-row { grid-template-columns: 84px minmax(0, 1fr) 48px; }
  .lp-stock-flag { grid-column: 1 / -1; }
  .lp-stock-flag:empty { display: none; }
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-chit li { font-size: 0.8125rem; }
  .lp-kind-art { gap: 10px; padding: 14px 10px; }
  .lp-addon { align-items: flex-start; }
}

/* ---------- šaurs ekrāns (telefons) ---------- */
@media (max-width: 900px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .cart { display: none; position: fixed; inset: 0; z-index: 30; max-height: none; border: 0; border-radius: 0; }
  .cart.cart-open { display: flex; }
  .cart-close { display: inline-block; }
  .cart-bar {
    position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 0 20px; border: 0; border-radius: var(--radius);
    background: var(--beet); color: #fff; font-size: 1.0625rem; font-weight: 600; box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
  }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .stock-item { grid-template-columns: minmax(0, 1fr) auto; }
  .stock-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stock-actions .btn { flex: 1 1 auto; }
  .cat-grid, .dish-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .cat-tile, .dish { min-height: 60px; padding: 6px 10px; }
  .table-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .res-card { grid-template-columns: auto minmax(0, 1fr); }
  .res-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-bar { flex-wrap: nowrap; overflow-x: auto; }
  .demo-bar button { flex: none; }
  .demo-bar-label { display: none; }
  .demo-bar .demo-reset { margin-left: 8px; }
  .topbar-user { display: none; }
  td.actions { white-space: normal; }
  td.actions .btn { margin: 2px 0 2px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .chit-fresh { animation: none; outline: 4px solid var(--new); }
}

/* ---------- druka no pārlūka: 80 mm čeku lente ---------- */
#print-area { display: none; }
@media print {
  @page { size: 80mm auto; margin: 3mm; }
  body, body.station-body, body.waiter-body { background: #fff !important; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  .slip { font: 12pt/1.3 "Courier New", monospace; color: #000; }
  .slip-station, .slip-title { text-align: center; font-weight: 700; font-size: 20pt; line-height: 1.15; }
  .slip-meta { text-align: center; font-size: 9pt; margin-top: 4px; }
  .slip hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  .slip-item { font-size: 15pt; font-weight: 700; margin: 4px 0; }
  .slip-note { font-size: 12pt; padding-left: 14px; }
  .slip-order-note { font-size: 13pt; font-weight: 700; }
}
