:root {
  --bg: #f4f4f2;
  --side: #000;
  --panel: #fafaf9;
  --card: #fff;
  --card-2: #f5f5f3;
  --hover: #ededea;
  --line: #e6e6e2;
  --line-2: #d6d6d1;
  --text: #141414;
  --muted: #6f6f6b;
  --dim: #9a9a95;
  --accent: #b08b4f;       /* pirinç — logodaki vintage berber hissi */
  --accent-2: #c8a46a;
  --accent-t: #8a6a33;     /* beyaz zeminde okunaklı pirinç yazı */
  --accent-bg: rgba(176, 139, 79, .13);
  --ok: #1f9d5c;   --ok-bg: rgba(31, 157, 92, .11);
  --warn: #c07a10; --warn-bg: rgba(224, 161, 58, .16);
  --err: #d13438;  --err-bg: rgba(209, 52, 56, .10);
  --info: #2f74d0; --info-bg: rgba(47, 116, 208, .10);
  --r: 14px;
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { font-variant-numeric: tabular-nums; margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app { display: flex; min-height: 100vh; }

/* ——— Sidebar (siyah, dar, ikon + kısa etiket) ——— */
.side { width: 92px; flex: none; background: var(--side); color: #f1f1f1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.side-logo { padding: 20px 16px 16px; }
.side-logo img { width: 100%; display: block; }
.side-tag { display: none; }
#nav { flex: 1; overflow-y: auto; padding: 4px 8px 16px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; }
#nav::-webkit-scrollbar { display: none; }
.nav-group { display: none; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px; border-radius: 12px; color: #c4c4c4; font-size: 11.5px; font-weight: 500; line-height: 1.2; text-align: center; position: relative; transition: background .15s, color .15s; }
.nav-item svg.ic { width: 22px; height: 22px; stroke-width: 1.6; }
.nav-item:hover { background: #111; color: #fff; }
.nav-item.on { background: #1c1c1c; color: #fff; }
.nav-item .badge { position: absolute; top: 5px; left: calc(50% + 4px); font-size: 10px; line-height: 16px; min-width: 18px; height: 18px; background: var(--err); color: #fff; border-radius: 99px; padding: 0 5px; font-weight: 600; border: 2px solid #000; }
.side-collapse { display: none; }

/* ——— Topbar ——— */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; height: 40px; width: 340px; color: var(--muted); }
.search input { background: none; border: 0; outline: 0; flex: 1; color: var(--text); }
.mode-switch { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-left: auto; }
.mode-switch button { border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 13px; }
.mode-switch button.on { background: #000; color: #fff; }
.top-right { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn:hover { color: var(--text); }
.notif em { position: absolute; top: -5px; right: -5px; font: 600 10px/16px var(--body); min-width: 18px; height: 18px; border-radius: 99px; background: var(--err); color: #fff; font-style: normal; border: 2px solid var(--bg); }
.me { display: flex; align-items: center; gap: 10px; }
.me b { display: block; font-weight: 600; font-size: 13px; }
.me small { color: var(--muted); font-size: 11.5px; }
.avatar { width: 38px; height: 38px; border-radius: 10px; background: #000; color: var(--accent-2) !important; color: #000; display: grid; place-items: center; font: 600 13px var(--display); letter-spacing: .04em; }
.mobile-only { display: none; }

/* ——— Content ——— */
.content { padding: 28px; max-width: 1560px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font: 600 26px/1.2 var(--body); letter-spacing: -.02em; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--text); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }
.mt { margin-top: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card.flat { background: var(--panel); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h3 { margin: 0; font: 600 15px/1.3 var(--body); letter-spacing: -.01em; }
.card-h .sub { color: var(--muted); font-size: 12px; }
.card.dark { background: var(--card); border-top: 3px solid #000; }

/* KPI — Ovo panelindeki ikonlu kutu düzeni */
.kpi { display: flex; align-items: stretch; gap: 14px; }
.kpi .kv { flex: 1; min-width: 0; }
.kpi .num { font: 600 28px/1.1 var(--body); letter-spacing: -.02em; }
.kpi .lbl { color: var(--muted); font-weight: 500; margin-top: 6px; }
.kpi .hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kpi .kicon { width: 52px; height: 52px; align-self: center; flex: none; border-radius: 12px; background: #000; display: grid; place-items: center; color: var(--accent-2); }
.kpi .kicon svg { width: 26px; height: 26px; }
.delta { font-size: 12px; font-weight: 600; margin-left: 6px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--err); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--hover); border-color: #bdbdb7; }
.btn.primary { background: #000; color: #fff; border-color: #000; }
.btn.primary:hover { background: #222; }
.btn.gold { background: var(--accent-2); color: #000; border-color: var(--accent-2); }
.btn.gold:hover { background: #d8b67c; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.warn { background: #e0a13a; border-color: #e0a13a; color: #1c1203; }
.btn.danger { background: transparent; border-color: rgba(209,52,56,.45); color: var(--err); }
.btn.danger:hover { background: var(--err-bg); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.lg { height: 50px; font-size: 14px; letter-spacing: .04em; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* Pills / status */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.pill.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.pill.err { color: var(--err); background: var(--err-bg); border-color: transparent; }
.pill.info { color: var(--info); background: var(--info-bg); border-color: transparent; }
.pill.gold { color: var(--accent-t); background: var(--accent-bg); border-color: transparent; }
.pill.plain::before { display: none; }

/* Table */
.tbl-wrap { overflow-x: auto; margin: 0 -20px -20px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.tight th, .tbl.tight td { padding-left: 12px; padding-right: 12px; }
.tbl.tight th:first-child, .tbl.tight td:first-child { padding-left: 20px; } .tbl.tight th:last-child, .tbl.tight td:last-child { padding-right: 20px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #f7f5ef; }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl .mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: #55554f; }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold-t { color: var(--accent-t); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .err-t { color: var(--err); }

.prod-cell { display: flex; align-items: center; gap: 12px; }
.thumb { width: 40px; height: 40px; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: none; overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
#imgPeek { position: fixed; left: 0; top: 0; box-sizing: border-box; width: 300px; height: 300px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .18); overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 300; }
#imgPeek.on { opacity: 1; }
#imgPeek img { display: block; width: 100%; height: 100%; object-fit: contain; }   /* büyük fotoğraf da kutuya sığar */
.thumb img { cursor: zoom-in; }

/* Activity list (Ovo "Faaliyete Genel Bakış") */
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.act li:last-child { border-bottom: 0; }
.act li:hover .act-t { color: #000; }
.act-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.act-ic svg { width: 16px; height: 16px; }
.act-t { flex: 1; color: #2a2a2a; }
.act-n { font: 600 18px var(--display); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 12px; outline: 0; width: 100%; }
textarea.input { height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); }
.form { display: grid; gap: 14px; }
.form.cols2 { grid-template-columns: 1fr 1fr; }
.form.cols3 { grid-template-columns: repeat(3, 1fr); }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 0; }
.checks label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); font-weight: 500; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

/* Definition list */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 12.5px; }
.dl dd { margin: 0; font-weight: 500; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; color: var(--muted); cursor: pointer; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--accent-2); }

/* Stepper */
.stepper { display: flex; align-items: flex-start; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; font-size: 12px; color: var(--dim); font-weight: 600; }
.step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); display: grid; place-items: center; z-index: 1; font: 600 13px var(--display); }
.step.done { color: var(--text); }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.done::before, .step.cur::before { background: var(--ok); }
.step.cur { color: var(--accent-t); }
.step.cur .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-bg); }

/* Progress bars */
.bar { height: 10px; border-radius: 99px; background: #ecebe6; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent-2); border-radius: 99px; transition: width .35s; }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.err > i { background: var(--err); }
.bar.thick { height: 18px; }
.bar .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #111; opacity: .5; }

.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 80px; align-items: center; gap: 12px; font-size: 13px; }
.hbar .bar { height: 8px; }
.hbar .v { text-align: right; font-weight: 600; }

/* Pipeline */
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pipe-col { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .15s; }
.pipe-col:hover { border-color: #000; }
.pipe-col b { display: block; font: 600 28px/1 var(--display); }
.pipe-col span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 8px; line-height: 1.3; }
.pipe-col .bar { height: 4px; margin-top: 12px; }

/* Charts */
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { fill: var(--dim); font-size: 11px; font-family: var(--body); }
.chart .gl { stroke: #eeede8; }

/* Product cards (customer) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.pcard:hover { border-color: var(--line-2); }
.pcard.in { border-color: #000; box-shadow: 0 0 0 1px #000; }
.pcard .ph { height: 210px; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.pcard .ph img { max-width: 80%; max-height: 180px; object-fit: contain; }
.pcard .ph .pill { position: absolute; top: 10px; left: 10px; background: #fff; border: 1px solid var(--line); }
.pcard .ph .loose { position: absolute; top: 10px; right: 10px; font-size: 10px; background: #000; color: var(--accent-2); padding: 3px 8px; border-radius: 99px; font-weight: 600; letter-spacing: .05em; }
.pcard .pb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .pn { font-weight: 600; line-height: 1.3; }
.pcard .ps { font-size: 12px; color: var(--dim); }
.pcard .pp { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; }
.pcard .pp b { font: 600 20px var(--display); }
.pcard .pp small { color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; height: 42px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); margin-top: auto; }
.qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty input { flex: 1; min-width: 0; text-align: center; background: none; border: 0; outline: 0; font-weight: 600; }
.qty .u { font-size: 11px; color: var(--muted); margin-right: 4px; letter-spacing: .08em; }
.pcard.in .qty { background: #000; border-color: #000; }
.pcard.in .qty button, .pcard.in .qty input, .pcard.in .qty .u { color: #fff; }
.pcard.out { opacity: .55; }

/* Cart panel */
.cartp { position: sticky; top: 90px; }
.cartp .total { font: 600 36px/1 var(--display); }
.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row span { color: var(--muted); }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); padding: 7px 6px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 12px; }
.seg button.on { background: #000; color: #fff; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.notice svg { margin-top: 1px; }
.notice.warn { background: var(--warn-bg); color: #8a5406; }
.notice.ok { background: var(--ok-bg); color: #146b3e; }
.notice.err { background: var(--err-bg); color: #a3242a; }
.notice.info { background: var(--info-bg); color: #1f559e; }
.notice.gold { background: var(--accent-bg); color: var(--accent-t); }

/* Pallet visual */
.pallets { display: flex; gap: 18px; align-items: flex-end; overflow-x: auto; padding: 10px 2px 4px; }
.pv { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pv .stack { width: 100%; height: 220px; position: relative; display: flex; flex-direction: column-reverse; border-bottom: 10px solid #5a4630; }
.pv .stack .zone { position: absolute; left: -6px; right: -6px; border-top: 1px dashed rgba(63,185,122,.6); border-bottom: 1px dashed rgba(63,185,122,.6); background: rgba(63,185,122,.05); pointer-events: none; }
.pv .layer { width: 100%; border-radius: 3px; margin-top: 2px; }
.pv b { font: 600 13px var(--display); letter-spacing: .05em; }
.pv small { font-size: 11px; color: var(--muted); text-align: center; }

.container-vis { border: 2px solid #9a9a95; border-radius: 6px; padding: 10px; display: grid; gap: 6px; background: repeating-linear-gradient(90deg, #f7f7f5 0 18px, #efefec 18px 20px); position: relative; }
.container-vis .slots { display: grid; gap: 6px; }
.container-vis .slot { height: 38px; border-radius: 4px; border: 1px dashed #c9c9c3; display: grid; place-items: center; font-size: 10px; color: var(--dim); }
.container-vis .slot.full { background: var(--accent-2); border: 0; color: #000; font-weight: 700; }
.container-vis .slot.part { background: #e0a13a; border: 0; color: #000; font-weight: 700; }
.container-vis .slot.loose { background: repeating-linear-gradient(45deg, #6aa6f2 0 6px, #5690dc 6px 12px); border: 0; color: #000; font-weight: 700; }
.container-door { position: absolute; right: -2px; top: 16%; bottom: 16%; width: 5px; background: #9a9a95; }

/* Suggestion rows */
.sugg { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sugg + .sugg { margin-top: 10px; }
.sugg .t { flex: 1; min-width: 0; }
.sugg .t b { display: block; font-weight: 600; font-size: 13px; }
.sugg .t small { color: var(--muted); font-size: 12px; }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { position: relative; padding: 0 0 16px 22px; font-size: 13px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.tl li:last-child::after { display: none; }
.tl small { display: block; color: var(--dim); font-size: 11.5px; }

/* Asset grid */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.asset { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; }
.asset .ph { height: 170px; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.asset .ph img { max-height: 150px; max-width: 70%; object-fit: contain; }
.asset .b { padding: 12px 14px; }
.asset .b b { display: block; font-size: 13px; }
.asset .b small { color: var(--muted); font-size: 12px; }

/* Perm matrix */
.perm td.c span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.perm td.c span.y { background: var(--ok-bg); color: var(--ok); }
.perm td.c span.n { color: #c9c9c3; }

/* Modal & toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-wrap.on { display: grid; }
.modal { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; }
.modal h2 { margin: 0 0 6px; font: 600 20px var(--body); letter-spacing: -.01em; }
.modal .m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toasts { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 10px; z-index: 200; }
.toast { background: #000; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: tin .25s ease; max-width: 380px; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

.empty { padding: 30px; text-align: center; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.big-num { font: 600 40px/1 var(--display); }
.section-title { font: 500 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 26px 0 12px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 12px; }
.chip { font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; background: none; }
.chip.on { background: #000; color: #fff; border-color: #000; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hint-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.hint-box b { color: var(--text); }

@media (max-width: 1280px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe { grid-template-columns: repeat(3, 1fr); }
  .g-side { grid-template-columns: 1fr; }
  .cartp { position: static; }
}
@media (max-width: 1000px) {
  .g-main, .g2, .g3 { grid-template-columns: 1fr; }
  .search { display: none; }
}
@media (max-width: 760px) {
  .side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .side { transform: none; }
  .mobile-only { display: grid; }
  .top { padding: 0 16px; gap: 10px; }
  .me div:last-child { display: none; }
  .mode-switch button { padding: 7px 8px; font-size: 11px; }
  .content { padding: 18px 16px; }
  .g4 { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .form.cols2, .form.cols3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .dl { grid-template-columns: 120px 1fr; }
}

.mini-stats { display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: center; padding: 12px 16px; margin-bottom: 8px; border-radius: 12px; background: var(--card-2); }
.mini-stats small { display: block; color: var(--muted); font-size: 12px; }
.mini-stats b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.mini-stats .prod-cell b { font-size: 14px; }
@media (max-width: 760px) { .mini-stats { grid-template-columns: 1fr; } }

/* dil seçici */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 12.5px; }
.lang-btn svg.ic { width: 16px; height: 16px; color: var(--muted); }
.lang-menu { position: absolute; right: 0; top: 46px; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; display: none; z-index: 60; }
.lang.open .lang-menu { display: block; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 13px; text-align: left; }
.lang-menu button b { width: 24px; font-size: 11px; color: var(--muted); }
.lang-menu button:hover { background: var(--card-2); }
.lang-menu button.on { background: #000; color: #fff; }
.lang-menu button.on b { color: var(--accent-2); }

/* sipariş detayı: düzenlenebilir alanlar, dokümanlar, müşteri notu */
.num-in { width: 84px; height: 34px; text-align: center; padding: 0 6px; }
.price-in { display: inline-flex; align-items: center; gap: 4px; }
.price-in span { color: var(--muted); font-size: 12px; }
.price-in .num-in { width: 90px; text-align: right; }
.doc-btns { display: flex; gap: 6px; padding-right: 6px; margin-right: 4px; border-right: 1px solid var(--line); }
.doc-btns .btn svg.ic { width: 16px; height: 16px; }
.note-card { border-left: 4px solid var(--accent-2); background: #fffaf0; }
.note-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.note-card h3 { display: flex; align-items: center; gap: 8px; }

/* tarih aralığı seçici */
.range { position: relative; }
.range-pop { position: absolute; right: 0; top: 46px; z-index: 40; display: none; width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 14px; }
.range.open .range-pop { display: block; }
.range-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.range-presets button { height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.range-presets button:hover { background: var(--card-2); }
.range-presets button.on { background: #000; color: #fff; border-color: #000; }
@media (max-width: 760px) { .range-pop { width: calc(100vw - 32px); right: -60px; } }

/* üst arama önerileri */
.top .search { position: relative; }
.srch-box { position: absolute; left: 0; right: 0; top: 46px; z-index: 70; display: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 6px; max-height: 70vh; overflow-y: auto; }
.srch-box.open { display: block; }
.srch-g { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
.srch-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--text); }
.srch-row.on, .srch-row:hover { background: var(--card-2); }
.srch-row b { display: block; font-size: 13px; font-weight: 600; }
.srch-row small { display: block; font-size: 11.5px; color: var(--muted); }
.srch-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; flex: none; font-size: 18px; }
.srch-ic svg.ic { width: 18px; height: 18px; color: var(--muted); }
.srch-none { padding: 14px; color: var(--muted); font-size: 13px; }

/* gerçek katalog: görselsiz ürün, fiyat seviyeleri */
.no-img { width: 100%; height: 100%; display: grid; place-items: center; background: #f1efe9; color: var(--accent-t); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.pcard .ph .no-img { font-size: 28px; }
.level-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.level-card { padding: 14px 16px; }
.level-card small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.level-card b { display: block; font-size: 15px; margin: 2px 0 4px; }
.level-card span { font-size: 12px; color: var(--muted); }
.price-tbl th small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
@media (max-width: 1280px) { .level-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* giriş / üye ol */
body.auth-on .app, body.auth-on .rv-fab, body.auth-on .rv-banner { display: none !important; }
.auth { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(280px, 42%) 1fr; background: var(--bg); }
.auth-brand { background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.auth-brand img { width: min(240px, 50%); }
.auth-brand span { color: var(--accent-2); font-size: 12px; font-weight: 600; letter-spacing: .4em; padding-left: .4em; }
.auth-main { position: relative; display: grid; place-items: center; padding: 72px 24px 40px; overflow-y: auto; }
.auth-langs { position: absolute; top: 20px; right: 24px; display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.auth-langs button { border: 0; background: none; padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-langs button.on { background: #000; color: #fff; }
.auth-card { width: min(400px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,.05); }
.auth-card.wide { width: min(640px, 100%); }
.auth-card h1 { margin: 0 0 22px; font-size: 24px; letter-spacing: -.02em; }
.auth-err.pending { color: var(--info); background: var(--info-bg); gap: 10px; align-items: flex-start; line-height: 1.5; }
.auth-err.pending svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth-err { display: none; color: var(--err); background: var(--err-bg); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.auth-link { text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.auth-link:hover { color: var(--text); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; color: var(--muted); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: 12px; }
.auth-back svg.ic { width: 16px; height: 16px; }
.auth-done { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin-bottom: 14px; }
.auth-demo { margin-top: 20px; border-top: 1px dashed var(--line-2); padding-top: 12px; font-size: 12.5px; }
.auth-demo summary { cursor: pointer; color: var(--muted); }
.auth-demo button { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.auth-demo button:hover { background: var(--card-2); }
.auth-demo button span { color: var(--muted); }
.auth-demo code { font-size: 11.5px; color: var(--accent-t); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; grid-template-rows: 150px 1fr; } .auth-brand img { width: 130px; } .auth-card { padding: 24px; } }

/* yasal metinler */
.legal-pop { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.45); display: none; place-items: center; padding: 20px; }
.legal-pop.on { display: grid; }
.legal-card { background: #fff; border-radius: 18px; width: min(760px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.legal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.legal-head b { font-size: 17px; }
.legal-body { overflow-y: auto; padding: 6px 24px 20px; font-size: 13.5px; line-height: 1.65; color: #2a2a2a; }
.legal-body h3 { font-size: 14px; margin: 18px 0 6px; }
.legal-body ul { padding-left: 20px; margin: 6px 0; }
.legal-body a, .consents a, .legal-links a, .legal-foot a { color: var(--accent-t); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { color: var(--muted); font-size: 12px; margin-top: 18px; }
.legal-note { margin: 10px 24px 0; font-size: 12px; color: var(--muted); }
.legal-ph { background: #fff1b8; color: #6b4f00; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.legal-tbl { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.legal-tbl th, .legal-tbl td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: left; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 12.5px; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 20px; font-size: 12px; }
.legal-foot a { color: var(--muted); }
.consents { display: grid; gap: 10px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--card-2); font-size: 13px; line-height: 1.45; }
.consents label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consents input { margin-top: 2px; flex: none; }
.cookie-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 115; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #000; color: #eee; padding: 12px 16px; border-radius: 14px; font-size: 13px; box-shadow: 0 12px 32px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }
.cookie-bar a { color: var(--accent-2); cursor: pointer; text-decoration: underline; }
.cookie-bar .btn.primary { background: #fff; color: #000; border-color: #fff; }

/* ürün anlık filtre */
.pf { margin: 0 0 16px; }
.pf .pf-q { flex: 1 1 320px; max-width: 460px; height: 40px; width: auto; border-color: var(--line-2); }
.pf .pf-q input::-webkit-search-cancel-button { cursor: pointer; }
.pf select { height: 40px; flex: 0 0 auto; max-width: 220px; }
.pf-n { margin-left: auto; font-size: 13px; }
.pf-empty { padding: 28px; text-align: center; }
#logoutBtn { width: auto; padding: 0 12px; gap: 6px; display: flex; align-items: center; font-size: 13px; font-weight: 500; }
#logoutBtn .ic { width: 17px; height: 17px; }
@media (max-width: 760px) { .pf-n { margin-left: 0; width: 100%; } .pf select { flex: 1 1 40%; } #logoutBtn span { display: none; } }

/* admin: müşteri adına sipariş */
.act-as { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; }
.act-as > span { color: var(--accent); display: grid; }
.act-as select { width: auto; min-width: 260px; height: 38px; }
.act-as.need { border-color: var(--warn); background: var(--warn-bg); }

/* aksiyonlar: okunmuş / yeni */
.act li.read { opacity: .62; }
.dot-new { width: 8px; height: 8px; border-radius: 99px; background: var(--err); flex: none; margin-left: auto; }
/* ürünler: toplu işlem, pasif satır, fiyat ızgarası */
.bulk-bar { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: #111; color: #fff; }
.bulk-bar.on { display: flex; }
.bulk-bar b { margin-right: 6px; font-weight: 600; }
.bulk-bar .btn.ghost { color: #fff; }
.tbl tr.off td { opacity: .55; }
.tbl tr.off td:last-child { opacity: 1; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price-grid label { display: grid; gap: 4px; }
.price-grid small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.steps-list { padding-left: 18px; display: grid; gap: 14px; margin: 6px 0 4px; }
.steps-list li { line-height: 1.5; }
/* müşteri: iletişim */
.contact-rep { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-rep b { display: block; }
.stat-row span .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }

/* raporlar: açılış tutarları */
.form.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .form.cols4 { grid-template-columns: 1fr 1fr; } }
.base-box summary { cursor: pointer; list-style: none; }
.base-box summary::-webkit-details-marker { display: none; }

/* sipariş: ek bedel / indirim formu */
.adj-form { display: grid; grid-template-columns: 150px 1fr 150px auto; gap: 8px; }
@media (max-width: 760px) { .adj-form { grid-template-columns: 1fr 1fr; } }

/* belge görüntüleyici (panel içinde) */
#docView { position: fixed; inset: 0; z-index: 200; background: rgba(20, 24, 28, .55); display: flex; flex-direction: column; }
#docView .dv-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; background: #111; color: #fff; }
#docView .dv-bar .btn { background: #222; color: #fff; border-color: #333; }
body.dv-on .modal-wrap { z-index: 250; }   /* belge üstünde düzenleme penceresi */
body.dv-on .toasts { z-index: 260; }
.term-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.term-pick select { flex: 1; min-width: 220px; }
.term-pick label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.term-pick label input { width: 76px; text-align: right; }
.term-pick label input[id$="P"] { width: 170px; text-align: left; }
.tp-prev { display: block; margin-top: 6px; }
#docView iframe { flex: 1; width: 100%; border: 0; background: #e9ecef; }
body.dv-on { overflow: hidden; }

/* sipariş durumu elle değiştirme */
.stage-edit { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stage-edit select { width: auto; height: 32px; }

/* müşteri ana sayfası: nasıl sipariş verilir videosu */
.how-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; align-items: center; }
.how-card h3 { font-size: 22px; margin: 10px 0 8px; }
.how-card p { line-height: 1.55; margin: 0; }
.how-card video { width: 100%; border-radius: 12px; background: #111; display: block; aspect-ratio: 16 / 9; }
.how-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-t, #8a6a35); background: var(--accent-bg); padding: 4px 10px; border-radius: 99px; }
.how-badge .ic { width: 14px; height: 14px; }
@media (max-width: 900px) { .how-card { grid-template-columns: 1fr; } }

/* kullanıcı yönetimi */
.perm-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }

/* ilk ziyaret: dil seçimi */
.lang-ask { position: fixed; inset: 0; z-index: 500; background: rgba(10, 10, 9, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.la-card { background: #0c0c0b; color: #f3f0e8; border-radius: 22px; padding: 38px 36px 32px; width: min(560px, 100%); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.la-card img { width: 120px; display: block; margin: 0 auto 22px; }
.la-card h2 { font-size: 26px; margin: 0 0 8px; }
.la-card p { color: #a29d91; font-size: 14px; margin: 0 0 24px; }
.la-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.la-grid button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid #2c2924; background: #171614; color: #f3f0e8; font: 600 16px var(--body, Inter, sans-serif); cursor: pointer; }
.la-grid button span { font-size: 22px; }
.la-grid button:hover, .la-grid button.sug { border-color: #c8a46a; background: #1f1c17; }

/* ortak liste filtresi */
.lf { margin: 0 0 14px; }
.lf .filters.pf { margin: 0; }
.lf select.lf-sel.on, .lf-range.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.lf-sort { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 12px; }
.lf-more { height: 40px; position: relative; }
.lf-more.on { border-color: var(--accent); color: var(--accent-t, #8a6a35); }
.lf-badge { font-style: normal; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; margin-left: 6px; padding: 0 5px; }
.lf-clear { height: 40px; }
.lf-adv { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--panel); }
.lf-adv select { height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); padding: 0 12px; }
.lf-range { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; height: 38px; background: var(--card); }
.lf-range span { font-size: 12.5px; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.lf-range input { border: 0; background: none; outline: 0; width: 128px; font: inherit; }
.lf-range input[type=number] { width: 90px; }
.lf-range em { color: var(--muted); font-style: normal; }
.lf-sum { font-size: 13px; color: var(--muted); margin-top: 10px; }
.lf-sum b { color: var(--text); }
@media (max-width: 760px) { .lf-range { width: 100%; } .lf-range input { flex: 1; width: auto; } }

/* müşteri adına sipariş: aranabilir müşteri seçici */
.act-as .aa-pick { position: relative; flex: 1 1 420px; max-width: 640px; }
.aa-pick .aa-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.aa-pick .aa-ic .ic { width: 17px; height: 17px; }
.aa-pick input { width: 100%; height: 42px; padding-left: 38px; }
.aa-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.14); max-height: 360px; overflow: auto; padding: 6px; }
.aa-list.open { display: block; }
.aa-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.aa-item:hover, .aa-item.on { background: var(--accent-bg); }
.aa-item b { display: block; font-weight: 600; }
.aa-item small, .aa-chosen small { color: var(--muted); font-size: 12.5px; }
.aa-flag { font-size: 20px; width: 26px; text-align: center; flex: none; }
.aa-more { padding: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.aa-chosen { display: flex; align-items: center; gap: 12px; flex: 1 1 420px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 10px 8px 12px; }
.aa-chosen b { display: block; }
.aa-chosen > div { flex: 1; min-width: 0; }
.aa-chosen small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ürün detayı: büyük fotoğraf (revize #97) */
.prod-top { grid-template-columns: minmax(300px, 1.5fr) repeat(3, 1fr); }
.prod-photo { padding: 0; overflow: hidden; background: #fff; display: grid; place-items: center; min-height: 380px; }
.prod-photo img { width: 100%; max-width: 420px; max-height: 400px; object-fit: contain; cursor: zoom-in; padding: 12px; }
.photo-zoom { display: grid; justify-items: center; gap: 10px; }
.photo-zoom img { width: min(420px, 100%); height: auto; }
.nf-img { display: block; height: 72px; width: auto; object-fit: contain; margin-bottom: 8px; background: #fff; border-radius: 8px; }
@media (max-width: 1100px) { .prod-top { grid-template-columns: 1fr 1fr; } .prod-photo { grid-column: span 2; } }
@media (max-width: 640px) { .prod-top { grid-template-columns: 1fr; } .prod-photo { grid-column: auto; min-height: 300px; } }

/* Ovo Digital imzası — panelin (index.html › #ovoFoot) ve giriş ekranının (auth.js) en altında; zemin açık → ovo-light (ovo-sign.js) */
.ovo-foot { display: flex; justify-content: center; width: 100%; max-width: 1560px; margin-top: auto; padding: 4px 28px 28px; }
.auth-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; }
body.rv-on .ovo-foot { padding-bottom: 88px; }   /* Revize Modu açıkken alttaki bilgi şeridi rozetin üstüne binmesin */
@media (max-width: 760px) {
  .ovo-foot { padding: 4px 16px 24px; }
  body:has(.rv-fab) .ovo-foot { padding-bottom: 92px; }   /* sağ alttaki Revize Modu butonu rozetin üstüne binmesin */
}
@media print { .ovo-foot { display: none; } }
.ovo-b12{--ovo-lime:#b4fb07;--x:50%;--y:50%;--o:0;--tx:0px;--ty:0px;position:relative;display:inline-flex;padding:1px;border-radius:12px;color:inherit;text-decoration:none;line-height:1;white-space:nowrap;background:rgba(255,255,255,.13);transform:translate(var(--tx),var(--ty));transition:transform .35s cubic-bezier(.2,.9,.25,1)}
.ovo-b12::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(90px circle at var(--x) var(--y),var(--ovo-lime),transparent 70%);opacity:var(--o)}
.ovo-b12__i{position:relative;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:11px;background:#101010;overflow:hidden}
.ovo-b12__i::before{content:"";position:absolute;inset:0;background:radial-gradient(70px circle at var(--x) var(--y),rgba(180,251,7,.16),transparent 70%);opacity:var(--o)}
.ovo-b12__m{position:relative;height:12px;width:auto;fill:var(--ovo-lime)}
.ovo-b12__t{position:relative;display:grid;height:16px;overflow:hidden;font-size:13px;color:#f1f1ed}
.ovo-b12__t>span{grid-area:1/1;line-height:16px;transition:transform .5s cubic-bezier(.65,0,.35,1)}
.ovo-b12__t>span+span{transform:translateY(100%)}
.ovo-b12__t i{font-style:normal;opacity:.55}
.ovo-b12__t b{font-weight:600}
.ovo-b12__t>span+span b{color:var(--ovo-lime)}
.ovo-b12:hover .ovo-b12__t>span,.ovo-b12:focus-visible .ovo-b12__t>span{transform:translateY(-100%)}
.ovo-b12:hover .ovo-b12__t>span+span,.ovo-b12:focus-visible .ovo-b12__t>span+span{transform:none}
.ovo-b12__a{position:relative;width:11px;height:11px;fill:none;stroke:#f1f1ed;stroke-width:1.6;stroke-linecap:round;opacity:.45;transition:transform .35s,opacity .3s,stroke .3s}
.ovo-b12:hover .ovo-b12__a,.ovo-b12:focus-visible .ovo-b12__a{transform:translate(2px,-2px);opacity:1;stroke:var(--ovo-lime)}
.ovo-b12.ovo-light{background:rgba(0,0,0,.14)}
.ovo-b12.ovo-light .ovo-b12__i{background:#fff}
.ovo-b12.ovo-light .ovo-b12__i::before{background:radial-gradient(70px circle at var(--x) var(--y),rgba(180,251,7,.45),transparent 70%)}
.ovo-b12.ovo-light .ovo-b12__m{fill:#111}
.ovo-b12.ovo-light .ovo-b12__t,.ovo-b12.ovo-light .ovo-b12__t>span+span b{color:#111}
.ovo-b12.ovo-light .ovo-b12__a,.ovo-b12.ovo-light:hover .ovo-b12__a{stroke:#111}
@media (prefers-reduced-motion:reduce){.ovo-b12,.ovo-b12 *{transition:none!important}}

/* yeni sürüm şeridi */
.upd-bar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 14px; background: #000; color: #fff; padding: 10px 12px 10px 18px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100vw - 32px); }
.upd-bar button { background: var(--accent, #c8a46a); color: #000; border: 0; border-radius: 8px; padding: 7px 14px; font: inherit; cursor: pointer; }

/* siparişe ürün ekleme satırı */
.add-item { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.add-item #aiSku { flex: 1 1 260px; min-width: 200px; }

/* müşteri adına sipariş: adet kutusu */
.qty-pcs { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-pcs input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; font: 600 15px var(--font, Inter, sans-serif); background: #fff; }
.qty-pcs span { font: 600 11px Oswald, sans-serif; letter-spacing: .12em; color: var(--muted); }
.qty-pcs small { white-space: nowrap; font-size: 11px; }
.box-hint { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-bg); }
.box-hint .bh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--accent-t); }
.box-hint button { border: 1px solid var(--accent-2); background: #fff; color: var(--accent-t); border-radius: 8px; padding: 2px 10px; font: 600 12px var(--body); cursor: pointer; }
.box-hint button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.box-hint .bh-bar { height: 4px; margin: 6px 0 5px; border-radius: 2px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.box-hint .bh-bar i { display: block; height: 100%; background: var(--accent); }
.box-hint small { display: block; font-size: 11px; color: var(--text); }

/* yetersiz stok, ürün çıkarma seçenekleri, bakiye sipariş hatırlatması */
.pcard.short { border-color: var(--err); }
.short-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--err); }
.short-note .ic { width: 14px; height: 14px; flex: none; }
.tbl tr.short td { background: var(--err-bg); }
.rm-opts small { display: block; margin: 5px 2px 0; font-size: 12px; }
.back-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* kısmi bakiye, sipariş notu düğmesi, üretim uyarısı */
.rm-back { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.rm-back .field { margin: 0; }
.note-btn.has { color: var(--accent-t); border-color: var(--accent-2); background: var(--accent-bg); }
.crit-note { display: flex; align-items: center; gap: 10px; }
.crit-note .btn { margin-left: auto; }

/* iskonto girişi (TR siparişleri) */
.disc-in { width: 92px; height: 32px; padding: 0 8px; text-align: right; font-size: 13px; }
.disc-all { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.disc-all-in { display: inline-flex; align-items: center; gap: 10px; }

/* kanal anahtarı: Türkiye seçiliyken belirgin */
body.tr-mode .mode-switch button.on { background: #b42318; }
