:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e8ebf1;
  --line-2: #dfe3ea;
  --primary: #4f46e5;
  --primary-2: #2563eb;
  --primary-soft: #eef2ff;
  --grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 60%, #0ea5e9 100%);
  --green: #059669;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-size: 14px; line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
h1 { font-size: 26px; margin: 0; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 16px; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 14px; margin: 0 0 10px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.01em; }
.green { color: var(--green); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.hidden { display: none !important; }
.ico { flex-shrink: 0; display: inline-block; vertical-align: middle; }
::selection { background: #c7d2fe; }

/* ---------- Layout ---------- */
.layout { display: flex; height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0; display: flex; flex-direction: column; color: #cbd5e1; position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at -20% -10%, rgba(79, 70, 229, .45), transparent 60%), linear-gradient(180deg, #0b1020 0%, #0f172a 100%);
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 8px 20px -6px rgba(99, 102, 241, .7); flex-shrink: 0; }
.sidebar .brand b { display: block; color: #fff; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.sidebar .brand small { color: #64748b; font-size: 12px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #475569; padding: 16px 10px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #94a3b8; margin-bottom: 2px; font-weight: 500; transition: background .15s, color .15s; position: relative; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .05); color: #e2e8f0; }
.sidebar nav a.active { color: #fff; background: linear-gradient(90deg, rgba(99, 102, 241, .28), rgba(99, 102, 241, .06)); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .22); }
.sidebar nav a.active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #818cf8; }
.sidebar nav a.active .ico { color: #a5b4fc; }
.sidebar nav a span { flex: 1; }
.sidebar kbd { font: 600 10px/1 inherit; color: #a5b4fc; background: rgba(99, 102, 241, .18); border-radius: 5px; padding: 4px 6px; letter-spacing: .04em; }
.sidebar .user { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #f472b6, #8b5cf6); flex-shrink: 0; }
.user-meta { flex: 1; min-width: 0; }
.user-meta b { display: block; color: #f1f5f9; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #64748b; font-size: 12px; }
.sidebar .icon-btn { color: #94a3b8; }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { flex: 1; overflow-y: auto; }
.page { padding: 32px 36px 48px; max-width: 1400px; animation: pagein .25s ease-out; }
@keyframes pagein { from { opacity: 0; transform: translateY(4px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.back-link:hover { color: var(--primary); }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 12px; }

/* ---------- Cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .value small.unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.split-val { display: block; }
.split-val small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.stat-ico.indigo { background: #eef2ff; color: #4f46e5; }
.stat-ico.emerald { background: #ecfdf5; color: #059669; }
.stat-ico.sky { background: #f0f9ff; color: #0284c7; }
.stat-ico.amber { background: #fffbeb; color: #d97706; }
.stat-ico.rose { background: #fff1f2; color: #e11d48; }

/* Kasa şeridi */
.cash-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.cash-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cash-strip.open .cash-dot { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: pulse 2s infinite; }
.cash-strip.closed .cash-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .16); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, .06); } }
.cash-text { flex: 1; min-width: 200px; }
.cash-text b { display: block; font-size: 15px; }
.cash-text span { color: var(--muted); font-size: 13px; }
.cash-amount { text-align: right; }
.cash-amount span { display: block; font-size: 12px; color: var(--muted); }
.cash-amount b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* Hızlı işlemler */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.quick-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.quick-item div { flex: 1; }
.quick-item b { display: block; font-size: 14px; }
.quick-item small { color: var(--muted); font-size: 12.5px; }
.quick-item > .ico:last-child { color: var(--muted-2); transition: transform .15s, color .15s; }
.quick-item:hover > .ico:last-child { transform: translateX(3px); color: var(--primary); }

/* Sıralı liste */
.rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--text); border-radius: 8px; }
.rank-row:last-child { border-bottom: 0; }
a.rank-row:hover { background: #f8fafc; }
.rank-no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #f1f5f9; color: var(--muted); flex-shrink: 0; }
.rank-no.red { background: #fef2f2; color: var(--red); }
.rank-no.amber { background: #fffbeb; color: var(--amber); }
.rank-name { flex: 1; min-width: 0; font-weight: 500; }
.rank-row b { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
button, .btn {
  font: inherit; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-2); background: #fff; color: var(--text-2);
  height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, color .15s;
}
button:hover, .btn:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--text); }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(99, 102, 241, .2); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary, .btn.primary { color: #fff; border-color: transparent; background: var(--grad); background-size: 150% 100%; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55); }
button.primary:hover, .btn.primary:hover { color: #fff; background: var(--grad); background-size: 150% 100%; background-position: 100% 0; box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .65); }
button.success { color: #fff; border-color: transparent; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 16px -6px rgba(5, 150, 105, .55); }
button.success:hover { color: #fff; background: linear-gradient(135deg, #059669, #047857); }
button.danger { background: #fff; border-color: #fecaca; color: var(--red); }
button.danger:hover { background: #fef2f2; border-color: #fca5a5; color: var(--red); }
button.big { height: 46px; padding: 0 22px; font-size: 15px; }
button.sm, .btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
button.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.icon-btn { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--muted); }
.icon-btn:hover { background: #f1f5f9; color: var(--text); }
button.sm.danger:has(> .ico:only-child) { width: 30px; padding: 0; }

/* ---------- Forms ---------- */
input, select, textarea {
  font: inherit; font-size: 14px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 12px; height: 40px; width: 100%; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input:hover, select:hover, textarea:hover { border-color: #cbd5e1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .13); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); box-shadow: none; }
input[type=date] { padding-right: 8px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.row > .shrink { flex: 0 0 auto; min-width: 0; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-weight: 500; color: var(--text-2); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: #fafbfc; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8fafc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.table-wrap table tr:last-child td { border-bottom: none; }
.table-wrap thead th:first-child { padding-left: 18px; }
.table-wrap tbody td:first-child { padding-left: 18px; }
.card table th { background: transparent; }
tr.clickable { cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; white-space: nowrap; }
.badge.green { background: #ecfdf5; color: #047857; }
.badge.red { background: #fef2f2; color: #b91c1c; }
.badge.amber { background: #fffbeb; color: #b45309; }
.badge.blue { background: #eef2ff; color: #4338ca; }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico { color: #cbd5e1; }

/* ---------- Toast ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.toast { background: #0f172a; color: #fff; padding: 12px 16px 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 400px; animation: tin .25s cubic-bezier(.2, .8, .2, 1); font-weight: 500; display: flex; gap: 10px; align-items: center; border-left: 4px solid #6366f1; }
.toast.error { border-left-color: #ef4444; }
.toast.ok { border-left-color: #10b981; }
@keyframes tin { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; z-index: 900; padding: 56px 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal.wide { max-width: 880px; }
.modal-head { padding: 18px 20px 14px; display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 4px 20px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfc; border-radius: 0 0 18px 18px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #eef0f5; border-radius: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.bar { height: 8px; background: #eef0f5; border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--grad); border-radius: 99px; }

.kv { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.kv.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.flash-ok { animation: flashok .6s; }
@keyframes flashok { from { background: #d1fae5; } }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: 1fr 400px; height: 100vh; background: var(--bg); }
.pos-left { display: flex; flex-direction: column; padding: 18px 20px; gap: 14px; overflow: hidden; }
.pos-left > .row { align-items: center; }
.pos-right { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px; gap: 12px; }
.pos-scan { display: flex; gap: 10px; }
.pos-scan input { font-size: 20px; height: 58px; padding: 0 18px; font-family: ui-monospace, Menlo, monospace; border-radius: 14px; border-width: 2px; box-shadow: var(--shadow-sm); }
.pos-scan input#scan { padding-left: 52px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2M7 8v8M10 8v8M13 8v8M17 8v8'/%3E%3C/svg%3E") no-repeat 16px center; }
.pos-cart { flex: 1; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pos-cart thead th { position: sticky; top: 0; z-index: 1; }
.pos-cart td { padding: 12px; }
.pos-cart .qty { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.pos-cart .qty button { width: 28px; height: 28px; padding: 0; border: 0; box-shadow: none; background: #fff; }
.pos-cart .qty input { width: 48px; height: 28px; text-align: center; padding: 0; border: 0; background: transparent; font-weight: 700; box-shadow: none; }
.pos-total { font-size: 44px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pos-total-card { background: linear-gradient(160deg, #0b1020, #1e1b4b); color: #fff; border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; }
.pos-total-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, .55), transparent 70%); }
.pos-total-card .muted { color: #a5b4fc; font-weight: 600; letter-spacing: .06em; }
.pos-total-card .pos-total { color: #fff; }
.pos-mode-iade .pos-total-card { background: linear-gradient(160deg, #450a0a, #7f1d1d); }
.pos-mode-iade .pos-total-card::after { background: radial-gradient(circle, rgba(248, 113, 113, .5), transparent 70%); }
.pos-banner { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-weight: 600; border: 1px solid #fecaca; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-buttons button { height: 76px; font-size: 18px; font-weight: 800; border-radius: 14px; gap: 10px; }
.pay-buttons button span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.pay-buttons button small { font-size: 11px; font-weight: 600; opacity: .75; }
.pay-buttons #pay-karma { height: 46px; font-size: 14px; font-weight: 700; }

/* ---------- Etiket ---------- */
.label-preview { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px; background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 16px 16px; border-radius: 10px; }
.lbl { border: 1px dashed #9ca3af; background: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.2mm 1.5mm; font-family: Arial, sans-serif; color: #000; }
.lbl .l-store { font-size: 6pt; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1; }
.lbl .l-name { font-size: 7pt; font-weight: 600; text-align: center; line-height: 1.1; max-height: 2.2em; overflow: hidden; width: 100%; }
.lbl .l-var { font-size: 7pt; line-height: 1; }
.lbl .l-price { font-size: 11pt; font-weight: 800; line-height: 1; }
.lbl svg { max-width: 100%; display: block; }

/* ---------- Yazdırma ---------- */
#print-area { display: none; }
@media print {
  body.printing #app, body.printing #toasts, body.printing .modal-bg { display: none !important; }
  body.printing #print-area { display: block; }
  body.printing { background: #fff; }
  .lbl { border: none; page-break-inside: avoid; break-inside: avoid; }
  .labels-roll .lbl { page-break-after: always; break-after: page; }
  .labels-a4 { display: grid; }
}
.receipt { width: 72mm; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #000; background: #fff; }
.receipt .c { text-align: center; }
.receipt hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.receipt table td { border: none; padding: 1px 0; }
.receipt table tr:hover { background: none; }
.receipt .big { font-size: 15px; font-weight: 700; }
.report-print { font-family: Arial, sans-serif; color: #000; font-size: 12px; }
.report-print table td, .report-print table th { padding: 4px 6px; }
.var-table input, .var-table select { height: 34px; padding: 0 9px; }

/* ---------- Giriş / Kurulum ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: #f6f7fb; }
.auth-hero {
  position: relative; overflow: hidden; color: #e5e7eb; padding: 40px 56px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at -10% -10%, #1e3a8a 0%, transparent 55%), linear-gradient(160deg, #0b1020 0%, #111a33 55%, #0a0f1f 100%);
}
.auth-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%); }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: orb 14s ease-in-out infinite alternate; }
.auth-orb.o1 { width: 420px; height: 420px; background: #4f46e5; right: -120px; top: -80px; }
.auth-orb.o2 { width: 360px; height: 360px; background: #0ea5e9; left: -100px; bottom: -120px; animation-delay: -6s; opacity: .35; }
@keyframes orb { to { transform: translate(40px, 30px) scale(1.1); } }
.auth-hero > *:not(.auth-orb):not(.auth-grid) { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: #fff; letter-spacing: -.01em; }
.auth-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 8px 24px rgba(79,70,229,.45); }
.auth-logo svg { width: 22px; height: 22px; color: #fff; }
.auth-hero-body { margin: auto 0; max-width: 520px; padding: 40px 0; }
.auth-hero h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; color: #fff; font-weight: 800; }
.auth-hero h2 span { background: linear-gradient(90deg, #818cf8, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: #94a3b8; font-size: 16px; line-height: 1.6; margin: 0 0 32px; }

.auth-scanner { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px; backdrop-filter: blur(12px); box-shadow: 0 30px 60px rgba(0,0,0,.35); margin-bottom: 32px; }
.auth-bars { position: relative; height: 70px; background: #fff; border-radius: 10px; padding: 8px 14px; overflow: hidden; }
.auth-bars svg { width: 100%; height: 100%; fill: #0b1020; display: block; }
.auth-laser { position: absolute; left: 0; right: 0; height: 2px; top: 50%; background: #ef4444; box-shadow: 0 0 12px 3px rgba(239,68,68,.7); animation: laser 2.4s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 12%; } 50% { top: 88%; } }
.auth-ticket { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; }
.auth-ticket .t-row { display: flex; justify-content: space-between; align-items: center; color: #cbd5e1; }
.auth-ticket b { color: #fff; font-weight: 600; }
.auth-ticket .t-price { font-size: 16px; background: linear-gradient(90deg, #a5b4fc, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }

.auth-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-feats li { display: flex; gap: 14px; align-items: center; }
.auth-feats li > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); flex-shrink: 0; }
.auth-feats svg { width: 19px; height: 19px; color: #a5b4fc; }
.auth-feats b { display: block; color: #f1f5f9; font-weight: 600; font-size: 14px; }
.auth-feats small { color: #94a3b8; font-size: 13px; }
.auth-foot { color: #64748b; font-size: 12px; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 410px; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.auth-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #4f46e5; background: #eef2ff; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.auth-step::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.2); }
.auth-card h1 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 800; color: #0b1020; }
.auth-sub { color: #64748b; margin: 0 0 28px; line-height: 1.55; font-size: 15px; }

.af { display: block; margin-bottom: 16px; }
.af-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.af-box { position: relative; display: flex; align-items: center; }
.af-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: #94a3b8; pointer-events: none; transition: color .15s; }
.af-icon svg, .af-eye svg { width: 18px; height: 18px; display: block; }
.af input { height: 50px; padding: 0 44px 0 44px; border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.af input:hover { border-color: #cbd5e1; }
.af input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.af-box:focus-within .af-icon { color: #6366f1; }
.af-eye { position: absolute; right: 8px; border: 0; background: transparent; color: #94a3b8; padding: 8px; border-radius: 8px; }
.af-eye:hover { background: #f1f5f9; color: #334155; }
.af-eye.on { color: #6366f1; }
.af-hint { font-size: 12px; color: #94a3b8; margin: -10px 0 18px; }
.af-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #94a3b8; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.af-sep::before, .af-sep::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

.auth-btn {
  width: 100%; height: 52px; justify-content: center; gap: 10px; margin-top: 8px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 60%, #0ea5e9 100%); background-size: 160% 100%; box-shadow: 0 10px 24px -8px rgba(79,70,229,.6);
  transition: background-position .3s, transform .1s, box-shadow .2s;
}
.auth-btn:hover { background: linear-gradient(135deg, #4f46e5 0%, #2563eb 60%, #0ea5e9 100%); background-size: 160% 100%; background-position: 100% 0; box-shadow: 0 14px 30px -8px rgba(79,70,229,.7); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.auth-btn:hover svg { transform: translateX(3px); }
.auth-btn.loading span { opacity: .7; }
.auth-btn.loading svg { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.auth-help { margin-top: 22px; text-align: center; color: #94a3b8; font-size: 13px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px; min-height: auto; }
  .auth-hero-body, .auth-feats, .auth-foot, .auth-scanner { display: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-orb, .auth-laser, .auth-card { animation: none; } }

/* POS ek */
.shortcuts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.shortcuts kbd { font: 700 11px/1 ui-monospace, Menlo, monospace; background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; color: var(--text-2); margin-right: 3px; }
.done-ico { width: 60px; height: 60px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 24px -8px rgba(5, 150, 105, .6); animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }

/* ---------- POS v2 ---------- */
.pos-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pos-store { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.pos-store b { font-size: 16px; }
.pos-store span { font-size: 12px; color: var(--muted); }
.pos-tools { display: flex; gap: 6px; }
.seg { display: inline-flex; padding: 4px; background: #e9ecf3; border-radius: 12px; gap: 2px; }
.seg button { height: 34px; border: 0; background: transparent; box-shadow: none; color: var(--muted); border-radius: 9px; padding: 0 14px; }
.seg button:hover { background: rgba(255, 255, 255, .6); color: var(--text); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
#pos[data-mode="iade"] .seg button.on { color: #b91c1c; }
#pos[data-mode="degisim"] .seg button.on { color: #b45309; }
#banner { display: flex; flex-direction: column; gap: 8px; }
#banner:empty { display: none; }
.pos-banner.info { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.pos-banner.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.cust-chip { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.cust-chip > div { flex: 1; line-height: 1.25; }
.cust-chip small { display: block; color: var(--muted); font-size: 12px; }
.cust-add { width: 100%; justify-content: flex-start; height: 44px; border-style: dashed; color: var(--muted); background: transparent; box-shadow: none; gap: 10px; }
.cust-add kbd, .pos-top kbd { font: 700 10px/1 ui-monospace, Menlo, monospace; background: #fff; border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; color: var(--text-2); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.pos-lists { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pos-lists .pos-cart { flex: 1; min-height: 120px; }
.pos-cart.titled { opacity: .72; transition: opacity .15s, box-shadow .15s, border-color .15s; }
.pos-cart.titled.active { opacity: 1; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .12); }
.list-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; position: sticky; top: 0; background: #fff; z-index: 2; }
.pos-cart.titled thead th { top: 43px; }
.pay-big { width: 100%; height: 76px; font-size: 18px; font-weight: 800; border-radius: 14px; gap: 12px; }
.pay-big span, .pay-buttons button span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.pay-big small { font-size: 11px; font-weight: 600; opacity: .8; }
.pos-total-card.refund { background: linear-gradient(160deg, #450a0a, #7f1d1d); }
.pos-total-card.refund::after { background: radial-gradient(circle, rgba(248, 113, 113, .5), transparent 70%); }
.pay-due { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: linear-gradient(160deg, #0b1020, #1e1b4b); color: #fff; margin-bottom: 16px; }
.pay-due span { color: #a5b4fc; font-weight: 600; font-size: 13px; }
.pay-due b { font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-due.refund { background: linear-gradient(160deg, #450a0a, #7f1d1d); }
.pay-due.refund span { color: #fecaca; }
.quick-cash { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.pay-extra { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gc-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px 0; }
.pay-sum { margin-top: 14px; }
.change-big { font-size: 24px; font-weight: 800; color: var(--green); }
.method-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.method-pick button { height: auto; flex-direction: column; gap: 4px; padding: 14px 8px; border-radius: 12px; }
.method-pick button small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.method-pick button.on { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); color: var(--primary); background: #f5f7ff; }
.cust-results { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow-y: auto; margin-bottom: 12px; }
.cust-row { justify-content: flex-start; height: auto; padding: 8px 10px; gap: 12px; text-align: left; }
.cust-row > div { flex: 1; line-height: 1.25; }
.cust-row small { display: block; color: var(--muted); font-weight: 500; }
.new-cust { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; }
.new-cust summary { cursor: pointer; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.pos-cart td .empty { padding: 30px 10px; }

/* ---------- Müşteri / kampanya / tedarikçi ---------- */
.who { display: flex; align-items: center; gap: 10px; }
.cust-head { display: flex; align-items: center; gap: 14px; }
.cust-head > div { flex: 1; }
.cust-head b { font-size: 17px; }
.note-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; }
.mini-stat { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mini-stat span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-stat b { font-size: 19px; font-variant-numeric: tabular-nums; }
.blue-t { color: var(--primary); }
.receipt-preview { display: flex; justify-content: center; background: #f1f5f9; padding: 16px; border-radius: 12px; }
.receipt-preview .receipt { box-shadow: 0 6px 20px -8px rgba(15, 23, 42, .25); padding: 10px 8px; }
.field > .flabel { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.camp { display: flex; flex-direction: column; gap: 4px; transition: box-shadow .15s, transform .15s; }
.camp.live { border-color: #a7f3d0; }
.camp:hover { box-shadow: var(--shadow); }
.camp + .camp { margin-top: 0; }
.camp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.camp h3 { margin: 0; font-size: 15px; }
.camp-big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 2px 0 4px; }
.camp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.type-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.type-pick button { height: auto; flex-direction: column; align-items: flex-start; padding: 12px 14px; gap: 2px; text-align: left; white-space: normal; border-radius: 12px; }
.type-pick button small { color: var(--muted); font-weight: 500; font-size: 12px; }
.type-pick button.on { border-color: #6366f1; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.target-box { margin-top: 10px; }
.target-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; display: grid; grid-template-columns: repeat(2, 1fr); }
.code-box { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; font-size: 12px; overflow-x: auto; max-height: 420px; }
.field .seg { margin-bottom: 2px; }

/* ---------- ikas ---------- */
.ikas-title { display: flex; align-items: center; gap: 10px; }
.ikas-logo { font: 800 18px/1 inherit; color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); padding: 7px 10px; border-radius: 10px; letter-spacing: -.02em; }
.ikas-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1100px) { .ikas-actions { grid-template-columns: repeat(2, 1fr); } }
.ikas-actions button { height: auto; justify-content: flex-start; align-items: flex-start; text-align: left; white-space: normal; padding: 14px; gap: 10px; border-radius: 12px; }
.ikas-actions button .ico { margin-top: 2px; color: var(--primary); }
.ikas-actions button span { display: flex; flex-direction: column; gap: 2px; }
.ikas-actions button small { color: var(--muted); font-weight: 500; font-size: 12px; }
.ikas-actions button.loading { opacity: .6; cursor: progress; }
.input-suffix { display: flex; align-items: center; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { height: 40px; display: grid; place-items: center; padding: 0 12px; background: #f1f5f9; border: 1.5px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0; color: var(--muted); font-size: 13px; }
.sync-opts { margin: 4px 0 0 26px; display: flex; flex-direction: column; }
.ikas-log { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; font-size: 12.5px; }
.ikas-log div { padding: 6px 8px; border-radius: 6px; }
.ikas-log div span { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.ikas-log .error { background: #fef2f2; color: #991b1b; }
.ikas-log .warn { background: #fffbeb; color: #92400e; }

/* ---------- Kaydırma çubukları ---------- */
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
*::-webkit-scrollbar-corner { background: transparent; }
/* Kenar çubuğu: koyu temaya uygun, yalnızca üzerine gelince belirgin */
.sidebar nav { scrollbar-color: transparent transparent; scrollbar-gutter: stable; }
.sidebar nav:hover { scrollbar-color: rgba(148, 163, 184, .35) transparent; }
.sidebar nav::-webkit-scrollbar { width: 8px; }
.sidebar nav::-webkit-scrollbar-thumb { background-color: transparent; border-width: 2px; }
.sidebar nav:hover::-webkit-scrollbar-thumb { background-color: rgba(148, 163, 184, .35); }
.sidebar nav::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, .6); }
/* Kayan menünün alt kenarında yumuşak geçiş */
.sidebar nav { mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
.sidebar nav { padding-bottom: 28px; }

/* ---------- Ayarlar ---------- */
.set-page { max-width: 1180px; }
.set-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--muted); transition: background .15s, color .15s; position: relative; }
.set-nav a .ico { margin-top: 2px; }
.set-nav a span { display: flex; flex-direction: column; line-height: 1.3; }
.set-nav a b { font-weight: 600; color: var(--text-2); font-size: 14px; }
.set-nav a small { font-size: 12px; color: var(--muted-2); }
.set-nav a:hover { background: #fff; }
.set-nav a.active { background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); color: var(--primary); }
.set-nav a.active b { color: var(--text); }
.set-nav a.active::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.set-content { display: flex; flex-direction: column; gap: 20px; }
.set-sec { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); scroll-margin-top: 24px; }
.set-sec > header { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.set-sec > header h2 { margin: 0; font-size: 16px; }
.set-sec > header p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.set-body { padding: 20px 22px 8px; }
.set-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
@media (max-width: 1100px) { .set-layout { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; overflow-x: auto; } .set-nav a small { display: none; } .set-split { grid-template-columns: 1fr; } }
.set-preview { background: #f8fafc; border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px; margin-bottom: 14px; align-self: start; }
.set-preview-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
p.hint { margin: 4px 0 14px; }
.mini-receipt { background: #fff; border-radius: 6px; padding: 14px 12px; font: 11px/1.45 ui-monospace, Menlo, monospace; color: #111; text-align: center; box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .3); position: relative; word-break: break-word; }
.mini-receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: radial-gradient(circle at 5px -1px, transparent 5px, #fff 5.5px) 0 0 / 10px 6px repeat-x; }
.mini-receipt b:first-child { font-size: 13px; display: block; margin-bottom: 2px; }
.mini-receipt hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.mr-row { display: flex; justify-content: space-between; text-align: left; }
.pv-barcode { background: #fff; border-radius: 8px; padding: 10px; display: flex; justify-content: center; }
.pv-barcode svg { max-width: 100%; height: auto; }
.pv-label-wrap { height: 112px; display: grid; place-items: center; }
.pv-label { background: #fff; border: 1.5px solid #94a3b8; border-radius: 6px; display: grid; place-items: center; transition: width .2s, height .2s; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .25); }
.pv-label span { font-size: 11px; font-weight: 700; color: var(--muted); }
.pv-loyalty .pl-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pv-loyalty .pl-row:last-of-type { border-bottom: 0; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; box-shadow: none; }
.chip.on { background: var(--primary-soft); border-color: #a5b4fc; color: var(--primary); }
.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-card { height: auto; flex-direction: column; align-items: flex-start; text-align: left; white-space: normal; gap: 4px; padding: 14px; border-radius: 12px; }
.mode-card .ico { color: var(--muted); margin-bottom: 4px; }
.mode-card small { color: var(--muted); font-weight: 500; font-size: 12px; line-height: 1.35; }
.mode-card.on { border-color: #6366f1; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.mode-card.on .ico { color: var(--primary); }
.set-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.account-row { display: flex; align-items: center; gap: 12px; }
.save-bar { position: fixed; left: calc(248px + (100% - 248px) / 2); bottom: 24px; transform: translate(-50%, 140%); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px;
  background: #0f172a; color: #e2e8f0; border-radius: 14px; box-shadow: var(--shadow-lg); transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; z-index: 50; pointer-events: none; }
.save-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.save-bar > span { display: flex; align-items: center; gap: 8px; margin-right: 8px; font-weight: 500; white-space: nowrap; }
.save-bar > span .ico { color: #fbbf24; }
.save-bar .ghost { color: #cbd5e1; }
.save-bar .ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.save-bar kbd { font: 600 10px/1 ui-monospace, Menlo, monospace; background: rgba(255, 255, 255, .18); border-radius: 4px; padding: 3px 5px; }

/* ---------- Rapor sekmeleri / kanal raporu ---------- */
.report-tabs { margin-top: -6px; }
.channel-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 22px 24px; background: linear-gradient(160deg, #0b1020, #1e1b4b); color: #fff; border: 0; }
.ch-total .label { color: #a5b4fc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ch-total b { display: block; font-size: 34px; letter-spacing: -.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.ch-total small { color: #94a3b8; }
.ch-split { display: flex; flex-direction: column; gap: 10px; }
.ch-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .1); gap: 2px; }
.ch-bar.thin { height: 8px; background: #eef0f5; }
.ch-bar .s, .dual-bar .s, .dc-stack .s, .ch-legend i.s { background: #6366f1; }
.ch-bar .w, .dual-bar .w, .dc-stack .w, .ch-legend i.w { background: #f59e0b; }
.ch-legend { display: flex; gap: 16px; font-size: 13px; font-weight: 600; }
.channel-hero .ch-legend { color: #e2e8f0; }
.ch-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.s-t { color: #4f46e5; }
.w-t { color: #b45309; }
.ch-card.s { border-top: 3px solid #6366f1; }
.ch-card.w { border-top: 3px solid #f59e0b; }
.ch-card h2 { display: flex; align-items: center; gap: 8px; }
.ch-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ch-metrics div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.ch-metrics span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ch-metrics b { font-size: 17px; font-variant-numeric: tabular-nums; }
.dual-bar { display: flex; height: 9px; border-radius: 99px; overflow: hidden; background: #eef0f5; }
.day-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; overflow-x: auto; padding-top: 6px; }
.dc-col { flex: 1; min-width: 18px; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dc-stack { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 2px 2px; overflow: hidden; }
.dc-stack div { width: 100%; }
.dc-col span { font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---------- Prim ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.comm + .comm { margin-top: 0; }
.comm.won { border-color: #a7f3d0; box-shadow: 0 0 0 3px rgba(16, 185, 129, .1); }
.comm-head { display: flex; align-items: center; gap: 12px; }
.comm-head > div { flex: 1; line-height: 1.3; }
.comm-head small { display: block; color: var(--muted); font-size: 12px; }
.comm-net { margin: 16px 0 12px; }
.comm-net span { font-size: 12px; color: var(--muted); font-weight: 600; }
.comm-net b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.comm-net small { color: var(--muted); font-size: 12px; }
.comm-target .bar, .mt-bar .bar { position: relative; height: 10px; margin: 6px 0; overflow: visible; }
.comm-target .bar > div, .mt-bar .bar > div { border-radius: 99px; }
.comm.won .bar > div { background: linear-gradient(90deg, #10b981, #059669); }
.bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #0f172a; opacity: .35; border-radius: 2px; }
.comm-foot { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.comm-foot span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.comm-foot b { font-variant-numeric: tabular-nums; }
.comm-foot .tot b { color: var(--green); font-size: 17px; }
.comm-box { margin-top: 14px; padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); }
.comm-box .flabel { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 10px; color: var(--text-2); }
.my-target { display: flex; align-items: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.mt-left { display: flex; align-items: center; gap: 12px; }
.mt-left b { display: block; font-size: 15px; }
.mt-left small { color: var(--muted); }
.mt-bar { flex: 1; min-width: 220px; }
.mt-prim { text-align: right; }
.mt-prim span { display: block; font-size: 12px; color: var(--muted); }
.mt-prim b { font-size: 22px; color: var(--green); font-variant-numeric: tabular-nums; }
.pos-people { display: flex; gap: 10px; align-items: stretch; }
.pos-people > :first-child { flex: 1; }
.seller-pick { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.seller-pick select { border: 0; height: 40px; font-weight: 700; color: var(--text); background-color: transparent; box-shadow: none; padding-left: 4px; }
.seller-pick.other { border-color: #fcd34d; background: #fffbeb; color: #92400e; }

/* ---------- Telefonla sayım ---------- */
.phone-qr { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.qr-box svg { width: 100%; height: auto; display: block; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.url-box { margin-top: 6px; padding: 8px 10px; background: #f1f5f9; border-radius: 8px; font-size: 13px; word-break: break-all; user-select: all; }
.mc { min-height: 100vh; background: #f5f6fa; display: flex; flex-direction: column; padding-bottom: 84px; max-width: 560px; margin: 0 auto; }
.mc-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.mc-top > div { flex: 1; line-height: 1.25; }
.mc-top small { display: block; color: var(--muted); font-size: 12px; }
.mc-cam { position: relative; margin: 12px; border-radius: 18px; overflow: hidden; background: #0b1020; aspect-ratio: 4 / 3; transition: box-shadow .2s; }
.mc-cam.bad { box-shadow: 0 0 0 4px #ef4444; }
.mc-cam.off { aspect-ratio: auto; }
.mc-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-frame { position: absolute; inset: 22% 10%; pointer-events: none; }
.mc-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 4px; }
.mc-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.mc-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.mc-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.mc-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.mc-laser { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 10px 2px rgba(239, 68, 68, .7); animation: laser 2s ease-in-out infinite; }
.mc-cam-msg { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); padding: 0 12px; }
.mc-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 52px; }
.mc-nocam { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px; color: #e2e8f0; }
.mc-nocam p { margin: 0; color: #94a3b8; font-size: 14px; }
.mc-nocam small { color: #94a3b8; font-size: 12px; }
.mc-input { display: flex; gap: 8px; margin: 0 12px; }
.mc-input input { height: 48px; font-size: 17px; }
.mc-input button, .mc-photo { height: 48px; }
.mc-photo { cursor: pointer; padding: 0 14px; }
.mc-hint { margin: 12px; padding: 14px; border-radius: 14px; background: #eef2ff; color: #3730a3; font-size: 13.5px; line-height: 1.5; display: flex; gap: 10px; }
.mc-card { margin: 12px; padding: 16px; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mc-card.pop { animation: mcpop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes mcpop { from { transform: scale(.96); background: #ecfdf5; } }
.mc-card-top { display: flex; justify-content: space-between; gap: 10px; }
.mc-card-top b { font-size: 16px; }
.mc-card-top small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mc-diff { font-weight: 800; font-size: 15px; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; color: var(--muted); align-self: flex-start; }
.mc-diff.sm { font-size: 12px; padding: 2px 8px; }
.mc-diff.pos { background: #ecfdf5; color: #047857; }
.mc-diff.neg { background: #fef2f2; color: #b91c1c; }
.mc-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.mc-qty button { width: 60px; height: 60px; border-radius: 16px; }
.mc-qty div { text-align: center; }
.mc-qty b { display: block; font-size: 38px; line-height: 1; letter-spacing: -.03em; }
.mc-qty small { color: var(--muted); font-size: 12px; }
.mc-list { margin: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.mc-row > div { flex: 1; line-height: 1.3; min-width: 0; }
.mc-row small { display: block; color: var(--muted); font-size: 12px; }
.mc-cnt { font-size: 18px; min-width: 32px; text-align: right; }
.mc-foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); max-width: 560px; margin: 0 auto; }
.mc-foot #mc-save { flex: 1; height: 52px; font-size: 16px; }
.mc-foot .ghost { height: 52px; width: 52px; }
@media (max-width: 700px) { .phone-qr { grid-template-columns: 1fr; } .qr-box { max-width: 240px; } }
@media (max-width: 700px) { #toasts { left: 12px; right: 12px; bottom: 92px; } .toast { max-width: none; } }

/* ---------- Kasalar arası transfer ---------- */
.tr-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.tr-flow .flabel { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.acc-pick { display: flex; flex-direction: column; gap: 8px; }
.acc-pick button { height: auto; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; display: grid; grid-template-columns: auto 1fr auto; text-align: left; }
.acc-pick button b { font-size: 14px; }
.acc-pick button small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-pick button .ico { color: var(--muted); }
.acc-pick button.on { border-color: #6366f1; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.acc-pick button.on .ico { color: var(--primary); }
.acc-pick button:disabled { opacity: .35; }
.tr-swap { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--primary); }
.tr-preview { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.tr-preview:empty { display: none; }
.tr-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 99px; background: #eef2ff; color: #4338ca; }
@media (max-width: 760px) { .tr-flow { grid-template-columns: 1fr; } .tr-swap { justify-self: center; transform: rotate(90deg); } }

/* ---------- Satışı yapan personel ---------- */
.seller-btn { height: auto; min-height: 50px; padding: 6px 10px 6px 8px; gap: 10px; border-radius: 12px; justify-content: flex-start; background: #fff; }
.seller-btn .sb-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.seller-btn .sb-text small { font-size: 11px; color: var(--muted); font-weight: 600; }
.seller-btn .sb-text b { font-size: 14px; color: var(--text); }
.seller-btn kbd { font: 700 10px/1 ui-monospace, Menlo, monospace; background: #f1f5f9; border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; color: var(--muted); margin-left: 4px; }
.seller-btn.unset { border: 1.5px dashed #f59e0b; background: #fffbeb; }
.seller-btn.unset .ico, .seller-btn.empty .sb-text b { color: #b45309; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.staff-grid button { height: auto; flex-direction: column; gap: 8px; padding: 16px 10px; border-radius: 14px; position: relative; }
.staff-grid button .avatar { width: 46px; height: 46px; font-size: 16px; border-radius: 14px; }
.staff-grid button b { font-size: 14px; }
.staff-grid button kbd { position: absolute; top: 8px; right: 8px; font: 700 10px/1 ui-monospace, Menlo, monospace; background: #f1f5f9; border-radius: 5px; padding: 3px 5px; color: var(--muted); }
.staff-grid button.on, .staff-grid button:focus-visible { border-color: #6366f1; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16); }
.mode-cards.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- Ürün listesi ---------- */
.pl-page { padding-bottom: 110px; }
.pl-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1200px) { .pl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-stat { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; text-align: left; cursor: default; }
.pl-stat[data-go-stock] { cursor: pointer; }
.pl-stat span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pl-stat b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.pl-stat small { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.pl-stat.warn b { color: var(--amber); }
.pl-stat.bad b { color: var(--red); }
.pl-toolbar { margin-bottom: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pl-search { position: relative; }
.pl-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.pl-search input { height: 46px; padding-left: 44px; font-size: 15px; border-radius: 12px; background: #f8fafc; }
.pl-search input:focus { background: #fff; }
.pl-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-filters select { width: auto; min-width: 150px; height: 36px; font-size: 13px; }
.pl-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.pl-tabs [data-st] { height: 32px; border-radius: 99px; font-size: 13px; box-shadow: none; border-color: transparent; background: transparent; color: var(--muted); }
.pl-tabs [data-st]:hover { background: #f1f5f9; color: var(--text); }
.pl-tabs [data-st].on { background: #0f172a; color: #fff; }
.link-btn { border: 0; background: none; box-shadow: none; color: var(--primary); height: auto; padding: 4px 6px; font-weight: 600; }
.link-btn:hover { background: var(--primary-soft); color: var(--primary); }
.pl-table td { padding-top: 10px; padding-bottom: 10px; }
.pl-table th.ck, .pl-table td.ck { width: 44px; padding-left: 16px !important; padding-right: 0; }
.pl-table tr.sel { background: #f5f7ff; }
.pl-table tr.sel:hover { background: #eef2ff; }
.pl-table tr.inactive .pl-prod b { color: var(--muted); }
.pl-table tbody tr { cursor: pointer; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--text); }
th.sortable.on { color: var(--primary); }
th.sortable .arrow { margin-left: 4px; }
.pl-prod { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.pl-prod > div { line-height: 1.3; min-width: 0; }
.pl-prod b { font-size: 14px; }
.pl-prod small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pl-thumb { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 13px;
  color: hsl(var(--h), 55%, 32%); background: linear-gradient(135deg, hsl(var(--h), 85%, 93%), hsl(calc(var(--h) + 30), 80%, 88%)); }
.sz-row { display: flex; flex-wrap: wrap; gap: 4px; max-width: 380px; }
.sz { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 3px 0 8px; border-radius: 7px; background: #f1f5f9; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sz i { font-style: normal; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; background: #fff; display: grid; place-items: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.sz.low { background: #fffbeb; color: #92400e; }
.sz.out { background: #fef2f2; color: #b91c1c; }
.sz.out i { color: #b91c1c; }
.sz.more { padding: 0 8px; color: var(--muted); }
.pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pager { display: flex; gap: 4px; align-items: center; }
.pg { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; box-shadow: none; }
.pg.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.pg-gap { color: var(--muted); padding: 0 4px; }
.pl-size { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pl-size select { width: auto; height: 34px; }
.bulk-bar { position: fixed; left: calc(248px + (100% - 248px) / 2); bottom: 22px; transform: translate(-50%, 150%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px; background: #0f172a; color: #e2e8f0; border-radius: 16px; box-shadow: var(--shadow-lg);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; z-index: 50; max-width: calc(100vw - 280px); }
.bulk-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bb-count { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bb-count b { font-size: 16px; color: #fff; }
.bb-count .link-btn { color: #a5b4fc; }
.bb-count .link-btn:hover { background: rgba(255, 255, 255, .08); color: #c7d2fe; }
.bb-actions { display: flex; gap: 6px; align-items: center; }
.bb-actions > button, .bb-more > button { height: 36px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #f1f5f9; box-shadow: none; }
.bb-actions > button:hover, .bb-more > button:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .2); }
.bb-actions .icon-btn { background: transparent; border: 0; color: #94a3b8; }
button.danger-solid, .bb-actions .danger-solid { background: #dc2626; border-color: #dc2626; color: #fff; }
button.danger-solid:hover, .bb-actions .danger-solid:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.bb-more { position: relative; }
.bb-menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; flex-direction: column; border: 1px solid var(--line); }
.bb-menu.open { display: flex; }
.bb-menu button { justify-content: flex-start; border: 0; box-shadow: none; height: 36px; color: var(--text-2); }
.bb-menu button:hover { background: #f1f5f9; }
.del-warn { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; }
.del-warn p { margin: 4px 0 0; color: #7f1d1d; font-size: 13.5px; line-height: 1.5; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.bp-grid .seg { display: flex; }
.bp-grid .seg button { flex: 1; }
.bp-preview { margin-top: 6px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.bp-preview td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.bp-preview tr:last-child td { border-bottom: 0; }

/* ---------- Muhasebe ---------- */
.acc-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 1100px) { .acc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: box-shadow .15s, transform .15s; }
.acc-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.acc-item small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.acc-item b { font-size: 17px; font-variant-numeric: tabular-nums; }
.acc-item.bad { border-color: #fecaca; }
.acc-item.warn { border-color: #fde68a; }
.aging-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 10px 0 8px; background: #eef0f5; }
.aging-bar .ok { background: #6366f1; } .aging-bar .w1 { background: #f59e0b; } .aging-bar .w2 { background: #f97316; } .aging-bar .w3 { background: #dc2626; } .aging-bar .none { flex: 1; }
.aging-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: 11.5px; color: var(--muted); }
.aging-legend b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.cari-strip { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); margin-top: 12px; }
.cari-strip span { display: flex; align-items: center; gap: 8px; }
.pending-card { margin-bottom: 16px; border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff 60%); }
.pending-card h2 { display: flex; align-items: center; gap: 8px; color: #92400e; }
.pending-list { display: flex; flex-direction: column; gap: 6px; }
.pend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pend > div { flex: 1; line-height: 1.3; }
.pend small { display: block; color: var(--muted); font-size: 12px; }
.pend.late { border-color: #fecaca; }
.pend.late small { color: var(--red); }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; margin-bottom: 8px; }
.cat-row .bar { grid-column: span 2; height: 6px; }
.pnl { padding: 22px 24px; }
.pnl-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pnl-row span { display: flex; flex-direction: column; }
.pnl-row small { color: var(--muted); font-size: 12px; font-weight: 500; }
.pnl-row.head b { font-size: 18px; }
.pnl-row.sub { background: #f8fafc; margin: 0 -24px; padding: 11px 24px; font-weight: 700; }
.pnl-row.item { padding-left: 14px; font-size: 13.5px; }
.pnl-row.neg b { color: #b91c1c; }
.pnl-row.total { border: 0; margin: 10px -24px 6px; padding: 16px 24px; background: linear-gradient(160deg, #064e3b, #065f46); color: #fff; border-radius: 0; }
.pnl-row.total small { color: #a7f3d0; }
.pnl-row.total b { font-size: 24px; color: #fff; }
.pnl-row.total.loss { background: linear-gradient(160deg, #450a0a, #7f1d1d); }
.pnl-row.total.loss small { color: #fecaca; }
.pnl-group { margin-top: 14px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pnl-months { display: flex; align-items: flex-end; gap: 10px; height: 220px; }
.pm-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pm-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.pm-bars div { width: 40%; max-width: 22px; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.pm-bars .rev { background: #6366f1; }
.pm-bars .cost { background: #f87171; }
.pm-col b { font-size: 11.5px; }
.pm-col span { font-size: 11px; color: var(--muted); }
tr.tot td { background: #f8fafc; }
.cust-row.on { border-color: #6366f1; background: #f5f7ff; }
.vat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.vat-card table td, .vat-card table th { padding: 8px 6px; white-space: nowrap; }
.vat-card table td.num, .vat-card table th.num { font-size: 13px; }
