/* Partner paneli: satıcı arka ofisi. Sol menü + içerik; dar ekranda menü kayar. */
:root {
  --bg: #f3f5f9; --surface: #fff; --surface-2: #f7f8fb; --border: #e2e6ee; --text: #18212f; --muted: #667085;
  --side: #0f1b2d; --side-2: #18273d; --side-text: #c9d3e3;
  --accent: #1f6feb; --accent-2: #e8f0fe; --ok: #12855b; --ok-2: #e3f5ec; --warn: #b26a00; --warn-2: #fff3dc; --bad: #c0362c; --bad-2: #fde8e6;
  --info: #5b5bd6; --info-2: #eceefe; --mute-2: #eef0f4;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; } h3 { font-size: 14px; margin: 16px 0 8px; }
p { margin: 0 0 10px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .d { display: block; } .r { text-align: right; }
.bad { color: var(--bad); } .warn { color: var(--warn); } .ok-t { color: var(--ok); }
.err { color: var(--bad); } .warn-t { color: var(--warn); background: var(--warn-2); padding: 8px 10px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* Kabuk */
#partner { min-height: 100%; }
.side { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; text-decoration: none !important; }
.brand b { display: block; font-size: 15px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .brand small { color: #7fa6ff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #2f80ff, #12b5a5); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.menu { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; overflow-y: auto; flex: 1; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--side-2); color: #fff; } .menu a.on { background: #1f3352; color: #fff; box-shadow: inset 3px 0 0 #4c8dff; }
.menu .ic { width: 20px; text-align: center; opacity: .85; }
.nb { margin-left: auto; background: #ff6b5a; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; }
.side-foot { padding: 12px 18px 18px; display: grid; gap: 6px; font-size: 12.5px; border-top: 1px solid #22344f; } .side-foot a { color: #9fb1cc; }
.main { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 10px 24px; min-height: 56px; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; } .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:has(.acctsel) { flex: 1 1 auto; } .acctsel { display: block; min-width: 0; max-width: 100%; } .acctsel select { width: 100%; max-width: 320px; font-weight: 700; padding: 6px 28px 6px 10px; border-radius: 8px; text-overflow: ellipsis; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; } .user { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; }
#page { padding: 22px 24px 48px; max-width: 1400px; width: 100%; outline: none; }
.scrim { display: none; }

/* Düğmeler ve alanlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 7px 13px; font: 600 13.5px/1.2 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: #c5ccd8; background: var(--surface-2); } .btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: #1a5fd0; }
.btn.danger { color: var(--bad); border-color: #f3c2bd; } .btn.danger:hover { background: var(--bad-2); }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); } .btn.ghost:hover { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; } .btn.big { padding: 11px 18px; font-size: 15px; } .btn.full { width: 100%; }
.icon { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; } .icon:hover { background: var(--surface-2); color: var(--text); }
.linkbtn { border: 0; background: none; color: var(--accent); font: 600 13px var(--font); cursor: pointer; padding: 10px 0 0; display: block; margin: 0 auto; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #cfd5df; border-radius: 8px; padding: 7px 10px; background: #fff; min-width: 0; max-width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid #9cc0ff; outline-offset: 1px; }
input:disabled, select:disabled { background: var(--surface-2); color: var(--muted); }
textarea { width: 100%; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; } .field > span { font-weight: 600; font-size: 13px; } .field input, .field select { width: 100%; }
.hint { color: var(--muted); font-size: 12px; }
.chk { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; } .chk input { width: 16px; height: 16px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 14px; } legend { font-weight: 700; padding: 0 6px; }
.form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.formbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; } .inline-form .field { margin: 0; }
.inl { width: 82px; text-align: right; padding: 5px 7px; } .inl.bad { border-color: var(--bad); }
.inl-l { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

/* Sayfa başlığı, kartlar, ızgara */
.phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; color: var(--muted); margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .ch h2 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .grid2 > .card { margin-bottom: 0; }
.grid2.wide-l { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .grid2.wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; } .grid3 > .card { margin-bottom: 0; }
.grid2 + .grid2, .grid2 + .card, .grid3 + .grid2 { margin-top: 16px; }
.more { display: inline-block; margin-top: 10px; font-weight: 600; }
.center-msg { max-width: 520px; margin: 12vh auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* Rozet, sekme, süzgeç */
.badge { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: var(--mute-2); color: #475467; white-space: nowrap; text-decoration: none !important; }
.badge.ok { background: var(--ok-2); color: var(--ok); } .badge.warn { background: var(--warn-2); color: var(--warn); } .badge.bad { background: var(--bad-2); color: var(--bad); }
.badge.info { background: var(--info-2); color: var(--info); } .badge.mute { background: var(--mute-2); color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: thin; }
.tabs a, .tabs button { padding: 9px 13px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: 600 13.5px var(--font); }
.tabs a.on, .tabs button.on { color: var(--accent); border-bottom-color: var(--accent); } .tabs a:hover { color: var(--text); }
.tabs .cnt { background: var(--mute-2); color: var(--muted); border-radius: 999px; padding: 0 7px; font-size: 11.5px; margin-left: 4px; }
.tabs a.on .cnt { background: var(--accent-2); color: var(--accent); }
.tabs.two { display: grid; grid-template-columns: 1fr 1fr; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .filters input[type=search] { flex: 1 1 260px; }
.seg { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.seg a { padding: 6px 11px; border-radius: 7px; color: var(--muted); font-weight: 600; text-decoration: none; } .seg a.on { background: var(--accent); color: #fff; }
.seg input[type=date] { padding: 4px 6px; }
.bbbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); } .bbbar a { color: var(--text); text-decoration: none; } .bbbar a.on { font-weight: 700; }
.bulk { position: sticky; top: 64px; z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #10233f; color: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; } .bulk .btn { background: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 11px; font: 600 12.5px var(--font); cursor: pointer; color: var(--text); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); } .chip.bad b { color: var(--bad); } .chip.on b { color: #fff; }
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none !important; margin-bottom: 12px; }
.alerts .alert { margin: 0; } .alert.warn { background: var(--warn-2); color: var(--warn); } .alert.bad { background: var(--bad-2); color: var(--bad); }

/* Tablo */
.tblwrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.card .tblwrap { border: 0; border-radius: 0; margin: 0 -4px; } .tblwrap.tall { max-height: 520px; overflow-y: auto; }
.tbl { width: 100%; border-collapse: collapse; } .tbl.small { font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 9px 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid #eef1f5; vertical-align: top; } .tbl tr:last-child td { border-bottom: 0; }
.tbl tr.dim td { color: var(--muted); } .tbl tr.own td { background: #f2f7ff; } .tbl tr.tot td { font-weight: 700; background: var(--surface-2); }
.tbl .ck { width: 32px; } .tbl .acts { white-space: nowrap; text-align: right; } .tbl .acts .btn { margin-left: 4px; }
.prod { display: flex; gap: 10px; align-items: flex-start; min-width: 240px; } .pt { color: var(--text); font-weight: 600; }
.pimg { flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; }
.pimg img { width: 100%; height: 100%; object-fit: cover; } .noimg { color: #a3acba; font-size: 18px; }
.ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; } .pg { border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; background: var(--surface); } .pg.dis { color: #c0c6d0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.card .empty { border: 0; padding: 22px 10px; } .empty-ic { font-size: 30px; opacity: .5; }
.loading { padding: 30px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; }
.spin { width: 18px; height: 18px; border: 2px solid #c9d4e8; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.sw { position: relative; display: inline-block; width: 34px; height: 20px; vertical-align: middle; } .sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: #c8cfda; border-radius: 999px; cursor: pointer; transition: .15s; }
.sw span::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; }
.sw input:checked + span { background: var(--ok); } .sw input:checked + span::before { transform: translateX(14px); }

/* Başlangıç */
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.todo-i { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none !important; background: var(--surface); }
.todo-i b { font-size: 24px; line-height: 1.1; } .todo-i span { color: var(--muted); font-size: 12.5px; } .todo-i:hover { border-color: var(--accent); }
.todo-i.bad { border-color: #f3c2bd; background: var(--bad-2); } .todo-i.bad b { color: var(--bad); } .todo-i.warn { border-color: #f7d9a6; background: var(--warn-2); } .todo-i.warn b { color: var(--warn); }
.todo-i.zero b { color: #b4bcc8; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .kpis.two { grid-template-columns: 1fr 1fr; }
.kpis.big { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.kpis.big .kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .kpi small { color: var(--muted); font-weight: 600; } .kpi b { font-size: 20px; letter-spacing: -.01em; } .kpi span { font-size: 12px; color: var(--muted); }
.kpi.hl { border-color: #b9d1ff !important; background: #f3f7ff !important; }
.delta { font-weight: 700; font-size: 12px; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.ring { position: relative; width: 120px; height: 120px; margin: 4px auto 8px; } .ring svg { width: 100%; height: 100%; }
.ring .track { fill: none; stroke: #e6ebf3; stroke-width: 10; } .ring .val { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.ring .rv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .ring .rv b { font-size: 22px; } .ring .rv small { color: var(--muted); font-size: 11px; text-align: center; max-width: 80px; }
.bb { text-align: center; } .bbrow { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.perf-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; } .perf-mini li { display: flex; align-items: center; gap: 8px; } .perf-mini b { margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c6ccd6; flex: none; } .dot.good { background: var(--ok); } .dot.warn { background: #e59a1d; } .dot.bad { background: var(--bad); }

/* Teklif ayrıntısı */
.ph-prod { display: flex; gap: 14px; align-items: center; min-width: 0; } .ph-prod img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.bbhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .bars li { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; } .bars b { text-align: right; }
.bar { height: 8px; background: #e9edf3; border-radius: 999px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.piece { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; } .piece header { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.defects { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; } .thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.defrow { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr auto; gap: 6px; margin-bottom: 6px; }
.hits { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.hits li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; } .hits li > div { flex: 1; min-width: 0; }
.hits img, .hits .noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-2); }
.newp { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.picked { background: var(--accent-2); padding: 8px 12px; border-radius: 8px; }
.catf { position: relative; } .catpick { position: absolute; z-index: 10; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.catpick:empty { display: none; } .catpick button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; cursor: pointer; font: inherit; } .catpick button:hover { background: var(--surface-2); }

/* Excel */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: center; border: 2px dashed #b8c4d8; border-radius: 12px; padding: 34px 16px; text-align: center; cursor: pointer; background: var(--surface-2); }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-2); } .drop input { display: none; }
.help { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.imphead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.errs, .chg { margin: 0; padding-left: 16px; font-size: 12.5px; } .errs li { color: var(--bad); } .chg s { color: var(--muted); }

/* Sipariş ve iade */
address { font-style: normal; line-height: 1.6; }
dl.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; } dl.sum dd { margin: 0; text-align: right; } dl.sum .tot { font-weight: 700; border-top: 1px solid var(--border); padding-top: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); } .timeline li { padding: 4px 0 8px 14px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.ret header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .ret footer { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .ret ul { margin: 0 0 8px; padding-left: 18px; }

/* Mesajlar */
.chatwrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; min-height: 480px; }
.convs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-y: auto; max-height: 70vh; }
.convs a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-bottom: 1px solid #eef1f5; color: var(--text); position: relative; text-decoration: none; }
.convs a.on { background: var(--accent-2); } .convs a .nb { position: absolute; right: 10px; top: 10px; }
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; padding: 12px; min-width: 0; }
.chat header { padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px; max-height: 52vh; }
.msg { max-width: 76%; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); align-self: flex-start; white-space: pre-wrap; word-break: break-word; }
.msg.seller { align-self: flex-end; background: var(--accent-2); } .msg.system { align-self: center; background: none; color: var(--muted); font-size: 12px; }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
#reply { display: flex; gap: 8px; margin-top: 8px; align-items: flex-end; } #reply textarea { flex: 1; }

/* Performans */
.overall { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; background: var(--mute-2); }
.overall.ok { background: var(--ok-2); color: var(--ok); } .overall.warn { background: var(--warn-2); color: var(--warn); } .overall.bad { background: var(--bad-2); color: var(--bad); } .overall span { color: var(--text); }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid #c6ccd6; border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.metric.ok { border-top-color: var(--ok); } .metric.warn { border-top-color: #e59a1d; } .metric.bad { border-top-color: var(--bad); }
.metric header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-weight: 600; } .metric .mv { font-size: 26px; letter-spacing: -.02em; }
.chart { width: 100%; height: auto; display: block; } .chart .grid { stroke: #eef1f5; } .chart .axis { fill: #98a2b3; font-size: 11px; }
.toplist { margin: 0; padding-left: 20px; display: grid; gap: 6px; } .toplist li span { display: block; } .toplist li b { margin-right: 8px; }

/* Modal ve bildirim */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 27, 45, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); } .modal.wide { width: min(760px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); } .modal header h2 { margin: 0; }
.mbody { padding: 16px 18px 4px; } .modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; }
.modal .mono { width: 100%; padding: 10px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 200; }
.toast { background: #10233f; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; transition: opacity .4s, transform .4s; } .toast.err { background: var(--bad); } .toast.out { opacity: 0; transform: translateY(6px); }

/* Giriş */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.auth-side { background: linear-gradient(160deg, #0f1b2d, #17345c); color: #dfe7f5; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.auth-side h1 { color: #fff; font-size: 30px; max-width: 460px; } .auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.brand.big { padding: 0; } .brand.big .logo { width: 44px; height: 44px; font-size: 20px; }
.auth-box { margin: auto; width: min(420px, calc(100% - 32px)); box-shadow: 0 10px 30px rgba(16, 24, 40, .08); } .auth-box.wide { width: min(640px, calc(100% - 32px)); }
.auth-box .langsel { display: flex; justify-content: flex-end; margin-bottom: 10px; } .auth-box .tabs { margin-bottom: 16px; }

/* Dar ekran */
@media (max-width: 1100px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.nav-open .side { transform: none; } body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 27, 45, .4); z-index: 25; }
  .main { margin-left: 0; } .burger { display: inline-block; } .top { padding: 8px 14px; } .user { display: none; }
  #page { padding: 16px 14px 40px; }
  .grid2, .grid2.wide-l, .grid2.wide-r, .grid3 { grid-template-columns: 1fr; }
  .form2 { grid-template-columns: 1fr; } .defrow { grid-template-columns: 1fr 1fr; } .defrow input[name=d_desc] { grid-column: 1 / -1; }
  .kpis { grid-template-columns: 1fr 1fr; } .chatwrap { grid-template-columns: 1fr; } .convs { max-height: 240px; }
  .auth { grid-template-columns: 1fr; } .auth-side { padding: 28px 20px; } .auth-side ul { display: none; }
  h1 { font-size: 21px; }
  /* Tablolar dar ekranda kart görünümü */
  .tbl.offers thead, .tbl.orders thead { display: none; }
  .tbl.offers tr, .tbl.orders tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px; border-bottom: 1px solid var(--border); }
  .tbl.offers td, .tbl.orders td { border: 0; padding: 2px 0; text-align: left !important; }
  .tbl.offers td.prod, .tbl.orders td:nth-child(2), .tbl.orders td:nth-child(5) { grid-column: 1 / -1; }
  .tbl.offers td.ck, .tbl.orders td.ck { position: absolute; } .tbl.offers tr, .tbl.orders tr { position: relative; padding-left: 34px; }
  .tbl .acts { text-align: left !important; grid-column: 1 / -1; } .ln { max-width: 100%; white-space: normal; }
  .bulk { top: 56px; }
}
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } .top-r .langsel select { max-width: 110px; } .who:has(.acctsel) ~ .top-r { gap: 6px; } .who:has(.acctsel) ~ .top-r .langsel select { max-width: 70px; } }
@media print { .side, .top, .actions, .filters, .tabs, .bulk { display: none !important; } .main { margin: 0; } }

/* v2: bildirim merkezi, fiyat önerisi, değerlendirmeler, sıralanır başlıklar */
.bellw { position: relative; } .bell { position: relative; font-size: 18px; } .bell .nb { position: absolute; top: -4px; right: -6px; margin: 0; font-size: 10px; padding: 0 5px; min-width: 16px; }
.notif { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 90vw); max-height: 70vh; overflow-y: auto; padding: 0; z-index: 40; margin: 0; }
.notif header { padding: 10px 14px; border-bottom: 1px solid var(--border); } .notif ul { list-style: none; margin: 0; padding: 0; } .notif p { padding: 14px; margin: 0; }
.notif li a { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-bottom: 1px solid #eef1f5; color: var(--text); text-decoration: none; } .notif li a:hover { background: var(--surface-2); }
.notif li.unread a { background: var(--accent-2); font-weight: 600; }
.advice { color: var(--accent); } .advice b { color: var(--text); } .inl-b { display: inline; padding: 0 0 0 4px; font-size: 12px; margin: 0; }
.advice-box { background: var(--accent-2); border-radius: 8px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.thsort { border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; } .thsort.on { color: var(--accent); }
.bigrate { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; } .bigrate > b { font-size: 40px; letter-spacing: -.02em; } .stars { color: #e3a008; letter-spacing: 1px; }
.cards.one { grid-template-columns: 1fr; } .rev header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.reply { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 6px; } .replyf { display: flex; gap: 8px; align-items: flex-end; } .replyf textarea { flex: 1; }
@media (max-width: 900px) { .replyf { flex-direction: column; align-items: stretch; } }

/* 0.6.0: bol düzeni — başlangıç kutuları, vaka listesi, servis normları, analiz, faturalar */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; color: var(--text); text-decoration: none !important; border-right: 1px solid var(--border); }
.tile:last-child { border-right: 0; } .tile:hover { background: var(--surface-2); } .tile.hot { background: #fff4e6; }
.tile > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .tile b { font-size: 32px; line-height: 1; letter-spacing: -.02em; } .tile span { color: var(--muted); }
.tile .btn { color: var(--accent); margin-top: 6px; } .tile-ic { font-size: 34px; opacity: .85; }
.chipv { display: inline-block; border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 12.5px; background: var(--mute-2); color: var(--muted); white-space: nowrap; }
.chipv.ok { background: var(--ok-2); color: var(--ok); } .chipv.warn { background: var(--warn-2); color: var(--warn); } .chipv.bad { background: var(--bad-2); color: var(--bad); } .chipv.info { background: var(--accent-2); color: var(--accent); }
.revmini { list-style: none; margin: 0 0 8px; padding: 0; } .revmini li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.normgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-bottom: 8px; } .normgrid > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; } .normgrid b { font-size: 12.5px; }
.more.bad { color: var(--bad); display: block; }
.casebar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .casebar .filters { margin: 0; }
.tbl tr.rowlink { cursor: pointer; } .tbl tr.rowlink:hover td { background: var(--surface-2); } .tbl tr.unread td { font-weight: 600; }
.thumbc img, .thumbc .noimg, .thumbi { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.casehead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.chat-only .msgs { max-height: 460px; overflow-y: auto; } #reply { display: grid; gap: 8px; margin-top: 10px; } #reply textarea { width: 100%; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .donut svg { width: 180px; height: 180px; } .donut .dv { font-size: 14px; font-weight: 700; fill: var(--text); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; } .legend.inline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.legend i, .dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.tplc header { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .pre { white-space: pre-wrap; margin: 8px 0 0; }
.sumtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sumtab { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none !important; box-shadow: var(--shadow); }
.sumtab.on { background: var(--accent-2); border-color: var(--accent); }
.spark { width: 100px; height: 24px; display: block; }
.tbl.norms td { vertical-align: middle; } .tbl.norms sup { color: var(--muted); }
details { border-top: 1px solid var(--border); padding: 10px 0; } details summary { cursor: pointer; font-weight: 600; } details[open] summary { margin-bottom: 8px; }
.seg.right { display: flex; width: max-content; margin: 0 0 10px auto; }
.rank { list-style: none; margin: 0; padding: 0; } .rank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rank li > div { flex: 1; min-width: 0; } .rank li > b { white-space: nowrap; } .rk { width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 5px; display: grid; place-items: center; font-size: 11.5px; color: var(--muted); flex: none; }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpi b.sm { font-size: 15px; }
.bar.inline { display: inline-block; width: 90px; vertical-align: middle; }
.nowrap { white-space: nowrap; }
.subrs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.rev footer { margin-top: 6px; }
.ocards { display: grid; gap: 12px; }
.ocard header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.ocard .oc-by { margin-left: auto; font-size: 12.5px; } .ocard.late { border-left: 3px solid var(--bad); }
.oc-b { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.oc-prod { display: flex; gap: 10px; } .oc-prod img, .oc-prod .noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.oc-addr { font-style: normal; font-size: 13px; line-height: 1.45; }
.oc-ship { display: grid; gap: 6px; } .oc-ship input { width: 100%; }
.ocard footer { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; } .tile { border-right: 0; border-bottom: 1px solid var(--border); }
  .sumtabs { grid-template-columns: 1fr 1fr; } .terms { grid-template-columns: 1fr 1fr; } .kpis.five { grid-template-columns: 1fr 1fr; }
  .oc-b { grid-template-columns: 1fr; } .ocard .oc-by { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) { .terms, .sumtabs, .kpis.five { grid-template-columns: 1fr; } .donut svg { width: 140px; height: 140px; } }

/* 0.7.0: promosyonlar ve ödül programı */
.mb { margin-bottom: 12px; }
.promo-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff3c4; border-color: #f3df8c; }
.promo-hero h2 { font-size: 20px; margin-bottom: 4px; } .promo-hero p { margin-bottom: 10px; }
.hero-ic { font-size: 40px; font-weight: 800; color: #c0362c; background: #fff; border-radius: 50%; width: 92px; height: 92px; display: grid; place-items: center; flex: none; transform: rotate(-12deg); box-shadow: var(--shadow); }
.reward-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 16px; } .reward-head h1 .badge { vertical-align: middle; font-size: 12px; }
.rw-next { background: #0f2a8a; color: #fff; border-radius: 12px; padding: 14px 16px; min-width: 210px; display: grid; gap: 8px; text-align: center; }
.rw-days { background: #fff; color: var(--text); border-radius: 8px; padding: 8px; display: grid; } .rw-days b { font-size: 22px; } .rw-next small { opacity: .85; }
.rw-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.rw-scores > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .step { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.sn { width: 30px; height: 30px; border-radius: 8px; background: #0f2a8a; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; } .step b { display: block; color: var(--accent); }
.rw-track { position: relative; height: 120px; margin: 26px 24px 8px; } .rw-bar { position: absolute; left: 0; right: 0; top: 54px; height: 6px; background: var(--mute-2); border-radius: 3px; }
.rw-bar i { display: block; height: 100%; background: #0f2a8a; border-radius: 3px; }
.rw-goal { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; text-align: center; width: 120px; }
.rw-goal span { width: 44px; height: 40px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 18px; }
.rw-goal.hit span { background: #c9d6ff; border-color: #8fa6ff; } .rw-goal b { margin-top: 18px; background: #0f2a8a; color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 11.5px; }
@media (max-width: 900px) { .reward-head { flex-direction: column; } .rw-scores, .steps { grid-template-columns: 1fr 1fr; } .rw-goal { width: 80px; } }
@media (max-width: 480px) { .rw-scores, .steps { grid-template-columns: 1fr; } .promo-hero { flex-direction: column; align-items: flex-start; } }

/* 0.8.0: reklam */
.ads-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(135deg, #e8eeff, #fff); }
.hero-ic.ads { color: #1f3cff; transform: none; font-size: 36px; }

/* Kargo profilleri: ülke satırları */
.shp-row { display: grid; grid-template-columns: 5.5rem 1fr 1fr 6rem; gap: .5rem; margin-bottom: .4rem; }
.shp-head { font-size: .8rem; color: var(--muted, #6b7280); }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .shp-row { grid-template-columns: 4rem 1fr 1fr 4.5rem; } }

/* Satıcı sözleşmesi (pages-terms.js) */
.terms-doc { max-height: 60vh; overflow: auto; padding: 4px 12px 4px 0; line-height: 1.55; }
.terms-doc h2 { font-size: 1.05rem; margin: 18px 0 6px; } .terms-doc ol, .terms-doc ul { padding-left: 22px; } .terms-doc li { margin: 4px 0; }
.terms-check { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 4px; font-weight: 500; } .terms-check input { margin-top: 4px; }
.terms-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }

/* İlan kuralları */
.lr-rules { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.lr-rules li { line-height: 1.45; }
.lr-v { margin: .15rem 0; }
.lr-v .badge { margin-right: .3rem; }
