/* Kafem 365 — koyu tema, tablet öncelikli arayüz */
:root {
  --bg: #0d1016;
  --surface: #151922;
  --surface-2: #1c212c;
  --surface-3: #252b38;
  --border: #2a3140;
  --border-strong: #3a4254;
  --text: #e7eaf0;
  --muted: #8d96a8;
  --accent: #6c6cff;
  --accent-hover: #5a5af0;
  --accent-soft: rgba(108, 108, 255, .14);

  --st-free: #22c55e;
  --st-occupied: #ef4444;
  --st-bill: #f59e0b;
  --st-reserved: #3b82f6;
  --st-disabled: #6b7280;

  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--surface-2);
  --bs-primary: var(--accent);
  --bs-primary-rgb: 108, 108, 255;
  --bs-link-color: #9d9dff;
  --bs-link-hover-color: #c3c3ff;
  --bs-body-font-family: var(--font);
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-emphasis-color: #fff;
}

html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 15px; -webkit-tap-highlight-color: transparent; }
.num, .money { font-variant-numeric: tabular-nums; }
.text-muted, .muted { color: var(--muted) !important; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bootstrap bileşen ayarları */
.btn { border-radius: var(--radius-sm); font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover); --bs-btn-active-bg: var(--accent-hover); --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); }
.btn-soft { background: var(--surface-3); border: 1px solid var(--border); color: var(--text); }
.btn-soft:hover, .btn-soft:focus { background: #2e3545; color: #fff; border-color: var(--border-strong); }
.btn-soft.active { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.btn-lg { padding: .7rem 1.1rem; font-size: 1rem; }
.form-control, .form-select { background-color: var(--surface-2); border-color: var(--border); color: var(--text); border-radius: var(--radius-sm); min-height: 44px; }
.form-control:focus, .form-select:focus { background-color: var(--surface-2); border-color: var(--accent); box-shadow: 0 0 0 .2rem var(--accent-soft); color: var(--text); }
.form-control::placeholder { color: #5f6779; }
.form-label { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.form-check-input { width: 1.2em; height: 1.2em; background-color: var(--surface-3); border-color: var(--border-strong); }
.form-switch .form-check-input { width: 2.4em; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--border); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); --bs-table-hover-bg: var(--surface-2); --bs-table-hover-color: var(--text); margin: 0; }
.table > :not(caption) > * > * { padding: .7rem .8rem; vertical-align: middle; }
.table thead th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; border-bottom-width: 1px; white-space: nowrap; }
.dropdown-menu { background: var(--surface-2); border-color: var(--border); }
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: var(--surface-3); color: #fff; }
.nav-tabs { border-color: var(--border); }
.nav-tabs .nav-link { color: var(--muted); border: none; border-bottom: 2px solid transparent; padding: .7rem 1rem; }
.nav-tabs .nav-link.active { background: transparent; color: #fff; border-bottom-color: var(--accent); }
.badge { font-weight: 500; }

/* ---------------------------------------------------------------- panel düzeni */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.2rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6c6cff, #8b5cf6); display: grid; place-items: center; color: #fff; font-size: 1.05rem; }
.brand-mark-logo { background: #fff; padding: 4px; object-fit: contain; }
.brand-logo { align-self: flex-start; background: #fff; border-radius: 14px; padding: .7rem 1.1rem; line-height: 0; box-shadow: var(--shadow); }
.brand-logo img { display: block; width: 100%; max-width: 360px; height: auto; }
.brand-logo-sm { width: fit-content; margin: 0 auto 1.75rem; padding: .5rem .9rem; }
.brand-logo-sm img { max-width: 252px; }
.brand small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); letter-spacing: 0; }
.nav-group { padding: .4rem .7rem; }
.nav-group-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #5f6779; padding: .6rem .6rem .3rem; }
.nav-link-item { display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; border-radius: var(--radius-sm); color: #b8bfcc; font-weight: 500; }
.nav-link-item i { font-size: 1.1rem; width: 20px; text-align: center; color: var(--muted); }
.nav-link-item:hover { background: var(--surface-2); color: #fff; }
.nav-link-item.active { background: var(--accent-soft); color: #fff; }
.nav-link-item.active i { color: #a5a5ff; }
.nav-cta { margin: .8rem .9rem; }
.sidebar-backdrop { display: none; }
.sidebar-foot { margin-top: auto; padding: .9rem; border-top: 1px solid var(--border); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: .8rem; padding: 0 1.5rem; border-bottom: 1px solid var(--border); background: rgba(13, 16, 22, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.2rem; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.content { padding: 1.5rem; max-width: 1480px; width: 100%; }

.card-x { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-x-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--border); }
.card-x-head h2, .card-x-head h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.card-x-body { padding: 1.15rem; }

.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; }
.kpi-label { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: .4rem; }
.kpi-value { font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.kpi-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; padding: .2rem .6rem; border-radius: 99px; background: var(--surface-3); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-paid { color: var(--ok); } .st-open { color: var(--st-occupied); } .st-bill_requested { color: var(--st-bill); }
.st-cancelled, .st-merged { color: var(--st-disabled); }

.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .6; }

.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.search-input { max-width: 320px; }
.table-wrap { overflow-x: auto; }
.row-actions { white-space: nowrap; text-align: right; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.color-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: middle; }

/* toast */
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 32px)); }
.toast-x { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: .75rem 1rem; box-shadow: var(--shadow); display: flex; gap: .6rem; align-items: flex-start; }
.toast-x.error { border-left-color: var(--danger); }
.toast-x.success { border-left-color: var(--ok); }
.toast-x.warn { border-left-color: var(--warn); }

.net-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; padding: .25rem .6rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.net-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.net-badge.offline .dot { background: var(--danger); }
.net-badge.offline { color: #fca5a5; }

/* ---------------------------------------------------------------- giriş ekranları */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(1200px 600px at 10% 10%, rgba(108,108,255,.22), transparent 60%), radial-gradient(900px 500px at 90% 90%, rgba(139,92,246,.18), transparent 60%), var(--surface); border-right: 1px solid var(--border); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 460px; }
.auth-feat { display: grid; gap: .9rem; max-width: 440px; }
.auth-feat div { display: flex; gap: .8rem; color: #c4cad6; }
.auth-feat i { color: #a5a5ff; font-size: 1.2rem; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- POS */
.pos { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 56px 1fr; overflow: hidden; }
.pos-top { display: flex; align-items: center; gap: .75rem; padding: 0 .9rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.pos-top .brand { padding: 0; font-size: 1rem; }
.pos-top .brand-mark { width: 30px; height: 30px; }
.pos-clock { font-variant-numeric: tabular-nums; font-weight: 600; color: #c8cdd8; }
.pos-top .btn, .pos-top .brand, .pos-clock { white-space: nowrap; }
@media (max-width: 991.98px) { .pos-clock { display: none; } }
.pos-body { display: grid; grid-template-columns: 112px minmax(0, 1fr) 390px; min-height: 0; }

.pos-halls { background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; padding: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.hall-btn { border: 1px solid var(--border); background: var(--surface-2); color: #c8cdd8; border-radius: 10px; padding: .75rem .4rem; font-weight: 600; font-size: .85rem; text-align: center; line-height: 1.2; min-height: 64px; }
.hall-btn small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.hall-btn.active { background: var(--accent-soft); border-color: var(--accent); color: #fff; }

.pos-center { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pos-tables { flex: 0 0 40%; overflow-y: auto; padding: .75rem; border-bottom: 1px solid var(--border); }
.pos-tables.collapsed { flex-basis: 0; padding: 0; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .75rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.tcard { position: relative; border-radius: 12px; padding: .6rem .7rem; min-height: 92px; background: var(--surface-2); border: 1px solid var(--border); border-top: 4px solid var(--st-free); text-align: left; color: var(--text); display: flex; flex-direction: column; justify-content: space-between; }
.tcard:active { transform: scale(.98); }
.tcard .t-no { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.tcard .t-name { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .t-amt { font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tcard .t-time { font-size: .72rem; color: #c8cdd8; font-variant-numeric: tabular-nums; }
.tcard .t-icons { position: absolute; top: .45rem; right: .5rem; font-size: .8rem; display: flex; gap: .25rem; }
.tcard.free { border-top-color: var(--st-free); }
.tcard.occupied { border-top-color: var(--st-occupied); background: linear-gradient(180deg, rgba(239,68,68,.16), var(--surface-2) 70%); }
.tcard.bill { border-top-color: var(--st-bill); background: linear-gradient(180deg, rgba(245,158,11,.2), var(--surface-2) 70%); }
.tcard.reserved { border-top-color: var(--st-reserved); background: linear-gradient(180deg, rgba(59,130,246,.18), var(--surface-2) 70%); }
.tcard.disabled { border-top-color: var(--st-disabled); opacity: .55; }
.tcard.selected { outline: 2px solid #fff; outline-offset: 1px; }
.tcard.new { border: 1px dashed var(--border); align-items: center; justify-content: center; gap: .3rem; color: var(--muted); font-weight: 600; }
.tcard.new i { font-size: 1.4rem; }
.net-badge { cursor: pointer; }
.net-badge.conflict { border-color: var(--danger, #ef4444); color: #fca5a5; }
.tcard.pending::after { content: ""; position: absolute; left: .5rem; bottom: .45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.group-title { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .3rem; }

.pos-products { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pos-cats { display: flex; gap: .45rem; padding: .6rem .75rem; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.pos-cats::-webkit-scrollbar { display: none; }
.cat-btn { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface-2); color: #c8cdd8; border-radius: 10px; padding: .55rem .9rem; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.cat-btn .sw { width: 10px; height: 10px; border-radius: 3px; }
.cat-btn.active { color: #fff; border-color: currentColor; background: var(--surface-3); }
.products-grid { flex: 1; overflow-y: auto; padding: .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); grid-auto-rows: 92px; gap: .55rem; align-content: start; }
.pbtn { border: 1px solid var(--border); border-left: 4px solid var(--c, var(--accent)); background: var(--surface-2); color: var(--text); border-radius: 12px; padding: .55rem .65rem; text-align: left; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.pbtn:active { background: var(--surface-3); transform: scale(.98); }
.pbtn .p-name { font-weight: 600; font-size: .92rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pbtn .p-price { font-weight: 650; color: #c8cdd8; font-variant-numeric: tabular-nums; }
.pbtn .p-stock { position: absolute; right: .5rem; bottom: .5rem; font-size: .7rem; color: var(--muted); }
.pbtn .p-stock.low { color: #fca5a5; }
.pbtn.svc { --c: #a855f7; }
.pbtn.flash { animation: flash .35s ease; }
@keyframes flash { from { background: var(--accent-soft); } to { background: var(--surface-2); } }
.products-disabled { pointer-events: none; opacity: .45; }

.pos-ticket { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.ticket-head { padding: .8rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.ticket-head .t-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.ticket-head .t-meta { font-size: .78rem; color: var(--muted); }
.ticket-lines { flex: 1; overflow-y: auto; }
.tline { display: grid; grid-template-columns: 44px 1fr auto; gap: .5rem; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid rgba(42,49,64,.6); cursor: pointer; }
.tline:hover { background: var(--surface-2); }
.tline .q { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-3); border-radius: 8px; text-align: center; padding: .25rem 0; }
.tline .n { font-weight: 500; line-height: 1.25; }
.tline .n small { display: block; color: var(--muted); font-size: .76rem; }
.tline .a { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tline.void { opacity: .45; }
.tline.void .n, .tline.void .a { text-decoration: line-through; }
.tline.comp .a { color: #86efac; }
.tline.paid .q { background: rgba(34,197,94,.18); color: #86efac; }
.tline.pending { opacity: .7; }
.timer-box { margin: .6rem 1rem; padding: .7rem .8rem; border-radius: 10px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.35); }
.timer-box .clock { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; }
.timer-box.paused { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); }
.ticket-totals { border-top: 1px solid var(--border); padding: .7rem 1rem; font-size: .9rem; }
.ticket-totals .row-t { display: flex; justify-content: space-between; padding: .12rem 0; color: #c8cdd8; font-variant-numeric: tabular-nums; }
.ticket-totals .grand { font-size: 1.45rem; font-weight: 700; color: #fff; padding-top: .35rem; }
.ticket-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; padding: .6rem; border-top: 1px solid var(--border); }
.ticket-actions .btn { min-height: 52px; font-size: .74rem; padding: .3rem .2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; line-height: 1.1; }
.ticket-actions .btn i { font-size: 1.15rem; }
.ticket-pay { display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: 0 .6rem .6rem; }
.ticket-pay .btn { min-height: 56px; font-size: 1.02rem; font-weight: 650; }
.ticket-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 2rem; }

/* sayısal tuş takımı */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.numpad button { min-height: 56px; font-size: 1.25rem; font-weight: 600; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); color: #fff; }
.numpad button:active { background: #353d4f; }
.amount-display { font-size: 2rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .4rem .9rem; }
.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.method-btn { min-height: 64px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: #c8cdd8; font-weight: 600; font-size: .82rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; }
.method-btn i { font-size: 1.3rem; }
.method-btn.active { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.pay-lines .pl { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; border-radius: 8px; background: var(--surface-2); margin-bottom: .35rem; }
.split-part { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px; margin-bottom: .4rem; }
.split-part.done { opacity: .5; }
.sel-list .sel-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-bottom: 1px solid var(--border); }
.stepper { display: inline-flex; align-items: center; gap: .3rem; }
.stepper button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-3); color: #fff; font-size: 1.1rem; }
.stepper span { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; max-height: 50vh; overflow-y: auto; }
.table-pick button { min-height: 60px; border-radius: 10px; border: 1px solid var(--border); border-top: 3px solid var(--st-free); background: var(--surface-2); color: #fff; font-weight: 700; }
.table-pick button.occupied, .table-pick button.bill { border-top-color: var(--st-occupied); }
.table-pick button small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }

.mobile-only { display: none !important; }

/* ---------------------------------------------------------------- yazdırma */
@media print {
  body { background: #fff; color: #000; }
  .no-print { display: none !important; }
}

/* ---------------------------------------------------------------- duyarlı */
@media (max-width: 1199.98px) {
  .pos-body { grid-template-columns: 96px minmax(0, 1fr) 340px; }
}
@media (max-width: 991.98px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 1050; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1040; }
  .sidebar.open + .sidebar-backdrop { display: block; }
  .mobile-only { display: inline-flex !important; }
  .topbar { padding: 0 1rem; }
  .content { padding: 1rem; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }

  .pos-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pos-halls { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: .5rem; }
  .hall-btn { min-height: 44px; padding: .45rem .9rem; white-space: nowrap; }
  .hall-btn small { display: none; }
  .pos-ticket { position: fixed; inset: 56px 0 0 auto; width: min(420px, 100vw); z-index: 1040; transform: translateX(100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .pos-ticket.open { transform: none; }
}
@media (max-width: 575.98px) {
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-rows: 84px; }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-value { font-size: 1.3rem; }
  .pos-top .hide-sm { display: none !important; }
}

/* Platform (süper yönetici) paneli */
.platform-top { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.platform-top .brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.platform-content { padding: 1rem; max-width: 1400px; margin: 0 auto; }
#ptabs .nav-link { color: var(--muted); }
#ptabs .nav-link.active { background: var(--accent-soft); color: #fff; }
@media (max-width: 575.98px) { .platform-content { padding: .75rem; } .platform-top .hide-sm { display: none; } }
