/* Kılçık arayüzü — NewGUI tasarım dili: lacivert kenar çubuğu, kompakt kurumsal paneller.
   Harici font, kütüphane veya CDN yok; tamamen çevrimdışı çalışır. */

:root {
  --navy-950: #092237;
  --navy-900: #102f49;
  --navy-800: #173b59;
  --navy-700: #234c6e;
  --blue: #168bd2;
  --blue-dark: #0878bb;
  --blue-soft: #e8f3fb;
  --bg: #f3f6f9;
  --panel: #fff;
  --panel-alt: #f8fafc;
  --sidebar: #0e2d45;
  --border: #cdd8e2;
  --border-light: #e1e8ee;
  --text: #12283d;
  --muted: #647789;
  --faint: #8fa0b0;
  --success: #09875e;
  --success-soft: #e3f4ed;
  --warning: #b97b00;
  --warning-soft: #fdf3dc;
  --danger: #cf3f45;
  --danger-soft: #fbe9ea;
  --info: #167db8;
  --info-soft: #e5f2fa;
  --amazon: #e88b00;
  --amazon-soft: #fff3e0;
  --shadow: 0 2px 8px rgba(16, 47, 73, .07);
  --shadow-lg: 0 10px 30px rgba(9, 34, 55, .18);
  --radius: 5px;
  --control-h: 34px;
  --row-h: 44px;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}

body.dense { --row-h: 34px; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 13px/1.4 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
code { font-family: var(--mono); font-size: 12px; background: var(--panel-alt); border: 1px solid var(--border-light); border-radius: 3px; padding: 0 4px; }
[hidden] { display: none !important; }
.sprite { display: none; }

.ico {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- kabuk ------------------------------------------------------------ */

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

.sidebar {
  width: 228px; flex: none;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--sidebar) 45%, var(--navy-950) 100%);
  color: #d7e4ef;
  border-right: 1px solid var(--navy-950);
}
.brand {
  height: 68px; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
  width: 34px; height: 34px; padding: 4px;
  fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.brand-name { display: block; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.brand small { display: block; font-size: 11px; color: #8fb0c9; margin-top: -1px; }

.nav-caption {
  padding: 18px 20px 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: #6f92ad;
}
.nav-group { display: flex; flex-direction: column; }
.nav-item {
  height: 38px;
  display: flex; align-items: center; gap: 11px;
  padding: 0 16px 0 17px;
  border: 0; border-left: 3px solid transparent;
  background: transparent; color: #c5d6e4;
  text-align: left; white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-item .ico { color: #8db3d0; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active {
  background: rgba(22, 139, 210, .19);
  border-left-color: #32a7ed;
  color: #fff; font-weight: 600;
}
.nav-item.active .ico { color: #5cc0ff; }
.nav-count {
  margin-left: auto; min-width: 22px; padding: 0 6px;
  font-size: 11px; line-height: 18px; text-align: center;
  background: rgba(255, 255, 255, .1); border-radius: 9px; color: #d7e4ef;
}
.nav-item.soon { color: #7f9cb4; }
.nav-item.soon .ico { color: #6a8aa3; }
.soon-tag {
  margin-left: auto; padding: 0 6px;
  font-size: 10px; line-height: 16px; letter-spacing: .3px;
  color: #ffc46b; border: 1px solid rgba(255, 196, 107, .4); border-radius: 3px;
}
.sidebar-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-footer {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 12px 14px; padding: 10px 12px;
  background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--radius);
}
.sidebar-footer strong { display: block; font-size: 12px; color: #fff; font-weight: 600; }
.sidebar-footer small { display: block; font-size: 11px; color: #7f9cb4; }

.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--faint); }
.status-dot.ok { background: #19c48a; box-shadow: 0 0 0 3px rgba(25, 196, 138, .18); }
.status-dot.warn { background: #f0a400; box-shadow: 0 0 0 3px rgba(240, 164, 0, .18); }
.status-dot.bad { background: #ef5a60; box-shadow: 0 0 0 3px rgba(239, 90, 96, .18); }

.workarea { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.busy-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 5;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  opacity: 0; transition: opacity .15s;
}
.busy-bar.on { opacity: 1; animation: busy 1s linear infinite; }
@keyframes busy { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.topbar {
  height: 56px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 22px;
  background: var(--panel); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(16, 47, 73, .03);
}
.topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h1 { font-size: 17px; font-weight: 600; white-space: nowrap; }
.env-badge {
  padding: 2px 8px; border-radius: 3px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
}
.env-badge.demo { color: var(--warning); background: var(--warning-soft); border: 1px solid #efd9a6; }
.env-badge.live { color: var(--success); background: var(--success-soft); border: 1px solid #b6e0cf; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.context { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.context b { color: var(--text); font-weight: 600; }
.divider { width: 1px; height: 16px; background: var(--border); }
.token-pill {
  height: 30px; display: flex; align-items: center; gap: 8px;
  padding: 0 11px; font-size: 12px;
  background: var(--panel-alt); border: 1px solid var(--border); border-radius: 15px;
}
.token-pill:hover { border-color: var(--blue); }

main { flex: 1; overflow: auto; padding: 20px 22px 28px; }
.page { display: none; max-width: 1560px; margin: 0 auto; }
.page.active { display: block; animation: fade .14s ease-out; }
@keyframes fade { from { opacity: .4; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* ---- düğmeler ve alanlar ------------------------------------------------ */

.btn {
  height: var(--control-h);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 14px; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn.compact { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue-dark); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { background: var(--panel); color: var(--navy-800); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue-dark); border-color: transparent; }
.btn.ghost:hover { background: var(--blue-soft); }
.btn:disabled { opacity: .55; cursor: default; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, .nav-item:focus-visible { outline: 2px solid #5cc0ff; outline-offset: 1px; }

.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); color: var(--navy-800);
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue-dark); }
.icon-btn.xs { width: 26px; height: 26px; }
.icon-btn.xs .ico { width: 14px; height: 14px; }
.text-btn { border: 0; background: none; color: var(--blue-dark); font-weight: 600; font-size: 12.5px; padding: 2px 0; }
.text-btn:hover { text-decoration: underline; }
.link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: none; padding: 0; color: var(--blue-dark); font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }
.link-btn .ico { width: 14px; height: 14px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span:first-child { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.field.grow { flex: 1; }
.field.narrow { width: 110px; }
input, select {
  height: var(--control-h); width: 100%;
  padding: 0 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
select { padding-right: 6px; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 139, 210, .14); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(207, 63, 69, .12); }
input::placeholder { color: #a3b1be; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon .ico { position: absolute; left: 10px; color: var(--faint); pointer-events: none; }
.input-icon input { padding-left: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-hint { font-size: 11.5px; color: var(--muted); margin: -3px 0 2px; min-height: 15px; }

/* ---- paneller ----------------------------------------------------------- */

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.panel-head h3 { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.panel-head h3 .ico { color: var(--blue); }
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 1px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.page-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 16px;
}
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; color: var(--blue); margin-bottom: 3px; }
.page-heading h2 { font-size: 21px; font-weight: 600; letter-spacing: -.2px; }
.page-heading p { color: var(--muted); margin-top: 2px; }
.page-heading p b { color: var(--text); }

.quick-search {
  display: flex; align-items: center; gap: 8px; width: 460px; max-width: 46%;
  height: 40px; padding: 0 5px 0 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.quick-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 139, 210, .14); }
.quick-search > .ico { color: var(--faint); }
.quick-search input { border: 0; box-shadow: none; padding: 0; height: 30px; }
kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  padding: 1px 5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 3px; background: var(--panel-alt);
  white-space: nowrap;
}
.heading-filter { width: 340px; }

/* ---- rozetler ----------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 3px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.badge.healthy { color: var(--success); background: var(--success-soft); border-color: #bfe3d4; }
.badge.warning { color: var(--warning); background: var(--warning-soft); border-color: #efdcae; }
.badge.critical { color: var(--danger); background: var(--danger-soft); border-color: #f1c6c8; }
.badge.info { color: var(--info); background: var(--info-soft); border-color: #c4e0f1; }
.badge.neutral { color: var(--muted); background: var(--panel-alt); border-color: var(--border-light); }
.badge.amazon { color: #a35f00; background: var(--amazon-soft); border-color: #f6d4a2; }
.badge .ico { width: 12px; height: 12px; }
.badge-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.legend { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }

/* ---- genel bakış -------------------------------------------------------- */

.status-strip { margin-bottom: 16px; }
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius); border: 1px solid;
  margin-bottom: 16px;
}
.alert > .ico { margin-top: 1px; }
.alert.info { background: var(--info-soft); border-color: #bcdcf0; color: #0d5f8e; }
.alert.warning { background: var(--warning-soft); border-color: #edd6a0; color: #845800; }
.alert.success { background: var(--success-soft); border-color: #b9e0cf; color: #076646; }
.alert.danger { background: var(--danger-soft); border-color: #f0c2c4; color: #9f2a30; }
.alert b { font-weight: 600; }
.alert .grow { flex: 1; }
.alert .btn { margin-left: auto; }
.status-strip .alert { margin-bottom: 0; align-items: center; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi {
  position: relative; padding: 14px 16px 13px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.kpi.success::before { background: var(--success); }
.kpi.warning::before { background: var(--warning); }
.kpi.danger::before { background: var(--danger); }
.kpi.amazon::before { background: var(--amazon); }
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.kpi-label .ico { width: 14px; height: 14px; color: var(--faint); }
.kpi-value { font-size: 24px; font-weight: 600; margin-top: 4px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.kpi-value.sm { font-size: 16px; margin-top: 8px; }
.kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.workflow { list-style: none; margin: 0; padding: 6px 16px 12px; }
.workflow li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border-light); }
.workflow .grow { flex: 1; min-width: 0; }
.workflow li:last-child { border-bottom: 0; }
.wf-no {
  width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 11.5px; font-weight: 700;
  background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #c4e0f1;
}
.workflow li.amazon .wf-no { background: var(--amazon-soft); color: #a35f00; border-color: #f6d4a2; }
.workflow li.done .wf-no { background: var(--success); color: #fff; border-color: var(--success); }
.workflow b { display: block; font-weight: 600; }
.workflow small { display: block; color: var(--muted); font-size: 12px; }
.workflow .text-btn { font-size: 12px; }

.checklist { list-style: none; margin: 0; padding: 8px 16px 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.check {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--border); color: transparent;
}
.check .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.check.ok { background: var(--success); border-color: var(--success); color: #fff; }
.check.warn { border-color: var(--warning); color: var(--warning); }
.checklist b { display: block; font-weight: 600; }
.checklist small { display: block; color: var(--muted); font-size: 12px; }
.checklist.numbered { counter-reset: step; }
.checklist.numbered li { counter-increment: step; }
.checklist.numbered .check::before { content: counter(step); font-size: 10.5px; font-weight: 700; color: var(--muted); }
.checklist.numbered .check.ok::before { content: none; }

/* ---- tablolar ----------------------------------------------------------- */

.filter-bar { display: flex; align-items: flex-end; gap: 12px; padding: 12px 16px; margin-bottom: 12px; }
.filter-bar .field:not(.grow):not(.narrow) { width: 150px; }
.hint-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 12px; font-size: 12px; color: var(--muted); }
.chip {
  height: 24px; padding: 0 10px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border); color: var(--navy-800); font-size: 12px;
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }

.table-panel { overflow: hidden; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th {
  position: sticky; top: 0; z-index: 1;
  height: 34px; padding: 0 12px;
  background: #f4f7fa; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--muted);
  text-align: left; white-space: nowrap;
}
td { height: var(--row-h); padding: 4px 12px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr:hover td { background: #f6fafd; }
tbody tr.selected td { background: #eaf4fb; }
tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.num { text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.cell-title { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.cell-title b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-title small { display: block; color: var(--muted); font-size: 11.5px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.price { font-weight: 600; }
.price small { font-weight: 400; color: var(--muted); }

.thumb {
  width: 38px; height: 38px; flex: none; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light);
  font-size: 13px; font-weight: 700; color: #fff;
}
body.dense .thumb { width: 28px; height: 28px; font-size: 11px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px; border-top: 1px solid var(--border-light); background: #fbfcfd;
  font-size: 12px; color: var(--muted);
}
.pager:empty { display: none; }
.pager-btns { display: flex; align-items: center; gap: 6px; }
.pager-btns span { min-width: 76px; text-align: center; color: var(--text); font-weight: 600; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 56px 20px; text-align: center; color: var(--muted);
}
.empty-state > .ico { width: 36px; height: 36px; stroke-width: 1.3; color: #a9bccc; margin-bottom: 4px; }
.empty-state h3 { font-size: 15px; color: var(--text); font-weight: 600; }
.empty-state .btn { margin-top: 8px; }
.page > .empty-state { background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius); }
.table-wrap .empty-state { padding: 36px 20px; }

.skeleton td { height: var(--row-h); }
.skeleton span {
  display: block; height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, #edf2f6 25%, #f6f9fb 50%, #edf2f6 75%); background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- ürün detayı -------------------------------------------------------- */

.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.detail-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.detail-thumb .thumb { width: 72px; height: 72px; font-size: 22px; border-radius: 6px; }
.detail-title { flex: 1; min-width: 0; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.title-row h2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); margin-top: 6px; font-size: 12px; }
.meta b { color: var(--text); font-weight: 600; }
.detail-actions { display: flex; gap: 8px; flex: none; }

.fact-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.fact { padding: 10px 14px; border-right: 1px solid var(--border-light); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.fact b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fact small { color: var(--muted); font-size: 11.5px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.tab-host { min-width: 0; overflow: hidden; }
.tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--border); background: #fbfcfd; }
.tabs button {
  height: 40px; padding: 0 12px; border: 0; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-weight: 600;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--blue-dark); border-bottom-color: var(--blue); }
.tab-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; font-size: 10.5px; line-height: 16px; border-radius: 8px; background: var(--border-light); color: var(--muted); }
.tabs button.active .tab-count { background: var(--blue-soft); color: var(--blue-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tier-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tier {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 74px;
  padding: 3px 7px; border-radius: 3px; border: 1px solid var(--border-light); background: var(--panel-alt);
  line-height: 1.25;
}
.tier small { font-size: 10.5px; color: var(--muted); }
.tier b { font-size: 12.5px; font-weight: 600; }
.tier.hit { background: var(--blue-soft); border-color: #a9d3ef; }
.tier.hit b { color: var(--blue-dark); }
.attr { display: inline-block; padding: 0 6px; margin: 1px 3px 1px 0; font-size: 11.5px; line-height: 18px; border-radius: 3px; background: var(--panel-alt); border: 1px solid var(--border-light); }
.attr i { font-style: normal; color: var(--muted); }

.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; padding: 6px 16px 14px; }
.kv-grid h4 { grid-column: 1 / -1; font-size: 11px; letter-spacing: .8px; color: var(--blue); font-weight: 700; padding: 12px 0 4px; border-bottom: 1px solid var(--border-light); }
.kv { margin: 0; padding: 6px 16px 12px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 20px; }
.kv dt, .kv-grid dt { color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.kv dd, .kv-grid dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kv-grid dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 16px; align-content: start; }
.kv-grid .wide { grid-column: 1 / -1; }

.raw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border-light); font-size: 12px; color: var(--muted); }
.raw-head b { color: var(--text); }
pre.json {
  margin: 0; padding: 12px 16px; max-height: 560px; overflow: auto;
  font: 12px/1.5 var(--mono); background: #0f2638; color: #d4e2ee; white-space: pre;
}
.json .k { color: #7cc4f8; }
.json .s { color: #a5d6a7; }
.json .n { color: #ffcc80; }
.json .b { color: #f48fb1; }

.description {
  padding: 12px 16px 16px; max-height: 300px; overflow: auto; color: #34495c;
  border-top: 1px solid var(--border-light);
}

/* ---- maliyet paneli ----------------------------------------------------- */

.calc-panel { position: sticky; top: 0; max-height: calc(100vh - 56px - 40px); overflow-y: auto; overscroll-behavior: contain; }
.calc-form { display: flex; flex-direction: column; gap: 9px; padding: 4px 16px 12px; }
.calc-form input, .calc-form select { height: 30px; font-variant-numeric: tabular-nums; }
.calc-section {
  margin-top: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--border-light);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: var(--blue);
}
.calc-section:first-child { margin-top: 6px; }
.calc-form .field:has([data-key="sale_price"]) input { border-color: #f1c98c; background: #fffbf4; }
.calc-result { border-top: 1px solid var(--border); }
.calc-verdict { border-bottom: 1px solid var(--border-light); }
.calc-verdict:empty { display: none; }
.calc-verdict .verdict { border-bottom: 0; }
.calc-result:empty { display: none; }
.breakdown-title { margin: 10px 16px 2px; }
.sku-sub { display: block; color: var(--muted); font-size: 11.5px; }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-light); border-bottom: 1px solid var(--border-light); }
.verdict > div { background: var(--panel); padding: 10px 14px; }
.verdict span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.verdict b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.verdict .pos { color: var(--success); }
.verdict .neg { color: var(--danger); }
.verdict .hero { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.verdict .hero b { font-size: 24px; }
.breakdown { width: 100%; font-size: 12.5px; }
.breakdown td { height: 27px; padding: 2px 16px; border-bottom: 1px solid #eef2f5; }
.breakdown tr:hover td { background: none; }
.breakdown .sub td { color: var(--muted); }
.breakdown .sub td:first-child { padding-left: 28px; }
.breakdown .total td { font-weight: 700; border-top: 1px solid var(--border); background: var(--panel-alt); }
.breakdown .minus td:last-child::before { content: "− "; color: var(--faint); }
.calc-empty { padding: 18px 16px; color: var(--muted); font-size: 12.5px; display: flex; gap: 9px; align-items: flex-start; }
.calc-empty .ico { color: var(--amazon); margin-top: 1px; }
.calc-error { padding: 12px 16px; color: var(--danger); font-size: 12.5px; }
.footnote { padding: 10px 16px 14px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--border-light); }

/* ---- benzer ürünler ----------------------------------------------------- */

.source-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow);
}
.source-card .grow { flex: 1; min-width: 0; }
.source-card b { font-weight: 600; }
.source-card small { display: block; color: var(--muted); font-size: 12px; }
.delta { font-size: 11.5px; font-weight: 600; }
.delta.down { color: var(--success); }
.delta.up { color: var(--danger); }

/* ---- bağlantı ----------------------------------------------------------- */

.conn-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.step-panel { display: flex; gap: 14px; padding: 16px; }
.step-no {
  width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 13px;
}
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.step-body h3 { font-size: 14px; font-weight: 600; }
.step-body p { color: var(--muted); }
.inline-form { display: flex; align-items: flex-end; gap: 10px; width: 100%; }
.output-field {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 6px 6px 10px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.output-field code { flex: 1; min-width: 0; border: 0; background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.settings-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.pref-list { padding: 4px 16px 10px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.pref:last-child { border-bottom: 0; }
.pref b { display: block; font-weight: 600; }
.pref small { display: block; color: var(--muted); font-size: 12px; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 36px; height: 20px; padding: 0; border-radius: 10px;
  background: #c4d0da; border: 0; position: relative; cursor: pointer; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s;
}
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(16px); }
.switch:focus { box-shadow: 0 0 0 3px rgba(22, 139, 210, .2); }

/* ---- amazon (yakında) --------------------------------------------------- */

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roadmap .panel { padding: 16px; border-top: 3px solid var(--amazon); }
.roadmap h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.roadmap p { color: var(--muted); margin-bottom: 10px; }
.roadmap ul { margin: 0; padding-left: 17px; color: #34495c; }
.roadmap li { padding: 2px 0; }
.roadmap code { font-size: 11.5px; }

/* ---- bildirimler -------------------------------------------------------- */

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; width: 380px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px 11px 14px; border-radius: var(--radius);
  background: var(--navy-900); color: #e6eef5; box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--blue);
  animation: toast-in .18s ease-out;
}
.toast.success { border-left-color: #19c48a; }
.toast.error { border-left-color: #ef5a60; }
.toast.warning { border-left-color: #f0a400; }
.toast .ico { margin-top: 1px; }
.toast.success .ico { color: #19c48a; }
.toast.error .ico { color: #ef5a60; }
.toast.warning .ico { color: #f0a400; }
.toast-body { flex: 1; min-width: 0; }
.toast-body b { display: block; font-weight: 600; color: #fff; }
.toast-body small { display: block; color: #9fb7ca; font-size: 12px; overflow-wrap: anywhere; }
.toast button { border: 0; background: none; color: #7f9cb4; padding: 0; }
.toast button:hover { color: #fff; }
.toast.out { opacity: 0; transform: translateX(10px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- dar pencere -------------------------------------------------------- */

@media (max-width: 1360px) {
  .context { display: none; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .fact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(3n) { border-right: 0; }
  .fact:nth-child(-n+3) { border-bottom: 1px solid var(--border-light); }
}
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .conn-layout, .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-panel { position: static; max-height: none; overflow: visible; }
  .roadmap { grid-template-columns: minmax(0, 1fr); }
  .detail-header { flex-wrap: wrap; }
}

/* ---- GTİP ve vergiler --------------------------------------------------- */

.nav-count.warn { background: rgba(232, 139, 0, .28); color: #ffd79a; }
.verdict .wide { grid-column: 1 / -1; }
.verdict .wide b small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.breakdown-title small { margin-left: 6px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.breakdown small { color: var(--faint); }
.breakdown .warn td { color: var(--warning); font-weight: 600; }

.tariff-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 11px; background: var(--panel-alt);
  border: 1px solid var(--border-light); border-radius: var(--radius);
}
.tariff-box:empty { display: none; }
.tariff-current { display: flex; align-items: flex-start; gap: 8px; }
.tariff-current .grow { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.tariff-current small { width: 100%; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--muted); }
.tariff-current b.mono { font-size: 13.5px; color: var(--navy-900); }
.tariff-current.empty b { color: var(--warning); }
.tariff-desc { font-size: 12px; color: var(--muted); }
.tariff-source { font-size: 11px; color: var(--faint); align-self: center; }
.tariff-assign { display: flex; gap: 6px; }
.tariff-assign select { flex: 1; min-width: 0; }
.tariff-box .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.tariff-box .chip { font-family: var(--mono); font-size: 11.5px; height: 22px; }
.tariff-links { display: flex; justify-content: space-between; gap: 10px; }
.tariff-links .text-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.tariff-links .ico { width: 13px; height: 13px; }
.tariff-diff {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  font-size: 11.5px; color: #7a5200; background: var(--warning-soft); border-radius: 4px;
}
.tariff-diff[hidden] { display: none; }

.tax-block { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--border-light); }
.tax-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.tax-origin { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 180px; }
.tax-origin span { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.tax-origin select { flex: 1; min-width: 0; }
.tax-meta { font-size: 11px; color: var(--faint); }
.tax-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tax-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; }
.tax-line .tax-name { min-width: 120px; color: var(--navy-800); }
.tax-line .tax-value { font-family: var(--mono); min-width: 64px; }
.tax-line .badge { padding-top: 0; padding-bottom: 0; font-size: 10.5px; }
.tax-src { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 8px; padding-left: 2px; font-size: 11px; color: var(--muted); }
.tax-src .text-btn { font-size: 11px; text-align: left; }
.tax-src small { color: var(--faint); }
.tax-line.from-default .tax-value, .tax-line.from-default .tax-name,
.tax-line.from-other_origin .tax-value, .tax-line.from-other_origin .tax-name { color: var(--muted); }
.tax-warnings { list-style: none; margin: 0; padding: 5px 8px; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #7a5200; background: var(--warning-soft); border-radius: 4px; }
.tax-warnings li { display: flex; gap: 6px; align-items: flex-start; }
.tax-warnings .ico { width: 13px; height: 13px; flex: none; margin-top: 2px; }

.measure-block { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 2px; border-top: 1px dashed var(--border-light); }
.measure-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--navy-800); }
.measure-head .badge-row { gap: 4px; flex: 1; }
.measure-head .badge, .measure .badge { padding-top: 0; padding-bottom: 0; font-size: 10.5px; }
.measure-head .text-btn { font-size: 11px; }
.measure-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.measure { display: flex; align-items: flex-start; gap: 8px; padding: 5px 8px; font-size: 12px; border-radius: 4px; border-left: 3px solid var(--border-light); background: var(--panel-alt); }
.measure.sev-blocking { border-left-color: var(--danger); background: var(--danger-soft); }
.measure.sev-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.measure.sev-info { border-left-color: var(--info); }
.measure > .badge { flex: none; margin-top: 1px; }
.measure .grow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.measure .grow > b { color: var(--navy-800); }
.measure-desc { flex-basis: 100%; color: var(--text); }
.measure .tax-src { padding-left: 0; }
.measure-empty { margin: 0; font-size: 11.5px; color: var(--muted); }
.measure-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.measure-notes li { display: flex; gap: 6px; align-items: flex-start; }
.measure-notes .ico { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.rules-panel td.measure-text { min-width: 200px; max-width: 300px; font-size: 12px; }
.rules-panel td.measure-text small { white-space: normal; }

.rules-panel { margin-top: 16px; }
.rules-panel .panel-head { flex-wrap: wrap; gap: 10px; }
.rules-panel td small { display: block; color: var(--muted); font-size: 11.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rules-panel td.rule-source { min-width: 160px; max-width: 280px; font-size: 12px; }
.rules-panel td.rule-source .text-btn { text-align: left; font-size: 12px; }
.rules-panel td.rule-valid { font-size: 12px; white-space: nowrap; }
.rules-panel .icon-btn { width: 26px; height: 26px; }
.rules-help { padding: 0 16px 14px; }
.rules-help p { margin: 6px 0 0; }
.tariff-diff .grow { flex: 1; }
.tariff-diff .ico { width: 14px; height: 14px; flex: none; }

.calc-more { border: 1px solid var(--border-light); border-radius: var(--radius); }
.calc-more summary {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  font-size: 12px; font-weight: 600; color: var(--navy-800); cursor: pointer; list-style: none;
}
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more summary::before { content: "▸"; color: var(--faint); transition: transform .12s; }
.calc-more[open] summary::before { transform: rotate(90deg); }
.calc-more[open] summary { border-bottom: 1px solid var(--border-light); }
.more-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--warning); }
.calc-more-body { display: flex; flex-direction: column; gap: 9px; padding: 10px; }
.calc-more-body .field-hint { margin: 0; }

.tariff-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.tariff-layout .panel-head { flex-wrap: wrap; gap: 10px; }
.tariff-layout td small { display: block; color: var(--muted); font-size: 11.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tariff-editor { position: sticky; top: 0; }
.tariff-layout td.tariff-status small { max-width: none; margin-top: 3px; color: var(--faint); }
.tariff-layout td .badge-row { flex-wrap: wrap; }
.tariff-editor .calc-form textarea { min-height: 52px; }
.import-report { margin: 0 16px 12px; }
.import-report[hidden] { display: none; }
.import-report ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.import-report .icon-btn { width: 26px; height: 26px; flex: none; }

textarea {
  width: 100%; padding: 6px 10px; resize: vertical;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 139, 210, .14); }
input[type="checkbox"] { width: 15px; height: 15px; padding: 0; accent-color: var(--blue); }
.check-field { display: flex; align-items: center; gap: 7px; align-self: end; height: 30px; font-size: 12px; color: var(--navy-800); cursor: pointer; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.form-actions .grow { flex: 1; }
.form-error { padding: 7px 10px; font-size: 12px; color: #9f2a30; background: var(--danger-soft); border-radius: 4px; }
.form-error[hidden] { display: none; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }

@media (max-width: 1200px) {
  .tariff-layout { grid-template-columns: minmax(0, 1fr); }
  .tariff-editor { position: static; }
}

/* ---- Amazon.com.tr: fiyat ve rakip -------------------------------------- */

.source-card.amazon { border-left-color: var(--amazon); flex-wrap: wrap; }
.source-card.amazon .grow { flex: 1 1 280px; }
.source-card.amazon select { width: 100%; margin-top: 3px; }
.source-card.amazon.empty { border-left-color: var(--border); }
.context-note { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; flex: 1 1 260px; font-size: 12px; }
.context-note .chip { font-family: var(--mono); font-size: 11.5px; height: 22px; }
.thumb.ghost { background: var(--panel-alt); color: var(--faint); border-style: dashed; }
.thumb.ghost .ico { width: 16px; height: 16px; }
.chip.muted { display: inline-flex; align-items: center; color: var(--faint); background: var(--panel-alt); cursor: default; }
.chip.muted:hover { border-color: var(--border); color: var(--faint); }

.market-table td small.sub, #amzOffers td small.sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.market-table .cell-title small.mono { font-family: var(--mono); }
.amazon-header { border-left: 3px solid var(--amazon); }
.amazon-header .badge .ico, .market-table .badge .ico { width: 11px; height: 11px; margin-right: 3px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel); }
.segmented label + label span { border-left: 1px solid var(--border); }
.segmented input:checked + span { background: var(--amazon-soft); color: #a35f00; }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
#amzFeeShipping:disabled { background: var(--panel-alt); color: var(--faint); }

#amzFeeResult { transition: opacity .15s; }
#amzFeeResult.stale { opacity: .5; }
.fee-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 16px 0; padding: 8px 10px; border-radius: 4px; font-size: 11.5px; }
.fee-note .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.fee-note.warning { background: var(--warning-soft); color: #7a5200; }
.fee-note.info { background: var(--info-soft); color: #0d5f8e; }
.fee-actions { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; }
.fee-actions small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.amazon-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 11px; background: var(--amazon-soft);
  border: 1px solid #f6d4a2; border-radius: var(--radius);
}
.amazon-box:empty { display: none; }
.amazon-box .field-hint { margin: 0; min-height: 0; }
.amazon-box .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.amazon-box .chip { height: 22px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.amazon-source { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: #7a5200; }
.amazon-source .grow { flex: 1; min-width: 0; }
.amazon-source > .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--success); }
.amazon-source .badge { margin-left: 4px; }

/* ---- tarife cetveli (TGTC) ---------------------------------------------- */

.tgtc-panel { margin-bottom: 16px; }
.tgtc-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px 4px; }
.tgtc-head .grow { flex: 1; min-width: 0; }
.tgtc-head h3 { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tgtc-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tgtc-head p.error { color: var(--danger); }
.tgtc-icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--blue-soft); color: var(--blue);
}
.tgtc-import { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; }
.tgtc-import .grow { flex: 1; min-width: 0; }
.tgtc-import input { width: 100%; font-family: var(--mono); font-size: 12px; }
.tgtc-import [hidden] { display: none; }

.suggest-wrap { position: relative; }
.suggest-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 3px);
  max-height: 340px; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.suggest-list[hidden] { display: none; }
.suggest-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px;
  width: 100%; padding: 7px 10px; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--border-light); color: var(--text); font-size: 12px; cursor: pointer;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.active { background: var(--blue-soft); }
.suggest-item b.mono { color: var(--navy-900); white-space: nowrap; }
.suggest-item .s-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item .s-meta { font-size: 11px; color: var(--faint); white-space: nowrap; }
.suggest-item small { grid-column: 2 / 4; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-empty { padding: 10px 12px; font-size: 12px; color: var(--muted); }
.suggest-empty b { color: var(--text); font-weight: 600; }

.gtip-note { margin-top: -2px; line-height: 1.45; }
.gtip-note:empty { display: none; }
.gtip-note b { color: var(--text); font-weight: 600; }
.gtip-note.warn { color: var(--warning); }
.gtip-note.warn b { color: var(--warning); }

.tariff-search .input-icon input { width: 100%; }
.tariff-catalog { width: 100%; font-size: 11.5px; color: var(--muted); }
.tariff-catalog b { font-weight: 600; color: var(--navy-800); }

/* İthalat rejimi ekleri */
.regime-panel { margin-bottom: 16px; }
.regime-form { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 12px; }
.regime-form textarea { width: 100%; font-size: 12px; resize: vertical; }
.regime-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; }
.regime-row .grow { flex: 1; min-width: 180px; }
.regime-row .check-field { align-self: center; height: auto; }
.regime-row [hidden] { display: none; }
.regime-sources summary, .regime-list summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--navy-800); }
.regime-source { display: grid; grid-template-columns: 110px 2fr 140px 120px 2fr; gap: 8px; align-items: end; margin-top: 10px; }
.regime-source > b { grid-column: 1 / -1; font-size: 12px; }
.regime-result { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.regime-result[hidden] { display: none; }
.regime-result h4 { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.regime-result .alert ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }
.regime-result td small { display: block; color: var(--muted); font-size: 11.5px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regime-result td .badge-row .badge { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regime-result td.regime-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regime-result tr.same td { color: var(--muted); }
.regime-result td.num { white-space: nowrap; }
.regime-result td.num small { display: inline; }
.regime-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.regime-summary .grow { flex: 1; }
.regime-stale { color: var(--warning); font-size: 12px; }
.regime-sources-list { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.regime-sources-list .text-btn { font-size: 12px; text-align: left; }
.regime-list ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; max-height: 240px; overflow: auto; }
.regime-more { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .regime-source { grid-template-columns: 1fr 1fr; } }

/* Fırsat sıralaması */
.rank-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; padding: 8px 16px 14px; align-items: end; }
.rank-weights { display: flex; align-items: flex-end; gap: 8px; grid-column: span 2; }
.rank-weights > span { font-size: 11.5px; font-weight: 600; color: var(--muted); align-self: center; }
.rank-weights label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rank-weights input { width: 64px; }
.rank-actions { display: flex; gap: 8px; justify-content: flex-end; grid-column: -2 / -1; }
.rank-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.rank-summary:empty { display: none; }
.rank-table td { vertical-align: top; }
.rank-table td small { display: block; }
.rank-pos { font-weight: 700; color: var(--muted); }
.rank-score { display: flex; align-items: center; gap: 8px; }
.rank-score b { font-size: 20px; font-variant-numeric: tabular-nums; }
.rank-metric { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.rank-metric b { font-size: 14px; }
.rank-metric b.neg { color: var(--danger); }
.rank-metric span { font-size: 12px; color: var(--muted); }
.score-bar { display: block; width: 96px; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--border-light); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 2px; background: var(--danger); }
.score-bar.mid i { background: var(--warning); }
.score-bar.good i { background: var(--success); }
.rank-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 220px; }
.rank-reasons li { display: flex; align-items: flex-start; gap: 5px; color: var(--muted); }
.rank-reasons li .ico { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.rank-reasons li.good .ico { color: var(--success); }
.rank-reasons li.bad { color: var(--danger); }
.rank-reasons li.warn .ico { color: var(--warning); }
.rank-reasons li.more { color: var(--faint); cursor: help; }
.rank-table tr.verdict-blocked td, .rank-table tr.verdict-loss td { background: var(--danger-soft); }

/* ---- talep takibi ------------------------------------------------------- */

.heading-tools { display: flex; align-items: center; gap: 10px; }
.heading-tools .btn .ico { width: 15px; height: 15px; }
.cell-stack > small, .cell-stack > .badge { display: block; width: fit-content; margin-top: 2px; }
.cell-stack > small { font-size: 11.5px; color: var(--muted); }
.cell-stack.num > small, .cell-stack.num > .badge { margin-left: auto; }
.demand-table td { vertical-align: top; }
.demand-table .cell-title b { display: block; max-width: 340px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.chip-row .chip { height: 22px; font-size: 11.5px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { font-variant-numeric: tabular-nums; }
.cell-stack > small.chg.up { color: var(--success); }
.cell-stack > small.chg.down { color: var(--danger); }
.cell-stack > small.chg.flat { color: var(--faint); }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--blue); }
.spark.tone-rising polyline { stroke: var(--success); }
.spark.tone-rising circle { fill: var(--success); }
.spark.tone-falling polyline { stroke: var(--danger); }
.spark.tone-falling circle { fill: var(--danger); }
.spark.tone-stable polyline, .spark.tone-unknown polyline { stroke: var(--muted); }
.spark.tone-stable circle, .spark.tone-unknown circle { fill: var(--muted); }
.spark.tone-price polyline { stroke: #a35f00; }
.spark.tone-price circle { fill: #a35f00; }
.spark.big { max-width: 100%; height: auto; }
.spark.big polyline { stroke-width: 2; }
.spark-empty { font-size: 11.5px; color: var(--faint); }
tbody tr.demand-detail td { background: var(--panel-alt); padding: 14px 18px; cursor: default; }
tbody tr.demand-detail:hover td { background: var(--panel-alt); }
.demand-charts { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 250px) minmax(0, 210px) minmax(220px, 1fr); gap: 22px; }
.demand-chart { min-width: 0; }
.demand-chart h4 { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.demand-chart p { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.demand-chart.notes p { margin-top: 8px; }
@media (max-width: 1200px) { .demand-charts { grid-template-columns: 1fr 1fr; } }

/* ---- muadil bul --------------------------------------------------------- */

.eq-plan { margin-bottom: 12px; }
.eq-plan-body { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.2fr); gap: 16px; padding: 12px 16px 14px; }
.eq-plan-body textarea { width: 100%; min-height: 74px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.eq-terms { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eq-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.eq-terms .chip-row { max-width: none; }
.eq-terms .chip-row .chip { max-width: none; display: inline-flex; align-items: center; cursor: default; }
.eq-term.type { border-color: var(--blue); color: var(--blue-dark); font-weight: 600; }
.eq-term.minor { color: var(--muted); }
.eq-unknown { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--warning); }
.eq-unknown .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.eq-table td { vertical-align: top; }
.eq-table .cell-title .badge-row { display: flex; gap: 4px; margin-top: 4px; }
.eq-table .badge-row { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.eq-parts { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.eq-table .rank-reasons { min-width: 200px; }
@media (max-width: 900px) { .eq-plan-body { grid-template-columns: 1fr; } }
