/* ORKIDEM R47 WAVE267 — compact, readable, operational panel foundation. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] {
  --w267p-ink:#19342c;
  --w267p-muted:#687a74;
  --w267p-line:#e2e9e6;
  --w267p-bg:#f6f8f7;
  --w267p-surface:#fff;
  --w267p-brand:#0b6049;
  --w267p-brand-soft:#eef7f3;
  --w267p-radius:12px;
  color:var(--w267p-ink);
  background:var(--w267p-bg);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline:3px solid rgba(11,96,73,.25)!important;
  outline-offset:2px!important;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(h1,h2,h3,h4) { color:var(--w267p-ink)!important;letter-spacing:-.016em!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(h1) { font-weight:630!important;line-height:1.18!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(h2,h3) { font-weight:610!important;line-height:1.22!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(p,label,small,td,th,li) { font-weight:420!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(button,.btn,.buton,[class*="button"],[class*="buton"]) { font-weight:590!important;letter-spacing:0!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sayfa {
  min-width:0!important;
  padding:clamp(16px,1.5vw,24px)!important;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sayfa > :where(.container,.kapsayici,.panel-content,.sayfa-icerik) { max-width:1600px!important;margin-inline:auto!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.panel-v2-sayfa,.panel-v2-sayfa *) { box-sizing:border-box; }

/* Forms: one common density. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  min-height:40px!important;
  border:1px solid var(--w267p-line)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--w267p-ink)!important;
  font-size:13px!important;
  line-height:1.35!important;
  box-shadow:none!important;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] textarea { min-height:88px!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(input,select,textarea)::placeholder { color:#93a29d!important;opacity:1!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(input[type="checkbox"],input[type="radio"]) { width:17px!important;height:17px!important;min-width:17px!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(button,.btn,.buton,a.btn,a.buton) {
  min-height:38px!important;
  border-radius:9px!important;
}

/* Cards should read as tools, not oversized dashboard billboards. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.card,.panel-kart,.r46-card,.r47-card,.siparis-kart,.ayar-kart,.form-card) {
  border-color:var(--w267p-line)!important;
  border-radius:var(--w267p-radius)!important;
  box-shadow:0 1px 2px rgba(20,45,37,.025)!important;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.badge,.rozet,.status-badge,[class*="durum-rozet"],[class*="status-badge"]) {
  font-size:11px!important;
  font-weight:610!important;
  line-height:1.1!important;
}

/* Tables: readable density + safe horizontal scroll when a legacy view is wide. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.table-wrap,.tablo-kapsayici,.table-responsive,.panel-table-wrap,[class*="table-wrap"],[class*="tablo-kapsa"]) {
  max-width:100%!important;
  overflow-x:auto!important;
  overscroll-behavior-inline:contain;
  border-radius:10px!important;
  scrollbar-width:thin;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] table { border-collapse:separate!important;border-spacing:0!important;font-size:12.5px!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] table th { color:#4f655d!important;font-size:10.5px!important;font-weight:610!important;letter-spacing:.02em!important;white-space:nowrap; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] table :is(th,td) { padding:10px 11px!important;border-color:#e7ecea!important;vertical-align:middle!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] table tbody tr:hover td { background:#fafcfb!important; }

/* Side navigation + topbar: compact and predictable. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sidebar { border-right-color:var(--w267p-line)!important;box-shadow:none!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sidebar :where(a,button,summary) { font-weight:520!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sidebar :where(a.aktif,a.active,[aria-current="page"]) { font-weight:610!important; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-topbar { border-bottom:1px solid var(--w267p-line)!important;box-shadow:none!important; }

/* Avoid giant blank KPI bands; when present, make them operational and scannable. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.kpi-grid,.istatistik-grid,.ozet-kartlari,.stats-grid,[class*="kpi-grid"],[class*="stats-grid"]) {
  gap:10px!important;
}
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.kpi-grid,.istatistik-grid,.ozet-kartlari,.stats-grid,[class*="kpi-grid"],[class*="stats-grid"]) > * {
  min-height:86px!important;
  padding:13px!important;
  border-color:var(--w267p-line)!important;
  border-radius:11px!important;
  box-shadow:none!important;
}

/* Drawers and modals must always keep header/action areas visible. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where([role="dialog"],.modal,.drawer,.cekmece,[class*="modal"],[class*="drawer"]) { max-width:calc(100vw - 20px); }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.modal-header,.drawer-header,[class*="modal-baslik"],[class*="drawer-header"]) { position:sticky;top:0;z-index:2;background:inherit; }
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.modal-footer,.drawer-footer,[class*="modal-aksiyon"],[class*="drawer-footer"]) { position:sticky;bottom:0;z-index:2;background:inherit; }

/* Destructive actions are explicit, not decorative. */
body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.btn-danger,.buton-tehlike,[data-action="delete"],[data-sil]) { border-radius:9px!important; }

@media (max-width:1366px) {
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sayfa { padding:16px!important; }
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] table :is(th,td) { padding:9px!important; }
}
@media (max-width:900px) {
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sayfa { padding:12px!important; }
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.kpi-grid,.istatistik-grid,.ozet-kartlari,.stats-grid,[class*="kpi-grid"],[class*="stats-grid"]) { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.toolbar,.filtre-bar,.action-bar,[class*="toolbar"],[class*="filter-bar"]) { max-width:100%!important;flex-wrap:wrap!important;gap:7px!important; }
}
@media (max-width:560px) {
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] .panel-v2-sayfa { padding:10px!important; }
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(.kpi-grid,.istatistik-grid,.ozet-kartlari,.stats-grid,[class*="kpi-grid"],[class*="stats-grid"]) { grid-template-columns:1fr!important; }
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] :where(button,.btn,.buton,a.btn,a.buton) { min-height:40px!important; }
}
@media (prefers-reduced-motion:reduce) {
  body.orkidem-panel-v2[data-panel-marketplace-foundation-revision="wave267"] * { scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important; }
}

/* W267: panel chrome stays corporate; old demo-flower title decorations are not production UI. */
body[data-panel-marketplace-foundation-revision="wave267"].seller-page--kontrol-merkezi-index .r46p-titlebar::before,
body[data-panel-marketplace-foundation-revision="wave267"].seller-page--kontrol-merkezi-index .r46p-titlebar::after { content:none!important;display:none!important;background:none!important; }

/* W268 FINAL R2 · Canlı seller merkezlerinde W267 foundation sonrasında kalan eski mavi CTA sızıntısını kapatır.
   Bu dosya zaten panelin son foundation assetidir; yeni HTTP isteği eklenmez. */
body[data-panel-surface="seller"]:has(.w268-center-shell) #ana-icerik :is(.buton:not(.ikincil):not(.tehlike),button.buton:not(.ikincil):not(.tehlike),input[type="submit"].buton:not(.ikincil)){
  background:#0b744f!important;border-color:#0b744f!important;color:#fff!important;box-shadow:none!important;
}
body[data-panel-surface="seller"]:has(.w268-center-shell) #ana-icerik :is(.buton.ikincil,button.buton.ikincil){
  background:#fff!important;border-color:#b9cbc3!important;color:#315348!important;box-shadow:none!important;
}
body[data-panel-surface="seller"]:has(.w268-center-shell) #ana-icerik :is(.buton.tehlike,button.buton.tehlike,.tehlike){
  background:#fff5f4!important;border-color:#e6b8b4!important;color:#a53831!important;
}
body[data-panel-surface="seller"] .w268-filter-row>.w268-filter-actions>.buton:not(.ikincil){
  background:#0b744f!important;border-color:#0b744f!important;color:#fff!important;box-shadow:none!important;
}
body[data-panel-surface="seller"] .w268-filter-row>.w268-filter-actions>.buton.ikincil{
  background:#fff!important;border-color:#b9cbc3!important;color:#315348!important;box-shadow:none!important;
}
body[data-panel-surface="seller"][data-orki-panel-copilot-revision] .orki-yardimci-ac.a2310-orki-launcher>span.r225-orki-launcher-visual{
  display:grid!important;visibility:visible!important;opacity:1!important;
}
body[data-panel-surface="seller"] .panel-v2-sidebar.daraltildi .panel-v2-marka img{max-width:42px!important;max-height:42px!important;object-fit:contain!important}
body[data-panel-surface="seller"] .panel-v2-sidebar :is(.panel-v2-menu-toggle,.r145-sidebar-toggle){background:#f4f8f6!important;border-color:#d9e5df!important;color:#24463a!important;box-shadow:none!important}
@media(max-width:760px){
 body[data-panel-surface="seller"] .w268-table td{
   grid-template-columns:104px minmax(0,1fr)!important;text-align:left!important;white-space:normal!important;overflow:visible!important;min-width:0!important;
 }
 body[data-panel-surface="seller"] .w268-table td>*{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}
 body[data-panel-surface="seller"] .w268-table td small{display:block!important;margin-top:3px!important}
 body[data-panel-surface="seller"] .w268-table .w268-row-more{justify-self:start!important}
}
