:root {
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --err: #dc2626;
  --err-bg: #fee2e2;
  --card: #fff;
  --side-w: 248px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --navy: #0F1B36;
  --ink: #0F1B36;
  --brand: #F47216;
  --brand-2: #DE600B;
  --brand-soft: #FFF1E6;
  --bg: #F5F6F9;
  --line: #E4E7EE;
  --muted: #5E6880;
  --side: #FFFFFF;
  --side-2: #F2F4F8;
  --side-ink: #5E6880;
  --info: #0F1B36;
  --info-bg: #EEF1F7;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* giriş */
.login { max-width: 340px; margin: 12vh auto; background: var(--card); padding: 28px; display: grid; gap: 14px; }
.login h1 { margin: 0 0 4px; font-size: 22px; }
.login label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.login input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.login button { padding: 11px; border: 0; border-radius: 8px; color: #fff; font-weight: 600; }
.err { color: var(--err); margin: 0; }

/* üst bar */
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 4px; margin-left: 12px; }
.tab { border: 0; background: none; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.tab.active { background: #fff1e6; color: var(--brand); }
.me { margin-left: auto; color: var(--muted); font-size: 14px; }
.me a { color: inherit; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef0f3; color: var(--muted); }

.badge.ok { background: var(--ok-bg); color: var(--ok); }

/* tarama */
.scanbar { display: flex; gap: 8px; }
#scan { flex: 1; min-width: 0; font-size: 22px; padding: 14px 16px; border: 2px solid var(--brand); border-radius: 12px; outline: none; letter-spacing: .5px; }

.scanbar button { padding: 0 20px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; }

.msg { margin: 14px 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 18px; }

.msg.success { background: var(--ok); color: #fff; font-size: 22px; }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.msg.error { background: var(--err); color: #fff; font-size: 22px; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.pkg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 16px 18px; }
.pkg-head.done { background: var(--ok-bg); }
.pkg-title { font-weight: 700; }
.pkg-meta { color: var(--muted); }
.progress { font-size: 22px; color: var(--muted); white-space: nowrap; }
.progress b { color: var(--ink); }

.lines { display: grid; gap: 10px; margin-top: 10px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; transition: border-color .2s, background .2s; }
.line img, .line .ph { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; }
.line .ph { opacity: .85; }

.line.full { background: #f3fdf6; }
.line.full .count { color: var(--ok); }
.line.flash { animation: flash .6s; }
@keyframes flash { from { box-shadow: 0 0 0 6px #16a34a66; } to { box-shadow: none; } }
.name { font-weight: 600; font-size: 15px; }
.chips { display: flex; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 8px; font-weight: 800; font-size: 18px; background: #f3f4f6; }
.chip i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0002; }
.chip.size { background: var(--ink); color: #fff; }
.bc { font: 12px ui-monospace, Menlo, monospace; color: var(--muted); word-break: break-all; }
.qty { text-align: center; }
.count { font-size: 34px; font-weight: 800; }
.count span { font-size: 20px; color: var(--muted); }
.adj { display: flex; gap: 6px; justify-content: center; }
.adj button { width: 36px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 18px; }

/* siparişler */

h2 { font-size: 17px; margin: 26px 0 10px; }

.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.tbl .num { text-align: right; font-weight: 800; font-size: 18px; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover { background: #fff7f0; }
.tbl tr.is-packed { opacity: .55; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0002; }
.empty { color: var(--muted); }

.demo-help { position: fixed; right: 0; bottom: 0; color: #e5e7eb; padding: 10px 16px; font-size: 13px; line-height: 2; }
.demo-help code { background: #374151; padding: 3px 7px; border-radius: 6px; cursor: pointer; color: #fff; }

@media (max-width: 640px) {
  .line { grid-template-columns: 56px 1fr auto; }
  .line img, .line .ph { width: 56px; height: 56px; }
  .tbl th:nth-child(3), .tbl td:nth-child(3) { display: none; }
}

/* roller, sorular, kullanıcılar, ayarlar */
.tab:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand); }
.btn { padding: 9px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn.primary { color: #fff; }
.btn.danger { color: var(--err); border-color: #f3c2c2; }
.btn.sm { padding: 5px 12px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: wait; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; background: var(--card); border-radius: 12px; margin-bottom: 14px; font-size: 17px; }
.card { background: var(--card); border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.form { display: grid; gap: 12px; }
.form h2 { margin: 10px 0 0; }
.form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); position: relative; }
.form input:not([type=checkbox]), .form select, .form textarea, .search { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
.form label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.form .clear { position: absolute; right: 0; top: 0; font-size: 12px; display: flex; gap: 4px; align-items: center; }
.form-msg { margin: 0; font-weight: 600; color: var(--muted); }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.search { flex: 1; min-width: 160px; }
.right { text-align: right; }
.grow { flex: 1; }

.seg { display: flex; background: #eef0f3; border-radius: 10px; padding: 3px; }
.segbtn { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.segbtn.active { background: #fff; color: var(--ink); }

.q { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-bottom: 12px; }
.q > img, .q > .ph { width: 96px; height: 128px; border-radius: 8px; object-fit: cover; }
.q-product { font-size: 13px; font-weight: 700; color: var(--muted); }
.q-product a { color: inherit; }
.q-text { font-size: 18px; font-weight: 600; margin: 4px 0; }
.q textarea { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.q-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.q-answer { margin-top: 10px; padding: 10px 12px; background: var(--ok-bg); border-radius: 8px; }

.price { margin-top: 4px; font-size: 14px; color: var(--muted); }
.price b, .price-total b { color: var(--ink); }
.price-total { margin-top: 6px; font-size: 15px; }

.tbl td.thumb img, .tbl td.thumb .ph { width: 44px; height: 56px; border-radius: 6px; object-fit: cover; display: block; }
.minis { white-space: nowrap; }
.mini { position: relative; display: inline-block; margin-right: 4px; }
.mini img, .mini .ph { width: 38px; height: 50px; border-radius: 5px; object-fit: cover; display: block; }
.mini em { position: absolute; right: 2px; bottom: 2px; background: #000b; color: #fff; font: 700 11px system-ui; font-style: normal; padding: 0 4px; border-radius: 4px; }
.mini em:empty { display: none; }
img.zoomable { cursor: zoom-in; }
.badge.role-admin { background: #ede9fe; color: #6d28d9; }
.badge.role-mudur { background: var(--info-bg); color: var(--info); }
.tbl a { color: var(--ink); font-weight: 600; }

dialog { border: 0; border-radius: 14px; padding: 22px; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 60px #0004; }
dialog::backdrop { background: #0006; }
dialog img.big { width: 100%; border-radius: 8px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.pre { white-space: pre-wrap; margin: 0; }

@media (max-width: 640px) {
  .top nav { margin-left: 0; overflow-x: auto; max-width: 100%; }

  .tbl td.minis { white-space: normal; }
}

/* çoklu mağaza */
.badge.store { background: #fff1e6; color: #c2410c; font-size: 12px; vertical-align: middle; }
.store-filter { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 600; background: #fff; }
.form-wide { margin-bottom: 14px; }
.bar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bar-in h2 { margin: 0; }
#orders-summary .msg, #qlist > .msg, #store-list .msg { font-size: 14px; margin: 0 0 8px; }

/* otomatik öneri, arşiv */
.q-status { background: var(--card); border-radius: 12px; padding: 10px 16px; font-size: 14px; color: var(--muted); }
.q-status b { color: var(--err); }

.sugg-label { margin-top: 10px; font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sugg-label + textarea { margin-top: 4px; background: #f7faff; }
.sugg-err { margin-top: 8px; font-size: 13px; color: var(--err); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.kb-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.kb-count { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; }
.kb-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.kb-form input[type=file] { flex: 1; min-width: 200px; }
.kb-report { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.kb-report .err { color: var(--err); }
code.cron { display: block; padding: 10px 12px; background: #1f2937; color: #e5e7eb; border-radius: 8px; font-size: 12px; word-break: break-all; }
h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }

/* ===== sol menülü modern düzen ===== */
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; }
.brand { display: flex; align-items: center; }
.logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #ff9a3d, #f2611a); color: #fff; font-weight: 800; font-size: 19px; box-shadow: 0 6px 16px rgba(242, 97, 26, .35); }
.brand-name { font-size: 17px; line-height: 1.15; }
.brand-name small { font-size: 12px; }
.side-badge { align-self: flex-start; margin: 0 8px 10px; }

.side-nav { display: grid; gap: 4px; }
.side-nav .tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; margin: 0; border: 0; border-radius: 10px; background: none; font: 600 14.5px Inter, system-ui, sans-serif; text-align: left; transition: background .15s, color .15s; }
.side-nav .tab svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; }
.who { display: grid; min-width: 0; line-height: 1.25; }
.who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 12px; }
.logout { margin-left: auto; display: grid; padding: 6px; border-radius: 8px; }

.logout svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

main { width: 100%; margin: 0; padding: 30px 36px 120px; }
.page-title { margin: 0 0 20px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* kartlar ve çubuklar */
.card, .bar, .q-status, .pkg-head, .line, .tbl, .orders-summary { border: 0; box-shadow: var(--shadow); border-radius: 14px; }
.bar { padding: 14px 16px; }
.q-status { margin: 0 0 16px; }
.q { padding: 18px; }
.line { border: 2px solid transparent; }
.line.partial { border-color: #f59e0b; }
.line.full { border-color: var(--ok); }
.pkg-head { border: 2px solid transparent; }
.pkg-head.done { border-color: var(--ok); }
.btn { border-radius: 10px; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: #cbd5e1; }

.form input:not([type=checkbox]), .form select, .form textarea, .search, .store-filter, .q textarea, #scan { border-radius: 10px; }
.form input:focus, .form select:focus, .form textarea:focus, .search:focus, .store-filter:focus, .q textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #f27a1a22; }
.tbl th { background: #f8fafc; letter-spacing: .03em; }
.tbl tr:last-child td { border-bottom: 0; }
.form { max-width: 760px; }
.form-wide { max-width: 760px; }
.segbtn.active { box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.login { border-radius: 18px; }

.demo-help { left: var(--side-w); }

/* tablet / telefon: menü üstte yatay */
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 8px; }
  .brand { padding: 0; }
  .brand-name small, .side-badge { display: none; }
  .logo { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  .side-user { margin: 0 0 0 auto; padding: 0; border: 0; }
  .who { display: none; }
  .side-nav { overflow-x: auto; scrollbar-width: none; }
  .side-nav .tab { width: auto; }

  .page-title { font-size: 21px; margin-bottom: 14px; }
  .demo-help { left: 0; }
}

/* paketleme = okut ve gör (büyük fotoğraflar) */
#tab-pack .msg:empty, #tab-pack .msg[hidden] { display: none; }
#tab-pack .pkg-head { margin-top: 16px; }
.progress b { font-size: 34px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.pcard { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pimg { position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.pimg img { object-fit: contain; display: block; }
.pimg .ph { width: 100%; height: 100%; opacity: .85; }
.pqty { position: absolute; top: 12px; right: 12px; color: #fff; font-size: 30px; font-weight: 800; padding: 4px 14px; border-radius: 12px; }
.pinfo { display: grid; }
.pinfo .chips { margin: 0; }

.pinfo .chip.qty { background: var(--info-bg); color: var(--info); }

/* tek ürünlük pakette fotoğraf daha da büyük */

@media (min-width: 1500px) { .cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .pqty { font-size: 24px; } }

/* fotoğraf alanı sabit, alt yazılar büyük, "aşağıda ürün var" uyarısı */
.pcard { animation: none; }
.pimg { aspect-ratio: auto; max-height: none; height: clamp(240px, calc(100vh - 480px), 480px); overflow: hidden; flex: none; }
.pimg img, .pimg .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.pimg .pqty { z-index: 1; }
.pinfo { padding: 16px 18px 18px; gap: 10px; }
.pinfo .chips { gap: 10px; flex-wrap: wrap; }
.pinfo .chip { font-size: 26px; padding: 8px 16px; border-radius: 10px; line-height: 1.15; }
.pinfo .chip.size { font-size: 30px; }
.pinfo .chip i { width: 22px; height: 22px; }
.pinfo .name { font-size: 18px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.pinfo .bc { font-size: 14px; }
.pinfo .price { font-size: 16px; }

.more-hint { position: fixed; z-index: 30; left: calc(var(--side-w) + (100vw - var(--side-w)) / 2); bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 14px 26px; border: 0; border-radius: 999px; color: #fff; font: 800 22px Inter, system-ui, sans-serif; cursor: pointer; }
.more-hint svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
body:has(.demo-help:not([hidden])) .more-hint { bottom: 64px; }
@media (max-width: 900px) { .more-hint { left: 50%; font-size: 18px; padding: 12px 20px; } .pimg { height: 60vw; } }

/* büyük mağaza adı ve kargo firması */
.pkg-store { display: inline-block; margin-bottom: 8px; padding: 6px 16px; border-radius: 10px; background: #fff1e6; color: #c2410c; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.pkg-title { font-size: 22px; }
.pkg-meta { font-size: 15px; }
.pkg-right { display: flex; align-items: center; gap: 22px; }
.cargo { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 28px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 18px rgba(15, 23, 42, .15); }
.cargo svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cargo.has-logo { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.cargo.has-logo img { object-fit: contain; }
@media (max-width: 900px) {
  .pkg-head { flex-wrap: wrap; }
  .pkg-right { width: 100%; justify-content: space-between; }
  .pkg-store { font-size: 20px; }
  .cargo { font-size: 20px; padding: 8px 14px; }
}
.cargo.has-logo { padding: 10px 20px; }
.cargo.has-logo img { height: 56px; max-width: 240px; }

/* ===== telefon düzeni (uygulama gibi: üstte başlık, altta sekme çubuğu) ===== */
@media (max-width: 900px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .sidebar { position: sticky; top: 0; flex-wrap: nowrap; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .brand-name { font-size: 16px; }
  .side-badge { display: inline-block; margin: 0; font-size: 10px; }
  .side-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; width: auto; order: 0; display: flex; justify-content: space-around; gap: 0; overflow: visible; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .side-nav .tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; padding: 6px 2px; border-radius: 10px; font-size: 11px; font-weight: 600; text-align: center; }
  .side-nav .tab svg { width: 22px; height: 22px; }
  .side-nav .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  main { padding: 16px 12px calc(96px + env(safe-area-inset-bottom)); }
  .demo-help { bottom: calc(64px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.8; padding: 6px 10px; }
  .more-hint { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.demo-help:not([hidden])) .more-hint { bottom: calc(130px + env(safe-area-inset-bottom)); }

  /* tablolar yana kaydırılır */
  #picklist, #orderlist, #ulist, #store-list { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
  #orderlist .tbl { min-width: 640px; }
  #ulist .tbl, #store-list .tbl { min-width: 520px; }
}
@media (max-width: 640px) {
  .page-title { font-size: 20px; margin-bottom: 12px; }
  .bar { gap: 8px; padding: 10px; }
  .bar > .seg, .bar > .search, .bar > .store-filter, .bar > .btn { flex: 1 1 100%; }
  .seg .segbtn { flex: 1; }
  #scan { font-size: 18px; padding: 12px; }
  .scanbar button { padding: 0 14px; }
  .pkg-head { padding: 12px 14px; }
  .pkg-store { font-size: 18px; padding: 4px 12px; }
  .pkg-title { font-size: 18px; }
  .cargo { font-size: 18px; padding: 8px 12px; }
  .cargo.has-logo img { height: 36px; }
  .pinfo .chip { font-size: 20px; }
  .pinfo .chip.size { font-size: 24px; }
  .pinfo .name { font-size: 16px; }
  .q { padding: 14px; }
  .q > img, .q > .ph { background: #fff; }
  .q-actions .btn { flex: 1 1 auto; }
  .card { padding: 14px; }
  .kb-form > * { flex: 1 1 100%; }
  dialog { padding: 18px; }
  input, select, textarea { font-size: 16px !important; } /* iOS odaklanınca yakınlaştırmasın */
}
.install-card { margin-bottom: 14px; }
.install-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
/* uygulama olarak açıldığında çentik/durum çubuğu boşluğu */
@media (display-mode: standalone) and (min-width: 901px) { .sidebar { padding-top: max(20px, env(safe-area-inset-top)); } }

/* ===== Paketle ekranı yeniden düzen (geniş alan, dengeli başlık, tek ürün yatay) ===== */
main { max-width: none; }
#tab-qna, #tab-users { max-width: 1240px; }
.pkg-head.v2 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.pkg-head.v2 > div { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.pkg-head.v2 > div + div { border-left: 1px solid var(--line); }
.pkg-main { gap: 4px; }
.pkg-head.v2 .pkg-store { align-self: flex-start; margin: 0 0 6px; font-size: 24px; padding: 4px 14px; }
.pkg-head.v2 .pkg-title { font-size: 15px; font-weight: 600; color: var(--muted); }
.pkg-head.v2 .pkg-title span { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-left: 4px; }
.pkg-head.v2 .pkg-meta { font-size: 15px; }
.pkg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pkg-tags:empty { display: none; }
.tag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 8px; background: #f1f5f9; color: var(--muted); font-size: 13px; font-weight: 600; }
.tag b { color: var(--ink); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.pkg-cargo { align-items: center; background: #fafbfc; }
.pkg-cargo .cargo { box-shadow: none; }
.pkg-count { align-items: center; min-width: 130px; background: var(--ink); color: #fff; }
.pkg-count b { font-size: 48px; line-height: 1; font-weight: 800; }
.pkg-count span { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }

/* kartlar: fotoğraf beyaz zeminde, çerçeveli */
.pimg { background: #fff; padding: 14px; box-sizing: border-box; }
.pimg img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 10px; }

/* tek ürünlük paket: fotoğraf solda, bilgiler sağda, tüm genişlik */
.cards.single { grid-template-columns: 1fr; }
.cards.single .pcard { flex-direction: row; min-height: clamp(320px, calc(100vh - 360px), 620px); }
.cards.single .pimg { flex: 0 0 48%; height: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.cards.single .pinfo { flex: 1; align-content: center; padding: 32px 36px; gap: 18px; }
.cards.single .pinfo .chip { font-size: 34px; padding: 10px 20px; border-radius: 12px; }
.cards.single .pinfo .chip.size { font-size: 42px; }
.cards.single .pinfo .chip i { width: 28px; height: 28px; }
.cards.single .pinfo .name { font-size: 24px; }
.cards.single .pinfo .bc { font-size: 15px; }
.cards.single .pqty { font-size: 40px; top: 20px; right: 20px; }

@media (max-width: 900px) {
  .pkg-head.v2 { grid-template-columns: 1fr auto; }
  .pkg-head.v2 .pkg-main { grid-column: 1 / -1; }
  .pkg-head.v2 > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pkg-head.v2 .pkg-count { border-left: 1px solid var(--line); min-width: 96px; padding: 12px; }
  .pkg-count b { font-size: 36px; }
  .pkg-head.v2 > div { padding: 14px 16px; }
  .pkg-head.v2 .pkg-store { font-size: 19px; }
  .cards.single .pcard { flex-direction: column; min-height: 0; }
  .cards.single .pimg { flex: none; height: 60vw; border-right: 0; border-bottom: 1px solid var(--line); }
  .cards.single .pinfo { padding: 16px 18px; gap: 10px; }
  .cards.single .pinfo .chip { font-size: 24px; }
  .cards.single .pinfo .chip.size { font-size: 28px; }
  .cards.single .pinfo .name { font-size: 18px; }
}
/* 2-4 ürünlük pakette kartlar tüm genişliği eşit paylaşır */
@media (min-width: 901px) {
  .cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1250px) { .cards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cam-btn { width: 54px; flex: none; border: 0; border-radius: 12px; color: #fff; display: grid; place-items: center; }
.cam-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cam-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #000; max-height: 60vh; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame { position: absolute; border: 3px solid var(--brand); border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
.more-hint { white-space: nowrap; }
@media (max-width: 640px) { .more-hint { font-size: 16px; padding: 10px 18px; } .more-hint svg { width: 22px; height: 22px; } }
@media (max-width: 640px) {
  .q { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .q > img, .q > .ph { width: 64px; height: 86px; object-fit: cover; }
  .q-text { font-size: 16px; }
  .segbtn { font-size: 14px; padding: 8px 6px; white-space: nowrap; }
}

/* ===== TREASİST — şık görünüm, destek, bildirimler ===== */

/* yan menü */

.brand-name { letter-spacing: .04em; font-weight: 800; }
.brand-name small { font-weight: 500; }
.side-nav .tab { position: relative; }

.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; color: #fff; font: 800 12px/1 Inter, system-ui, sans-serif; font-style: normal; }
.nav-badge[hidden] { display: none; }
.side-nav .tab.active .nav-badge { box-shadow: none; }

/* sayfa başlığı */
.page-head { margin-bottom: 20px; }
.page-head .page-title { margin: 0; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.page-sub:empty { display: none; }

/* kartlar, düğmeler */
.card, .bar, .q-status, .pkg-head, .pcard, .tbl { border-radius: var(--radius); }
.btn { font-weight: 600; }
.btn.primary { background: linear-gradient(135deg, #ff8a2b, var(--brand-2)); border-color: transparent; box-shadow: 0 4px 12px rgba(242, 97, 26, .25); }

.q { transition: box-shadow .2s, transform .2s; }
.q:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 32px rgba(15, 23, 42, .09); }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: #fafbfc; }

/* yeni soru */
.q { position: relative; }
.q.is-new { animation: newglow 1.4s ease-out 2; }
@keyframes newglow { 0% { box-shadow: 0 0 0 0 rgba(242, 122, 26, .6); } 100% { box-shadow: 0 0 0 14px rgba(242, 122, 26, 0), 0 0 0 2px var(--brand); } }
.new-pill { position: absolute; top: -10px; left: 18px; padding: 3px 10px; border-radius: 999px; color: #fff; font: 800 11px Inter, system-ui, sans-serif; letter-spacing: .08em; box-shadow: 0 4px 10px rgba(242, 97, 26, .35); }

/* bildirim kutucukları */
.toasts { position: fixed; z-index: 60; top: 18px; right: 18px; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { padding: 14px 16px; border-radius: 14px; background: #0f172a; color: #e2e8f0; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); animation: tin .25s ease-out; }
.toast b { color: #fff; }
.toast.new { border-left: 4px solid var(--brand); }
.toast.ok { background: #065f46; }
.toast.error { background: #991b1b; }
.toast.clickable { cursor: pointer; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* destek düğmesi (sağ alt) */
.fab-support { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border: 0; border-radius: 999px; color: #fff; font: 700 15px Inter, system-ui, sans-serif; box-shadow: 0 12px 30px rgba(15, 23, 42, .3); transition: transform .15s; }
.fab-support:hover { transform: translateY(-2px); }
.fab-support svg { width: 22px; height: 22px; fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fab-support .nav-badge { margin: 0 0 0 2px; box-shadow: none; }
body:has(.demo-help:not([hidden])) .fab-support { bottom: 64px; }
.support-form textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; }
.sup-h { margin: 18px 0 6px; font-size: 14px; color: var(--muted); }
.sup-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.sup-item { padding: 10px 12px; border-radius: 12px; background: #f8fafc; font-size: 14px; }
.sup-item.unread { background: #fff7ed; box-shadow: inset 3px 0 0 var(--brand); }
.sup-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.sup-text { white-space: pre-wrap; }
.sup-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #ecfdf5; font-size: 14px; white-space: pre-wrap; }
.sup-done { text-align: center; padding: 10px 0; }
.sup-check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: var(--ok); font-size: 34px; font-weight: 800; }
.sup-done .dlg-actions { justify-content: center; }
.sup-card { margin-bottom: 12px; display: grid; gap: 10px; }
.sup-card textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.sup-head { display: flex; gap: 12px; align-items: center; }
.sup-head .badge { margin-left: auto; }
.avatar.sm { width: 34px; height: 34px; }

/* giriş ekranı */
.login-brand { display: flex; align-items: center; }
.login-brand .brand-name { color: var(--ink); }
.login-brand .brand-name small { color: var(--muted); }
.login { box-shadow: 0 20px 60px rgba(15, 23, 42, .12); }

@media (max-width: 900px) {
  .side-nav .tab .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 10px; }
  .side-nav .tab.active .nav-badge { color: #fff; }
  .fab-support { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 12px; }
  .fab-support span { display: none; }
  body:has(.demo-help:not([hidden])) .fab-support { bottom: calc(126px + env(safe-area-inset-bottom)); }
  .toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
  .page-sub { font-size: 13px; }
}

/* ===== TREASİST logo renkleri — lacivert #0F1B36 + turuncu #F47216, açık yan menü ===== */
body { background: radial-gradient(1100px 380px at 75% -140px, #FFE7D3 0%, rgba(255, 231, 211, 0) 70%), var(--bg); color: var(--ink); }

/* logo + yazı */
.logo-img { height: 42px; width: auto; flex: none; display: block; }
.wordmark { font: 800 21px/1 Montserrat, Inter, system-ui, sans-serif; letter-spacing: .02em; }
.wordmark b { color: var(--navy); font-weight: 800; }
.wordmark em { color: var(--brand); font-style: normal; }
.brand-name { display: grid; gap: 4px; color: var(--navy); }
.brand-name small { color: var(--muted); font: 600 11.5px Inter, system-ui, sans-serif; letter-spacing: .02em; }
.brand { gap: 12px; padding: 4px 8px 18px; }
.login-brand { flex-direction: column; text-align: center; gap: 10px; margin-bottom: 10px; }
.login-brand .logo-img { height: 72px; }
.login-brand .wordmark { font-size: 30px; }
.login button { background: var(--brand); }

/* açık yan menü */
.sidebar { background: var(--side); color: var(--side-ink); border-right: 1px solid var(--line); box-shadow: 4px 0 24px rgba(15, 27, 54, .04); }
.side-nav .tab { color: var(--side-ink); }
.side-nav .tab:hover { background: var(--side-2); color: var(--navy); }
.side-nav .tab.active { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(15, 27, 54, .22); }
.side-nav .tab.active svg { color: var(--brand); }
.nav-badge { background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.side-nav .tab.active .nav-badge { background: var(--brand); color: #fff; }
.side-user { border-top: 1px solid var(--line); }
.avatar { background: var(--brand-soft); color: var(--brand-2); }
.who b { color: var(--navy); }
.logout { color: var(--side-ink); }
.logout:hover { background: var(--side-2); color: var(--navy); }
.side-badge { margin-left: 8px; }

/* renkler */
.badge.store, .pkg-store { background: var(--brand-soft); color: var(--brand-2); }
.btn.primary, .login button { background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 12px rgba(244, 114, 22, .25); }
.btn.primary:hover:not(:disabled) { background: var(--brand-2); border-color: var(--brand-2); filter: none; }
.scanbar button, .pkg-count, .fab-support, .toast, .chip.size { background: var(--navy); }
#scan { border-color: var(--brand); }
#scan:focus { box-shadow: 0 0 0 4px rgba(244, 114, 22, .18); }
.tab.active, .segbtn.active { color: var(--navy); }
.cam-btn { background: var(--brand); }
.more-hint { background: var(--brand); box-shadow: 0 10px 30px rgba(244, 114, 22, .4); }
.pqty { background: var(--brand); box-shadow: 0 6px 16px rgba(244, 114, 22, .35); }
.q.is-new { box-shadow: 0 0 0 2px var(--brand), 0 12px 30px rgba(244, 114, 22, .18); }
.new-pill { background: var(--brand); }
.toast.new { background: var(--navy); border-left-color: var(--brand); }
.fab-support { background: var(--navy); }
.fab-support svg { stroke: var(--brand); }
.msg.info { background: var(--info-bg); color: var(--navy); }
.sugg-label { color: var(--navy); }
.q-status b.on { color: var(--ok); }
.cargo:not(.has-logo):not([style]) { background: var(--navy); }
.demo-help { background: var(--navy); }
.demo-help code:hover { background: var(--brand); }
.badge.demo { background: var(--brand-soft); color: var(--brand-2); }
.kb-count { background: var(--side-2); }
.avatar.sm { background: var(--brand-soft); color: var(--brand-2); }

/* telefon: beyaz üst çubuk ve beyaz alt sekme çubuğu */
@media (max-width: 900px) {
  .sidebar { box-shadow: 0 2px 12px rgba(15, 27, 54, .06); border-right: 0; border-bottom: 1px solid var(--line); }
  .logo-img { height: 34px; }
  .wordmark { font-size: 18px; }
  .brand-name small { display: none; }
  .side-nav { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(15, 27, 54, .06); }
  .side-nav .tab, .side-nav .tab:hover { background: none; color: var(--side-ink); }
  .side-nav .tab.active { background: none; color: var(--brand); box-shadow: none; }
  .side-nav .tab.active svg { color: var(--brand); }
  .side-nav .tab .nav-badge { box-shadow: 0 0 0 2px #fff; }
  .side-nav .tab.active .nav-badge { background: var(--brand); }
}
@media (max-width: 900px) { .side-user { border-top: 0; } }
/* cevap kutusu içeriğe göre uzar, kaydırma çubuğu çıkmaz */
.q textarea { overflow: hidden; resize: none; min-height: 84px; line-height: 1.5; }
.cam-wrap { aspect-ratio: 4 / 3; }
.cam-frame { top: 32%; bottom: 32%; left: 6%; right: 6%; }
.logout-form { margin-left: auto; display: flex; }
button.logout { border: 0; background: none; cursor: pointer; }

/* ===== Satış Paneli ===== */
#tab-sales { max-width: none; }
.sales-filters { display: grid; gap: 12px; margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pchip, .schip, .stab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 13.5px Inter, system-ui, sans-serif; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.pchip:hover, .schip:hover { border-color: #cbd5e1; color: var(--ink); }
.pchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.schip { border-radius: 12px; padding: 8px 14px; }
.schip i { width: 10px; height: 10px; border-radius: 50%; }
.schip b, .stab b { font-weight: 700; color: var(--muted); background: #f1f5f9; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.schip.on { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 114, 22, .12); }
.range-label { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.date-range input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
.s-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.stab { border: 0; border-radius: 8px 8px 0 0; background: none; padding: 8px 12px; border-bottom: 2px solid transparent; }
.stab.on { color: var(--navy); border-bottom-color: var(--brand); }
.stab.on b { background: var(--brand); color: #fff; }
.s-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.s-toolbar .search { max-width: 420px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-2); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 13px; }
.fchip button { border: 0; background: #fff; color: var(--brand-2); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-weight: 800; }

.kpis { display: grid; gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-top: 2px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.bad .kpi-value { color: var(--err); }
.kpi.bad .kpi-sub { color: var(--err); font-weight: 600; }
.kpi.good .kpi-sub { color: var(--ok); font-weight: 600; }

.stats-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 18px; display: grid; min-width: 140px; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat b { font-size: 22px; color: var(--navy); }

.chart-card, #tab-sales .card { margin-bottom: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-head h3, .bd-card h3 { margin: 0; font-size: 15px; color: var(--navy); }
.seg.sm .segbtn { padding: 5px 12px; font-size: 13px; }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: #eef0f4; stroke-width: 1; }
.chart .base { stroke: #cbd5e1; stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px Inter, system-ui, sans-serif; }
.chart .bar { fill: var(--brand); }
.chart .hit { fill: transparent; }
.chart .bar-g.hover .bar { fill: var(--brand-2); }
.chart .bar-g.hover .hit { fill: rgba(15, 27, 54, .04); }
.tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; box-shadow: 0 8px 20px rgba(15, 27, 54, .25); white-space: nowrap; }

.toplist { display: grid; }
.trow { display: grid; grid-template-columns: 24px 48px minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.trow:first-child { border-top: 0; }
.trow:hover { background: #fafbfc; }
.rank { font-weight: 800; color: var(--muted); text-align: center; }
.trow .tthumb, .trow .ph { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; }
.tname { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsizes { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.mchip { font-size: 11.5px; background: #f1f5f9; border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.mchip b { color: var(--navy); }
.ubar { height: 6px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.ubar i, .bdbar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.tnum { text-align: right; }
.tnum b { font-size: 20px; color: var(--navy); display: block; }
.tnum span { font-size: 12px; color: var(--muted); }

.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bd-card h3 { margin-bottom: 8px; }
.bdrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.bdrow:hover { background: #fafbfc; }
.bdlabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.bdlabel .dot { width: 10px; height: 10px; flex: none; }
.bdbar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.bdval { text-align: right; white-space: nowrap; }
.bdval b { color: var(--navy); }
.bdval span { display: block; font-size: 11.5px; color: var(--muted); }

.grp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.grp-bar .hint { margin-left: auto; letter-spacing: 0; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.collage { display: grid; gap: 2px; aspect-ratio: 4 / 3; background: #fff; }
.collage.n2 { grid-template-columns: 1fr 1fr; }
.collage.n3, .collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 img:first-child { grid-row: span 2; }
.collage img, .collage .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.gbody { padding: 14px 16px 16px; display: grid; gap: 8px; }
.gtitle { font-weight: 700; color: var(--navy); display: flex; gap: 6px; align-items: center; }
.gnum { color: var(--muted); font-size: 13px; }
.gnum b { font-size: 26px; color: var(--navy); }
.glabel { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.gsizes, .gcolors { display: flex; flex-wrap: wrap; gap: 6px; }
.szchip { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 4px 3px 8px; }
.szchip b { background: var(--navy); color: #fff; border-radius: 6px; padding: 1px 7px; }
.cchip { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; color: var(--muted); }
.cchip i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0002; }
.gbody .btn { justify-self: start; }

.ocount { margin: 0 0 10px; }
.ocard { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; border-left: 4px solid var(--sc); }
.oleft { padding: 14px 16px; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.ostore { font-size: 12px; font-weight: 800; color: var(--navy); display: flex; gap: 6px; align-items: center; text-transform: uppercase; }
.ostore i { width: 8px; height: 8px; border-radius: 50%; }
.ono { font-weight: 800; font-size: 16px; color: var(--navy); }
.ocust { font-weight: 600; margin-top: 6px; }
.olines { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; padding: 12px; align-content: start; }
.oline { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; background: #f8fafc; border-radius: 10px; padding: 8px; }
.oline img, .oline .ph { width: 56px; height: 70px; border-radius: 8px; object-fit: cover; }
.oname { line-height: 1.3; }
.ochips { display: flex; gap: 6px; align-items: center; margin: 4px 0; flex-wrap: wrap; }
.ochips .chip.size { font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.xqty { background: var(--err); color: #fff; border-radius: 6px; padding: 1px 6px; font-weight: 800; font-size: 12px; }
.oright { padding: 14px 16px; border-left: 1px solid var(--line); display: grid; gap: 4px; justify-items: end; align-content: start; text-align: right; }
.ototal { font-size: 18px; color: var(--navy); }
.sbadge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: var(--muted); }
.sbadge.s-new { background: var(--brand-soft); color: var(--brand-2); }
.sbadge.s-picking { background: #eef2ff; color: #4338ca; }
.sbadge.s-ready { background: #ecfeff; color: #0e7490; }
.sbadge.s-shipped { background: #eff6ff; color: #1d4ed8; }
.sbadge.s-delivered { background: var(--ok-bg); color: var(--ok); }
.sbadge.s-cancel { background: var(--err-bg); color: var(--err); }
.sbadge.s-return { background: #fff7ed; color: #c2410c; }
.left { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.late { font-size: 12.5px; color: var(--err); font-weight: 700; }
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; margin: 16px 0; }
.roles-grid { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px; gap: 8px 12px; align-items: center; font-size: 14px; }
.roles-grid b { text-align: center; font-size: 13px; color: var(--muted); }
.roles-grid .check { justify-content: center; }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ocard { grid-template-columns: 1fr; }
  .oleft, .oright { border: 0; }
  .oright { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: center; border-top: 1px solid var(--line); }
  .trow { grid-template-columns: 20px 40px minmax(0, 1fr) 90px; }
}
@media (max-width: 640px) {

  .kpi-value { font-size: 22px; }
  .range-label { width: 100%; margin: 0; }
  .s-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .stab { white-space: nowrap; }
  .bd-grid { grid-template-columns: 1fr; }
}
#s-body.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* işleme alınanlar ve akış tablosu */
.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi.proc { box-shadow: var(--shadow), inset 0 3px 0 #4338ca; }
.kpi.proc .kpi-value { color: #4338ca; }
.kpi-sub b { color: var(--navy); }
.flow-wrap { overflow-x: auto; max-height: 460px; overflow-y: auto; border-radius: 10px; }
.tbl.flow { box-shadow: none; font-size: 14px; }
.tbl.flow th { position: sticky; top: 0; z-index: 1; }
.tbl.flow .num { font-size: 14px; font-weight: 600; }
.tbl.flow td.hl { color: #4338ca; font-weight: 800; background: #f5f6ff; }
.tbl.flow tfoot td { font-weight: 800; border-top: 2px solid var(--line); background: #fafbfc; }
@media (max-width: 1400px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats-row .stat { flex: 1 1 130px; }
#s-note .msg { font-size: 13.5px; font-weight: 600; padding: 10px 14px; margin: 0 0 10px; }
.roles-grid .always { text-align: center; font-size: 12px; color: var(--ok); font-weight: 700; }

/* v15 · Soru istatistikleri */
.qstats .kpi.proc .kpi-value { color: #4338ca; }
.qs-card { margin-bottom: 16px; }
.qs-card .bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.qs-card .bar-in h2 { margin: 0; font-size: 16px; }
.qs-card .flow-wrap { overflow-x: auto; }
.qs-card td, .qs-card th { white-space: nowrap; }
.qs-card td.warn { color: var(--err); font-weight: 600; }
.qs-card tr.total td { font-weight: 800; border-top: 2px solid var(--line, #e5e7eb); }
.qs-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) {
  .qs-card { padding: 14px; }
  .qs-card .tbl th:nth-child(3), .qs-card .tbl td:nth-child(3) { display: table-cell; }
}
#q-search[hidden] { display: none; }

/* v16 · Çoklu paket notu (Satış Paneli) */
.packnote { display: inline-block; margin: 3px 0 2px; padding: 2px 8px; border-radius: 999px; background: #fff1e6; color: #b45309; font-size: 12px; font-weight: 700; }

/* v17 · Kâr / Zarar */
.pbadge { display: inline-grid; grid-template-columns: auto auto; gap: 1px 12px; align-items: center; padding: 6px 10px; border: 0; border-radius: 8px;
  font: 700 11px Inter, system-ui, sans-serif; letter-spacing: .02em; color: #fff; cursor: pointer; text-align: left; white-space: nowrap; }
.pbadge b { font-size: 13.5px; text-align: right; }
.pbadge.gain { background: #22c55e; }
.pbadge.loss { background: #dc2626; }
.pbadge.warn { background: #f59e0b; }
.pbadge.muted { background: #e5e7eb; color: var(--muted); cursor: default; }
.pb-pop { position: fixed; z-index: 60; width: 290px; background: #111827; color: #e5e7eb; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3); font-size: 13px; pointer-events: auto; }
.pb-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.pb-row b { font-variant-numeric: tabular-nums; }
.pb-row.plus b { color: #4ade80; }
.pb-row.minus b { color: #f87171; }
.pb-row.total { border-top: 1px solid #374151; margin-top: 6px; padding-top: 8px; font-size: 14.5px; font-weight: 700; }
.pb-note { margin-top: 8px; font-size: 11.5px; color: #9ca3af; line-height: 1.45; }
.badge.err { background: var(--err-bg); color: var(--err); }
#tab-profit .card { padding: 16px 18px; margin-bottom: 16px; }
#tab-profit h3 { margin: 0 0 12px; font-size: 16px; }
#tab-profit h3 small { color: var(--muted); font-weight: 500; }
#tab-profit .bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
#tab-profit .bar-in h3 { margin: 0; }
#tab-profit .kpis { margin-top: 16px; }
#tab-profit .neg { color: var(--err); }
#tab-profit .pos { color: var(--ok); }
.warn-t { color: var(--warn); font-weight: 700; }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.p-grid > .card { margin-bottom: 16px; }
.wf { display: grid; gap: 6px; }
.wf-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr 110px 52px; gap: 10px; align-items: center; font-size: 14px; }
.wf-row i { height: 10px; background: #f1f5f9; border-radius: 99px; overflow: hidden; display: block; }
.wf-row i em { display: block; height: 100%; background: #fca5a5; border-radius: 99px; }
.wf-row.plus i em { background: #86efac; }
.wf-row b { text-align: right; font-variant-numeric: tabular-nums; }
.wf-row small { color: var(--muted); text-align: right; }
.wf-row.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 16px; }
.wf-row.total.plus b { color: var(--ok); }
.wf-row.total.minus b { color: var(--err); }
.plist, .worst { display: grid; gap: 8px; }
.prow, .wrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.prow .tthumb, .wrow .tthumb { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; }
.wsize { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--info-bg); color: var(--info); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pnum { display: grid; text-align: right; }
.pnum span { font-size: 12px; color: var(--muted); }
.oname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.porders td { vertical-align: middle; }
.porders .oname { max-width: 280px; font-weight: 500; font-size: 13px; color: var(--muted); }
.pcards { display: grid; gap: 14px; margin-bottom: 16px; }
.pcard2 { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 12px; }
.pc-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pc-img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.pc-now { display: grid; justify-items: end; gap: 4px; }
.pc-now > b { font-size: 18px; }
.pc-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pc-cost { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr auto; gap: 8px; align-items: end; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 10px; }
.pc-cost label, .pf-general label, .pf-col label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pc-cost input, .pc-sim input, .pf-general input, .pf-col input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box; background: #fff; }
.pc-sim { display: grid; gap: 8px; border: 1px dashed #fdba74; border-radius: 10px; padding: 10px; }
.pc-sim .seg { justify-self: start; }
.pc-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; }
.pc-result .big { font-size: 18px; color: var(--ink); }
.profit-form { display: grid; gap: 16px; }
.pf-general { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.pf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-col { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.pf-col legend { font-weight: 800; padding: 0 6px; }
.pf-col small, .pf-general small { font-weight: 400; color: var(--muted); }
.pf-cargo { display: grid; gap: 6px; }
.cargo-row { display: grid; grid-template-columns: 90px auto 1fr auto auto; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.pf-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pf-suggest { display: grid; gap: 8px; margin-top: 8px; overflow-x: auto; }
input.changed { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(244, 114, 22, .15); }
@media (max-width: 1100px) { .pc-body, .p-grid, .pf-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .pc-head { grid-template-columns: 48px minmax(0, 1fr); }
  .pc-now { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; }
  .pc-cost { grid-template-columns: 1fr 1fr; }
  .pc-cost .btn { grid-column: 1 / -1; }
  .wf-row { grid-template-columns: minmax(110px, 1fr) 1fr 96px; }
  .wf-row small { display: none; }
  .pb-pop { width: min(290px, calc(100vw - 16px)); }
}

/* v18 · Sayım */
.cnt-card { padding: 8px 16px 14px; margin-top: 16px; }
.cnt-table .num { text-align: right; white-space: nowrap; }
.cnt-table th, .cnt-table td { padding: 11px 10px; }
.cnt-row { cursor: pointer; }
.cnt-row:hover td { background: #f8fafc; }
.cnt-name { font-weight: 600; }
.cnt-arrow { display: inline-block; width: 18px; font-style: normal; color: var(--muted); }
.cnt-units { font-size: 18px; font-weight: 800; color: var(--navy); }
.cnt-cancel { color: var(--muted); }
.cnt-total td { font-weight: 800; border-top: 2px solid var(--line); background: #fff7ed; }
.cnt-other .cnt-name, .cnt-other .cnt-units { color: var(--muted); font-weight: 600; }
.cnt-detail td { background: #f8fafc; padding: 10px 14px 12px 32px; }
.cnt-stores { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cnt-prod { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 5px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.cnt-prod b { white-space: nowrap; color: var(--navy); }
.cnt-prod small { display: block; font-size: 11.5px; font-weight: 600; color: var(--brand); }
.cnt-prod:last-of-type { border-bottom: 0; }
.cnt-hint { margin: 10px 0 0; }
.cd-barcell { width: 26%; min-width: 80px; vertical-align: middle; }
.cd-bar { height: 10px; min-width: 2px; border-radius: 5px; background: var(--brand); }
.cnt-card .flow-wrap { max-height: none; overflow: visible; }
.cnt-table th, .cnt-table th.num { font-size: 12px; font-weight: 700; color: var(--muted); }
#tab-counts .tbl th:nth-child(3), #tab-counts .tbl td:nth-child(3) { display: table-cell; }
@media (max-width: 700px) {
  .cnt-table th, .cnt-table td { padding: 9px 6px; font-size: 13px; }
  .cnt-units { font-size: 16px; }
  .cnt-detail td { padding-left: 10px; }
  .cd-barcell { display: none; }
}

/* v19 · Maliyet listesi */
.cl-card { max-width: 640px; }
.cl-card .flow-wrap { max-height: none; overflow: visible; }
.cl-table td { vertical-align: middle; }
.cl-table th, .cl-table th.num { font-size: 12px; font-weight: 700; color: var(--muted); }
.cl-count { white-space: nowrap; }
.cl-price { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cl-price input { width: 104px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; text-align: right; background: #fff; box-sizing: border-box; }
.cl-card .pf-actions { margin-top: 14px; }
.cl-notes { max-width: 640px; }
.cl-del { margin-top: 6px; }
.cl-warn { font-size: 12px; margin-top: 4px; }
.cl-add { display: grid; gap: 10px; margin-top: 16px; }
.cl-add label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-add small { font-weight: 400; }
.cl-add input, .cl-add select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box; background: #fff; }
.pc-cost small { font-weight: 400; color: var(--muted); }
.pc-cost .pc-match { grid-column: 1 / -1; grid-row: 2; }
.pc-cost .pc-match select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box; background: #fff; }

/* v20 · Zarar edenlerde düzenleme penceresi */
.pm-open { cursor: pointer; }
.pm-open:hover .oname { color: var(--brand); text-decoration: underline; }
dialog.p-modal { max-width: none; width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 18px; }
.p-modal::backdrop { background: rgba(15, 23, 42, .55); }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pm-head h3 { margin: 0; font-size: 16px; }
.pm-order { background: #111827; color: #e5e7eb; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.pm-order > b { display: block; margin-bottom: 8px; font-size: 13px; }

/* Kargo çıktısı */
.o-views { display: inline-flex; margin-bottom: 14px; }
.l-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.l-actions .grow, .s-toolbar .grow { flex: 1; }
.l-table td.chk, .l-table th.chk { width: 34px; text-align: center; }
.l-table tr.is-sel { background: #fff8f1; }
.l-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.l-banner .grow { flex: 1; min-width: 160px; }

/* Sayım › Kargoya verilen */
.cg-kpis { margin-top: 16px; margin-bottom: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cg-h { margin: 8px 0 4px; font-size: 15px; }
.cg-table td, .cg-table th { white-space: nowrap; }
.cg-table b { font-size: 15px; color: var(--navy); }
.cg-sub { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.cg-none { color: var(--muted); }

/* Mağaza özellikleri */
.feat-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
.feat-box legend { font-weight: 600; font-size: 13px; padding: 0 6px; }

/* ===== Menü grupları ve telefondaki "Daha fazla" paneli ===== */
.side-nav { min-height: 0; overflow-y: auto; }
.nav-more { display: contents; }
.nav-group { padding: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.nav-group.nav-gap { padding: 4px 0 0; }
.side-nav .more-btn { display: none; }
.side-nav > .nav-group:first-child { padding-top: 6px; }
@media (max-width: 900px) {
  .side-nav > .nav-group { display: none; }
  .side-nav .more-btn { display: flex; }
  .nav-more { display: none; position: fixed; z-index: 41; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); max-height: 70vh; overflow-y: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px 10px 12px; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(15, 27, 54, .25); }
  .nav-more.open { display: grid; }
  .nav-more .nav-group { grid-column: 1 / -1; padding: 10px 6px 2px; }
  .nav-more .nav-group.nav-gap { display: none; }
  .side-nav .nav-more .tab { padding: 10px 2px; flex: none; width: auto; }
}

/* ===== Yetkiler ===== */
.center { text-align: center; }
.u-screens { font-size: 13px; color: var(--muted); max-width: 320px; }
.perm-box { gap: 4px; }
.perm-box #u-perm-mode { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.perm-box #u-perm-list { display: grid; gap: 6px; }
.perm-box.locked #u-perm-list { opacity: .65; }
.form input[type=radio] { width: auto; flex: none; padding: 0; box-shadow: none; }
.perm-group { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.perm-child { padding-left: 22px; }
.role-form { max-width: 820px; }
.role-tbl { box-shadow: none; width: 100%; }
.role-tbl .role-group td { padding-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.role-tbl .role-on { color: var(--ok); font-weight: 700; }
.role-tbl input { width: 18px; height: 18px; }
.role-form .form-msg { color: var(--err); margin: 0; }

/* ===== Telefon: ekranlar yana taşmaz ===== */
@media (max-width: 900px) {
  .seg, .o-views { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg .segbtn { flex: 1 0 auto; white-space: nowrap; }
  .s-toolbar { flex-wrap: wrap; min-width: 0; }
  .s-toolbar > * { min-width: 0; max-width: 100%; }
  #c-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .btn.sm { min-height: 38px; }
  .profit-form input, .kb-form input, .kb-form select { min-height: 42px; }
  .form input[type=checkbox], .form input[type=radio], .role-tbl input { width: 20px; height: 20px; }
}
[data-set-box="stores"] { max-width: 1100px; }

/* Sayım: firmanın kendi grupları */
.cnt-edit { display: grid; gap: 10px; }
.cnt-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto; gap: 8px; align-items: end; }
.cnt-group label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.cnt-group input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
@media (max-width: 640px) { .cnt-group { grid-template-columns: minmax(0, 1fr); } }

/* Ödeme uyarısı ve Paketim */
.bill-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; background: var(--warn-bg); color: var(--warn); }
.bill-banner.late { background: var(--err); color: #fff; }
#plan-box { display: grid; gap: 14px; }
#plan-box .card { margin: 0; }
.plan-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0; }
.plan-facts small { display: block; color: var(--muted); font-size: 12.5px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan-card { display: grid; gap: 8px; align-content: start; }
.plan-card.on { box-shadow: inset 0 0 0 2px var(--navy); }
.plan-card h3 { margin: 0; font-size: 17px; }
.plan-card ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.plan-price { margin: 0; font-weight: 700; font-size: 18px; }
.plan-price small { font-weight: 500; color: var(--muted); font-size: 13px; }

/* Şifremi unuttum */
.login-link { font-size: 14px; color: var(--muted); text-align: center; }
.login-ok { margin: 0; padding: 10px 12px; border-radius: 8px; background: #E4F7EE; color: #0E7A46; font-weight: 600; font-size: 14px; }

/* TREASİST destek girişi */
.support-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; background: var(--navy); color: #fff; }

/* Örnek panel ve API rehberi */
.demo-banner { background: var(--warn-bg); color: var(--warn); }
.demo-banner a { color: inherit; text-decoration: underline; white-space: nowrap; }
.api-guide { margin: 0 0 12px; font-size: 14px; }
.api-guide summary { cursor: pointer; font-weight: 600; }
.api-guide ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 5px; }
