/* App CSS - Restoranmatik · POS teması */
:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fee2e2;
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --btn-primary-bg: var(--primary);
}
/* Yönetim paneli & giriş ekranı teması (public QR menü kendi temasını korur).
   Renkler Ayarlar > Panel Teması'ndan yönetilir; ThemeService bu değişkenleri sayfa başında ezer.
   Aşağıdaki değerler varsayılan siyah / turuncu / beyaz temadır. */
body.pos, .auth-wrapper {
  --ac: #f97316; --ac-rgb: 249,115,22; --ac-hi: #fa9249; --ac-lo: #c75c12;
  --ac-text: var(--ac-lo); /* acik zeminde yazi olarak kullanilan turuncu (okunurluk) */
  --ac-soft: #feeadc; --ac-softer: #fff7f1; --ac-muted: #fdcaa6; --on-ac: #ffffff;
  --dk: #0b0b0c; --dk-rgb: 11,11,12; --dk-2: #1a1a1b; --dk-3: #262627; --dk-4: #343435;
  --on-dk: #ffffff; --on-dk-rgb: 255,255,255; --on-dk-soft: #e2e2e2; --on-dk-muted: #999999;
  --lt: #ffffff; --lt-rgb: 255,255,255; --lt-1: #fafafa; --lt-2: #f4f4f4; --lt-3: #ececec; --lt-4: #e0e0e0;
  --line: #e7e7e7; --line-strong: #cbcbcb; --tx: #0b0b0c; --tx-muted: #717172;

  --primary: var(--ac);
  --primary-dark: var(--ac-lo);
  --primary-light: var(--ac-soft);
  --bg: var(--lt-2);
  --surface: var(--lt);
  --border: var(--line);
  --text: var(--tx);
  --muted: var(--tx-muted);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(var(--dk-rgb),.05), 0 6px 20px -12px rgba(var(--dk-rgb),.18);

  /* POS koyu yüzeyler */
  --pos-ink: var(--dk);
  --pos-deep: var(--dk);
  --pos-violet: var(--dk-2);
  --pos-glass: rgba(var(--on-dk-rgb),.07);
  --pos-glass-hi: rgba(var(--on-dk-rgb),.12);
  --pos-line: rgba(var(--on-dk-rgb),.1);
  --pos-text: var(--on-dk);
  --pos-muted: var(--on-dk-muted);
  --pos-pink: var(--ac);
  --pos-grad: linear-gradient(135deg, var(--ac-hi) 0%, var(--ac) 55%, var(--ac-lo) 100%);
  --font: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --btn-primary-bg: var(--pos-grad);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--ac-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.pos-ico { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* ---------- Kabuk & Header ---------- */
.pos-shell { min-height: 100vh; display: flex; flex-direction: column; }
.pos-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 28px; min-height: 68px;
  background: linear-gradient(90deg, var(--dk-2) 0%, var(--dk) 45%, var(--dk) 100%);
  color: var(--pos-text); border-bottom: 1px solid var(--pos-line);
}
.pos-home .pos-header { position: relative; background: transparent; border-bottom: 0; padding-top: 18px; }
.pos-brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.pos-logo { font-weight: 800; font-size: 19px; letter-spacing: .02em; color: var(--on-dk); white-space: nowrap; }
.pos-logo span { font-style: italic; font-weight: 700; color: var(--ac-hi); margin-left: 1px; letter-spacing: 0; }
.pos-logo:hover { text-decoration: none; }
.pos-venue { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pos-status { display: flex; align-items: center; gap: 6px; }
.pos-status-item {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: 12px; color: var(--pos-muted);
}
.pos-status-item:hover { background: var(--pos-glass); text-decoration: none; color: var(--on-dk); }
.pos-status-item .pos-ico { font-size: 20px; color: var(--on-dk-muted); }
.pos-status-item span { display: flex; flex-direction: column; line-height: 1.15; }
.pos-status-item strong { font-size: 13px; font-weight: 600; color: var(--on-dk); }
.pos-status-item small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pos-status-item.is-alert .pos-ico { color: var(--ac-hi); }
.pos-dot {
  position: absolute; top: 2px; left: 24px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--pos-grad); color: var(--on-ac); font-style: normal;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--pos-deep);
}
.pos-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--pos-line); }
.pos-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--pos-grad); color: var(--on-ac); font-weight: 700; }
.pos-user-text { display: flex; flex-direction: column; line-height: 1.2; }
.pos-user-text strong { font-size: 13px; font-weight: 600; color: var(--on-dk); }
.pos-user-text small { font-size: 11px; color: var(--pos-muted); }
.pos-icon-btn {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--pos-line);
  background: var(--pos-glass); color: var(--pos-muted); cursor: pointer; display: grid; place-items: center;
}
.pos-icon-btn .pos-ico { font-size: 17px; }
.pos-icon-btn:hover { color: var(--on-dk); background: var(--pos-glass-hi); }

/* ---------- İç sayfalar: sidebar + içerik ---------- */
.layout { display: flex; flex: 1; min-height: 0; }
.sidebar {
  width: 236px; flex-shrink: 0; display: flex; flex-direction: column;
  position: sticky; top: 68px; height: calc(100vh - 68px);
  background: linear-gradient(180deg, var(--dk) 0%, var(--dk) 55%, var(--dk-2) 100%);
  color: var(--pos-text);
}
.sidebar nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar nav a, .sidebar nav .is-disabled {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 3px;
  border-radius: 12px; color: var(--on-dk-soft); font-weight: 500;
}
.sidebar nav .pos-ico { font-size: 22px; }
.sidebar nav a:hover { background: var(--pos-glass); color: var(--on-dk); text-decoration: none; }
.sidebar nav a.active { background: rgba(var(--ac-rgb),.16); color: var(--on-dk); box-shadow: inset 3px 0 0 var(--pos-pink); }
.sidebar nav .is-disabled { opacity: .45; cursor: default; }
.sidebar nav .is-disabled em { margin-left: auto; font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 8px; background: var(--pos-glass-hi); }
.sidebar .section-label { padding: 16px 12px 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dk-muted); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: transparent; padding: 22px 28px 4px; display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.topbar-date { color: var(--muted); font-size: 13px; font-weight: 500; }
.content { padding: 16px 28px 28px; flex: 1; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.flash.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-header { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-header h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; overflow-x: auto; }
.card-body.nopad { padding: 0; overflow-x: auto; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); overflow: hidden; }
body.pos .stat::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pos-grad); }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat .value { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; }
.stat .value small { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .stat-val { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat .stat-label { color: var(--muted); font-size: 12px; }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--lt-1); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--lt-1); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.blue { background: #e0e7ff; color: #3730a3; }
.badge.gray { background: var(--lt-3); color: var(--tx-muted); }

.btn { display: inline-block; padding: 9px 16px; border-radius: 10px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid transparent; text-decoration: none !important; transition: background .15s, box-shadow .15s; }
.btn-primary { background: var(--btn-primary-bg); color: var(--on-ac); }
body.pos .btn-primary { box-shadow: 0 6px 16px -8px rgba(var(--ac-rgb),.8); }
.btn-primary:hover { background: var(--primary-dark); color: var(--on-ac); }
.btn-secondary { background: var(--lt-3); color: var(--tx); border-color: var(--border); }
.btn-secondary:hover { background: var(--lt-3); }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

form .form-group { margin-bottom: 14px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
form input, form select, form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 14px; background: var(--lt); color: var(--text); }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid var(--primary-light); border-color: var(--ac-text); }
form input[type="checkbox"], form input[type="radio"] { width: auto; accent-color: var(--ac-text); }
form textarea { min-height: 80px; resize: vertical; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.pagination { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 9px; font-weight: 600; background: var(--lt); }
.pagination .current { background: var(--primary); color: var(--on-ac); border-color: transparent; }

.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(var(--ac-rgb),.45), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(var(--ac-rgb),.14), transparent 60%),
    linear-gradient(135deg, var(--dk-2) 0%, var(--dk) 55%, var(--dk) 100%);
  font-family: var(--font);
}
.auth-card { background: var(--lt); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); width: 100%; max-width: 400px; padding: 36px; }
.auth-card .logo { font-size: 22px; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 6px; letter-spacing: .02em; }
.auth-card .logo span { font-style: italic; color: var(--ac-text); }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { font-size: 40px; margin-bottom: 8px; }

.flag-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar input { flex: 1; min-width: 0; }
.search-bar select { width: auto; min-width: 140px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.grid-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.grid-item .title { font-weight: 700; }

.table-floor { display: flex; flex-wrap: wrap; gap: 12px; }
.table-tile { width: 130px; padding: 14px; border-radius: 16px; text-align: center; background: var(--surface); border: 2px solid var(--border); cursor: pointer; box-shadow: var(--shadow); }
.table-tile .table-name { font-weight: 700; }
.table-tile.available { border-color: #86efac; }
.table-tile.occupied { border-color: var(--warning); }
.table-tile.bill_requested { border-color: #a78bfa; }

.report-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.report-tile:hover { border-color: var(--ac-text); text-decoration: none; }
.report-tile strong { font-size: 14px; }
.report-tile small { color: var(--muted); font-size: 12px; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.alert-info { background: #e0e7ff; color: #3730a3; }
.alert-danger { background: #fee2e2; color: #991b1b; }

.inline-form { display: inline; }

.totals div { padding: 4px 0; }

/* Özet kartları (Raporlar) */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; min-width: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.kpi small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi strong i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); }
.kpi-chart { grid-column: span 2; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 8px; }
.spark span { flex: 1; min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--ac-hi), var(--ac-muted)); }
.spark span:last-child { background: var(--primary); }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px 2px; }

/* ---------- Ana sayfa (POS giriş ekranı) ---------- */
body.pos-home { color: var(--pos-text); background: var(--dk); }
body.pos-home::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 760px at -8% 18%, rgba(var(--ac-rgb),.55) 0%, rgba(var(--ac-rgb),.2) 38%, transparent 68%),
    radial-gradient(900px 700px at 42% 120%, rgba(var(--ac-rgb),.12), transparent 60%),
    radial-gradient(1200px 900px at 110% -10%, rgba(var(--on-dk-rgb),.06), transparent 60%),
    linear-gradient(120deg, var(--dk-2) 0%, var(--dk) 45%, var(--dk) 100%);
}
.pos-home-main { flex: 1; display: flex; flex-direction: column; padding: 8px 28px 20px; }
.pos-home-main > .flash { max-width: 1320px; width: 100%; margin: 0 auto 14px; }
.home-grid {
  flex: 1; width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 40px; align-items: start;
  padding-top: 18px;
}

.home-side { display: flex; flex-direction: column; gap: 22px; }
.home-clock { padding: 4px 4px 0; }
.home-date { font-size: 14px; font-weight: 500; color: var(--on-dk); }
.home-time { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--on-dk); margin-top: 6px; font-variant-numeric: tabular-nums; }

.notif-panel {
  display: flex; flex-direction: column; border-radius: 22px; padding: 16px;
  background: rgba(var(--dk-rgb),.28); border: 1px solid rgba(var(--on-dk-rgb),.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.notif-head h2 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dk); }
.notif-head h2 .pos-ico { font-size: 16px; color: var(--ac-hi); }
.notif-count { min-width: 24px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--pos-grad); color: var(--on-ac); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }

.notif-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.notif-tabs button {
  flex-shrink: 0; font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  padding: 6px 11px; border-radius: 10px; border: 1px solid transparent; background: rgba(var(--on-dk-rgb),.06); color: var(--pos-muted);
}
.notif-tabs button em { font-style: normal; font-weight: 700; margin-left: 3px; opacity: .8; }
.notif-tabs button:hover { color: var(--on-dk); }
.notif-tabs button.is-on { background: var(--lt); color: var(--tx); }

.notif-list { display: flex; flex-direction: column; gap: 8px; max-height: min(46vh, 420px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(var(--on-dk-rgb),.25) transparent; }
.notif-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: rgba(var(--on-dk-rgb),.1); border: 1px solid rgba(var(--on-dk-rgb),.06); color: var(--on-dk);
  transition: background .15s, transform .15s;
}
.notif-item:hover { background: rgba(var(--on-dk-rgb),.16); text-decoration: none; transform: translateX(2px); }
.notif-ico { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--lt); }
.notif-ico .pos-ico { font-size: 20px; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.notif-body strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-body small { font-size: 11px; color: var(--on-dk-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.notif-side time { font-size: 11px; color: var(--pos-muted); font-variant-numeric: tabular-nums; }
.notif-tag { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 7px; white-space: nowrap; }

.tone-order .notif-ico { color: var(--pos-pink); }
.tone-order .notif-tag { background: rgba(var(--ac-rgb),.9); color: var(--on-ac); }
.tone-info .notif-ico { color: var(--dk-4); }
.tone-info .notif-tag { background: rgba(var(--on-dk-rgb),.14); color: var(--on-dk); }
.tone-danger .notif-ico { color: #e11d48; }
.tone-danger .notif-tag { background: #ffe1e8; color: #be123c; }
.tone-warning .notif-ico { color: #f59e0b; }
.tone-warning .notif-tag { background: #fff1d6; color: #a15c07; }
.tone-ready .notif-ico { color: #16a34a; }
.tone-ready .notif-tag { background: #dcfce7; color: #166534; }

.notif-empty { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; font-size: 12px; color: var(--pos-muted); background: rgba(var(--on-dk-rgb),.04); border: 1px dashed rgba(var(--on-dk-rgb),.12); }
.notif-empty .pos-ico { font-size: 16px; color: #6ee7b7; }
.notif-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.notif-foot a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px;
  background: rgba(var(--lt-rgb),.92); color: var(--tx); font-size: 12px; font-weight: 500;
}
.notif-foot a:hover { background: var(--lt); text-decoration: none; }
.notif-foot .pos-ico { font-size: 14px; color: var(--pos-pink); }

.home-menu { display: flex; flex-direction: column; gap: 26px; padding-top: 34px; }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tile {
  position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border-radius: 24px; color: var(--on-dk);
  background: linear-gradient(160deg, var(--dk-3) 0%, var(--dk-2) 100%);
  border: 1px solid rgba(var(--on-dk-rgb),.07);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.7), inset 0 1px 0 rgba(var(--on-dk-rgb),.06);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-4px); background: linear-gradient(160deg, var(--dk-4) 0%, var(--dk-3) 100%); box-shadow: 0 26px 50px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(var(--ac-rgb),.35); }
.tile:active { transform: translateY(-1px); }
.tile:focus-visible { outline: 3px solid var(--ac-hi); outline-offset: 3px; }
.tile-icon { font-size: clamp(52px, 5.2vw, 76px); line-height: 0; filter: drop-shadow(0 8px 14px rgba(var(--ac-rgb),.35)); }
.tile-label { font-size: clamp(13px, 1.05vw, 16px); font-weight: 500; letter-spacing: .01em; }
.tile.is-disabled { cursor: default; opacity: .55; }
.tile.is-disabled:hover { transform: none; background: linear-gradient(160deg, var(--dk-3) 0%, var(--dk-2) 100%); box-shadow: 0 18px 40px -22px rgba(0,0,0,.7); }
.tile.is-disabled .tile-icon { filter: grayscale(.4); }
.tile-soon { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border-radius: 8px; background: rgba(var(--on-dk-rgb),.14); color: var(--on-dk); }

.home-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1320px; margin: 24px auto 0; }
.home-foot-links { display: flex; flex-wrap: wrap; gap: 4px; }
.home-foot-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; color: var(--on-dk); font-size: 13px; font-weight: 500; }
.home-foot-links a .pos-ico { font-size: 16px; color: var(--ac-hi); }
.home-foot-links a:hover { background: var(--pos-glass); text-decoration: none; color: var(--on-dk); }
.home-version { font-size: 11px; color: var(--pos-muted); letter-spacing: .04em; }
.home-settings {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 12px 9px 18px; border-radius: 12px;
  background: rgba(var(--on-dk-rgb),.14); border: 1px solid rgba(var(--on-dk-rgb),.12); color: var(--on-dk); font-size: 13px; font-weight: 500;
}
.home-settings .pos-ico { font-size: 18px; padding: 5px; box-sizing: content-box; border-radius: 8px; background: var(--lt); color: var(--tx); }
.home-settings:hover { background: rgba(var(--on-dk-rgb),.22); text-decoration: none; }

/* ---------- Masalar (tam ekran POS çalışma ekranı) ---------- */
.pos-back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; align-self: center; background: rgba(var(--on-dk-rgb),.14); color: var(--on-dk); }
.pos-back svg { width: 18px; height: 18px; }
.pos-back:hover { background: rgba(var(--on-dk-rgb),.24); }
.pos-screen .pos-brand { align-items: center; }
.pos-screen-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dk); padding-left: 14px; border-left: 1px solid var(--pos-line); }
.pos-screen-main { flex: 1; display: flex; flex-direction: column; padding: 0 18px 18px; min-height: 0; }
.pos-screen-main > .flash { margin-bottom: 12px; }

.ts {
  flex: 1; min-height: 0; height: calc(100vh - 104px);
  display: grid; grid-template-columns: 78px minmax(250px, 300px) 1fr 196px;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.65); border: 1px solid rgba(var(--on-dk-rgb),.08);
}

.ts-rail { display: flex; flex-direction: column; gap: 6px; padding: 12px 8px; background: rgba(var(--dk-rgb),.55); }
.ts-rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px;
  border: 0; background: transparent; color: var(--on-dk); font-family: inherit; font-size: 11px; font-weight: 500; cursor: pointer; text-align: center;
}
.ts-rail-btn .pos-ico { font-size: 22px; }
.ts-rail-btn:hover { background: var(--pos-glass-hi); color: var(--on-dk); text-decoration: none; }
.ts-rail-btn[aria-pressed="true"] { background: var(--pos-grad); color: var(--on-ac); }

.ts-bills { display: flex; flex-direction: column; min-height: 0; background: var(--lt); color: var(--text); }
.ts-bills-head { padding: 16px 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-text); border-bottom: 1px solid var(--border); }
.ts-bills-head strong { font-weight: 700; }
.ts-bills-list { flex: 1; overflow-y: auto; }
.ts-bill {
  display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text);
}
.ts-bill:hover { background: var(--lt-1); text-decoration: none; }
.ts-bill em { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--on-ac); background: var(--pos-grad); }
.ts-bill-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bill time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-bill strong { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.ts-bills-empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.ts-bills-foot { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-top: 1px solid var(--border); background: var(--lt-1); }
.ts-bills-foot span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ts-bills-foot strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.ts-floor { display: flex; flex-direction: column; min-height: 0; background: var(--lt-2); color: var(--text); }
.ts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.ts-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ts-crumb svg { width: 14px; height: 14px; }
.ts-crumb strong { color: var(--text); font-weight: 600; }
.ts-edit-hint { display: none; margin-left: 10px; padding: 3px 10px; border-radius: 8px; background: var(--primary-light); color: var(--primary-dark); font-size: 11px; font-weight: 600; }
.ts.is-edit .ts-edit-hint { display: inline-block; }
.ts-filters { display: flex; gap: 8px; }
.ts-filters select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--lt); font-family: inherit; font-size: 12px; color: var(--text); width: auto; }

.ts-grid { flex: 1; overflow-y: auto; padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: min-content; gap: 14px; }
.ts-card {
  position: relative; min-height: 124px; padding: 22px 12px 22px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: var(--lt); color: var(--text); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.06), 0 10px 22px -16px rgba(var(--dk-rgb),.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ts-card::before { content: ""; position: absolute; top: 9px; left: 50%; width: 34px; height: 5px; margin-left: -17px; border-radius: 3px; background: rgba(var(--dk-rgb),.1); }
.ts-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.06), 0 18px 30px -18px rgba(var(--dk-rgb),.45); }
.ts-card[hidden] { display: none !important; }
.ts-card > span { pointer-events: none; }
.ts-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ts-card-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ts-card-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.ts-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; line-height: 1; opacity: .85; }
.ts-chip .pos-ico { font-size: 13px; }
.ts-chip-alert { padding: 3px 7px; border-radius: 8px; background: var(--lt); color: var(--ac-text); opacity: 1; }
.ts-card-name { font-size: 15px; font-weight: 600; line-height: 1.2; word-break: break-word; }
.ts-card-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-card-icon .pos-ico { font-size: 18px; margin-top: 4px; opacity: .9; }
.ts-card-foot { position: absolute; left: 10px; right: 10px; bottom: 7px; display: flex; justify-content: space-between; gap: 6px; font-size: 10px; opacity: .9; }
.ts-card-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Masa durum renkleri: Ayarlar > Masa Durum Renkleri (ThemeService --st-* değişkenleri) */
.ts-card.st-available { background: linear-gradient(150deg, var(--st-available-hi) 0%, var(--st-available) 55%, var(--st-available-lo) 100%); color: var(--st-available-on); }
.ts-card.st-occupied { background: linear-gradient(150deg, var(--st-occupied-hi) 0%, var(--st-occupied) 55%, var(--st-occupied-lo) 100%); color: var(--st-occupied-on); }
.ts-card.st-ordering { background: linear-gradient(150deg, var(--st-ordering-hi) 0%, var(--st-ordering) 55%, var(--st-ordering-lo) 100%); color: var(--st-ordering-on); }
.ts-card.st-preparing { background: linear-gradient(150deg, var(--st-preparing-hi) 0%, var(--st-preparing) 55%, var(--st-preparing-lo) 100%); color: var(--st-preparing-on); }
.ts-card.st-served { background: linear-gradient(150deg, var(--st-served-hi) 0%, var(--st-served) 55%, var(--st-served-lo) 100%); color: var(--st-served-on); }
.ts-card.st-waiter_requested { background: linear-gradient(150deg, var(--st-waiter_requested-hi) 0%, var(--st-waiter_requested) 55%, var(--st-waiter_requested-lo) 100%); color: var(--st-waiter_requested-on); }
.ts-card.st-payment_requested { background: linear-gradient(150deg, var(--st-payment_requested-hi) 0%, var(--st-payment_requested) 55%, var(--st-payment_requested-lo) 100%); color: var(--st-payment_requested-on); }
.ts-card.st-reserved { background: linear-gradient(150deg, var(--st-reserved-hi) 0%, var(--st-reserved) 55%, var(--st-reserved-lo) 100%); color: var(--st-reserved-on); }
.ts-card.st-cleaning { background: linear-gradient(150deg, var(--st-cleaning-hi) 0%, var(--st-cleaning) 55%, var(--st-cleaning-lo) 100%); color: var(--st-cleaning-on); }
.ts-card[class*="st-"]::before { background: currentColor; opacity: .22; }
.ts-card[class*="st-"] .ts-card-sub { color: inherit; opacity: .95; font-weight: 600; }
.ts-card.st-available .ts-card-sub { font-weight: 400; opacity: .6; }
.ts-card.st-reserved { background-image: repeating-linear-gradient(-45deg, rgba(var(--st-reserved-rgb),0) 0 10px, rgba(255,255,255,.12) 10px 20px), linear-gradient(150deg, var(--st-reserved-hi) 0%, var(--st-reserved) 55%, var(--st-reserved-lo) 100%); }
.ts-card.st-waiter_requested { box-shadow: 0 0 0 3px rgba(var(--st-waiter_requested-rgb),.35), 0 10px 22px -12px rgba(var(--st-waiter_requested-rgb),.8); animation: ts-pulse 1.8s ease-in-out infinite; }
@keyframes ts-pulse { 50% { box-shadow: 0 0 0 7px rgba(var(--st-waiter_requested-rgb),.12), 0 10px 22px -12px rgba(var(--st-waiter_requested-rgb),.8); } }
@media (prefers-reduced-motion: reduce) { .ts-card.st-waiter_requested { animation: none; } }
.ts-card .ts-chip-alert { color: var(--st-waiter_requested); }
.ts-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 20px 10px; font-size: 11px; color: var(--muted); }
.ts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ts-legend i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(var(--dk-rgb),.15); }
.ts-legend b { font-weight: 600; color: var(--text); }

.ts-card-edit { display: none; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; background: rgba(var(--dk-rgb),.82); pointer-events: auto !important; }
.ts-card-edit strong { color: var(--on-dk); font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-card-edit a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border-radius: 10px; background: var(--lt); color: var(--tx); font-size: 12px; font-weight: 600; }
.ts-card-edit a:hover { text-decoration: none; background: var(--primary-light); }
.ts-card-edit .pos-ico { font-size: 14px; color: var(--ac-text); }
.ts.is-edit .ts-card-edit { display: flex; }

.ts-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; color: var(--muted); text-align: center; }
.ts-empty > .pos-ico { font-size: 56px; }

.ts-sections {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; overflow-y: auto;
  background: #ffffff;
  border-left: 1px solid var(--line, #e2e8f0);
}
.ts-sections-label { padding: 4px 10px 8px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #64748b); }
.ts-sections button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border: 1px solid transparent; border-radius: 12px;
  background: #f8fafc; color: var(--text, #1e293b); font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.ts-sections button em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.05); color: inherit; }
.ts-sections button:hover { background: #f1f5f9; border-color: rgba(0, 0, 0, 0.06); }
.ts-sections button.is-on { background: #ffffff; color: var(--primary, #f97316); border-color: var(--primary, #f97316); box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12); font-weight: 700; }
.ts-sections button.is-on em { background: var(--ac-soft, #feeadc); color: var(--primary, #f97316); }

@media (max-width: 1200px) {
  .ts { grid-template-columns: 72px 240px 1fr 170px; }
  .ts-bill { grid-template-columns: 22px 1fr auto; }
  .ts-bill time { display: none; }
}
@media (max-width: 900px) {
  .ts { height: auto; grid-template-columns: 1fr; grid-template-areas: "sections" "rail" "floor" "bills"; border-radius: 18px; }
  .ts-rail { grid-area: rail; flex-direction: row; overflow-x: auto; padding: 8px; }
  .ts-rail-btn { flex-direction: row; font-size: 12px; padding: 8px 12px; white-space: nowrap; }
  .ts-rail-btn .pos-ico { font-size: 18px; }
  .ts-sections { grid-area: sections; flex-direction: row; overflow-x: auto; padding: 8px; }
  .ts-sections-label { display: none; }
  .ts-sections button { flex-shrink: 0; border-radius: 12px; white-space: nowrap; padding: 10px 14px; }
  .ts-floor { grid-area: floor; }
  .ts-grid { overflow: visible; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 4px 12px 16px; }
  .ts-toolbar { padding: 12px; }
  .ts-bills { grid-area: bills; }
  .ts-bills-list { max-height: 320px; }
  .pos-screen-title { display: none; }
  .pos-screen-main { padding: 0 10px 10px; }
}

/* Tam ekran oturma: header + çalışma alanı pencereyi kenar boşluksuz doldurur */
body.pos-screen .pos-shell { height: 100vh; overflow: hidden; }
body.pos-screen .pos-header { padding: 10px 20px; min-height: 60px; }
body.pos-screen .pos-screen-main { padding: 0; }
body.pos-screen .pos-screen-main > .flash { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
body.pos-screen .ts { height: auto; border-radius: 0; border: 0; border-top: 1px solid rgba(var(--on-dk-rgb),.08); box-shadow: none; }

/* Ortak çip */
.pos-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--lt-3); color: var(--tx-muted); }
.pos-chip.tone-pink { background: var(--ac-soft); color: var(--ac-lo); }
.pos-chip.tone-violet { background: var(--lt-3); color: var(--tx); }
.pos-chip.tone-amber { background: #fff1d6; color: #a15c07; }
.pos-chip.tone-green { background: #dcfce7; color: #166534; }
.pos-chip.tone-blue { background: #e0e7ff; color: #3730a3; }
.pos-chip.tone-gray { background: var(--lt-3); color: var(--tx-muted); }

.ts-rail form { display: block; }
.ts-rail form .ts-rail-btn { width: 100%; }
.ts-rail-btn.is-accent { background: var(--pos-grad); color: var(--on-ac); }
.ts-rail-btn.is-accent:hover { background: var(--pos-grad); filter: brightness(1.08); }

/* ---------- Masa detayı ---------- */
.ts-detail { grid-template-columns: 78px minmax(280px, 340px) 1fr; }
.ts-order { grid-template-columns: 78px minmax(280px, 340px) 1fr 196px; }

.td-head { padding: 18px 20px 16px; border-bottom: 1px solid var(--border); }
.td-head small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ac-text); }
.td-head h2 { margin-top: 2px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; word-break: break-word; }
.td-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.td-meta strong { color: var(--text); }

.td-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.td-facts div { padding: 12px 10px; text-align: center; }
.td-facts div + div { border-left: 1px solid var(--border); }
.td-facts dt { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.td-facts dd { margin-top: 2px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.td-pay { border-top: 1px solid var(--border); background: var(--lt-1); }
.td-pay .ts-bills-foot { border-top: 0; background: transparent; padding-bottom: 12px; }
.td-pay-actions { display: grid; gap: 8px; padding: 0 16px 16px; }
.td-pay-actions form { display: block; }
.td-pay-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--on-ac); text-align: left; background: var(--pos-grad);
  box-shadow: 0 10px 20px -14px rgba(var(--dk-rgb),.7); transition: filter .15s, transform .1s;
}
.td-pay-btn:hover { filter: brightness(1.06); }
.td-pay-btn:active { transform: translateY(1px); }
.td-pay-btn .pos-ico { font-size: 22px; flex-shrink: 0; }
.td-pay-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.td-pay-btn small { font-size: 11px; font-weight: 500; opacity: .85; }
.td-pay-btn.is-cash { background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%); color: #fff; }
.td-pay-btn.is-card { background: linear-gradient(135deg, var(--dk-4) 0%, var(--dk) 100%); color: var(--on-dk); }
.td-pay-btn.is-close { background: linear-gradient(135deg, var(--dk-3) 0%, var(--dk-2) 100%); color: var(--on-dk); }
.td-pay-btn:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .5; box-shadow: none; }

.ts-crumb a { color: var(--muted); }
.ts-crumb a:hover { color: var(--ac-text); text-decoration: none; }

.td-orders { flex: 1; overflow-y: auto; padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-content: start; }
.td-orders > .ts-empty { grid-column: 1 / -1; }
.td-order { display: flex; flex-direction: column; border-radius: 16px; background: var(--lt); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.06), 0 10px 22px -16px rgba(var(--dk-rgb),.35); scroll-margin-top: 12px; }
.td-order:target { box-shadow: 0 0 0 3px rgba(var(--ac-rgb),.35), 0 10px 22px -16px rgba(var(--dk-rgb),.35); }
.td-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.td-order-head strong { display: block; font-size: 14px; font-weight: 600; word-break: break-all; }
.td-order-head small { font-size: 12px; color: var(--muted); }
.td-items { list-style: none; padding: 4px 16px; }
.td-items li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.td-items li:last-child { border-bottom: 0; }
.td-qty { min-width: 34px; font-weight: 700; color: var(--ac-text); font-variant-numeric: tabular-nums; }
.td-item-name { flex: 1; min-width: 0; font-weight: 500; }
.td-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--lt-1); border-radius: 0 0 16px 16px; }
.td-order-foot strong { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.td-order-actions { display: flex; gap: 6px; }

/* ---------- Sipariş oluştur ---------- */
.to-search { width: min(280px, 100%); padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--lt); font-family: inherit; font-size: 13px; color: var(--text); }
.to-search:focus { outline: 3px solid var(--primary-light); border-color: var(--ac-text); }
.to-alpha-nav { width: 100%; padding: 4px 2px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.to-alpha-nav::-webkit-scrollbar { display: none; }
.to-alpha-track { display: inline-flex; align-items: center; gap: 3px; min-width: 100%; }
.to-alpha-btn {
  min-width: 28px; height: 28px; padding: 0 4px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--lt-1); color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; display: grid; place-items: center; transition: all .15s ease; flex-shrink: 0; user-select: none;
}
.to-alpha-btn.has-items { color: var(--text); background: var(--lt); border-color: var(--border); }
.to-alpha-btn.has-items:hover { background: var(--primary); color: #fff; border-color: var(--ac-text); transform: translateY(-1px); }
.to-alpha-btn.is-active { background: var(--pos-grad, var(--primary)); color: var(--on-ac, #fff); border-color: transparent; box-shadow: 0 4px 10px rgba(var(--ac-rgb, 79, 70, 229), 0.35); }
.to-alpha-btn.is-disabled { opacity: .3; cursor: default; background: transparent; border-color: transparent; }
.to-product.is-jump-highlight {
  animation: pulse-jump 1.5s ease-out;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(var(--ac-rgb, 79, 70, 229), 0.45), 0 10px 25px rgba(0, 0, 0, 0.18) !important;
}
@keyframes pulse-jump {
  0% { transform: scale(1.04); }
  25% { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(var(--ac-rgb, 79, 70, 229), 0.6); }
  100% { transform: scale(1); }
}
.to-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.to-product {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; border: 2px solid transparent; border-radius: 16px;
  background: var(--lt); font-family: inherit; color: var(--text); text-align: center; cursor: pointer;
  box-shadow: 0 1px 2px rgba(var(--dk-rgb),.06), 0 10px 22px -16px rgba(var(--dk-rgb),.35); transition: transform .12s, border-color .12s;
}
.to-product:hover { transform: translateY(-2px); }
.to-product:active { transform: scale(.98); }
.to-product.is-in { border-color: var(--ac-text); }
.to-product[hidden] { display: none !important; }
.to-thumb { position: relative; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, var(--ac-soft), var(--lt-3)); color: var(--ac-text); font-size: 22px; font-weight: 700; }
.to-thumb img { width: 100%; height: 100%; object-fit: cover; }
.to-seq-badge { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(15, 23, 42, 0.78); color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.25); backdrop-filter: blur(2px); }
.to-seq-num { font-weight: 800; color: var(--ac-text); margin-right: 2px; }
.to-name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.to-price { font-size: 13px; font-weight: 700; color: var(--ac-text); font-variant-numeric: tabular-nums; }
.to-badge { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--pos-grad); color: var(--on-ac); font-style: normal; font-size: 12px; font-weight: 700; line-height: 24px; }

.to-line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info total" "step step"; gap: 8px 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.to-line-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; }
.to-line-info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-line-info small { font-size: 12px; color: var(--muted); }
.to-line b { grid-area: total; font-weight: 700; font-variant-numeric: tabular-nums; }
.to-stepper { grid-area: step; display: inline-flex; align-items: center; justify-self: start; border-radius: 12px; background: var(--lt-3); }
.to-stepper button { width: 34px; height: 32px; border: 0; background: transparent; font-family: inherit; font-size: 18px; font-weight: 600; color: var(--ac-text); cursor: pointer; border-radius: 12px; }
.to-stepper button:hover { background: var(--lt-3); }
.to-stepper span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 1200px) {
  .ts-detail { grid-template-columns: 72px 280px 1fr; }
  .ts-order { grid-template-columns: 72px 280px 1fr 170px; }
}
@media (max-width: 900px) {
  body.pos-screen .pos-shell { height: auto; overflow: visible; }
  .ts-detail, .ts-order { grid-template-columns: 1fr; }
  .ts-detail { grid-template-areas: "rail" "floor" "bills"; }
  .td-orders { overflow: visible; grid-template-columns: 1fr; padding: 4px 12px 16px; }
  .to-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ts-order .ts-bills { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -12px 30px -12px rgba(0,0,0,.35); }
  .ts-order .ts-bills-list { max-height: 30vh; }
  .to-search { width: 100%; }
}

/* ---------- Masa içi POS ekranı ---------- */
.ts-pos { grid-template-columns: 78px minmax(300px, 380px) 1fr 196px; }
.ts-rail { overflow-y: auto; scrollbar-width: none; }
.ts-rail .ts-rail-end { margin-top: auto; }
.pos-ico.is-flip { transform: scaleX(-1); }
.to-search-wrap { position: relative; display: inline-flex; align-items: center; }
.to-search-wrap svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ac-text); pointer-events: none; }
.to-search-wrap .to-search { padding-left: 36px; border-radius: 999px; border-color: var(--line); }
.to-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.to-thumb i { font-style: normal; font-size: 28px; }
.to-product { align-items: stretch; text-align: left; padding: 8px 8px 10px; gap: 4px; }
.to-name, .to-price { padding: 0 4px; }

.pb-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pb-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; background: var(--pos-grad); color: var(--on-ac); font-size: 12px; font-weight: 700; }
.pb-table { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-waiter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: linear-gradient(135deg, var(--ac-hi), var(--ac-lo)); color: var(--on-ac); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pb-waiter .pos-ico { font-size: 13px; }

.pb-list { padding-bottom: 8px; }
.pb-cart { margin: 10px 12px 4px; border-radius: 14px; border: 2px dashed var(--ac-muted); background: var(--ac-softer); }
.pb-cart-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 12px; color: var(--primary-dark); }
.pb-link { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ac-text); cursor: pointer; }
.pb .to-line { grid-template-columns: auto 1fr auto; grid-template-areas: none; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--ac-soft); }
.pb .to-line .to-stepper, .pb .to-line .to-line-info, .pb .to-line b { grid-area: auto; }
.pb .to-stepper button { width: 28px; height: 28px; }
.pb .to-stepper span { min-width: 20px; }
.pb-cart-form { padding: 10px 12px 12px; }
.pb-send { width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--pos-grad); color: var(--on-ac); font: 600 14px var(--font); cursor: pointer; }
.pb-send strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.pb-send:disabled { opacity: .5; cursor: not-allowed; }

.pb-order { padding: 4px 0; border-bottom: 1px solid var(--border); }
.pb-order-head { display: flex; align-items: center; gap: 8px; padding: 8px 16px 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.pb-order-actions { margin-left: auto; display: flex; gap: 6px; }
.pb-mini { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--lt); font: 600 11px var(--font); color: var(--text); cursor: pointer; white-space: nowrap; }
.pb-mini:hover { border-color: var(--ac-text); color: var(--ac-text); }
.pb-mini.is-primary { background: var(--pos-grad); color: var(--on-ac); border-color: transparent; }
.pb-line { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: start; padding: 9px 16px; }
.pb-line + .pb-line { border-top: 1px solid var(--lt-3); }
.pb-qty { font-weight: 700; color: var(--ac-text); font-variant-numeric: tabular-nums; }
.pb-name { min-width: 0; font-weight: 500; line-height: 1.3; }
.pb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.pb-tags:empty { display: none; }
.pb-tags .pos-chip { padding: 1px 6px; font-size: 10px; font-style: normal; }
.pb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pb-dot.tone-amber { background: #f59e0b; }
.pb-dot.tone-green { background: #22c55e; }
.pb-dot.tone-violet { background: var(--tx-muted); }
.pb-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-price s { color: var(--muted); font-weight: 500; }
.pb-line.is-void { opacity: .55; }
.pb-line.is-void .pb-name > :first-child, .pb-line.is-void .pb-price { text-decoration: line-through; }
.pb-line.is-void .pb-qty { color: var(--muted); }
.pb-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 20px; text-align: center; color: var(--muted); }
.pb-empty > .pos-ico { font-size: 44px; margin-bottom: 6px; }
.pb-empty p { font-weight: 600; color: var(--text); }

.pb-foot { border-top: 1px solid var(--border); background: var(--lt-1); padding: 12px 16px 16px; }
.pb-sums { margin-bottom: 10px; font-size: 12px; }
.pb-sums div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--muted); }
.pb-sums dd { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.pb-pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-pay-btn {
  padding: 14px 26px; border: 0; border-radius: 14px; cursor: pointer; font: 700 15px var(--font); letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%); box-shadow: 0 12px 22px -14px rgba(22,163,74,.9);
}
.pb-pay-btn:hover { filter: brightness(1.05); }
.pb-pay-btn:disabled { filter: grayscale(.8); opacity: .5; cursor: not-allowed; box-shadow: none; }
.pb-total { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Modal ---------- */
.pos-modal { margin: auto; padding: 0; border: 0; background: transparent; max-width: calc(100vw - 24px); width: 460px; color: var(--text); font-family: var(--font); }
.pos-modal.pm-wide { width: 640px; }
.pos-modal::backdrop { background: rgba(var(--dk-rgb),.62); backdrop-filter: blur(3px); }
.pos-modal[open] { animation: pm-in .16s ease-out; }
@keyframes pm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.pm-card { display: flex; flex-direction: column; max-height: calc(100vh - 40px); border-radius: 20px; background: var(--lt); box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); overflow: hidden; }
.pm-card > form { display: flex; flex-direction: column; min-height: 0; }
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pm-head h3 { font-size: 16px; font-weight: 700; }
.pm-x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--lt-3); font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.pm-x:hover { color: var(--text); }
.pm-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border); background: var(--lt-1); }
.pm-foot .btn-danger { margin-right: auto; }
.pm-hint { font-size: 12px; color: var(--muted); }
.pm-empty { padding: 18px; border-radius: 12px; background: var(--lt-1); text-align: center; color: var(--muted); font-size: 13px; }
.pm-sub { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pm-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--border); }
.pm-tabs button { padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.pm-tabs button em { font-style: normal; font-size: 11px; opacity: .7; }
.pm-tabs button.is-on { color: var(--ac-text); border-bottom-color: var(--ac-text); }

.pm-amount { display: flex; flex-direction: column; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(150deg, var(--ac-softer), var(--lt-2)); }
.pm-amount small { font-size: 12px; color: var(--muted); }
.pm-amount strong { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pm-method { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--border); background: var(--lt); font: 600 13px var(--font); color: var(--text); cursor: pointer; }
.pm-method .pos-ico { font-size: 26px; color: var(--ac-text); }
.pm-method:hover { border-color: var(--ac-text); background: var(--ac-softer); }
.pm-submit { width: 100%; padding: 14px; border: 0; border-radius: 14px; background: var(--pos-grad); color: var(--on-ac); font: 700 15px var(--font); cursor: pointer; }

.pk-list { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--lt); cursor: pointer; }
.pk-row.is-static { cursor: default; }
.pk-row input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ac-text); flex-shrink: 0; }
.pk-row:has(input[type="radio"]:checked) { border-color: var(--ac-text); background: var(--ac-softer); }
.pk-qty { min-width: 30px; font-weight: 700; color: var(--ac-text); font-variant-numeric: tabular-nums; }
.pk-name { flex: 1; min-width: 0; font-weight: 500; }
.pk-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.pk-name .pos-chip { font-style: normal; font-size: 10px; padding: 1px 6px; }
.pk-row strong { font-variant-numeric: tabular-nums; }

.pm-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
.pm-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pm-field input[type="text"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font: 500 14px var(--font); color: var(--text); }
.pm-field input:focus { outline: 3px solid var(--primary-light); border-color: var(--ac-text); }
.pm-stepper { display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--lt); overflow: hidden; }
.pm-stepper button { width: 38px; height: 40px; border: 0; background: var(--lt-1); font: 600 18px var(--font); color: var(--ac-text); cursor: pointer; }
.pm-stepper input { width: 56px; height: 40px; border: 0; text-align: center; font: 700 15px var(--font); color: var(--text); -moz-appearance: textfield; }
.pm-stepper input::-webkit-outer-spin-button, .pm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pm-stepper.is-sm button { width: 30px; height: 32px; }
.pm-stepper.is-sm input { width: 40px; height: 32px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-chips button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--lt); font: 500 12px var(--font); color: var(--text); cursor: pointer; }
.pm-chips button:hover, .pm-chips button.is-on { border-color: var(--ac-text); color: var(--ac-text); background: var(--ac-softer); }
.pm-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.pm-check input { width: 18px; height: 18px; accent-color: var(--ac-text); }
.pm-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--lt-3); }
.pm-seg button { padding: 9px; border: 0; border-radius: 9px; background: none; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.pm-seg button.is-on { background: var(--lt); color: var(--ac-text); box-shadow: 0 2px 8px -4px rgba(var(--dk-rgb),.3); }
.pm-big input[type="text"] { font-size: 26px; font-weight: 700; padding: 10px 44px 10px 14px; }
.pm-unit-wrap { position: relative; display: block; }
.pm-unit-wrap em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 20px; font-weight: 700; color: var(--muted); }
[data-discount].is-invalid .pm-big input { border-color: var(--danger); outline-color: #fee2e2; }
.pm-sum { border-radius: 12px; background: var(--lt-1); padding: 10px 14px; font-size: 13px; }
.pm-sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.pm-sum dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-sum .is-total { margin-top: 4px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 15px; }
.pm-sum .is-total dd { color: var(--ac-text); font-size: 17px; }
.pm-radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.pm-radio { display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 12px; border: 2px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.pm-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pm-radio:has(input:checked) { border-color: var(--ac-text); background: var(--ac-softer); color: var(--ac-text); }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; }
.mv-table { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 14px; border: 2px solid var(--border); background: var(--lt); cursor: pointer; text-align: center; }
.mv-table input { position: absolute; opacity: 0; pointer-events: none; }
.mv-table strong { font-size: 14px; }
.mv-table small { font-size: 11px; color: var(--muted); }
.mv-table.is-busy { background: linear-gradient(150deg, var(--st-occupied-hi), var(--st-occupied)); border-color: transparent; color: var(--st-occupied-on); }
.mv-table.is-busy small { color: inherit; opacity: .85; }
.mv-table:has(input:checked) { border-color: var(--dk); box-shadow: 0 0 0 3px rgba(var(--ac-rgb),.35); }
.mv-table:has(input:disabled) { opacity: .5; cursor: not-allowed; }

@media (max-width: 1200px) {
  .ts-pos { grid-template-columns: 72px 300px 1fr 160px; }
}
@media (max-width: 900px) {
  .ts-pos { grid-template-columns: 1fr; }
  .ts-pos .ts-bills { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -12px 30px -12px rgba(0,0,0,.35); }
  .ts-pos .pb-list { max-height: 34vh; }
  .ts-rail .ts-rail-end { margin-top: 0; }
  .pm-grid { grid-template-columns: 1fr; }
}

/* ---------- Ayarlar: Panel Teması ---------- */
.theme-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.theme-preset { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 2px solid var(--border); background: var(--lt); font: 500 12px var(--font); color: var(--text); cursor: pointer; }
.theme-preset:hover { border-color: var(--line-strong); }
.theme-preset.is-on { border-color: var(--ac-text); background: var(--ac-softer); }
.theme-dots { display: inline-flex; }
.theme-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--lt); box-shadow: 0 0 0 1px var(--line); }
.theme-dots i + i { margin-left: -5px; }

.theme-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 22px; align-items: start; }
.theme-fields { display: flex; flex-direction: column; gap: 10px; }
.theme-field { display: grid; grid-template-columns: 52px 1fr 110px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--lt-1); }
.theme-field label { margin: 0; font-size: 14px; }
.theme-field small { display: block; color: var(--muted); font-size: 12px; }
form .theme-field input[type="color"] { width: 52px; height: 44px; padding: 3px; border-radius: 12px; cursor: pointer; background: var(--lt); }
form .theme-field input[type="text"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; text-transform: uppercase; text-align: center; }

.theme-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--lt-2); }
.tp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--dk); color: var(--on-dk); font-size: 11px; }
.tp-bar strong { margin-right: auto; letter-spacing: .03em; }
.tp-bar strong span { color: var(--ac-hi); font-style: italic; margin-left: 1px; }
.tp-bar i { width: 18px; height: 18px; border-radius: 6px; background: rgba(var(--on-dk-rgb),.12); }
.tp-bar i:last-child { background: var(--pos-grad); }
.tp-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; padding: 12px; background: linear-gradient(135deg, var(--dk-2), var(--dk)); }
.tp-tiles { display: grid; gap: 8px; }
.tp-tiles span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: linear-gradient(160deg, var(--dk-3), var(--dk-2)); color: var(--on-dk); font-size: 10px; }
.tp-tiles b { width: 26px; height: 26px; border-radius: 8px; background: var(--pos-grad); }
.tp-card { display: flex; flex-direction: column; border-radius: 12px; background: var(--lt); color: var(--tx); font-size: 10px; overflow: hidden; }
.tp-line { display: flex; gap: 5px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.tp-line em { font-style: normal; font-weight: 700; color: var(--ac-text); }
.tp-line strong { margin-left: auto; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 8px 9px; background: var(--lt-1); }
.tp-btn { padding: 5px 9px; border-radius: 7px; background: var(--pos-grad); color: var(--on-ac); font-weight: 700; }

@media (max-width: 900px) {
  .theme-layout { grid-template-columns: 1fr; }
  .theme-field { grid-template-columns: 48px 1fr; }
  .theme-field input[type="text"] { grid-column: 1 / -1; }
}


/* Ayarlar: Masa Durum Renkleri */
.tsc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tsc-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--lt-1); }
.ts-card.tsc-preview { flex-shrink: 0; width: 92px; min-height: 76px; padding: 16px 6px 10px; border-radius: 12px; box-shadow: 0 1px 2px rgba(var(--dk-rgb),.08), inset 0 0 0 1px rgba(var(--dk-rgb),.08); animation: none; }
.ts-card.tsc-preview:hover { transform: none; }
.ts-card.tsc-preview::before { top: 6px; width: 24px; height: 4px; margin-left: -12px; }
.tsc-preview .ts-card-name { font-size: 13px; }
.tsc-preview .ts-card-sub { font-size: 11px; }
.tsc-info { flex: 1; min-width: 0; }
form .tsc-info label { margin: 0; font-size: 14px; }
.tsc-info small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.tsc-inputs { display: flex; gap: 6px; }
form .tsc-inputs input[type="color"] { width: 40px; height: 36px; padding: 2px; border-radius: 10px; cursor: pointer; flex-shrink: 0; }
form .tsc-inputs input[type="text"] { height: 36px; padding: 6px 8px; font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; text-align: center; }


/* ---------- Onay penceresi (pos-confirm.js) ---------- */
.pos-modal.pcf { width: 400px; overflow: visible; }
.pcf-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 26px 22px; border-radius: 24px; background: var(--lt); color: var(--tx); box-shadow: 0 40px 80px -24px rgba(0,0,0,.6); }
.pcf-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px; background: var(--ac-soft); color: var(--ac-lo); }
.pcf-icon svg { width: 30px; height: 30px; }
.pcf[data-tone="success"] .pcf-icon { background: #dcfce7; color: #15803d; }
.pcf[data-tone="danger"] .pcf-icon { background: #fee2e2; color: #b91c1c; }
.pcf-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pcf-card p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--tx-muted); }
.pcf-amount { width: 100%; margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--lt-2); font-size: 30px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pcf[data-tone="success"] .pcf-amount { background: #f0fdf4; color: #166534; }
.pcf[data-tone="danger"] .pcf-amount { background: #fef2f2; color: #991b1b; }
.pcf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 22px; }
.pcf-btn { padding: 13px 14px; border-radius: 14px; border: 0; font: 600 14px var(--font); cursor: pointer; transition: filter .15s, transform .1s, background .15s; }
.pcf-btn:active { transform: translateY(1px); }
.pcf-btn.is-ghost { background: var(--lt-3); color: var(--tx); }
.pcf-btn.is-ghost:hover { background: var(--lt-4); }
.pcf-btn.is-ok { background: var(--pos-grad); color: var(--on-ac); box-shadow: 0 12px 22px -14px rgba(var(--ac-rgb),.9); }
.pcf[data-tone="success"] .pcf-btn.is-ok { background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%); color: #fff; box-shadow: 0 12px 22px -14px rgba(22,163,74,.9); }
.pcf[data-tone="danger"] .pcf-btn.is-ok { background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%); color: #fff; box-shadow: 0 12px 22px -14px rgba(220,38,38,.9); }
.pcf-btn.is-ok:hover { filter: brightness(1.05); }
.pcf-btn:focus-visible { outline: 3px solid rgba(var(--ac-rgb),.45); outline-offset: 2px; }
.pcf-btn:disabled { cursor: progress; opacity: .75; }
.pcf-btn.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: pcf-spin .7s linear infinite; }
@keyframes pcf-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .pcf-card { padding: 24px 18px 18px; } .pcf-amount { font-size: 26px; } }

/* ---------- Adisyon satırı (ürün başı işlemler) ---------- */
.pl { padding: 10px 14px 10px 16px; border-top: 1px solid var(--line); }
.pb-order-head + .pl { border-top: 0; }
.pl-top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.pl-name { min-width: 0; font-weight: 600; line-height: 1.25; }
.pl-note { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--ac-lo); }
.pl-note .pos-ico { font-size: 11px; flex-shrink: 0; }
.pl-step { display: inline-flex; align-items: center; border-radius: 10px; background: var(--lt-3); }
.pl-step form { display: contents; }
.pl-step button { width: 28px; height: 28px; border: 0; border-radius: 10px; background: transparent; font: 600 17px var(--font); color: var(--tx); cursor: pointer; }
.pl-step button:hover:not(:disabled) { background: var(--lt-4); }
.pl-step button:disabled { color: var(--line-strong); cursor: not-allowed; }
.pl-step b { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-qty { font-weight: 700; color: var(--tx-muted); font-variant-numeric: tabular-nums; }
.pl-price { display: flex; flex-direction: column; align-items: flex-end; min-width: 76px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-price b { font-weight: 700; }
.pl-price s { font-size: 11px; color: var(--muted); }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.pl-meta:empty { display: none; }
.pl-meta .pos-chip { padding: 1px 7px; font-size: 10px; font-style: normal; }
.pl-status { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; color: var(--muted); }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pl-actions form { display: contents; }
.pl-act { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 0; border-radius: 8px; font: 600 12px var(--font); cursor: pointer; transition: filter .15s; }
.pl-act .pos-ico { font-size: 12px; }
.pl-act:hover { filter: brightness(.96); }
.pl-act.is-discount { background: #e0ecff; color: #1d4ed8; }
.pl-act.is-note { background: var(--ac-soft); color: var(--ac-lo); }
.pl-act.is-gift { background: #dcfce7; color: #15803d; }
.pl-trash { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #fee2e2; color: #dc2626; cursor: pointer; }
.pl-actions > form.pl-remove { display: block; margin-left: auto; }
.pl-trash svg { width: 16px; height: 16px; }
.pl-trash:hover { background: #fecaca; }
.pl.is-void { opacity: .55; }
.pl.is-void .pl-name, .pl.is-void .pl-price s { text-decoration: line-through; }
.pl.is-paid { background: var(--lt-1); }
.pl.is-paid .pl-name { color: var(--muted); }
.pm-textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font: 500 14px var(--font); color: var(--text); resize: vertical; }
.pm-textarea:focus { outline: 3px solid var(--primary-light); border-color: var(--ac-text); }

/* ---------- Ödeme ekranı ---------- */
.ts-pos { position: relative; }
.pay {
  position: absolute; inset: 0; z-index: 25;
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(260px, .95fr) minmax(320px, 1.05fr);
  gap: 1px; background: var(--line); color: var(--tx);
}
.pay[hidden] { display: none !important; }
.pay-col { display: flex; flex-direction: column; min-height: 0; background: var(--lt); }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.pay-head strong { font-size: 16px; font-weight: 700; }
.pay-head-note { font-size: 12px; color: var(--muted); }
.pay-head-note b { color: var(--ac-lo); font-variant-numeric: tabular-nums; }

.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.pay-tabs button { position: relative; padding: 12px; border: 0; background: none; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.pay-tabs button em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 10px; background: var(--pos-grad); color: var(--on-ac); font-style: normal; font-size: 11px; }
.pay-tabs button.is-on { color: var(--ac-text); }
.pay-tabs button.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ac); }

.pay-list { flex: 1; overflow-y: auto; }
.pay-item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; transition: background .12s;
}
.pay-item:hover { background: var(--lt-1); }
.pay-item:focus-visible { outline: 3px solid rgba(var(--ac-rgb),.4); outline-offset: -3px; }
.pay-item-name { min-width: 0; font-weight: 600; }
.pay-item-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.pay-item-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-item-qty { display: none; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: var(--lt); box-shadow: inset 0 0 0 1px rgba(var(--ac-rgb),.35); font-size: 12px; color: var(--tx-muted); }
.pay-item-qty button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; font: 600 15px var(--font); color: var(--ac-lo); cursor: pointer; }
.pay-item-qty b { color: var(--tx); font-variant-numeric: tabular-nums; }
.pay-item.is-selected { background: var(--ac-soft); box-shadow: inset 4px 0 0 var(--ac); }
.pay-item.is-selected .pay-item-name, .pay-item.is-selected .pay-item-amt { color: var(--ac-lo); }
.pay-item.is-selected .pay-item-qty { display: inline-flex; }
.pay-item.is-static { cursor: default; grid-template-columns: 1fr auto; }
.pay-item.is-static:hover { background: none; }
.pay-empty { padding: 24px 16px; color: var(--muted); font-size: 13px; }

.pay-left-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--lt-1); text-align: center; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; text-align: left; }
.pay-total span { color: var(--muted); font-weight: 600; }
.pay-total strong { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-left-foot small { display: block; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.pay-all { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--pos-grad); color: var(--on-ac); font: 700 14px var(--font); cursor: pointer; box-shadow: 0 10px 20px -14px rgba(var(--ac-rgb),.9); }
.pay-all.is-clear { background: linear-gradient(135deg, #f87171, #dc2626); color: #fff; box-shadow: 0 10px 20px -14px rgba(220,38,38,.9); }
.pay-all:disabled { opacity: .45; cursor: not-allowed; }

.pay-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--lt-1); font: 600 13px var(--font); color: var(--tx); cursor: pointer; }
.pay-back svg { width: 16px; height: 16px; }
.pay-back:hover { background: var(--lt-3); }
.pay-payments { flex: 1; overflow-y: auto; margin: 12px; padding: 4px; border-radius: 14px; background: var(--lt-2); }
.pay-payments .pay-empty { padding: 14px 12px; }
.pay-payment { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin: 6px; padding: 10px 12px; border-radius: 12px; background: var(--lt); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.06); }
.pay-payment form { display: contents; }
.pay-payment span { font-weight: 600; }
.pay-payment small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.pay-payment strong { font-variant-numeric: tabular-nums; color: #15803d; }
.pay-payment.is-refunded { opacity: .6; }
.pay-payment.is-refunded strong { color: var(--muted); text-decoration: line-through; }
.pay-summary { margin: 0 12px 12px; padding: 12px 14px; border-radius: 14px; background: var(--lt-2); font-size: 14px; }
.pay-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.pay-summary dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-summary .is-remaining { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--ac-lo); }
.pay-summary .is-remaining dd { font-weight: 700; }

.pay-right { gap: 8px; padding: 12px; background: var(--lt-1); overflow-y: auto; }
.pay-display { position: relative; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--lt); }
.pay-display small { display: block; font-size: 11px; color: var(--muted); }
.pay-display strong { display: block; margin-bottom: 4px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-display strong.is-accent { color: var(--ac-text); }
.pay-display.is-shake { animation: pay-shake .35s; }
@keyframes pay-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pay-hint { position: absolute; right: 10px; top: 10px; max-width: 60%; padding: 5px 9px; border-radius: 8px; background: #fee2e2; color: #b91c1c; font-size: 12px; font-weight: 600; }
.pay-fractions, .pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-fractions button { padding: 9px; border: 0; border-radius: 10px; background: var(--dk); color: var(--on-dk); font: 700 13px var(--font); cursor: pointer; }
.pay-fractions button:hover { background: var(--dk-3); }
.pay-pad { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(46px, 1fr); gap: 6px; }
.pay-pad button { border: 1px solid var(--line); border-radius: 12px; background: var(--lt); font: 600 20px var(--font); color: var(--tx); cursor: pointer; box-shadow: 0 1px 1px rgba(var(--dk-rgb),.05); transition: background .1s, transform .08s; }
.pay-pad button:hover { background: var(--lt-2); }
.pay-pad button:active { transform: scale(.97); background: var(--lt-3); }
.pay-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pay-edit button { padding: 10px; border: 0; border-radius: 10px; font: 700 13px var(--font); color: #fff; cursor: pointer; background: #64748b; }
.pay-edit button + button { background: #475569; }
.pay-method { padding: 12px 6px; border: 0; border-radius: 10px; font: 700 13px var(--font); color: #fff; cursor: pointer; transition: filter .15s, transform .08s; }
.pay-method:hover { filter: brightness(1.08); }
.pay-method:active { transform: scale(.98); }
.pay-method.is-green { background: #15803d; }
.pay-method.is-blue { background: #1d4ed8; }
.pay-method.is-indigo { background: #4338ca; }
.pay-method.is-purple { background: #7e22ce; }
.pay-method.is-teal { background: #0f766e; }
.pay-method.is-slate { background: #334155; }
.pay-complete { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--pos-grad); color: var(--on-ac); font: 700 14px var(--font); cursor: pointer; }
.pay-complete:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Mutfak ekranı ---------- */
.kds-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kds-counts { display: flex; gap: 8px; }
.kds-count { padding: 7px 12px; border-radius: 10px; background: var(--lt); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.kds-count strong { color: var(--text); margin-right: 3px; }
.kds-count.is-new { background: var(--ac-soft); border-color: transparent; color: var(--ac-lo); }
.kds-count.is-new strong { color: var(--ac-lo); }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.kds-card { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.kds-card.is-draft { border-color: var(--ac-text); box-shadow: 0 0 0 4px rgba(var(--ac-rgb),.12), var(--shadow); }
.kds-card.is-ready { border-color: #86efac; }
.kds-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.kds-head strong { display: block; font-size: 17px; font-weight: 700; }
.kds-head small { font-size: 12px; color: var(--muted); }
.kds-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.kds-age { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kds-age .pos-ico { font-size: 13px; }
.kds-age.is-late { color: #dc2626; }
.kds-items { list-style: none; padding: 4px 14px; }
.kds-items li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.kds-items li:last-child { border-bottom: 0; }
.kds-items li form { display: contents; }
.kds-items li.is-done .kds-name { color: var(--muted); text-decoration: line-through; }
.kds-qty { min-width: 32px; font-size: 16px; font-weight: 800; color: var(--ac-text); }
.kds-name { flex: 1; min-width: 0; font-weight: 600; }
.kds-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.kds-note { display: flex; align-items: center; gap: 4px; margin-top: 3px; padding: 3px 7px; border-radius: 7px; background: #fef3c7; color: #92400e; font-size: 12px; font-style: normal; font-weight: 600; text-decoration: none; }
.kds-note .pos-ico { font-size: 12px; }
.kds-item-btn { padding: 7px 14px; border: 0; border-radius: 9px; background: #16a34a; color: #fff; font: 700 13px var(--font); cursor: pointer; }
.kds-item-btn:hover { filter: brightness(1.08); }
.kds-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #16a34a; }
.kds-foot { padding: 10px 14px 14px; border-top: 1px solid var(--border); background: var(--lt-1); }
.kds-main { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 0; border-radius: 12px; font: 700 14px var(--font); cursor: pointer; }
.kds-main .pos-ico { font-size: 18px; }
.kds-main.is-confirm { background: var(--pos-grad); color: var(--on-ac); box-shadow: 0 10px 20px -14px rgba(var(--ac-rgb),.9); }
.kds-main.is-ready { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 10px 20px -14px rgba(22,163,74,.9); }
.kds-waiting { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 700; }

@media (max-width: 1100px) {
  .pay { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; overflow-y: auto; }
  .pay-mid { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  .pay { position: fixed; top: 60px; grid-template-columns: 1fr; }
  .pay-mid { order: 3; }
  .pay-list { max-height: 40vh; }
  .pay-pad { grid-auto-rows: 50px; }
}

/* ---------- Modül sayfaları (sidebar'sız) ---------- */
body.pos-page { background: var(--lt-2); }
.pos-page .pos-brand { align-items: center; }
.pos-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--on-dk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-crumb::before { content: "›"; font-size: 16px; line-height: 1; color: var(--on-dk-muted); }
button.pos-status-item { border: 0; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.pos-switch-btn .pos-ico { color: var(--ac-hi) !important; }

.pg-tabs {
  position: sticky; top: 68px; z-index: 20;
  display: flex; gap: 6px; padding: 8px 24px; overflow-x: auto; scrollbar-width: none;
  background: var(--dk-2); border-bottom: 1px solid var(--pos-line);
}
.pg-tabs a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  color: var(--on-dk-soft); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s;
}
.pg-tabs a .pos-ico { font-size: 16px; opacity: .8; }
.pg-tabs a:hover { background: var(--pos-glass-hi); color: var(--on-dk); text-decoration: none; }
.pg-tabs a.is-on { background: var(--pos-grad); color: var(--on-ac); box-shadow: 0 8px 18px -12px rgba(var(--ac-rgb),.9); }
.pg-tabs a.is-on .pos-ico { opacity: 1; }

.pg-main { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 22px 28px 48px; }
.pg-main > .flash { display: flex; align-items: center; gap: 10px; border-radius: 14px; }

/* Modül geçiş penceresi */
.pos-modal.pg-switch { width: 720px; }
.pg-switch-card { border-radius: 24px; padding: 18px; background: linear-gradient(160deg, var(--dk-2), var(--dk)); color: var(--on-dk); box-shadow: 0 40px 80px -24px rgba(0,0,0,.7); }
.pg-switch-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 2px 4px; }
.pg-switch-card header strong { font-size: 16px; letter-spacing: .02em; }
.pg-switch-card .pos-icon-btn { font-size: 20px; color: var(--on-dk-soft); }
.pg-switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.pg-switch-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 14px 8px;
  border-radius: 18px; background: linear-gradient(160deg, var(--dk-3), var(--dk-2)); border: 1px solid var(--pos-line);
  color: var(--on-dk); font-size: 13px; font-weight: 500; text-align: center; transition: transform .15s, background .15s;
}
.pg-switch-tile .pos-ico { font-size: 38px; }
.pg-switch-tile:hover { transform: translateY(-2px); background: linear-gradient(160deg, var(--dk-4), var(--dk-3)); text-decoration: none; }
.pg-switch-tile.is-on { box-shadow: inset 0 0 0 2px var(--ac); }
.pg-switch-tile.is-disabled { opacity: .45; cursor: default; }
.pg-switch-tile em { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 9px; padding: 2px 6px; border-radius: 6px; background: var(--pos-glass-hi); }

/* Kartlar */
.pos-page .card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05), 0 14px 34px -22px rgba(var(--dk-rgb),.28); margin-bottom: 20px; }
.pos-page .card-header { flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pos-page .card-header h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pos-page .card-header > div { flex-wrap: wrap; }
.pos-page .card-body { padding: 20px 22px; }
.pos-page .card-body.nopad { padding: 0; }
.pos-page .section-title, .pos-page h3 { font-size: 14px; font-weight: 700; color: var(--text); }

/* Tablolar */
.pos-page table.tbl th { background: transparent; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--muted); white-space: nowrap; }
.pos-page table.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--lt-3); vertical-align: middle; }
.pos-page table.tbl tbody tr:hover td { background: var(--ac-softer); }
.pos-page table.tbl td:first-child, .pos-page table.tbl th:first-child { padding-left: 4px; }
.pos-page .card-body.nopad table.tbl td:first-child, .pos-page .card-body.nopad table.tbl th:first-child { padding-left: 22px; }
.pos-page table.tbl td:last-child { white-space: nowrap; }
.pos-page table.tbl td .inline-form, .pos-page table.tbl td form { display: inline-flex; }
.pos-page table.tbl a:not(.btn) { color: var(--text); font-weight: 600; }
.pos-page table.tbl a:not(.btn):hover { color: var(--ac-text); text-decoration: none; }
.pos-page table.tbl td.empty { padding: 40px 14px; }

/* Butonlar */
.pos-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px; line-height: 1.2; }
.pos-page .btn-sm { min-height: 32px; padding: 0 12px; border-radius: 10px; }
.pos-page .btn-block { display: flex; width: 100%; }
.pos-page .btn-secondary { background: var(--lt); color: var(--text); border: 1px solid var(--line); }
.pos-page .btn-secondary:hover { background: var(--lt-2); border-color: var(--line-strong); }
.pos-page .btn-danger { background: #fee2e2; color: #b91c1c; border: 1px solid transparent; }
.pos-page .btn-danger:hover { background: #fecaca; }
.pos-page .btn-success { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; }

/* Formlar */
.pos-page form .form-group { margin-bottom: 16px; }
.pos-page form label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.pos-page form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
.pos-page form select {
  min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--lt-1); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s;
}
.pos-page form textarea { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--lt-1); }
.pos-page form input:focus, .pos-page form select:focus, .pos-page form textarea:focus { outline: none; background: var(--lt); border-color: var(--ac-text); box-shadow: 0 0 0 4px rgba(var(--ac-rgb),.16); }
.pos-page form input[disabled] { color: var(--muted); background: var(--lt-2); }
.pos-page form input[type="file"] { padding: 10px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--lt-1); }
.pos-page form input[type="checkbox"], .pos-page form input[type="radio"] { width: 18px; height: 18px; }
.pos-page .form-row { gap: 16px; }
.pos-page .form-hint { color: var(--muted); }

/* Arama / filtre çubuğu */
.pos-page .search-bar { flex-wrap: wrap; align-items: center; padding: 10px; margin-bottom: 18px; border-radius: 16px; background: var(--lt-1); border: 1px solid var(--line); }
.pos-page .search-bar input, .pos-page .search-bar select { min-height: 40px !important; background: var(--lt) !important; }
.pos-page .search-bar .btn { min-height: 40px; }

/* Rozetler */
.pos-page .badge { padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.pos-page .badge.gray, .pos-page .badge:not(.green):not(.red):not(.amber):not(.blue) { background: var(--lt-3); color: var(--tx-muted); }

/* İstatistik kutuları */
.pos-page .stats-grid { gap: 14px; }
.pos-page .stat { border: 0; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05), 0 14px 34px -22px rgba(var(--dk-rgb),.28); }
.pos-page .stat .label, .pos-page .stat .stat-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.pos-page .stat .value, .pos-page .stat .stat-val { font-size: 26px; }
.pos-page .kpi { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05), 0 14px 34px -22px rgba(var(--dk-rgb),.28); }

/* Sayfalama */
.pos-page .pagination { gap: 6px; margin-top: 18px; }
.pos-page .pagination a, .pos-page .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--lt); color: var(--text); }
.pos-page .pagination a:hover { border-color: var(--ac-text); color: var(--ac-text); text-decoration: none; }
.pos-page .pagination .current { background: var(--pos-grad); color: var(--on-ac); border-color: transparent; }

/* Rapor kutucukları */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pos-page .report-tile { flex-direction: row; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--lt); transition: transform .15s, border-color .15s, box-shadow .15s; }
.pos-page .report-tile:hover { transform: translateY(-2px); border-color: rgba(var(--ac-rgb),.45); box-shadow: 0 16px 30px -22px rgba(var(--dk-rgb),.45); }
.report-ico { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--ac-soft); }
.report-ico .pos-ico { font-size: 28px; }
.report-tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pos-page .report-tile strong { font-size: 15px; }

/* Diğer */
.pos-page .empty { padding: 48px 20px; }
.pos-page .empty .pos-ico { font-size: 52px; }
.pos-page .grid-item { border-radius: 16px; border-color: var(--line); }
.pos-page .alert { border-radius: 14px; }
.pos-page .flag-list label { display: flex; align-items: center; gap: 8px; }
.note-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.note-chip .pos-ico { font-size: 13px; }

@media (max-width: 768px) {
  .pg-tabs { top: 60px; padding: 8px 12px; }
  .pg-main { padding: 14px 12px 32px; }
  .pos-crumb { display: none; }
  .pos-page .card-header, .pos-page .card-body { padding-left: 14px; padding-right: 14px; }
  .pos-page .search-bar > * { flex: 1 1 100%; }
  .pos-switch-btn span { display: none; }
}


/* Garson / sipariş ekranı: sağ tarafta iOS rehber tarzı Fish-Eye A-Z şeridi */
.to-body { flex: 1; display: flex; min-height: 0; position: relative; overflow: hidden; }
.to-body > .to-grid { flex: 1; min-width: 0; }

.to-alpha-rail {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: calc(100% - 16px);
  margin: 8px 6px 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  user-select: none;
  z-index: 10;
}
.to-alpha-rail::-webkit-scrollbar { display: none; }

.to-alpha-rail .to-alpha-btn {
  width: 22px;
  height: 16px;
  flex: 1 1 0;
  min-height: 12px;
  max-height: 20px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}

.to-alpha-rail .to-alpha-btn:hover {
  background: rgba(var(--ac-rgb, 249, 115, 22), 0.12);
  color: var(--primary, #f97316);
}

.to-alpha-rail .to-alpha-btn.has-items {
  color: #0f172a;
  font-weight: 800;
}

.to-alpha-rail .to-alpha-btn.no-items {
  color: #94a3b8;
  font-weight: 600;
}

.to-alpha-rail .to-alpha-btn[data-alpha-jump=""] {
  flex: 0 0 auto;
  width: auto;
  height: 18px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 800;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.to-alpha-rail .to-alpha-btn.is-active {
  background: var(--pos-grad, var(--primary)) !important;
  color: #ffffff !important;
  font-weight: 900;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(var(--ac-rgb, 249, 115, 22), 0.35);
}

.to-alpha-label { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: var(--ac-soft); color: var(--ac-lo); font-size: 11px; font-weight: 700; }

@media (max-width: 900px) {
  .to-body { flex-direction: column; }
  .to-alpha-rail { width: auto; height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 4px 10px; margin: 0 0 6px; justify-content: flex-start; gap: 4px; border-radius: 12px; }
  .to-alpha-rail .to-alpha-btn { flex: 0 0 auto; width: 24px; height: 26px; max-height: none; font-size: 11px; }
  .to-alpha-rail .to-alpha-btn[data-alpha-jump=""] { width: auto; height: 26px; padding: 0 8px; font-size: 10px; margin-bottom: 0; }
  .to-alpha-bubble { display: none; }
}

/* ---------- Public QR menü (değişmedi) ---------- */
.menu-view { max-width: 480px; margin: 0 auto; padding: 20px 16px 60px; }
.menu-header { text-align: center; padding: 24px 0 14px; }
.menu-header h1 { font-size: 26px; }
.menu-cat { font-size: 17px; font-weight: 800; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 3px solid var(--primary); display: inline-block; }
.menu-item { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 12px; }
.menu-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; background: #f3f4f6; }
.menu-item .info { flex: 1; }
.menu-item .name { font-weight: 700; }
.menu-item .desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.menu-item .price { font-weight: 800; color: var(--ac-text); margin-top: 6px; }
.waiter-fab { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 420px; display: flex; gap: 8px; }
.waiter-fab .btn { flex: 1; padding: 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; gap: 26px; }
  .home-menu { order: -1; padding-top: 0; }
  .home-side { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
  .tile-grid { gap: 16px; }
  .pos-user-text { display: none; }
}
@media (max-width: 900px) {
  .pos-status-item span { display: none; }
  .pos-status-item .pos-ico { font-size: 22px; }
  .home-side { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .pos-header { padding: 10px 16px; min-height: 60px; }
  .pos-venue { display: none; }
  .layout { flex-direction: column; }
  .sidebar { position: sticky; top: 60px; z-index: 20; width: 100%; height: auto; }
  .sidebar nav { display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .sidebar nav a, .sidebar nav .is-disabled { flex-shrink: 0; margin: 0; padding: 8px 12px; white-space: nowrap; }
  .sidebar nav .is-disabled em, .sidebar .section-label { display: none; }
  .sidebar nav a.active { box-shadow: inset 0 -3px 0 var(--pos-pink); }
  .topbar { padding: 16px 16px 2px; }
  .topbar h1 { font-size: 19px; }
  .content { padding: 12px 16px 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .hide-sm { display: none; }

  .pos-home-main { padding: 4px 16px 16px; }
  .home-grid { padding-top: 6px; }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tile { border-radius: 20px; gap: 10px; }
  .home-time { font-size: 46px; }
  .home-foot { flex-wrap: wrap; justify-content: center; }
  .home-version { display: none; }
}
@media (max-width: 520px) {
  .pos-header { gap: 8px; }
  .pos-status { gap: 0; }
  .pos-status-item { padding: 6px 8px; }
  .pos-status-item:not(.pos-bell) { display: none; }
  .pos-dot { left: 18px; }
  .pos-user { margin-left: 4px; padding-left: 8px; gap: 6px; }
  .pos-logo { font-size: 16px; }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- POS tam ekran: renk uyumu ----------
   Koyu çerçeve (üst bar + sol menü) tek düz ton; çalışma alanı tek açık yüzey.
   Paneller çizgiyle değil ton farkı ve yumuşak gölgeyle ayrılır. */
body.pos-screen { background: var(--dk); }
body.pos-screen::before { display: none; }
body.pos-screen .pos-header { background: var(--dk); border-bottom: 0; }
body.pos-screen .ts { background: var(--dk); border-top: 0; }
body.pos-screen .ts-rail { background: var(--dk); padding-top: 4px; }

body.pos-screen .ts-floor { background: var(--lt-2); }
body.pos-screen .ts-bills { position: relative; z-index: 1; background: var(--lt); box-shadow: 10px 0 30px -24px rgba(var(--dk-rgb),.35); }
body.pos-screen .ts-bills-head { border-bottom: 0; padding-bottom: 10px; }
body.pos-screen .ts-bill { border-bottom-color: var(--lt-2); }
body.pos-screen .ts-bills-foot { border-top: 0; background: var(--lt-1); }

body.pos-screen .ts-sections { background: var(--lt-2); border-left: 0; padding-left: 4px; }
body.pos-screen .ts-sections-label { color: var(--tx-muted); }
body.pos-screen .ts-sections button { background: var(--lt); border-color: transparent; color: var(--tx); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05); }
body.pos-screen .ts-sections button em { background: var(--lt-2); }
body.pos-screen .ts-sections button:hover { background: var(--lt); border-color: transparent; box-shadow: 0 6px 16px -10px rgba(var(--dk-rgb),.3); }
body.pos-screen .ts-sections button.is-on { background: var(--lt); color: var(--ac-lo); border-color: transparent; box-shadow: inset 3px 0 0 var(--ac), 0 6px 16px -10px rgba(var(--ac-rgb),.45); }
body.pos-screen .ts-sections button.is-on em { background: var(--ac-soft); color: var(--ac-lo); }

/* Açık yüzey koyu çerçeveye yuvarlatılmış köşeyle oturur */
@media (min-width: 901px) {
  body.pos-screen .ts-bills { border-top-left-radius: 20px; }
}
/* Pasif ödeme butonları gri tonlama yerine nötr yüzeyle gösterilir (yeşilimsi görünmesin) */
body.pos-screen .pb-pay-btn:disabled,
body.pos-screen .td-pay-btn:disabled { background: var(--lt-3); color: var(--tx-muted); filter: none; opacity: 1; }
@media (max-width: 900px) {
  /* Telefonda sol menü ve bölümler tek satırlık ince şerit olur */
  body.pos-screen .ts-rail { padding: 6px 8px; align-items: center; }
  body.pos-screen .ts-rail-btn { min-height: 0; height: auto; }
  body.pos-screen .ts-sections { align-items: center; padding: 8px; }
  body.pos-screen .ts-sections button { min-height: 0; padding: 9px 14px; }
}
@media (max-width: 900px) {
  body.pos-screen .ts { grid-template-rows: auto auto 1fr auto; }
}

/* ---------- Modül sayfaları: Masalar ekranıyla aynı çerçeve ----------
   Koyu üst bar + koyu sol menü (modülün alt sayfaları), açık çalışma yüzeyi kendi içinde kayar. */
body.pos-page { background: var(--dk); }
body.pos-page .pos-shell { height: 100vh; overflow: hidden; }
body.pos-page .pos-header { position: relative; background: var(--dk); border-bottom: 0; padding: 10px 20px; min-height: 60px; }
.pg-frame { flex: 1; min-height: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--dk); }
.pg-rail { padding-top: 4px; }
.ts-rail-btn.is-on { background: var(--pos-grad); color: var(--on-ac); box-shadow: 0 10px 20px -14px rgba(var(--ac-rgb),.9); }
.ts-rail-btn.is-on:hover { background: var(--pos-grad); color: var(--on-ac); }
.pg-rail .ts-rail-btn { text-decoration: none; line-height: 1.2; }
.pg-rail .ts-rail-btn span { overflow-wrap: normal; word-break: normal; font-size: 11px; }
body.pos-page .pg-main {
  max-width: none; margin: 0; padding: 0; min-height: 0; overflow-y: auto;
  background: var(--lt-2); border-top-left-radius: 20px;
}
.pg-inner { width: 100%; max-width: 1480px; margin: 0 auto; padding: 22px 28px 48px; }
.pg-inner > .flash { display: flex; align-items: center; gap: 10px; border-radius: 14px; }

@media (max-width: 900px) {
  body.pos-page .pos-shell { height: auto; overflow: visible; }
  .pg-frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .pg-rail { grid-area: auto; }
  body.pos-page .pg-main { min-width: 0; }
  .pg-inner .card-body { overflow-x: auto; }
  .pg-rail { flex-direction: row; overflow-x: auto; padding: 6px 8px; align-items: center; }
  .pg-rail .ts-rail-btn { flex-direction: row; flex-shrink: 0; font-size: 12px; padding: 8px 12px; white-space: nowrap; }
  .pg-rail .ts-rail-btn .pos-ico { font-size: 18px; }
  .pg-rail .ts-rail-end { margin-top: 0; margin-left: auto; }
  body.pos-page .pg-main { overflow: visible; border-radius: 18px 18px 0 0; }
  .pg-inner { padding: 16px 14px 32px; }
}
@media print {
  body.pos-page, body.pos-page .pg-frame { background: #fff; }
  body.pos-page .pos-shell { height: auto; overflow: visible; }
  body.pos-page .pos-header, .pg-rail { display: none; }
  .pg-frame { display: block; }
  body.pos-page .pg-main { overflow: visible; border-radius: 0; background: #fff; }
}

/* Sol menü tüm ekranlarda aynı genişlikte (masalar, masa içi, modül sayfaları) */
@media (min-width: 1201px) {
  body.pos-screen .ts { grid-template-columns: 96px minmax(250px, 300px) 1fr 196px; }
  body.pos-screen .ts.ts-detail { grid-template-columns: 96px minmax(280px, 340px) 1fr; }
  body.pos-screen .ts.ts-order { grid-template-columns: 96px minmax(280px, 340px) 1fr 196px; }
  body.pos-screen .ts.ts-pos { grid-template-columns: 96px minmax(300px, 380px) 1fr 196px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  body.pos-screen .ts { grid-template-columns: 96px 240px 1fr 170px; }
  body.pos-screen .ts.ts-detail { grid-template-columns: 96px 280px 1fr; }
  body.pos-screen .ts.ts-order { grid-template-columns: 96px 280px 1fr 170px; }
  body.pos-screen .ts.ts-pos { grid-template-columns: 96px 300px 1fr 160px; }
  .pg-frame { grid-template-columns: 96px minmax(0, 1fr); }
}

/* ---------- Kasa aç / kapat ---------- */
button.tile { width: 100%; font: inherit; cursor: pointer; text-align: center; }
.tile.is-locked { opacity: .6; }
.tile.is-locked:hover { opacity: .85; }
.tile.is-locked .tile-icon { filter: grayscale(.5); }
.tile-cash.is-closed { background: linear-gradient(160deg, rgba(var(--ac-rgb),.28) 0%, var(--dk-2) 70%); border-color: rgba(var(--ac-rgb),.45); }
.tile-cash.is-closed .tile-cash-state { background: var(--pos-grad); color: var(--on-ac); }
.tile-cash.is-open .tile-cash-state { background: rgba(34,197,94,.22); color: #dcfce7; }
.pm-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 12px; font-weight: 500; }
.pm-warn .pos-ico { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Kasa raporu */
.cr-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cr-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cr-pill.is-open { background: #dcfce7; color: #166534; }
.cr-pill.is-closed { background: var(--lt-3); color: var(--tx-muted); }
.cr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cr-kpi { padding: 14px 16px; border-radius: 14px; background: var(--lt-1); }
.cr-kpi span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cr-kpi strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-kpi small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cr-diff { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-diff.is-ok { color: #15803d; }
.cr-diff.is-short { color: #b91c1c; }
.cr-diff.is-over { color: #b45309; }
.cr-kpi.is-short { background: #fef2f2; }
.cr-kpi.is-over { background: #fffbeb; }
.cr-kpi.is-ok { background: #f0fdf4; }
.cr-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Yönetim paneli (işletme sahibi) ---------- */
.pn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pn-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pn-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.pn-datenav, .pn-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pn-datenav input, .pn-filter input, .pn-filter select {
  width: auto; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--lt); font: 500 13px var(--font); color: var(--text);
}
.pn-filter input[type="search"] { min-width: 180px; }
.pn-quick { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 12px; background: var(--lt-3); }
.pn-quick a { padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.pn-quick a:hover { color: var(--text); text-decoration: none; }
.pn-quick a.is-on { background: var(--lt); color: var(--ac-lo); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.08); }
.pn-kpis { margin-bottom: 14px; }
.pn-kpis .cr-kpi { background: var(--lt); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05), 0 10px 24px -20px rgba(var(--dk-rgb),.3); }
.pn-kpis .cr-kpi.is-ok { background: #f0fdf4; }
.pn-kpis .cr-kpi.is-short { background: #fef2f2; }
.pn-kpis .cr-kpi.is-over { background: #fffbeb; }
.pn-kpi-main { background: var(--dk) !important; }
.pn-kpi-main span, .pn-kpi-main small { color: var(--on-dk-muted) !important; }
.pn-kpi-main strong { color: var(--ac-hi); font-size: 24px !important; }
.pn-kpis-sm .cr-kpi strong { font-size: 17px; }
.pn-kpi-main small a, .cr-kpi small a { color: inherit; text-decoration: underline; }
.pn-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pn-grid-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.pn-empty { color: var(--muted); font-size: 13px; }
.pn-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pn-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.pn-legend i.is-in, .pn-bar-cols i.is-in { background: var(--pos-grad); }
.pn-legend i.is-out, .pn-bar-cols i.is-out { background: var(--dk-4); }
.pn-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.pn-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; color: var(--text); }
.pn-bar:hover { background: var(--lt-1); text-decoration: none; }
.pn-bar.is-on { background: var(--ac-softer); }
.pn-bar-cols { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.pn-bar-cols i { width: 38%; max-width: 18px; min-height: 2px; border-radius: 5px 5px 2px 2px; }
.pn-bar b { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-bar small { font-size: 11px; color: var(--muted); }
.pn-session { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--lt-1); color: var(--text); }
.pn-session:hover { background: var(--ac-softer); text-decoration: none; }
.pn-session span { display: flex; flex-direction: column; gap: 2px; }
.pn-session small { font-size: 12px; color: var(--muted); }
.pn-session-diffs { align-items: flex-end; }
.pn-session-diffs em { font-style: normal; font-size: 12px; color: var(--muted); }
.pn-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 4px 0 16px; border-radius: 12px; background: var(--lt-1); cursor: pointer; }
.pn-check input { margin-top: 3px; }
.pn-check span { display: flex; flex-direction: column; gap: 2px; }
.pn-check strong { font-size: 13px; }
.pn-check small { font-size: 12px; color: var(--muted); }
.pn-check.is-disabled { opacity: .6; cursor: not-allowed; }
.pn-cat { margin-bottom: 12px; }
.pn-cat div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.pn-cat div span { font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-cat i { display: block; height: 7px; border-radius: 4px; background: var(--pos-grad); }
.pn-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pn-methods label { position: relative; cursor: pointer; }
.pn-methods input { position: absolute; opacity: 0; }
.pn-methods span { display: block; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; }
.pn-methods input:checked + span { border-color: var(--ac-text); background: var(--ac-softer); color: var(--ac-lo); }
.pn-methods input:focus-visible + span { outline: 3px solid var(--primary-light); }
.pn-methods label.is-current span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
@media (max-width: 1000px) {
  .pn-grid, .pn-grid-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pn-head { align-items: stretch; }
  .pn-filter input, .pn-filter select { flex: 1 1 140px; }
  .pn-bar b { display: none; }
  .pn-bar-cols { height: 110px; }
}

/* ---------- Yönetim paneli menüsü: kompakt sol menü + alt sekmeler ---------- */
.pg-rail.is-panel { gap: 2px; padding: 4px 6px 8px; }
.pg-rail.is-panel .ts-rail-btn { gap: 3px; padding: 7px 4px; border-radius: 12px; }
.pg-rail.is-panel .ts-rail-btn .pos-ico { font-size: 19px; }
.pg-rail.is-panel .ts-rail-btn span { font-size: 10.5px; }
.pg-rail.is-panel .ts-rail-end { margin-top: auto; }
.pg-subtabs {
  display: flex; gap: 6px; margin: -6px 0 18px; padding: 4px; overflow-x: auto; scrollbar-width: none;
  border-radius: 14px; background: var(--lt); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05);
}
.pg-subtabs a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--tx-muted); white-space: nowrap;
}
.pg-subtabs a .pos-ico { font-size: 15px; }
.pg-subtabs a:hover { background: var(--lt-2); color: var(--text); text-decoration: none; }
.pg-subtabs a.is-on { background: var(--dk); color: var(--on-dk); }
.pg-subtabs a.is-on .pos-ico { color: var(--ac-hi); }
@media (max-height: 820px) and (min-width: 901px) {
  .pg-rail.is-panel .ts-rail-btn { padding: 5px 4px; }
  .pg-rail.is-panel .ts-rail-btn .pos-ico { font-size: 17px; }
}
.pn-input { width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--lt); font: 500 13px var(--font); color: var(--text); }
.pn-input:focus { outline: none; border-color: var(--ac-text); box-shadow: 0 0 0 3px rgba(var(--ac-rgb),.16); }

/* ---------- Personel > Garsonlar ---------- */
.wt-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wt-section { padding: 14px 16px; border-radius: 14px; background: var(--lt); box-shadow: 0 1px 2px rgba(var(--dk-rgb),.05); border-left: 4px solid var(--ac); }
.wt-section.is-empty { border-left-color: #f59e0b; background: #fffbeb; }
.wt-section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wt-section-top strong { font-size: 15px; }
.wt-section-top span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wt-section small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.wt-add { display: flex; gap: 8px; align-items: center; }
.wt-add .pn-input { width: 210px; }
.wt-person { display: flex; align-items: center; gap: 10px; }
.wt-person > span:last-child { display: flex; flex-direction: column; }
.wt-person small { font-size: 12px; color: var(--muted); }
.wt-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--pos-grad); color: var(--on-ac); font-weight: 700; }
.wt-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-pill { position: relative; cursor: pointer; }
.wt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.wt-pill span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--lt); font-size: 12px; font-weight: 600; color: var(--tx-muted); transition: background .12s, border-color .12s, color .12s; }
.wt-pill:hover span { border-color: var(--line-strong); color: var(--text); }
.wt-pill input:checked + span { background: var(--ac); border-color: var(--ac-text); color: var(--on-ac); }
.wt-pill input:focus-visible + span { outline: 3px solid var(--primary-light); }
.wt-pill.is-new span { border-style: dashed; }
.wt-save { display: flex; justify-content: flex-end; align-items: center; gap: 12px; border-top: 1px solid var(--lt-3); }
.pn-empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.pn-empty-state > .pos-ico { font-size: 52px; }
.pn-empty-state p { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .wt-add { width: 100%; }
  .wt-add .pn-input { flex: 1; width: auto; }
}

/* ---------- Mutfak ekranı: masa planı + gelen siparişler + masa penceresi ---------- */
.kt .ts-bill.kt-row { width: 100%; grid-template-columns: 24px 1fr auto; border: 0; border-bottom: 1px solid var(--border); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.kt .kt-row em { background: var(--lt-3); color: var(--tx); }
.kt .kt-row.is-new em { background: var(--pos-grad); color: var(--on-ac); }
.kt .kt-row.is-cooking em { background: #f59e0b; color: #fff; }
.kt .kt-row.is-ready em { background: #16a34a; color: #fff; }
.kt .kt-row.is-new { background: var(--ac-softer); }
.kt .kt-row .ts-bill-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt .kt-row time { display: inline; font-weight: 600; }
.kt time.is-late { color: #dc2626; }
.kt-group { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kt-group em { font-style: normal; padding: 1px 8px; border-radius: 99px; background: var(--lt-2); color: var(--tx); }
.kt-group.is-new { color: var(--ac-lo); }

.kt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.kt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kt-legend b { font-weight: 600; color: var(--text); }
.kt-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kt-dot.is-new { background: var(--ac); }
.kt-dot.is-cooking { background: #f59e0b; }
.kt-dot.is-ready { background: #16a34a; }

.kt .ts-card-link { border: 0; background: transparent; padding: 0; cursor: pointer; }
.kt-card { background: var(--lt); color: var(--text); }
.kt-card .ts-card-sub { color: var(--muted); }
.kt-card.is-new { box-shadow: 0 0 0 3px var(--ac), 0 12px 24px -14px rgba(var(--ac-rgb),.8); animation: kt-pulse 1.8s ease-in-out infinite; }
.kt-card.is-new .ts-card-sub { color: var(--ac-lo); font-weight: 700; }
.kt-card.is-cooking { box-shadow: 0 0 0 3px #f59e0b, 0 12px 24px -14px rgba(245,158,11,.7); }
.kt-card.is-cooking .ts-card-sub { color: #a15c07; font-weight: 700; }
.kt-card.is-ready { box-shadow: 0 0 0 3px #16a34a, 0 12px 24px -14px rgba(22,163,74,.7); }
.kt-card.is-ready .ts-card-sub { color: #166534; font-weight: 700; }
.kt-card .ts-card-foot time.is-late { color: #dc2626; font-weight: 700; }
.kt-mark { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; line-height: 1; color: #fff; background: var(--tx-muted); }
.kt-mark .pos-ico { font-size: 12px; }
.kt-card.is-new .kt-mark { background: var(--pos-grad); color: var(--on-ac); }
.kt-card.is-cooking .kt-mark { background: #f59e0b; }
.kt-card.is-ready .kt-mark { background: #16a34a; }
@keyframes kt-pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--ac-rgb),.35), 0 12px 24px -14px rgba(var(--ac-rgb),.8); } }
@media (prefers-reduced-motion: reduce) { .kt-card.is-new { animation: none; } }

.kt-modal .pm-body { background: var(--lt-2); gap: 14px; }
.kt-modal .kds-card { box-shadow: none; }
.kt-head-side { display: flex; align-items: center; gap: 10px; }
.kt-chips { display: inline-flex; gap: 4px; }
.kt-order-note { display: flex; align-items: center; gap: 6px; margin: 10px 14px 0; padding: 7px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.kds-done.is-served { color: var(--muted); font-weight: 600; }
.kt-done { padding: 10px 14px; border-radius: 12px; background: var(--lt); }
.kt-done-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.kt-done-head span:not(.pos-chip) { flex: 1; color: var(--muted); font-size: 12px; }
.kt-done-items { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--tx-muted); }
.kt-done-items b { color: var(--text); }
@media (max-width: 900px) {
  /* Mutfakta gelen siparişler masa planının önünde görünür */
  .ts.kt { grid-template-areas: "sections" "rail" "bills" "floor"; }
  .kt .ts-bills-list { max-height: 260px; }
}

/* ---------- Bildirim balonları (flash) ---------- */
.pos-toasts { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.pos-toast {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 520px; padding: 12px 12px 14px 14px; border-radius: 16px; overflow: hidden;
  background: #fff; color: #1f2937; font-family: var(--font); pointer-events: auto;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.05);
  opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.pos-toast.is-in { opacity: 1; transform: none; }
.pos-toast.is-leaving { opacity: 0; transform: translateY(-10px) scale(.98); transition-duration: .2s; }
.pos-toast-ico { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; }
.pos-toast-ico svg { width: 18px; height: 18px; }
.pos-toast.is-success .pos-toast-ico { background: #dcfce7; color: #15803d; }
.pos-toast.is-error .pos-toast-ico { background: #fee2e2; color: #b91c1c; }
.pos-toast-msg { flex: 1; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pos-toast-x { width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; font-size: 20px; line-height: 1; cursor: pointer; }
.pos-toast-x:hover { background: #f3f4f6; color: #374151; }
.pos-toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left; transform: scaleX(1); }
.pos-toast.is-success .pos-toast-bar { background: #22c55e; }
.pos-toast.is-error .pos-toast-bar { background: #ef4444; }
@media (max-width: 600px) {
  .pos-toasts { top: 64px; width: calc(100vw - 32px); }
  .pos-toast { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-toast, .pos-toast.is-leaving { transition: opacity .15s linear; transform: none; }
}

/* Masa ekranında geri dönüş butonu belirgin */
.ts-rail-btn.is-back { background: rgba(var(--on-dk-rgb),.12); color: var(--on-dk); box-shadow: inset 0 0 0 1px rgba(var(--on-dk-rgb),.16); margin-bottom: 6px; }
.ts-rail-btn.is-back .pos-ico { font-size: 24px; }
.ts-rail-btn.is-back:hover { background: var(--pos-grad); color: var(--on-ac); box-shadow: none; }

/* =====================================================================
   El terminali / telefon / tablet uyumu
   Telefon: 700px ve altı · Tablet: 701px – 1024px
   Tüm POS ekranları (masalar, masa içi sipariş, yeni sipariş, mutfak, ödeme) ve modül sayfaları.
   ===================================================================== */

/* Tek sütunlu ızgaralar içerikteki uzun satırlar yüzünden ekran dışına taşmasın */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side, .home-menu, .notif-panel { min-width: 0; }
}
@media (max-width: 900px) {
  .home-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  /* Harf çubuğu yatay tek satırda ekranı genişletiyordu; tablette dikey, telefonda sağ kenarda dizin olarak gösterilir */
  .to-alpha-bubble { display: none !important; }
  .to-body { min-width: 0; }
  .to-body > .to-grid { min-width: 0; }
}

/* ---------- Tablet: iki bölmeli çalışma ekranı ---------- */
@media (min-width: 701px) and (max-width: 1024px) {
  body.pos-screen .pos-shell { height: 100vh; height: 100dvh; overflow: hidden; }
  body.pos-screen .pos-screen-main { min-height: 0; }
  body.pos-screen .ts,
  body.pos-screen .ts.ts-pos,
  body.pos-screen .ts.ts-order {
    flex: 1; height: auto; min-height: 0;
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "rail rail" "bills sections" "bills floor";
  }
  body.pos-screen .ts.ts-pos, body.pos-screen .ts.ts-order { grid-template-columns: 300px minmax(0, 1fr); }
  body.pos-screen .ts-rail { grid-area: rail; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 6px 10px; }
  body.pos-screen .ts-rail-btn { flex-direction: row; gap: 8px; padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  body.pos-screen .ts-rail-btn .pos-ico { font-size: 18px; }
  body.pos-screen .ts-rail .ts-rail-end { margin: 0 0 0 auto; }
  body.pos-screen .ts-rail-btn.is-back { margin-bottom: 0; }
  body.pos-screen .ts-bills { grid-area: bills; min-height: 0; display: flex; flex-direction: column; border-top-left-radius: 0; }
  body.pos-screen .ts-bills .ts-bills-list { flex: 1; max-height: none; overflow-y: auto; }
  body.pos-screen .ts-sections { grid-area: sections; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px 12px 4px; }
  body.pos-screen .ts-sections-label { display: none; }
  body.pos-screen .ts-sections button { flex-shrink: 0; white-space: nowrap; padding: 9px 14px; }
  body.pos-screen .ts-floor { grid-area: floor; min-height: 0; }
  body.pos-screen .ts-grid { overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; padding: 4px 12px 16px; }
  body.pos-screen .to-body > .to-grid { overflow-y: auto; }
  body.pos-screen .ts-toolbar { padding: 10px 12px; }
  .to-search-wrap { flex: 1; min-width: 160px; }
  .to-search { width: 100%; }

  /* Ödeme ekranı: iki sütun, tuş takımı sabit yükseklikte */
  .pay { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-content: start; overflow-y: auto; }
  .pay-left { grid-column: 1; grid-row: 1; }
  .pay-right { grid-column: 2; grid-row: 1 / span 2; }
  .pay-mid { grid-column: 1; grid-row: 2; }
  .pay-list { max-height: 40vh; }
  .pay-pad { flex: none; grid-auto-rows: 58px; }
}

/* ---------- Telefon / el terminali ---------- */
@media (max-width: 700px) {
  body.pos-screen .pos-shell { height: auto; overflow: visible; }
  body.pos-screen .ts,
  body.pos-screen .ts.ts-pos,
  body.pos-screen .ts.ts-order { grid-template-columns: minmax(0, 1fr); }
  body.pos-screen .ts-rail-btn { padding: 8px 12px; font-size: 12px; }
  body.pos-screen .ts-rail-btn.is-back { margin-bottom: 0; }
  body.pos-screen .ts-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 4px 10px 14px; }
  body.pos-screen .ts-toolbar { padding: 10px; gap: 8px; }
  body.pos-screen .ts-card { min-height: 104px; padding: 20px 8px; }
  body.pos-screen .ts-card-name { font-size: 14px; }
  .to-search-wrap { width: 100%; }
  .to-search { width: 100%; }

  /* Ürün kartları küçük ekranda daha sıkı */
  .to-product { padding: 6px 6px 8px; border-radius: 14px; }
  .to-thumb { aspect-ratio: 16 / 10; border-radius: 10px; }
  .to-thumb i { font-size: 22px; }
  .to-name { font-size: 12px; }
  .to-price { font-size: 12px; }

  /* Masa içi sipariş ve yeni sipariş: önce işlem çubuğu, sonra menüler, sonra ürünler.
     Adisyon alttan açılan panel olur; ürün eklerken sepet ve gönder butonu hep görünür. */
  body.pos-screen .ts.ts-pos,
  body.pos-screen .ts.ts-order { grid-template-areas: "rail" "sections" "floor"; padding-bottom: 170px; }
  body.pos-screen .ts-pos > .ts-bills,
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; flex-direction: column; max-height: 82vh; max-height: 82dvh;
    border-radius: 20px 20px 0 0; background: var(--lt);
    box-shadow: 0 -18px 40px -14px rgba(0,0,0,.5);
  }
  body.pos-screen .ts-pos > .ts-bills > :first-child,
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills > .td-head { position: relative; cursor: pointer; padding-top: 18px; }
  body.pos-screen .ts-pos > .ts-bills > :first-child::before,
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills > .td-head::before {
    content: ""; position: absolute; top: 7px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: var(--lt-3);
  }
  body.pos-screen .ts-pos > .ts-bills .pb-list,
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills .ts-bills-list { flex: 1; max-height: none; overflow-y: auto; }
  /* Kapalı panel: yalnızca başlık, gönderilmemiş sepet ve toplam görünür */
  body.pos-screen .ts-pos > .ts-bills:not(.is-open) .pb-list > :not(.pb-cart) { display: none; }
  body.pos-screen .ts-pos > .ts-bills:not(.is-open) [data-cart-lines] { max-height: 26vh; overflow-y: auto; }
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills:not(.is-open) .ts-bills-list { display: none; }
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills .td-head { padding-bottom: 10px; }
  body.pos-screen .ts-order:not(.ts-pos) > .ts-bills .td-head h2 { font-size: 18px; }
  .pb-sheet-hint { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ac-text); white-space: nowrap; }
  .pb-sheet-hint svg { width: 14px; height: 14px; transition: transform .2s; }
  .ts-bills.is-open .pb-sheet-hint svg { transform: rotate(180deg); }
  .pb-foot { padding: 10px 14px 12px; }
  .td-pay-actions { padding: 0 14px 12px; }
  body.pos-screen .ts-order:not(.ts-pos) .td-pay .ts-bills-foot { padding: 10px 14px 8px; }

  /* Ödeme ekranı: tek sütun, geri dönüş en üstte */
  .pay { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; grid-template-columns: minmax(0, 1fr); align-content: start; overflow-y: auto; z-index: 70; }
  .pay-mid { order: -1; }
  .pay-mid .pay-payments:has(.pay-empty) { display: none; }
  .pay-list { max-height: 38vh; }
  .pay-pad { flex: none; grid-auto-rows: 52px; }
  .pay-head { min-height: 50px; }

  /* Mutfak ve masa pencereleri tam genişlik */
  .pos-modal { max-width: calc(100vw - 16px) !important; }
  .pos-modal .pm-card { max-height: calc(100dvh - 24px); }
  .kds-items li { flex-wrap: wrap; }
  .kds-head strong { font-size: 15px; }

  /* Ana ekran */
  .home-time { font-size: 40px; }
}
@media (min-width: 701px) {
  .pb-sheet-hint { display: none; }
}

/* ---------- Liste tabloları telefonda kart görünümü ---------- */
@media (max-width: 640px) {
  table.tbl.is-stack thead { display: none; }
  table.tbl.is-stack, table.tbl.is-stack tbody, table.tbl.is-stack tr { display: block; width: 100%; }
  table.tbl.is-stack tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  table.tbl.is-stack tr:last-child { border-bottom: 0; }
  table.tbl.is-stack tr:hover td { background: transparent; }
  table.tbl.is-stack td { display: block; position: relative; width: 100%; padding: 5px 0 5px 40% !important; border: 0; text-align: right; min-height: 30px; overflow-wrap: anywhere; }
  table.tbl.is-stack td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 38%; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: left; overflow-wrap: normal; }
  table.tbl.is-stack td:not([data-label]), table.tbl.is-stack td[data-label=""] { padding-left: 0 !important; }
  table.tbl.is-stack td:not([data-label])::before, table.tbl.is-stack td[data-label=""]::before { content: none; }
  table.tbl.is-stack td .btn + .btn, table.tbl.is-stack td form + form, table.tbl.is-stack td .btn + form, table.tbl.is-stack td form + .btn { margin-left: 6px; }
  table.tbl.is-stack td:first-child { font-size: 15px; font-weight: 700; }
  table.tbl.is-stack td[colspan] { display: block; text-align: center; }
  table.tbl.is-stack td form { display: inline-flex; }
  .card-body.nopad { overflow-x: visible; }
}

/* ---------- Fix menü formu ---------- */
@media (max-width: 1024px) {
  .fm-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .fm-main { min-width: 0; }
}
@media (max-width: 640px) {
  .fm-add-row { grid-template-columns: minmax(0, 1fr) !important; }
  .fm-search { width: 100% !important; }
  #selected-items-wrapper { overflow-x: auto; }
}

/* ---------- Ürün kartları: resmi olmayan üründe koca baş harf gösterilmez ---------- */
.to-product.is-noimg .to-thumb { display: none; }
.to-product.is-noimg { justify-content: center; min-height: 78px; padding: 12px 12px 12px 14px; gap: 6px; }
.to-product.is-noimg .to-name { font-size: 14px; line-height: 1.3; }
.to-product.is-noimg .to-price { font-size: 14px; }
.to-product.is-noimg .to-badge { top: 6px; right: 6px; }

/* Menü seçimi açılır liste (yalnızca telefonda görünür) */
.to-cat-picker { display: none; position: relative; }
.to-cat-picker select {
  width: 100%; appearance: none; -webkit-appearance: none; padding: 10px 36px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--lt); font: 600 14px var(--font); color: var(--text);
}
.to-cat-picker svg { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--ac-text); pointer-events: none; }

/* Harf dizininde parmakla kaydırırken ortada beliren büyük harf */
.to-alpha-pop {
  position: fixed; left: 50%; top: 45%; z-index: 90; transform: translate(-50%, -50%);
  min-width: 84px; height: 84px; padding: 0 14px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(17, 17, 17, .78); color: #fff; font: 700 40px var(--font); pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.to-alpha-pop[hidden] { display: none; }

/* ---------- Tablet: harf çubuğu masaüstündeki gibi ürünlerin yanında dikey ---------- */
@media (min-width: 701px) and (max-width: 1024px) {
  .to-body { flex-direction: row; }
  .to-alpha-rail {
    display: flex !important; flex-direction: column; justify-content: space-between; overflow: visible;
    width: 28px; height: calc(100% - 16px); margin: 8px 6px 8px 2px; padding: 6px 2px; border-radius: 16px;
  }
  .to-alpha-rail .to-alpha-btn { flex: 1 1 0; width: 22px; height: auto; min-height: 12px; max-height: 22px; font-size: 10px; }
  .to-alpha-rail .to-alpha-btn[data-alpha-jump=""] { flex: 0 0 auto; width: auto; height: 20px; padding: 0 4px; font-size: 9px; margin-bottom: 2px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 700px) {
  /* Menüler: yana kaydırılan satır yerine açılır liste */
  body.pos-screen .ts-pos > .ts-sections,
  body.pos-screen .ts-order > .ts-sections { display: none; }
  body.pos-screen .ts.ts-pos,
  body.pos-screen .ts.ts-order { grid-template-areas: "rail" "floor"; }
  .to-cat-picker { display: block; width: 100%; }
  body.pos-screen .ts-pos .ts-crumb,
  body.pos-screen .ts-order .ts-crumb { display: none; }
  body.pos-screen .ts-pos .ts-toolbar,
  body.pos-screen .ts-order .ts-toolbar { flex-wrap: nowrap; padding: 10px 34px 8px 10px; }
  body.pos-screen .ts-pos .ts-toolbar > *,
  body.pos-screen .ts-order .ts-toolbar > * { flex: 1 1 50%; min-width: 0; }
  .to-search { padding-top: 10px; padding-bottom: 10px; font-size: 14px; }

  /* İşlem çubuğu kaydırılmaz: düğmeler ekrana sığacak şekilde satırlara dağılır */
  body.pos-screen .ts-rail {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 4px;
    overflow: visible; padding: 6px 8px;
  }
  body.pos-screen .ts-rail form { display: block; }
  body.pos-screen .ts-rail .ts-rail-end { margin: 0; }
  body.pos-screen .ts-rail-btn { flex-direction: column; gap: 3px; width: 100%; padding: 7px 4px; font-size: 11px; white-space: nowrap; }
  body.pos-screen .ts-rail-btn .pos-ico { font-size: 19px; }
  body.pos-screen .ts-rail-btn.is-back svg.pos-ico { font-size: 19px; }

  /* Harf dizini: iPhone rehberi gibi sağ kenarda dikey, dokun ya da parmakla kaydır */
  body.pos-screen .to-alpha-rail {
    display: flex !important; position: fixed; right: 2px; top: 132px; bottom: 150px; z-index: 55;
    flex-direction: column; justify-content: space-between; align-items: center; overflow: visible;
    width: 24px; height: auto; margin: 0; padding: 4px 0; gap: 0;
    background: rgba(255, 255, 255, .72); border: 0; border-radius: 12px; box-shadow: none;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    touch-action: none; -webkit-user-select: none; user-select: none;
  }
  body.pos-screen .to-alpha-rail.is-scrubbing { background: rgba(255, 255, 255, .95); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
  body.pos-screen .to-alpha-rail .to-alpha-btn {
    flex: 1 1 0; width: 24px; height: auto; min-height: 0; max-height: 22px; padding: 0; border-radius: 6px;
    font-size: 10px; line-height: 1; background: transparent; box-shadow: none;
  }
  body.pos-screen .to-alpha-rail .to-alpha-btn.no-items { color: #cbd5e1; }
  body.pos-screen .to-alpha-rail .to-alpha-btn.has-items { color: var(--ac-text); }
  body.pos-screen .to-alpha-rail .to-alpha-btn.is-active { border-radius: 6px; }
  body.pos-screen .to-alpha-rail .to-alpha-btn[data-alpha-jump=""] {
    flex: 0 0 auto; width: 22px; height: 22px; max-height: none; padding: 0; margin: 0 0 2px; font-size: 0; border-radius: 50%;
    background: var(--lt-3);
  }
  body.pos-screen .to-alpha-rail .to-alpha-btn[data-alpha-jump=""]::before { content: "•"; font-size: 16px; line-height: 1; color: var(--tx-muted); }
  body.pos-screen .to-alpha-rail .to-alpha-btn[data-alpha-jump=""].is-active::before { color: #fff; }
  body.pos-screen .ts-pos .to-grid,
  body.pos-screen .ts-order .to-grid { padding-right: 32px; }

  /* Ürünler iki sütun, sade kart */
  body.pos-screen .to-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .to-product.is-noimg { min-height: 70px; padding: 10px 10px 10px 12px; border-radius: 14px; }
  .to-product.is-noimg .to-name { font-size: 13px; }
  .to-product.is-noimg .to-price { font-size: 13px; }
  .to-product:not(.is-noimg) .to-thumb { aspect-ratio: 16 / 9; }
}

/* Çok dar telefon (320–380px): üst bar sığsın */
@media (max-width: 380px) {
  .pos-header { gap: 6px; padding-left: 10px !important; padding-right: 10px !important; }
  .pos-logo { font-size: 14px; }
  .pos-back { width: 34px; height: 34px; }
  .pos-user { margin-left: 2px; padding-left: 6px; gap: 4px; }
  body.pos-screen .ts-rail { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
}
@media (max-width: 420px) {
  /* Dar telefonda arama ve menü seçimi alt alta, ikisi de tam genişlik */
  body.pos-screen .ts-pos .ts-toolbar,
  body.pos-screen .ts-order .ts-toolbar { flex-wrap: wrap; }
  body.pos-screen .ts-pos .ts-toolbar > *,
  body.pos-screen .ts-order .ts-toolbar > * { flex: 1 1 100%; }
}
@media (max-width: 700px) {
  body.pos-screen .to-alpha-rail .to-alpha-btn.is-skip { display: none; }
}
@media (min-width: 701px) {
  .to-alpha-rail .to-alpha-btn.is-skip { display: flex; }
}

/* ---------- Masa aç / kapat ---------- */
.pb-open-form, .pb-foot > form { display: block; }
.pb-open-btn, .pb-close-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border: 0; border-radius: 14px; font: 700 15px var(--font); cursor: pointer;
}
.pb-open-btn { background: var(--pos-grad); color: var(--on-ac); box-shadow: 0 12px 24px -14px rgba(var(--ac-rgb),.9); }
.pb-open-btn:hover { filter: brightness(1.06); }
.pb-open-btn .pos-ico, .pb-close-btn .pos-ico { font-size: 20px; }
.pb-close-btn { background: var(--lt); color: #b91c1c; box-shadow: inset 0 0 0 1.5px #fecaca; }
.pb-close-btn:hover { background: #fef2f2; }
.pb-open-btn.is-big { width: auto; min-width: 240px; padding: 16px 28px; font-size: 17px; }

.pb-closed { display: flex; align-items: center; justify-content: center; padding: 24px; }
.pb-closed-card { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pb-closed-ico { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--ac-soft); color: var(--ac-text); }
.pb-closed-ico .pos-ico { font-size: 44px; }
.pb-closed-card h2 { font-size: 22px; font-weight: 700; }
.pb-closed-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
@media (max-width: 700px) {
  .pb-closed { min-height: 52vh; padding: 20px 16px; }
  .pb-closed-card h2 { font-size: 19px; }
  .pb-open-btn.is-big { width: 100%; min-width: 0; }
}
@media (max-width: 700px) {
  /* Alt panel boşluğu açık yüzeyde kalsın; kısa içerikte koyu şerit görünmesin */
  body.pos-screen .ts.ts-pos,
  body.pos-screen .ts.ts-order { padding-bottom: 0; min-height: calc(100dvh - 60px); grid-template-rows: auto 1fr; }
  body.pos-screen .ts-pos > .ts-floor,
  body.pos-screen .ts-order > .ts-floor { padding-bottom: 170px; }
}

/* ---------- Teslim edildi (garson hazır ürünü masaya götürdü) ---------- */
.pb-ready { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 12px 4px; padding: 10px 12px; border-radius: 14px; background: #dcfce7; box-shadow: inset 0 0 0 1px #bbf7d0; }
.pb-ready-text { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #166534; }
.pb-ready-text b { font-weight: 800; }
.pb-ready form { display: block; }
.pb-ready-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 10px; background: #16a34a; color: #fff; font: 700 13px var(--font); cursor: pointer; white-space: nowrap; box-shadow: 0 8px 16px -10px rgba(22,163,74,.9); }
.pb-ready-btn:hover { filter: brightness(1.06); }
.pb-ready-btn .pos-ico { font-size: 16px; }
.pl-serve-form { display: inline-flex; margin-left: auto; }
.pl-serve { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 0; border-radius: 8px; background: #16a34a; color: #fff; font: 700 12px var(--font); cursor: pointer; white-space: nowrap; }
.pl-serve:hover { filter: brightness(1.06); }
.pl-serve .pos-ico { font-size: 14px; }
@media (max-width: 700px) {
  /* Kapalı adisyon panelinde de hazır ürün uyarısı ve toplu teslim görünür */
  body.pos-screen .ts-pos > .ts-bills:not(.is-open) .pb-list > .pb-ready { display: flex; }
  .pl-serve { padding: 7px 12px; font-size: 13px; }
}

/* ============================================================
   Ön muhasebe (panel/accounting)
   ============================================================ */
.ac-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ac-head-actions .pn-datenav input[type="month"] { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--lt); font: 500 13px var(--font); color: var(--text); }
.ac-in { color: #15803d; }
.ac-out { color: #b91c1c; }
.ac-muted { color: var(--muted); font-size: 13px; }
.ac-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.ac-sub .badge { padding: 1px 7px; font-size: 11px; }
.ac-sub a { color: inherit; text-decoration: underline; }
.ac-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.ac-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ac-note-bar { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.55; }
.ac-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #fde68a; font-size: 13px; }
.ac-alert:hover { text-decoration: none; filter: brightness(.98); }
.ac-alert.is-danger { background: #fef2f2; color: #991b1b; box-shadow: inset 0 0 0 1px #fecaca; }
.ac-alert span { font-weight: 600; }
.ac-type { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ac-type.is-in { background: #dcfce7; color: #166534; }
.ac-type.is-out { background: var(--lt-3); color: var(--tx-muted); }
.ac-strong-link { font-weight: 700; color: var(--text); }

/* Tablolar */
.ac-table th.is-num, .ac-table td.is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-table td { vertical-align: top; }
.ac-table tr.is-late td { background: #fff8f8; }
.ac-table tr.is-muted td { opacity: .6; }
.ac-table .ac-sub { white-space: normal; }
.ac-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ac-actions .inline-form { display: inline-flex; }
.ac-total-row td { background: var(--lt-1); border-top: 2px solid var(--border); }
.ac-pl-bar { width: 22%; min-width: 120px; }
.ac-pl-bar span { display: block; height: 6px; margin: 3px 0; border-radius: 3px; background: var(--lt-2); overflow: hidden; }
.ac-pl-bar i { display: block; height: 100%; border-radius: 3px; }
.ac-pl-bar i.is-in { background: var(--pos-grad); }
.ac-pl-bar i.is-out { background: var(--dk-4); }

/* Filtre */
.ac-filter { padding: 14px 16px; margin-bottom: 14px; }
.ac-filter-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ac-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-top: 12px; }
.ac-filter-grid label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; }
.ac-filter-grid label > span { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ac-filter-grid input, .ac-filter-grid select, .ac-search input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--lt); font: 500 13px var(--font); color: var(--text); }
.ac-filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-search { display: flex; gap: 6px; flex: 1 1 260px; max-width: 420px; }

/* Pencereler */
.ac-modal .pm-body { gap: 10px; }
.ac-modal .form-group { margin-bottom: 0; }
.ac-modal .form-hint a { color: inherit; text-decoration: underline; }
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ac-seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 12px; background: var(--lt-3); }
.ac-seg label { position: relative; margin: 0; cursor: pointer; }
.ac-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ac-seg span { display: block; padding: 9px 10px; border-radius: 9px; text-align: center; font-size: 13px; font-weight: 600; color: var(--tx-muted); }
.ac-seg input:checked + span { background: var(--lt); color: var(--text); box-shadow: 0 1px 3px rgba(var(--dk-rgb),.12); }
.ac-seg input:focus-visible + span { outline: 3px solid var(--primary-light); }
.ac-seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.ac-seg.is-status input:checked + span { color: var(--ac-lo); }
.ac-modal .pn-check { margin: 0; }
.ac-modal label.pn-check { font-weight: 400; }
.ac-locked { padding: 10px 12px; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 12px; font-weight: 600; }
.ac-inline-check { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.ac-inline-check[hidden] { display: none !important; }
.ac-checks { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.ac-preview { font-size: 13px; font-weight: 600; color: var(--ac-lo); }
.ac-preview:empty { display: none; }

/* Özet */
.ac-list-body { display: flex; flex-direction: column; gap: 8px; }
.ac-due { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--lt-1); }
.ac-due-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lt); box-shadow: inset 0 0 0 1px var(--border); line-height: 1.05; }
.ac-due-date b { font-size: 17px; }
.ac-due-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.ac-due-date.is-late { background: #fee2e2; box-shadow: none; color: #991b1b; }
.ac-due-date.is-late small { color: #b91c1c; }
.ac-due-main { min-width: 0; }
.ac-due-main strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-due-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ac-due-main .badge { padding: 1px 7px; font-size: 11px; }
.ac-due-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ac-due-side b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); color: var(--text); }
.ac-acc-row:hover { background: var(--ac-softer); text-decoration: none; }
.ac-acc-row.is-static { margin-bottom: 8px; }
.ac-acc-row.is-static:hover { background: var(--lt-1); }
.ac-acc-row span { display: flex; flex-direction: column; min-width: 0; }
.ac-acc-row small { font-size: 12px; color: var(--muted); }
.ac-acc-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-acc-total { display: flex; justify-content: space-between; padding: 10px 12px 0; border-top: 1px dashed var(--border); font-weight: 600; }
.ac-acc-total b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pn-bars.ac-bars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ac-ratio { margin-bottom: 14px; }
.ac-ratio > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ac-ratio > div span { font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-ratio i { display: block; height: 8px; margin: 6px 0 4px; border-radius: 4px; background: var(--lt-3); overflow: hidden; }
.ac-ratio em { display: block; height: 100%; border-radius: 4px; background: #16a34a; }
.ac-ratio.is-over em { background: #dc2626; }
.ac-ratio.is-over > div span { color: #b91c1c; }
.ac-ratio small { font-size: 12px; color: var(--muted); }
.ac-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.ac-cats .pn-cat { display: block; color: var(--text); }
.ac-cats .pn-cat:hover { text-decoration: none; }
.ac-cats .pn-cat:hover strong { color: var(--ac-lo); }

/* Sabit ödemeler */
.ac-templates { margin-bottom: 14px; }
.ac-templates .card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; }
.ac-templates-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.ac-chip { padding: 7px 12px; border: 1px dashed var(--ac-muted); border-radius: 999px; background: var(--ac-softer); font: 600 12px var(--font); color: var(--ac-lo); cursor: pointer; }
.ac-chip:hover { border-style: solid; background: var(--lt); }

/* Hesaplar */
.ac-acc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ac-acc-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; margin: 0; }
.ac-acc-card.is-muted { opacity: .65; }
.ac-acc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ac-acc-top span { display: flex; flex-direction: column; min-width: 0; }
.ac-acc-top small { font-size: 12px; color: var(--muted); }
.ac-acc-badge { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--lt-3); font-style: normal; font-weight: 700; color: var(--tx-muted); }
.ac-acc-card.is-cash .ac-acc-badge { background: #dcfce7; color: #166534; }
.ac-acc-card.is-bank .ac-acc-badge { background: #e0e7ff; color: #3730a3; }
.ac-acc-card.is-card .ac-acc-badge { background: #fef3c7; color: #92400e; }
.ac-acc-balance { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ac-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.ac-flags .badge { font-size: 11px; padding: 2px 8px; }
.ac-acc-card .ac-actions { justify-content: flex-start; margin-top: 6px; }

/* Cari */
.pn-grid.ac-grid-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ac-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.ac-info dt { color: var(--muted); }
.ac-info dd { margin: 0; overflow-wrap: anywhere; }
.ac-danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* KDV */
.ac-vat { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ac-vat > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.ac-vat span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ac-vat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ac-vat small { font-size: 11px; color: var(--muted); }
.ac-vat .is-pay { background: #fef2f2; }
.ac-vat .is-carry { background: #f0fdf4; }
.ac-vat-table { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }

@media (max-width: 1024px) {
  .pn-grid.ac-grid-side { grid-template-columns: minmax(0, 1fr); }
  .ac-vat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .ac-head-actions { width: 100%; }
  .ac-head-actions > .btn { flex: 1 1 auto; justify-content: center; }
  .ac-head-actions .pn-datenav { width: 100%; }
  .ac-head-actions .pn-datenav input[type="month"], .ac-head-actions .pn-datenav select { flex: 1; }
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-filter-q, .ac-filter-btns { grid-column: 1 / -1; }
  .ac-search { max-width: none; }
  .ac-due { grid-template-columns: auto minmax(0, 1fr); }
  .ac-due-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  table.tbl.is-stack.ac-table td.ac-pl-bar { display: none; }
  .pn-bars.ac-bars { gap: 4px; }
  .ac-bars .pn-bar b { font-size: 10px; }
  table.tbl.is-stack.ac-table td .ac-sub { text-align: right; }
  table.tbl.is-stack.ac-table tr.is-late td { background: transparent; }
  table.tbl.is-stack.ac-table tr.is-late { background: #fff8f8; }
  .ac-acc-balance { font-size: 22px; }
}

/* ============================================================
   Düğün salonu (events)
   ============================================================ */
.ev-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.ev-dot.is-option { background: #f59e0b; }
.ev-dot.is-confirmed { background: #16a34a; }
.ev-dot.is-completed { background: #6366f1; }
.pn-grid.ev-home { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.ev-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-cal-head { padding: 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ev-cal-day { width: 100%; min-height: 92px; padding: 6px; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; align-items: stretch; justify-content: flex-start; border-radius: 10px; background: var(--lt-1); box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-cal-day.is-out { opacity: .45; }
.ev-cal-day.is-past { background: var(--lt-2); }
.ev-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ac); background: var(--ac-softer); }
.ev-cal-num { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.ev-cal-add { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-weight: 700; opacity: 0; }
.ev-cal-day:hover .ev-cal-add, .ev-cal-add:focus-visible { opacity: 1; background: var(--lt); text-decoration: none; }
.ev-chip { display: block; padding: 3px 6px; border-radius: 6px; font-size: 11px; line-height: 1.3; color: #1f2328; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid transparent; }
.ev-chip:hover { text-decoration: none; filter: brightness(.96); }
.ev-chip b { font-weight: 700; }
.ev-chip.is-option { background: #fef3c7; border-left-color: #f59e0b; }
.ev-chip.is-confirmed { background: #dcfce7; border-left-color: #16a34a; }
.ev-chip.is-completed { background: #e0e7ff; border-left-color: #6366f1; }
.ev-chip.is-cancelled { background: var(--lt-3); color: var(--muted); text-decoration: line-through; }
.ev-agenda { display: none; flex-direction: column; gap: 6px; }
.ev-agenda-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--lt-1); color: var(--text); border-left: 3px solid transparent; }
.ev-agenda-row:hover { text-decoration: none; background: var(--ac-softer); }
.ev-agenda-row.is-option { border-left-color: #f59e0b; }
.ev-agenda-row.is-confirmed { border-left-color: #16a34a; }
.ev-agenda-row.is-completed { border-left-color: #6366f1; }
.ev-agenda-date { display: flex; flex-direction: column; align-items: center; width: 38px; line-height: 1.1; }
.ev-agenda-date b { font-size: 17px; }
.ev-agenda-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.ev-agenda-main { display: flex; flex-direction: column; min-width: 0; }
.ev-agenda-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-agenda-main small { font-size: 12px; color: var(--muted); }
.ev-up { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--lt-1); color: var(--text); }
.ev-up:hover { text-decoration: none; background: var(--ac-softer); }
.ev-up-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-up-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-up-main small { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12px; color: var(--muted); }
.ev-up-main .badge { padding: 1px 7px; font-size: 11px; }
.ev-up-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ev-up-side b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-up-side small { font-size: 12px; white-space: nowrap; }
.ac-due-date.is-soon { background: #fef3c7; box-shadow: none; }

/* Formlar */
.ev-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ev-form-main { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ev-form-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ev-form .form-group, .ev-form-grid .form-group { margin-bottom: 0; }
.ev-form-main .card-body > .ac-grid + .form-hint, .ev-form-main .card-body > .ev-grid-4 + .form-hint { margin-top: 10px; }
.ev-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.ev-span-2 { grid-column: span 2; }
.ev-num { max-width: 120px; margin-left: auto; text-align: right; }
.ev-staff-plan td { vertical-align: middle; }
.ev-sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
.ev-sum-row span { display: flex; flex-direction: column; }
.ev-sum-row small { font-size: 11.5px; color: var(--muted); }
.ev-sum-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-sum-row.is-muted { color: var(--muted); }
.ev-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0; padding: 10px 0 6px; border-top: 1.5px solid var(--text); }
.ev-sum-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.ev-summary hr { border: 0; border-top: 1px dashed var(--border); margin: 8px 0; }
.ev-submit { width: 100%; justify-content: center; padding: 12px; }
.ev-bar { height: 8px; margin: 8px 0 4px; border-radius: 4px; background: #dcfce7; overflow: hidden; }
.ev-bar i { display: block; height: 100%; background: #dc2626; border-radius: 4px; }
.ev-save-bar { display: flex; justify-content: flex-end; margin-top: 14px; }

/* Detay */
.pn-grid.ev-show { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ev-col { display: flex; flex-direction: column; min-width: 0; }
.ev-dishes { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-dish { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.ev-dish small { font-size: 12px; color: var(--muted); }
.ev-add-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; border-top: 1px solid var(--border); background: var(--lt-1); }
.ev-add-row label { display: flex; flex-direction: column; gap: 3px; margin: 0; flex: 1 1 160px; font-weight: 400; }
.ev-add-row label.is-sm { flex: 0 1 120px; }
.ev-add-row label > span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ev-add-row input, .ev-add-row select { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--lt); font: 500 13px var(--font); color: var(--text); }
.ev-pay-side { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }

/* Menü formu */
.mn-step { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 8px; background: var(--dk); color: var(--on-dk); font-size: 13px; vertical-align: 1px; }
.mn-gap { margin-top: 12px !important; }
.mn-hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.mn-picker { display: flex; gap: 8px; }
.mn-picker input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--lt); font: 500 14px var(--font); color: var(--text); }
.mn-dish-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mn-dish-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--ac-softer); box-shadow: inset 0 0 0 1px var(--ac-muted); }
.mn-dish-name { font-weight: 700; font-size: 13px; }
.mn-dish-item small { font-size: 11.5px; color: var(--muted); }
.mn-dish-list:empty { display: none; }
.mn-dish-item.is-warn { background: #fffbeb; box-shadow: inset 0 0 0 1px #fcd34d; }
.mn-dish-item.is-warn small { color: #92400e; }
.mn-auto { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.mn-auto-title { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mn-auto ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.mn-auto b { font-weight: 700; }
.mn-x { width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--lt); color: #b91c1c; font-size: 17px; line-height: 1; cursor: pointer; }
.mn-x:hover { background: #fee2e2; }
.mn-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mn-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 80px 90px 28px; gap: 8px; align-items: center; }
.mn-row input, .mn-row select { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--lt); font: 500 13px var(--font); color: var(--text); }
.mn-row-cost { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; white-space: nowrap; }
.mn-row-cost.is-missing { color: #b45309; }
.mn-price { font-size: 20px !important; font-weight: 700 !important; }
.mn-shelf { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); font-size: 12.5px; color: var(--muted); }
.mn-shelf b { color: var(--text); white-space: nowrap; }
.ev-dishes .ev-dish { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.mn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mn-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; margin: 0; color: var(--text); }
.mn-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--ac); }
.mn-card.is-muted { opacity: .6; }
.mn-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.mn-card-price { font-size: 22px; font-variant-numeric: tabular-nums; }
.mn-card-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.mn-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12.5px; font-weight: 600; }

@media (max-width: 1100px) {
  .ev-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-form-side { position: static; }
  .pn-grid.ev-home, .pn-grid.ev-show { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ev-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ev-cal { display: none; }
  .ev-agenda { display: flex; }
  .ev-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ev-span-2 { grid-column: auto; }
  .ev-add-row label, .ev-add-row label.is-sm { flex: 1 1 100%; }
  .ev-add-row .btn { width: 100%; justify-content: center; }
  .ev-up { grid-template-columns: auto minmax(0, 1fr); }
  .ev-up-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .mn-row { grid-template-columns: minmax(0, 1fr) 80px 70px 28px; }
  .mn-row-cost { grid-column: 1 / -1; text-align: left; order: 5; margin-top: -4px; }
  table.tbl.is-stack.ac-table td .ev-num { margin-left: auto; }
}
.mt-pack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.mt-qty { display: flex; gap: 6px; }
.mt-qty input { flex: 1; min-width: 0; }
.mt-qty select { width: auto !important; min-width: 90px; }
.mt-convert { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--ac-softer); color: var(--ac-lo); font-size: 12.5px; font-weight: 600; }
@media (max-width: 700px) { .mt-pack { grid-template-columns: minmax(0, 1fr); } }

.mt-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--lt-1); box-shadow: inset 0 0 0 1px var(--border); }
.mt-box-title { font-size: 13px; font-weight: 700; }
.mt-box .form-group { margin: 0; }
.mt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mt-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; box-shadow: inset 0 0 0 1px #bbf7d0; }
.mt-result span { font-size: 13px; font-weight: 600; color: #166534; }
.mt-result b { font-size: 20px; color: #15803d; font-variant-numeric: tabular-nums; }
.mt-result small { font-size: 12px; color: #166534; }
@media (max-width: 700px) { .mt-grid-3 { grid-template-columns: minmax(0, 1fr); } }

.ev-cal-header { flex-wrap: wrap; }
.ev-cal-nav { display: flex; align-items: center; gap: 8px; }
.ev-cal-nav h2 { min-width: 120px; text-align: center; }
.ev-cal-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--lt-2); color: var(--text); font-size: 22px; font-weight: 700; line-height: 1; }
.ev-cal-arrow:hover { background: var(--ac-softer); color: var(--ac-lo); text-decoration: none; }

.ev-cal-day:hover { box-shadow: inset 0 0 0 2px var(--ac-muted); }
.ev-cal-day:focus-visible { outline: 3px solid var(--primary-light); }
.ev-cal-day.has-events { background: var(--lt); }
.ev-cal-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--dk); color: var(--on-dk); font-style: normal; font-size: 11px; display: grid; place-items: center; }
.ev-chip-more { font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.ev-day-halls { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-day-halls:empty { display: none; }
.ev-day-hall { padding: 5px 10px; border-radius: 999px; font-size: 12px; }
.ev-day-hall.is-free { background: #f0fdf4; color: #166534; }
.ev-day-hall.is-busy { background: #fef3c7; color: #92400e; }
.ev-day-list { display: flex; flex-direction: column; gap: 8px; }
.ev-day-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--lt-1); border-left: 4px solid transparent; }
.ev-day-item.is-option { border-left-color: #f59e0b; }
.ev-day-item.is-confirmed { border-left-color: #16a34a; }
.ev-day-item.is-completed { border-left-color: #6366f1; }
.ev-day-item.is-cancelled { opacity: .6; }
.ev-day-time { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-day-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-day-main small { font-size: 12px; color: var(--muted); }
.ev-day-main .badge { padding: 1px 7px; font-size: 11px; }
.ev-day-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ev-day-side b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-day-side small { font-size: 12px; white-space: nowrap; }
.ev-day-actions { display: flex; gap: 6px; margin-top: 2px; }
@media (max-width: 700px) {
  .ev-day-item { grid-template-columns: 48px minmax(0, 1fr); }
  .ev-day-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

.ev-pay-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ev-pay-head > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: var(--lt-1); }
.ev-pay-head > div.is-main { background: linear-gradient(150deg, var(--ac-softer), var(--lt-2)); }
.ev-pay-head small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ev-pay-head b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-pay-head .is-main b { font-size: 19px; }
.ev-pay-amount { font-size: 22px !important; font-weight: 700 !important; }
.ev-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-pay-method-btn { position: relative; margin: 0 !important; cursor: pointer; }
.ev-pay-method-btn input { position: absolute; opacity: 0; pointer-events: none; }
.ev-pay-method-btn span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 2px solid var(--border); background: var(--lt); font-size: 13px; font-weight: 700; text-align: center; }
.ev-pay-method-btn .pos-ico { width: 26px; height: 26px; color: var(--ac-text); }
.ev-pay-method-btn input:checked + span { border-color: var(--ac-text); background: var(--ac-softer); color: var(--ac-lo); }
.ev-pay-method-btn input:focus-visible + span { outline: 3px solid var(--primary-light); }
.ev-pay-more { border-radius: 12px; background: var(--lt-1); padding: 10px 12px; }
.ev-pay-more summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.ev-pay-more summary small { font-weight: 500; color: var(--muted); }
.ev-pay-more[open] summary { margin-bottom: 10px; }
.ev-pay-method { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--lt-3); color: var(--tx-muted); vertical-align: 1px; }
.ev-pay-method.is-cash { background: #dcfce7; color: #166534; }
.ev-pay-method.is-card { background: #e0e7ff; color: #3730a3; }
.ev-receipt-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f0fdf4; box-shadow: inset 0 0 0 1px #bbf7d0; font-size: 13px; color: #166534; }
@media (max-width: 700px) { .ev-pay-head b { font-size: 14px; } .ev-pay-method-btn span { padding: 10px 4px; font-size: 12px; } }

.ev-pay-head.is-single { grid-template-columns: 1fr; }
.ev-pay-head.is-single .is-main { align-items: center; text-align: center; padding: 12px; }
.ev-pay-head.is-single .is-main b { font-size: 26px; }
.ev-pay-head.is-single .is-main span { font-size: 13px; color: var(--tx-muted); }
.ev-pay-methods.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-scope { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--lt-3); }
.ev-scope a { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--tx-muted); text-decoration: none; }
.ev-scope a.is-active { background: var(--lt); color: var(--text); box-shadow: 0 1px 3px rgba(var(--dk-rgb),.12); }
.ev-sp-card .card-header { align-items: center; gap: 12px; }
.ev-sp-card.is-past { box-shadow: inset 4px 0 0 #f59e0b; }
.ev-sp-title { display: flex; flex-direction: column; min-width: 0; }
.ev-sp-total { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ev-pay-methods.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .ev-pay-methods.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.cr-kpi.ev-kpi-link { color: inherit; text-decoration: none; }
a.cr-kpi.ev-kpi-link:hover { box-shadow: inset 0 0 0 2px var(--primary-light); }
.ev-buy { font-size: 15px; white-space: nowrap; }
.mc-inputs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mc-inputs label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.mc-inputs input { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.mc-inputs span { font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.mc-inputs b { color: var(--muted); }
.mc-table tr.is-counted td { background: var(--ac-softer); }
.mc-diff { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.mc-diff.is-plus { color: #15803d; }
.mc-diff.is-minus { color: #b91c1c; }
.mc-diff.is-same { color: var(--tx-muted); font-weight: 600; }
.mc-foot { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--lt); border-top: 1px solid var(--border); }
.mc-note { display: flex; flex-direction: column; gap: 4px; margin: 0; flex: 1 1 220px; }
.mc-note span { font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.mc-summary { font-size: 13px; font-weight: 600; color: var(--tx-muted); padding-bottom: 10px; }

.mn-card { gap: 8px; }
.mn-card:hover { box-shadow: none; }
.mn-card-name { font-weight: 700; color: var(--text); text-decoration: none; }
.mn-card-name:hover { color: var(--ac-lo); text-decoration: underline; }
.mn-costs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.mn-costs li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12.5px; overflow: hidden; z-index: 0; }
.mn-costs li i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ac-softer); z-index: -1; }
.mn-costs li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-costs li em { font-style: normal; font-size: 11px; font-weight: 700; color: #b45309; }
.mn-costs li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-ratio { padding-top: 8px; border-top: 1px dashed var(--border); }
.mn-ratio-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.mn-ratio .ev-bar { margin: 6px 0 3px; }
.mn-ratio small { font-size: 12px; color: var(--tx-muted); }
.mn-ratio.is-good small { color: #15803d; }
.mn-ratio.is-mid small { color: #b45309; }
.mn-ratio.is-bad small { color: #b91c1c; }
.mn-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.mn-card-actions .inline-form { display: inline-flex; margin: 0; }
.mn-target { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); display: flex; flex-direction: column; gap: 8px; }
.mn-target-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mn-target-head label { margin: 0; font-size: 13px; font-weight: 700; }
.mn-target-input { display: inline-flex; align-items: center; gap: 4px; }
.mn-target-input input { width: 64px; text-align: right; }
.mn-suggest { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.mn-suggest b { font-size: 16px; font-variant-numeric: tabular-nums; }
.mn-needs-form label { font-size: 13px; font-weight: 700; }
.mn-needs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.mn-needs-row input { width: 120px; font-size: 18px; font-weight: 700; }
.mn-needs-row .ac-chips { flex: 0 1 auto; }
a.ac-chip { text-decoration: none; }
.ac-chip.is-active { border-style: solid; background: var(--ac); color: var(--on-ac, #fff); }
.ac-alert.is-warn { background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #fde68a; }
tr.mn-short td { background: #fef2f2; }
.su-list { display: flex; flex-direction: column; gap: 8px; }
.su-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "move main value" "move buttons buttons"; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.su-row.is-muted { opacity: .65; }
.su-row .su-actions { grid-area: move; display: flex; flex-direction: column; gap: 2px; }
.su-row .su-main { grid-area: main; }
.su-row .su-value { grid-area: value; }
.su-row .su-buttons { grid-area: buttons; }
.su-move { width: 30px; height: 24px; border: 1px solid var(--border); border-radius: 7px; background: var(--lt); color: var(--tx-muted); font: 700 13px var(--font); cursor: pointer; line-height: 1; }
.su-move:hover:not(:disabled) { color: var(--ac-lo); border-color: var(--ac-text); }
.su-move:disabled { opacity: .35; cursor: default; }
.su-main { display: flex; flex-direction: column; min-width: 0; }
.su-main strong, .su-main > a { font-size: 14px; }
.su-main small { font-size: 12px; color: var(--tx-muted); }
.su-value { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.su-value small { font-size: 11px; font-weight: 500; color: var(--muted); }
.su-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.su-buttons .inline-form { display: inline-flex; margin: 0; }
.su-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.su-search { width: 220px; max-width: 100%; }
.su-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.su-people > .pn-empty { grid-column: 1 / -1; }
.su-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); }
.su-person.is-muted { opacity: .6; }
.su-person .su-main { flex: 1; }
.su-avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-softer); color: var(--ac-lo); font-weight: 700; }
.ac-inline-check.is-locked { opacity: .7; }
.ev-people { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.ev-person-chip { padding: 2px 8px; border-radius: 999px; background: var(--ac-softer); color: var(--ac-lo); font-size: 12px; font-weight: 600; text-decoration: none; }
.ev-person-chip.is-busy { background: #fef3c7; color: #92400e; }
.ev-person-add { padding: 2px 9px; border: 1px dashed var(--ac-muted); border-radius: 999px; background: transparent; color: var(--ac-lo); font: 600 12px var(--font); cursor: pointer; }
.ev-pick-head { display: flex; align-items: center; gap: 10px; }
.ev-pick-head input { flex: 1; }
.ev-pick-head b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.ev-pick { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--lt-1); cursor: pointer; }
.ev-pick.is-checked { background: var(--ac-softer); box-shadow: inset 0 0 0 1.5px var(--ac); }
.ev-pick input { margin-top: 3px; }
.ev-pick input:disabled + span { opacity: .5; }
.ev-pick span { display: flex; flex-direction: column; }
.ev-pick small { font-size: 12px; color: var(--tx-muted); }
.ev-pick .ev-pick-busy { color: #b45309; font-weight: 600; }
.su-period { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.su-period .ev-scope { margin: 0; }
.su-period-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.su-period-custom label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.su-occ-cell { min-width: 120px; }
.su-occ, .su-rev { height: 6px; border-radius: 3px; background: var(--lt-3); overflow: hidden; margin-top: 3px; }
.su-occ i, .su-rev i { display: block; height: 100%; background: var(--ac); border-radius: 3px; }
.su-occ-cell small { font-size: 12px; font-weight: 600; }
@media (max-width: 560px) { .su-people { grid-template-columns: 1fr; } .su-search { width: 100%; } }
.mt-filterbar { margin-bottom: 14px; }
.mt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mt-filters input[type="search"] { flex: 1 1 200px; max-width: 280px; }
.mt-filters select { flex: 0 1 200px; }
.mt-filters .ac-chips { flex: 1 1 auto; }
.mt-filters .ac-chip b { font-weight: 700; opacity: .7; margin-left: 2px; }
.mt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.mt-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; margin: 0; }
.mt-card.is-muted { opacity: .6; }
.mt-card[hidden] { display: none; }
.mt-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mt-card-name { font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.mt-card-name:hover { color: var(--ac-lo); text-decoration: underline; }
.mt-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.mt-stock-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.mt-stock-num b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.mt-stock-num span { font-size: 13px; font-weight: 600; color: var(--tx-muted); }
.mt-stock-num small { flex-basis: 100%; font-size: 12px; color: var(--tx-muted); }
.mt-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--lt-3); }
.mt-bar i { display: block; height: 100%; border-radius: 4px; background: #16a34a; }
.mt-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .45; }
.mt-stock.is-low b { color: #b91c1c; }
.mt-stock.is-low .mt-bar i { background: #dc2626; }
.mt-stock.is-short .mt-bar i { background: #f59e0b; }
.mt-meta { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 3px; }
.mt-meta li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.mt-meta li span { color: var(--tx-muted); }
.mt-meta li b { text-align: right; font-variant-numeric: tabular-nums; }
.mt-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mt-reusable { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #eef2ff; cursor: pointer; }
.mt-reusable input { margin-top: 3px; }
.mt-reusable span { display: flex; flex-direction: column; gap: 2px; }
.mt-reusable small { font-size: 12px; color: var(--tx-muted); }
.ev-return { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 600; }
.ev-return .inline-form { display: inline-flex; margin: 0; }
.ev-kit-row { border-top: 1px dashed var(--border); }
.mt-kit-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mt-kit-items li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 6px; background: var(--lt-1); font-size: 13px; }
.mt-kit-items li.is-muted { opacity: .55; }
.mt-kit-items em { font-style: normal; font-size: 11px; font-weight: 700; color: #3730a3; }
.mt-kit-items small { color: var(--tx-muted); white-space: nowrap; }
.mt-kit-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mt-kit-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 50px 32px; align-items: center; gap: 6px; }
.mt-kit-unit { font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.mt-price-list { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--tx-muted); }
@media (max-width: 560px) { .mt-filters input[type="search"], .mt-filters select { max-width: none; flex-basis: 100%; } .mt-kit-row { grid-template-columns: minmax(0, 1fr) 80px 32px; } .mt-kit-unit { display: none; } }

.ev-alerts { margin-bottom: 14px; }
.ev-alerts > summary { cursor: pointer; list-style: none; }
.ev-alerts > summary::-webkit-details-marker { display: none; }
.ev-alert-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 6px; border-radius: 12px; background: #dc2626; color: #fff; font-size: 12px; vertical-align: 2px; }
.ev-alert-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ev-alert-group { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); border-left: 4px solid var(--border); }
.ev-alert-group.is-red { border-left-color: #dc2626; }
.ev-alert-group.is-amber { border-left-color: #f59e0b; }
.ev-alert-group.is-blue { border-left-color: #6366f1; }
.ev-alert-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.ev-alert-hint { font-size: 12px; color: var(--tx-muted); }
.ev-alert-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-alert-group li a { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: var(--lt); color: var(--text); text-decoration: none; }
.ev-alert-group li a:hover { box-shadow: inset 0 0 0 1.5px var(--ac-muted); }
.ev-alert-date { flex: 0 0 42px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tx-muted); padding-top: 1px; }
.ev-alert-main { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.ev-alert-main small { font-size: 12px; color: var(--tx-muted); }
.ev-alert-ok { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: #f0fdf4; color: #166534; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px #bbf7d0; }
.ev-view-switch { margin: 0; }
.ev-cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.ev-cal-filters select { max-width: 200px; }
.ev-status-chip.is-option.is-active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.ev-status-chip.is-confirmed.is-active { background: #16a34a; border-color: #16a34a; color: #fff; }
.ev-status-chip.is-completed.is-active { background: #6366f1; border-color: #6366f1; color: #fff; }
.ev-status-chip.is-cancelled.is-active { background: #6b7280; border-color: #6b7280; color: #fff; }
.ev-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ev-week-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 6px; border-radius: 12px; background: var(--lt-1); box-shadow: inset 0 0 0 1px var(--border); min-height: 220px; }
.ev-week-day.is-today { box-shadow: inset 0 0 0 2px var(--ac); background: var(--ac-softer); }
.ev-week-day.is-past { background: var(--lt-2); }
.ev-week-head { display: flex; align-items: baseline; gap: 5px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.ev-week-head:hover { background: var(--lt); }
.ev-week-head span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.ev-week-head b { font-size: 18px; }
.ev-week-head small { font-size: 11px; color: var(--muted); }
.ev-week-list { display: flex; flex-direction: column; gap: 5px; }
.ev-week-item { display: flex; flex-direction: column; gap: 1px; padding: 6px 7px; border-radius: 8px; background: var(--lt); border-left: 3px solid var(--border); color: var(--text); text-decoration: none; font-size: 12px; min-width: 0; }
.ev-week-item strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.ev-week-item small { font-size: 11px; color: var(--tx-muted); }
.ev-week-item.is-option { border-left-color: #f59e0b; background: #fffbeb; }
.ev-week-item.is-confirmed { border-left-color: #16a34a; background: #f0fdf4; }
.ev-week-item.is-completed { border-left-color: #6366f1; background: #eef2ff; }
.ev-week-item.is-cancelled { opacity: .55; text-decoration: line-through; }
.ev-week-item:hover { box-shadow: inset 0 0 0 1.5px var(--ac-muted); }
.ev-week-empty { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px; border-radius: 8px; text-align: center; text-decoration: none; border: 1px dashed var(--border); }
.ev-week-empty:hover:not(.is-past) { color: var(--ac-lo); border-color: var(--ac-text); }
.ev-hallgrid-wrap { overflow-x: auto; max-width: 100%; }
.ev-hallgrid { border-collapse: separate; border-spacing: 2px; min-width: 100%; }
.ev-hallgrid th { font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0; text-align: center; min-width: 30px; }
.ev-hallgrid thead th b { display: block; font-size: 12px; color: var(--text); }
.ev-hallgrid thead th small { display: block; font-size: 10px; }
.ev-hallgrid th.is-weekend small { color: #b45309; }
.ev-hallgrid th.is-today b { color: var(--ac-lo); }
.ev-hallgrid .ev-hg-hall { position: sticky; left: 0; z-index: 1; min-width: 120px; padding: 4px 8px; text-align: left; background: var(--lt); font-size: 13px; color: var(--text); }
.ev-hallgrid .ev-hg-hall small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.ev-hallgrid td { padding: 0; }
.ev-hg-cell { width: 100%; min-width: 30px; height: 38px; padding: 0 2px; border: 0; border-radius: 6px; background: var(--lt-1); font: 700 10px var(--font); color: var(--text); cursor: pointer; line-height: 1.1; }
.ev-hallgrid td.is-weekend .ev-hg-cell { background: var(--lt-2); }
.ev-hg-cell em { display: block; font-style: normal; font-size: 9px; }
.ev-hg-cell:hover { box-shadow: inset 0 0 0 2px var(--ac-muted); }
.ev-hg-cell.is-past { opacity: .75; }
.ev-hallgrid td .ev-hg-cell.is-option { background: #fde68a; }
.ev-hallgrid td .ev-hg-cell.is-confirmed { background: #86efac; }
.ev-hallgrid td .ev-hg-cell.is-completed { background: #c7d2fe; }
.ev-hallgrid td .ev-hg-cell.is-cancelled { background: var(--lt-3); color: var(--muted); text-decoration: line-through; }
.ev-hallgrid td.is-today .ev-hg-cell { box-shadow: inset 0 0 0 2px var(--ac); }
.ev-hg-sum { min-width: 60px; text-align: center; font-size: 12px; }
.ev-hg-sum b { display: block; font-size: 14px; }
.ev-hg-sum small { color: var(--muted); }
.ev-hg-note { margin: 8px 0 0; font-size: 12px; }
.ev-avail-inputs { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; align-items: end; gap: 8px; }
.ev-avail-inputs label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.ev-avail-result { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ev-avail-date { font-size: 15px; }
.ev-avail-halls { display: flex; flex-direction: column; gap: 6px; }
.ev-avail-hall { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--lt-1); border-left: 4px solid var(--border); }
.ev-avail-hall > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.ev-avail-hall small { font-size: 12px; color: var(--tx-muted); }
.ev-avail-hall.is-free { border-left-color: #16a34a; }
.ev-avail-hall.is-busy { border-left-color: #dc2626; }
.ev-avail-hall.is-small { border-left-color: #f59e0b; }
.ev-avail-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ev-avail-state { font-size: 12px; font-weight: 700; }
.ev-avail-hall.is-free .ev-avail-state { color: #15803d; }
.ev-avail-hall.is-busy .ev-avail-state { color: #b91c1c; }
.ev-avail-hall.is-small .ev-avail-state { color: #b45309; }
.ev-avail-events, .ev-avail-suggest { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ev-avail-events a { color: var(--text); font-size: 12.5px; }
.ev-avail-suggest a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f0fdf4; color: #166534; text-decoration: none; font-weight: 600; }
.ev-avail-suggest a small { font-weight: 500; }
@media (max-width: 900px) { .ev-week { grid-template-columns: 1fr; } .ev-week-day { min-height: 0; } }
@media (max-width: 640px) { .ev-avail-inputs { grid-template-columns: 1fr 1fr; } .ev-avail-inputs button { grid-column: 1 / -1; } .ev-avail-hall { flex-direction: column; align-items: stretch; } }

.ev-debt-check { display: flex; flex-direction: row !important; align-items: center; gap: 6px; align-self: end; padding-bottom: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ev-list-wrap { overflow-x: auto; }
.ev-list th .ev-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.ev-list th .ev-sort:hover { color: var(--ac-lo); }
.ev-list th .ev-sort.is-active { color: var(--ac-lo); }
.ev-list-check { width: 34px; }
.ev-list-check input { width: 18px; height: 18px; cursor: pointer; }
.ev-list tr.is-selected td { background: var(--ac-softer); }
.ev-flags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.ev-flags .badge { font-size: 10.5px; }
.ev-paybar { width: 110px; max-width: 100%; height: 6px; margin: 4px 0 2px auto; border-radius: 3px; background: var(--lt-3); overflow: hidden; }
.ev-paybar i { display: block; height: 100%; border-radius: 3px; background: #16a34a; }
.ev-bulkbar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: var(--dk); color: var(--on-dk); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ev-bulkbar[hidden] { display: none; }
.ev-bulkbar b { font-size: 16px; }
.ev-bulkbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

.ev-copy-card { margin-bottom: 14px; }
.ev-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-copy-row label { display: flex; flex-direction: column; margin: 0; }
.ev-copy-row label small { font-size: 12px; color: var(--tx-muted); font-weight: 500; }
.ev-copy-row select { flex: 1 1 280px; max-width: 520px; }
.ev-live { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.ev-live p { margin: 0; }
.ev-live.is-ok { background: #f0fdf4; color: #166534; box-shadow: inset 0 0 0 1px #bbf7d0; }
.ev-live.is-warn { background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #fde68a; }
.ev-live.is-bad { background: #fef2f2; color: #991b1b; box-shadow: inset 0 0 0 1px #fecaca; }
.ev-live-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text); }
.ev-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ev-lines:empty { display: none; }
.ev-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .7fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--lt-1); }
.ev-line-extra { grid-template-columns: minmax(0, 2fr) minmax(0, .6fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.ev-line label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: var(--tx-muted); min-width: 0; }
.ev-line .mn-x { margin-bottom: 4px; }
.ev-line-info { grid-column: 1 / -1; font-size: 12px; color: var(--tx-muted); }
.ev-line-info:empty { display: none; }
.ev-line:not(.ev-line-extra) .ev-line-info { order: 5; }
.ev-kit-pick { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; align-items: end; margin-bottom: 12px; }
.ev-kit-pick > label:first-child { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 700; }
.ev-kit-times { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: var(--tx-muted); }
.ev-deposit-toggle { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }
.ev-deposit-toggle input { margin-top: 3px; width: 18px; height: 18px; }
.ev-deposit-toggle span { display: flex; flex-direction: column; }
.ev-deposit-toggle small { font-size: 12px; color: var(--tx-muted); }
.ev-deposit { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ev-deposit .ev-quick { margin-top: 6px; }
@media (max-width: 700px) {
  .ev-line, .ev-line-extra { grid-template-columns: 1fr 1fr; }
  .ev-line .is-wide { grid-column: 1 / -1; }
  .ev-line .mn-x { justify-self: end; }
}
a.cr-kpi.pn-kpi-event { color: inherit; text-decoration: none; }
a.cr-kpi.pn-kpi-event:hover { box-shadow: inset 0 0 0 2px var(--primary-light); }
.ac-split { margin-bottom: 14px; }
.ac-split-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-split-col { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--lt-1); }
.ac-split-col.is-event { background: #eef2ff; }
.ac-split-col.is-event a, .ac-split-col.is-event strong, .ac-split-col.is-event b { color: #3730a3; }
.ac-split-col h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: .02em; }
.ac-split-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.ac-split-row small { font-size: 11.5px; color: var(--tx-muted); }
.ac-split-row a { text-decoration: none; }
.ac-split-row b { font-variant-numeric: tabular-nums; }
.ac-split-net { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border); }
.ac-split-net strong { font-size: 18px; font-variant-numeric: tabular-nums; color: #15803d; }
.ac-split-net.is-neg strong { color: #b91c1c; }
.ac-split-net small { font-size: 11.5px; font-weight: 500; color: var(--tx-muted); }
.ac-split-note { margin: 6px 0 0; font-size: 12px; color: var(--tx-muted); }
@media (max-width: 700px) { .ac-split-body { grid-template-columns: 1fr; } }
/* Dar ekranda kart görünümündeki tabloda son hücre ve boş liste yazısı satıra sığsın */
table.tbl td.empty { white-space: normal; }
@media (max-width: 700px) {
  .pos-page table.tbl.is-stack td:last-child, table.tbl.is-stack td.empty { white-space: normal; }
  .mt-price-list li { white-space: normal; }
}

/* Telefonda özet kutuları iki sütun; ana kutu tam genişlik */
@media (max-width: 480px) {
  .cr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cr-kpis > .pn-kpi-main { grid-column: 1 / -1; }
  .cr-kpi { padding: 10px 12px; min-width: 0; }
  .cr-kpi span { font-size: 10px; letter-spacing: .04em; }
  .cr-kpi strong { font-size: 17px; overflow-wrap: anywhere; }
  .cr-kpi small { font-size: 11px; }
}

/* Telefonda küçük dokunma alanları */
@media (max-width: 640px) {
  .su-move { width: 40px; height: 34px; font-size: 15px; }
  .su-row .su-actions { flex-direction: row; }
  .ev-person-add { min-height: 32px; padding: 4px 12px; }
  .ev-person-chip { padding: 5px 10px; }
  .mt-filters input[type="search"], .mt-filters select { min-height: 40px; }
}
@media (max-width: 640px) {
  .su-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main value" "move buttons"; }
}

.pn-week-title { display: flex; align-items: center; gap: 8px; }
.pn-week-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--lt-2); color: var(--text); font-size: 18px; font-weight: 700; line-height: 1; text-decoration: none; }
.pn-week-arrow:hover { background: var(--ac-softer); color: var(--ac-lo); text-decoration: none; }

/* ---------- Müşteri açık hesabı (veresiye) ---------- */
.oa-debt { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--lt-1); }
.oa-debt small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.oa-debt b { font-size: 22px; font-variant-numeric: tabular-nums; }
.oa-amount { font-size: 22px !important; font-weight: 700 !important; }
.oa-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.oa-method { position: relative; margin: 0; cursor: pointer; }
.oa-method input { position: absolute; opacity: 0; pointer-events: none; }
.oa-method span { display: block; padding: 11px 6px; border-radius: 12px; border: 2px solid var(--border); background: var(--lt); font-size: 13px; font-weight: 700; text-align: center; }
.oa-method input:checked + span { border-color: var(--ac-text); background: var(--ac-softer); color: var(--ac-lo); }
.oa-method input:focus-visible + span { outline: 3px solid var(--primary-light); }
.oa-picks { display: flex; flex-direction: column; gap: 5px; max-height: 44vh; overflow-y: auto; margin-top: 6px; }
.oa-pick { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 11px; border-radius: 11px; background: var(--lt-1); cursor: pointer; }
.oa-pick[hidden] { display: none; }
.oa-pick span { display: flex; flex-direction: column; min-width: 0; }
.oa-pick small { font-size: 12px; color: var(--tx-muted); }
.oa-pick input:checked ~ span strong { color: var(--ac-lo); }
.oa-pick:has(input:checked) { background: var(--ac-softer); box-shadow: inset 0 0 0 1.5px var(--ac); }
.pay-account { width: 100%; margin-top: 8px; padding: 13px; border: 1px dashed var(--pos-muted, #9aa3af); border-radius: 14px; background: transparent; color: inherit; font: 700 14px var(--font); cursor: pointer; }
.pay-account:hover:not(:disabled) { border-style: solid; border-color: var(--ac-text); color: var(--ac-text); }
.pay-account:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Yeni masa ekleme penceresi ---------- */
.ac-alert[hidden] { display: none; }
.nt-modal { width: 520px; }
.nt-modal .pm-head { align-items: flex-start; }
.nt-modal .nt-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.nt-modal .pm-body { gap: 14px; }
.nt-modal .form-group { margin-bottom: 0; }
.nt-req { color: var(--danger); }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nt-grid-1 { grid-template-columns: 1fr; }
.nt-chips { margin-bottom: 8px; }
.nt-stepper { display: flex; align-items: stretch; gap: 6px; }
.nt-stepper input { flex: 1 1 auto; min-width: 0; text-align: center; }
.nt-step { flex: 0 0 auto; width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--lt-2); font: 700 18px var(--font); line-height: 1; color: var(--tx); cursor: pointer; }
.nt-step:hover { background: var(--ac-softer); border-color: var(--ac-muted); color: var(--ac-lo); }
.nt-details { border-top: 1px dashed var(--border); padding-top: 12px; }
.nt-details > summary { font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.nt-details > summary:hover { color: var(--ac-lo); }
.nt-details .form-group { margin-top: 10px; }
@media (max-width: 520px) {
  .nt-grid { grid-template-columns: 1fr; }
}

/* ---------- Stok raporu: dönem ve tüketim kırılımı ---------- */
.sr-period { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sr-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-nav .is-off { opacity: .4; cursor: default; }
.sr-period-label { font-weight: 700; }
.sr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sr-sub { margin: 22px 0 6px; font-size: 15px; font-weight: 700; }
.sr-note { margin: 0 0 10px; }
.sr-table .cr-num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-total td { font-weight: 700; background: var(--lt-1); }
.sr-why { margin-top: 4px; }
.sr-why > summary { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ac-lo); cursor: pointer; }
.sr-why > summary:hover { text-decoration: underline; }
.sr-why-list { margin: 6px 0 2px; padding: 8px 10px; list-style: none; border-radius: 10px; background: var(--lt-1); }
.sr-why-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.sr-why-list li + li { border-top: 1px dashed var(--border); }
.sr-why-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-stats .stat .stat-val { white-space: nowrap; font-size: clamp(15px, 4.4vw, 24px); }
.sr-why-list .sr-qty { margin-left: 4px; color: var(--ac-lo); }

/* ---------- Garson bölge atama penceresi ---------- */
.ws-modal { width: 680px; }
.ws-modal .pm-head { align-items: flex-start; }
.ws-badge { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 7px; background: var(--ac-softer); color: var(--ac-lo); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ws-add-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--lt-1); }
.ws-add-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-add-left .ws-icon { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ac-softer); color: var(--ac-lo); flex: 0 0 auto; }
.ws-add-input { display: flex; gap: 6px; flex: 1 1 260px; }
.ws-add-input input { flex: 1 1 auto; min-width: 0; }
.ws-add-input .btn { flex: 0 0 auto; }
.ws-list { display: flex; flex-direction: column; gap: 8px; }
.ws-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--lt); }
.ws-user { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.ws-avatar { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ac); color: var(--on-ac); font-weight: 700; flex: 0 0 auto; }
.ws-user-text { display: flex; flex-direction: column; min-width: 0; }
.ws-selector { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; justify-content: flex-end; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.ws-all { flex: 0 0 auto; }
.ws-empty { padding: 22px 12px; text-align: center; color: var(--muted); }
.ws-empty p { margin: 0 0 10px; }
@media (max-width: 560px) {
  .ws-row { flex-direction: column; align-items: stretch; }
  .ws-selector { flex: 0 0 auto; justify-content: flex-start; }
  .ws-chips { justify-content: flex-start; }
}
