/* ==========================================================================
   Satıcı paneli görünümü (Trendyol satıcı paneli düzeni):
   koyu iki katlı üst başlık (ince "Satıcı Paneli" şeridi + yatay açılır menü),
   açık gri zemin, beyaz sayfa başlığı bandı, gölgeli beyaz kartlar,
   "ad / N Paket" sekmeleri, ızgara filtreler, çizgili tablolar, turuncu vurgular.
   app.css'ten sonra yüklenir; yalnızca görünümü değiştirir.
   ========================================================================== */
:root {
  --brand: #f27a1a;
  --brand-600: #e0670a;
  --brand-50: #fef4ec;
  --brand-100: #fde2cc;

  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f3f3f3;
  --border: #e2e2e2;
  --border-strong: #cfcfcf;
  --text: #333333;
  --text-2: #666666;
  --text-3: #999999;

  --green: #0bc15c;
  --green-bg: #e7f9ef;
  --red: #e3311c;
  --red-bg: #fdecea;

  --ty-util: #1f2731;
  --ty-nav: #2b3441;
  --ty-nav-hover: #374253;
  --sidebar: #ffffff;
  --sidebar-2: #f7f7f7;
  --sidebar-text: #333333;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: none;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.18);
  --font: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Roboto, Arial, sans-serif;
  --util-h: 30px;
  --nav-h: 54px;
  --header-h: calc(var(--util-h) + var(--nav-h));
  --gutter: 20px;
}
:root[data-theme='dark'] {
  --bg: #121315;
  --surface: #1c1d20;
  --surface-2: #212226;
  --surface-3: #27292d;
  --border: #303237;
  --border-strong: #3d4046;
  --text: #ececec;
  --text-2: #b8b8b8;
  --text-3: #8a8a8a;
  --brand-50: #2c1d10;
  --brand-100: #43290f;
  --green-bg: #0f2a1b;
  --red-bg: #2f1513;
  --ty-util: #0d1014;
  --ty-nav: #171b21;
  --ty-nav-hover: #232934;
  --sidebar: #1c1d20;
  --sidebar-2: #25272a;
  --sidebar-text: #dddddd;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.5);
}

body { font-size: 14px; line-height: 1.42; font-feature-settings: normal; letter-spacing: 0; }
h1, h2, h3, h4 { letter-spacing: 0; }

/* ------------------------------ Üst başlık ------------------------------ */
.app { display: block; }
.main { margin-left: 0; padding-top: var(--header-h); min-height: 100vh; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); display: block; padding: 0;
  background: var(--ty-nav); border: 0; backdrop-filter: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ty-inner { height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 var(--gutter); }
.ty-util { height: var(--util-h); background: var(--ty-util); color: #c9ced6; font-size: 12.5px; }
.ty-util-title { color: #fff; font-weight: 700; margin-right: 10px; }
.ty-util a { color: #b9c0ca; padding: 0 8px; font-weight: 600; }
.ty-util a:hover { color: #fff; }
.ty-util-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 0; background: none;
  color: #d6dae0; font-weight: 600; font-size: 12.5px; cursor: pointer; border-radius: 4px;
}
.ty-util-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.ty-util-btn .icon { width: 14px; height: 14px; }
.ty-store-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.55); background: transparent; color: #fff; font-weight: 700; font-size: 12px; max-width: 230px;
}
.ty-store-pill .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.ty-store-pill .icon { width: 13px; height: 13px; flex: none; }
.ty-store-pill .dot { width: 8px; height: 8px; }
.ty-util .store-switch { position: relative; }
.ty-util .dropdown { color: var(--text); font-size: 14px; top: calc(100% + 4px); }

.ty-nav { height: var(--nav-h); background: var(--ty-nav); }
.ty-logo { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-right: 22px; white-space: nowrap; line-height: 1; }
.ty-logo:hover { color: #fff; }
.ty-menu { display: flex; align-items: stretch; height: 100%; gap: 2px; }
.ty-grp { position: relative; display: flex; align-items: center; }
.ty-grp-btn {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 11px; border: 0; background: none;
  color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 4px; white-space: nowrap;
}
.ty-grp-btn .icon { width: 14px; height: 14px; opacity: 0.85; }
.ty-grp:hover .ty-grp-btn, .ty-grp.open .ty-grp-btn { background: var(--ty-nav-hover); }
.ty-grp.active .ty-grp-btn { color: #ffb27a; }
.ty-grp.has-dot .ty-grp-btn::before {
  content: ''; position: absolute; left: 3px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #ff5b45;
}
.ty-dd {
  position: absolute; top: calc(100% - 4px); left: 0; min-width: 300px; background: var(--surface); color: var(--text);
  border-radius: 6px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; border: 1px solid var(--border);
}
.ty-grp:hover .ty-dd, .ty-grp.open .ty-dd { display: block; }
@media (hover: none) { .ty-grp:hover:not(.open) .ty-dd { display: none; } }
.ty-dd a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 5px; }
.ty-dd a:hover { background: var(--surface-3); }
.ty-dd a.active { background: var(--brand-50); }
.ty-dd a .icon { color: var(--brand); flex: none; }
.ty-dd a b { display: block; font-weight: 700; font-size: 14px; }
.ty-dd a small { display: block; color: var(--text-3); font-size: 12px; }
.ty-dd .badge-count, .nav a .badge-count {
  margin-left: auto; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.ty-menu-btn { display: none; border: 0; background: none; color: #fff; width: 40px; height: 40px; border-radius: 6px; cursor: pointer; margin-left: -8px; }
.ty-menu-btn:hover { background: var(--ty-nav-hover); }

/* Mobil menü çekmecesi (masaüstünde gizli) */
.sidebar { display: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 18px; background: var(--ty-nav); color: #fff; }
.drawer-head .ty-logo { font-size: 21px; margin: 0; }
.drawer-head small { color: #b9c0ca; font-weight: 600; flex: 1; }
.drawer-head .btn { color: #fff; }
.sidebar .nav { padding: 6px 0 16px; }
.sidebar .nav-section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); padding: 14px 18px 4px; }
.sidebar .nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 0; margin: 0; font-weight: 600; color: var(--text);
  border-left: 3px solid transparent;
}
.sidebar .nav a .icon { color: var(--text-2); }
.sidebar .nav a.active { background: var(--brand-50); color: var(--brand); border-left-color: var(--brand); }
.sidebar .nav a.active .icon { color: var(--brand); }
.sidebar-foot { border-top: 1px solid var(--border); padding: 12px 16px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; flex: none; }

/* ------------------------------ İçerik ------------------------------ */
.content { padding: 0 var(--gutter) 28px; max-width: none; }
/* Sayfa başlığı: tam genişlikte beyaz bant */
.page-head {
  margin: 0 calc(var(--gutter) * -1) 18px; padding: 14px var(--gutter); background: var(--surface);
  border-bottom: 1px solid var(--border); align-items: center; min-height: 62px;
}
.page-head h2 { font-size: 20px; font-weight: 400; color: var(--text); }
.page-head p { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ------------------------------ Butonlar ------------------------------ */
.btn { border-radius: 4px; height: 34px; padding: 0 14px; font-weight: 600; font-size: 13.5px; box-shadow: none; border-color: var(--border-strong); }
.btn:hover { background: var(--surface-2); border-color: #b5b5b5; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.dark { background: var(--ty-nav); border-color: var(--ty-nav); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 4px; }
.btn.xs { border-radius: 4px; }
.btn.ghost { border-color: transparent; }
.btn-group .btn:first-child { border-radius: 4px 0 0 4px; }
.btn-group .btn:last-child { border-radius: 0 4px 4px 0; }
/* Tablo satırındaki turuncu çerçeveli işlem butonları */
.table td .btn.sm:not(.ghost):not(.primary) { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.table td .btn.sm:not(.ghost):not(.primary):hover { background: var(--brand-50); }

/* ------------------------------ Formlar ------------------------------ */
.input, select.input, textarea.input { border-radius: 4px; border-color: var(--border-strong); height: 36px; font-size: 14px; }
.input::placeholder { color: #a0a0a0; }
.input.sm { border-radius: 4px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); }
.input-group .input { border-radius: 4px 0 0 4px; }
.input-group .addon { border-radius: 0 4px 4px 0; border-color: var(--border-strong); }
.field > label, .label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.radio-card { border-radius: 6px; }

/* ------------------------------ Kartlar ------------------------------ */
.card { border-radius: 6px; border-color: transparent; box-shadow: var(--shadow-card); }
.card-head { padding: 16px 20px; border-bottom-color: var(--border); }
.card-head h3 { font-size: 18px; font-weight: 700; }
.card-body { padding: 18px 20px; }
.stat { padding: 18px 20px; }
.stat .k { font-size: 13px; font-weight: 600; color: var(--text-2); }
.stat .v { font-size: 24px; font-weight: 700; }
.stat .ic { border-radius: 6px; }
.stat.link:hover { transform: none; box-shadow: 0 0 0 1px var(--brand), var(--shadow-card); }

/* ------------------------------ Rozetler ------------------------------ */
.badge { border-radius: 4px; height: 22px; font-size: 12px; font-weight: 600; }
.badge::before { display: none; }

/* ------------------------------ Sekmeler ------------------------------ */
/* "Yeni / 23 Paket" düzeni: başlık üstte, sayı altında, aralarında ince çizgi */
.tabs {
  gap: 0; background: var(--surface); border: 0; border-radius: 6px; padding: 0 8px; margin-bottom: 16px;
  box-shadow: var(--shadow-card); align-items: stretch;
}
.tab {
  flex-direction: column; justify-content: center; gap: 2px; padding: 14px 20px 12px; min-width: 108px; font-size: 14px; font-weight: 700;
  color: var(--text); border-bottom: 3px solid transparent; position: relative; text-align: center;
}
.tab + .tab::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--border); }
.tab .icon { display: none; }
.tab:hover { color: var(--brand); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab .n { background: none !important; color: var(--text-2) !important; padding: 0; font-size: 12.5px; font-weight: 400; border-radius: 0; }
.tab.active .n { color: var(--text-2) !important; }
.seg { border-radius: 4px; }
.seg button { border-radius: 4px; }

/* ------------------------------ Filtreler ------------------------------ */
.toolbar {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; align-items: center; padding: 18px 20px;
  background: var(--surface); border-radius: 6px 6px 0 0;
}
.toolbar .search-box { max-width: none; min-width: 0; }
.toolbar select.input, .toolbar .input { width: 100% !important; max-width: none; }
.toolbar > .grow { display: none; }
.toolbar .check { font-size: 13px; }

/* ------------------------------ Tablolar ------------------------------ */
.table th {
  text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; color: var(--text);
  background: var(--surface); padding: 13px 14px; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); }
.table th + th, .table td + td { border-left: 1px solid var(--border); }
.table th.check-col + th, .table td.check-col + td { border-left: 1px solid var(--border); }
.table tbody tr:hover { background: #fffaf6; }
:root[data-theme='dark'] .table tbody tr:hover { background: var(--surface-2); }
.table tbody tr.selected { background: var(--brand-50); }
.thumb { border-radius: 4px; }
.pager { padding: 14px 20px; }

/* Seçim çubuğu */
.selection-bar {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 8px 8px 8px 16px;
}
.selection-bar .btn { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.selection-bar .btn:hover { background: var(--surface-2); }
.selection-bar .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.selection-bar .count { color: var(--brand); }

/* ------------------------------ Pencereler / menüler ------------------------------ */
.modal { border-radius: 8px; min-width: 0; }
.modal-body, .modal-head, .modal-foot { min-width: 0; }
.modal-head h3 { font-size: 18px; font-weight: 700; }
.dropdown { border-radius: 6px; }
.dropdown .item { border-radius: 4px; }
.store-btn { border-radius: 4px; }
.alert { border-radius: 6px; }

/* ------------------------------ Gösterge paneli ------------------------------ */
.ty-store { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 18px; }
.ty-store .logo {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); display: grid; place-items: center; flex: none;
}
.ty-store .logo .icon { width: 30px; height: 30px; }
.ty-store h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.ty-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ty-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 13px; color: var(--text); white-space: nowrap;
}
.ty-chip b { font-weight: 700; }
.ty-chip .dot { width: 8px; height: 8px; }
.ty-chip .ok { color: var(--green); font-weight: 700; }
.ty-chip .bad { color: var(--red); font-weight: 700; }
.ty-perf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ty-perf > div { padding: 4px 0; }
.ty-perf .k { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.ty-perf .v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ty-perf .d { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.ty-pct { font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 2px; }
.ty-pct.up { color: var(--green); }
.ty-pct.down { color: var(--red); }
.ty-strip { margin-top: 18px; background: var(--surface-2); border-radius: 6px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 14px; }
.ty-strip b { font-weight: 700; }
.ty-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ty-action { display: block; padding: 4px 0; color: var(--text); }
.ty-action .k { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ty-action .v { font-size: 22px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.ty-action .v.zero { color: var(--text-3); }
.ty-action .v .rd { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ty-action .warn-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; background: var(--red-bg); color: var(--red); font-size: 11.5px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.ty-action:hover .k { color: var(--brand); }
.ty-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ty-prod { display: flex; gap: 10px; min-width: 0; }
.ty-prod .rank { font-size: 12px; font-weight: 700; background: var(--surface-3); border-radius: 3px; height: 20px; min-width: 20px; display: grid; place-items: center; flex: none; }
.ty-prod img, .ty-prod .ph { width: 56px; height: 72px; object-fit: contain; border: 1px solid var(--border); border-radius: 4px; background: #fff; flex: none; }
.ty-prod .nm { font-weight: 700; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ty-prod .bc { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ty-prod .pr { color: var(--brand); font-weight: 700; margin-top: 2px; }
.ty-prod .mt { font-size: 12px; color: var(--text-2); }
.ty-bb { display: inline-flex; align-items: center; gap: 4px; margin: 3px 0 2px; font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 2px 7px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ty-bb .icon { width: 12px; height: 12px; flex: none; }
.ty-bb.win { background: var(--green-bg); color: var(--green); }
.ty-bb.lose { background: var(--red-bg); color: var(--red); }
.ty-bb.solo { background: var(--blue-bg); color: var(--blue); }
.ty-bb.none { background: var(--surface-3); color: var(--text-3); }
.ty-best { gap: 10px; }
.ty-best .rank { font-size: 12px; font-weight: 700; background: var(--surface-3); border-radius: 3px; height: 20px; min-width: 20px; display: grid; place-items: center; flex: none; }
.ty-best .thumb { width: 40px; height: 40px; object-fit: contain; background: #fff; }
.ty-chart { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ty-chart-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ty-chart-h b { font-size: 15px; font-weight: 700; }
.ty-chart-h .faint { font-size: 12.5px; }

/* ------------------------------ Sipariş ürün şeridi ------------------------------ */
.os-card { padding: 14px 16px 12px; }
.os-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13.5px; }
.os-head > b { font-size: 16px; }
.os-head .btn { margin-left: auto; }
.os-head .os-pf { margin-left: auto; }
.os-head .btn + .os-pf { margin-left: 0; }
@media (max-width: 640px) { .os-head .os-pf { margin-left: 0; width: 100%; } .os-head .os-pf button { flex: 1; } }
.os-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.os-item {
  position: relative; flex: none; width: 128px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: left; scroll-snap-align: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.os-item:hover { border-color: var(--brand); }
.os-item.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-100); background: var(--brand-50); }
.os-item img, .os-item .os-ph { width: 100%; height: 96px; object-fit: contain; background: #fff; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); }
.os-qty {
  position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; line-height: 1;
  border-radius: 6px; padding: 4px 7px; display: flex; align-items: baseline; gap: 3px; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.os-qty small { font-size: 10px; font-weight: 700; opacity: 0.9; }
.os-nm { font-size: 12.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 31px; }
.os-sub { font-size: 11.5px; color: var(--text-3); }

/* ------------------------------ Kârlılık ------------------------------ */
.pf-period { grid-template-columns: minmax(0, 2fr) 160px 160px; }
.pf-groups { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 6px; cursor: pointer; text-align: left;
  border: 1.5px dashed var(--border-strong); background: var(--surface); color: var(--text); min-width: 0;
}
/* Tarayıcı eklentilerinin genel sınıfları (ör. .fixed) konumu bozmasın */
.pf-chip { position: relative !important; inset: auto !important; }
.pf-chip b { display: block; font-size: 13.5px; font-weight: 700; }
.pf-chip small { display: block; font-size: 12px; color: var(--text-3); }
.pf-chip .icon { color: var(--text-3); flex: none; }
.pf-chip:hover:not(.pf-lock) { border-color: var(--brand); }
.pf-chip.on { border-style: solid; border-color: var(--brand); background: var(--brand-50); }
.pf-chip.on .icon { color: var(--brand); }
.pf-chip.pf-lock { cursor: default; border-color: var(--green); background: var(--green-bg); }
.pf-chip.pf-lock .icon { color: var(--green); }
.pf-chip b { display: flex; align-items: center; gap: 5px; }
.pf-chip b .icon { color: var(--text-2); }
.pf-box { width: 22px; height: 22px; border-radius: 5px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; background: var(--surface); }
.pf-box .icon { opacity: 0; color: #fff !important; width: 14px; height: 14px; stroke-width: 3; }
.pf-chip.on .pf-box { background: var(--brand); border-color: var(--brand); }
.pf-chip.pf-lock .pf-box { background: var(--green); border-color: var(--green); }
.pf-chip.on .pf-box .icon, .pf-chip.pf-lock .pf-box .icon { opacity: 1; }
.pf-groups.busy .pf-chip { cursor: progress; }
.pf-groups.busy .pf-chip-net { opacity: 0.4; }
.pf-chip .pf-chip-net { font-weight: 700; color: var(--text-2); }
.pf-chip .pf-chip-net.up { color: var(--green); }
.pf-chip .pf-chip-net.down { color: var(--red); }
tr.pf-off td { color: var(--text-3); }
tr.pf-off td b { color: var(--text-2); }
.pf-period .seg { flex-wrap: wrap; }
.pf-lines { padding-top: 8px; }
.pf-line { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.pf-l { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.pf-l b { font-weight: 700; }
.pf-l small, .pf-v small { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; }
.pf-sign { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--red-bg); color: var(--red); flex: none; margin-top: 1px; }
.pf-line.pos .pf-sign { background: var(--green-bg); color: var(--green); }
.pf-bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.pf-bar span { display: block; height: 100%; background: #f6a46a; border-radius: 3px; }
.pf-line.pos .pf-bar span { background: var(--green); opacity: 0.55; }
.pf-v { text-align: right; white-space: nowrap; }
.pf-v b { font-size: 15px; }
.pf-line.net { border-bottom: 0; border-top: 2px solid var(--text); margin-top: 4px; padding-top: 14px; }
.pf-line.net .pf-sign { background: var(--green); color: #fff; }
.pf-line.net .pf-v b { font-size: 22px; color: var(--green); }
.pf-line.net.neg .pf-sign { background: var(--red); }
.pf-line.net.neg .pf-v b { color: var(--red); }
.pf-vat { grid-column: 1 / -1; margin: -4px 0 6px 30px; font-size: 13px; }
.pf-vat summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: 4px 0; }
.pf-vrow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.pf-vrow.total { border-bottom: 0; border-top: 1px solid var(--text); margin-top: 4px; padding-top: 8px; font-weight: 700; }
.pf-vrow.total b { font-size: 17px; }
.pf-cost .pf-in { width: 96px; }
.pf-cost .pf-in::placeholder { font-size: 11.5px; }
.pf-cost tr.pf-saved td { background: var(--green-bg); transition: background 0.3s; }
.pf-targets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pf-targets > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px; text-align: center; }
.pf-targets small { display: block; color: var(--text-3); font-size: 11.5px; }
.pf-targets b { font-size: 13.5px; }
.pf-exp { grid-template-columns: 160px minmax(0, 2fr) 150px 90px auto; align-items: end; }
.pf-sim { align-items: start; }
.pf-sim .grid.c3 { gap: 12px; }

/* ------------------------------ Platform etiketi ------------------------------ */
.pf-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-left: 6px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.01em; vertical-align: middle; white-space: nowrap; }
.pf-tag.ty { background: #fff1e6; color: #e0670a; border: 1px solid #fbc9a0; }
.pf-tag.hb { background: #ff6000; color: #fff; border: 1px solid #ff6000; }
:root[data-theme='dark'] .pf-tag.ty { background: #3a2210; color: #ffb27a; border-color: #6b3a14; }

/* ------------------------------ Bildirimler ------------------------------ */
.toast {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 5px solid var(--blue);
  border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); font-weight: 600; line-height: 1.35;
}
.toast .x { color: var(--text-2); opacity: 0.8; }
.toast.success { border-left-color: var(--green); }
.toast.success .icon { color: var(--green); }
.toast.error { border-left-color: var(--red); background: var(--red-bg); }
.toast.error .icon { color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast.warn .icon { color: var(--amber); }
.toast.info .icon { color: var(--blue); }
/* Grafik çubuğu üstündeki tutar balonu */
.bc-pill { background: var(--ty-nav); color: #fff; }
.bc-pill::after { border-top-color: var(--ty-nav); }

/* ------------------------------ Yardımcılar ------------------------------ */
.warn-txt { color: var(--amber); }
.ty-link { color: inherit; }
.ty-link:hover { color: var(--brand); text-decoration: underline; }
.combo-dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); min-width: 0; max-height: 340px; overflow-y: auto; z-index: 5; }
.combo-dd .item { align-items: center; }
.combo-dd .item.active { background: var(--brand-50); }
.combo-dd .item small { color: var(--text-3); font-size: 12px; }
.link-info { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--blue); min-width: 0; }
.link-info span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-info.parent { color: var(--text-2); }
.link-info .icon { flex: none; margin-top: 1px; }

/* ------------------------------ Orta ekran ------------------------------ */
@media (max-width: 1280px) {
  .ty-grp-btn { padding: 0 8px; font-size: 13.5px; }
  .ty-logo { margin-right: 12px; }
  .ty-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ty-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------ Mobil ------------------------------ */
@media (max-width: 1024px) {
  :root { --gutter: 14px; --nav-h: 52px; }
  .ty-menu { display: none; }
  .ty-menu-btn { display: inline-grid; place-items: center; }
  .ty-logo { font-size: 22px; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 80;
    transform: translateX(-102%); transition: transform 0.25s ease; box-shadow: var(--shadow-lg); background: var(--sidebar); border: 0;
  }
  .sidebar .nav { flex: 1; overflow-y: auto; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; top: 0; background: rgba(0, 0, 0, 0.45); z-index: 70; }
}
@media (max-width: 680px) {
  :root { --util-h: 34px; }
  .ty-util .ty-inner { gap: 2px; }
  .ty-util-title { font-size: 12.5px; margin-right: 4px; }
  .ty-store-pill { max-width: 46vw; height: 24px; }
  .page-head { padding: 12px var(--gutter); margin-bottom: 14px; }
  .page-head h2 { font-size: 18px; }
  .page-head .row { width: 100%; }
  .page-head .row .btn { flex: 1; }
  .tabs { padding: 0 4px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; }
  .tab { min-width: 92px; padding: 12px 12px 10px; font-size: 13.5px; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 10px; }
  .toolbar .search-box { grid-column: 1 / -1; }
  .toolbar .check { grid-column: 1 / -1; }
  .card-head { padding: 14px 16px; }
  .card-head h3 { font-size: 16px; }
  .card-body { padding: 14px 16px; }
  .table th + th, .table td + td { border-left: 0; }
  table.rtable tr { border-bottom: 8px solid var(--bg); }
  table.rtable td:not(.full) > * { min-width: 0; max-width: 100% !important; }
  .ty-store { padding: 16px; gap: 12px; align-items: flex-start; }
  .ty-store .logo { width: 48px; height: 48px; }
  .ty-store .logo .icon { width: 24px; height: 24px; }
  .ty-store h2 { font-size: 17px; }
  .ty-chip { height: 28px; font-size: 12.5px; padding: 0 10px; }
  .ty-perf { grid-template-columns: 1fr; gap: 12px; }
  .ty-perf > div + div { border-top: 1px solid var(--border); padding-top: 12px; }
  .ty-perf .v { font-size: 22px; }
  .ty-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ty-products { grid-template-columns: 1fr; gap: 14px; }
  .selection-bar { left: 8px; right: 8px; }
  .pf-period { grid-template-columns: 1fr 1fr; }
  .pf-period .seg { grid-column: 1 / -1; }
  .pf-chip { flex: 1 1 100%; }
  .pf-line { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-bar { display: none; }
  .pf-vat { margin-left: 0; }
  .pf-cost .pf-in { width: 110px; }
  .pf-targets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-exp { grid-template-columns: 1fr 1fr; }
  .pf-exp .field:nth-child(2) { grid-column: 1 / -1; }
}
@media print {
  .main { padding-top: 0; }
  .topbar, .sidebar { display: none !important; }
}
