/* =====================================================================
   adisyonun.com — Uygulama duzeni & ekranlar
   ===================================================================== */
html, body, #app { height: 100%; }
body { overflow: hidden; }

/* ---------- Yukleme splash ---------- */
.app-loading { display: grid; place-items: center; height: 100%; }
.splash { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); animation: fadeUp .4s both; }
.splash-mark {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 34px; font-weight: 800;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.splash-name { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.splash-sub { color: var(--muted); font-size: var(--fs-sm); }

/* =====================================================================
   LOGIN
   ===================================================================== */
.login-wrap { height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: var(--sp-9);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #0a6e48 0%, #0f8a5a 48%, #1fbe80 100%);
}
.login-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(255,255,255,.18), transparent 60%);
}
.login-hero > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: var(--sp-3); }
.login-brand .mk { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-weight: 800; font-size: 22px; backdrop-filter: blur(4px); }
.login-brand .nm { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.login-headline { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; max-width: 15ch; }
.login-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.login-tag { font-size: var(--fs-sm); font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); }
/* flex + margin:auto — icerik ekrana sigmazsa KAYDIRILABILIR kalir
   (grid place-items:center tasan icerigin ustunu keser, asagi inilemez) */
.login-form-side { display: flex; overflow-y: auto; padding: var(--sp-6); background: var(--surface); }
.login-card { width: 100%; max-width: 380px; margin: auto; }
.login-hero { overflow-y: auto; }
.login-card h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.login-card p.sub { color: var(--muted); margin-top: 4px; margin-bottom: var(--sp-6); }
.login-demo { margin-top: var(--sp-5); padding: var(--sp-4); background: var(--surface-sunken); border-radius: var(--r-md); }
.login-demo .upper { margin-bottom: var(--sp-2); }
.demo-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.demo-chip { font-size: var(--fs-sm); font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: all var(--t-fast); }
.demo-chip:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-softer); }
.login-err { color: var(--danger); font-size: var(--fs-sm); font-weight: 500; min-height: 18px; }
.login-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: var(--sp-5); color: var(--muted-2); font-size: var(--fs-xs); }
.login-foot a { color: var(--muted); font-weight: 600; transition: color var(--t-fast); }
.login-foot a:hover { color: var(--accent-ink); }

/* =====================================================================
   APP SHELL — nav rail + main
   ===================================================================== */
.shell { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; }
/* Süper-admin "POS'a gir" çubuğu — diskret, üstte tam genişlik */
.imp-bar { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; background: linear-gradient(90deg, var(--n-800), var(--n-900)); color: var(--n-150); font-size: 12.5px; font-weight: 600; letter-spacing: .1px; }
.imp-bar .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: .85; }
.imp-bar b { color: #fff; font-weight: 700; }
.imp-exit { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 7px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.imp-exit:hover { background: rgba(255,255,255,.24); }
.shell.with-impbar { height: calc(100% - 34px); }
.nav-rail {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; padding: var(--sp-3) 0; gap: 4px;
}
.nav-logo { width: 44px; height: 44px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: var(--sp-3); }
.nav-item {
  width: 60px; height: 58px; border-radius: var(--r-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--muted);
  font-size: 10px; font-weight: 600; transition: all var(--t-fast); position: relative;
}
.nav-item .ic { width: 22px; height: 22px; }
.nav-item:hover { background: var(--surface-sunken); color: var(--ink-2); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); }
.nav-item .badge-count { position: absolute; top: 6px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.nav-spacer { flex: 1; }
.nav-user { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; cursor: pointer; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  height: var(--header-h); flex: none; display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 var(--sp-6); background: var(--surface); border-bottom: 1px solid var(--border); min-width: 0;
}
/* #16 — başlık daralınca kısalsın ki topbar taşmasın (dar/bölünmüş pencere) */
.topbar .title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .rest-badge { display: flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.topbar .rest-badge .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.topbar-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.topbar-clock { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.topbar .tb-fs { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-md); color: var(--muted); border: 1px solid var(--border); background: var(--surface); flex: none; transition: color var(--t-fast), border-color var(--t-fast); }
.topbar .tb-fs:hover { color: var(--ink); border-color: var(--muted); }
/* Yoğunluk rozeti — eşik aşılınca belirir, nabız atar */
.tb-load { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; flex: none;
  background: var(--warning-soft); color: var(--warning-ink); border: 1px solid color-mix(in srgb, var(--warning) 38%, transparent);
  font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; animation: callPulse 1.6s ease-in-out infinite; cursor: pointer; }
.tb-load .ic { width: 15px; height: 15px; }

/* Yoğunluk paneli */
.lp-sec { margin-bottom: var(--sp-4); }
.lp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp-head b { font-weight: 800; font-size: var(--fs-md); }
.lp-cnt { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--warning-soft); color: var(--warning-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.lp-go { margin-left: auto; background: none; border: none; color: var(--accent-ink); font-weight: 700; font-size: var(--fs-xs); cursor: pointer; }
.lp-go:hover { text-decoration: underline; }
.lp-row { display: flex; align-items: center; gap: var(--sp-3); padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 6px; background: var(--surface); }
.lp-no { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 40px; }
.lp-who { flex: 1; font-weight: 650; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-age { font-size: var(--fs-xs); color: var(--warning-ink); font-weight: 700; white-space: nowrap; }

/* =====================================================================
   POS — center + order panel
   ===================================================================== */
.pos { flex: 1; display: grid; grid-template-columns: 1fr 468px; min-height: 0; }
.pos-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pos-order { border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }

/* Channel tabs */
.channel-bar { flex: none; display: flex; align-items: center; gap: 4px; padding: var(--sp-3) var(--sp-6); border-bottom: 1px solid var(--border); overflow-x: auto; }
.chan-tab {
  display: flex; align-items: center; gap: var(--sp-2); height: 40px; padding: 0 var(--sp-4);
  border-radius: var(--r-md); color: var(--muted); font-weight: 600; font-size: var(--fs-md);
  white-space: nowrap; transition: all var(--t-fast); position: relative;
}
.chan-tab .ic { width: 18px; height: 18px; }
.chan-tab:hover { background: var(--surface-sunken); color: var(--ink-2); }
.chan-tab.active { color: var(--ink); background: transparent; }
.chan-tab.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: calc(var(--sp-3) * -1); height: 2px; background: var(--accent); border-radius: 2px; }
.chan-tab .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.chan-tab.active .cnt { background: var(--accent); color: #fff; }

/* Zones bar (masa bolgeleri) */
.zone-bar { flex: none; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-6) 0; flex-wrap: wrap; }
.zone-chip { height: 40px; padding: 0 var(--sp-4); border-radius: 999px; font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); transition: all var(--t-fast); }
.zone-chip:hover { border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.zone-chip.active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 26%, transparent); }

/* Table grid — ferah: daha genis kartlar, daha cok nefes */
.grid-scroll { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--sp-4); }
.table-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 16px 17px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: transform .12s, box-shadow .18s, border-color .18s; overflow: hidden; box-shadow: var(--sh-xs);
}
.table-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.table-card:active { transform: scale(.98); }
.table-card .tc-top { display: flex; align-items: center; justify-content: space-between; }
.table-card .tc-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.table-card .tc-seats { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 700; background: var(--surface-sunken); padding: 3px 8px; border-radius: 999px; }
.table-card .tc-seats .ic { width: 12px; height: 12px; }
.table-card .tc-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.table-card .tc-total { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-ink); letter-spacing: -.01em; }
.table-card .tc-time { color: var(--muted); font-size: 10.5px; font-weight: 700; background: var(--surface-sunken); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
/* bos masa — sakin: kesikli cerceve, etiket yok (isim + koltuk yeter) */
.table-card.bos { background: var(--surface-2); border-style: dashed; border-color: var(--border-strong); box-shadow: none; }
.table-card.bos:hover { border-color: var(--accent); border-style: solid; background: var(--surface); box-shadow: var(--sh-sm); }
.table-card.bos .tc-name { color: var(--ink-2); }
/* dolu masa — hafif aksan tonu + 4px sol şerit */
.table-card.dolu { background: var(--accent-softer); border-color: transparent; }
.table-card.dolu::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); border-radius: 0 3px 3px 0; }
.table-card.dolu .tc-time, .table-card.dolu .tc-seats, .table-card.bekliyor .tc-time, .table-card.bekliyor .tc-seats { background: rgba(255,255,255,.6); }
/* servise hazır — amber */
.table-card.bekliyor { background: var(--warning-soft); border-color: transparent; }
.table-card.bekliyor::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--warning); border-radius: 0 3px 3px 0; }
.table-card.bekliyor .tc-total { color: var(--warning-ink); }
.table-card .tc-badge { position: absolute; top: 44px; right: 12px; }

/* Category chips + product grid — sakin: cercevesiz cipler, aktif tek yesil */
.pos-menu { flex: 1; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.cat-bar { display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-3) var(--sp-6); overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; background: var(--surface); }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 var(--sp-4); border-radius: var(--r-md); font-weight: 650; font-size: var(--fs-md); color: var(--muted); background: transparent; border: 0; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); flex: none; }
.cat-chip:hover { background: var(--surface-sunken); color: var(--ink-2); }
.cat-chip .cc-n { color: var(--muted-2); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-chip.active { color: #fff; background: var(--accent); box-shadow: 0 4px 12px rgba(21,147,106,.26); }
.cat-chip.active .cc-n { color: rgba(255,255,255,.75); }
.cat-chip.fav { color: var(--warning-ink); }
.cat-chip.fav.active { color: #fff; background: var(--accent); }
.product-scroll { overflow-y: auto; padding: var(--sp-5) var(--sp-6); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: var(--sp-4); }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 14px; min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-2);
  cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); text-align: left; position: relative; box-shadow: var(--sh-xs);
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); transform: translateY(-1px); }
.product-card:active { transform: scale(.98); border-color: var(--accent); }
.product-card .pc-row { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.product-card .pc-thumb { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; flex: none; }
.product-card .pc-thumb svg { width: 86%; height: 86%; }
.product-card .pc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-name { font-size: var(--fs-md); font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 2px; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-card .pc-price { font-size: var(--fs-lg); font-weight: 750; color: var(--accent-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.product-card .pc-mod { color: var(--muted); font-size: var(--fs-2xs); font-weight: 600; }
.product-card .pc-mod.pc-out { color: var(--danger); font-weight: 700; }
.product-card.tukendi { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.product-card .alcohol-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }

/* (Boş/Dolu sayaç şeridi kaldırıldı — kullanıcı isteği: masa ekranı sade) */

/* ---------- Order panel ---------- */
/* Sipariş paneli — ferah, nefes alan (masa ödeme akışı rahatlatıldı) */
.order-head { flex: none; padding: var(--sp-5) var(--sp-6) var(--sp-4); border-bottom: 1px solid var(--border); }
.order-head .oh-top { display: flex; align-items: center; justify-content: space-between; }
.order-head .oh-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: var(--sp-2); }
.order-head .oh-sub { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; margin-top: 3px; }
/* Sipariş kalemleri — ayrı FERAH kartlar (eskiden ince çizgiyle yapışıktı = "iç içe") */
.order-lines { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 10px; }
.order-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); color: var(--muted-2); text-align: center; padding: var(--sp-6); }
.order-empty .ic { width: 46px; height: 46px; color: var(--n-300); }
.oline { flex-shrink: 0; display: flex; gap: var(--sp-3); padding: 13px 14px; border-radius: var(--r-xl); align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--border); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.oline:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.oline .stepper { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.oline .stepper .qty { font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; min-width: 26px; text-align: center; }
.step-btn { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-2); transition: all var(--t-fast); }
.step-btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.step-btn .ic { width: 17px; height: 17px; }
.oline .ol-body { flex: 1; min-width: 0; padding-top: 2px; }
.oline .ol-name { font-weight: 650; font-size: var(--fs-lg); line-height: 1.25; }
.oline .ol-mods { color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; line-height: 1.4; }
.oline .ol-note { color: var(--warning-ink, var(--warning)); font-size: var(--fs-sm); font-weight: 600; margin-top: 3px; }
.oline .ol-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.oline .ol-total { font-weight: 750; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oline .ol-del { color: var(--muted-2); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.oline .ol-del:hover { background: var(--danger-soft); color: var(--danger); }
.oline .ol-del .ic { width: 16px; height: 16px; }

.order-summary { flex: none; border-top: 1px solid var(--border); padding: var(--sp-5) var(--sp-6) var(--sp-6); background: var(--surface); }
.sum-row { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-md); color: var(--ink-2); padding: 7px 0; }
.sum-row .val { font-variant-numeric: tabular-nums; font-weight: 650; }
.sum-row.discount .val { color: var(--success); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--sp-4); padding: var(--sp-4) 0 2px; border-top: 1px dashed var(--border); }
.sum-total .lbl { font-size: var(--fs-lg); font-weight: 800; }
.sum-total .val { font-size: var(--fs-3xl); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--accent-ink); }
.order-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.order-actions .btn-primary { flex: 1; }
.order-actions .btn-lg { min-height: 54px; font-size: var(--fs-lg); }

/* =====================================================================
   MODAL / SHEET
   ===================================================================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,22,28,.44); z-index: var(--z-modal); display: grid; place-items: center; padding: var(--sp-4); animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-xl); width: 100%; max-width: 520px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; animation: modalUp .22s cubic-bezier(.2,.9,.3,1); }
@keyframes modalUp { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: var(--sp-5) var(--sp-5) var(--sp-3); display: flex; align-items: flex-start; justify-content: space-between; }
.modal-head h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; }
.modal-head .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { background: var(--surface-sunken); color: var(--ink); }
.modal-body { padding: 0 var(--sp-5); overflow-y: auto; flex: 1; }
.modal-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); display: flex; gap: var(--sp-3); align-items: center; }

/* Modifier group */
.mod-group { padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.mod-group:last-child { border-bottom: 0; }
.mod-group-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.mod-group-head .name { font-weight: 700; font-size: var(--fs-md); }
.mod-req { font-size: 10px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 2px 7px; border-radius: 999px; }
.mod-opt-mode { font-size: var(--fs-xs); color: var(--muted); margin-left: auto; font-weight: 600; }
.mod-opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.mod-opt {
  display: flex; align-items: center; gap: var(--sp-2); padding: 9px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: var(--fs-md);
  transition: all var(--t-fast); min-height: 44px;
}
.mod-opt:hover { border-color: var(--border-strong); }
.mod-opt.sel { border-color: var(--accent); background: var(--accent-softer); color: var(--accent-ink); }
.mod-opt .delta { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.mod-opt.sel .delta { color: var(--accent-ink); }
/* #7 — opsiyon pop-up'ı ferah/geniş: daha büyük seçenek dokunma alanları, daha çok görünür */
.mod-modal { max-width: 720px; }
.mod-modal .mod-group-head .name { font-size: var(--fs-lg); }
.mod-modal .mod-opts { gap: 10px; }
.mod-modal .mod-opt { padding: 11px 18px; min-height: 48px; font-size: var(--fs-md); }
.mod-modal .mod-req { font-weight: 800; }
@media (max-width: 760px) { .mod-modal { max-width: 100%; } }
/* #15 — Stok kategori alt-başlığı + reçete kategorili hammadde seçici */
.stk-cat td { background: var(--surface-2); font-weight: 800; font-size: var(--fs-sm); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px !important; }
.rc-row { display: grid; grid-template-columns: 1fr 92px 78px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rc-row .rc-name { font-weight: 700; font-size: var(--fs-md); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rc-palette { display: flex; flex-direction: column; gap: 12px; max-height: 40vh; overflow-y: auto; padding: 2px; }
.rc-cat-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 7px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-chip { padding: 9px 14px; border-radius: var(--r-md); border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: var(--fs-sm); min-height: 40px; transition: all var(--t-fast); }
.rc-chip:hover { border-color: var(--border-strong); }
.rc-chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (max-width: 560px) { .rc-row { grid-template-columns: 1fr 70px 64px 36px; } }
/* Grup editörü — varsayılan seçenek işareti (✓) */
.eg-def { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.eg-def .ic { width: 15px; height: 15px; opacity: 0; color: #fff; stroke-width: 3; }
.eg-def:hover { border-color: var(--accent); }
.eg-def.on { background: var(--accent); border-color: var(--accent); }
.eg-def.on .ic { opacity: 1; }

/* ===== Ödeme ekranı — ferah, büyük dokunma alanları ===== */
.pay-modal { max-width: 560px; }
.pay-modal .modal-body { padding-left: var(--sp-6); padding-right: var(--sp-6); }
/* Ödenecek tutar — büyük, nefes alan hero panel */
.pay-total { text-align: center; padding: var(--sp-5) var(--sp-4) var(--sp-6); margin: var(--sp-2) 0 var(--sp-5); background: linear-gradient(155deg, var(--accent-softer), var(--surface) 75%); border: 1px solid var(--border); border-radius: var(--r-xl); }
.pay-total .lbl { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pay-total .amt { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; color: var(--ink); }
.pay-label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); margin: var(--sp-4) 0 var(--sp-2); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.pay-method { padding: var(--sp-4) var(--sp-3); border-radius: var(--r-lg); border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: var(--fs-md); display: flex; flex-direction: column; align-items: center; gap: 9px; transition: all var(--t-fast); min-height: 76px; justify-content: center; }
.pay-method:hover { border-color: var(--border-strong); }
.pay-method .ic { width: 26px; height: 26px; color: var(--muted); }
.pay-method.sel { border-color: var(--accent); background: var(--accent-softer); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pay-method.sel .ic { color: var(--accent); }
/* Hızlı tutar çipleri — büyük dokunmatik */
.pay-modal .pay-quick-row { gap: var(--sp-2); margin-bottom: var(--sp-3); }
.pay-modal .pay-quick { padding: 11px 16px; font-size: var(--fs-md); font-weight: 700; }
.pay-modal .pay-amt-in .input { min-height: 46px; font-size: var(--fs-lg); }
.pay-modal .modal-foot { padding: var(--sp-4) var(--sp-6); }
.pay-modal .modal-foot .btn-lg { min-height: 56px; font-size: var(--fs-lg); }
/* Seçerek öde kalemleri — ferah */
.pay-modal .sel-item { padding: 13px var(--sp-4); }

/* =====================================================================
   KDS (mutfak)
   ===================================================================== */
.kds { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.kds-cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); overflow: hidden; min-height: 0; }
/* #16 — KDS dar ekranda sütun sayısını düşür (taşma yok) */
@media (max-width: 1024px) { .kds-cols, .kds-cols.kds-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); padding: var(--sp-4); } }
@media (max-width: 640px) { .kds-cols, .kds-cols.kds-cols-2 { grid-template-columns: 1fr; overflow-y: auto; } }
/* Tek-dokunuş akışı: Bekleyen | Hazır — 2 kolon */
.kds-cols.kds-cols-2 { grid-template-columns: repeat(2, 1fr); }
.kds-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.kds-col-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--sp-1) var(--sp-3); font-weight: 700; }
.kds-col-head .cnt { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: var(--fs-sm); }
.kds-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-2); padding-right: 4px; }
/* Modern KDS kartı — ferah, asil, net durum göstergeli (SiPOS dili) */
.kds-list { gap: 12px; }
/* KDS kartı — ASİL/temiz: kart hep beyaz kalır, durum yalnız sol şerit + süre
   pili ile taşınır (tüm-kart kırmızı yıkama YOK — "kaba" hissi bundandı). */
.kds-card { flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 15px 16px 15px 18px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; transition: box-shadow .18s, transform .14s; }
.kds-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--st-acik); }
.kds-card.warn::before { background: var(--warning); }
.kds-card.late::before { background: var(--danger); }
.kds-card.late { border-color: color-mix(in srgb, var(--danger) 18%, var(--border)); }
.kds-card.clickable { cursor: pointer; }
.kds-card.clickable:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.kds-card .kc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.kds-card .kc-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.kds-card .kc-no { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.02em; }
.kds-card .kc-where { font-size: var(--fs-sm); color: var(--muted); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kds-card .kc-r { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.kds-card .kc-ch { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.kds-card .kc-timer { font-size: var(--fs-sm); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; background: var(--surface-sunken); padding: 3px 9px; border-radius: 999px; }
.kds-card .kc-timer .ic { width: 13px; height: 13px; }
.kds-card .kc-timer.warn { color: var(--warning-ink); background: var(--warning-soft); }
.kds-card .kc-timer.late { color: var(--danger); background: var(--danger-soft); animation: callPulseDanger 1.6s ease-in-out infinite; }
.kds-card .kc-note { font-size: 12px; color: var(--warning-ink); font-weight: 650; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; background: var(--warning-soft); padding: 5px 9px; border-radius: var(--r-sm); }
.kds-card .kc-note .ic { width: 12px; height: 12px; flex-shrink: 0; }
.kds-card .kc-items { display: flex; flex-direction: column; gap: 5px; }
.kds-item { display: flex; gap: 9px; padding: 3px 0; font-size: var(--fs-md); line-height: 1.35; align-items: baseline; }
.kds-item .q { font-weight: 800; color: var(--accent-ink); min-width: 24px; font-variant-numeric: tabular-nums; }
.kds-item .nm { font-weight: 650; min-width: 0; }
.kds-item .m { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 4px; }
.kds-item .m.note { color: var(--warning-ink); font-style: italic; }
.kds-station-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; background: var(--info-soft); color: var(--info); padding: 1px 6px; border-radius: 5px; margin-left: 5px; vertical-align: 1px; }
.kds-card .kc-btn { margin-top: 11px; width: 100%; border: 0; border-radius: 10px; padding: 10px 12px; font-size: var(--fs-md); font-weight: 800; cursor: pointer; background: var(--accent); color: #fff; transition: filter .12s; }
.kds-card .kc-btn:hover { filter: brightness(1.06); }
.kds-card.warn .kc-btn { background: var(--warning); }
.kds-card.late .kc-btn { background: var(--danger); }
.kds-card .kc-ready { margin-top: 11px; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: 700; color: var(--success); background: var(--success-soft); padding: 8px 12px; border-radius: 10px; width: 100%; justify-content: center; }
.kds-card .kc-ready .ic { width: 15px; height: 15px; }
/* KDS kolon başlığı — renkli durum noktalı, belirgin */
.kds-col-head { padding: 0 var(--sp-1) var(--sp-3); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; }
.kds-col-head .kch-l { display: inline-flex; align-items: center; gap: 8px; }
.kch-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, rgba(0,0,0,.05)); }
.kds-col-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; color: var(--muted-2); font-size: var(--fs-sm); font-weight: 600; border: 1.5px dashed var(--border); border-radius: var(--r-lg); }
.kds-col-empty .ic { width: 24px; height: 24px; color: var(--n-300); }
/* KDS komuta sayaç şeridi */
.kds-strip { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) var(--sp-6) 0; }
.kds-tools { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-left: auto; }
@media (max-width: 640px) { .kds-tools { margin-left: 0; width: 100%; } }
/* KDS sayaç pilleri (yalnız KDS'de — masa ekranındaki şerit kaldırıldı) */
.kds-strip .ms-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); box-shadow: var(--sh-xs); }
.kds-strip .ms-chip b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--ink); }
.kds-strip .ms-dolu b { color: var(--warning-ink); }
.kds-strip .ms-hazir b { color: var(--accent-ink); }
.kds-oldest { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); box-shadow: var(--sh-xs); }
.kds-oldest .ic { width: 15px; height: 15px; }
.kds-oldest b { font-variant-numeric: tabular-nums; color: var(--ink); }
.kds-oldest.warn { color: var(--warning-ink); background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.kds-oldest.warn b { color: var(--warning-ink); }
.kds-oldest.late { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); animation: callPulseDanger 1.6s ease-in-out infinite; }
.kds-oldest.late b { color: var(--danger); }
/* KDS geniş detay popup */
.kd2-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.kd2-item { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); align-items: baseline; }
.kd2-item:first-child { border-top: 0; }
.kd2-item .q { font-weight: 800; font-size: var(--fs-xl); color: var(--accent-ink); min-width: 40px; font-variant-numeric: tabular-nums; }
.kd2-item .bd { flex: 1; min-width: 0; }
.kd2-item .nm { font-weight: 700; font-size: var(--fs-lg); }
.kd2-item .md { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.kd2-item .md.note { color: var(--warning-ink); font-style: italic; }

/* ===== KLASİK KDS — tek-ekran ızgara, süre-renk şerit, pop-up yok ===== */
.kds-klasik { padding: 0; }
.kds-grid { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); grid-auto-rows: max-content; gap: var(--sp-4); align-content: start; }
.kc2 { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 15px 16px 15px 18px; box-shadow: var(--sh-sm); overflow: hidden; }
.kc2::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--kc2-c, var(--success)); }
.kc2.k-fresh { --kc2-c: var(--success); }
.kc2.k-warn { --kc2-c: var(--warning); }
.kc2.k-late { --kc2-c: var(--danger); border-color: color-mix(in srgb, var(--danger) 18%, var(--border)); }
.kc2-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc2-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.kc2-no { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; }
.kc2-where { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc2-timer { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-sm); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--kc2-c); background: color-mix(in srgb, var(--kc2-c) 12%, transparent); padding: 3px 9px; border-radius: 999px; flex: none; }
.kc2-timer .ic { width: 13px; height: 13px; }
.kc2.k-late .kc2-timer { animation: callPulseDanger 1.6s ease-in-out infinite; }
.kc2-meta { display: flex; align-items: center; gap: 8px; margin: 7px 0 8px; }
.kc2-st { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; }
.kc2-st.new { background: var(--info-soft); color: var(--info); }
.kc2-st.prep { background: var(--warning-soft); color: var(--warning-ink); }
.kc2-st.ok { background: var(--success-soft); color: var(--success); }
.kc2-ch { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.kc2-note { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--warning-ink); margin-bottom: 6px; }
.kc2-note .ic { width: 12px; height: 12px; flex: none; }
.kc2-items { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.kc2-item { display: flex; gap: 8px; font-size: var(--fs-md); line-height: 1.3; align-items: baseline; }
.kc2-item .q { font-weight: 800; color: var(--accent-ink); min-width: 26px; font-variant-numeric: tabular-nums; }
.kc2-item .nm { font-weight: 650; }
.kc2-item .m { color: var(--muted); font-size: 11.5px; font-weight: 500; margin-left: 4px; }
.kc2-item .m.note { color: var(--warning-ink); font-style: italic; }
.kc2-btn { width: 100%; border: 0; border-radius: 10px; padding: 10px; font-size: var(--fs-md); font-weight: 800; cursor: pointer; background: var(--kc2-c, var(--accent)); color: #fff; transition: filter .12s; }
.kc2-btn:hover { filter: brightness(1.06); }
.kc2-done { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: var(--fs-sm); font-weight: 700; color: var(--success); padding: 8px; }
.kc2-done .ic { width: 15px; height: 15px; }
.kds-view-seg { flex: none; }
.kds-size-seg { flex: none; }
@media (max-width: 560px) { .kds-grid { grid-template-columns: 1fr; } }

/* ===== KDS BÜYÜK MOD (cihaz bazlı, opt-in) — uzaktan okunur mutfak ekranı ===== */
/* Modern 3→2 kolon, klasik kartlar geniş; tüm okunur öğeler büyür. */
.kds-xl .kds-cols { grid-template-columns: repeat(2, 1fr); }
.kds-xl .kds-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.kds-xl .kds-card, .kds-xl .kc2 { padding: 20px 20px 20px 24px; border-radius: 20px; }
.kds-xl .kds-card::before, .kds-xl .kc2::before { width: 6px; }
.kds-xl .kds-card .kc-no, .kds-xl .kc2-no { font-size: 25px; }
.kds-xl .kds-card .kc-where, .kds-xl .kc2-where { font-size: 16px; }
.kds-xl .kds-card .kc-timer, .kds-xl .kc2-timer { font-size: 16px; padding: 5px 12px; }
.kds-xl .kds-card .kc-timer .ic, .kds-xl .kc2-timer .ic { width: 16px; height: 16px; }
.kds-xl .kc2-st, .kds-xl .kds-card .kc-ch, .kds-xl .kc2-ch { font-size: 13px; }
.kds-xl .kds-item, .kds-xl .kc2-item { font-size: 19px; line-height: 1.4; padding: 4px 0; }
.kds-xl .kds-item .q, .kds-xl .kc2-item .q { min-width: 34px; font-size: 19px; }
.kds-xl .kds-item .m, .kds-xl .kc2-item .m { font-size: 15px; }
.kds-xl .kds-card .kc-note, .kds-xl .kc2-note { font-size: 15px; }
.kds-xl .kds-card .kc-btn, .kds-xl .kc2-btn { font-size: 18px; padding: 15px; border-radius: 12px; }
.kds-xl .kds-col-head { font-size: 20px; }
@media (max-width: 900px) { .kds-xl .kds-cols { grid-template-columns: 1fr; } }

/* "Yeni Siparişler" onay şeridi — kompakt, yatay kaydırır */
.pending-strip { background: color-mix(in srgb, var(--warning) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border)); border-radius: var(--r-md); padding: 8px 10px; margin: var(--sp-3) var(--sp-6) 0; }
.pending-strip .pend-head { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); margin-bottom: 7px; color: var(--warning-ink); }
.pending-strip .pend-head .ic { width: 15px; height: 15px; }
.pending-strip .pend-head b { font-weight: 800; }
.pending-strip .pend-count { background: var(--warning); color: #fff; font-weight: 800; font-size: 11px; border-radius: 999px; padding: 0 7px; min-width: 18px; text-align: center; }
.pend-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pend-card { flex: 0 0 auto; width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; box-shadow: var(--sh-xs); }
.pend-top { display: flex; align-items: baseline; gap: 6px; }
.pend-no { font-weight: 800; font-size: var(--fs-md); }
.pend-where { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.pend-time { font-size: 10.5px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.pend-items { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; margin: 4px 0 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 30px; }
.pend-act { display: flex; gap: 5px; align-items: center; }
.pend-btn { flex: 1; border: 0; border-radius: 7px; padding: 6px 8px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.pend-btn .ic { width: 13px; height: 13px; }
.pend-btn.ok { background: var(--success); color: #fff; }
.pend-btn.ok:hover { filter: brightness(1.05); }
.pend-btn.no { background: var(--danger-soft); color: var(--danger); flex: 0 0 auto; padding: 6px 10px; }
.pend-btn.no:hover { background: color-mix(in srgb, var(--danger) 20%, transparent); }
.pend-peek { flex: 0 0 auto; background: var(--surface-2, var(--bg)); border: 1px solid var(--border); border-radius: 7px; padding: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.pend-peek .ic { width: 14px; height: 14px; }

/* =====================================================================
   KURYE (mobil-oncelikli)
   ===================================================================== */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } /* recete-stok modallari */
/* Vurgu rengi seçici (Ayarlar → Görünüm) */
.renk-sw { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; transition: all var(--t-fast); }
.renk-sw .sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.renk-sw:hover { border-color: var(--border-strong); }
.renk-sw.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); color: var(--ink); }
.courier { flex: 1; overflow-y: auto; padding: var(--sp-5); max-width: 720px; margin: 0 auto; width: 100%; }
.courier-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.cstat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); text-align: center; }
.cstat .n { font-size: var(--fs-2xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.cstat .l { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.deliv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-3); box-shadow: var(--sh-sm); }
.deliv-card .dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
.deliv-card .dc-name { font-weight: 700; font-size: var(--fs-lg); }
.deliv-card .dc-amt { font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.deliv-card .dc-addr { color: var(--ink-2); font-size: var(--fs-sm); display: flex; gap: var(--sp-2); align-items: flex-start; }
.deliv-card .dc-addr .ic { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 2px; }
.deliv-card .dc-addr > span { flex: 1; min-width: 0; }
.deliv-card .dc-addr-edit { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--accent-ink); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.deliv-card .dc-addr-edit:hover { border-color: var(--accent); background: var(--accent-softer); }
.deliv-card .dc-addr-edit .ic { width: 12px; height: 12px; margin-top: 0; color: var(--accent-ink); }
.deliv-card .dc-acts { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.deliv-card .dc-acts .btn { flex: 1; min-width: 84px; }
.deliv-card .dc-assign { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--border); }
.deliv-card .dc-assign .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.deliv-card .dc-assign select { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); }
.deliv-card .dc-courier { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--accent-ink); font-weight: 600; }
.deliv-card .dc-courier .ic { width: 15px; height: 15px; flex: none; }
.deliv-card .dc-meta { display: flex; align-items: center; gap: 6px; margin-bottom: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.deliv-card .dc-meta .ic { width: 14px; height: 14px; flex: none; color: var(--muted-2); }
.deliv-card .dc-assignbtn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: var(--sp-3); padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--accent-ink); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.deliv-card .dc-assignbtn:hover { border-color: var(--accent); background: var(--accent-softer); }
.deliv-card .dc-assignbtn .ic { width: 16px; height: 16px; flex: none; }
.picker-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: 650; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.picker-row:hover { border-color: var(--accent); background: var(--accent-softer); }
.picker-row.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.picker-row.danger { color: var(--danger); }
.picker-row.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.picker-row .ic { width: 18px; height: 18px; flex: none; }
.picker-row .grow { flex: 1; }

/* --- Kurye salt-izleme paneli --- */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.cv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--sh-sm); }
.cv-top { display: flex; align-items: center; gap: var(--sp-3); }
.cv-ava { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); flex: none; border: 2px solid #fff; box-shadow: var(--sh-sm); }
.cv-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cv-nm b { font-weight: 700; font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.cv-live.on { color: var(--success); }
.cv-live.on .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: callPulse 1.8s infinite; }
.cv-load { text-align: right; display: flex; flex-direction: column; }
.cv-load b { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; color: var(--accent-ink); }
.cv-load span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cv-brk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.cv-brk span { display: flex; flex-direction: column; gap: 1px; }
.cv-brk i { font-style: normal; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cv-brk b { font-weight: 750; font-size: var(--fs-sm); }
.cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.cv-chip { font-size: var(--fs-xs); font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); border: 1px solid transparent; transition: all var(--t-fast); font-variant-numeric: tabular-nums; }
.cv-chip.way { background: var(--info-soft); color: var(--info); }
.cv-chip:hover { border-color: currentColor; }

/* --- Zaman çizelgesi (sipariş detayı) --- */
.tl { display: flex; flex-direction: column; }
.tl-step { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl-step::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.tl-step.last { padding-bottom: 2px; }
.tl-step.last::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2.5px solid var(--accent-soft); flex: none; margin-top: 3px; }
.tl-step.last .tl-dot { background: var(--success); border-color: var(--success-soft); }
.tl-body { display: flex; flex-direction: column; gap: 1px; }
.tl-body b { font-weight: 700; font-size: var(--fs-sm); }
.tl-meta { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

/* =====================================================================
   DASHBOARD / PANEL (yalniz yonetici)
   ===================================================================== */
.panel { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-6) var(--sp-6); }
.panel-inner { max-width: 1440px; margin: 0 auto; }
.range-tabs { display: inline-flex; gap: 2px; background: var(--surface-sunken); padding: 3px; border-radius: var(--r-md); margin-bottom: var(--sp-5); }
.range-tab { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.range-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); }
.kpi .kpi-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: var(--sp-3); }
.kpi .kpi-ic .ic { width: 20px; height: 20px; }
.kpi .kpi-val { font-size: var(--fs-3xl); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .kpi-lbl { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.kpi { transition: transform var(--t-fast), box-shadow var(--t-fast); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
/* SiPOS KPI BANDI — tek düz beyaz şerit, ince ayraç, ikonsuz, büyük nötr rakam */
.an-kpiband { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-sm); margin-bottom: var(--sp-5); overflow: hidden; }
.an-kpiband .kcell { padding: 17px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.an-kpiband .kl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.an-kpiband .kv { font-size: 25px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 4px; line-height: 1.1; }
.an-kpiband .kpi-delta { margin-top: 5px; }
/* Analiz başlığı — AÇIK/FERAH (SiPOS deseni): beyaz yüzey, ince ayraç, koyu blok YOK */
.panel-hero { position: relative; border-radius: var(--r-xl); padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-5); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.panel-hero .ph-kicker { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.panel-hero h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; color: var(--ink); }
.panel-hero p { color: var(--muted); font-size: var(--fs-sm); }
.panel-hero .ph-right { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.panel-hero .ph-right .range-tabs { background: var(--surface-sunken); }
.panel-hero .ph-right .range-tab { color: var(--muted); }
.panel-hero .ph-right .range-tab.active { background: var(--accent); color: #fff; box-shadow: none; }
.panel-hero .ph-z { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.panel-hero .ph-z:hover { background: var(--surface-sunken); }
/* Analiz KOMPAKT DÜZ araç çubuğu (SiPOS deseni) — dev "Merhaba" hero kaldırıldı:
   tek satır: sol=dönem sekmeleri+tarih, sağ=dışa aktar. Ferah, düz, tek yükseklik. */
.an-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap; margin-bottom: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 10px 14px; box-shadow: var(--sh-sm); }
.an-toolbar .an-tb-period { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.an-toolbar .range-tabs { margin-bottom: 0; }
.an-toolbar .range-tab.active { background: var(--accent); color: #fff; box-shadow: none; }
.an-toolbar .an-tb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* Alt sekme gövde geçişi — sert "F5" yerine yumuşak fade (kullanıcı isteği) */
@keyframes anFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.an-fade { animation: anFade .2s var(--ease-out, ease); }
@media (prefers-reduced-motion: reduce) { .an-fade { animation: none; } }
@media (max-width: 720px) { .an-toolbar { align-items: stretch; } .an-toolbar .an-tb-actions { justify-content: flex-end; } }
/* Fiş görseli seçici */
.fis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 560px) { .fis-grid { grid-template-columns: 1fr; } }
/* Fiş canlı özelleştirme editörü (#7): kontroller | canlı iframe önizleme */
.fis-edit { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-5); align-items: start; }
.fis-edit-ctrl { min-width: 0; }
.fis-edit-prev .fep-lbl { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.fis-edit-prev iframe { width: 100%; height: 540px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); display: block; }
@media (max-width: 860px) { .fis-edit { grid-template-columns: 1fr; } .fis-edit-prev iframe { height: 440px; } }
.fis-card { border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); background: var(--surface); }
.fis-card:hover { border-color: var(--accent); box-shadow: var(--sh-sm); }
.fis-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fis-card .fc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.fis-card .fc-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.fis-card .fc-badge .ic { width: 13px; height: 13px; }
.fis-card .fc-desc { margin: 4px 0 10px; }
.fis-card .fc-view { width: 100%; justify-content: center; }

/* Personel performansı + saatlik yoğunluk heatmap (SiPOS analiz dili) */
.perf-row { margin-bottom: 12px; }
.perf-row .perf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px; gap: 8px; }
.perf-row .pn { font-weight: 700; font-size: var(--fs-sm); }
.perf-row .pt { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); white-space: nowrap; }
.heat { display: flex; flex-direction: column; gap: 3px; }
.heat-hours { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); padding-left: 34px; margin-bottom: 2px; }
.heat-row { display: flex; align-items: center; gap: 6px; }
.heat-day { width: 28px; font-size: 11px; font-weight: 700; color: var(--muted); flex: none; }
.heat-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; flex: 1; }
.heat-cell { aspect-ratio: 1; border-radius: 2px; background: var(--accent); min-height: 9px; transition: transform var(--t-fast); }
.heat-cell:hover { transform: scale(1.4); }

/* ===== KLASİK ARAYÜZ MODU — düz, keskin, gölgesiz (Modern'in alternatifi) ===== */
html.ui-klasik { --r-xs: 3px; --r-sm: 4px; --r-md: 5px; --r-lg: 6px; --r-xl: 8px; --r-2xl: 10px;
  --sh-xs: none; --sh-sm: none; --sh-lg: none; --sh-xl: none; }
html.ui-klasik .kpi, html.ui-klasik .panel-card, html.ui-klasik .product-card, html.ui-klasik .kds-card,
html.ui-klasik .deliv-card, html.ui-klasik .set-card, html.ui-klasik .modal { box-shadow: none; }
html.ui-klasik .kpi:hover { transform: none; box-shadow: none; }
html.ui-klasik .panel-hero { box-shadow: none; } /* hero zaten açık; klasikte yalnız gölge kalkar */
.panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-4); }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-5); }
.panel-card h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-4); }
.bar-row { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.bar-row .bl { width: 84px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.bar-track { flex: 1; height: 10px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.bar-row .bv { width: 90px; text-align: right; font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.hours-chart { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding-top: var(--sp-3); }
.hour-bar { flex: 1; background: var(--accent-soft); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: height var(--t-slow); }
.hour-bar.max { background: var(--accent); }
.top-list .top-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.top-list .top-item:last-child { border-bottom: 0; }
.top-rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-sunken); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.top-item .tn { flex: 1; font-weight: 600; font-size: var(--fs-md); }
.top-item .tq { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.top-item .tt { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =====================================================================
   MENU YONETIMI
   ===================================================================== */
.menu-mgmt { flex: 1; overflow-y: auto; padding: var(--sp-6); }
.mm-inner { max-width: 1080px; margin: 0 auto; }
.mm-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: var(--sp-4); overflow: hidden; }
.mm-cat-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mm-cat-head .cn { font-weight: 700; font-size: var(--fs-lg); flex: 1; }
.mm-prod { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--border); }
.mm-prod:last-child { border-bottom: 0; }
.mm-prod .mp-ord { display: inline-flex; flex-direction: column; gap: 2px; flex: none; }
.mm-prod .mp-ordb { width: 26px; height: 18px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); font-size: 11px; line-height: 1; font-weight: 800; color: var(--ink-2); cursor: pointer; padding: 0; }
.mm-prod .mp-ordb:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.mm-prod .mp-ordb:disabled { opacity: .3; cursor: default; }
.mm-prod .mp-name { flex: 1; font-weight: 600; }
.mm-prod .mp-brand { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.mm-prod .mp-price { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }
.mm-prod .mp-stock { font-size: var(--fs-xs); color: var(--muted); min-width: 70px; text-align: right; }

/* section header (generic) */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: var(--fs-sm); }

/* user menu popover */
.pop { position: fixed; z-index: calc(var(--z-modal) + 10); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); min-width: 220px; overflow: hidden; animation: fadeUp .12s; }
.pop-head { padding: var(--sp-4); border-bottom: 1px solid var(--border); }
.pop-head .nm { font-weight: 700; }
.pop-head .rl { color: var(--muted); font-size: var(--fs-sm); }
.pop-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); font-weight: 500; }
.pop-item:hover { background: var(--surface-sunken); }
.pop-item .ic { width: 18px; height: 18px; color: var(--muted); }

/* empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-10); color: var(--muted); text-align: center; height: 100%; }
.empty-state .ic { width: 52px; height: 52px; color: var(--n-300); }

/* mobile bottom nav (gizli - masaustunde) */
.mobile-nav { display: none; }

/* SiPOS "ada" navigasyonu — alt orta yüzen dock (kullanıcı tercihi; sekmeler seçilebilir) */
.nav-ada { display: none; }
/* Ada başlık kartının genişliği (restoran adına göre büyür) — topbar bu kadar sağdan başlar. */
#app.ada-mode { --ada-head-w: 264px; --ada-head-h: 106px; }
#app.ada-mode .nav-rail { display: none; }
#app.ada-mode .mobile-nav { display: none; }
/* Ray gizlenince .shell'in `76px 1fr` ızgarasında .main boşalan BİRİNCİ sütuna düşüyor ve tüm
   uygulama 76px'lik şeride sıkışıyordu. Ada modunda kabuk tek sütundur. */
#app.ada-mode .shell { grid-template-columns: 1fr; }
#app.ada-mode .main { padding-bottom: 92px; }
/* Yüzen ada başlığı topbar'ın üstüne binmesin: topbar kartın sağından başlar ve kart
   boyunca uzanan bir bant olur. Kartın genişliği sabitlenir, uzun restoran adı ... ile kısalır.
   YALNIZ masaüstü: <=820px'te ray zaten gizli, kabuk tek sütun ve başlık kartı dar ekranda
   topbar'ı ezerdi. */
@media (min-width: 821px) {
  #app.ada-mode .topbar { height: auto; min-height: calc(14px + var(--ada-head-h) + 14px); padding-left: calc(14px + var(--ada-head-w) + 16px); }
}
/* Saat ve işletme adı ada başlığında zaten var — topbar'da ikinci kez gösterme. */
#app.ada-mode .topbar .rest-badge,
#app.ada-mode .topbar .topbar-clock { display: none; }
#app.ada-mode .nav-ada { display: flex; align-items: flex-end; position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  gap: 3px; padding: 6px 9px; max-width: calc(100vw - 24px); overflow: visible;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 24px; box-shadow: 0 16px 44px rgba(20,40,32,.22), inset 0 1px 0 rgba(255,255,255,.4); }
#app.ada-mode .nav-ada::-webkit-scrollbar { display: none; }
.nav-ada .ada-item { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; padding: 9px 8px; border-radius: 15px; color: var(--muted); font-size: 11px; font-weight: 700; background: none; border: 0; cursor: pointer; position: relative; transform-origin: bottom center; will-change: transform; transition: transform .13s cubic-bezier(.2,.85,.3,1), background .18s, color .18s; }
.nav-ada .ada-item .ic { width: 23px; height: 23px; }
.nav-ada .ada-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-ada .ada-item:hover { color: var(--ink-2); }
.nav-ada .ada-item.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent); }
.nav-ada .ada-item.active:hover { color: #fff; }
.nav-ada .ada-sep { align-self: stretch; width: 1px; margin: 8px 4px; background: var(--border); flex: none; }
.nav-ada .ada-cfg { min-width: 44px; color: var(--muted-2); }
/* SiPOS başlık — sol üstte yüzen kart: saat + restoran adı, altında kullanıcı + düğmeler */
#app.ada-mode .ada-header { position: fixed; top: 14px; left: 14px; z-index: 55; padding: 11px 15px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); box-shadow: 0 10px 30px rgba(20,40,32,.16);
  min-width: 210px; width: var(--ada-head-w); }
.ada-header .ah-top { display: flex; align-items: baseline; gap: 10px; }
.ada-header .ah-clock { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ada-header .ah-rest { font-size: 13.5px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ada-header .ah-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--border); }
.ada-header .ah-user { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ada-header .ah-user b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ada-header .ah-user span { font-size: 11px; color: var(--muted); }
.ada-header .ah-btns { display: flex; align-items: center; gap: 4px; flex: none; }
.ada-header .ah-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); cursor: pointer; position: relative; transition: background .16s, border-color .16s; }
.ada-header .ah-btn:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.ada-header .ah-btn .ic { width: 18px; height: 18px; }
.ada-header .ah-btn .badge-count, .ada-header .ah-btn .nav-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; }
.nav-ada .ada-item .badge-count { position: absolute; top: 3px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; }

/* ADA, MASAÜSTÜ METAFORUDUR (macOS dock + yüzen başlık kartı).
   Dar ekranda 264×106'lık sabit kart 60px'lik topbar'ı örtüp içeriğe taşıyordu ve
   alt dock, mobil sekme çubuğunun yerini tutmuyordu. <=820px'te klasik düzene dönülür:
   kart ve dock gizlenir, mobil sekme çubuğu ve topbar'ın saat/işletme adı geri gelir.
   Bu blok ada kurallarından SONRA gelmeli (aynı özgüllük, kaynak sırası kazanır). */
@media (max-width: 820px) {
  #app.ada-mode .ada-header { display: none; }
  #app.ada-mode .nav-ada { display: none; }
  #app.ada-mode .mobile-nav { display: flex; }
  #app.ada-mode .topbar .rest-badge { display: flex; }
  #app.ada-mode .topbar .topbar-clock { display: block; }
  #app.ada-mode .main { padding-bottom: 68px; }
}
.ada-pick { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; font-weight: 650; font-size: var(--fs-md); cursor: pointer; }
.ada-pick input { width: 18px; height: 18px; flex: none; }
.ada-pick .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .pos { grid-template-columns: 1fr 340px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
  .kds-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
@media (max-width: 820px) {
  /* Mobil: nav rail -> alt tab bar; order panel -> tam ekran cekmece */
  body { overflow: auto; }
  .shell { grid-template-columns: 1fr; }
  /* Modal küçük ekranda alt-sheet (üst kısmı kesilmesin) */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; max-height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .nav-rail { display: none; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-sticky);
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; color: var(--muted); font-size: 10px; font-weight: 600; border-radius: var(--r-sm); position: relative; }
  .mnav-item .ic { width: 22px; height: 22px; }
  .mnav-item.active { color: var(--accent); }
  .mnav-item .badge-count { position: absolute; top: 2px; right: 22%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
  .main { padding-bottom: 68px; }
  .pos { display: block; grid-template-columns: 1fr; }
  .pos-order {
    position: fixed; inset: 0; z-index: var(--z-drawer); border-left: 0;
    transform: translateX(100%); transition: transform var(--t-slow); padding-bottom: 0;
  }
  .pos-order.open { transform: none; }
  .kds-cols { grid-template-columns: 1fr; }
  .courier-stats { grid-template-columns: repeat(2, 1fr); }
  .table-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .topbar-search { display: none; }
  /* mobil sepet ozet cubugu */
  .mobile-cart-bar { display: flex; }
}
/* masaustunde gizli mobil sepet cubugu */
.mobile-cart-bar { display: none; align-items: center; justify-content: space-between; position: fixed; bottom: 60px; left: var(--sp-3); right: var(--sp-3); z-index: var(--z-sticky); background: var(--accent); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.mobile-cart-bar .mcb-count { font-weight: 700; }
.mobile-cart-bar .mcb-total { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 420px) {
  .pay-methods { grid-template-columns: repeat(3, 1fr); }
  .section-head h2 { font-size: var(--fs-xl); }
}

/* =====================================================================
   YENI BILESENLER — ayarlar, gecmis, resimli mod, yerlesimler, QR…
   ===================================================================== */
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
.t-2xs { font-size: var(--fs-2xs); }

/* --- Segmented control --- */
.seg { display: inline-flex; gap: 2px; background: var(--surface-sunken); padding: 3px; border-radius: var(--r-md); }
.seg-item { padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; transition: all var(--t-fast); }
.seg-item.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-xs); }

/* --- Switch --- */
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--n-300); position: relative; cursor: pointer; transition: background var(--t-base); flex: none; display: inline-block; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform var(--t-base); }
.switch.on { background: var(--accent); }
.switch.on .knob { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; cursor: pointer; }

/* --- Radio cards (ayar secenekleri) --- */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-3); }
.radio-card { text-align: left; border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); background: var(--surface); transition: all var(--t-fast); }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card.sel { border-color: var(--accent); background: var(--accent-softer); }
.radio-card .rc-title { font-weight: 700; font-size: var(--fs-md); margin-bottom: 4px; }
.radio-card.sel .rc-title { color: var(--accent-ink); }
.radio-card .rc-desc { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }

/* --- Kucuk cip / hizli secim --- */
.chip-sm { padding: 5px 12px; border-radius: 999px; background: var(--surface-sunken); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); transition: all var(--t-fast); }
.chip-sm:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* --- Veresiye cari / musteri secici --- */
.pay-cust { display: flex; align-items: center; gap: var(--sp-3); background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-2); }
.pay-cust .ic { width: 20px; height: 20px; color: var(--warning-ink); flex: none; }
.cust-list { display: flex; flex-direction: column; gap: 6px; }
.cust-row { display: flex; align-items: center; gap: var(--sp-3); text-align: left; padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: all var(--t-fast); }
.cust-row:hover { border-color: var(--accent); background: var(--accent-softer); }
.cust-bal { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--success); }
.cust-bal.pos { color: var(--danger); }
.cust-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); flex: none; }
.ledger-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.ledger-row:last-child { border-bottom: 0; }
.lg-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.lg-ic .ic { width: 15px; height: 15px; }
.lg-ic.borc { background: var(--danger-soft); color: var(--danger); }
.lg-ic.tahsil { background: var(--success-soft); color: var(--success); }

/* --- Bahsis --- */
.pay-tip { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: var(--sp-2); padding-top: var(--sp-3); }

/* --- Ikram --- */
.ikram-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .03em; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }

/* --- Secerek ode (kalem sec) --- */
.sel-list { display: flex; flex-direction: column; gap: 6px; }
.sel-item { display: flex; align-items: center; gap: var(--sp-3); padding: 10px var(--sp-3); border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: all var(--t-fast); }
.sel-item .ck { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; color: #fff; }
.sel-item .ck .ic { width: 14px; height: 14px; }
.sel-item.on { border-color: var(--accent); background: var(--accent-softer); }
.sel-item.on .ck { background: var(--accent); border-color: var(--accent); }

/* --- Kanal siparis karti detaylari (paket musteri bilgisi) --- */
.oc-chan { font-size: 10px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.np-picks { display: flex; flex-direction: column; gap: var(--sp-2); }
.np-pick { display: flex; align-items: center; gap: var(--sp-3); text-align: left; padding: var(--sp-4); border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: all var(--t-fast); }
.np-pick:hover { border-color: var(--accent); background: var(--accent-softer); }
.np-pick .ic { width: 22px; height: 22px; color: var(--accent-ink); flex: none; }
.oc-line { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; margin-top: 2px; }
.oc-line .ic { width: 13px; height: 13px; color: var(--muted); flex: none; margin-top: 1px; }
.oc-line.addr span { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oc-peek { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.oc-peek:hover { color: var(--accent-ink); border-color: var(--accent); }
.oc-peek .ic { width: 14px; height: 14px; }
.peek-cust { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-3); }

/* --- Musteri onerileri (paket/telefon) --- */
.cm-sug-list { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.cm-sug { display: flex; align-items: center; gap: var(--sp-2); text-align: left; padding: 9px var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--accent-softer); font-size: var(--fs-sm); transition: all var(--t-fast); }
.cm-sug:hover { border-color: var(--accent); }
.cm-sug .ic { width: 16px; height: 16px; color: var(--accent-ink); flex: none; }
/* #3 — son sipariş "Aynısını Ekle" kartı */
.cm-last { margin-top: 4px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--accent-softer); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); }
.cm-last-h { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); margin-bottom: 8px; }
.cm-last-h .ic { width: 16px; height: 16px; color: var(--accent-ink); }
.cm-last-h b { color: var(--accent-ink); }
.cm-last-h .muted { margin-left: auto; }
.cm-last-items { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-sm); margin-bottom: 10px; }
.cm-last-items i { font-style: normal; }

/* --- 86 (urun kapatma) --- */
.mod-opt.oos { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }

/* --- Ekran klavyesi (numpad) --- */
#numpad { position: fixed; right: 16px; bottom: 16px; z-index: calc(var(--z-toast) + 1);
  display: none; grid-template-columns: repeat(3, 74px); gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  padding: 14px; box-shadow: var(--sh-xl); }
#numpad.open { display: grid; }
#numpad button { height: 58px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border);
  font-size: 20px; font-weight: 700; transition: all var(--t-fast); }
#numpad button:active { transform: scale(.95); background: var(--accent-soft); }
#numpad .np-c { grid-column: span 1; font-size: var(--fs-sm); color: var(--danger); }
#numpad .np-ok { grid-column: span 2; background: var(--accent); border-color: var(--accent); color: #fff; font-size: var(--fs-md); }
@media (max-width: 820px) { #numpad { right: 8px; bottom: 76px; grid-template-columns: repeat(3, 64px); } #numpad button { height: 50px; } }

/* --- Kuver kisi rozeti --- */
.oh-persons { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--info-soft); color: var(--info); font-weight: 700; font-size: var(--fs-xs); }
.oh-persons .ic { width: 13px; height: 13px; }

/* --- Ürün görseli yükleme --- */
.img-uploader { border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); padding: var(--sp-3); transition: border-color var(--t-fast), background var(--t-fast); }
.img-uploader.drag { border-color: var(--accent); background: var(--accent-softer); }
.img-uploader .img-prev { width: 100%; height: 128px; border-radius: var(--r-sm); background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; margin-bottom: var(--sp-2); }
.img-uploader .img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-uploader .img-actions { display: flex; gap: var(--sp-2); }
.img-uploader .img-actions .btn { flex: 1; }

/* --- Masa transfer --- */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--sp-2); }
.tr-table { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: var(--sp-3); border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: all var(--t-fast); }
.tr-table:hover { border-color: var(--accent); background: var(--accent-softer); }
.tr-table.busy { border-color: var(--warning); background: var(--warning-soft); }
.tr-table .tr-name { font-weight: 700; font-size: var(--fs-lg); }
.tr-table .tr-tag { font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); }
.tr-table.busy .tr-tag { color: var(--warning-ink); }

/* --- Odeme ekrani (yeni) --- */
.pay-quick-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-2); }
.pay-quick { padding: 9px 14px; font-size: var(--fs-sm); }
.pay-amt-in { display: flex; gap: var(--sp-2); flex: 1; min-width: 160px; }
.pay-amt-in .input { flex: 1; min-height: 38px; }
.pay-disc-toggle { border-top: 1px solid var(--border); margin-top: var(--sp-3); padding-top: var(--sp-2); }
.split-row .sm { display: flex; align-items: center; gap: var(--sp-2); }
.split-row .sm .ic { width: 16px; height: 16px; color: var(--muted); }

/* --- Parcali odeme --- */
.split-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.split-row { display: flex; align-items: center; gap: var(--sp-3); padding: 6px 4px; border-bottom: 1px dashed var(--border); }
.split-row:last-of-type { border-bottom: 0; }
.split-row .sm { flex: 1; font-weight: 600; font-size: var(--fs-sm); }
.split-row .sa { font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- Adisyon notu + bekleyen kalem --- */
.order-note { display: flex; gap: var(--sp-2); align-items: flex-start; background: var(--warning-soft); color: var(--warning-ink); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); font-weight: 600; margin-bottom: var(--sp-3); }
.order-note .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.oline .ol-body { cursor: pointer; }
.oline.pending { background: color-mix(in srgb, var(--warning-soft) 55%, transparent); }
.ol-pending { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--warning-ink); background: var(--warning-soft); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }

/* --- Resimli urun kartlari (foto + alt gradient serit) --- */
.product-grid.img-mode { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
/* Resimli kart — SADE: foto ustte sabit oranli, ad+fiyat beyaz govdede.
   (Eski tam-kaplama foto + koyu gradyan uzeri yazi kaldirildi — okunmuyordu.) */
.product-card.with-img { padding: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; gap: 0; min-height: 0; justify-content: flex-start; }
.product-card.with-img:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.product-card.with-img .pc-art { position: relative; aspect-ratio: 4 / 2.6; background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.product-card.with-img .pc-art .pc-art-svg { width: 56%; height: 56%; opacity: .8; }
.product-card.with-img .pc-art .pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card.with-img .pc-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.product-card.with-img .pc-body .pc-name { font-size: var(--fs-md); font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card.with-img .pc-body .pc-price { font-size: var(--fs-lg); font-weight: 750; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.product-card.with-img .pc-corner { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 700; color: #fff;
  background: color-mix(in srgb, var(--accent) 92%, transparent); border-radius: 999px; padding: 3px 9px; backdrop-filter: blur(2px); }
.product-card.with-img.tukendi .pc-corner { background: color-mix(in srgb, var(--danger) 92%, transparent); }
.product-card.with-img .alcohol-dot { top: 8px; right: 8px; width: 9px; height: 9px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
html.dense .product-card.with-img .pc-art { aspect-ratio: 4 / 2.2; }
html.dense .product-card.with-img .pc-body { padding: 8px 10px 10px; }

/* --- ADA yerlesimi --- */
.ada-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-4); }
.ada-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); cursor: pointer; transition: all var(--t-fast); }
.ada-card:hover { border-color: var(--accent); box-shadow: var(--sh-md); transform: translateY(-2px); }
.ada-card .ada-art { width: 96px; height: 68px; display: grid; place-items: center; }
.ada-card .ada-art svg { width: 100%; height: 100%; }
.ada-card .ada-name { font-weight: 700; font-size: var(--fs-lg); }
.ada-card .ada-count { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* --- SOL sutun yerlesimi --- */
.pos-menu.layout-sol { grid-template-rows: 1fr; grid-template-columns: 190px 1fr; }
.cat-side { border-right: 1px solid var(--border); padding: var(--sp-3); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.cat-side-item { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 10px 12px; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); text-align: left; transition: all var(--t-fast); }
.cat-side-item:hover { background: var(--surface-sunken); }
.cat-side-item.active { background: var(--accent); color: #fff; }
.cat-side-item .n { font-size: var(--fs-2xs); font-weight: 700; background: var(--surface-sunken); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.cat-side-item.active .n { background: rgba(255,255,255,.22); color: #fff; }

/* --- Masa cagri --- */
.table-card.calling { border-color: var(--warning); animation: callPulse 1.2s ease-in-out infinite; }
@keyframes callPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,166,46,.35); } 50% { box-shadow: 0 0 0 6px rgba(224,166,46,0); } }
/* kirmizi (gec kaldi) nabzi — amber halo yerine danger halosu */
@keyframes callPulseDanger { 0%,100% { box-shadow: 0 0 0 0 rgba(216,72,63,.35); } 50% { box-shadow: 0 0 0 6px rgba(216,72,63,0); } }
.toast.warn { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 40%, transparent); color: var(--warning-ink); }
/* #47 Geri-al toast'u */
.toast.toast-act { gap: 14px; }
.toast .toast-btn { flex: none; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 5px 14px; border-radius: var(--r-full); cursor: pointer; }
.toast .toast-btn:hover { background: var(--accent-strong, var(--accent)); }

/* ===================== MASA DÜZENİ (floor-plan) ===================== */
.masa-seg { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); }
.masa-seg .ms-opt { height: 26px; padding: 0 14px; border: none; background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; border-radius: var(--r-full); cursor: pointer; transition: all var(--t-fast); }
.masa-seg .ms-opt.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

.fp-toolbar { flex: none; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--border); }
.fp-toolbar.editing { background: var(--surface-2); }
.fp-legend { display: inline-flex; align-items: center; gap: var(--sp-3); margin-left: auto; font-size: var(--fs-2xs); color: var(--muted); font-weight: 600; }
.fp-legend .fpl { display: inline-flex; align-items: center; gap: 5px; }
.fp-legend .sw { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--border); display: inline-block; }
.fp-legend .sw.bos { background: var(--surface); }
.fp-legend .sw.dolu { background: var(--accent-soft); border-color: var(--accent); }
.fp-legend .sw.bekliyor { background: var(--warning-soft); border-color: var(--warning); }
.fp-palette { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fp-dchip { height: 30px; padding: 0 11px; border-radius: var(--r-sm); font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: all var(--t-fast); }
.fp-dchip:hover { border-color: var(--accent); color: var(--accent-ink); }
.fp-selctl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.fp-mini { height: 27px; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.fp-mini:hover { border-color: var(--border-strong); }
.fp-mini.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: var(--danger-soft); }
.fp-lbl { height: 28px; width: 120px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 12px; }

.fp-scroll { flex: 1; overflow: auto; padding: var(--sp-4) var(--sp-5); }
.fp-canvas {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--border);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
  box-shadow: var(--sh-sm) inset; min-width: 100%;
}
.fp-canvas.editing {
  background:
    linear-gradient(var(--border-strong) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--border-strong) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface-2);
}

.fp-table {
  position: absolute; box-sizing: border-box; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; text-align: center; padding: 4px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-sm); transition: transform var(--t-fast), box-shadow var(--t-fast);
  user-select: none; -webkit-user-select: none; overflow: hidden; touch-action: none;
}
.fp-table.shp-round { border-radius: 50%; }
.fp-table.shp-square { border-radius: var(--r-lg); }
.fp-table.shp-rect { border-radius: var(--r-md); }
.fp-table.st-dolu { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.fp-table.st-bekliyor { background: var(--warning-soft); border-color: var(--warning); color: var(--warning-ink); }
.fp-canvas:not(.editing) .fp-table { cursor: pointer; }
.fp-canvas:not(.editing) .fp-table:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.fp-canvas.editing .fp-table { cursor: move; }
.fp-table.fp-sel { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 5; }
.fp-table.calling { border-color: var(--warning); animation: callPulse 1.2s ease-in-out infinite; }
.fpt-name { font-weight: 800; font-size: 15px; line-height: 1.05; letter-spacing: -.01em; }
.fpt-seats { font-size: 10px; font-weight: 600; opacity: .72; }
.fpt-total { font-weight: 800; font-size: 13px; }
.fpt-empty { font-size: 11px; font-weight: 600; opacity: .6; }
.fpt-badge { position: absolute; top: -9px; padding: 1px 7px; border-radius: var(--r-full); font-size: 9px; font-weight: 800; color: #fff; box-shadow: var(--sh-sm); }
.fpt-badge.warn { background: var(--warning); }
.fpt-badge.ok { background: var(--success); }

.fp-decor {
  position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-sm); background: var(--surface-2);
  color: var(--muted); font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  user-select: none; -webkit-user-select: none; overflow: hidden; touch-action: none;
}
.fp-canvas.editing .fp-decor { cursor: move; }
.fp-decor.fp-sel { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 5; }
.fp-decor.dc-bar { background: var(--surface-sunken); border-style: solid; border-color: var(--border-strong); color: var(--ink-2); border-radius: var(--r-md); }
.fp-decor.dc-duvar { background: var(--border-strong); border: none; border-radius: 3px; color: transparent; }
.fp-decor.dc-kapi { border-style: dashed; border-color: var(--accent); color: var(--accent-ink); background: var(--accent-softer); }
.fp-decor.dc-bitki { border-radius: 50%; background: var(--success-soft); border-color: var(--success); color: var(--success); }
.fp-decor.dc-wc { background: var(--surface); border-style: solid; }
.fp-decor.dc-yazi { background: transparent; border: none; color: var(--ink-2); text-transform: none; font-weight: 700; font-size: 13px; }

.fp-handle { position: absolute; right: -6px; bottom: -6px; width: 15px; height: 15px; border-radius: 5px; background: var(--accent); border: 2px solid var(--surface); cursor: nwse-resize; z-index: 6; touch-action: none; }

@media (max-width: 820px) {
  .fp-toolbar { padding: var(--sp-2) var(--sp-4); }
  .fp-legend { width: 100%; margin-left: 0; }
  .fp-scroll { padding: var(--sp-3) var(--sp-4); }
}

/* ===================== ANALİZ MERKEZİ (premium) ===================== */
/* SiPOS-tarzi SOL DIKEY kategori kutucuklari — Analiz alt-sekmeleri.
   Ayni gorsel dil Ayarlar yan-nav'inda da (set-nav-item) kullanilir. */
/* Analiz: alt-sekmeler ÜSTTE yatay şerit (sol dikey sütun kalktı → içerik ferah/geniş) */
.an-layout { display: block; margin-top: 12px; }
.an-body { min-width: 0; }
/* Personel denetimi (suistimal) kartı */
.an-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.an-card-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.an-card-head h3 { font-size: var(--fs-lg); font-weight: 700; }
.abuse-tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.abuse-tbl th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.abuse-tbl th.num, .abuse-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.abuse-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft, var(--border)); }
.abuse-tbl tbody tr:hover { background: var(--surface-sunken); }
.abuse-tbl td.warn { color: var(--warning, #8a4b06); font-weight: 700; }
.abuse-tbl tr.abuse-flag { background: color-mix(in srgb, var(--warning, #e0772a) 8%, transparent); }
.abuse-tbl tr.abuse-flag td:first-child { box-shadow: inset 3px 0 0 var(--warning, #e0772a); }
.abuse-tbl tfoot td { padding: 10px; border-top: 2px solid var(--border); font-weight: 700; }
.abuse-tbl svg, .abuse-tbl .ic { width: 13px; height: 13px; vertical-align: -2px; color: var(--warning, #e0772a); }
/* #51 Sayı tuş takımı */
.qty.qty-tap { cursor: pointer; border: 1px solid transparent; border-radius: 6px; background: none; font: inherit; font-variant-numeric: tabular-nums; padding: 2px 6px; min-width: 26px; }
.qty.qty-tap:hover { border-color: var(--border-strong); background: var(--surface-sunken); }
.qtypad-val { text-align: center; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 8px 0 14px; letter-spacing: .02em; }
.qtypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qtypad-key { height: 56px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 22px; font-weight: 700; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.qtypad-key:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.qtypad-key:active { background: var(--accent-soft); }
.qtypad-key.aux { font-size: 18px; color: var(--muted); }
/* #46 Açık ürün kartı — kesikli çerçeveli, "ekle" hissi */
.product-card.open-item-card { border-style: dashed; border-color: var(--border-strong); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.product-card.open-item-card:hover { border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.product-card.open-item-card svg, .product-card.open-item-card .ic { width: 22px; height: 22px; }
.side-tiles { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stile { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; text-align: left; flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink-2); cursor: pointer; transition: all var(--t-fast); }
.stile .ic { width: 18px; height: 18px; flex: 0 0 auto; opacity: .75; }
/* Faz 3 — Serbest Düzen (ekran-üstü sürükle-bırak) */
.ldrag-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px;
  background: var(--accent); color: #fff; box-shadow: 0 -6px 20px color-mix(in srgb, var(--accent) 28%, transparent); }
.ldrag-bar span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); flex: 1; }
.ldrag-bar .ic { width: 16px; height: 16px; }
.ldrag-bar .btn { background: #fff; border-color: #fff; color: var(--accent-ink); }
.courier3.layout-drag [data-group] { outline: 2px dashed var(--accent); outline-offset: -4px; position: relative; cursor: grab; }
.courier3.layout-drag [data-group].ldrag-on { opacity: .5; }
.courier3.layout-drag [data-group].ldrag-over { outline-style: solid; box-shadow: inset 0 0 0 3px var(--accent); }
.ldrag-handle { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; border-radius: 0 0 var(--r-md) 0; position: absolute; top: 0; left: 0; z-index: 5; }
.ldrag-handle .ic { width: 13px; height: 13px; }
.ldrag-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); cursor: ns-resize; z-index: 5; }
/* #8 — Rezervasyon & Bekleme satırı */
.rez-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.rez-row.done { opacity: .6; }
.rez-main { flex: 1; min-width: 0; }
.rez-t { font-size: var(--fs-md); }
.rez-t .rez-p { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.rez-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.rez-acts { display: flex; gap: 5px; flex: none; }
.rez-acts .btn { padding: 0 10px; min-height: 34px; }
/* #5 — Gün Sonu Kapanışı sihirbazı adımları */
.dew-step { display: flex; align-items: center; gap: 11px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.dew-step > .ic { width: 22px; height: 22px; color: var(--muted); flex: none; }
.dew-step.ok > .ic { color: var(--accent-ink); }
.dew-step .grow { min-width: 0; }
.dew-step b { display: block; font-size: var(--fs-md); }
.dew-step span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.dew-ok { color: var(--accent); display: inline-flex; }
.dew-ok .ic { width: 18px; height: 18px; }
.dew-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 4px 12px; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.dew-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dew-acts { display: flex; gap: 10px; margin-top: 16px; }
/* #11 — Kayıplar: neden dağılım barı */
.an-bar { margin: 10px 0; }
.an-bar-l { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 4px; }
.an-bar-t { height: 8px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.an-bar-f { height: 100%; border-radius: 999px; background: var(--danger); }
.stile:hover { background: var(--surface-2); transform: translateY(-1px); }
.stile.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 9px color-mix(in srgb, var(--accent) 18%, transparent); }
.stile.active .ic { opacity: 1; }
@media (max-width: 620px) {
  .side-tiles { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}
.kpi .kpi-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: var(--r-full); margin-top: 7px; font-variant-numeric: tabular-nums; }
.kpi-delta.up { background: var(--success-soft); color: var(--success); }
.kpi-delta.down { background: var(--danger-soft); color: var(--danger); }
.kpi-delta.flat { background: var(--surface-sunken); color: var(--muted); }
.ph-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ph-stats .phs { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-md); padding: 7px 13px; }
.ph-stats .phs b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.15; }
.ph-stats .phs span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.date-range { display: inline-flex; gap: 6px; align-items: center; }
.date-range input { height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 12.5px; font-family: inherit; }
.donut-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut-svg { flex: none; }
.donut-legend { flex: 1; min-width: 168px; display: flex; flex-direction: column; gap: 8px; }
.donut-legend .dl { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend .dl i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.donut-legend .dl .dn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-legend .dl .dv { font-weight: 800; font-variant-numeric: tabular-nums; }
.donut-legend .dl .dp { color: var(--muted); font-size: 11.5px; font-weight: 700; min-width: 40px; text-align: right; }
.an-table { width: 100%; border-collapse: collapse; }
.an-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.an-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.an-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.an-table tr:last-child td { border-bottom: 0; }
.an-table .rk { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-sunken); font-size: 11px; font-weight: 800; color: var(--muted); }
.an-scroll { max-height: 420px; overflow: auto; }
.dow-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.dow-bars .dow { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.dow-bars .dow .db { width: 100%; max-width: 34px; border-radius: var(--r-sm) var(--r-sm) 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-strong)); min-height: 3px; transition: height var(--t-slow); }
.dow-bars .dow.max .db { background: linear-gradient(180deg, var(--success), color-mix(in srgb, var(--success) 72%, #000)); }
.dow-bars .dow .dn { font-size: 11px; font-weight: 700; color: var(--muted); }
.kiyas-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kiyas-card .kv { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kiyas-card .kd { font-size: 13px; font-weight: 800; padding: 4px 11px; border-radius: var(--r-full); }
.cmt { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid var(--border); border-left: 3px solid var(--info); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface); }
.cmt.pos { border-left-color: var(--success); }
.cmt.warn { border-left-color: var(--warning); }
.cmt.info { border-left-color: var(--info); }
.cmt .ci { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-2); }
.cmt .ct { font-size: 13.5px; line-height: 1.5; }
.cmt .ct b { font-weight: 800; }

/* ===================== ONBOARDING (kurulum checklist) ===================== */
.onb { background: linear-gradient(120deg, var(--accent-softer), var(--surface) 60%); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-lg); padding: 14px 16px; margin: var(--sp-3) var(--sp-6) 0; }
.onb-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.onb-head .ic { color: var(--accent); }
.onb-head b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.onb-head .onb-prog { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.onb-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 4px 6px; }
.onb-x:hover { color: var(--ink-2); }
.onb-track { height: 6px; background: var(--surface-sunken); border-radius: var(--r-full); overflow: hidden; margin-bottom: 12px; }
.onb-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: var(--r-full); transition: width var(--t-slow); }
.onb-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.onb-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: all var(--t-fast); }
.onb-step:not(.done):hover { border-color: var(--accent); color: var(--accent-ink); }
.onb-step.done { color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); background: var(--success-soft); cursor: default; }
.onb-step .chk { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--muted-2); flex: none; }
.onb-step.done .chk { border-color: var(--success); background: var(--success); }

/* ===================== TEZGAH / HIZLI SATIS ===================== */
.counter-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, var(--accent-softer), var(--surface) 65%); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 4px; }
.counter-hero .ch-art { flex: none; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.counter-hero .ch-art .ic { width: 26px; height: 26px; }
.counter-hero .ch-body { flex: 1 1 auto; min-width: 0; }
.counter-hero .ch-body p { margin-top: 3px; max-width: 54ch; }
.counter-hero .ch-cta { flex: none; }
@media (max-width: 720px) { .counter-hero { flex-wrap: wrap; gap: 12px; padding: 16px; } .counter-hero .ch-cta { width: 100%; } }

/* ===================== DESTEK (support) ===================== */
.nav-user { position: relative; }
.nav-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
.pop-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }

/* ---- Bildirim merkezi ---- */
.nav-notif .notif-dot { position: absolute; top: 6px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
.notif-pop { width: 336px; min-width: 336px; }
.notif-pop .pop-head { display: flex; align-items: center; justify-content: space-between; }
.notif-clear { background: none; border: none; color: var(--accent-ink); font-size: 12px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.notif-clear:hover { text-decoration: underline; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); transition: background var(--t-fast); }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface-sunken); }
.notif-ic { flex: none; width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-sunken); color: var(--muted); }
.notif-ic .ic { width: 17px; height: 17px; }
.notif-ic.ni-order { background: var(--accent-soft); color: var(--accent-ink); }
.notif-ic.ni-ready { background: var(--success-soft); color: var(--success); }
.notif-ic.ni-call, .notif-ic.ni-stock { background: var(--warning-soft); color: var(--warning-ink); }
.notif-ic.ni-support { background: var(--info-soft); color: var(--info); }
.notif-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.notif-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.notif-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.notif-time { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.notif-empty .ic { width: 30px; height: 30px; color: var(--n-300); }
@media (max-width: 820px) { .nav-notif .notif-dot { top: 2px; right: 18%; } .notif-pop { width: calc(100vw - 24px); min-width: 0; } }
.sup-modal { max-width: 440px; display: flex; flex-direction: column; max-height: 82vh; }
.sup-thread { flex: 1; overflow-y: auto; padding: 14px 4px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.sup-msg { display: flex; flex-direction: column; max-width: 82%; }
.sup-msg.mine { align-self: flex-end; align-items: flex-end; }
.sup-msg.them { align-self: flex-start; align-items: flex-start; }
.sup-bubble { padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.sup-msg.mine .sup-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.sup-msg.them .sup-bubble { background: var(--surface-sunken); color: var(--ink); border-bottom-left-radius: 5px; }
.sup-meta { font-size: 10.5px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.sup-send { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.sup-send input { flex: 1; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 14px; font-family: inherit; }
.sup-send input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* --- KDS istasyon --- */
.kds-station-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--info); background: var(--info-soft); border-radius: 999px; padding: 1px 6px; vertical-align: 2px; }

/* --- GECMIS --- */
.history { flex: 1; overflow-y: auto; padding: var(--sp-6); }
.hist-inner { max-width: 980px; margin: 0 auto; }
.hist-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); transition: all var(--t-fast); }
.hist-row:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.hist-row .hno { font-weight: 800; min-width: 52px; font-variant-numeric: tabular-nums; }
.hist-row .hch { font-size: var(--fs-2xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.hist-row .hwho { flex: 1; font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-row .hmeta { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.hist-row .hamt { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }
.hist-row { flex-wrap: wrap; }
.hist-row .hist-items { order: 6; width: 100%; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; line-height: 1.35; margin-top: 2px; padding-left: 60px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

/* --- AYARLAR --- */
.settings { flex: 1; min-height: 0; display: flex; }
.set-wrap { flex: 1; display: grid; grid-template-columns: 180px 1fr; min-height: 0; max-width: 1560px; margin: 0 auto; width: 100%; }
.set-nav { display: flex; flex-direction: column; gap: 10px; padding: var(--sp-5) var(--sp-4); border-right: 1px solid var(--border); overflow-y: auto; }
/* Ayarlar yan-nav = Analiz'deki .stile ile AYNI kutucuk dili (SiPOS deseni) */
.set-nav-item { display: flex; align-items: center; text-align: left; padding: 13px 16px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink-2); transition: all var(--t-fast); white-space: nowrap; }
.set-nav-item:hover { border-color: var(--border-strong); transform: translateX(2px); }
.set-nav-item.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 9px color-mix(in srgb, var(--accent) 18%, transparent); }
.set-body { padding: var(--sp-5); overflow-y: auto; min-height: 0; }
.set-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.set-card h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-3); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-3) 0; border-top: 1px solid var(--border); }
.set-row:first-of-type { border-top: 0; }
.set-row.slim { padding: var(--sp-2) 0; }
.uavatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: var(--fs-xs); flex: none; }

/* --- Opsiyon grubu listesi --- */
/* Opsiyon Grupları — ayrı ferah kartlar (eski ince-çizgi-liste tek-mantık ihlaliydi) */
.grp-row { display: flex; align-items: center; gap: var(--sp-3); padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.grp-row:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.grp-row:hover .semi { color: var(--accent-ink); }

/* --- QR --- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-4); }
.qr-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-lg); padding: var(--sp-4); text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; box-shadow: var(--sh-xs); }
.qr-card img { width: 120px; height: 120px; }

/* --- Sihirbaz --- */
.wiz-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-4); }
.wiz-type { border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; transition: all var(--t-fast); background: var(--surface); }
.wiz-type:hover { border-color: var(--border-strong); }
.wiz-type.sel { border-color: var(--accent); background: var(--accent-softer); }
.wiz-type .wt-ic { font-size: 30px; }
.wiz-type .wt-lbl { font-weight: 700; font-size: var(--fs-sm); }
.wiz-type .wt-tag { color: var(--muted); font-size: var(--fs-2xs); line-height: 1.35; }

/* --- Menu yonetimi: favori yildizi + kucuk gorsel --- */
.mm-fav { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; color: var(--n-300); background: transparent; border: none; cursor: pointer; transition: color var(--t-fast), transform var(--t-fast); flex: none; }
.mm-fav:hover { color: var(--warning); transform: scale(1.15); }
.mm-fav.on { color: var(--warning); }
.mp-art { width: 40px; height: 32px; flex: none; display: grid; place-items: center; background: var(--surface-sunken); border-radius: 8px; overflow: hidden; }
.mp-art svg, .mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-stock.low { color: var(--warning-ink); font-weight: 700; }
.mp-stock.out { color: var(--danger); font-weight: 700; }

/* --- İşlem günlüğü --- */
.aud-list { max-height: 560px; overflow-y: auto; margin-top: 12px; }
.aud-row { display: flex; align-items: baseline; gap: var(--sp-3); padding: 8px 2px; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.aud-row:first-child { border-top: 0; }
.aud-t { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); min-width: 92px; }
.aud-a { font-weight: 700; min-width: 150px; }
.aud-w { color: var(--ink-2); font-weight: 600; min-width: 110px; }
.aud-m { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- KOMPAKT yogunluk --- */
html.dense .product-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
html.dense .product-grid.img-mode { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
html.dense .product-card { padding: 12px; min-height: 84px; }
html.dense .product-card:not(.with-img) .pc-name { font-size: var(--fs-sm); }
html.dense .product-card .pc-thumb { width: 34px; height: 34px; border-radius: 9px; }
html.dense .product-card .pc-price { font-size: var(--fs-md); }
html.dense .table-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
html.dense .table-card { min-height: 86px; padding: 12px; }
html.dense .table-card .tc-name { font-size: var(--fs-lg); }
html.dense .cat-chip { height: 32px; font-size: var(--fs-sm); }

/* --- Responsive ekler --- */
@media (max-width: 1180px) {
  .set-wrap { grid-template-columns: 168px 1fr; }
}
@media (max-width: 820px) {
  .mobile-nav { overflow-x: auto; justify-content: flex-start; }
  .mnav-item { flex: none; min-width: 64px; }
  .set-wrap { display: flex; flex-direction: column; }
  .set-nav { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); padding: var(--sp-2) var(--sp-3); overflow-x: auto; }
  .set-body { padding: var(--sp-4) var(--sp-3); }
  .pos-menu.layout-sol { grid-template-columns: 128px 1fr; }
  .history { padding: var(--sp-4) var(--sp-3); }
  .hist-row { flex-wrap: wrap; }
  .hist-row .hmeta { order: 5; width: 100%; }
  .radio-grid { grid-template-columns: 1fr; }
  .topbar { gap: var(--sp-2); }
  .topbar .rest-badge, .topbar .topbar-clock { display: none; }
}

/* =====================================================================
   KURYE KOMUTA (yönetici): sol paket akışı + sağ canlı harita/vardiya
   ===================================================================== */
/* #13 — Hazırlanıyor | Yolda | sağ panel (sekme yok, sağlı-sollu bölünmüş) */
.courier3 { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 380px; min-height: 0; }
.c2-col { min-width: 0; padding: var(--sp-4) var(--sp-4) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); overflow-y: auto; border-right: 1px solid var(--border); }
.c2-col:first-child { padding-left: var(--sp-6); }
.c2-colhead { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 2px 0 10px; margin-bottom: 2px; background: linear-gradient(var(--surface) 72%, transparent); }
.c2-colhead .cch-t { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: var(--fs-lg); }
.c2-colhead .cch-t .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.c2-colhead .cch-n { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); font-size: 12.5px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.c2-colhead .c2-pill { margin-left: 4px; height: 26px; }
.c2-colhead .c2-pill:first-of-type { margin-left: auto; }
.c2-right { min-width: 0; background: var(--surface-2); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); overflow-y: auto; }
.c2-tabs { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.c2-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: var(--fs-md); color: var(--ink-2); transition: all var(--t-fast); }
.c2-tab .ic { width: 18px; height: 18px; }
.c2-tab .n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); font-size: 12px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.c2-tab:hover { border-color: var(--border-strong); }
.c2-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 26%, transparent); }
.c2-tab.on .n { background: rgba(255,255,255,.22); color: #fff; }
.c2-mini { display: inline-flex; gap: var(--sp-2); margin-left: auto; flex-wrap: wrap; }
.c2-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.c2-pill b { color: var(--ink); font-weight: 800; }
.c2-pill.ok b { color: var(--accent-ink); }
.c2-pill.info b { color: var(--info); }
.c2-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-xs); overflow: hidden; flex: none; }
.c2-ch { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 14px 8px; font-size: var(--fs-md); }
#kmap { display: block; width: 100%; height: 340px; background: var(--surface-2); z-index: 0; }
#kmap.leaflet-container { font: inherit; }
/* Leaflet divIcon marker'ları — mağaza 🏪 + kurye baş-harf rozeti */
.lmk { background: none; border: 0; }
.lmk .lmk-store { font-size: 30px; line-height: 1; text-align: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.lmk .lmk-cour { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.c2-ch #mapPick { padding: 4px 10px; min-height: 28px; font-size: var(--fs-sm); }
/* Kurye vardiya-kapatma isteği kartı (#4) */
#kreqCard { border-color: color-mix(in srgb, var(--warning-ink, #a9791a) 30%, var(--border)); }
.kreq { padding: 12px 0; border-top: 1px solid var(--border); }
.kreq:first-child { border-top: 0; }
.kreq-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.kreq-top b { font-size: var(--fs-md); }
.kreq-amts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.kreq-chip { font-size: 11.5px; padding: 4px 9px; border-radius: var(--r-md); background: var(--surface-sunken); color: var(--ink-2); }
.kreq-chip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.kreq-sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; }
.kreq-ok { width: 100%; }
.kt-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; text-align: left; border-top: 1px solid var(--border); transition: background var(--t-fast); }
.kt-row:hover { background: var(--surface-2); }
.kt-ava { width: 36px; height: 36px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.kt-bd { flex: 1; min-width: 0; }
.kt-bd b { display: block; font-size: var(--fs-md); }
.kt-sub { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); display: inline-block; flex: none; }
.kt-dot.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kt-amt { font-weight: 800; white-space: nowrap; }
.kt-ok { color: var(--muted-2); font-size: 18px; font-weight: 600; }
/* Kurye paneli (Aktif/Geçmiş) */
.kp-seg { display: flex; gap: var(--sp-2); align-items: center; margin: 2px 0 12px; flex-wrap: wrap; }
.kp-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); margin-bottom: 8px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.kp-row:hover { border-color: var(--border-strong); box-shadow: var(--sh-xs); }
.kp-time { font-weight: 800; font-size: var(--fs-md); min-width: 46px; text-align: center; }
.kp-time i { display: block; font-style: normal; font-size: 10px; color: var(--muted); font-weight: 700; }
.kp-bd { flex: 1; min-width: 0; }
.kp-bd b { display: block; font-size: var(--fs-md); }
.kp-bd span { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-amt { font-weight: 800; white-space: nowrap; }
.c2-tools { margin-left: auto; display: inline-flex; gap: 6px; }
.c2-ch .c2-tools .btn { padding: 4px 10px; min-height: 28px; font-size: var(--fs-sm); }

/* ---- Kurye Dispatch: sürükle-bırak + çoklu seçim atama ---- */
.deliv-card.dispatchable { cursor: grab; }
.deliv-card.dispatchable:active { cursor: grabbing; }
.deliv-card.dragging { opacity: .5; box-shadow: var(--sh-lg); }
.deliv-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.dc-head .dc-hl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dc-check { width: 24px; height: 24px; flex: none; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.dc-check:hover { border-color: var(--accent); }
.dc-check .ic { width: 15px; height: 15px; opacity: 0; color: #fff; stroke-width: 3; }
.dc-check.on { background: var(--accent); border-color: var(--accent); }
.dc-check.on .ic { opacity: 1; }
.disp-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-lg); background: var(--accent-softer, var(--accent-soft)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: var(--sh-sm); }
.disp-bar > .ic { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }
.disp-txt { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.disp-txt b { font-size: var(--fs-md); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.disp-hint { font-size: var(--fs-xs); color: var(--muted); }
.disp-bar .btn { min-height: 32px; padding: 0 12px; }
/* kt-row artık <div> (drop hedefi) — düğme görünümünü koru */
.kt-row { cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.kt-row.drop-on { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent); }
.courier3.dnd .kt-row { outline: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: -3px; border-radius: var(--r-md); }
.kt-ata { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; flex: none; border-radius: var(--r-md);
  background: var(--accent); color: #fff; font-weight: 800; font-size: var(--fs-sm); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent); }
.kt-ata .ic { width: 16px; height: 16px; }
.kt-ata b { font-variant-numeric: tabular-nums; }
.kt-ata:hover { background: var(--accent-ink); }

/* ---- Harita tam-ekran ---- */
body.map-full-open { overflow: hidden; }
.c2-card.map-full { position: fixed; inset: 12px; z-index: 1200; margin: 0; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,.32); animation: mapFullIn var(--t-fast) ease; }
@keyframes mapFullIn { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }
.c2-card.map-full #kmap { height: auto; flex: 1; min-height: 0; }
.c2-card.map-full .c2-ch { border-bottom: 1px solid var(--border); }

/* ---- Faz 2: kişisel ekran düzeni (yoğunluk + ikincil vurgu + editör) ---- */
#main.dens-sikisik .c2-col { gap: var(--sp-2); }
#main.dens-sikisik .deliv-card { padding: var(--sp-3); margin-bottom: var(--sp-2); border-radius: var(--r-md); }
#main.dens-sikisik .deliv-card .dc-name { font-size: var(--fs-md); }
#main.dens-sikisik .deliv-card .dc-acts { margin-top: var(--sp-2); gap: 6px; }
#main.dens-sikisik .deliv-card .dc-acts .btn { min-height: 34px; }
#main.dens-ferah .c2-col { gap: var(--sp-5); }
#main.dens-ferah .deliv-card { padding: var(--sp-6); margin-bottom: var(--sp-4); }
#main.dens-ferah .deliv-card .dc-name { font-size: var(--fs-xl); }
#main.dens-ferah .deliv-card .dc-acts { margin-top: var(--sp-4); }
#main .deliv-card.sel { border-color: var(--accent2, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent2, var(--accent)) 40%, transparent); }
#main .dc-check.on { background: var(--accent2, var(--accent)); border-color: var(--accent2, var(--accent)); }
#main .kt-ata { background: var(--accent2, var(--accent)); }
#main .kt-row.drop-on { box-shadow: inset 0 0 0 2px var(--accent2, var(--accent)); }
.lay-modal { max-width: 460px; }
.lay-body { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.lay-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.lay-row.col { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
.lay-lbl { font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.lay-sws { display: flex; gap: 8px; }
.lay-sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; padding: 0; cursor: pointer; background: var(--surface); }
.lay-sw .sw { width: 20px; height: 20px; border-radius: 50%; display: block; }
.lay-sw.on { border-color: var(--ink); }
.lay-panels { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 2px; }
.lay-tog { display: flex; align-items: center; gap: 9px; font-size: var(--fs-md); cursor: pointer; }
.lay-tog input { width: 18px; height: 18px; accent-color: var(--accent); }
/* Faz 3 — Tasarım Modu editörü: sıralanabilir görünürlük listesi + rozet ölçeği */
.lay-list { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.lay-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.lay-item .lay-tog { flex: 1; margin: 0; }
.lay-ord { display: inline-flex; gap: 4px; }
.lay-ordb { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-weight: 800; color: var(--ink-2); cursor: pointer; }
.lay-ordb:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.lay-ordb:disabled { opacity: .35; cursor: default; }
.deliv-card .badge { font-size: calc(var(--fs-xs) * var(--badge-scale, 1)); padding: calc(3px * var(--badge-scale, 1)) calc(9px * var(--badge-scale, 1)); }

/* #9/#18 — Uygulamalı eğitim turu (spotlight + tooltip) */
.tour-layer { position: fixed; inset: 0; z-index: 3000; }
.tour-dim { position: absolute; inset: 0; background: rgba(10,20,16,.55); animation: fadeIn var(--t-fast) ease; }
.tour-ring { position: fixed; border-radius: 12px; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(10,20,16,.55); transition: all .25s cubic-bezier(.3,.9,.3,1); pointer-events: none; }
.tour-layer:has(.tour-ring) .tour-dim { display: none; }
.tour-tip { position: fixed; z-index: 3001; width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 18px 18px 16px; animation: modalUp .22s cubic-bezier(.2,.9,.3,1); }
.tour-tip .tour-step { font-size: 11px; font-weight: 800; color: var(--accent-ink); letter-spacing: .05em; }
.tour-tip h3 { font-size: var(--fs-lg); margin: 4px 0 6px; }
.tour-tip p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.tour-tip .tour-acts { display: flex; align-items: center; gap: 8px; margin-top: 14px; }

/* #18 — Kullanım Rehberi (koyu şematik kartlar) */
.guide-modal { max-width: 860px; }
.gd-hero { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 4px 0 16px; border-radius: var(--r-xl);
  background: #10201a; color: #eaf3ee; }
.gd-hero b { display: block; font-size: var(--fs-md); }
.gd-hero span { display: block; font-size: var(--fs-sm); color: #9fc3b3; margin-top: 2px; }
.gd-hero > div { flex: 1; min-width: 0; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 8px; }
.gd-card { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--sh-xs); }
.gd-vis { background: #0f1713; padding: 12px; }
.gd-svg { width: 100%; height: auto; display: block; }
.gd-body { padding: 12px 14px 14px; }
.gd-t { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-md); }
.gd-t .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.gd-body p { font-size: var(--fs-sm); color: var(--ink-2); margin: 4px 0 8px; }
.gd-body ul { margin: 0; padding-left: 16px; }
.gd-body li { font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) { .gd-grid { grid-template-columns: 1fr; } }

@media (max-width: 1180px) {
  /* orta genişlik: iki sipariş sütunu üstte yan yana, sağ panel tam-genişlik altta */
  .courier3 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); overflow-y: auto; }
  .c2-right { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .c2-col, .c2-right { overflow: visible; }
  .c2-col:nth-child(2) { border-right: 0; }
  .c2-colhead { position: static; }
}
@media (max-width: 720px) {
  .courier3 { display: flex; flex-direction: column; } /* dar: hepsi tek sütun */
  .c2-col { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* =====================================================================
   ÖDEME MODALI — FERAH (kullanıcı: "aşırı dağınık sıkışık, ferahlatalım"):
   ortalı büyük tutar, sütun-yöntem kartları, bol boşluk, nefes alan grid.
   ===================================================================== */
.pay-modal { max-width: 600px; }
.pay-total { text-align: center; padding: var(--sp-4) var(--sp-4) var(--sp-5); margin: var(--sp-2) 0 var(--sp-4);
  background: linear-gradient(155deg, var(--accent-softer), var(--surface) 78%); border: 1px solid var(--border); border-radius: var(--r-xl);
  display: block; }
.pay-total .amt { font-size: 42px; margin-top: 4px; }
/* #19 — ödeme yöntem kutuları DAHA KÜÇÜK + ferah: yatay (ikon+etiket), auto-fit (4'e kadar sığar) */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: var(--sp-4); }
.pay-method { flex-direction: row; gap: 8px; min-height: 50px; padding: 10px 12px; font-size: var(--fs-sm); border-radius: var(--r-md); justify-content: center; }
.pay-method .ic { width: 18px; height: 18px; }
.pay-label { margin: var(--sp-4) 0 var(--sp-2); }
.pay-modal .pay-quick-row { margin-bottom: var(--sp-4); }
.pay-modal .split-box, .pay-modal .pay-tip, .pay-modal .pay-disc-toggle { margin-top: var(--sp-4); }
@media (max-width: 520px) { .pay-methods { grid-template-columns: repeat(2, 1fr); } }

/* Sepet (adisyon paneli) — kompakt: özet ve aksiyonlar hep görünür */
.order-head { padding: var(--sp-4) var(--sp-5) var(--sp-3); }
.order-lines { padding: var(--sp-3) var(--sp-4); gap: 8px; }
.oline { padding: 11px 12px; }
.order-summary { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.sum-row { padding: 4px 0; font-size: var(--fs-sm); }
.sum-total { margin-top: var(--sp-3); padding: var(--sp-3) 0 2px; }
.sum-total .val { font-size: var(--fs-2xl); }
.order-actions { margin-top: var(--sp-3); }
.order-actions .btn-lg { min-height: 52px; }

/* Saatlik Yoğunluk Haritası (7 gün × 24 saat) */
.heat-scroll { overflow-x: auto; }
.heat-grid { display: grid; grid-template-columns: 34px repeat(24, minmax(14px, 1fr)); gap: 2px; min-width: 520px; align-items: center; }
.heat-h { font-size: 9.5px; font-weight: 700; color: var(--muted-2); text-align: center; font-variant-numeric: tabular-nums; }
.heat-d { font-size: 10.5px; font-weight: 700; color: var(--muted); padding-right: 4px; }
.heat-c { display: block; height: 19px; border-radius: 3px; transition: transform var(--t-fast); cursor: default; }
.heat-c:hover { transform: scale(1.22); outline: 1.5px solid var(--accent); position: relative; z-index: 2; }
