/* ═══════════════════════════════════════════════
   Lav Burger Midyat — Style v6.1
   Desktop-first, Windows uyumlu
   ═══════════════════════════════════════════════ */

:root {
  --bg: #f4f6fb;
  --panel: #111827;
  --card: #ffffff;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-light: #f1f3f7;
  --soft: #f8fafc;
  --accent: #e11d48;
  --accent2: #f97316;
  --good: #059669;
  --good-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --bad: #dc2626;
  --bad-soft: #fef2f2;
  --text: #0f172a;
  --text-secondary: #475569;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.08), 0 20px 48px rgba(0,0,0,.06);
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --sidebar-w: 260px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px; line-height: 1.5;
}
body.login-mode { overflow: hidden; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }

/* ── Windows Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c7d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
* { scrollbar-width: thin; scrollbar-color: #c1c7d0 transparent; }

/* ═══════════════════════════════════════
   LAYOUT — sidebar fixed, main margin-left
   Grid DEĞİL. Çift margin/taşma yok.
   ═══════════════════════════════════════ */
.app { display: block; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #111827, #0c0f1a);
  color: #fff; padding: 20px 16px;
  display: flex; flex-direction: column;
  z-index: 50; overflow-y: auto;
  transition: transform .25s ease;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px; flex-shrink: 0;
}
.brand-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.brand h1 { font-size: 16px; margin: 0; font-weight: 800; }
.brand small { display: block; color: #94a3b8; margin-top: 2px; font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav button {
  border: 0; background: transparent; color: #94a3b8;
  padding: 9px 12px; border-radius: 8px;
  text-align: left; display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all var(--transition); flex-shrink: 0;
}
.nav button:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.nav button.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.nav-icon { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px; margin-top: 12px; flex-shrink: 0;
}
.sidebar-footer .role { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 40;
}
.sidebar-overlay.active { display: block; }

/* ── Main ── */
.main {
  margin-left: var(--sidebar-w);
  padding: 28px 32px 48px;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 24px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.title h2 { margin: 0; font-size: 24px; font-weight: 800; }
.pill {
  background: white; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ═══════════════════════════════════════
   GRID
   ═══════════════════════════════════════ */
.grid { display: grid; gap: 16px; margin-top: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Card ── */
.card {
  background: var(--card); border: 1px solid var(--line-light);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.sub-card {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 16px;
}

/* ── Section Header ── */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.section-header h3 { margin: 0; }
.section-header p { margin: 4px 0 0; }

/* ── KPI ── */
.kpi { position: relative; overflow: hidden; }
.kpi-icon { font-size: 22px; margin-bottom: 6px; }
.kpi .label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 4px; }
.kpi .sub { margin-top: 6px; font-size: 11px; color: var(--muted); }
.kpi::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px; border-radius: 50%; opacity: .06;
}
.kpi-sales::after { background: var(--good); }
.kpi-expense::after { background: var(--bad); }
.kpi-net::after { background: #6366f1; }
.kpi-stock::after { background: var(--warn); }

/* ── Section ── */
.section { display: none; }
.section.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   TABLE
   ═══════════════════════════════════════ */
.table-wrap { overflow-x: auto; margin-top: 4px; max-height: 500px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line-light); font-size: 13px; vertical-align: middle; text-align: left; }
th {
  color: var(--text-secondary); background: var(--soft);
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .5px; position: sticky; top: 0; z-index: 2;
}
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: #f8faff; }

/* ── Tags ── */
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/* ── Toolbar ── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  border: 0; padding: 9px 16px; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 700; font-size: 13px;
  background: var(--text); color: white; box-shadow: var(--shadow);
  transition: all var(--transition); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn.glass { background: white; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.glass:hover { background: var(--soft); box-shadow: var(--shadow); }
.btn.glass-dark { background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.1); width: 100%; margin-top: 10px; box-shadow: none; }
.btn.glass-dark:hover { background: rgba(255,255,255,.14); }
.btn.accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.btn.good { background: linear-gradient(135deg, #059669, #10b981); }
.btn.warn { background: linear-gradient(135deg, #d97706, #f59e0b); }
.btn.bad { background: linear-gradient(135deg, #dc2626, #ef4444); }
.btn.small { padding: 5px 10px; font-size: 11px; }

/* ═══════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════ */
.input, select, textarea {
  width: 100%; background: white; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px; outline: none;
  font-size: 13px; transition: border var(--transition), box-shadow var(--transition);
}
.input:focus, select:focus, textarea:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.input-sm { padding: 7px 10px; font-size: 12px; }
label { font-size: 12px; font-weight: 700; color: var(--text-secondary); display: block; margin: 0 0 4px; }
.help { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── Form Grids ── */
.form-grid   { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dynamic-rows { display: grid; gap: 10px; margin-top: 12px; }
.search-box { min-width: 200px; max-width: 280px; }

/* ═══════════════════════════════════════
   CATALOG
   ═══════════════════════════════════════ */
.catalog { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.product-card {
  position: relative; overflow: hidden; background: white;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all var(--transition);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-top { height: 100px; background: linear-gradient(135deg, #fef2f2, #fff7ed); position: relative; }
.product-top img {
  position: absolute; right: 10px; top: 8px;
  width: 76px; height: 76px; object-fit: cover;
  border-radius: 12px; border: 3px solid rgba(255,255,255,.8);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.product-badge {
  position: absolute; left: 10px; top: 10px;
  background: rgba(15,23,42,.85); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.product-body { padding: 12px 14px 14px; }
.product-card h4 { margin: 0 0 2px; font-size: 14px; }
.product-card p { margin: 0; color: var(--muted); font-size: 11px; }
.product-card .price { font-size: 20px; font-weight: 800; margin: 6px 0; }
.product-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-secondary); }
.product-card .footer { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 8px; }

.bundle-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bundle-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.bundle-item input { margin-top: 2px; }
.bundle-item strong { display: block; margin-bottom: 2px; }
.bundle-item .help { font-size: 11px; }
.static-note { display:flex; align-items:center; min-height:44px; }
.image-preview { width: 100%; max-width: 140px; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }

/* ── Chips ── */
.chips, .view-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 999px; background: white;
  border: 1px solid var(--line); cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all var(--transition);
}
.chip:hover { background: var(--soft); }
.chip.active { background: var(--text); color: white; border-color: var(--text); }

/* ── Order Layout ── */
.order-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.sticky-card { position: sticky; top: 28px; }

/* ── Cart ── */
.cart-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-light); align-items: center; }
.cart-item small { display: block; color: var(--muted); font-size: 11px; }
.summary { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-top: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-row.total { font-size: 18px; margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--line); }
.cart-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ── Charts ── */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 24px 0 28px; }
.bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 8px 8px 3px 3px; position: relative; min-height: 8px; transition: height .4s ease; }
.bar span { position: absolute; left: 50%; transform: translateX(-50%); bottom: -22px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.bar strong { position: absolute; left: 50%; transform: translateX(-50%); top: -20px; font-size: 10px; color: var(--text); white-space: nowrap; }

/* ── Timeline ── */
.timeline { display: grid; gap: 8px; }
.timeline-item { display: flex; gap: 10px; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-top: 6px; flex-shrink: 0; }

/* ── Empty ── */
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--soft); border: 1px dashed #cbd5e1; border-radius: var(--radius-sm); font-size: 13px; }

/* ── Toast ── */
.toast-wrap { position: fixed; top: 20px; right: 20px; display: grid; gap: 8px; z-index: 5000; }
.toast { background: var(--text); color: white; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 240px; font-size: 13px; font-weight: 600; animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 70; }
.modal-backdrop.show { display: grid; }
.modal { background: white; border-radius: var(--radius); padding: 24px; max-width: 780px; width: min(92vw, 780px); box-shadow: var(--shadow-lg); animation: fadeUp .25s ease; }

/* ── Login ── */
.login-screen { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 20% 30%, #fecaca44, transparent 50%), radial-gradient(circle at 80% 70%, #fed7aa44, transparent 50%), #f8fafc; z-index: 1000; }
.login-card { background: white; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 20px; padding: 32px; width: min(92vw, 420px); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-card h1 { margin: 0; font-size: 20px; }
.login-grid { display: grid; gap: 12px; margin-top: 20px; }
.login-actions { display: flex; gap: 8px; }
.footer-note { font-size: 11px; color: var(--muted); margin-top: 14px; text-align: center; }
.hidden { display: none !important; }
.thumb-sm { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-light); background: var(--soft); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Tablet büyük */
@media (max-width: 1200px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet küçük */
@media (max-width: 860px) {
  .main { margin-left: 0; padding: 16px 14px 40px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }
  .hamburger { display: flex; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-2 { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .form-grid, .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .sticky-card { position: relative; top: auto; }
  .topbar { flex-wrap: wrap; }
  .search-box { min-width: 100%; max-width: none; }
  .kpi .value { font-size: 20px; }
}

/* Telefon */
@media (max-width: 520px) {
  .main { padding: 12px 10px 32px; }
  .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .title h2 { font-size: 20px; }
  .kpi .value { font-size: 18px; }
  .card { padding: 14px; }
  .product-top { height: 80px; }
  .product-top img { width: 60px; height: 60px; }
}


.status-stack { display: grid; gap: 12px; margin-top: 8px; }
.sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
}
.sync-pill.good { background: var(--good-soft); color: var(--good); border-color: #a7f3d0; }
.sync-pill.warn { background: var(--warn-soft); color: var(--warn); border-color: #fed7aa; }
.sync-pill.local { background: var(--soft); color: var(--text-secondary); }
.receipt-summary { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.receipt-row.total { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; }


.login-status { min-height: 20px; margin-top: 10px; }
.login-status.error { color: #b91c1c; font-weight: 600; }
.login-status.good { color: #15803d; font-weight: 600; }


.static-note {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--text-secondary);
  background: var(--soft);
}

.image-preview {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--soft);
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.toggle-inline input {
  width: 16px;
  height: 16px;
}

.inventory-actions-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-batch-box {
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 8px 10px;
}

.stock-batch-box summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.stock-batch-head,
.stock-batch-line {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}

.stock-batch-head {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.stock-batch-line {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════
   v5 — Sipariş Durumu + Mutfak + Aktif Liste
   ═══════════════════════════════════════ */

/* Müşteri alanları (sepet içinde) */
.customer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 640px) {
  .customer-fields { grid-template-columns: 1fr; }
}

/* Durum rozetleri */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.status-pending   { background: #fef3c7; color: #92400e; }
.status-preparing { background: #dbeafe; color: #1e40af; }
.status-ready     { background: #d1fae5; color: #065f46; }
.status-delivered { background: #e5e7eb; color: #374151; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-paid      { background: #dcfce7; color: #166534; }
.status-unpaid    { background: #ffedd5; color: #9a3412; }

/* Geçen süre rengi */
.elapsed {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.elapsed-good { background: var(--good-soft); color: var(--good); }
.elapsed-warn { background: var(--warn-soft); color: var(--warn); }
.elapsed-bad  { background: var(--bad-soft);  color: var(--bad);  animation: pulse-elapsed 1.6s infinite; }

@keyframes pulse-elapsed {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* Aktif siparişler listesi (siparişler sayfasında) */
.active-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.active-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex-wrap: wrap;
}
.active-order-row:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow);
}
.active-order-info { flex: 1; min-width: 200px; }
.active-order-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.active-order-head strong { font-size: 15px; }
.active-order-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Mutfak ekranı — Kanban */
.kitchen-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .kitchen-board { grid-template-columns: 1fr; }
}

.kitchen-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.kitchen-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.kitchen-col-head h3 { margin: 0; font-size: 15px; }

.kitchen-col[data-col="pending"] .kitchen-col-head { border-bottom-color: #fbbf24; }
.kitchen-col[data-col="preparing"] .kitchen-col-head { border-bottom-color: #3b82f6; }
.kitchen-col[data-col="ready"] .kitchen-col-head { border-bottom-color: var(--good); }

.kitchen-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}

.kitchen-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.kitchen-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.kitchen-col[data-col="pending"] .kitchen-card { border-left-color: #fbbf24; }
.kitchen-col[data-col="preparing"] .kitchen-card { border-left-color: #3b82f6; }
.kitchen-col[data-col="ready"] .kitchen-card { border-left-color: var(--good); }

.kitchen-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.kitchen-card-top .order-no {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
}
.kitchen-customer {
  font-size: 12px;
  margin-bottom: 6px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.kitchen-items {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 13px;
}
.kitchen-items li {
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
}
.kitchen-items li:last-child { border-bottom: 0; }

.kitchen-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Pill tipleri */
.pill.muted {
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Realtime durum göstergesi (sidebar footer) */
.realtime-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.realtime-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.realtime-indicator.online::before {
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, .6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.logo-settings-card { min-height: 210px; }
.logo-preview-box {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  margin-top: 12px;
}
.business-logo-preview {
  max-width: 180px;
  max-height: 86px;
  object-fit: contain;
}
.logo-empty {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.receipt-screen, .receipt-print { color: #111827; }
.receipt-head {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.receipt-logo {
  display: block;
  max-width: 150px;
  max-height: 82px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.receipt-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.receipt-subtitle { color: var(--text-secondary); font-weight: 700; margin-top: 2px; }
.receipt-no { display: inline-flex; margin-top: 8px; padding: 5px 10px; border-radius: 999px; background: var(--soft); font-weight: 800; }
.receipt-meta { display: grid; gap: 5px; margin-bottom: 12px; }
.receipt-meta-row, .receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.receipt-meta-row span, .receipt-row span { color: var(--text-secondary); }
.receipt-meta-row strong, .receipt-row strong { text-align: right; }
.receipt-items { width: 100%; border-collapse: collapse; margin-top: 10px; }
.receipt-items th, .receipt-items td { padding: 8px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.receipt-items th:nth-child(2), .receipt-items td:nth-child(2) { text-align: center; width: 52px; }
.receipt-items th:last-child, .receipt-items td:last-child { text-align: right; white-space: nowrap; }
.receipt-item-note { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.receipt-summary { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.receipt-row.total { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 18px; }
.receipt-row.small-row { font-size: 12px; }
.receipt-footer { text-align: center; display: grid; gap: 3px; color: var(--text-secondary); margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.receipt-footer strong { color: var(--text); }


.compact-grid { align-items: end; }
.inline-help-block { display:flex; align-items:end; }
.search-meta { min-height: 40px; display:flex; align-items:center; padding: 8px 12px; border:1px dashed var(--line); border-radius: var(--radius-sm); background: var(--soft); color: var(--muted); font-size:12px; }
.metric-card .label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.metric-card .value { font-size: 24px; font-weight: 800; margin-top: 6px; }
.metric-card .sub { margin-top: 6px; font-size: 11px; color: var(--muted); }
.report-secondary-grid { margin-top: 16px; }
.list-table { width:100%; border-collapse: collapse; }
.list-table td, .list-table th { padding: 9px 10px; }
.summary-stack { display:grid; gap:10px; }
.summary-chip { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 12px; background: var(--soft); border:1px solid var(--line); border-radius: var(--radius-sm); }
.summary-chip strong { font-size: 14px; }
.summary-chip span { color: var(--muted); font-size: 12px; }

@media (max-width: 1200px) { .report-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
