/* Pascal Sipariş - arayüz
   Tasarım fikri: mutfak fişi. Sipariş ve giriş kartları termal fiş gibi (yırtma çizgisi, fiş numarası).
   Renkler: mürekkep (ink) zemin, kâğıt yüzeyler, sipariş durumları için sinyal renkleri. */

:root {
	--ink: #18222f;
	--ink-2: #243142;
	--ink-3: #34445a;
	--paper: #eef1f4;
	--surface: #ffffff;
	--surface-2: #f6f8fa;
	--line: #d7dde4;
	--line-2: #e6eaef;
	--text: #18222f;
	--muted: #5b6979;
	--faint: #8a96a4;
	--saffron: #f0a202;
	--saffron-ink: #6b4700;
	--go: #1d8656;
	--go-bg: #e3f4ec;
	--stop: #c2412d;
	--stop-bg: #fbe9e6;
	--info: #2b67d6;
	--info-bg: #e6eefc;
	--violet: #6a49d4;
	--focus: #2b67d6;
	--r-s: 6px;
	--r-m: 10px;
	--shadow: 0 1px 2px rgba(24, 34, 47, .06), 0 8px 24px -12px rgba(24, 34, 47, .18);
	--font: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--mono: "JetBrains Mono", Consolas, "Cascadia Mono", monospace;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0f161f;
	--surface: #18222f;
	--surface-2: #1f2b3a;
	--line: #2e3c4e;
	--line-2: #263345;
	--text: #e8edf3;
	--muted: #a3afbd;
	--faint: #7a8797;
	--go-bg: #143627;
	--stop-bg: #3a1c17;
	--info-bg: #172a4d;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	background: var(--paper);
	color: var(--text);
	font: 15px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); padding: 0 16px; }
.boot-err { width: min(380px, 100%); display: grid; gap: 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ düğmeler ve alanlar */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 0 16px; border-radius: var(--r-s);
	border: 1px solid var(--line); background: var(--surface); color: var(--text);
	font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--saffron); border-color: var(--saffron); color: #1c1300; }
.btn.primary:hover { background: var(--ink-2); }
.btn.danger { color: var(--stop); }
.btn.danger:hover { border-color: var(--stop); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 14px; }
.btn.block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--r-s);
	border: 1px solid var(--line); background: var(--surface);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(43, 103, 214, .18); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--stop); }
.field .err { color: var(--stop); font-size: 13px; }
.field .hint { color: var(--faint); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.alert { padding: 10px 14px; border-radius: var(--r-s); margin-bottom: 14px; font-size: 14px; }
.alert.bad { background: var(--stop-bg); color: var(--stop); }
.alert.good { background: var(--go-bg); color: var(--go); }
.alert.info { background: var(--info-bg); color: var(--info); }

/* ------------------------------------------------------------ giriş: fiş */
.login {
	min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
	background:
		radial-gradient(circle at 20% 15%, rgba(240, 162, 2, .10), transparent 40%),
		var(--ink);
}
.ticket {
	--edge: 9px;
	position: relative; width: min(400px, 100%); background: #fff; color: #18222f;
	padding: 34px 30px 30px;
	/* üst ve alt yırtma dişleri */
	-webkit-mask:
		radial-gradient(circle var(--edge) at 50% 0, transparent 98%, #000) 0 0 / calc(var(--edge) * 2.4) 51% repeat-x,
		radial-gradient(circle var(--edge) at 50% 100%, transparent 98%, #000) 0 100% / calc(var(--edge) * 2.4) 51% repeat-x;
	mask:
		radial-gradient(circle var(--edge) at 50% 0, transparent 98%, #000) 0 0 / calc(var(--edge) * 2.4) 51% repeat-x,
		radial-gradient(circle var(--edge) at 50% 100%, transparent 98%, #000) 0 100% / calc(var(--edge) * 2.4) 51% repeat-x;
	filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
}
.ticket .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ticket .brand b { font-size: 22px; letter-spacing: -.01em; }
.ticket .stamp { font-family: var(--mono); font-size: 13px; color: #5b6979; display: flex; justify-content: space-between; }
.ticket .tear { border: 0; border-top: 2px dashed #cfd6de; margin: 18px -30px 22px; }
.ticket .field input { background: #fff; color: #18222f; border-color: #cfd6de; }
.ticket .field > span { color: #5b6979; }
.ticket .foot { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: #8a96a4; text-align: center; }
.mark { width: 34px; height: 34px; flex: none; }

/* ------------------------------------------------------------ uygulama kabuğu */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.rail { background: var(--ink); color: #cdd5df; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 800; font-size: 18px; }
.rail .who { margin: 0 12px 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--ink-2); font-size: 13px; line-height: 1.35; }
.rail .who b { display: block; color: #fff; font-size: 14px; }
.rail nav { display: grid; gap: 2px; padding: 6px 10px; overflow: auto; }
.rail nav a {
	display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-s);
	color: #cdd5df; text-decoration: none; font-weight: 600; font-size: 15px;
}
.rail nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.rail nav a:hover { background: var(--ink-2); color: #fff; }
.rail nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.rail nav a[aria-current="page"] svg { opacity: 1; }
.rail nav .sep { height: 1px; background: var(--ink-3); margin: 8px 6px; }
.rail .bottom { margin-top: auto; padding: 12px; display: grid; gap: 6px; }
.rail .bottom .btn { background: transparent; border-color: var(--ink-3); color: #cdd5df; }
.rail .bottom .btn:hover { border-color: #cdd5df; color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
	display: flex; align-items: center; gap: 12px; padding: 14px 28px; min-height: 64px;
	background: var(--surface); border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .menu-btn { display: none; }
.branch-pick { display: flex; align-items: center; gap: 8px; }
.branch-pick select { min-height: 38px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; font-weight: 600; max-width: 220px; }
.page { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }

@media (max-width: 900px) {
	.shell { grid-template-columns: 1fr; }
	.rail { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; }
	.shell.nav-open .rail { transform: none; }
	.shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 20; }
	.top { padding: 10px 16px; }
	.top .menu-btn { display: inline-flex; }
	.page { padding: 16px 16px 40px; }
	.branch-pick select { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ içerik blokları */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.search { min-height: 40px; min-width: 240px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 640px) { .search { min-width: 0; width: 100%; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel > header h2 { margin: 0; font-size: 16px; flex: 1; }
.panel .body { padding: 18px; }
.stack { display: grid; gap: 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink-3); border-radius: var(--r-s); padding: 12px 14px; }
.stat b { display: block; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.warn { border-left-color: var(--saffron); }
.stat.bad { border-left-color: var(--stop); }
.stat.good { border-left-color: var(--go); }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--surface-2); }
table.list .num { font-variant-numeric: tabular-nums; }
table.list .sub { display: block; color: var(--faint); font-size: 13px; }
.code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 760px) {
	table.list thead { display: none; }
	table.list, table.list tbody, table.list tr, table.list td { display: block; width: 100%; }
	table.list tr { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
	table.list td { padding: 2px 0; border: 0; }
	table.list td[data-l]::before { content: attr(data-l) ": "; color: var(--faint); font-size: 13px; }
}

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good { color: var(--go); background: var(--go-bg); border-color: transparent; }
.pill.bad { color: var(--stop); background: var(--stop-bg); border-color: transparent; }
.pill.warn { color: var(--saffron-ink); background: #fdf1d6; border-color: transparent; }
:root[data-theme="dark"] .pill.warn { color: var(--saffron); background: #3b2c08; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ------------------------------------------------------------ yan çekmece (form) */
.drawer-back { position: fixed; inset: 0; background: rgba(15, 22, 31, .45); z-index: 40; display: flex; justify-content: flex-end; }
.drawer {
	width: min(520px, 100%); height: 100%; background: var(--surface); display: flex; flex-direction: column;
	box-shadow: -12px 0 40px rgba(0, 0, 0, .2); animation: slidein .18s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer > header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer > header h2 { margin: 0; font-size: 18px; flex: 1; }
.drawer .body { padding: 20px; overflow: auto; flex: 1; }
.drawer > footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.drawer h3 { font-size: 14px; color: var(--muted); margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.drawer h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 14px; }
.chip input { accent-color: var(--ink); }
.chip:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }

.toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
	background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-s); box-shadow: var(--shadow); font-weight: 600;
}
.toast.bad { background: var(--stop); }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

/* ------------------------------------------------------------ kurulum sayfası */
.setup { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.setup h1 { font-size: 26px; margin: 12px 0 4px; }
.setup .lead { color: var(--muted); margin: 0 0 24px; }
.req { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.req li { display: flex; gap: 10px; align-items: center; }
.req li::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--go-bg); color: var(--go); font-weight: 800; font-size: 13px; }
.req li.no::before { content: "!"; background: var(--stop-bg); color: var(--stop); }
pre.cfg { background: var(--surface-2); border: 1px solid var(--line); padding: 12px; border-radius: var(--r-s); overflow: auto; font-size: 12px; }

/* düzeltmeler: form içi onay kutuları ve düğme simgeleri */
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ============================================================ sipariş ekranı */
.page.wide { max-width: none; }
:root {
	--ch-web: #2b67d6; --ch-telefon: #18222f; --ch-whatsapp: #1fa855; --ch-masa: #8a5a00; --ch-qr: #0f766e; --ch-gelal: #6a49d4;
	--ch-trendyol: #f27a1a; --ch-yemeksepeti: #ea004b; --ch-getir: #5d3ebc; --ch-migros: #ff8300; --ch-diger: #5b6979;
}
:root[data-theme="dark"] { --ch-telefon: #9fb0c4; }

.quickbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; margin-bottom: 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
}
.qitem { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.qitem select { min-height: 34px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); padding: 0 8px; font-weight: 600; color: var(--text); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--go); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch .lbl { color: var(--text); }
.closed-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r-m); background: var(--stop-bg); color: var(--stop); font-weight: 600; }
.closed-banner .btn { margin-left: auto; }
.sound-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r-m); background: #fdf1d6; color: var(--saffron-ink); font-weight: 600; cursor: pointer; border: 0; width: 100%; text-align: left; }
:root[data-theme="dark"] .sound-banner { background: #3b2c08; color: var(--saffron); }
.qspacer { flex: 1; }

.lanes { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.lane { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-m); min-height: 200px; }
.lane > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; position: sticky; top: 0; background: var(--surface-2); border-radius: var(--r-m) var(--r-m) 0 0; z-index: 1; }
.lane > header h2 { margin: 0; font-size: 15px; flex: 1; }
.lane > header .count { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .lane > header .count { background: var(--ink-3); }
.lane .cards { display: grid; gap: 10px; padding: 0 10px 12px; }
.lane .none { color: var(--faint); font-size: 14px; text-align: center; padding: 22px 8px; }
.lane-tabs { display: none; }
@media (max-width: 1100px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.lanes { grid-template-columns: 1fr; }
	.lane-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
	.lane-tabs button { flex: none; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
	.lane-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
	.lane.hidden-m { display: none; }
}

/* fiş kartı */
.tk {
	--ch: var(--ch-diger);
	position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ch);
	border-radius: 4px 4px var(--r-s) var(--r-s); padding: 10px 12px 12px; cursor: pointer;
	box-shadow: 0 1px 0 rgba(24,34,47,.04);
}
.tk:hover { border-color: var(--ink-3); border-top-color: var(--ch); }
.tk:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tk .row1 { display: flex; align-items: baseline; gap: 8px; }
.tk .no { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.tk .ch { font-size: 12px; font-weight: 700; color: var(--ch); }
.tk .age { margin-left: auto; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); padding: 1px 7px; border-radius: 4px; }
.tk .age.warn { background: #fdf1d6; color: var(--saffron-ink); }
.tk .age.late { background: var(--stop); color: #fff; }
:root[data-theme="dark"] .tk .age.warn { background: #3b2c08; color: var(--saffron); }
.tk .cust { font-weight: 700; margin-top: 4px; line-height: 1.3; }
.tk .where { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .items { font-size: 14px; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); line-height: 1.4; color: var(--text); }
.tk .items b { font-variant-numeric: tabular-nums; }
.tk .money { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tk .money .sum { font-weight: 800; font-variant-numeric: tabular-nums; }
.tk .money .pay { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.tk .money .pay.door { background: #fdf1d6; color: var(--saffron-ink); border-color: transparent; }
:root[data-theme="dark"] .tk .money .pay.door { background: #3b2c08; color: var(--saffron); }
.tk .who { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tk .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tk .acts .btn { flex: 1; min-height: 38px; }
.tk.is-new { animation: tkpulse 1.6s ease-in-out 3; }
@keyframes tkpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 162, 2, 0); } 50% { box-shadow: 0 0 0 5px rgba(240, 162, 2, .45); } }
.tk.flag-payment { border-style: dashed; border-top-style: solid; }
.tk .ribbon { display: inline-block; font-size: 12px; font-weight: 700; color: var(--info); margin-top: 6px; }

/* küçük açılır seçim kutusu (süre, kurye) */
.pop { position: fixed; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 10px; min-width: 220px; max-width: calc(100vw - 24px); }
.pop h4 { margin: 2px 4px 8px; font-size: 13px; color: var(--muted); }
.pop .opts { display: grid; gap: 6px; }
.pop .opts.chips6 { grid-template-columns: repeat(3, 1fr); }
.pop .opt { min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-weight: 700; cursor: pointer; padding: 0 10px; text-align: left; display: flex; align-items: center; gap: 8px; }
.pop .opts.chips6 .opt { justify-content: center; }
.pop .opt:hover { border-color: var(--ink); }
.pop .opt small { margin-left: auto; color: var(--faint); font-weight: 600; }

/* sipariş ayrıntısı */
.od-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.od-head .no { font-family: var(--mono); font-weight: 700; font-size: 20px; }
.od-items { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.od-items td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.od-items td.q { width: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.od-items td.p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.od-items small { display: block; color: var(--muted); }
.od-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-variant-numeric: tabular-nums; margin-top: 8px; }
.od-sum .tot { font-weight: 800; font-size: 17px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 14px; }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.timeline small { color: var(--faint); }
.addr-box { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 10px 12px; }
.addr-box .links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* sipariş formu ürün satırları */
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr 70px 100px 36px; gap: 8px; align-items: center; }
.line input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); width: 100%; }
.line .x { min-height: 40px; }
.form-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; padding: 10px 0 0; border-top: 1px dashed var(--line); margin-top: 6px; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; font-weight: 600; font-size: 14px; }
.seg input { accent-color: var(--ink); width: auto; min-height: 0; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }

/* filtre çubuğu */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.filters input, .filters select { min-height: 38px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 0 10px; color: var(--text); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px; }
.secret { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px dashed var(--ink-3); padding: 10px 12px; border-radius: var(--r-s); word-break: break-all; user-select: all; }

/* ============================================================ kurye paneli ve harita */
.cpanel { margin-bottom: 16px; }
.cpanel .cbody { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cmap { height: 340px; background: var(--surface-2); border-right: 1px solid var(--line-2); border-radius: 0 0 0 var(--r-m); overflow: hidden; }
.ctable { max-height: 340px; overflow: auto; }
.cpanel .cbody.map-off { grid-template-columns: 1fr; }
@media (max-width: 900px) { .cpanel .cbody { grid-template-columns: 1fr; } .cmap { height: 260px; border-right: 0; border-radius: 0; } }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--go); }
/* Harita işareti: etiket + altında noktayı gösteren uç (MapLibre: anchor bottom) */
.pin { background: none; border: 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pin::after { content: ""; width: 0; height: 0; border: 6px solid transparent; border-top-color: #fff; margin-top: -1px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.map-err { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 8px 12px; border-radius: var(--r-s); background: var(--info-bg); color: var(--info); font-size: 14px; font-weight: 600; }
.cmap { position: relative; }
.pin span { display: inline-block; white-space: nowrap; padding: 3px 8px; border-radius: 99px; font: 700 12px/1.2 var(--font); color: #fff; background: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; }
.pin.shop span { background: var(--saffron); color: #1c1300; }
.pin.courier span { background: var(--go); }
.pin.courier.stale span { background: var(--faint); }
.pin.dest span { background: var(--info); }
.pin.dest.way span { background: var(--violet); }

/* ============================================================ kurye uygulaması */
.courier-page { max-width: 640px; }
.kbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 12px; }
.gps { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: auto; }
.gps.ok { color: var(--go); }
.gps.denied, .gps.error { color: var(--stop); }
.ktabs { display: flex !important; }
.kcard { cursor: default; margin-bottom: 12px; }
.kcard .addr { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.kcard .acts .btn { min-height: 44px; }
.kcard .acts .btn.small { min-height: 36px; flex: 1 1 auto; }
.btn.big { min-height: 54px !important; font-size: 17px; }
.seg.col { flex-direction: column; }
.seg.col label { min-height: 44px; }

/* platform ışıkları ve bildirim hatası */
.light { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.light::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.light.ok::before { background: var(--go); }
.light.warn::before { background: var(--saffron); }
.light.err { border-color: var(--stop); color: var(--stop); }
.light.err::before { background: var(--stop); }
/* Platformlar düğmesi (ışıklar) ve menüsü */
.plat-btn { gap: 6px; padding: 0 8px 0 6px; flex-wrap: wrap; height: auto; min-height: 40px; }
.plat-btn .plat-lbl { padding: 0 4px; }
.light.closed { text-decoration: none; background: var(--surface-2); color: var(--muted); }
.light.closed::before { background: var(--stop); }
.light em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--stop); }
.plat-rows { display: grid; gap: 12px; }
.plat-row { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; display: grid; gap: 8px; }
.plat-head { display: flex; align-items: center; gap: 10px; }
.plat-head .light { font-size: 15px; padding: 5px 12px; }
.plat-head .grow { flex: 1; }
.plat-until { font-size: 14px; color: var(--muted); }
.plat-msg { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plat-msg.good { color: var(--go); }
.plat-msg.bad { color: var(--stop); font-weight: 600; }
.plat-msg.info { color: var(--muted); }
.plat-close { display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.plat-close > span { font-weight: 600; font-size: 14px; }
.plat-close .chip { background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; }
.plat-close .chip:hover { border-color: var(--stop); color: var(--stop); }
.plat-close .btn.ghost { justify-self: start; }
.sync-fail { margin-top: 8px; padding: 6px 8px; border-radius: var(--r-s); background: var(--stop-bg); color: var(--stop); font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bad-t { color: var(--stop); }
details > summary { cursor: pointer; }

/* ------------------------------------------------------------ telefon uygulaması (PWA) */
.muted { color: var(--muted); }

/* Şifre göster/gizle */
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw-eye {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	min-height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: transparent;
	color: #5b6979; font-size: 14px; font-weight: 600; cursor: pointer;
}
.pw-eye:hover { background: #eef1f4; color: #18222f; }
.pw-eye:focus-visible { outline: 2px solid var(--focus); }

/* Giriş ekranının altındaki yükleme çağrısı: fişin dışında, mürekkep zeminde */
.login { align-content: center; gap: 18px; }
.install-cta { width: min(400px, 100%); display: grid; gap: 8px; text-align: center; color: #cdd5df; font-size: 14px; }
.btn.ghost-light { background: transparent; color: #fff; border: 1px dashed rgba(255, 255, 255, .45); min-height: 46px; }
.btn.ghost-light:hover { border-color: var(--saffron); color: var(--saffron); }

/* Kabuktaki ince öneri şeridi (yalnızca telefonda, yüklü değilken) */
.install-bar {
	display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px;
	background: var(--ink); color: #fff; font-size: 14px; line-height: 1.3;
}
.install-bar > svg { width: 20px; height: 20px; flex: none; color: var(--saffron); }
.install-bar > span { flex: 1; min-width: 0; }
.install-bar .btn.ghost { color: #cdd5df; min-width: 36px; justify-content: center; }
.install-bar .btn.primary, :root[data-theme="dark"] .install-bar .btn.primary { background: var(--saffron); border-color: var(--saffron); color: #18222f; }
.install-bar .btn.primary:hover { background: #ffb31a; }

/* Alttan açılan anlatım kartı */
.sheet-back { position: fixed; inset: 0; z-index: 70; background: rgba(15, 22, 31, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
	width: min(480px, 100%); background: var(--surface); color: var(--text);
	border-radius: 16px 16px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
	box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); animation: sheetup .2s ease-out;
}
@keyframes sheetup { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 14px; font-size: 19px; }
.steps { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 26px 40px 1fr; align-items: center; gap: 10px; }
.steps li::before {
	content: counter(st); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
	background: var(--saffron); color: #18222f; font-weight: 800; font-size: 14px;
}
.steps .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--info); }
.steps .ico svg { width: 22px; height: 22px; }
.steps .ico .mark { width: 26px; height: 26px; }
.sheet .note { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 16px; padding-bottom: 20px; } }

.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
a.btn { text-decoration: none; }

/* Telefonda iOS'un yazı alanına odaklanınca ekranı büyütmesini önler (16px altı yakınlaştırır) */
@media (max-width: 900px) {
	.field input, .field select, .field textarea, .search, .branch-pick select { font-size: 16px; }
}

/* Çentik / ana ekran çubuğu: uygulama tam ekran açıldığında içerik altında kalmasın */
.login { padding-top: max(32px, env(safe-area-inset-top)); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.top {
	padding-top: calc(10px + env(safe-area-inset-top));
	/* durum çubuğu (saat, pil) beyaz yazılı: arkası mürekkep rengi */
	background: linear-gradient(var(--ink) 0 env(safe-area-inset-top), var(--surface) 0);
	padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
@media (min-width: 901px) { .top { padding: calc(14px + env(safe-area-inset-top)) 28px 14px; } }
.rail { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.page { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.drawer { padding-top: env(safe-area-inset-top); }
.drawer > footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (display-mode: standalone) {
	/* uygulamada metin seçimi ve uzun basma menüsü düğmelerde çıkmasın */
	.btn, .rail nav a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
	html { -webkit-tap-highlight-color: transparent; }
	/* sayfa kayınca da saat/pil alanının arkası koyu kalsın */
	body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--ink); z-index: 80; pointer-events: none; }
}

/* ============================================================ menü */
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; overflow-x: auto; }
.tabbar a { padding: 10px 14px; color: var(--muted); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabbar a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--saffron); }
.tabbar a:hover { color: var(--text); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.cat { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cat i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat[aria-pressed="true"] i { color: var(--saffron); }
:root[data-theme="dark"] .cat[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: #1c1300; }
:root[data-theme="dark"] .cat[aria-pressed="true"] i { color: #1c1300; }

.pgroup { margin-bottom: 22px; }
.pgroup h2 { font-size: 15px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.pgroup h2 i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.plist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.prow { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) 150px 190px 130px auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.prow:last-child { border-bottom: 0; }
.prow.closed .pinfo b, .prow.closed .pprice { color: var(--muted); }
.prow.closed .thumb { filter: grayscale(1); opacity: .6; }
.pick { display: grid; place-items: center; cursor: pointer; }
.pick input { width: 18px; height: 18px; accent-color: var(--ink); }
.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.thumb.sm { width: 40px; height: 40px; border-radius: 6px; }
.empty-thumb { display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--faint); border: 1px dashed var(--line); }
.thumb.sm.empty-thumb { font-size: 15px; }
.pinfo { min-width: 0; cursor: pointer; display: grid; gap: 2px; }
.pinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptags { display: flex; flex-wrap: wrap; gap: 4px; }
.ptags em { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.ptags em.alg { background: #fdf1d6; color: var(--saffron-ink); }
.fav { color: var(--saffron); }
.pprice { font-family: var(--mono); font-size: 14px; font-weight: 700; display: grid; }
.pprice small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pch { display: flex; gap: 4px; }
.chtog { border: 1px solid var(--line); background: var(--surface); color: var(--faint); border-radius: var(--r-s); padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: line-through; }
.chtog.on { color: var(--go); border-color: var(--go); background: var(--go-bg); text-decoration: none; }
.pstock { display: grid; gap: 2px; }
.pstock small { color: var(--stop); font-size: 12px; font-weight: 600; }
.prow.closed .pstock .lbl { color: var(--stop); font-weight: 700; }
@media (max-width: 1100px) {
	.prow { grid-template-columns: 28px 56px minmax(0, 1fr) auto; grid-template-areas: "pick img info edit" "pick img price stock" "pick img ch ch"; row-gap: 6px; }
	.prow .pick { grid-area: pick; } .prow .thumb { grid-area: img; } .prow .pinfo { grid-area: info; } .prow .pprice { grid-area: price; }
	.prow .pch { grid-area: ch; } .prow .pstock { grid-area: stock; justify-self: end; } .prow [data-edit] { grid-area: edit; justify-self: end; }
	.pinfo b, .pinfo .sub { white-space: normal; }
}

.bulkbar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--r-m); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); }
.bulkbar b { margin-right: 6px; }
.bulkbar .grow { flex: 1; }
.bulkbar .btn { background: var(--ink-2); border-color: var(--ink-3); color: #fff; }
.bulkbar .btn:hover { border-color: var(--saffron); }
.bulkbar .btn.danger { color: #ffb4a8; }
.bulkbar .btn.ghost { background: transparent; border-color: transparent; color: #cdd5df; }

.close-pop { display: grid; gap: 10px; max-width: 340px; }
.close-pop b { font-size: 14px; }
.close-pop .chip { background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; }
.close-pop .chip:hover, .close-pop .chip:focus-visible { border-color: var(--ink); }

.img-pick { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.img-pick > div:last-child { display: grid; gap: 6px; justify-items: start; }
.img-prev { width: 112px; height: 112px; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--faint); font-size: 13px; flex: none; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
label.btn { cursor: pointer; }

.grp .chips .chip { cursor: default; }
.gline { grid-template-columns: 1fr 110px 36px; }
.pacc { margin-bottom: 16px; }
.pacc select { min-height: 36px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); padding: 0 8px; max-width: 260px; width: 100%; font: inherit; }

/* Ürün aç/kapa çekmecesi (sipariş ekranı) */
.sd-tools { margin-bottom: 4px; }
.sd-tools .search { flex: 1; min-width: 0; }
.sd-list { display: grid; gap: 6px; }
.sd-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r-s); }
.sd-row.closed { background: var(--stop-bg); border-color: transparent; }
.sd-row.closed .thumb { filter: grayscale(1); opacity: .6; }
.sd-name { font-weight: 600; display: grid; }
.sd-name small { color: var(--stop); font-weight: 600; font-size: 12px; }
.sd-row.closed .lbl { color: var(--stop); font-weight: 700; }

/* Elle siparişte menüden seçme */
.mpick { display: grid; gap: 8px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
.mpick .search { width: 100%; min-width: 0; }
.mp-fav, .mp-res { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-fav:empty { display: none; }
.mp-item { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--r-s); padding: 6px 10px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; }
.mp-item i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mp-item:hover { border-color: var(--ink); }
.mp-item.off { opacity: .55; cursor: not-allowed; text-decoration: line-through; }
.mp-opts { display: grid; gap: 10px; width: 100%; }
.mp-opts fieldset { border: 0; padding: 0; margin: 0; }
.mp-opts legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.mp-opts legend small { color: var(--muted); font-weight: 500; }
.mp-act { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.mp-err { flex: 1; font-size: 13px; }
.line-opt { grid-column: 1 / -1; margin-top: -4px; color: var(--muted); font-size: 13px; }

.pacc-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.pacc-tools .search { min-width: 220px; }
.pacc header { flex-wrap: wrap; }

/* ---------------------------------------------------------------- v0.7: QR menü, hızlı fiyat, masa çağrıları */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.tabrow { display: flex; align-items: flex-end; gap: 12px; margin: -4px 0 18px; border-bottom: 1px solid var(--line); }
.tabrow .tabbar { border-bottom: 0; margin: 0; flex: 1; min-width: 0; }
.tabrow > .btn { margin-bottom: 6px; flex: none; }

.drawer.wide { width: min(860px, 100%); }
.qp-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; position: sticky; top: -20px; background: var(--surface); padding: 8px 0; z-index: 1; }
.qp-tools .search { flex: 1; min-width: 160px; }
.qp-tools select { min-height: 40px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 0 10px; color: var(--text); font: inherit; }
.qp-count { font-weight: 700; color: var(--saffron-ink); font-size: 14px; }
.qp { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.qp-row { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(3, 104px); gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line-2); margin: 0; }
.qp-row:first-child { border-top: 0; }
.qp-head { background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 10px; }
.qp-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.qp-name small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; }
.qp input { width: 100%; text-align: right; font-variant-numeric: tabular-nums; padding: 7px 8px; }
.qp input::placeholder { color: var(--faint); font-style: italic; }
.qp input.chg { border-color: var(--saffron); background: #fff8e6; }
.qp input.bad { border-color: var(--stop); background: var(--stop-bg); }
.qp-row.chg { background: #fffcf3; }
.qp-row.bad { background: var(--stop-bg); }
.qp-row .err { grid-column: 1 / -1; }
@media (max-width: 600px) { .qp-row { grid-template-columns: 1fr 1fr 1fr; } .qp-name { grid-column: 1 / -1; } .qp-head span:first-child { display: none; } }
:root[data-theme="dark"] .qp input.chg, :root[data-theme="dark"] .qp-row.chg { background: #3a2f12; }
:root[data-theme="dark"] .call { background: #12332f; color: #9fe3d8; }
:root[data-theme="dark"] .call.hesap { background: #3a2f12; color: #f6d27a; }

.qr-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 860px) { .qr-top { grid-template-columns: 1fr; } }
.qr-top .switch { margin-top: 4px; }
.qr-top .hint { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.qr-top .switch + .hint { margin-left: 52px; }
.tcount { color: var(--muted); font-weight: 600; font-size: 15px; margin-left: 4px; }
.qr-stat { font-size: 15px; line-height: 1.7; margin-top: 0; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tcard { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.tcard.off { opacity: .6; }
.tqr { background: #fff; border-radius: var(--r-s); padding: 6px; aspect-ratio: 1; width: 100%; max-width: 160px; margin: 0 auto; }
.tqr svg { width: 100%; height: 100%; display: block; }
.tinfo b { font-size: 17px; display: block; }
.tact { display: flex; flex-wrap: wrap; gap: 6px; }
.steps-list { padding-left: 20px; line-height: 1.55; }
.steps-list li { margin-bottom: 10px; }

.calls { display: grid; gap: 8px; margin-bottom: 14px; }
.call { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-m); background: #e3f2ef; color: #0b5952; border-left: 5px solid var(--ch-qr); font-weight: 600; animation: callin .4s ease-out; }
.call.hesap { background: #fff3d6; color: var(--saffron-ink); border-left-color: var(--saffron); }
.call b { font-size: 17px; }
.call time { font-family: var(--mono); font-size: 13px; opacity: .8; }
.call .btn { margin-left: auto; }
@keyframes callin { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .call { animation: none; } }

/* ---------------------------------------------------------------- v0.8: raporlar */
.rep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.rep-presets .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .rep-presets .chip[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.rep-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rep-dates label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.rep-dates input, #rBranch, #zDay { min-height: 38px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 0 10px; color: var(--text); font: inherit; }
.rep-range { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--info); font: inherit; text-decoration: underline; cursor: pointer; }

.kpis { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.kpi > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi.main { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.main > span { color: #aeb8c4; }
.kpi.main b { font-size: 28px; color: var(--saffron); }
.kpi.main .dl { color: #cdd5df; }
.kpi.main .dl.up { color: #6fd8a4; }
.kpi.main .dl.down { color: #ff9c8a; }
.dl { font-size: 13px; color: var(--faint); font-weight: 600; }
.dl.up { color: var(--go); }
.dl.down { color: var(--stop); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpi.main { grid-column: span 3; } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi.main { grid-column: span 2; } .kpi b { font-size: 18px; } }
.kpi-mini { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); }
.kpi-mini div { display: flex; gap: 6px; align-items: baseline; }
.kpi-mini dt { color: var(--muted); font-size: 13px; }
.kpi-mini dd { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 700; }

.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rep-grid .span2 { grid-column: span 2; }
@media (max-width: 1100px) { .rep-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .rep-grid { grid-template-columns: 1fr; } .rep-grid .span2 { grid-column: auto; } }
svg.chart { width: 100%; height: 200px; display: block; overflow: visible; }
svg.chart .bar { fill: var(--saffron); }
svg.chart g:hover .bar { fill: #c98700; }
svg.chart .base { stroke: var(--line); }
svg.chart .ax { font: 10px var(--font); fill: var(--muted); }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.times dt { font-size: 13px; color: var(--muted); }
.times dd { margin: 0; font-family: var(--mono); font-size: 20px; font-weight: 700; }
.hbars { display: grid; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.hl { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ht { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.ht i { display: block; height: 100%; background: var(--saffron); border-radius: 99px; }
.hv { font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; }
.hv small { display: block; font-family: var(--font); font-weight: 500; color: var(--faint); font-size: 12px; }
ol.top { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 8px; }
ol.top li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: baseline; counter-increment: t; font-size: 14px; }
ol.top li::before { content: counter(t); color: var(--faint); font-family: var(--mono); font-size: 12px; }
ol.top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.top li small { color: var(--faint); font-family: var(--mono); min-width: 64px; text-align: right; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 11px; }
.heat .hx { color: var(--faint); text-align: left; }
.heat .hy { color: var(--muted); font-weight: 600; align-self: center; }
.heat .hc { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); position: relative; }
.heat .hc::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--ink); opacity: var(--a); }
:root[data-theme="dark"] .heat .hc::after { background: var(--saffron); }
ul.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
ul.reasons li { display: flex; justify-content: space-between; gap: 10px; }
table.rep-t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rep-t th.n { text-align: right; }
table.rep-t tfoot td { font-weight: 700; border-top: 2px solid var(--line); background: var(--surface-2); }
table.rep-t tr.warnrow td { background: #fff7e0; }
table.rep-t .due { color: var(--stop); font-family: var(--mono); }
table.rep-t .ok { color: var(--go); font-weight: 600; }
.share { display: inline-block; min-width: 64px; background: linear-gradient(90deg, rgba(240, 162, 2, .3) var(--w), transparent var(--w)); border-radius: 3px; padding: 0 4px; }
@media (max-width: 760px) { table.rep-t .n { text-align: left; } table.rep-t tfoot { display: none; } }

.zslip { max-width: 420px; margin: 0 auto; background: #fff; color: #000; border: 1px solid var(--line); border-radius: 4px; padding: 22px 20px; font: 13px/1.45 var(--mono); box-shadow: var(--shadow); }
.zslip .zh { text-align: center; display: grid; gap: 2px; margin-bottom: 10px; }
.zslip .zh b { font-size: 16px; }
.zslip .zh small { color: #555; }
.zslip .zt { font-weight: 800; margin: 12px 0 4px; border-bottom: 1px dashed #000; padding-bottom: 2px; }
.zslip .zr { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.zslip .zr span:last-child { white-space: nowrap; }
.zslip .zr.big { font-weight: 800; font-size: 15px; }
.zslip .zr.due { font-weight: 700; color: #a11; }
.zslip .zwarn { border: 1px solid #000; padding: 4px 6px; margin: 6px 0; font-weight: 700; }
.zslip .zf { margin-top: 14px; text-align: center; font-size: 12px; color: #444; }

/* Sipariş listesi görünümü */
.vseg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vseg button { border: 0; background: var(--surface); color: var(--muted); padding: 0 14px; min-height: 40px; font-weight: 600; cursor: pointer; }
.vseg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vpop { position: relative; display: inline-block; }
.iconbtn { width: 44px; padding: 0; display: inline-grid; place-items: center; }
.vscrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: transparent; border: 0; padding: 0; z-index: 50; cursor: default; }
.vpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 460px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(24, 34, 47, .18); text-align: left; }
.vph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.vph h3 { margin: 0; font-size: 15px; }
.vopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.vopt { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.vopt input { width: 20px; height: 20px; }
.vfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.olist-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.olist { min-width: 900px; }
.lhead, .lrow { display: grid; gap: 12px; align-items: center; padding: 0 14px; }
.lhead { height: 38px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lrow { min-height: 68px; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); border-left: 5px solid var(--ch, var(--line)); font-size: 14px; cursor: pointer; background: var(--surface); }
.lrow:hover { background: var(--surface-2); }
.lrow.is-new { background: rgba(240, 162, 2, .14); }
.lrow.flag-payment { background: var(--stop-bg); }
.lc small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc.lch { font-weight: 700; font-size: 13px; line-height: 1.2; color: var(--ch, var(--text)); }
.lc.pay.door { color: var(--go); font-weight: 700; }
.lrow .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.lgrp { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.lgrp h2 { margin: 0; font-size: 15px; }
.lgrp .count { background: var(--ink); color: #fff; border-radius: 99px; padding: 1px 9px; font-size: 13px; font-weight: 700; }
.stbadge { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 700; background: var(--surface-2); }
.st-new { background: #fff1cc; color: #6b4700; }
.st-preparing { background: #e6eefc; color: #1f4fb0; }
.st-ready, .st-assigned { background: #ece8fb; color: #4b32a8; }
.st-on_way { background: var(--go-bg); color: #146c45; }
.st-payment { background: var(--stop-bg); color: var(--stop); }
@media (max-width: 720px) {
	.lhead { display: none; }
	.olist { min-width: 0; }
	.lrow { display: flex; flex-wrap: wrap; gap: 6px 12px; }
	.lrow .lc { flex: 1 1 40%; }
	.lrow .acts { flex: 1 1 100%; justify-content: flex-start; }
}

.dz-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 6px; }
.maplink { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 600; min-height: 24px; }
@media (max-width: 720px) { .dz-row { grid-template-columns: 1fr 1fr; } }

#bRing:empty { display: none; }
#bRing { display: grid; gap: 8px; margin-bottom: 10px; }
.ring { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); border-left: 6px solid var(--go); background: var(--surface); }
.ring small { display: block; color: var(--muted); font-size: 13px; }
.ring-ring { border-left-color: var(--saffron, #f0a202); background: rgba(240, 162, 2, .14); animation: ringpulse 1.2s ease-in-out infinite; }
.ring-missed { border-left-color: var(--stop, #c2412d); }
.ring-acts { display: flex; gap: 8px; }
@keyframes ringpulse { 50% { box-shadow: 0 0 0 4px rgba(240, 162, 2, .25); } }
@media (prefers-reduced-motion: reduce) { .ring-ring { animation: none; } }
.cid-hist > div { display: grid; grid-template-columns: 110px 140px 1fr 90px; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
@media (max-width: 720px) { .cid-hist > div { grid-template-columns: 1fr 1fr; } }

.sortbtns { display: grid; grid-template-columns: repeat(2, 44px); gap: 4px; flex: none; }
.sortbtns .btn { min-width: 44px; min-height: 44px; padding: 0; }
.prow[draggable="true"] { cursor: grab; }
.catsort { margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.catsort .hint { display: block; margin: 4px 0 8px; }
.catrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-2); cursor: grab; }
.catrow .cn { flex: 1; font-weight: 600; }
.catrow .grip { color: var(--muted); font-size: 18px; }
.catrow .btn { min-width: 44px; min-height: 44px; padding: 0; }


/* WhatsApp sohbet kutusu */
.navbadge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--stop, #c2412d); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.navbadge[hidden] { display: none; }
#waBanner { position: fixed; right: 16px; bottom: 16px; z-index: 90; max-width: min(380px, calc(100vw - 32px)); }
.wab { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 10px; background: var(--ink, #18222f); color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); }
.wab-t { flex: 1; min-width: 0; display: grid; }
.wab-t span { opacity: .9; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wab .btn { min-height: 44px; }
.wachat { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 150px); min-height: 480px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.wa-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: var(--surface-2); }
.wa-tools { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.wa-tools input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--text); }
.wa-rows { overflow-y: auto; flex: 1; }
.wa-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; min-height: 64px; }
.wa-row:hover, .wa-row.on { background: var(--surface); }
.wa-row.on { box-shadow: inset 4px 0 0 var(--saffron, #f0a202); }
.wa-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink, #18222f); color: #fff; font-weight: 700; }
.wa-rt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wa-rn, .wa-rl { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; }
.wa-rn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-rn small { color: var(--muted); flex: none; }
.wa-rl > span:first-child { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-un { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--go, #1d8656); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.wa-empty { padding: 20px 14px; color: var(--muted); font-size: 14px; }
.wa-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #efeae2; }
.wa-none { margin: auto; color: var(--muted); }
.wa-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.wa-hi { flex: 1; min-width: 0; display: grid; }
.wa-hi small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-ha { display: flex; gap: 8px; }
.wa-back { display: none; }
.wa-win { padding: 6px 14px; font-size: 13px; background: #e3f4ec; color: #146c45; }
.wa-win.closed { background: #fff1cc; color: #6b4700; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.wa-day { text-align: center; margin: 8px 0; }
.wa-day span { display: inline-block; padding: 2px 12px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: var(--muted); font-size: 12px; }
.wa-msg { max-width: min(560px, 82%); padding: 8px 12px; border-radius: 10px; background: #fff; align-self: flex-start; word-break: break-word; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); color: #18222f; }
.wa-msg.out { background: #d9fdd3; align-self: flex-end; }
.wa-who { display: block; font-size: 12px; font-weight: 700; color: #5b6979; }
.wa-body { white-space: pre-wrap; }
.wa-body a { color: #1f4fb0; }
.wa-meta { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; color: #5b6979; margin-top: 2px; }
.wa-tk.read { color: #1f6feb; }
.wa-tk.bad { color: #b3261e; font-weight: 700; }
.wa-quick { display: flex; gap: 6px; padding: 6px 12px 0; overflow-x: auto; background: var(--surface); }
.wa-chip { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.wa-comp { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: var(--surface); }
.wa-comp textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: none; background: var(--surface); color: var(--text); }
@media (max-width: 900px) {
	.wachat { grid-template-columns: 1fr; height: calc(100vh - 130px); }
	.wa-main { display: none; }
	.wachat.wa-open .wa-list { display: none; }
	.wachat.wa-open .wa-main { display: flex; }
	.wa-back { display: inline-block; }
	.wa-ha .btn { padding: 0 10px; }
}

.diag { list-style: none; margin: 0 0 8px; padding: 0; }
.diag li { padding: 4px 0; font-weight: 600; }
.diag li.ok, .diag-h .ok { color: #146c45; }
.diag li.bad, .diag-h .bad { color: #b3261e; }
.diag-h > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }

/* Uyarılar */
#sndBanner { position: fixed; left: 16px; bottom: 16px; z-index: 95; min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: #b3261e; color: #fff; font: 700 15px inherit; box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; }
#netBanner { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 16px; font-size: 15px; }
#netBanner.net-bad { background: #b3261e; color: #fff; }
#netBanner.net-ok { background: #146c45; color: #fff; }
.cron-warn { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 14px; border-radius: 8px; background: #fff1cc; color: #6b4700; font-size: 14px; }
.tones { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; padding: 8px 12px; }
.tone { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top .top-logout { display: none; }
/* Android/PWA: yan menü kısa ekranda kaydırılır, çıkış düğmesi hep erişilebilir */
.rail { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) {
	.rail { height: 100vh; height: 100dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.rail .bottom { position: sticky; bottom: 0; background: var(--ink, #18222f); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
	.top .top-logout { display: inline-flex; margin-left: auto; }
}

/* ---------------------------------------------------------------- 0.9.7: program modülleri */
.modtabs { margin-bottom: 14px; }
.modtabs .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mod { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); cursor: pointer; }
.mod .switch { flex: none; margin-top: 2px; }
.mod > input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.mod-t b { display: block; }
.mod-t small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; margin-top: 2px; }
.mod.locked { opacity: .55; cursor: not-allowed; }
.tablewrap { overflow-x: auto; }
table.perms th.c, table.perms td.c { text-align: center; width: 110px; }
table.perms td.c input { width: 20px; height: 20px; accent-color: var(--ink); }
table.perms td.na { color: var(--faint); }
table.perms tr.grp th { background: var(--surface-2); font-size: 13px; color: var(--muted); text-align: left; padding-top: 10px; }
table.perms tr.off td { opacity: .55; }
table.perms .chg { color: var(--saffron); font-style: normal; font-size: 10px; margin-left: 4px; vertical-align: top; }
.prm-u .seg label { padding: 5px 10px; }
@media (max-width: 760px) { table.perms td.c { display: inline-block; width: auto; padding: 4px 10px 4px 0 !important; } table.perms td.c::before { content: attr(data-l) ": "; } }

/* Platform bilgi satırı (Migros kuryesi) ve Migros onay geri sayımı */
.plat-info { margin-top: 6px; font-size: 13px; color: var(--ch-migros, var(--muted)); font-weight: 600; }
.approve-left { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.approve-left.warn { color: var(--saffron-ink); }
:root[data-theme="dark"] .approve-left.warn { color: var(--saffron); }
.approve-left.late { color: var(--stop); }
.alert.warn { background: #fdf1d6; color: var(--saffron-ink); }
:root[data-theme="dark"] .alert.warn { background: #3b2c08; color: var(--saffron); }
/* İki adımlı doğrulama */
.tfa-steps { padding-left: 20px; margin: 0 0 12px; }
.tfa-steps li { margin-bottom: 10px; }
.tfa-qr { width: 196px; height: 196px; margin: 10px 0 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 0; list-style: none; margin: 8px 0 14px; }
.tfa-codes li { font-size: 15px; }

/* ------------------------------------------------------------ ana ekran ve masa servisi */
.alert.warn { background: #fdf1d6; color: var(--saffron-ink); }
.alert a { color: inherit; font-weight: 700; }
.dash-day { margin: 0 0 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-cuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dash-cut { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; min-height: 84px; }
.dash-cut:hover { border-color: var(--ink); }
.dash-cut svg { width: 24px; height: 24px; color: var(--info); }
.dash-cut small { color: var(--saffron-ink); font-weight: 700; }
.panel .alert:last-child { margin-bottom: 0; }

.fl-areas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.fl-tab { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.fl-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fl-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 12px; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-m); cursor: pointer; }
.fl-t b { font-size: 20px; }
.fl-st { font-size: 13px; font-weight: 700; color: var(--muted); }
.fl-amt { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fl-meta { font-size: 13px; color: var(--muted); }
.fl-pend { font-style: normal; font-size: 12px; font-weight: 700; color: var(--saffron-ink); background: #fdf1d6; border-radius: 99px; padding: 1px 8px; }
.fl-t.st-busy { border-color: var(--go); background: var(--go-bg); }
.fl-t.st-bill { border-color: var(--saffron); background: #fff3d6; color: #18222f; }
.fl-t.st-bill .fl-st, .fl-t.st-bill .fl-meta { color: var(--saffron-ink); }
.fl-t.st-call { border-color: var(--stop); background: var(--stop-bg); animation: callin .4s ease-out; }
.fl-t.st-call .fl-st { color: var(--stop); }

.drawer.ck { width: min(560px, 100%); }
.ck-sum { margin: 0 0 12px; color: var(--muted); }
.ck-h { font-size: 14px; color: var(--muted); margin: 16px 0 8px; }
.ck-h small { font-weight: 500; color: var(--faint); }
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ck-it { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.ck-it.sent { background: var(--surface-2); }
.ck-it.comp .ck-p { color: var(--go); font-weight: 700; }
.ck-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck-n small { color: var(--muted); font-size: 13px; }
.ck-n .ck-note { color: var(--saffron-ink); }
.ck-q { display: inline-flex; align-items: center; gap: 4px; }
.ck-q button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; }
.ck-q span { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-p { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.ck-pq { width: 70px; min-height: 40px; text-align: center; }
.ck-void { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.ck-tot { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ck-tot dt { color: var(--muted); }
.ck-tot dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ck-tot .due { font-size: 20px; font-weight: 800; color: var(--text); }
.ck-due { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-s); background: var(--surface-2); }
.ck-due b { font-size: 24px; }
.ck-acts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ck-acts .btn { flex: 1 1 auto; min-height: 44px; }
.ck-grp { border: 1px solid var(--line); border-radius: var(--r-s); margin: 0 0 12px; padding: 8px 12px 12px; }
.ck-grp legend { font-weight: 700; padding: 0 6px; }
.ck-grp legend small { color: var(--muted); font-weight: 500; }
.drawer.ck > footer { flex-wrap: wrap; }
.fl-cats { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; padding-bottom: 4px; }
.fl-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.fl-p { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-height: 74px; padding: 10px; text-align: left; font: inherit; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; }
.fl-p:hover { border-color: var(--ink); }
.fl-p i { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.fl-p em { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font-style: normal; font-size: 13px; line-height: 22px; text-align: center; }
.fl-p.off { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) {
	.drawer.ck { width: 100%; }
	.fl-grid { grid-template-columns: repeat(2, 1fr); }
	.fl-t { min-height: 104px; }
}
