@import url("../fonts/fonts.css");

/* ------------------------------------------------------------------ Tokens */
:root {
  --ink: #172036;
  --ink-2: #3D475C;
  --ink-3: #6B7487;
  --paper: #F3F5F8;
  --surface: #FFFFFF;
  --rule: #DCE1E8;
  --rule-2: #EBEEF3;
  --focus: #2F5BEA;

  --primary: #172036;
  --primary-ink: #FFFFFF;

  /* Durum renkleri: her durum panoda, mutfakta ve raporda aynı rengi taşır */
  --st-new: #B87A00;      --st-new-bg: #FFF4D6;
  --st-approved: #475569; --st-approved-bg: #EEF1F5;
  --st-preparing: #2156C2;--st-preparing-bg: #E7EEFC;
  --st-ready: #6A43C9;    --st-ready-bg: #EFEAFB;
  --st-courier: #B4470F;  --st-courier-bg: #FCEDE3;
  --st-road: #0B6E78;     --st-road-bg: #E2F3F4;
  --st-done: #177245;     --st-done-bg: #E3F4EA;
  --st-cancel: #B42318;   --st-cancel-bg: #FDECEA;

  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-drawer: -12px 0 32px rgba(23, 32, 54, .14);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rail-w: 216px;
  --top-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink);
  background: var(--paper); font-variant-numeric: tabular-nums;
}
a { color: var(--focus); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 20px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 8px; }
small, .muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ Shell */
.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }
.rail {
  --rail-bg: #172036;
  background: var(--rail-bg); color: #C8CEDA; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  padding: 14px 10px; gap: 2px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #FF0040; display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mark img { width: 76%; height: 76%; object-fit: contain; display: block; }
.brand-word { height: 16px; width: auto; display: block; }
.brand-word.on-light { filter: brightness(0); }
[data-theme="dark"] .brand-word.on-light { filter: none; }
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: #C8CEDA; font-weight: 500;
}
.rail a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.rail a[aria-current="page"] { background: rgba(255,255,255,.11); color: #fff; }
.rail a svg { width: 18px; height: 18px; flex: none; }
.rail .badge-dot { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: #F2B705; color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.rail-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; font-size: 12px; }
.rail-foot .who { padding: 4px 10px 8px; color: #fff; }
.rail-foot .who small { display: block; color: #8E97AA; }
.rail form button { all: unset; cursor: pointer; display: block; padding: 8px 10px; border-radius: 6px; color: #C8CEDA; }
.rail form button:hover { background: rgba(255,255,255,.06); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--top-h); background: var(--surface); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 12px;
  padding: 0 20px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; margin-right: auto; white-space: nowrap; }
.topbar .conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-done); }
.conn-dot.off { background: var(--st-cancel); }
.content { padding: 18px 20px 40px; min-width: 0; }

.iconbtn { all: unset; cursor: pointer; position: relative; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); }
.iconbtn:hover { background: var(--rule-2); }
.iconbtn:focus-visible { outline: 2px solid var(--focus); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn .count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--st-cancel); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* ------------------------------------------------------------------ Controls */
.btn {
  appearance: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600;
  height: 36px; padding: 0 14px; border-radius: var(--radius-m); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn:hover { border-color: #C3CAD5; background: #FAFBFC; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #24304B; border-color: #24304B; }
.btn-go { background: var(--st-done); border-color: var(--st-done); color: #fff; }
.btn-go:hover { background: #12603A; border-color: #12603A; }
.btn-danger { color: var(--st-cancel); }
.btn-danger:hover { background: var(--st-cancel-bg); border-color: #F3B8B2; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-lg { height: 46px; font-size: 15px; padding: 0 18px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12px; }
.input, select.input, textarea.input {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  height: 38px; padding: 0 10px; width: 100%; min-width: 0;
}
textarea.input { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(47, 91, 234, .15); }
.input[aria-invalid="true"] { border-color: var(--st-cancel); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--ink); }

.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); padding: 2px; gap: 2px; }
.seg button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--focus); }

/* ------------------------------------------------------------------ Surfaces */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); }
.panel-head h2 { margin-right: auto; }
.panel-body { padding: 16px; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: #FAFBFC; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; }
table.t tbody tr:hover td { background: #FAFBFD; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--rule-2); color: var(--ink-2); }
.pill.st-new { background: var(--st-new-bg); color: var(--st-new); }
.pill.st-approved { background: var(--st-approved-bg); color: var(--st-approved); }
.pill.st-preparing { background: var(--st-preparing-bg); color: var(--st-preparing); }
.pill.st-ready, .pill.st-packed { background: var(--st-ready-bg); color: var(--st-ready); }
.pill.st-awaiting_courier { background: var(--st-courier-bg); color: var(--st-courier); }
.pill.st-on_delivery { background: var(--st-road-bg); color: var(--st-road); }
.pill.st-delivered, .pill.st-completed, .pill.ok { background: var(--st-done-bg); color: var(--st-done); }
.pill.st-cancelled, .pill.st-rejected, .pill.st-delivery_failed, .pill.st-needs_correction, .pill.bad { background: var(--st-cancel-bg); color: var(--st-cancel); }
.pill.warn { background: var(--st-new-bg); color: var(--st-new); }
.pill.demo { background: #1F2937; color: #FDE68A; letter-spacing: .02em; }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty h3 { color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.notice { border: 1px solid var(--rule); border-left: 3px solid var(--st-new); background: var(--surface); padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.notice.bad { border-left-color: var(--st-cancel); }
.notice.ok { border-left-color: var(--st-done); }

.skeleton { background: linear-gradient(90deg, #E9EDF2 0, #F4F6F9 50%, #E9EDF2 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ Operasyon başlığı: aşama hattı + yan kartlar */
.ops { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; align-items: stretch; }
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(23, 32, 54, .04); }
.pipe-step {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; padding: 10px 14px 10px 18px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0;
  border-right: 1px solid var(--rule-2); transition: background .12s;
}
.pipe-step.skeleton { min-height: 92px; border-radius: 0; }
/* Aşamalar arası ok */
.pipe-step:not(:nth-child(5))::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface);
  border-top: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.pipe-step:hover { background: var(--paper); }
.pipe-step:hover::after { background: var(--paper); }
.pipe-step:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pipe-step[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 9%, var(--surface)); box-shadow: inset 0 -3px 0 var(--c); }
.pipe-step[aria-pressed="true"]::after { background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.ps-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.pipe-step b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.pipe-step.hot b { color: var(--st-new); }
.pipe-step.hot .ps-top i { box-shadow: 0 0 0 0 var(--st-new); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(184, 122, 0, .45); } 70% { box-shadow: 0 0 0 7px rgba(184, 122, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 122, 0, 0); } }
.ps-bar { display: block; height: 4px; background: var(--rule-2); border-radius: 2px; overflow: hidden; margin-top: 2px; }
.ps-bar span { display: block; height: 100%; background: var(--c); border-radius: 2px; transition: width .4s; }
.pipe-step small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.pipe-step .flash { position: absolute; inset: 0; border: 2px solid var(--st-new); animation: kpiflash 1.2s ease-out 2; pointer-events: none; }
@keyframes kpiflash { 0% { opacity: 1; } 100% { opacity: 0; } }
.pipe-meta { display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--rule-2); }
.pmb { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 104px; }
.pmb + .pmb { border-top: 1px solid var(--rule-2); }
.pmb b { font-size: 17px; font-weight: 800; line-height: 1.1; }
.pmb span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pmb.bad b { color: var(--st-cancel); }
.pmb.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--ink); }
.pmb:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.ops-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ops-card {
  box-sizing: border-box; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 12px; justify-content: center; display: flex; flex-direction: column; gap: 2px;
  min-width: 0; color: var(--ink); text-align: left; position: relative; box-shadow: 0 1px 2px rgba(23, 32, 54, .04);
}
.ops-card.skeleton { min-height: 56px; }
.ops-card.btnlike { font: inherit; cursor: pointer; }
.ops-card.btnlike:hover { border-color: #C3CAD5; text-decoration: none; }
.ops-card:focus-visible { outline: 2px solid var(--focus); }
.oc-l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.oc-l svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.oc-v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-s { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-card.warn .oc-v { color: var(--st-courier); }
.ops-card.bad { border-color: color-mix(in srgb, var(--st-cancel) 40%, var(--rule)); background: color-mix(in srgb, var(--st-cancel) 5%, var(--surface)); }
.ops-card.bad .oc-v, .ops-card.bad .oc-l { color: var(--st-cancel); }
.ops-card.good .oc-v { color: var(--st-done); }
.ops-card.on { box-shadow: inset 0 0 0 2px var(--st-cancel); }
.oc-ints { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 0 2px; align-items: center; }
.oi { position: relative; display: inline-flex; }
.oi .src-mark { border-radius: 6px; }
.oi i { position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink-3); }
.oi.st-connected i { background: var(--st-done); }
.oi.st-test_mode i { background: var(--st-new); }
.oi.st-error i { background: var(--st-cancel); }

/* ------------------------------------------------------------------ Araç çubuğu */
.filterbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar .input { width: auto; height: 36px; }
.filterbar select.input { max-width: 170px; }
.filterbar input[type="date"].input { max-width: 150px; }
.tsearch { position: relative; flex: 1 1 220px; max-width: 340px; display: block; }
.tsearch svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.tsearch .input { width: 100%; padding-left: 32px; padding-right: 30px; }
.tsearch kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 11px/1 var(--font); color: var(--ink-3); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 6px; background: var(--paper); pointer-events: none; }
.tsearch .input:focus + kbd { display: none; }
.filterbar .seg { height: 36px; box-sizing: border-box; align-items: center; }
.filterbar .seg button { display: inline-flex; align-items: center; gap: 6px; }
.filterbar .seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tright .btn-primary { height: 36px; }

/* ------------------------------------------------------------------ Operasyon panosu */
.board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.col { --colbg: #E9EDF2; background: var(--colbg); border-radius: 12px; padding: 8px; min-height: 160px; }
.board .col { border-top: 3px solid var(--c); }
.col-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 4px 6px 10px; font-weight: 700; font-size: 13.5px; }
.col-head i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--c); }
.col-head .n { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface); display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }
.ch-sub { flex-basis: 100%; display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink-3); padding-left: 17px; min-height: 0; }
.ch-sub:empty { display: none; }
.ch-sub span { margin-left: auto; }
.ch-sub em { font-style: normal; color: var(--st-cancel); }
.col-list { display: flex; flex-direction: column; gap: 8px; }
/* Kartlar kaydırma alanında küçülmez: içerik kesilmez, sütun kendi içinde kayar */
.col-list > * { flex-shrink: 0; }
@media (min-width: 1181px) {
  .board .col { display: flex; flex-direction: column; max-height: max(420px, calc(100vh - 248px)); }
  .board .col-list { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-right: -4px; padding: 2px 4px 8px 2px; margin-left: -2px;
    /* Kaydırma gölgeleri: üstte/altta devam eden kart varsa gölge görünür */
    background:
      linear-gradient(var(--colbg) 30%, transparent) top / 100% 28px no-repeat local,
      linear-gradient(transparent, var(--colbg) 70%) bottom / 100% 28px no-repeat local,
      radial-gradient(farthest-side at 50% 0, rgba(23,32,54,.22), transparent) top / 100% 10px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, rgba(23,32,54,.22), transparent) bottom / 100% 10px no-repeat scroll;
  }
  .board .col-list::-webkit-scrollbar { width: 6px; }
  .board .col-list::-webkit-scrollbar-thumb { background: rgba(23,32,54,.18); border-radius: 3px; }
}
/* Kompakt görünüm: kalemler tek satır özet, müşteri kutusu ve ilerleme gizli */
.t-sum { display: none; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sum em { font-style: normal; font-weight: 700; color: var(--ink-3); }
.board.dense .t-items, .board.dense .t-who, .board.dense .t-prog, .board.dense .t-note { display: none; }
.board.dense .t-sum { display: block; }
.board.dense .ticket-body { padding: 9px 10px 10px 12px; }
.board.dense .t-no { font-size: 18px; }
.board.dense .t-timer { min-width: 40px; height: 40px; }
.board.dense .t-timer b { font-size: 16px; }
.board.dense .t-sub { margin-top: 6px; }
.board.dense .t-foot { margin-top: 8px; padding-top: 7px; }
.board.dense .t-actions { margin-top: 8px; }
.board.dense .t-actions .btn { height: 34px; }
[data-density][aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.col-empty { padding: 26px 12px; text-align: center; color: var(--ink-3); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1.5px dashed #CDD4DE; border-radius: 10px; }
.col-empty svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

/* Sipariş kartı */
.ticket {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; position: relative; overflow: hidden;
  cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s, transform .12s; box-shadow: 0 1px 2px rgba(23, 32, 54, .05);
}
.ticket:hover { border-color: #BAC2CF; box-shadow: 0 6px 16px -8px rgba(23, 32, 54, .25); }
.ticket:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.ticket.is-warn::before { background: #E0A100; }
.ticket.is-late::before, .ticket.is-alert::before { background: var(--st-cancel); }
.ticket.is-new { border-color: var(--st-new); box-shadow: 0 0 0 1px var(--st-new), 0 8px 20px -10px rgba(184, 122, 0, .5); animation: tk-glow 2s ease-in-out infinite; }
.ticket.is-new::before { background: var(--st-new); }
@keyframes tk-glow { 50% { box-shadow: 0 0 0 3px rgba(242, 183, 5, .35), 0 8px 20px -10px rgba(184, 122, 0, .5); } }
.ticket-body { padding: 11px 12px 12px 14px; }
.t-head { display: flex; align-items: flex-start; gap: 10px; }
.t-id { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.t-no { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.t-no.sm { font-size: 15px; }
.t-src { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.t-src > span:not(.src-mark) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-src .code { font-size: 11px; padding: 1px 5px; }
.t-timer { flex: none; min-width: 46px; height: 46px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--st-done-bg); color: var(--st-done); line-height: 1; }
.t-timer b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.t-timer small { font-size: 10.5px; font-weight: 700; margin-top: 2px; opacity: .8; }
.t-timer.warn { background: #FFF1CC; color: #9A6A00; }
.t-timer.late { background: var(--st-cancel); color: #fff; }
.t-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.t-at { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tchip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.tchip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tchip.t-delivery { background: var(--st-road-bg); color: var(--st-road); }
.tchip.t-pickup { background: var(--st-ready-bg); color: var(--st-ready); }
.tchip.t-table { background: var(--st-preparing-bg); color: var(--st-preparing); }
.pill.sm { height: 20px; font-size: 11px; padding: 0 7px; }
.t-who { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding: 8px 9px; border-radius: 8px; background: var(--paper); }
.tw { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tw.addr { color: var(--ink-3); }
.tw.cour { font-weight: 600; color: var(--st-road); }
.tw.cour svg { stroke: var(--st-road); }
.tw.warn { font-weight: 600; color: var(--st-courier); }
.tw.warn svg { stroke: var(--st-courier); }
.t-items { margin: 9px 0 0; padding: 0; list-style: none; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.t-items li { display: flex; gap: 8px; align-items: flex-start; }
.t-items li > b { flex: none; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 5px; background: var(--rule-2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; }
.t-items li > span { flex: 1; min-width: 0; padding-top: 1px; }
.t-items li.done > span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--st-done); }
.t-items .ok svg { width: 16px; height: 16px; fill: none; stroke: var(--st-done); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.t-items .opt { color: var(--ink-3); font-size: 12px; display: block; }
.t-items .opt.inote { color: #9A6A00; }
.t-items .more { color: var(--ink-3); font-size: 12px; padding-left: 32px; }
.t-prog { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.t-prog > span { flex: 1; height: 5px; border-radius: 3px; background: var(--rule-2); overflow: hidden; }
.t-prog > span > span { display: block; height: 100%; background: var(--st-preparing); border-radius: 3px; }
.t-prog small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.t-note { margin-top: 9px; display: flex; gap: 7px; align-items: flex-start; background: #FFF8E6; border: 1px solid #F7E2A8; border-radius: 8px; padding: 7px 9px; font-size: 12.5px; line-height: 1.4; color: #7A5300; }
.t-note svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; margin-top: 1px; }
.t-note.bad { background: var(--st-cancel-bg); border-color: #F3B8B2; color: var(--st-cancel); }
.t-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.t-cnt { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.t-foot .total { margin-left: auto; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pay { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.pay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pay.paid { background: var(--st-done-bg); color: var(--st-done); }
.t-actions { display: flex; gap: 8px; margin-top: 10px; }
.t-actions .btn { height: 40px; border-radius: 9px; }
.t-actions .btn-danger { flex: 0 0 auto; }
.t-actions .t-go { flex: 1; justify-content: space-between; padding: 0 12px 0 14px; }
.t-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.t-go:hover:not(:disabled) svg { transform: translateX(3px); }
.sla { height: 4px; background: var(--rule-2); position: relative; }
.sla > div { height: 100%; background: var(--st-done); transition: width .5s linear; }
.sla.warn > div { background: #E0A100; }
.sla.late { height: auto; background: var(--st-cancel-bg); }
.sla.late > div { position: absolute; left: 0; top: 0; height: 3px; background: var(--st-cancel); }
.sla.late span { display: block; padding: 6px 12px 5px 14px; font-size: 11.5px; font-weight: 700; color: var(--st-cancel); }

/* Liste görünümü */
.olist .t td { vertical-align: middle; }
.olist .orow { cursor: pointer; }
.olist .orow:hover td { background: var(--paper); }
.olist .orow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.olist .orow.is-new td:first-child { box-shadow: inset 3px 0 0 var(--st-new); }
.olist .orow.is-late td:first-child { box-shadow: inset 3px 0 0 var(--st-cancel); }
.olist td.cut { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.olist td.act { text-align: right; white-space: nowrap; }
.tmr { display: inline-block; min-width: 46px; text-align: center; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 12.5px; background: var(--st-done-bg); color: var(--st-done); }
.tmr.warn { background: #FFF1CC; color: #9A6A00; }
.tmr.late { background: var(--st-cancel); color: #fff; }

@media (max-width: 1600px) {
  .filterbar [data-view-seg] span { display: none; }
  .filterbar select.input { max-width: 140px; }
  .filterbar input[type="date"].input { max-width: 136px; }
  .tsearch { flex: 1 1 160px; max-width: 230px; }
  .filterbar .tseg button { padding: 6px 9px; }
  .tright .btn-primary { padding: 0 12px; }
}
@media (max-width: 1380px) {
  .ops { grid-template-columns: 1fr; }
  .ops-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.src-mark { width: 18px; height: 18px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; flex: none; background: #475569; }
.src-logo { background: #fff; border: 1px solid var(--rule); overflow: hidden; padding: 1px; }
.src-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.icard-head .src-mark { border-radius: 8px; }
.src-getir_yemek { background: #5D3EBC; }
.src-yemeksepeti { background: #E2063F; }
.src-trendyol_yemek { background: #F27A1A; }
.src-migros_yemek { background: #F28B00; }
.src-phone { background: #334155; }
.src-whatsapp { background: #1F8F4E; }
.src-pos { background: #475569; }
.src-table { background: #6A43C9; }
.src-qr { background: #6A43C9; }
.src-online_menu, .src-web { background: #2156C2; }
.src-generic_webhook { background: #0B6E78; }

/* ------------------------------------------------------------------ Çekmece (detay) ve modal */
.scrim { position: fixed; inset: 0; background: rgba(23, 32, 54, .32); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); z-index: 41; box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column; animation: slidein .16s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { font-size: 18px; }
.drawer-body { overflow-y: auto; padding: 14px 16px 20px; flex: 1; }
.drawer-foot { border-top: 1px solid var(--rule); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; flex-wrap: wrap; background: #FBFCFD; }
.drawer-foot .btn { flex: 1 1 auto; }
.sec { margin-bottom: 18px; }
.sec > h3 { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.lines { border: 1px solid var(--rule-2); border-radius: 6px; }
.lines .ln { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; }
.lines .ln:last-child { border-bottom: 0; }
.lines .ln .opt { grid-column: 2 / 4; color: var(--ink-3); font-size: 12.5px; }
.sums { margin-top: 8px; font-size: 13.5px; }
.sums div { display: flex; justify-content: space-between; padding: 2px 0; }
.sums .grand { font-weight: 700; font-size: 15px; border-top: 1px solid var(--rule-2); margin-top: 4px; padding-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--rule-2); }
.timeline li span { color: var(--ink-3); }

.modal-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(23,32,54,.28); }
.modal.wide { width: min(980px, 100%); }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 10px; }
.modal-head h2 { margin-right: auto; }
.modal-body { padding: 16px 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--rule); display: flex; gap: 8px; justify-content: flex-end; background: #FBFCFD; border-radius: 0 0 12px 12px; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(23,32,54,.25); display: flex; gap: 10px; align-items: center; max-width: min(560px, calc(100vw - 32px)); }
.toast.bad { background: #8F1C13; }
.toast button { all: unset; cursor: pointer; font-weight: 700; color: #FDE68A; }

/* Yeni sipariş bandı: göz yormayan ama kaçırılmayan */
.newbar { position: sticky; top: var(--top-h); z-index: 15; background: var(--st-new-bg); border-bottom: 1px solid #F0D58A; color: #6B4700; padding: 8px 20px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.newbar .btn { height: 30px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--st-new); box-shadow: 0 0 0 0 rgba(184,122,0,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(184,122,0,0); } 100% { box-shadow: 0 0 0 0 rgba(184,122,0,0); } }

/* Bildirim paneli */
.notifs { position: fixed; top: calc(var(--top-h) + 6px); right: 14px; width: min(400px, calc(100vw - 28px)); max-height: 70vh; overflow-y: auto; z-index: 45; }
.notif { padding: 10px 14px; border-bottom: 1px solid var(--rule-2); font-size: 13px; display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.notif i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--ink-3); }
.notif.critical i { background: var(--st-cancel); }
.notif.warning i { background: #E0A100; }
.notif.unread { background: #FFFCF2; }
.notif b { display: block; font-weight: 600; }

/* ------------------------------------------------------------------ Entegrasyon kartları */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.icard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.icard-head { display: flex; align-items: center; gap: 10px; }
.icard-head h3 { font-size: 15px; margin-right: auto; }
.icard dl { margin: 0; display: grid; grid-template-columns: 118px 1fr; gap: 3px 8px; font-size: 12.5px; }
.icard dt { color: var(--ink-3); }
.icard dd { margin: 0; overflow-wrap: anywhere; }
.icard .err { color: var(--st-cancel); font-size: 12.5px; }
.icard .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.group-title { margin: 22px 0 10px; font-size: 14px; color: var(--ink-2); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--rule-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 12px 14px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.bars div { flex: 1; background: var(--st-preparing); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--ink); }
.bar-labels { display: flex; gap: 3px; font-size: 10.5px; color: var(--ink-3); }
.bar-labels span { flex: 1; text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ Login / bare */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

/* Giriş ve işletme başvurusu */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }
.auth-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 32px; padding: 36px 44px;
  background: #0E1424; color: #C9D0DD;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(160deg, #172036 0%, #0B101C 100%);
  background-size: 22px 22px, 100% 100%;
}
.auth-hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.16), transparent 70%); pointer-events: none; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.auth-brand:hover { text-decoration: none; }
.auth-hero-body { margin: auto 0; max-width: 500px; position: relative; z-index: 1; }
.auth-kicker { color: #F2B705; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.auth-hero h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin-bottom: 28px; }
.auth-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; margin-bottom: 30px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.03); }
.auth-board .bcol { display: flex; flex-direction: column; gap: 6px; min-height: 108px; }
.auth-board i { display: block; border-radius: 5px; }
.auth-board .hd { height: 6px; width: 46%; opacity: .9; margin-bottom: 2px; }
.auth-board .tk {
  height: 34px; border-left: 3px solid; animation: tk-in .6s ease both;
  background: linear-gradient(rgba(255,255,255,.34), rgba(255,255,255,.34)) 9px 9px / 58% 4px no-repeat,
              linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) 9px 20px / 36% 4px no-repeat, rgba(255,255,255,.08);
}
.auth-board .tk.short { height: 26px; width: 84%; background-size: 50% 4px, 0 0, auto; }
.auth-board .bcol:nth-child(2) .tk { animation-delay: .1s; } .auth-board .bcol:nth-child(3) .tk { animation-delay: .2s; } .auth-board .bcol:nth-child(4) .tk { animation-delay: .3s; }
.auth-board .st-new { border-color: #F2B705; } .auth-board .hd.st-new { background: #F2B705; }
.auth-board .st-preparing { border-color: #7FA6FF; } .auth-board .hd.st-preparing { background: #7FA6FF; }
.auth-board .st-road { border-color: #4FD1D9; } .auth-board .hd.st-road { background: #4FD1D9; }
.auth-board .st-done { border-color: #4ADE9B; } .auth-board .hd.st-done { background: #4ADE9B; }
@keyframes tk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auth-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-feats li { display: flex; gap: 14px; align-items: flex-start; }
.auth-feats svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: rgba(255,255,255,.07); fill: none; stroke: #F2B705; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-feats b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.auth-feats span { font-size: 13.5px; line-height: 1.45; color: #9AA4B8; }
.auth-hero-foot { margin: 0; font-size: 12px; color: #7D879B; position: relative; z-index: 1; }

.auth-main { display: flex; flex-direction: column; align-items: center; padding: 20px 24px; background: var(--paper); min-width: 0; }
.auth-top { width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 40px; }
.auth-top .btn-ghost { margin-right: auto; }
.auth-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-card { width: min(420px, 100%); margin: auto 0; padding: 28px 0; }
.auth-card-wide { width: min(560px, 100%); }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { font-size: 14.5px; margin-bottom: 22px; }
.auth .field > span { font-size: 13px; }
.auth .input { height: 46px; font-size: 15px; padding: 0 12px; border-radius: 10px; }
.auth textarea.input { height: auto; padding: 10px 12px; }
.auth .notice { font-size: 13.5px; }
.auth .btn-lg { height: 48px; border-radius: 10px; font-size: 15px; }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-submit .spin, [data-submit] .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.field-err { color: var(--st-cancel); font-weight: 600; }
.caps { color: var(--st-new); font-weight: 600; }
.opt { font-style: normal; font-weight: 500; color: var(--ink-3); }
.pw { position: relative; display: block; }
.pw .input { padding-right: 76px; }
.pw-toggle { all: unset; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pw-toggle:hover { background: var(--rule-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--focus); }
.auth-help { margin-top: 18px; font-size: 13.5px; }
.auth-help summary { cursor: pointer; color: var(--focus); font-weight: 600; list-style: none; display: inline-block; }
.auth-help summary::-webkit-details-marker { display: none; }
.auth-help p { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); }
.auth-alt { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 10px; text-align: center; }
.auth-alt > span { font-weight: 600; color: var(--ink-2); }
.auth-alt-btn { width: 100%; }
.auth-alt-line { text-align: center; margin-top: 18px; color: var(--ink-3); }
.auth-foot { font-size: 12px; color: var(--ink-3); padding-top: 8px; }

/* Adımlı başvuru */
.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--rule); color: var(--ink-3); font-weight: 600; font-size: 13px; }
.stepper li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--rule-2); color: var(--ink-3); }
.stepper li.cur { border-color: var(--ink); color: var(--ink); }
.stepper li.cur i { background: var(--ink); color: var(--paper); }
.stepper li.done { border-color: var(--st-done); color: var(--ink-2); cursor: pointer; }
.stepper li.done i { background: var(--st-done); color: #fff; font-size: 0; }
.stepper li.done i::before { content: "✓"; font-size: 12px; }
form[data-signup] fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
form[data-signup] legend { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding: 0; }
form[data-signup]:not(.is-stepped) fieldset + fieldset { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.field-hint { font-size: 12.5px; margin: -4px 0 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check[aria-invalid="true"] { border-color: var(--st-cancel); }
.kvkk { margin: 10px 0 4px; font-size: 13px; }
.kvkk summary { cursor: pointer; color: var(--focus); font-weight: 600; }
.kvkk p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.55; max-height: 180px; overflow: auto; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--rule-2); overflow: hidden; margin-top: 2px; }
.meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.meter .lv1 { background: var(--st-cancel); } .meter .lv2 { background: var(--st-new); } .meter .lv3 { background: var(--st-preparing); } .meter .lv4 { background: var(--st-done); }
.review { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin-bottom: 16px; }
.review-head { padding: 10px 14px; border-bottom: 1px solid var(--rule-2); font-size: 13px; }
.review dl { margin: 0; padding: 4px 14px; }
.review dl > div { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13.5px; }
.review dl > div + div { border-top: 1px solid var(--rule-2); }
.review dt { color: var(--ink-3); }
.review dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.link { all: unset; cursor: pointer; color: var(--focus); font-size: 12.5px; font-weight: 600; }
.link:focus-visible { outline: 2px solid var(--focus); }
.step-actions { display: flex; gap: 10px; margin-top: 16px; }
.step-actions .btn { flex: 1; }
.step-actions [data-prev] { flex: 0 0 34%; }
.auth-done { text-align: center; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--st-done-bg); animation: tk-in .4s ease both; }
.done-mark svg { width: 32px; height: 32px; fill: none; stroke: var(--st-done); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done-steps { text-align: left; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: d; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.done-steps li { counter-increment: d; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 12px 14px; font-size: 13.5px; }
.done-steps li + li { border-top: 1px solid var(--rule-2); }
.done-steps li::before { content: counter(d); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rule-2); font-weight: 700; font-size: 12px; }
.done-steps span { color: var(--ink-2); }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 18px 20px 22px; gap: 14px; }
  .auth-hero-body { margin: 0; }
  .auth-hero h2 { font-size: 21px; margin-bottom: 0; }
  .auth-kicker { margin-bottom: 6px; font-size: 11px; }
  .auth-board, .auth-feats, .auth-hero-foot { display: none; }
  .auth-main { padding: 12px 16px 16px; }
  .auth-card { margin: 0; padding: 12px 0 24px; }
  .auth-card h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .auth .grid-2 { grid-template-columns: 1fr; }
  .stepper li span { font-size: 12px; }
  /* Başparmak bölgesi: adım butonları ekranın altında sabit */
  form[data-signup].is-stepped .step-actions { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
}

/* Başvuru kartları (sistem yöneticisi) */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.app-card { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--st-new); border-radius: var(--radius-m); display: flex; flex-direction: column; }
.app-card header { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 14px 16px 10px; }
.app-card h3 { font-size: 15px; margin-bottom: 2px; }
.app-card dl { margin: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.app-card dt { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.app-card dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.app-note { margin: 12px 16px 0; padding: 8px 10px; background: var(--rule-2); border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.app-card footer { margin-top: auto; display: flex; gap: 8px; justify-content: flex-end; padding: 14px 16px; border-top: 1px solid var(--rule-2); margin-top: 14px; }
.seg .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--st-new); color: #111; font-size: 11px; }
.seg .count.muted { background: var(--rule-2); color: var(--ink-3); }

/* ------------------------------------------------------------------ Mobil */
.mobile-tabs { display: none; }
.bottomnav { display: none; }

@media (max-width: 1180px) {
  .board { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .topbar { padding: 0 12px; }
  .content { padding: 12px 12px 90px; }
  .board { grid-template-columns: 1fr; }
  .board .col { display: none; background: transparent; padding: 0; }
  .board .col.on { display: block; }
  .board .col-head { display: none; }
  .mobile-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
  .mobile-tabs button { all: unset; cursor: pointer; flex: 0 0 auto; padding: 8px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); font-weight: 600; font-size: 13px; }
  .mobile-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--rule); z-index: 30;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); padding: 4px 0; }
  .bottomnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .bottomnav svg { width: 20px; height: 20px; }
  .grid-2, .grid-3, .two { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .filterbar .search { max-width: none; }
  .newbar { padding: 8px 12px; }
}

/* ------------------------------------------------------------------ Gece teması */
.call-sim span { white-space: nowrap; }
@media (max-width: 1100px) { .call-sim span { display: none; } }

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E6EAF2; --ink-2: #B4BDCE; --ink-3: #8790A4;
  --paper: #0E1320; --surface: #161D2E; --rule: #283249; --rule-2: #1F273A; --focus: #7C9BFF;
  --primary: #E6EAF2; --primary-ink: #0E1320;
  --st-new: #F2B705;      --st-new-bg: rgba(242, 183, 5, .14);
  --st-approved: #A8B3C7; --st-approved-bg: rgba(168, 179, 199, .14);
  --st-preparing: #7FA6FF;--st-preparing-bg: rgba(127, 166, 255, .15);
  --st-ready: #B49BFF;    --st-ready-bg: rgba(180, 155, 255, .15);
  --st-courier: #FF9D62;  --st-courier-bg: rgba(255, 157, 98, .14);
  --st-road: #4FD1D9;     --st-road-bg: rgba(79, 209, 217, .13);
  --st-done: #4ADE9B;     --st-done-bg: rgba(74, 222, 155, .13);
  --st-cancel: #FF7A70;   --st-cancel-bg: rgba(255, 122, 112, .14);
  --shadow-drawer: -12px 0 32px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .rail { --rail-bg: #0A0F1A; border-right: 1px solid var(--rule); }
[data-theme="dark"] .btn:hover, [data-theme="dark"] table.t th, [data-theme="dark"] .drawer-foot, [data-theme="dark"] .modal-foot { background: #1B2337; }
[data-theme="dark"] table.t tbody tr:hover td { background: #1A2234; }
[data-theme="dark"] .btn-primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
[data-theme="dark"] .btn-go { color: #0E1320; }
[data-theme="dark"] .seg button[aria-pressed="true"], [data-theme="dark"] .mobile-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .col { --colbg: #121928; }
[data-theme="dark"] .toast { background: #E6EAF2; color: #0E1320; }
[data-theme="dark"] .toast button { color: #8A5A00; }
[data-theme="dark"] .toast.bad { background: #FF7A70; color: #1A0503; }
[data-theme="dark"] .t-note { background: rgba(242, 183, 5, .12); color: #F6D776; }
[data-theme="dark"] .notif.unread { background: rgba(242, 183, 5, .06); }
[data-theme="dark"] .newbar { border-bottom-color: rgba(242, 183, 5, .3); color: #F6D776; }
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #1B2337 0, #232D45 50%, #1B2337 100%); background-size: 200% 100%; }
[data-theme="dark"] .scrim { background: rgba(0, 0, 0, .55); }
[data-theme="dark"] .modal { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
[data-theme="dark"] .pill.demo { background: #F2B705; color: #0E1320; }
[data-theme="dark"] .brand-mark { color: #0E1320; }
[data-theme="dark"] .ticket:hover { border-color: #3A4766; }

/* ------------------------------------------------------------------ Gelen arama kartı */
.callstack { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.callcard { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--st-done); border-radius: 10px; box-shadow: 0 16px 40px rgba(23, 32, 54, .22); animation: slidein .18s ease-out; }
.callcard.quiet { opacity: .85; }
.callcard-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 8px 14px; }
.callcard-head > div { flex: 1; min-width: 0; }
.callcard-head small { display: block; color: var(--ink-3); font-size: 12px; }
.callcard-head b { display: block; font-size: 16px; }
.ringdot { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--st-done); box-shadow: 0 0 0 0 rgba(23, 114, 69, .5); animation: ringp 1.2s infinite; flex: none; }
@keyframes ringp { 70% { box-shadow: 0 0 0 12px rgba(23, 114, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 114, 69, 0); } }
.callcard-body { padding: 0 14px 8px; font-size: 13px; }
.callstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.callstats div { background: var(--rule-2); border-radius: 6px; padding: 6px 8px; }
.callstats b { display: block; font-size: 14px; }
.callstats span { font-size: 11.5px; color: var(--ink-3); }
.calllast { list-style: none; margin: 4px 0 0; padding: 0; }
.calllast li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 5px 0; border-top: 1px dashed var(--rule-2); }
.calllast small { grid-column: 1 / -1; color: var(--ink-3); }
.callcard-foot { display: flex; gap: 8px; padding: 8px 14px 12px; }
.callcard-foot .btn { flex: 1; }
@media (max-width: 860px) { .callstack { bottom: 76px; right: 8px; width: calc(100vw - 16px); } }

/* ------------------------------------------------------------------ Masa düzeni */
.tlegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.tl { display: inline-flex; align-items: center; gap: 6px; }
.tl i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--rule); }
.tl-free i { background: var(--surface); }
.tl-occupied i { background: var(--st-preparing); border-color: var(--st-preparing); }
.tl-reserved i { background: var(--st-ready); border-color: var(--st-ready); }
.tl-bill_requested i { background: var(--st-new); border-color: var(--st-new); }
/* Üst özet: doluluk, açık adisyon, oturma süresi, bekleyen servis ve çağrı */
.tkpi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tkpi > * { all: unset; box-sizing: border-box; display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.tkpi span { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.tkpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tkpi b small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.tkpi > * > small { font-size: 12px; color: var(--ink-3); }
.tkpi-bar { display: block; height: 6px; border-radius: 3px; background: var(--rule-2); margin-top: 6px; overflow: hidden; }
.tkpi-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2156C2, #FF0040); border-radius: 3px; }
.tkpi-act { cursor: pointer; transition: border-color .15s, transform .1s; }
.tkpi-act:hover { border-color: #BAC2CF; }
.tkpi-act:active { transform: scale(.98); }
.tkpi-act.ok { border-color: var(--st-done); background: var(--st-done-bg); } .tkpi-act.ok b { color: var(--st-done); }
.tkpi-act.hot { border-color: #FF0040; background: rgba(255,0,64,.06); animation: tcall 1.6s ease infinite; } .tkpi-act.hot b { color: #FF0040; }
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.tbar .seg small { font-weight: 600; opacity: .7; margin-left: 2px; }
.tbar-r { margin-left: auto; display: flex; gap: 8px; }
.mchips { display: flex; gap: 6px; flex-wrap: wrap; }
.mchip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 18px; border: 1px solid var(--rule); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mchip i { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 18px; text-align: center; padding: 1px 5px; border-radius: 9px; background: var(--rule-2); color: var(--ink-2); }
.mchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mchip[aria-pressed="true"] i { background: rgba(255,255,255,.18); color: inherit; }
.mchip:focus-visible { outline: 2px solid var(--focus); }
.mc-call i { background: rgba(255,0,64,.12); color: #FF0040; } .mc-ready i { background: var(--st-done-bg); color: var(--st-done); } .mc-bill i { background: var(--st-new-bg); color: var(--st-new); }
.msearch { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink-3); }
.msearch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.msearch input { all: unset; width: 110px; color: var(--ink); font-size: 13.5px; }

/* Masa kartları */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.floor { display: grid; gap: 12px; grid-auto-rows: minmax(150px, auto); background: repeating-linear-gradient(0deg, transparent 0 39px, var(--rule-2) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--rule-2) 39px 40px), var(--paper); border: 1px dashed var(--rule); border-radius: 12px; padding: 14px; overflow-x: auto; }
.ttile { position: relative; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; min-height: 150px; min-width: 150px; padding: 12px 13px 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(23,32,54,.04); transition: transform .12s ease, box-shadow .15s ease, border-color .15s; overflow: hidden; outline: none; }
.ttile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--rule); }
.ttile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(23,32,54,.35); border-color: #BAC2CF; }
.ttile:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.tt-top { display: flex; align-items: center; gap: 8px; }
.tt-name { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tt-st { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--rule-2); color: var(--ink-3); }
.tt-seat { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tt-seat svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tt-amt { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.tt-amt small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tt-time { position: relative; display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 700; padding-top: 7px; color: var(--ink-2); }
.tt-time i { position: absolute; top: 0; left: 0; height: 4px; border-radius: 2px; background: var(--st-done); }
.tt-time::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--rule-2); }
.tt-time i { z-index: 1; }
.tt-time span:last-child { font-weight: 500; color: var(--ink-3); }
.tt-warm i { background: #E0A100; } .tt-hot i { background: var(--st-cancel); } .tt-hot span:first-child { color: var(--st-cancel); }
.tt-meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-free { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tt-res { display: grid; margin-top: auto; } .tt-res b { font-size: 14px; } .tt-res span { font-size: 12px; color: var(--ink-3); }
.tt-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tt-badges:empty { display: none; }
.tt-badges em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 7px; }
.b-call { background: #FF0040; color: #fff; } .b-bill { background: var(--st-new-bg); color: var(--st-new); } .b-ready { background: var(--st-done); color: #fff; } .b-kit { background: var(--st-preparing-bg); color: var(--st-preparing); }
.tt-quick { all: unset; cursor: pointer; position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tt-quick svg { width: 14px; height: 14px; }
.ttile:hover .tt-quick, .ttile:focus-within .tt-quick { opacity: 1; transform: none; }
@media (hover: none) { .tt-quick { opacity: 1; transform: none; } }
.ts-free { border-style: dashed; }
.ts-occupied::before { background: var(--st-preparing); }
.ts-occupied { background: linear-gradient(180deg, var(--st-preparing-bg), var(--surface) 55%); }
.ts-occupied .tt-st { background: var(--st-preparing); color: #fff; }
.ts-reserved::before { background: var(--st-ready); }
.ts-reserved { background: linear-gradient(180deg, var(--st-ready-bg), var(--surface) 55%); }
.ts-reserved .tt-st { background: var(--st-ready); color: #fff; }
.ts-bill_requested::before { background: var(--st-new); }
.ts-bill_requested { background: linear-gradient(180deg, var(--st-new-bg), var(--surface) 55%); border-color: var(--st-new); }
.ts-bill_requested .tt-st { background: var(--st-new); color: #fff; }
.ttile.t-ready { box-shadow: 0 0 0 2px var(--st-done); }
.ttile.t-call { box-shadow: 0 0 0 2px #FF0040; animation: tcall 1.6s ease infinite; }
@keyframes tcall { 50% { box-shadow: 0 0 0 5px rgba(255,0,64,.25); } }
.pill.tsp-occupied { background: var(--st-preparing-bg); color: var(--st-preparing); }
.pill.tsp-reserved { background: var(--st-ready-bg); color: var(--st-ready); }
.pill.tsp-bill_requested { background: var(--st-new-bg); color: var(--st-new); }
@media (max-width: 1100px) { .tkpi { grid-template-columns: repeat(3, 1fr); } .tkpi > :nth-child(n+4) { grid-column: span 1; } }
@media (max-width: 860px) {
  .tkpi { grid-template-columns: repeat(2, 1fr); } .tkpi > :first-child { grid-column: span 2; }
  .tgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .floor { display: grid; grid-template-columns: repeat(2, 1fr) !important; background: none; border: 0; padding: 0; }
  .ttile { grid-column: auto !important; grid-row: auto !important; min-width: 0; }
  .tbar-r { margin-left: 0; width: 100%; } .tbar-r .btn { flex: 1; }
  .msearch { flex: 1; } .msearch input { width: 100%; }
}

/* Masa çekmecesi */
.tdh { align-items: flex-start; }
.tdh-n { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 20px; font-weight: 800; flex: none; }
.tdh-t { flex: 1; display: grid; gap: 3px; min-width: 0; } .tdh-t b { font-size: 18px; display: flex; align-items: center; gap: 8px; } .tdh-t small { color: var(--ink-3); }
.tdn { border-color: #FF0040; background: rgba(255,0,64,.06); font-weight: 600; }
.tsumm { display: grid; grid-template-columns: 1.4fr 1fr .8fr .9fr; gap: 8px; margin-bottom: 12px; }
.tsumm > div { display: grid; padding: 10px 12px; border-radius: 10px; background: var(--rule-2); }
.tsumm > div:first-child { background: var(--ink); color: var(--paper); } .tsumm > div:first-child span { color: inherit; opacity: .7; }
.tsumm span { font-size: 11.5px; color: var(--ink-3); } .tsumm b { font-size: 16px; }
.tsumm > div:first-child b { font-size: 20px; }
.tfree { display: grid; gap: 4px; padding: 18px; border: 1px dashed var(--rule); border-radius: 12px; text-align: center; color: var(--ink-3); margin-bottom: 12px; } .tfree b { color: var(--ink); font-size: 15px; }
.tord.st-ready { border-left: 3px solid var(--st-done); padding-left: 10px; }
.tnote { color: var(--st-courier); font-weight: 600; }

/* Garson uygulaması tanıtımı ve QR ile giriş */
.wapp-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.wapp-steps > div { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; }
.wapp-steps b { width: 28px; height: 28px; border-radius: 50%; background: #FF0040; color: #fff; display: grid; place-items: center; flex: none; }
.wapp-steps span { font-size: 13.5px; color: var(--ink-2); } .wapp-steps strong { color: var(--ink); display: block; }
.uqr { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; min-height: 120px; }
.uqr > .spin { grid-column: 1 / -1; justify-self: center; margin-top: 40px; }
.uqr-code { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--rule); transition: opacity .2s, filter .2s; }
.uqr-code svg { display: block; width: 100%; height: auto; }
.uqr-code.exp { opacity: .25; filter: blur(2px); }
.uqr-side { display: grid; gap: 10px; }
.uqr-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; }
.uqr-timer { font-weight: 700; font-variant-numeric: tabular-nums; } .uqr-timer.bad { color: var(--st-cancel); }
.uqr-dev { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--rule-2); font-size: 13px; }
.u-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.u-hint { margin-bottom: 12px; }
@media (max-width: 640px) { .uqr { grid-template-columns: 1fr; } .uqr-code { max-width: 240px; justify-self: center; } .wapp-steps { grid-template-columns: 1fr; } .tsumm { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ Kurye haritası */
.mapwrap { display: grid; grid-template-columns: 1fr 320px; gap: 12px; height: calc(100vh - var(--top-h) - 60px); min-height: 460px; }
.mapbox { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--rule-2); }
.mapside { overflow-y: auto; }
.mc { padding: 10px 12px; border-bottom: 1px solid var(--rule-2); cursor: pointer; }
.mc:hover { background: var(--rule-2); }
.mc b { display: block; }
.mc small { color: var(--ink-3); }
.cmark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.cmark.stale { opacity: .55; }
.omark { min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; background: #fff; border: 2px solid var(--st-road); color: #0B6E78; font-weight: 800; font-size: 11px; }
.bmark { width: 26px; height: 26px; border-radius: 6px; background: #172036; color: #F2B705; display: grid; place-items: center; font-weight: 800; border: 2px solid #fff; }
[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.72) contrast(1.1) saturate(.8); }
[data-theme="dark"] .leaflet-container { background: #0E1320; }
@media (max-width: 860px) { .mapwrap { grid-template-columns: 1fr; height: auto; } .mapbox { height: 62vh; } }

/* ------------------------------------------------------------------ Stok */
.pill.crit { background: var(--st-cancel-bg); color: var(--st-cancel); }
.chart-svg { width: 100%; height: 180px; display: block; }
.chart-svg .grid { stroke: var(--rule-2); }
.chart-svg .line { fill: none; stroke: var(--st-preparing); stroke-width: 2.2; }
.chart-svg .area { fill: var(--st-preparing-bg); }
.chart-svg text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font); }
.hbar { display: grid; grid-template-columns: 130px 1fr 90px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbar .track { height: 12px; background: var(--rule-2); border-radius: 6px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 6px; }
.hbar .v { text-align: right; font-weight: 600; }

/* ------------------------------------------------------------------ Online sipariş sayfası */
.pm { max-width: 720px; margin: 0 auto; padding-bottom: 110px; }
.pm-head { padding: 22px 16px 10px; }
.pm-head h1 { font-size: 24px; }
.pm-head p { color: var(--ink-3); margin: 4px 0 0; }
.pm-cats { position: sticky; top: 0; z-index: 5; background: var(--paper); display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--rule); }
.pm-cats a { flex: none; padding: 7px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); font-weight: 600; font-size: 13px; }
.pm-cats a:hover { text-decoration: none; border-color: var(--ink-3); }
.pm-sec h2 { padding: 18px 16px 8px; font-size: 16px; }
.pm-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); background: var(--surface); }
.pm-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pm-item b { font-size: 15px; }
.pm-item small { color: var(--ink-3); grid-column: 1; }
.pm-item .pr { font-weight: 700; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.pm-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 35%); z-index: 20; }
.pm-bar .btn { width: 100%; max-width: 696px; margin: 0 auto; display: flex; }
.pm-done { text-align: center; padding: 40px 18px; }
.pm-done .big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.modal-wrap > .scrim { z-index: 0; }
.modal-wrap > .modal { position: relative; z-index: 1; }
.ftoggle { display: none; }
@media (max-width: 860px) {
  .ftoggle { display: inline-flex; }
  .filterbar[data-filterbar] select.input, .filterbar[data-filterbar] input[type="date"] { display: none; }
  .filterbar[data-filterbar].open select.input, .filterbar[data-filterbar].open input[type="date"] { display: block; flex: 1 1 45%; }
  .topbar .conn span { display: none; }
  .topbar h1 { font-size: 15px; }
}

/* Sipariş merkezi · gece teması */
[data-theme="dark"] .col-empty { border-color: var(--rule); }
[data-theme="dark"] .t-timer.warn, [data-theme="dark"] .tmr.warn { background: rgba(242, 183, 5, .16); color: #F6D776; }
[data-theme="dark"] .t-note { border-color: rgba(242, 183, 5, .25); }
[data-theme="dark"] .t-items .opt.inote { color: #F6D776; }
[data-theme="dark"] .ticket:hover { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
[data-theme="dark"] .col-head .n { background: var(--rule-2); }

/* Sipariş merkezi · mobil (genel mobil kurallarından sonra gelmeli) */
@media (max-width: 860px) {
  .pipe { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .pipe-meta { display: none; }
  .pipe-step { padding: 10px 10px 10px 14px; }
  .pipe-step b { font-size: 22px; }
  .ops-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tright { margin-left: 0; width: 100%; }
  .tright .btn-primary { margin-left: auto; }
  .tsearch { max-width: none; flex-basis: 100%; }
  .tsearch kbd { display: none; }
  .filterbar .tseg { order: 2; }
  .filterbar .ftoggle { order: 3; margin-left: auto; }
  .filterbar .tright { order: 4; }
  .mobile-tabs button { display: inline-flex; align-items: center; gap: 6px; }
  .mobile-tabs button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
  .mobile-tabs button b { font-weight: 800; }
  .t-actions .btn { height: 46px; }
}

/* ------------------------------------------------------------------ Kasa / hızlı satış (POS) */
.content-pos { padding: 12px 12px 12px 16px; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 430px); gap: 12px; height: calc(100vh - var(--top-h) - 24px); height: calc(100dvh - var(--top-h) - 24px); min-height: 520px; }
.pos-menu { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.pos-top { display: flex; gap: 10px; align-items: center; padding: 12px 14px 8px; }
.pos-search { flex: 1; max-width: none; }
.pos-search .input { height: 44px; font-size: 15px; border-radius: 10px; }
.pos-recent { position: relative; }
.pos-recent .btn { height: 44px; border-radius: 10px; }
.pos-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; max-height: 380px; overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(23, 32, 54, .35); z-index: 40; padding: 6px; }
.pos-pop a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--ink); }
.pos-pop a:hover { background: var(--paper); text-decoration: none; }
.pos-pop a span { font-size: 12.5px; color: var(--ink-3); }
.pos-pop a em { font-style: normal; font-weight: 700; }
.pos-pop p { padding: 12px; margin: 0; }
.pos-cats { display: flex; gap: 8px; padding: 4px 14px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule-2); flex: none; }
.pos-cats::-webkit-scrollbar { display: none; }
.pos-cats button {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 19px;
  border: 1px solid var(--rule); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: background .12s, border-color .12s;
}
.pos-cats button i { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h) 62% 52%); }
.pos-cats button svg { width: 15px; height: 15px; fill: none; stroke: #E0A100; stroke-width: 2; stroke-linejoin: round; }
.pos-cats button b { font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--rule-2); border-radius: 9px; padding: 1px 7px; }
.pos-cats button:hover { border-color: var(--ink-3); }
.pos-cats button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pos-cats button[aria-selected="true"] b { background: rgba(255, 255, 255, .18); color: inherit; }
.pos-cats button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pos-grid { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); grid-auto-rows: max-content; gap: 12px; align-content: start; scrollbar-width: thin; }
.pos-tile {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  transition: transform .1s, box-shadow .15s, border-color .15s; -webkit-tap-highlight-color: transparent;
}
.pos-tile:hover { border-color: #BAC2CF; box-shadow: 0 10px 22px -14px rgba(23, 32, 54, .45); }
.pos-tile:active { transform: scale(.97); }
.pos-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pos-tile.in { border-color: var(--st-done); box-shadow: 0 0 0 1px var(--st-done); }
.pos-tile.bump { animation: tile-bump .28s ease; }
@keyframes tile-bump { 40% { transform: scale(.95); } }
.pos-tile.off { cursor: not-allowed; }
.pos-tile.off .pt-img, .pos-tile.off .pt-body { opacity: .5; }
.pt-img { position: relative; display: block; flex: none; aspect-ratio: 4 / 3; background: linear-gradient(140deg, hsl(var(--h) 70% 92%), hsl(var(--h) 55% 80%)); overflow: hidden; }
.pt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: hsl(var(--h) 45% 32%); }
.pt-n { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--st-done); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.pt-off { position: absolute; left: 8px; bottom: 8px; background: rgba(23, 32, 54, .85); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pt-body { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 11px; flex: 1; }
.pt-name { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-desc { font-size: 12px; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.pt-foot b { font-size: 15px; font-weight: 800; color: var(--ink); }
.pt-opt { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; color: #172036; background: rgba(255, 255, 255, .92); padding: 3px 8px; border-radius: 6px; }
.pt-foot small { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--rule-2); padding: 1px 6px; border-radius: 5px; }
.pt-foot small.low { color: var(--st-cancel); background: var(--st-cancel-bg); }
.pt-add { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.pt-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pos-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--ink-3); }
.pos-empty h3 { color: var(--ink); margin-bottom: 6px; }

.pos-cart { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.pc-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; }
.pc-title { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.pc-title h2 { font-size: 18px; }
.pc-no { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.pc-acts { display: flex; gap: 2px; }
.pc-acts svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-acts .count { background: var(--st-new); color: #111; }
.pc-type { margin: 0 14px 10px; display: grid; grid-template-columns: repeat(3, 1fr); }
.pc-type button { text-align: center; padding: 9px 0; font-size: 13.5px; }
.pc-ctx { padding: 0 14px; }
.pc-ctx:empty { display: none; }
.pc-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.pc-field > span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.pc-field .input { height: 38px; }
.pc-field textarea.input { min-height: 0; height: auto; padding: 7px 10px; }
.pc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-known { font-size: 12px; color: var(--ink-3); margin: -4px 0 6px; }
.pc-table { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; margin-bottom: 8px; border: 1.5px dashed var(--rule); border-radius: 10px; }
.pc-table:hover { border-color: var(--ink-3); }
.pc-tname { font-weight: 800; font-size: 16px; }
.pc-table small { grid-column: 1; color: var(--ink-3); font-size: 12px; }
.pc-tchg { grid-row: 1 / span 2; grid-column: 2; font-size: 12.5px; font-weight: 700; color: var(--focus); }
.pc-lines { flex: 1; min-height: 80px; overflow-y: auto; border-top: 1px solid var(--rule-2); scrollbar-width: thin; }
.pl { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--rule-2); }
.pl.last { background: color-mix(in srgb, var(--st-done) 6%, var(--surface)); }
.pl-img { width: 42px; height: 42px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: hsl(var(--h) 45% 32%); background: linear-gradient(140deg, hsl(var(--h) 70% 92%), hsl(var(--h) 55% 80%)); }
.pl-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pl-main b { font-size: 13.5px; line-height: 1.3; }
.pl-main small { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.pl-main .pl-note { color: #9A6A00; }
.pl-unit { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pl-tot { font-size: 14px; font-weight: 800; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 9px; overflow: hidden; background: var(--surface); }
.stepper button { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: var(--rule-2); }
.stepper button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.stepper svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper input { width: 36px; height: 32px; border: 0; border-left: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); text-align: center; font: 700 14px var(--font); color: var(--ink); background: transparent; padding: 0; }
.stepper input:focus { outline: none; background: var(--paper); }
.pc-empty { height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); text-align: center; padding: 20px; }
.pc-empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; margin-bottom: 6px; }
.pc-empty b { color: var(--ink-2); font-size: 15px; }
.pc-empty .keys { margin-top: 10px; font-size: 12px; }
kbd { font: 600 11px/1 var(--font); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; background: var(--paper); color: var(--ink-2); }
.pc-foot { border-top: 1px solid var(--rule); padding: 10px 14px 14px; background: var(--paper); }
.pc-sums > div { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); padding: 2px 0; }
.pc-sums .link:disabled { color: var(--ink-3); cursor: default; }
.pc-total { margin-top: 4px; padding-top: 8px !important; border-top: 1px dashed var(--rule); }
.pc-total span { font-size: 15px; font-weight: 700; color: var(--ink); }
.pc-total b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pc-quick { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 8px 0 2px; cursor: pointer; line-height: 1.35; }
.pc-quick input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.pc-pay { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-m { height: 46px; border-radius: 11px; justify-content: flex-start; gap: 8px; padding: 0 12px; font-size: 14px; }
.pay-m svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pay-m kbd { margin-left: auto; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: inherit; }
.pay-m.big { height: 58px; font-size: 16px; }
.pay-m.cash { background: var(--st-done); border-color: var(--st-done); color: #fff; }
.pay-m.cash:hover:not(:disabled) { background: #12603A; }
.pay-m.card { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pay-m.card:hover:not(:disabled) { background: #24304B; }
.pay-main { height: 56px; border-radius: 12px; justify-content: space-between; padding: 0 16px; font-size: 15px; }
.pay-main b { font-size: 18px; }
.pc-hint { color: var(--ink-3); font-size: 12px; text-align: center; }

/* Masa seçimi, tahsilat, indirim pencereleri */
.pt-area { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.pos-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ptab { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 10px; padding: 12px 8px; text-align: center; border: 1.5px solid var(--rule); background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.ptab b { font-size: 18px; }
.ptab small { font-size: 11.5px; color: var(--ink-3); }
.ptab:hover { border-color: var(--ink-3); }
.ptab.st-occupied { border-color: var(--st-preparing); background: var(--st-preparing-bg); }
.ptab.st-bill_requested { border-color: var(--st-courier); background: var(--st-courier-bg); }
.ptab.st-reserved { border-color: var(--st-ready); background: var(--st-ready-bg); }
.pay-due { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); margin-bottom: 14px; }
.pay-due span { font-weight: 600; color: var(--ink-2); }
.pay-due b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pos-big-input { height: 56px !important; font-size: 24px !important; font-weight: 700; text-align: right; }
.disc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.disc-quick .btn { height: 40px; }
.disc-quick .btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pay-change { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--st-done-bg); color: var(--st-done); }
.pay-change span { font-weight: 700; }
.pay-change b { font-size: 26px; font-weight: 800; }
.pay-change.short { background: var(--st-cancel-bg); color: var(--st-cancel); }
.split-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.pos-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0; }
.pos-done .dm { width: 64px; height: 64px; border-radius: 50%; background: var(--st-done-bg); display: grid; place-items: center; margin-bottom: 6px; animation: tk-in .3s ease both; }
.pos-done .dm svg { width: 32px; height: 32px; fill: none; stroke: var(--st-done); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pos-done .dno { font-size: 30px; font-weight: 800; }
.dsum { width: 100%; margin-top: 14px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.dsum div { display: flex; justify-content: space-between; padding: 10px 14px; }
.dsum div + div { border-top: 1px solid var(--rule-2); }
.dsum .chg { background: var(--st-done-bg); color: var(--st-done); }
.dsum .chg b { font-size: 22px; }
.park-new { display: flex; gap: 8px; margin-bottom: 14px; }
.park-list { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.park-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.park-item + .park-item { border-top: 1px solid var(--rule-2); }
.park-item span { margin-right: auto; display: flex; flex-direction: column; }
.park-item small { color: var(--ink-3); }
.park-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

[data-theme="dark"] .pos-tile:hover { box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .8); }
[data-theme="dark"] .pt-img, [data-theme="dark"] .pl-img { background: linear-gradient(140deg, hsl(var(--h) 30% 26%), hsl(var(--h) 35% 18%)); }
[data-theme="dark"] .pt-ph, [data-theme="dark"] .pl-img { color: hsl(var(--h) 60% 78%); }
[data-theme="dark"] .pay-m.card:hover:not(:disabled) { background: #fff; }
[data-theme="dark"] .pos-pop { box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); }

@media (max-width: 1100px) {
  .pos { grid-template-columns: minmax(0, 1fr) 340px; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .pt-desc { display: none; }
}
@media (max-width: 860px) {
  .content-pos { padding: 8px 8px 84px; }
  .pos { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .pos-menu { min-height: 60vh; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .pos-recent { display: none; }
  .pos-cart { position: relative; }
  .pc-lines { max-height: 40vh; }
}
.pos-mbar {
  display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 29; height: 54px; border: 0; border-radius: 14px;
  background: var(--st-done); color: #fff; font: 700 15px var(--font); align-items: center; gap: 10px; padding: 0 16px; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); cursor: pointer;
}
.pos-mbar[hidden] { display: none !important; }
@media (min-width: 861px) { .pos-mbar { display: none !important; } }
.pos-mbar b { margin-left: auto; font-size: 17px; }
.pos-mbar i { font-style: normal; min-width: 26px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 13px; }

/* Menü: ürün görseli */
.img-field { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--rule); border-radius: 10px; margin-bottom: 12px; }
.img-field small { display: block; color: var(--ink-3); font-size: 12px; }
.img-prev { width: 72px; height: 72px; border-radius: 12px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--rule-2); font-weight: 800; font-size: 20px; color: var(--ink-3); position: relative; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23172036' stroke-width='3' stroke-dasharray='40 20'/%3E%3C/svg%3E") center / 26px no-repeat; }
.prod-cell { display: flex; gap: 10px; align-items: center; }
.prod-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--rule-2); font-size: 12px; font-weight: 800; color: var(--ink-3); }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ QR menü / online sipariş (müşteri, mobil öncelikli) */
.qm { --qm-bg: #F5F5F7; --qm-card: #FFFFFF; --qm-ink: #1D1D1F; --qm-mute: #6E6E73; --qm-line: rgba(0, 0, 0, .08); --qm-acc: #1D1D1F; --qm-acc-ink: #fff; --qm-go: #0A8F4A;
  max-width: 760px; margin: 0 auto; padding-bottom: calc(150px + env(safe-area-inset-bottom)); background: var(--qm-bg); min-height: 100vh; color: var(--qm-ink); font-size: 15px; }
body:has(.qm) { background: #F5F5F7; }
[data-theme="dark"] .qm, [data-theme="dark"] .qm-sheet, [data-theme="dark"] .qm-tabbar, [data-theme="dark"] .qm-cartpill { --qm-bg: #000; --qm-card: #1C1C1E; --qm-ink: #F5F5F7; --qm-mute: #98989D; --qm-line: rgba(255, 255, 255, .1); --qm-acc: #F5F5F7; --qm-acc-ink: #000; --qm-go: #30D158; }
[data-theme="dark"] body:has(.qm) { background: #000; }
html.qm-lock, html.qm-lock body { overflow: hidden; }
.qm-hero { padding: calc(18px + env(safe-area-inset-top)) 18px 16px; display: flex; align-items: center; gap: 12px; }
.qm-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.qm-logo { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #F2B705, #E4572E); box-shadow: 0 6px 16px -6px rgba(228, 87, 46, .6); }
.qm-bt { min-width: 0; }
.qm-bt h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm-bt p { margin: 2px 0 0; color: var(--qm-mute); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.qm-open { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.qm-open.on { background: rgba(10, 143, 74, .12); color: var(--qm-go); }
.qm-open.off { background: rgba(255, 59, 48, .12); color: #FF3B30; }
.qm-table { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 58px; border-radius: 16px; background: var(--qm-acc); color: var(--qm-acc-ink); }
.qm-table span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.qm-table b { font-size: 22px; font-weight: 800; line-height: 1.05; }
.qm-sticky { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--qm-bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); padding: 8px 0 0; transition: box-shadow .2s; }
.qm-sticky.stuck { box-shadow: 0 1px 0 var(--qm-line); }
.qm-search { position: relative; display: block; margin: 0 16px 10px; }
.qm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--qm-mute); stroke-width: 2; stroke-linecap: round; }
.qm-search input { width: 100%; height: 42px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--qm-ink) 7%, transparent); padding: 0 12px 0 38px; font: 500 16px var(--font); color: var(--qm-ink); -webkit-appearance: none; appearance: none; }
.qm-search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 122, 255, .25); }
.qm-cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; scroll-behavior: smooth; }
.qm-cats::-webkit-scrollbar { display: none; }
.qm-cats a { flex: none; padding: 8px 14px; border-radius: 18px; font-weight: 600; font-size: 14px; color: var(--qm-ink); background: var(--qm-card); box-shadow: 0 0 0 1px var(--qm-line); white-space: nowrap; transition: background .15s, color .15s; }
.qm-cats a:hover { text-decoration: none; }
.qm-cats a[aria-current="true"] { background: var(--qm-acc); color: var(--qm-acc-ink); box-shadow: none; }
.qm-list { padding: 4px 16px 0; }
.qm-sec { scroll-margin-top: 120px; padding-top: 14px; }
.qm-sec h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0 2px 10px; }
.qm-items { background: var(--qm-card); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.qm-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; width: 100%; padding: 14px 14px 14px 16px; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.qm-item + .qm-item { box-shadow: inset 0 1px 0 var(--qm-line); }
.qm-item:active { background: color-mix(in srgb, var(--qm-ink) 5%, transparent); }
.qm-item:focus-visible { outline: 2px solid #007AFF; outline-offset: -2px; }
.qm-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qm-it > b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.qm-desc { font-size: 13.5px; color: var(--qm-mute); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qm-price { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.qm-price small { font-size: 11.5px; font-weight: 600; color: var(--qm-mute); background: color-mix(in srgb, var(--qm-ink) 7%, transparent); padding: 2px 7px; border-radius: 6px; }
.qm-img { position: relative; flex: none; width: 104px; height: 104px; border-radius: 14px; background: linear-gradient(140deg, hsl(var(--h) 70% 92%), hsl(var(--h) 55% 80%)); display: grid; place-items: center; }
.qm-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.qm-img > span:first-child:not(.qm-add) { font-size: 26px; font-weight: 800; color: hsl(var(--h) 45% 32%); }
[data-theme="dark"] .qm-img { background: linear-gradient(140deg, hsl(var(--h) 30% 26%), hsl(var(--h) 35% 18%)); }
[data-theme="dark"] .qm-img > span:first-child:not(.qm-add) { color: hsl(var(--h) 60% 78%); }
.qm-add { position: absolute; right: -6px; bottom: -6px; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; background: var(--qm-card); color: var(--qm-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18), 0 0 0 1px var(--qm-line); box-sizing: border-box; }
.qm-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.qm-add.has { background: var(--qm-go); color: #fff; box-shadow: 0 2px 8px rgba(10, 143, 74, .45); }
.qm-add.pop { animation: qm-pop .35s ease; }
@keyframes qm-pop { 40% { transform: scale(1.25); } }
.qm-skel { display: flex; gap: 14px; padding: 14px 0; }
.qm-skel span:first-child { flex: 1; height: 72px; }
.qm-skel span:last-child { width: 104px; height: 104px; border-radius: 14px; }
.qm-closed { margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 149, 0, .12); color: #A15C00; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
[data-theme="dark"] .qm-closed { color: #FFB340; }
.qm-empty { text-align: center; padding: 40px 16px; color: var(--qm-mute); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qm-empty b { color: var(--qm-ink); font-size: 17px; }
.qm-empty.big svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .5; margin-bottom: 6px; }
.qm-foot { margin: 28px 16px 0; padding: 20px 4px 0; border-top: 1px solid var(--qm-line); display: flex; flex-direction: column; gap: 4px; color: var(--qm-mute); font-size: 13px; text-align: center; }
.qm-foot b { color: var(--qm-ink); font-size: 14px; }
.qm-foot a { color: #007AFF; font-weight: 600; }
.qm-foot small { margin-top: 6px; font-size: 11.5px; }

/* Alt sekme çubuğu (cam efekti) */
.qm-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--qm-card, #fff) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-top: 0.5px solid var(--qm-line, rgba(0, 0, 0, .1));
}
.qm-tabbar { --qm-card: #FFFFFF; --qm-ink: #1D1D1F; --qm-mute: #8E8E93; --qm-line: rgba(0, 0, 0, .12); }
[data-theme="dark"] .qm-tabbar { --qm-card: #1C1C1E; --qm-ink: #F5F5F7; --qm-mute: #8E8E93; }
.qm-tabbar > * { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 2px; color: var(--qm-mute); font: 600 10.5px var(--font); -webkit-tap-highlight-color: transparent; }
.qm-tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.qm-tabbar > *:active svg { transform: scale(.88); }
.qm-tabbar [aria-current="page"] { color: #007AFF; }
.qm-tabbar [aria-current="page"] svg { stroke-width: 2.1; }
.qm-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #FF3B30; color: #fff; font: 700 11.5px/19px var(--font); text-align: center; font-style: normal; box-sizing: border-box; }
.qm-dot { position: absolute; top: 2px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: #FF9500; box-shadow: 0 0 0 2px var(--qm-card); }
.qm-cartpill {
  position: fixed; z-index: 39; left: 50%; transform: translateX(-50%); bottom: calc(74px + env(safe-area-inset-bottom)); width: min(728px, calc(100% - 24px)); height: 56px; border: 0; border-radius: 16px;
  background: var(--qm-go, #0A8F4A); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 18px; font: 700 16px var(--font); cursor: pointer; box-shadow: 0 14px 30px -12px rgba(10, 143, 74, .7); animation: qm-up .3s ease;
}
.qm-cartpill[hidden] { display: none; }
.qm-cartpill b { margin-left: auto; font-size: 17px; }
.qm-cp-n { min-width: 28px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 14px; }
@keyframes qm-up { from { transform: translate(-50%, 20px); opacity: 0; } }

/* Alt sayfa */
.qm-sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.qm-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .25s; }
.qm-sheet-wrap.on .qm-scrim { opacity: 1; }
.qm-sheet {
  --qm-card: #FFFFFF; --qm-ink: #1D1D1F; --qm-mute: #6E6E73; --qm-line: rgba(0, 0, 0, .08); --qm-acc: #1D1D1F; --qm-acc-ink: #fff; --qm-go: #0A8F4A; --qm-bg: #F2F2F7;
  position: absolute; left: 50%; bottom: 0; width: min(760px, 100%); max-height: 88vh; max-height: 88dvh; transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  background: var(--qm-card); color: var(--qm-ink); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
[data-theme="dark"] .qm-sheet { --qm-bg: #2C2C2E; }
.qm-sheet.full { height: 92vh; height: 92dvh; max-height: none; }
.qm-sheet-wrap.on .qm-sheet { transform: translate(-50%, 0); }
.qm-grab { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--qm-ink) 22%, transparent); z-index: 3; }
.qm-sh-head { display: flex; align-items: center; padding: 22px 18px 10px; }
.qm-sh-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-right: auto; }
.qm-x { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--qm-ink) 8%, transparent); color: var(--qm-mute); }
.qm-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.qm-x.float { position: absolute; top: 14px; right: 14px; z-index: 4; background: rgba(0, 0, 0, .45); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.qm-sh-body { flex: 1; overflow-y: auto; padding: 0 18px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.qm-sh-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 0.5px solid var(--qm-line); background: var(--qm-card); }
.qm-hero-img { margin: 0 -18px 4px; aspect-ratio: 16 / 11; max-height: 46vh; overflow: hidden; background: var(--qm-bg); }
.qm-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.qm-pd { padding: 18px 0 8px; }
.qm-sheet:not(.full) .qm-pd { padding-top: 30px; }
.qm-pd h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.qm-pd p { color: var(--qm-mute); margin: 6px 0 0; line-height: 1.45; }
.qm-pd-price { display: block; margin-top: 10px; font-size: 19px; }
.qm-grp { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--qm-bg); transition: box-shadow .2s; }
.qm-grp.err { box-shadow: 0 0 0 2px #FF3B30; }
.qm-grp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qm-grp-h b { font-size: 16px; }
.qm-grp-h span { font-size: 12px; font-weight: 700; color: var(--qm-mute); }
.qm-grp-h span.req { color: #FF9500; }
.qm-opt { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; font-size: 15.5px; }
.qm-opt + .qm-opt { border-top: 0.5px solid var(--qm-line); }
.qm-opt input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--qm-ink) 25%, transparent); flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.qm-opt input[type="checkbox"] { border-radius: 7px; }
.qm-opt input:checked { background: #007AFF; border-color: #007AFF; }
.qm-opt input:checked::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.qm-opt span { flex: 1; }
.qm-opt em { font-style: normal; color: var(--qm-mute); font-weight: 600; font-size: 14px; }
.qm-input { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; background: var(--qm-card); padding: 12px 14px; font: 500 16px var(--font); color: var(--qm-ink); box-shadow: inset 0 0 0 1px var(--qm-line); -webkit-appearance: none; appearance: none; resize: none; }
.qm-input:focus { outline: none; box-shadow: inset 0 0 0 2px #007AFF; }
.qm-input.err { box-shadow: inset 0 0 0 2px #FF3B30; }
.qm-step { display: inline-flex; align-items: center; gap: 2px; background: var(--qm-bg); border-radius: 14px; padding: 4px; flex: none; }
.qm-step button { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--qm-ink); }
.qm-step button:active { background: color-mix(in srgb, var(--qm-ink) 10%, transparent); }
.qm-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qm-step b { min-width: 26px; text-align: center; font-size: 17px; }
.qm-step.sm button { width: 32px; height: 32px; }
.qm-step.sm svg { width: 15px; height: 15px; }
.qm-step.sm b { min-width: 20px; font-size: 15px; }
.qm-btn { all: unset; box-sizing: border-box; cursor: pointer; height: 54px; border-radius: 16px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16.5px var(--font); background: var(--qm-bg); color: var(--qm-ink); -webkit-tap-highlight-color: transparent; transition: transform .1s, opacity .15s; }
.qm-btn:active:not(:disabled) { transform: scale(.98); }
.qm-btn.primary { background: var(--qm-acc); color: var(--qm-acc-ink); }
.qm-btn.grow { flex: 1; }
.qm-btn.primary b { margin-left: auto; }
.qm-btn.primary span + b { margin-left: auto; }
.qm-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; }
.qm-btn:disabled { opacity: .45; cursor: not-allowed; }
.qm-btn.busy { opacity: .7; pointer-events: none; }
.qm-btn.busy::after { content: ""; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.qm-sum { display: flex; flex-direction: column; flex: none; min-width: 92px; }
.qm-sum span { font-size: 12px; color: var(--qm-mute); font-weight: 600; }
.qm-sum b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.qm-lines { display: flex; flex-direction: column; }
.qm-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.qm-line + .qm-line { border-top: 0.5px solid var(--qm-line); }
.qm-limg { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: hsl(var(--h) 45% 32%); background: linear-gradient(140deg, hsl(var(--h) 70% 92%), hsl(var(--h) 55% 80%)); }
.qm-limg img { width: 100%; height: 100%; object-fit: cover; }
.qm-lt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qm-lt b { font-size: 15px; }
.qm-lt small { font-size: 12.5px; color: var(--qm-mute); }
.qm-lt small.nt { color: #C77700; }
.qm-lt em { font-style: normal; font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.qm-info { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 122, 255, .08); font-size: 14px; line-height: 1.45; }
.qm-info svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #007AFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qm-info.ok { background: rgba(10, 143, 74, .1); }
.qm-info.ok svg { stroke: var(--qm-go); }
.qm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 12px; background: var(--qm-bg); margin-top: 16px; }
.qm-seg button { all: unset; cursor: pointer; text-align: center; padding: 9px 0; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--qm-mute); }
.qm-seg button[aria-pressed="true"] { background: var(--qm-card); color: var(--qm-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.qm-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.qm-form label { display: flex; flex-direction: column; gap: 5px; }
.qm-form label > span { font-size: 13px; font-weight: 600; color: var(--qm-mute); padding-left: 2px; }
.qm-form .qm-input { background: var(--qm-bg); box-shadow: none; }
.qm-form .qm-input:focus { box-shadow: inset 0 0 0 2px #007AFF; }
.qm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qm-chips button { all: unset; cursor: pointer; padding: 10px 16px; border-radius: 12px; background: var(--qm-card); font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--qm-line); }
.qm-chips button[aria-pressed="true"] { background: var(--qm-acc); color: var(--qm-acc-ink); box-shadow: none; }
.qm-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--qm-mute); line-height: 1.45; cursor: pointer; }
.qm-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #007AFF; }
.qm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qm-ok { text-align: center; padding: 34px 6px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qm-ok h2 { font-size: 24px; font-weight: 800; }
.qm-ok p { margin: 0; color: var(--qm-mute); }
.qm-ok-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--qm-go); display: grid; place-items: center; margin-bottom: 8px; animation: qm-pop .5s ease; }
.qm-ok-mark svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.qm-track { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
.qm-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--qm-mute); font-weight: 600; text-align: center; }
.qm-track li i { width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--qm-ink) 14%, transparent); position: relative; z-index: 1; }
.qm-track li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: color-mix(in srgb, var(--qm-ink) 14%, transparent); }
.qm-track li:first-child::before { display: none; }
.qm-track li.done i, .qm-track li.cur i { background: var(--qm-go); }
.qm-track li.done::before, .qm-track li.cur::before { background: var(--qm-go); }
.qm-track li.cur { color: var(--qm-ink); }
.qm-track li.cur i { box-shadow: 0 0 0 5px color-mix(in srgb, var(--qm-go) 25%, transparent); }
.qm-track.bad { display: block; padding: 10px; border-radius: 12px; background: rgba(255, 59, 48, .1); color: #FF3B30; text-align: center; }
.qm-ord { padding: 14px; border-radius: 16px; background: var(--qm-bg); margin-bottom: 10px; }
.qm-ord-h { display: flex; gap: 10px; align-items: baseline; }
.qm-ord-h span { color: var(--qm-mute); font-size: 13px; }
.qm-ord-h em { margin-left: auto; font-style: normal; font-weight: 700; }
.qm-call { text-align: center; padding: 16px 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qm-call h3 { font-size: 21px; font-weight: 800; }
.qm-call p { margin: 0; color: var(--qm-mute); line-height: 1.45; max-width: 320px; }
.qm-bell { width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 149, 0, .14); display: grid; place-items: center; margin-bottom: 6px; }
.qm-bell svg { width: 42px; height: 42px; fill: none; stroke: #FF9500; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qm-call.sent .qm-bell { background: rgba(10, 143, 74, .12); animation: qm-ring 1.2s ease 2; }
.qm-call.sent .qm-bell svg { stroke: var(--qm-go); }
@keyframes qm-ring { 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } 50% { transform: none; } }
.qm-bill { display: flex; flex-direction: column; gap: 10px; }
.qm-bo { padding: 12px 14px; border-radius: 14px; background: var(--qm-bg); }
.qm-bo-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.qm-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: color-mix(in srgb, var(--qm-ink) 8%, transparent); color: var(--qm-mute); }
.qm-st.st-ready, .qm-st.st-completed { background: rgba(10, 143, 74, .12); color: var(--qm-go); }
.qm-st.st-preparing, .qm-st.st-approved { background: rgba(0, 122, 255, .1); color: #007AFF; }
.qm-bi { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; color: var(--qm-ink); }
.qm-btot { padding: 6px 4px 0; }
.qm-btot div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--qm-mute); }
.qm-btot .due { color: var(--qm-ink); font-size: 18px; border-top: 0.5px solid var(--qm-line); padding-top: 10px; margin-top: 4px; }
.qm-btot .due b { font-size: 22px; }
.qm-toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.qm-toast { background: rgba(30, 30, 32, .92); color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: qm-drop .25s ease; transition: opacity .3s, transform .3s; }
.qm-toast.bad { background: rgba(215, 38, 38, .95); }
.qm-toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes qm-drop { from { opacity: 0; transform: translateY(-10px); } }
.qm .muted, .qm-sheet .muted { color: var(--qm-mute); }
@media (min-width: 761px) {
  .qm-hero { padding-top: 28px; }
  .qm-items { display: grid; grid-template-columns: 1fr 1fr; }
  .qm-item + .qm-item { box-shadow: none; }
  .qm-item { box-shadow: inset 0 -1px 0 var(--qm-line) !important; }
  .qm-sheet { border-radius: 22px 22px 0 0; }
}

/* Personel: masadan gelen istek uyarıları */
.treqs { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.treq { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid #E0A100; box-shadow: 0 14px 32px -12px rgba(23, 32, 54, .45); }
.treq.k-bill { border-left-color: var(--st-ready); }
.treq.fresh { animation: treq-in .4s ease, treq-pulse 1.4s ease 3; }
.treq > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #E0A100; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.treq.k-bill > svg { stroke: var(--st-ready); }
.treq div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.treq b { font-size: 15px; }
.treq span { font-size: 13px; color: var(--ink-2); }
.treq small { font-size: 11.5px; color: var(--ink-3); }
@keyframes treq-in { from { transform: translateX(30px); opacity: 0; } }
@keyframes treq-pulse { 50% { box-shadow: 0 0 0 4px rgba(224, 161, 0, .35), 0 14px 32px -12px rgba(23, 32, 54, .45); } }
.tt-req { position: absolute; top: -8px; right: -6px; background: #E0A100; color: #111; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 8px; animation: treq-pulse 1.4s ease infinite; }
@media (max-width: 860px) { .treqs { bottom: calc(76px + env(safe-area-inset-bottom)); right: 10px; } }
.ttile { position: relative; }

/* Giriş ekranı: sipariş kanalları şeridi */
.auth-chans { margin: -6px 0 28px; }
.auth-chans-t { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7D879B; margin-bottom: 10px; }
.auth-chans-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ach { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 104px; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; color: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.ach.has-logo { background: #fff; padding: 6px 12px; }
.ach img { max-height: 30px; max-width: 120px; object-fit: contain; display: block; }
.ach small { position: absolute; top: -7px; right: -6px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #F2B705; color: #111; padding: 2px 6px; border-radius: 6px; }
.ach-yemeksepeti { background: #EA004B; }
.ach-getir_yemek { background: #5D3EBC; color: #FFD300; }
.ach-trendyol_yemek { background: #F27A1A; }
.ach-migros_yemek { background: #FF7F00; }
.ach-more { background: rgba(255, 255, 255, .07); color: #C9D0DD; font-weight: 600; font-size: 13px; box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 960px) { .auth-chans { margin: 12px 0 0; } .auth-chans-t { display: none; } .ach { height: 32px; min-width: 0; padding: 0 10px; font-size: 12.5px; border-radius: 9px; } .ach.has-logo { padding: 4px 8px; } .ach img { max-height: 22px; } .ach-more { display: none; } }
.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 11px; }
.auth-brand .brand-word { height: 22px; }
@media (max-width: 960px) { .auth-brand .brand-mark { width: 34px; height: 34px; } .auth-brand .brand-word { height: 18px; } }

/* ---------------------------------------------------------------- Kurye bulma (sipariş → Kurye penceresi) */
.cfind { display: grid; gap: 10px; margin-bottom: 16px; }
.cf-go { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; height: auto; min-height: 64px; padding: 12px 18px; width: 100%; text-align: left; }
.cf-go span { font-size: 16px; font-weight: 800; }
.cf-go small { font-weight: 500; opacity: .85; font-size: 12.5px; }
.cf-go:disabled small { opacity: 1; }
.cf-firms { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-firms .btn { gap: 8px; }
.cf-firms .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cf-live { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--rule-2); }
.cf-live > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cf-live b { font-size: 15px; }
.cf-live small { color: var(--ink-2); }
.cf-t { font-size: 24px !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cf-dot { width: 12px; height: 12px; border-radius: 50%; background: #12A150; flex: none; animation: cfping 1.6s infinite; }
@keyframes cfping { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.55); } 70% { box-shadow: 0 0 0 10px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }
.cf-h { margin: 4px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cf-list { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.cf-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--rule-2); }
.cf-row:last-child { border-bottom: 0; }
.cf-row:hover, .cf-row:focus-visible { background: var(--rule-2); }
.cf-row small { color: var(--ink-3); }
.tw.searching { color: #12A150; }
.tw.searching svg { stroke: #12A150; animation: cfblink 1.2s infinite; }
@keyframes cfblink { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- Hazır menü kataloğu */
.cat-cta { display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-bottom: 12px; background: linear-gradient(120deg, #FFF0F3, var(--surface) 70%); }
.cat-cta h2 { margin: 0 0 4px; font-size: 19px; }
.cat-cta p { margin: 0; color: var(--ink-2); max-width: 640px; }
.cat-cta .btn { margin-left: auto; flex: none; }
[data-theme="dark"] .cat-cta { background: var(--surface); }
.modal.cg-modal { width: min(1120px, 100%); height: min(860px, calc(100vh - 32px)); }
.cg-modal .modal-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; flex: 1; }
.cg-top { display: grid; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.cg-types { display: flex; gap: 6px; overflow-x: auto; align-items: center; padding-bottom: 2px; scrollbar-width: thin; }
.cg-types span { flex: none; font-size: 12.5px; margin-right: 2px; }
.cg-types button { flex: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 12px; font: 600 12.5px/1 var(--font); cursor: pointer; }
.cg-types button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cg-body { display: grid; grid-template-columns: 220px 1fr; flex: 1; min-height: 0; }
.cg-cats { overflow-y: auto; border-right: 1px solid var(--rule); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.cg-cats button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.cg-cats button:hover { background: var(--rule-2); }
.cg-cats button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cg-cats small { color: var(--ink-3); font-weight: 500; }
.cg-cats b { background: #FF0040; color: #fff; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.cg-list { overflow-y: auto; padding: 6px 18px 18px; }
.cg-lh { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: 10px 0 8px; z-index: 1; }
.cg-lh h3 { margin: 0; font-size: 16px; }
.cg-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 8px; transition: border-color .12s, background .12s; }
.cg-item.on { border-color: #FF0040; background: rgba(255,0,64,.04); }
.cg-item.have { opacity: .6; }
.cg-chk { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--rule); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cg-chk svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cg-chk[aria-pressed="true"] { background: #FF0040; border-color: #FF0040; }
.cg-chk[aria-pressed="true"] svg { opacity: 1; }
.cg-chk:disabled { cursor: default; }
.cg-t { display: grid; gap: 2px; min-width: 0; }
.cg-t b { font-size: 14.5px; }
.cg-t small { color: var(--ink-2); }
.cg-opts { font-size: 11.5px; color: var(--ink-3); }
.cg-price { display: flex; align-items: center; gap: 6px; }
.cg-price .input { width: 110px; text-align: right; font-weight: 700; font-size: 15px; }
.cg-price span { color: var(--ink-3); font-weight: 600; }
.cg-modal .modal-foot { align-items: center; }
.cg-sum { margin-right: auto; color: var(--ink-2); }
.cg-miss { color: #D90036; font-weight: 600; }
@media (max-width: 760px) {
  .cg-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cg-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .cg-cats button { flex: none; }
  .cg-item { grid-template-columns: auto 1fr; }
  .cg-item .cg-price, .cg-item > .pill { grid-column: 2; }
  .cat-cta { flex-direction: column; align-items: flex-start; }
  .cat-cta .btn { margin-left: 0; }
}
.cg-t > .pill { justify-self: start; }

/* Kasa: paket siparişte kapıda ödeme seçimi */
.cod { display: grid; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--rule-2); }
.cod-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cod-h > span { font-weight: 700; font-size: 13px; }
.cod-seg button { padding: 7px 10px; }
.cod-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cod-sub > span { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.cod-sub button { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 5px 10px; font: 600 12.5px/1 var(--font); cursor: pointer; }
.cod-sub button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cod-note { color: var(--st-road); font-weight: 600; }

/* Müşteri arama (telefon / ad) ve adres defteri */
.csr { position: absolute; left: 0; width: max(100%, 360px); max-width: calc(100vw - 32px); top: 100%; margin-top: 4px; z-index: 30; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 34px rgba(23,32,54,.16); overflow: hidden; max-height: 320px; overflow-y: auto; }
.csr button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
.csr button:last-child { border-bottom: 0; }
.csr button[aria-selected="true"], .csr button:hover { background: var(--rule-2); }
.csr-a { flex: none; width: 32px; height: 32px; border-radius: 99px; background: #FFE5EC; color: #D90036; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.csr-t { display: grid; gap: 1px; min-width: 0; }
.csr-t b { font-size: 13.5px; }
.csr-t small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csr-ad { color: var(--ink-2) !important; }
.csr-ad i { font-style: normal; color: #D90036; font-weight: 600; }
.pc-addrs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-addrs > span { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.pc-addrs button { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: 600 12px/1.25 var(--font); cursor: pointer; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pc-addrs button[aria-pressed="true"] { border-color: #FF0040; background: rgba(255,0,64,.06); color: #D90036; }
.pc-addrs [data-anew] { border-style: dashed; color: var(--ink-2); }
.pc-reg { color: #12A150; font-weight: 700; font-size: 12.5px; }
.pc-new { color: var(--ink-3); font-size: 12.5px; }
.pc-repeat { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; margin-top: 6px; padding: 8px 12px; border: 1px dashed #FF0040; border-radius: 8px; background: rgba(255,0,64,.04); color: #D90036; font: 700 13px/1.3 var(--font); cursor: pointer; text-align: left; }
.pc-repeat small { color: var(--ink-2); font-weight: 500; font-size: 11.5px; }
.iconbtn[hidden] { display: none; }
.auth-dev { display: block; margin-top: 4px; color: var(--ink-3); font-weight: 600; text-decoration: none; } .auth-dev:hover { color: #FF0040; text-decoration: underline; }

/* Her sayfada yeni sipariş uyarısı */
.treq.k-order { border-left-color: #FF0040; }
.treq.k-order > svg { stroke: #FF0040; }
.treq-acts { flex: none !important; flex-direction: column !important; gap: 4px; }
.treq-acts .btn { justify-content: center; }
.treq-more { display: block; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(23,32,54,.5); }

/* Masa işlemleri: taşı / birleştir / ürün aktar */
.tops { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.tpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.tp { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 10px; background: var(--surface); }
.tp b { font-size: 16px; }
.tp small { color: var(--ink-3); font-size: 11.5px; }
.tp.tsp-occupied { border-left: 5px solid var(--st-preparing); }
.tp.tsp-bill_requested { border-left: 5px solid var(--st-new); }
.tp.tsp-reserved { border-left: 5px solid var(--st-ready); }
.tp[aria-pressed="true"] { border-color: #FF0040; background: rgba(255,0,64,.06); }
.titems { display: grid; gap: 6px; max-height: 42vh; overflow-y: auto; }
.titem { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 10px; }
.titem.on { border-color: #FF0040; background: rgba(255,0,64,.04); }
.titem.dis { opacity: .5; }
.titem > span:first-child { display: grid; gap: 1px; }
.titem small { color: var(--ink-3); }
.tq { display: flex; align-items: center; gap: 6px; }
.tq button { all: unset; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rule); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.tq .tq-all { width: auto; padding: 0 10px; font-size: 12px; }
.tq b { min-width: 18px; text-align: center; }
.tq span { color: var(--ink-3); font-size: 12px; }
.pcats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0; } .pcats .check { margin: 0; }

/* Kasa ve gün sonu */
.cz-open { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 20px; margin-bottom: 12px; }
.cz-open h2 { margin: 0 0 6px; } .cz-open p { margin: 0; max-width: 560px; color: var(--ink-3); }
.cz-openf { display: flex; gap: 8px; align-items: flex-end; } .cz-openf .field { margin: 0; }
.cz-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.cz-head .row { display: flex; gap: 6px; flex-wrap: wrap; }
.cz-calc { padding: 6px 16px 14px; }
.cz-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
.cz-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-line.neg b { color: var(--st-cancel); }
.cz-line.tot { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; font-size: 17px; }
.cz-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cz-kinds .on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cz-amt { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cz-close { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cz-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.cz-notes label { display: grid; gap: 3px; font-size: 12.5px; color: var(--ink-3); }
.cz-notes .input { text-align: right; }
.cz-diff { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-m); margin: 2px 0 12px; font-weight: 600; }
.cz-diff:empty { display: none; }
.cz-diff b { font-size: 20px; }
.cz-diff.ok { background: color-mix(in srgb, var(--st-done) 14%, transparent); }
.cz-diff.warn { background: color-mix(in srgb, #e0a100 18%, transparent); }
.cz-diff.bad { background: color-mix(in srgb, var(--st-cancel) 15%, transparent); }
@media (max-width: 720px) { .cz-close { grid-template-columns: 1fr; } .cz-notes { grid-template-columns: repeat(3, 1fr); } }

/* Sipariş panosu: renkli sütunlar — her aşama kendi rengini taşır (Yeni sarı, Mutfak mavi, Hazır mor, Yolda turkuaz) */
.board .col { background: color-mix(in srgb, var(--c) 8%, var(--colbg)); border-top-width: 4px; }
.board .col-head .ch-t { color: color-mix(in srgb, var(--c) 82%, var(--ink)); font-weight: 800; }
.board .col-head i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.board .col-head .n { background: var(--c); color: #fff; box-shadow: none; }
.board .col-list { --colbg: color-mix(in srgb, var(--c) 8%, #E9EDF2); }
[data-theme="dark"] .board .col-list { --colbg: color-mix(in srgb, var(--c) 8%, #121928); }
.board .ticket { border-color: color-mix(in srgb, var(--c) 28%, var(--rule)); }
.board .ticket-body { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 11%, var(--surface)) 0, var(--surface) 78px); }
.board .ticket::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.board .ticket:hover { border-color: var(--c); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-1px); }
.board .t-no { color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.board .t-items li > b { background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.board .t-go.btn-primary { background: var(--c); border-color: var(--c); color: #fff; }
.board .t-go.btn-primary:hover:not(:disabled) { filter: brightness(.92); }
.board .t-prog > span > span { background: var(--c); }
.board .t-who { background: color-mix(in srgb, var(--c) 5%, var(--paper)); }
.board .t-sum { color: color-mix(in srgb, var(--c) 55%, var(--ink-2)); font-weight: 600; }
/* Ödeme türü renkleri */
.pay.pm-cash { background: #E3F4EA; color: #177245; }
.pay.pm-card, .pay.pm-on_delivery_card { background: #E7EEFC; color: #2156C2; }
.pay.pm-meal_card { background: #FCEDE3; color: #B4470F; }
.pay.pm-online { background: #EFEAFB; color: #6A43C9; }
.pay.pm-credit { background: #FDECEA; color: #B42318; }
.pay.paid { background: var(--st-done); color: #fff; }
[data-theme="dark"] .pay.pm-cash { background: rgba(74,222,155,.14); color: #4ADE9B; }
[data-theme="dark"] .pay.pm-card, [data-theme="dark"] .pay.pm-on_delivery_card { background: rgba(127,166,255,.15); color: #7FA6FF; }
[data-theme="dark"] .pay.pm-meal_card { background: rgba(255,157,98,.14); color: #FF9D62; }
[data-theme="dark"] .pay.pm-online { background: rgba(180,155,255,.15); color: #B49BFF; }
[data-theme="dark"] .pay.pm-credit { background: rgba(255,122,112,.14); color: #FF7A70; }
/* Sipariş türü çipleri daha belirgin */
.board .tchip.t-delivery { background: var(--st-road); color: #fff; }
.board .tchip.t-pickup { background: var(--st-ready); color: #fff; }
.board .tchip.t-table { background: var(--st-preparing); color: #fff; }
/* Online sipariş: kapıda ödeme ayrıntısı */
.qm-pmx { margin-top: 10px; display: grid; gap: 8px; }
.qm-pmx:empty { display: none; }
.qm-pmx-h { font-weight: 700; font-size: 14px; } .qm-pmx-h small { font-weight: 500; opacity: .65; margin-left: 4px; }
.qm-chips.sm button { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.qm-pmx-n { font-size: 13px; opacity: .8; } .qm-pmx-n b { font-size: 15px; }

/* ------------------------------------------------------------------ Hızlı telefon siparişi (tam ekran, 3 bölüm) */
html.po-open { overflow: hidden; }
.po { position: fixed; inset: 0; z-index: 45; background: var(--paper); display: flex; flex-direction: column; animation: po-in .16s ease-out; }
@keyframes po-in { from { opacity: 0; transform: translateY(8px); } }
.po svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.po kbd { font: 700 10.5px/1 var(--font); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-3); }
.po-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.po-ic { width: 38px; height: 38px; border-radius: 10px; background: #FF0040; color: #fff; display: grid; place-items: center; }
.po-ic svg { width: 20px; height: 20px; }
.po-ttl { display: grid; margin-right: 8px; } .po-ttl b { font-size: 16px; } .po-ttl small { color: var(--ink-3); font-size: 12px; }
.po-type button { font-size: 14px; }
.po-keys { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.po-keys kbd + kbd { margin-left: 6px; }
.po-x { margin-left: 4px; }
.po-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(330px, 400px); }
.po-col { min-height: 0; overflow-y: auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.po-cust { background: var(--surface); border-right: 1px solid var(--rule); }
.po-cart { background: var(--surface); border-left: 1px solid var(--rule); }
.po-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: flex; justify-content: space-between; align-items: baseline; }
.po-h small, .po-h span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.po .field { margin: 0; }

/* Müşteri */
.po-phone { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border-radius: 12px; border: 2px solid #FF0040; background: var(--surface); color: #FF0040; }
.po-phone input { all: unset; flex: 1; font-size: 22px; font-weight: 800; letter-spacing: .02em; color: var(--ink); min-width: 0; }
.po-phone input::placeholder { color: var(--ink-3); font-weight: 600; font-size: 17px; letter-spacing: 0; }
.po-found { display: grid; gap: 6px; } .po-found:empty { display: none; }
.po-found button { all: unset; cursor: pointer; display: grid; gap: 1px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--rule); }
.po-found button:hover, .po-found button:focus-visible { border-color: var(--focus); background: var(--rule-2); }
.po-found b { font-size: 14px; } .po-found span, .po-found small { font-size: 12px; color: var(--ink-3); }
.po-new { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--st-done); font-weight: 600; padding: 4px 2px; }
.po-cc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, var(--st-done-bg), var(--surface)); border: 1px solid color-mix(in srgb, var(--st-done) 30%, var(--rule)); }
.po-cc > div { flex: 1; display: grid; min-width: 0; } .po-cc b { font-size: 15px; } .po-cc small { color: var(--ink-3); font-size: 12px; }
.po-av { width: 38px; height: 38px; border-radius: 50%; background: var(--st-done); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.po-addrs { display: grid; gap: 6px; } .po-addrs:empty { display: none; }
.po-addrs button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--rule); }
.po-addrs button > span { flex: 1; display: grid; min-width: 0; } .po-addrs button b { font-size: 13.5px; } .po-addrs button small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-addrs button[aria-pressed="true"] { border-color: var(--st-road); background: var(--st-road-bg); }
.po-addrs button[aria-pressed="true"] svg { color: var(--st-road); }
.po-addr-in { position: relative; }
.po-addr-in textarea { font-size: 14.5px; }
.po-sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 32px -12px rgba(23,32,54,.35); padding: 4px; display: grid; }
.po-sug button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 7px; font-size: 13.5px; }
.po-sug button span { flex: 1; } .po-sug button small { font-size: 11.5px; color: var(--ink-3); }
.po-sug button svg { color: var(--st-road); width: 15px; height: 15px; }
.po-sug button[aria-selected="true"], .po-sug button:hover { background: var(--st-road-bg); }
.po-sug-f { font-size: 11px; color: var(--ink-3); padding: 4px 9px 2px; }
.po-ho { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.po-ho > div { flex: 1; display: grid; min-width: 0; } .po-ho b { font-size: 13px; } .po-ho small { font-size: 12px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.po-ho .btn { gap: 4px; } .po-ho .btn svg { width: 14px; height: 14px; }

/* Ürünler */
.po-menu { gap: 10px; }
.po-search { position: sticky; top: -14px; z-index: 2; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 6px 16px -10px rgba(23,32,54,.3); color: var(--ink-3); }
.po-search input { all: unset; flex: 1; font-size: 16px; color: var(--ink); }
.po-favs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #FFF6DA, var(--surface)); border: 1px solid #F3DC92; }
.po-favh { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #8A5B00; margin-right: 4px; } .po-favh svg { width: 15px; height: 15px; fill: #E0A100; stroke: #E0A100; }
.po-favs button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 18px; background: var(--surface); border: 1px solid #EBCB6B; font-weight: 700; font-size: 13px; }
.po-favs button small { font-weight: 700; color: #8A5B00; } .po-favs button:hover { background: #FFEFC2; } .po-favs button[disabled] { opacity: .45; }
.po-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.po-cats button { all: unset; cursor: pointer; padding: 7px 13px; border-radius: 18px; border: 1px solid var(--rule); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.po-cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.po-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.po-p { all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 74px; padding: 10px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); box-sizing: border-box; transition: transform .08s, border-color .12s; }
.po-p:hover { border-color: #FF0040; } .po-p:active { transform: scale(.97); }
.po-p:focus-visible { outline: 2px solid var(--focus); }
.po-p b { font-size: 13.5px; line-height: 1.25; } .po-p > span { font-size: 13px; font-weight: 800; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.po-p em { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--ink-3); background: var(--rule-2); padding: 1px 6px; border-radius: 6px; } .po-p em.out { background: var(--st-cancel-bg); color: var(--st-cancel); }
.po-p i { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: #FF0040; color: #fff; font: 800 12px/22px var(--font); font-style: normal; text-align: center; }
.po-p.in { border-color: #FF0040; background: color-mix(in srgb, #FF0040 4%, var(--surface)); }
.po-p.first { box-shadow: 0 0 0 2px var(--focus); }
.po-p.off { opacity: .45; cursor: not-allowed; }
.po-empty { grid-column: 1 / -1; display: grid; gap: 4px; text-align: center; padding: 28px 10px; color: var(--ink-3); font-size: 13px; } .po-empty b { color: var(--ink); font-size: 14px; }

/* Sepet */
.po-lines { display: grid; gap: 2px; }
.po-l { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.po-q { display: inline-flex; align-items: center; gap: 2px; background: var(--rule-2); border-radius: 9px; padding: 2px; }
.po-q button { all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface); }
.po-q button svg { width: 14px; height: 14px; } .po-q b { min-width: 20px; text-align: center; font-size: 14px; }
.po-lt { display: grid; min-width: 0; } .po-lt b { font-size: 14px; } .po-lt small { font-size: 12px; color: var(--ink-3); } .po-lt small.nt { color: #B4470F; font-weight: 600; }
.po-lnote { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--focus); margin-top: 2px; justify-self: start; } .po-lnote svg { width: 13px; height: 13px; }
.po-lp { font-size: 14px; white-space: nowrap; }
.po-pay { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper); margin-top: auto; }
.po-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.po-chips button { all: unset; cursor: pointer; padding: 9px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); font-weight: 700; font-size: 13.5px; }
.po-chips.sm button { padding: 6px 10px; font-size: 12.5px; font-weight: 600; }
.po-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.po-chips[data-pm] button[data-v="cash"][aria-pressed="true"] { background: var(--st-done); border-color: var(--st-done); color: #fff; }
.po-chips[data-pm] button[data-v="card"][aria-pressed="true"] { background: var(--st-preparing); border-color: var(--st-preparing); color: #fff; }
.po-chips[data-pm] button[data-v="meal_card"][aria-pressed="true"] { background: var(--st-courier); border-color: var(--st-courier); color: #fff; }
.po-sub { font-size: 12.5px; font-weight: 700; color: var(--ink-2); } .po-sub.ok { color: var(--st-preparing); }
.po-change { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--st-done-bg); color: var(--st-done); font-weight: 700; } .po-change b { font-size: 18px; }
.po-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.po-more[open] summary { margin-bottom: 8px; }
.po-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 2px solid var(--ink); }
.po-total span { font-weight: 700; } .po-total b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.po-acts { display: flex; gap: 8px; }
.po-acts .btn { height: 52px; border-radius: 12px; font-size: 15px; }
.po-go { flex: 1; justify-content: space-between; padding: 0 16px; }
.po-go kbd { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; }
.po-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
@media (max-width: 1100px) {
  .po-grid { grid-template-columns: 1fr 1fr; overflow-y: auto; }
  .po-cust { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule); }
  .po-col { overflow: visible; }
  .po-keys { display: none; }
}
@media (max-width: 700px) { .po-grid { grid-template-columns: 1fr; } .po-cart { border-left: 0; } }
/* Telefon ekranı açıkken uyarı kartları sepet butonlarını kapatmasın: sol alta alınır */
html.po-open .treqs, html.po-open .callstack { right: auto; left: 16px; }
/* Kalori bilgisi (QR menü, kiosk, menü panosu, ürün listesi) */
.qm-kcal, .qm-price .qm-kcal { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: color-mix(in srgb, #E86A12 12%, transparent); color: #C2550A; font-weight: 700; font-size: 11.5px; }
.qm-energy { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #E86A12 9%, transparent); border: 1px solid color-mix(in srgb, #E86A12 25%, transparent); }
.qm-energy-v { display: grid; place-items: center; min-width: 64px; padding: 6px 8px; border-radius: 10px; background: #E86A12; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.1; }
.qm-energy-v b { font-size: 20px; }
.qm-energy > span:last-child { display: grid; font-weight: 700; font-size: 13.5px; } .qm-energy small { font-weight: 500; opacity: .7; font-size: 12px; }
.kcal-tag { font-weight: 700; color: #C2550A; } .kcal-tag.ai::after { content: " ≈"; } .kcal-tag.none { color: var(--ink-3); font-weight: 500; }
.kcal-row small[data-ks] { display: block; padding-top: 10px; color: var(--ink-3); }
/* Ana ekrana ekle yönergesi (kurye ekranı) */
.pi-wrap { position: fixed; inset: 0; z-index: 90; }
.pi-scrim { position: absolute; inset: 0; background: rgba(8,12,22,.5); }
.pi { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 14px; animation: pi-up .22s ease-out; max-width: 640px; margin: 0 auto; }
@keyframes pi-up { from { transform: translateY(100%); } }
.pi-h { display: flex; gap: 12px; align-items: center; } .pi-h img { width: 52px; height: 52px; border-radius: 13px; } .pi-h > div { display: grid; } .pi-h b { font-size: 17px; } .pi-h small { color: var(--ink-3); }
.pi-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.pi-k { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 7px; background: var(--rule-2); font-weight: 700; white-space: nowrap; }
.pi-k svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pi-note { font-size: 13px; color: var(--st-courier); margin: 0; }
.pi-f { display: flex; gap: 8px; } .pi-f .btn { flex: 1; height: 48px; font-size: 15px; }
/* Otomatik ürün görseli: fotoğraf sahibi / lisans (temsilî görsel) ve toplu arama ilerlemesi */
.qm-hero-img { position: relative; }
.qm-credit { position: absolute; right: 8px; bottom: 8px; max-width: 80%; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff !important; font-size: 10.5px; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imgbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 65; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; width: min(460px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: 0 14px 40px rgba(0,0,0,.3); font-size: 13.5px; font-weight: 600; }
.imgbar i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.imgbar i b { display: block; height: 100%; background: #FF0040; transition: width .3s; }
/* Excel ile menü */
.xl-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.xl-card { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1.5px dashed var(--rule); cursor: pointer; color: var(--ink); text-decoration: none !important; }
.xl-card:hover { border-color: var(--st-done); background: var(--st-done-bg); }
.xl-card b { font-size: 15px; } .xl-card span { font-size: 12.5px; color: var(--ink-3); }
.xl-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 10px; }
.xl-sum > div { display: grid; text-align: center; padding: 10px; border-radius: 10px; background: var(--rule-2); } .xl-sum b { font-size: 22px; } .xl-sum span { font-size: 12px; color: var(--ink-3); }
.xl-sum .ok b { color: var(--st-done); } .xl-sum .bad b { color: var(--st-cancel); }
@media (max-width: 640px) { .xl-steps { grid-template-columns: 1fr; } .xl-sum { grid-template-columns: repeat(3, 1fr); } }
/* Rapor sekmeleri */
.rtabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); }
.rtabs button { all: unset; cursor: pointer; padding: 10px 16px; font-weight: 700; font-size: 14px; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: #FF0040; }
.rbar { height: 4px; border-radius: 2px; background: var(--rule-2); margin-top: 4px; min-width: 80px; } .rbar i { display: block; height: 100%; border-radius: 2px; background: var(--st-preparing); }
.stat.ok b { color: var(--st-done); } .stat.bad b { color: var(--st-cancel); }
.rc-sum { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--paper-2, rgba(0,0,0,.04)); font-size: 14px; }
.rc-sum b { font-variant-numeric: tabular-nums; }
/* Terminal kilit düğmesi */
.term-lock { gap: 6px; font-weight: 700; border-color: #FF0040; color: #FF0040; }
.term-lock.float { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: var(--paper, #fff); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
/* Porsiyon seçimi (Tek / Buçuk / Duble) */
.portion-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.portion-opt { position: relative; cursor: pointer; }
.portion-opt input { position: absolute; opacity: 0; pointer-events: none; }
.portion-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 2px solid var(--rule); border-radius: 12px; background: var(--paper, #fff); transition: border-color .12s, background .12s; }
.portion-opt b { font-size: 15px; } .portion-opt small { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; }
.portion-opt input:checked + span { border-color: #FF0040; background: rgba(255,0,64,.06); }
.portion-opt input:checked + span small { color: #FF0040; }
.portion-opt input:focus-visible + span { outline: 3px solid rgba(255,0,64,.35); outline-offset: 2px; }
/* Ürün düzenleme: porsiyon satırları */
.pv-rows { display: grid; gap: 6px; }
.pv-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 36px; gap: 6px; align-items: center; }
.pv-row.base .input[data-pvp] { background: var(--rule-2); }
.pv-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr 36px; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pv-tag { font-weight: 700; color: var(--ink-2); }
.pv-box { margin-bottom: 14px; } .pv-box small.muted { display: block; margin-top: 6px; }
.pt-range { font-weight: 700; font-size: .85em; opacity: .75; }
.pos-fx[aria-pressed="false"] { color: var(--ink-3); opacity: .7; } .pos-fx[aria-pressed="true"] { color: var(--st-done, #16A34A); }
/* Sepete uçuş efekti */
.pos-fly { position: fixed; z-index: 90; pointer-events: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: hsl(var(--h) 70% 88%); box-shadow: 0 14px 30px -8px rgba(15, 20, 36, .45), 0 0 0 3px #fff; will-change: transform, opacity; }
.pos-fly img { width: 100%; height: 100%; object-fit: cover; }
.pos-fly span { font-weight: 800; font-size: 20px; color: hsl(var(--h) 45% 32%); }
.pl.land { animation: pl-land .6s ease; }
.pl.land .pl-img { animation: pl-pop .42s cubic-bezier(.3, 1.6, .5, 1); }
.pc-total b.land { display: inline-block; animation: tot-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
[data-mbar].land { animation: tot-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pl-land { 0% { background: color-mix(in srgb, var(--st-done) 22%, var(--surface)); } 100% { background: color-mix(in srgb, var(--st-done) 6%, var(--surface)); } }
@keyframes pl-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes tot-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); color: var(--st-done); } 100% { transform: scale(1); } }
/* Otomatik fiş yazdırma ayarı */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 44px; height: 26px; border-radius: 13px; background: var(--rule); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + span { background: var(--st-done, #16A34A); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(255,0,64,.35); outline-offset: 2px; }
.switch b { font-size: 13px; min-width: 44px; }
.ap-printers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.ap-off { opacity: .45; pointer-events: none; }
.ap-when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: none; border: 0; padding: 0; }
.ap-opt { position: relative; cursor: pointer; }
.ap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt span { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ap-opt b { font-size: 14px; } .ap-opt small { font-size: 12px; color: var(--ink-3); }
.ap-opt input:checked + span { border-color: #FF0040; background: rgba(255,0,64,.05); }
.ap-ch { gap: 6px 14px; }
/* Online menü: kampanyalar, paket bölgesi, sepet dökümü, kupon */
.qm-camps { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 2px; scrollbar-width: none; }
.qm-camps::-webkit-scrollbar { display: none; }
.qm-camp { flex: 0 0 auto; min-width: 230px; max-width: 290px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #FF0040, #FF6A3D); box-shadow: 0 8px 20px -10px rgba(255,0,64,.55); }
.qm-camp.k-free_delivery { background: linear-gradient(135deg, #0E9F6E, #34C759); box-shadow: 0 8px 20px -10px rgba(14,159,110,.55); }
.qm-camp.k-product_percent { background: linear-gradient(135deg, #7C3AED, #C026D3); box-shadow: 0 8px 20px -10px rgba(124,58,237,.5); }
.qm-camp svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.qm-camp b { display: block; font-size: 14.5px; } .qm-camp small { display: block; font-size: 12.5px; opacity: .92; font-weight: 600; }
.qm-zone-info { display: flex; gap: 8px; align-items: center; margin: 10px 16px 0; padding: 9px 12px; border-radius: 12px; background: rgba(52,199,89,.1); color: #0B6B35; font-size: 13px; font-weight: 600; }
.qm-zone-info svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qm-promo { color: #FF0040 !important; font-weight: 800 !important; }
.qm-bill { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--qm-bg, #f4f4f7); display: grid; gap: 6px; }
.qm-bill:empty { display: none; }
.qm-bl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.qm-bl span { color: var(--qm-mute, #6b7280); } .qm-bl b { font-variant-numeric: tabular-nums; }
.qm-bl.disc span, .qm-bl.disc b { color: #FF0040; } .qm-bl.free b { color: #0E9F6E; }
.qm-bmsg { font-size: 13px; font-weight: 600; color: var(--qm-mute, #6b7280); } .qm-bmsg.bad { color: #DC2626; } .qm-bmsg.ok { color: #0E9F6E; }
.qm-coupon { margin-top: 10px; }
.qm-linkbtn { all: unset; cursor: pointer; font-size: 14px; font-weight: 700; color: #FF0040; padding: 6px 0; }
.qm-cpn { display: flex; gap: 8px; } .qm-cpn .qm-input { flex: 1; text-transform: uppercase; letter-spacing: .06em; }
/* Kampanya ve paket bölgeleri */
.cp-grid, .zn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cp-card, .zn-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.cp-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #FF0040; }
.cp-card.k-free_delivery::before { background: #0E9F6E; } .cp-card.k-product_percent::before { background: #7C3AED; } .cp-card.k-cart_amount::before { background: #F59E0B; }
.cp-card.off, .zn-card.off { opacity: .6; }
.cp-card header, .zn-card header { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cp-badge { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 8px; background: rgba(255,0,64,.1); color: #E00038; }
.cp-card.k-free_delivery .cp-badge { background: rgba(14,159,110,.12); color: #0B7A55; } .cp-card.k-product_percent .cp-badge { background: rgba(124,58,237,.12); color: #6D28D9; } .cp-card.k-cart_amount .cp-badge { background: rgba(245,158,11,.14); color: #B45309; }
.cp-card h3, .zn-card h3 { margin: 0; font-size: 17px; }
.cp-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cp-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--rule); padding-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.cp-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cp-tpl button { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 2px solid var(--rule); background: var(--surface); }
.cp-tpl button:hover, .cp-tpl button:focus-visible { border-color: #FF0040; }
.cp-tpl b { font-size: 15px; } .cp-tpl small { color: var(--ink-3); font-size: 12.5px; }
.cp-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-pick { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; } .cp-pick > div { border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; max-height: 220px; overflow: auto; }
.cp-pick b { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.cp-plist { display: grid; gap: 2px; }
.cp-days { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-days label { cursor: pointer; } .cp-days input { position: absolute; opacity: 0; }
.cp-days span { display: inline-grid; place-items: center; min-width: 46px; height: 36px; border-radius: 10px; border: 2px solid var(--rule); font-weight: 700; font-size: 13px; }
.cp-days input:checked + span { border-color: #FF0040; background: rgba(255,0,64,.06); color: #E00038; }
.cp-preview { display: grid; gap: 6px; margin-top: 4px; padding: 12px; border-radius: 12px; background: var(--rule-2); } .cp-preview > span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cp-prev { display: grid; gap: 2px; justify-self: start; min-width: 240px; padding: 12px 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #FF0040, #FF6A3D); }
.cp-prev.k-free_delivery { background: linear-gradient(135deg, #0E9F6E, #34C759); } .cp-prev.k-product_percent { background: linear-gradient(135deg, #7C3AED, #C026D3); }
.cp-prev small { opacity: .92; font-weight: 600; }
.zn-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.zn-nums div { display: grid; padding: 8px; border-radius: 10px; background: var(--rule-2); text-align: center; } .zn-nums b { font-size: 15px; } .zn-nums span { font-size: 11px; color: var(--ink-3); }
.zn-hoods { display: flex; flex-wrap: wrap; gap: 5px; } .zn-hoods span { font-size: 12.5px; padding: 3px 9px; border-radius: 14px; background: var(--rule-2); font-weight: 600; } .zn-hoods span.all { background: rgba(14,159,110,.12); color: #0B7A55; }
.zn-card footer { font-size: 12.5px; color: var(--ink-3); }
.zn-input { border: 1px solid var(--rule); border-radius: 10px; padding: 6px; display: grid; gap: 6px; }
.zn-input .input { border: 0; box-shadow: none; }
.zn-chips { display: flex; flex-wrap: wrap; gap: 5px; } .zn-chips:empty { display: none; }
.zn-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 14px; background: var(--rule-2); font-size: 13px; font-weight: 600; }
.zn-chips button { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); } .zn-chips button:hover { background: var(--rule); }
@media (max-width: 700px) { .cp-kinds { grid-template-columns: 1fr 1fr; } .cp-pick { grid-template-columns: 1fr; } .zn-nums { grid-template-columns: 1fr 1fr; } }
/* Kasa / telefon: bölge ipucu */
.zone-hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--st-done); } .zone-hint.bad { color: var(--st-cancel); }
tr.sug td { background: rgba(245,158,11,.08); }
.gs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .gs-grid h4 { margin: 0 0 4px; } .gs-grid p { margin: 0 0 8px; font-size: 13px; }
@media (max-width: 640px) { .gs-grid { grid-template-columns: 1fr; } }
.qm-camp small, .qm-camp b { color: #fff !important; }
