/* Kaynak: etibas-partner/yeni/varlik/panel.css (24 Kas 2026 kopyası; kalıp değişince eşitle) · r ekleri 24 Kas: .kart .tablo-kaydir, çekmecesiz .suzgec-ac gizli */
/* ═══════════════════════════════════════════════════════════════════════════
   ETİBAS PANEL — YENİ YÜZ STİL KALIBI (tek dosya; bütün ekranlar buradan giyinir)
   Bölümler: Değişkenler · Temel · Üst çubuk · Ortak parçalar · Liste ekranı · Pencere · Form · Bileşenler
   Kural: ekrana özel <style> yazılmaz. Yeni parça gerekiyorsa buraya, adıyla eklenir.
   (.claude/rules/yeni-yuz.md)
   ═══════════════════════════════════════════════════════════════════════════ */
/* ───────── Değişkenler ───────── */
:root {
  --ana: #12715b;
  --ana-koyu: #0e5a49;
  --ana-acik: #e9f4f1;
  --metin: #1f2933;
  --ikincil: #5b6673;
  --soluk: #98a1ad;
  --cizgi: #e5e8ec;
  --cizgi-acik: #eef0f3;
  --kutu-cizgi: #d7dce1;
  --zemin: #f5f5f5;
  --yuzey: #fff;
  --yuzey-2: #fafbfc;
  --kirmizi: #d9453d;
  --turuncu: #f57c00;
  --mavi: #1e88e5;
  --ust-yuk: 90px;
  --golge: 0 10px 30px rgba(16, 24, 40, .16);
}

/* ───────── Temel ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: var(--ust-yuk) 0 40px;
  font: 13px/1.5 Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--metin);
  background: var(--zemin);
}
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ana); outline-offset: 2px; }
[hidden] { display: none !important; }
.gizli-metin { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ik { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ───────── Üst çubuk ───────── */
.ust { position: fixed; inset: 0 0 auto 0; z-index: 50; background: #000; color: rgba(255, 255, 255, .9); }
.ust-serit { height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ust-sol, .ust-sag { flex: 1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.ust-sag { justify-content: flex-end; gap: 6px; }
.ust-sol a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.ust-sol a:hover { color: #fff; }
.ust-sol .surum { gap: 6px; padding: 1px 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.ust-sol .surum i { width: 6px; height: 6px; border-radius: 50%; background: #2ecc71; }
.ust-ara { flex: 0 1 420px; position: relative; display: flex; align-items: center; }
.ust-ara .ik { position: absolute; left: 12px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.ust-ara input { width: 100%; height: 30px; padding: 0 70px 0 34px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 15px; background: #161616; color: #fff; outline: 0; }
.ust-ara input::placeholder { color: rgba(255, 255, 255, .55); }
.ust-ara input:focus { border-color: rgba(255, 255, 255, .5); background: #1e1e1e; }
.ust-ara kbd { position: absolute; right: 12px; font: inherit; font-size: 11.5px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.ust-dugme { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.ust-dugme:hover, .acik > .ust-dugme { background: rgba(255, 255, 255, .12); color: #fff; }
.ust-dugme .ik:last-child { width: 12px; height: 12px; }
.rozet { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--kirmizi); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.rozet.turuncu { background: var(--turuncu); }
.ust-dugme .rozet, .menu > li > button .rozet { position: absolute; top: -3px; }
.ust-dugme .rozet { left: 17px; }
.ust-dugme:has(.rozet) > .ik:first-child { margin-right: 14px; }

.ust-menu { height: 50px; display: flex; align-items: center; gap: 28px; padding: 0 20px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo svg { height: 22px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > button, .menu > li > a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 6px; font-size: 12px; font-weight: 500; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.menu > li > button:hover, .menu > li > a:hover, .menu > li.acik > button, .menu > li.secili > button { background: rgba(255, 255, 255, .14); color: #fff; }
.menu > li > button .ik:last-of-type { width: 12px; height: 12px; }
.menu > li > button .rozet { right: -6px; }
.menu-dugme, .ust-mobil { display: none; }

/* Açılır liste (üst menü, kullanıcı menüsü, sütun seçici…) */
.acilir-liste { position: absolute; top: calc(100% + 9px); left: -8px; z-index: 60; display: none; min-width: 250px; padding: 6px 0; border-radius: 8px; background: var(--yuzey); color: var(--metin); box-shadow: var(--golge); }
.acilir-liste.saga { left: auto; right: 0; }
.acik > .acilir-liste { display: block; }
.acilir-liste li { position: relative; }
.acilir-liste a, .acilir-liste button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; font-size: 13px; font-weight: 500; text-align: left; text-transform: none; }
.acilir-liste a:hover, .acilir-liste button:hover, .acilir-liste li:focus-within > button { background: #f3f5f7; }
.acilir-liste .ik { color: var(--ikincil); width: 15px; height: 15px; }
.acilir-liste .son { margin-left: auto; }
.acilir-liste .ayrac { height: 1px; margin: 6px 0; background: var(--cizgi-acik); }
.acilir-liste .baslik { padding: 6px 16px 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--soluk); }
.acilir-liste .alt-liste { position: absolute; top: -6px; left: 100%; display: none; min-width: 220px; padding: 6px 0; border-radius: 8px; background: var(--yuzey); box-shadow: var(--golge); }
.acilir-liste li:hover > .alt-liste, .acilir-liste li.acik > .alt-liste { display: block; }

/* Uygulamalar ve bildirim panelleri */
.panel-kutu { width: 320px; padding: 0; }
.panel-kutu h3 { padding: 12px 16px; border-bottom: 1px solid var(--cizgi-acik); font-size: 13px; font-weight: 700; }
.uygulamalar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px; }
.uygulamalar a { flex-direction: column; gap: 6px; padding: 12px 6px; border-radius: 8px; font-size: 12px; text-align: center; }
.uygulamalar .ik { width: 20px; height: 20px; color: var(--ana); }
.bildirimler li { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--cizgi-acik); }
.bildirimler li:last-child { border-bottom: 0; }
.bildirimler .nokta { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ana); }
.bildirimler b { display: block; font-weight: 600; }
.bildirimler small { color: var(--soluk); font-size: 11.5px; }

/* ───────── Ortak parçalar ───────── */
.dgm { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .12s, border-color .12s; }
.dgm:hover { border-color: #cfd6dd; background: var(--yuzey-2); }
.dgm-ana { border-color: var(--ana); background: var(--ana); color: #fff; }
.dgm-ana:hover { border-color: var(--ana-koyu); background: var(--ana-koyu); }
.dgm-kirmizi { border-color: var(--kirmizi); background: var(--kirmizi); color: #fff; }
.dgm-kirmizi:hover { border-color: #c0392b; background: #c0392b; }
.dgm-duz { border-color: transparent; background: transparent; color: var(--ikincil); }
.dgm-duz:hover { border-color: transparent; background: var(--cizgi-acik); color: var(--metin); }
.dgm[disabled] { opacity: .6; cursor: default; }

.kutu { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--kutu-cizgi); border-radius: 8px; background: var(--yuzey); font-size: 13px; outline: 0; transition: border-color .12s, box-shadow .12s; }
textarea.kutu { height: auto; padding: 9px 11px; line-height: 1.5; resize: vertical; }
select.kutu { padding-right: 28px; appearance: none; background: var(--yuzey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2933' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center / 13px no-repeat; }
.kutu::placeholder { color: var(--soluk); }
.kutu:focus { border-color: var(--ana); box-shadow: 0 0 0 3px rgba(18, 113, 91, .12); }
.kutu[readonly], .kutu[disabled] { border-color: transparent; background: #f6f7f9; }
.kutu.hatali { border-color: var(--kirmizi); box-shadow: 0 0 0 3px rgba(217, 69, 61, .12); }

.onay { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #c3cad3; border-radius: 5px; background: #fff center / 14px no-repeat; cursor: pointer; vertical-align: middle; transition: background-color .12s, border-color .12s; }
.onay:hover { border-color: var(--ana); }
.onay:checked, .onay:indeterminate { border-color: var(--ana); background-color: var(--ana); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.onay:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.anahtar { appearance: none; flex: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: #d5dae0; cursor: pointer; transition: background-color .15s; }
.anahtar::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.anahtar:checked { background: var(--ana); }
.anahtar:checked::after { transform: translateX(20px); }

.ipucu { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: #e6e9ed; color: var(--ikincil); font-size: 10.5px; font-weight: 700; cursor: help; }
.ipucu::after { content: attr(data-ipucu); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 5; width: max-content; max-width: min(320px, 80vw); white-space: pre-line; padding: 7px 10px; border-radius: 6px; background: #1b232c; color: #fff; font-size: 11.5px; font-weight: 400; line-height: 1.4; text-align: left; opacity: 0; visibility: hidden; transform: translateX(-50%); transition: opacity .12s; pointer-events: none; }
.ipucu:hover::after, .ipucu:focus::after { opacity: 1; visibility: visible; }
/* Kapalı balon yer kaplamaz (kenara yakın "?" sayfayı/pencereyi yana kaydırıyordu); kenarda içeri açılır (panel.js ipucuYonu) */
.ipucu:not(:hover):not(:focus)::after { display: none; }
.ipucu[data-yon="sol"]::after { left: -6px; transform: none; }
.ipucu[data-yon="sag"]::after { left: auto; right: -6px; transform: none; }
.ipucu-son { white-space: nowrap; }

.etiket { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 9px; border-radius: 999px; background: var(--cizgi-acik); color: var(--ikincil); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.etiket.yesil { background: #e6f4ef; color: var(--ana); }
.etiket.kirmizi { background: #fdecea; color: #c0392b; }
.etiket.sari { background: #fff3d1; color: #96610a; }
/* Ek tonlar (durum rozetleri): ton-* adı da aynı rengi verir (sipariş/iade durum haritası) */
.etiket.mavi, .etiket.ton-mavi { background: #e0f2fe; color: #075985; }
.etiket.mor, .etiket.ton-mor { background: #ede9fe; color: #6d28d9; }
.etiket.turuncu, .etiket.ton-turuncu { background: #ffedd5; color: #b45309; }
.etiket.camgobegi, .etiket.ton-camgobegi { background: #d9f5f5; color: #0f6b6b; }
.etiket.gri, .etiket.ton-gri { background: #eef0f3; color: #5b6673; }
.etiket.ton-yesil { background: #e6f4ef; color: var(--ana); }
.etiket.ton-kirmizi { background: #fdecea; color: #c0392b; }
.etiket.ton-sari { background: #fff3d1; color: #96610a; }
.etiket.genis { height: auto; min-height: 21px; padding: 2px 9px; border-radius: 10px; line-height: 1.45; white-space: normal; }
/* Renkli yazı ve sayı tonu */
.yesil-yazi, .iyi { color: var(--ana); }
.kirmizi-yazi { color: var(--kirmizi); }
.kotu { color: #b42318; }
.turuncu-yazi { color: var(--turuncu); }
.soluk { color: var(--soluk); }
/* Küçük kopyala simgesi (kodun hemen yanında; yer kaplamaz) — <button class="kopya-kucuk" data-kopya="…"> */
.kopya-kucuk { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 -18px 0 2px; border-radius: 5px; color: #b3bac3; vertical-align: -4px; }
.kopya-kucuk:hover { background: var(--cizgi-acik); color: var(--ana); }
.kopya-kucuk .ik { width: 12px; height: 12px; }

.bant { display: flex; align-items: center; gap: 14px; margin: 16px 16px 0; padding: 14px 22px; border: 1px solid #f3dfb5; border-left: 4px solid var(--turuncu); border-radius: 8px; background: #fbf1d9; }
.bant-ikon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #fff; color: var(--turuncu); }
.bant-ikon .ik { width: 20px; height: 20px; }
.bant b { display: block; color: #c0392b; font-weight: 600; }
.bant button { margin-left: auto; padding: 6px; color: var(--soluk); }

/* Kısa süreli bilgi (toast) */
.bildiri-yigini { position: fixed; top: calc(var(--ust-yuk) + 12px); right: 16px; z-index: 200; display: grid; gap: 8px; }
.bildiri { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 8px; background: #1b232c; color: #fff; box-shadow: var(--golge); animation: bildiri-gir .18s ease-out; }
.bildiri.hata { background: #c0392b; }
.bildiri .ik { color: #4ade80; }
.bildiri.hata .ik { color: #fff; }
@keyframes bildiri-gir { from { opacity: 0; transform: translateY(-6px); } }

.sayfa-alt { margin-top: 24px; padding: 0 20px; color: var(--soluk); font-size: 12px; }
.sayfa-alt a { color: var(--ana); font-weight: 600; }

/* ───────── Dar ekran ───────── */
@media (max-width: 1080px) {
  :root { --ust-yuk: 50px; }
  .ust-serit { display: none; }
  .ust.ara-acik .ust-serit { display: flex; position: absolute; inset: 50px 0 auto 0; background: #000; }
  .ust.ara-acik .ust-sol, .ust.ara-acik .ust-sag { display: none; }
  .ust.ara-acik .ust-ara { flex: 1; }
  .ust-ara kbd { display: none; }
  .ust-menu { gap: 8px; padding: 0 12px; }
  .ust-mobil { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .ust-mobil button, .menu-dugme { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
  .ust-mobil .ik, .menu-dugme .ik { width: 20px; height: 20px; }
  .menu { position: fixed; inset: 50px 0 0 auto; z-index: 70; flex-direction: column; align-items: stretch; gap: 0; width: min(320px, 86vw); padding: 8px; overflow-y: auto; background: #0b0b0b; transform: translateX(100%); transition: transform .2s; }
  .ust.menu-acik .menu { transform: none; }
  .menu > li > button, .menu > li > a { width: 100%; height: 44px; font-size: 13px; }
  .menu > li > button .ik:last-of-type { margin-left: auto; }
  .menu > li > button .rozet { position: static; }
  .menu .acilir-liste { position: static; min-width: 0; margin: 2px 0 6px; box-shadow: none; }
  .menu .acilir-liste .alt-liste { position: static; display: block; min-width: 0; padding: 0 0 0 14px; box-shadow: none; }
  .bant { margin: 12px 10px 0; padding: 12px 14px; }
}

.yalniz-mobil { display: none; }
@media (max-width: 1080px) { .yalniz-mobil { display: block; } }
/* Telefonda (dar ekran) satır içi görünen öğe: tablonun sağındaki İşlemler sütunu ekran dışında kalınca düğmenin kısa yolu adın yanında */
.yalniz-telefon { display: none !important; }
@media (max-width: 640px) { .yalniz-telefon { display: inline-flex !important; vertical-align: middle; margin-left: 6px; } }

/* ───────── Pencere (modal) ─────────
   Yerleşik <dialog>: odak tuzağı, Esc ile kapanma ve iç içe açılma tarayıcıdan gelir.
   Boylar: .kucuk (onay) · varsayılan (tek form) · .buyuk (sekmeli). */
html:has(dialog[open]) { overflow: hidden; }
.pencere { width: min(600px, calc(100vw - 20px)); max-height: calc(100dvh - 60px); margin: 30px auto auto; padding: 0; border: 0; border-radius: 14px; background: var(--yuzey); color: var(--metin); box-shadow: 0 24px 60px rgba(16, 24, 40, .22); overflow: hidden; }
.pencere.kucuk { width: min(420px, calc(100vw - 20px)); margin-top: 18vh; }
.pencere.buyuk { width: min(1000px, calc(100vw - 20px)); }
.pencere[open] { display: flex; flex-direction: column; animation: pencere-gir .16s ease-out; }
.pencere::backdrop { background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }
@keyframes pencere-gir { from { opacity: 0; translate: 0 -10px; } }
.pencere > form { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.pencere-ust { flex: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px 14px 20px; border-bottom: 1px solid var(--cizgi-acik); }
.pencere-ust h2 { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pencere-ust h2 small { color: var(--soluk); font-size: 12px; font-weight: 500; }
.pencere-ikon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ana-acik); color: var(--ana); }
.pencere-ikon.kirmizi { background: #fdecea; color: #c0392b; }
.pencere-kapat { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--soluk); }
.pencere-kapat:hover { background: var(--cizgi-acik); color: var(--metin); }
.pencere-kapat .ik { width: 18px; height: 18px; }

.pencere-govde { flex: 1; min-height: 0; padding: 20px 24px 8px; overflow-y: auto; }
.pencere-govde.sekmeli { display: flex; min-height: 440px; padding: 0; overflow: hidden; }
.sekme-rayi { flex: none; width: 200px; padding: 12px 8px; border-right: 1px solid var(--cizgi-acik); background: var(--yuzey-2); overflow-y: auto; }
.sekme-rayi button { display: flex; align-items: center; width: 100%; margin-bottom: 2px; padding: 8px 14px; border-radius: 8px; color: var(--ikincil); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: left; }
.sekme-rayi button:hover { background: #f0f2f4; color: var(--metin); }
.sekme-rayi button[aria-selected="true"] { background: var(--ana-acik); color: var(--ana-koyu); font-weight: 600; }
.sekme-rayi .grup { margin: 10px 14px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); }
.sekme-icerik { flex: 1; min-width: 0; padding: 20px 24px 8px; overflow-y: auto; }

.pencere-alt { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--cizgi-acik); background: var(--yuzey-2); }
.pencere-alt .dgm { height: 36px; padding: 0 18px; }
.pencere-alt .sola { margin-right: auto; }
.pencere-metin { padding-bottom: 14px; color: var(--ikincil); font-size: 13.5px; line-height: 1.55; }

/* Form alanı: solda soru, sağda kutu */
.alan { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 18px; align-items: start; margin-bottom: 14px; }
.alan > label, .alan > .alan-ad { padding-top: 9px; color: #4b5563; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.alan.dikey { grid-template-columns: minmax(0, 1fr); }
.alan.dikey > label { padding-top: 0; }
.alan-cift { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.zorunlu { color: var(--kirmizi); }
.alan-not { margin-top: 5px; color: var(--soluk); font-size: 11.5px; line-height: 1.45; }
.alan-hata { margin-top: 5px; color: var(--kirmizi); font-size: 11.5px; }
.alan-satir { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 12px; }
.alan-ayrac { height: 1px; margin: 4px 0 14px; background: var(--cizgi); }
.ekli { display: flex; }
.ekli .kutu { border-radius: 8px 0 0 8px; }
/* Önek kutusu: kutunun SOLUNDAKİ ek (%, #, "en az") — <span class="once">…</span> kutudan önce yazılır */
.ekli .once { order: -1; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--kutu-cizgi); border-right: 0; border-radius: 8px 0 0 8px; background: #f6f7f9; color: var(--ikincil); }
.ekli .once + .kutu { border-radius: 0 8px 8px 0; }
.ekli .once + .kutu:not(:last-child) { border-radius: 0; }
.ekli span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--kutu-cizgi); border-left: 0; border-radius: 0 8px 8px 0; background: #f6f7f9; color: var(--ikincil); font-size: 12.5px; }

/* Çip kutusu (kategoriler) */
.cipler { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 36px; padding: 3px; border: 1px solid var(--kutu-cizgi); border-radius: 8px; background: var(--yuzey); cursor: text; }
.cipler:focus-within { border-color: var(--ana); box-shadow: 0 0 0 3px rgba(18, 113, 91, .12); }
.cipler .cip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 9px; border-radius: 5px; background: #455a64; color: #fff; font-size: 12px; }
.cipler .cip button { color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1; }
.cipler input { flex: 1; min-width: 90px; height: 26px; padding: 0 6px; border: 0; outline: 0; background: none; }

/* Resim sekmesi */
.resimler { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.resimler figure { position: relative; margin: 0; aspect-ratio: 1; border: 1px solid var(--cizgi); border-radius: 10px; overflow: hidden; background: #fff; }
.resimler img { width: 100%; height: 100%; object-fit: contain; background: #fff; }   /* ürün resmi kırpılmaz, tamamı görünür */
.resimler figcaption { position: absolute; left: 6px; top: 6px; }
.resimler figure button { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--kirmizi); }
.resim-ekle { display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 1; border: 1.5px dashed #cfd6dd; border-radius: 10px; color: var(--ikincil); font-size: 12px; font-weight: 600; cursor: pointer; }
.resim-ekle:hover { border-color: var(--ana); color: var(--ana); }
.resim-ekle .ik { width: 22px; height: 22px; }

/* Pencere içi tablo */
.tablo { width: 100%; border: 1px solid var(--cizgi); border-radius: 10px; border-spacing: 0; overflow: hidden; }
.tablo th { padding: 10px 12px; border-bottom: 1px solid var(--cizgi); background: var(--yuzey-2); color: #7b8591; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.tablo td { padding: 10px 12px; border-top: 1px solid var(--cizgi-acik); }
.tablo tr:first-child td { border-top: 0; }
.tablo .sag { text-align: right; }

/* Arama motoru önizlemesi */
.seo-onizleme { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--cizgi); border-radius: 10px; }
.seo-onizleme small { color: #4d5156; font-size: 12px; }
.seo-onizleme b { display: block; margin: 2px 0; color: #1a0dab; font-size: 17px; font-weight: 400; line-height: 1.3; }
.seo-onizleme p { color: #4d5156; font-size: 13px; }
.sayac { float: right; color: var(--soluk); font-size: 11.5px; font-weight: 400; }
.sayac.fazla { color: var(--kirmizi); }

@media (max-width: 700px) {
  .pencere { max-height: calc(100dvh - 20px); margin-top: 10px; }
  .pencere-govde { padding: 16px 16px 6px; }
  .pencere-govde.sekmeli { flex-direction: column; min-height: 0; }
  .sekme-rayi { display: flex; gap: 4px; width: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--cizgi-acik); overflow-x: auto; }
  .sekme-rayi button { width: auto; margin: 0; white-space: nowrap; }
  .sekme-rayi .grup { display: none; }
  .sekme-icerik { padding: 14px 16px 6px; }
  .alan { grid-template-columns: minmax(0, 1fr); }
  .alan > label, .alan > .alan-ad { padding-top: 0; }
  .pencere-alt { padding: 10px 16px; }
}


/* ═════════ LİSTE EKRANI: solda süzgeç, sağda liste ═════════ */
.duzen { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px 6px 0; }
.suzgec, .liste { border: 1px solid #ddd; border-radius: 8px; background: var(--yuzey); }
.liste { min-width: 0; position: relative; }
.liste.yukleniyor::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 8px; background: rgba(255, 255, 255, .55); }

.suzgec summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--cizgi-acik); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none; }
.suzgec summary::-webkit-details-marker { display: none; }
.suzgec summary::after { content: ""; width: 7px; height: 7px; border: solid var(--ikincil); border-width: 0 1.5px 1.5px 0; rotate: -45deg; transition: rotate .15s; }
.suzgec details[open] > summary::after { rotate: 45deg; }
.suzgec details + details summary { border-top: 1px solid var(--cizgi-acik); }
.suzgec details:not([open]) > summary { border-bottom: 0; }
.kisayollar { padding: 8px 0; }
.kisayollar :is(a, button) { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 16px; font-size: 13px; font-weight: 500; text-align: left; }
.kisayollar :is(a, button):hover { background: var(--yuzey-2); }
.kisayollar .ik { color: var(--ana); }
.kisayollar .soluk { color: var(--ikincil); }
.suzgec-alanlar { display: grid; gap: 10px; padding: 14px 16px 16px; }
.suzgec-alanlar .kutu, .suzgec-alanlar .secim-kutu { min-height: 34px; height: 34px; border-color: #e5e8ec; font-size: 12.5px; }
.suzgec-alanlar .secim-kutu { height: auto; }
.suzgec-alanlar > label.anahtar-satir { display: flex; align-items: center; gap: 10px; font-size: 12.5px; cursor: pointer; }
.suzgec-alanlar > label.anahtar-satir .anahtar { scale: .82; margin: -2px -4px -2px auto; }
.suzgec-alt-baslik { margin-top: 6px; color: var(--soluk); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.suzgec-dugmeler { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--cizgi-acik); border-radius: 0 0 8px 8px; background: var(--yuzey); }
.suzgec-dugmeler .dgm { flex: 1; }
.suzgec-ac { display: none; }
body:not(:has(.suzgec)) .suzgec-ac { display: none !important; }   /* çekmece yoksa düğme de yok (r kalıp eki) */

/* Üst şerit: sayı · sayfa boyu · sayfalama */
.liste-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 58px; padding: 12px 16px; border-bottom: 1px solid var(--cizgi-acik); }
.liste-ozet { margin-right: auto; font-size: 13px; }
.liste-ozet b { font-size: 14px; }
.liste-ozet span { color: var(--soluk); }
.sayfada { display: flex; align-items: center; gap: 8px; color: var(--ikincil); }
.sayfada .kutu { width: 72px; height: 34px; font-weight: 600; }
.sayfalama { display: flex; gap: 6px; }
.sayfalama :is(button, span) { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--cizgi); border-radius: 8px; font-size: 13px; }
.sayfalama span { border-color: transparent; color: var(--soluk); }
.sayfalama button:hover { border-color: #cfd6dd; background: var(--yuzey-2); }
.sayfalama button[aria-current] { border-color: var(--ana); background: var(--ana); color: #fff; font-weight: 600; }
.sayfalama button[disabled] { opacity: .4; cursor: default; }
.liste-alt { display: flex; justify-content: flex-end; padding: 12px 16px; }

/* Tablo */
.tablo-kap { position: relative; overflow-x: auto; }
.kayit-tablo { width: 100%; border-spacing: 0; }
.kayit-tablo th { height: 55px; padding: 10px 6px 10px 16px; border-bottom: 1px solid var(--cizgi); background: var(--yuzey-2); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.kayit-tablo td { padding: 12px 6px 12px 16px; border-bottom: 1px solid var(--cizgi-acik); vertical-align: middle; font-size: 13px; }
.kayit-tablo tbody tr:last-child td { border-bottom: 0; }
.kayit-tablo tbody tr:hover { background: #fcfdfd; }
.kayit-tablo tr.secili { background: #f1f8f5; }
.kayit-tablo tr.pasif { background: #fff8f7; }
.kayit-tablo tr.pasif.secili { background: #f1f8f5; }
.kayit-tablo .s-sec { width: 42px; }
.kayit-tablo .s-islem { width: 1%; text-align: right; white-space: nowrap; padding-right: 14px; }
.kayit-tablo .s-ana { min-width: 240px; }
.kayit-ad { font-size: 14px; font-weight: 600; text-align: left; }
.kayit-ad:hover { color: var(--ana); }
.kayit-alt { display: block; color: var(--soluk); font-size: 11.5px; }
.kayit-bag { margin-left: 8px; color: var(--ana-koyu); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.kayit-bag:hover { text-decoration: underline; }
.hucre-soluk { color: var(--soluk); }
.kisa { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.simge-dugme { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #98a1ad; }
.simge-dugme:hover { background: var(--cizgi-acik); color: var(--metin); }
.simge-dugme.tehlike:hover { background: #fdecea; color: #c0392b; }
.dgm-kucuk { height: 28px; padding: 0 10px; font-size: 12px; }
.durum-dugme { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.durum-dugme.acik { background: #e6f4ef; color: var(--ana); }
.durum-dugme.kapali { background: #fdecea; color: #c0392b; }
.durum-dugme::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bos { padding: 48px 20px; color: var(--ikincil); text-align: center; }
.bos .dgm { margin-left: 10px; }

/* Başlıktaki arama kutusu */
.liste-ara { position: relative; display: flex; align-items: center; max-width: 360px; }
.liste-ara > .ik { position: absolute; left: 12px; color: var(--ikincil); pointer-events: none; }
.liste-ara input { width: 100%; height: 34px; padding: 0 32px 0 36px; border: 1px solid var(--ana); border-radius: 8px; background: var(--yuzey); font-size: 13px; font-weight: 400; outline: 0; }
.liste-ara input:focus { box-shadow: 0 0 0 3px rgba(18, 113, 91, .14); }
.liste-ara button { position: absolute; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--soluk); }
.liste-ara button:hover { background: var(--cizgi-acik); color: var(--metin); }

/* Toplu işlem çubuğu: kayıt seçilince altta yüzer */
.toplu-cubuk { position: fixed; left: 50%; bottom: 40px; z-index: 40; display: flex; align-items: center; gap: 12px; width: min(880px, calc(100vw - 20px)); padding: 10px 18px 10px 24px; border-radius: 12px; background: #1b232c; color: #fff; box-shadow: 0 16px 40px rgba(16, 24, 40, .35); translate: -50% 0; animation: cubuk-gir .18s ease-out; }
@keyframes cubuk-gir { from { opacity: 0; translate: -50% 12px; } }
.toplu-cubuk > .ik { color: #4ade80; }
.toplu-cubuk b { font-weight: 600; white-space: nowrap; }
.toplu-cubuk .tumunu-sec { color: #8fe3c5; font-size: 12.5px; text-decoration: underline; white-space: nowrap; }
.toplu-cubuk .kutu { flex: 1 1 260px; min-width: 0; color: var(--metin); font-weight: 500; }
.toplu-cubuk .dgm-ana { border-color: #1fa37f; background: #1fa37f; }
.toplu-cubuk > button:last-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: rgba(255, 255, 255, .8); }
.toplu-cubuk > button:last-child:hover { background: rgba(255, 255, 255, .12); }

/* ═════════ FORM EKLERİ ═════════ */
.form-sonuc { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.form-sonuc.hata { border: 1px solid #f5c6c2; background: #fdecea; color: #a5281b; }
.form-sonuc.tamam { border: 1px solid #c8e6dc; background: var(--ana-acik); color: var(--ana-koyu); }
.form-sonuc.uyari { border: 1px solid #fde9c4; background: #fffaf0; color: #8a5a12; }
.bilgi-kutu { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #e0f2fe; border-radius: 10px; background: #f0f9ff; color: #075985; font-size: 12.5px; line-height: 1.55; }
.bilgi-kutu.uyari { border-color: #fde9c4; background: #fffaf0; color: #8a5a12; }
.alan-grup-baslik { margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--cizgi-acik); color: var(--ikincil); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.alan-grup-baslik:first-child { margin-top: 0; }
.dgm.bekliyor { position: relative; color: transparent !important; pointer-events: none; }
.dgm.bekliyor::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: don .7s linear infinite; }
.dgm:not(.dgm-ana):not(.dgm-kirmizi).bekliyor::after { border-color: rgba(31, 41, 51, .25); border-top-color: var(--metin); }
@keyframes don { to { rotate: 360deg; } }
.pencere-yukleniyor { display: grid; place-items: center; min-height: 220px; color: var(--soluk); }
.tembel-bekle { padding: 40px 0; color: var(--soluk); text-align: center; }

/* ═════════ BİLEŞENLER ═════════ */
/* Aramalı seçim (tekli / çoklu): <select data-ara="kategori_id" multiple> → .secim */
.secim { position: relative; }
.secim-kutu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 36px; padding: 3px 28px 3px 4px; border: 1px solid var(--kutu-cizgi); border-radius: 8px; background: var(--yuzey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2933' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center / 13px no-repeat; cursor: text; }
.secim.acik .secim-kutu, .secim-kutu:focus-within { border-color: var(--ana); box-shadow: 0 0 0 3px rgba(18, 113, 91, .12); }
.secim-kutu input { flex: 1; min-width: 60px; height: 26px; padding: 0 6px; border: 0; outline: 0; background: none; font-size: inherit; }
.secim-cip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 24px; padding: 0 4px 0 8px; border-radius: 5px; background: #e9eef2; font-size: 12px; }
.secim-cip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secim-cip button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: var(--ikincil); font-size: 14px; line-height: 1; }
.secim-cip button:hover { background: #d5dde4; color: var(--metin); }
.secim-tek { flex: 1; min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oneri-liste { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 260px; padding: 4px; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); box-shadow: var(--golge); overflow-y: auto; }
.oneri-liste li { padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.oneri-liste li[aria-selected="true"], .oneri-liste li:hover { background: var(--ana-acik); }
.oneri-liste li.secili { color: var(--ana-koyu); font-weight: 600; }
.oneri-liste li small { display: block; color: var(--soluk); font-size: 11.5px; }
.oneri-liste .bilgi { color: var(--soluk); cursor: default; }
.oneri-liste .bilgi:hover { background: none; }
.oneri-kap { position: relative; }

/* Tarih aralığı süzgeci */
.tarih-araligi { display: grid; gap: 8px; }
.tarih-araligi .ozel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Onay kutulu seçenek listesi (mağaza seçimi vb.) */
.kutu-listesi { display: grid; gap: 2px; max-height: 260px; padding: 6px; border: 1px solid var(--kutu-cizgi); border-radius: 8px; overflow-y: auto; }
.kutu-listesi label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.kutu-listesi label:hover { background: var(--yuzey-2); }
.kutu-listesi .ust { border-bottom: 1px solid var(--cizgi-acik); border-radius: 6px 6px 0 0; font-weight: 600; }
.kutu-listesi small { margin-left: auto; color: var(--soluk); }

/* İlerleme (önde yürüyen toplu iş) */
.ilerleme { height: 8px; margin: 6px 0 10px; border-radius: 4px; background: var(--cizgi-acik); overflow: hidden; }
.ilerleme i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ana); transition: width .4s; }
.ilerleme-sayac { color: var(--ikincil); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Durum ekranları (yetkisiz, paket dışı, bulunamadı) */
.durum-ekrani { display: grid; justify-items: center; gap: 10px; max-width: 480px; margin: 12vh auto 0; padding: 0 20px; text-align: center; }
.durum-ekrani .pencere-ikon { width: 56px; height: 56px; border-radius: 16px; }
.durum-ekrani .pencere-ikon .ik { width: 26px; height: 26px; }
.durum-ekrani h1 { font-size: 20px; font-weight: 700; }
.durum-ekrani p { color: var(--ikincil); font-size: 14px; line-height: 1.6; }

@media (max-width: 1080px) {
  .duzen { grid-template-columns: minmax(0, 1fr); padding: 12px 8px 0; }
  .suzgec { position: fixed; inset: var(--ust-yuk) auto 0 0; z-index: 45; width: min(300px, 88vw); border-radius: 0; overflow-y: auto; translate: -100% 0; transition: translate .2s; }
  .suzgec.acik { translate: 0 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .3); }
  .suzgec-ac { display: inline-flex; }
  .liste-ozet { width: 100%; }
  .sayfalama { overflow-x: auto; }
  .kayit-tablo.genis { min-width: 900px; }
  .toplu-cubuk { bottom: 12px; flex-wrap: wrap; padding: 10px 12px; }
}

/* Resim yükleme kutusu ve SVG simge önizlemesi */
.resim-yukle-alan { display: grid; justify-items: center; gap: 4px; padding: 16px; border: 1.5px dashed #cfd6dd; border-radius: 10px; background: var(--yuzey-2); color: var(--ikincil); font-size: 12px; text-align: center; cursor: pointer; }
.resim-yukle-alan:hover { border-color: var(--ana); }
.resim-yukle-alan img { max-height: 80px; border-radius: 6px; }
.resim-yukle-alan .ik { width: 28px; height: 28px; color: #b3bac3; }
.resim-yukle-alan small { color: var(--soluk); font-size: 11px; }
.svg-alani { display: flex; gap: 12px; align-items: flex-start; }
.svg-onizleme { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 1px dashed #cfd6dd; border-radius: 8px; background: var(--yuzey-2); }
.svg-onizleme img { max-width: 32px; max-height: 32px; }

/* Biçimli metin düzenleyicisinin (mte) araç simgeleri: ortak işaretlemedeki simge sınıfları maskeyle çizilir */
.mte i[class*="icon-"] { display: inline-block; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; vertical-align: middle; }
.mte i.icon-undo2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7 4 12l5 5M4 12h11a5 5 0 0 1 0 10h-2'/%3E%3C/svg%3E"); }
.mte i.icon-redo2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 7 5 5-5 5M20 12H9a5 5 0 0 0 0 10h2'/%3E%3C/svg%3E"); }
.mte i.icon-arrow-down22 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.mte i.icon-bold2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z'/%3E%3C/svg%3E"); }
.mte i.icon-italic2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5h7M7 19h7M14 5l-4 14'/%3E%3C/svg%3E"); }
.mte i.icon-underline2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v7a5 5 0 0 0 10 0V4M5 20h14'/%3E%3C/svg%3E"); }
.mte i.icon-list-unordered { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E"); }
.mte i.icon-list-numbered { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h10M10 12h10M10 18h10M4 5l1.5-1v4M4 16.5a1.5 1.5 0 1 1 2.6 1L4 20h3'/%3E%3C/svg%3E"); }
.mte i.icon-paragraph-left3 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 10h10M4 14h16M4 18h10'/%3E%3C/svg%3E"); }
.mte i.icon-paragraph-center3 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 10h10M4 14h16M7 18h10'/%3E%3C/svg%3E"); }
.mte i.icon-paragraph-right3 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M10 10h10M4 14h16M10 18h10'/%3E%3C/svg%3E"); }
.mte i.icon-link { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.mte i.icon-image2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m4 18 5-5 4 4 3-3 4 4'/%3E%3C/svg%3E"); }
.mte i.icon-eraser2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 15 9-9 6 6-7 7H8zM9 11l5 5M12 19h8'/%3E%3C/svg%3E"); }
.mte i.icon-magic-wand { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 20 11-11M14 5l1 2 2 1-2 1-1 2-1-2-2-1 2-1zM19 13l.6 1.4L21 15l-1.4.6L19 17l-.6-1.4L17 15l1.4-.6z'/%3E%3C/svg%3E"); }
.mte i.icon-bubble-dots4 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4zM8.5 10.5h.01M12 10.5h.01M15.5 10.5h.01'/%3E%3C/svg%3E"); }
.mte i.icon-folder-open { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a1 1 0 0 1 1-1h5l2 2h9a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.mte-etiket { display: block; margin-bottom: 6px; color: #4b5563; font-size: 12.5px; font-weight: 600; }

/* Panelin başka bir ucunun ürettiği hazır içerik (bilgi pencereleri, toplu işlem formları): eski işaretleme yeni kalıpla giyinir */
.eski-icerik table, .eski-form table { width: 100%; border: 1px solid var(--cizgi); border-radius: 10px; border-spacing: 0; overflow: hidden; margin-bottom: 14px; }
.eski-icerik th, .eski-form th { padding: 9px 12px; border-bottom: 1px solid var(--cizgi); background: var(--yuzey-2); color: #7b8591; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.eski-icerik td, .eski-form td { padding: 9px 12px; border-top: 1px solid var(--cizgi-acik); }
.eski-icerik tr:first-child td, .eski-form tr:first-child td { border-top: 0; }
.eski-icerik ul, .eski-form ul { display: grid; gap: 4px; margin-bottom: 12px; }
.eski-icerik .label, .eski-form .label, .eski-icerik .badge, .eski-form .badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--cizgi-acik); color: var(--ikincil); font-size: 11.5px; font-weight: 600; }
.eski-form .alan.dikey > label { display: block; margin-bottom: 6px; }
.eski-form label { color: #4b5563; font-size: 12.5px; font-weight: 600; }
.eski-form label:has(> input[type="checkbox"]), .eski-form label:has(> input[type="radio"]) { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--metin); font-weight: 400; cursor: pointer; }
.eski-form .row, .eski-form [class*="col-"] { display: block; width: auto; float: none; padding: 0; margin: 0; }
.eski-form .text-muted, .eski-form small { color: var(--soluk); font-size: 11.5px; }
.eski-form .hide, .eski-icerik .hide { display: none; }
.eski-form .form-sonuc button { display: none; }

/* Mağaza seçim kutusu (toplu işlem formlarında sunucudan gelir) */
.eski-form #tmc-kutu { border: 1px solid var(--kutu-cizgi); border-radius: 8px; overflow: hidden; }
.eski-form .tmc-ust { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--cizgi-acik); background: var(--yuzey-2); }
.eski-form .tmc-ust label { padding: 0; font-weight: 600; }
.eski-form .tmc-ozet { color: var(--soluk); font-size: 11.5px; }
.eski-form .tmc-liste { max-height: 260px; overflow-y: auto; }
.eski-form .tmc-satir { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--cizgi-acik); }
.eski-form .tmc-grup:first-child .tmc-satir:first-child { border-top: 0; }
.eski-form .tmc-satir:hover { background: var(--yuzey-2); }
.eski-form .tmc-satir.secili { background: #f1f8f5; }
.eski-form .tmc-platform { flex: none; width: 110px; color: var(--soluk); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.eski-form .toplu-alan-hata { margin-top: 5px; color: var(--kirmizi); font-size: 11.5px; }

/* Menü rozetleri: açılır listede sağda; grup başlığında okun solunda */
.acilir-liste .rozet { margin-left: auto; }
.acilir-liste .rozet + .ok { margin-left: 8px; }
.acilir-liste .ok { margin-left: auto; display: inline-flex; }
.acilir-liste .rozet ~ .ok { margin-left: 8px; }
.ik-bos { flex: none; width: 15px; }
.acilir-liste li.secili > a, .acilir-liste li.secili > button { color: var(--ana-koyu); font-weight: 600; }

/* Excel ile içe aktar */
.excel-adimlar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.excel-adim { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--cizgi); border-radius: 10px; cursor: pointer; }
.excel-adim:hover { border-color: var(--ana); }
.excel-adim b { display: block; }
.excel-adim small { display: block; color: var(--soluk); font-size: 11.5px; }
.excel-birak { border-style: dashed; border-color: #cfd6dd; background: var(--yuzey-2); }
.excel-birak.kilitli { opacity: .55; cursor: not-allowed; }
.excel-kip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.excel-kip label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--cizgi); border-radius: 8px; font-size: 12px; cursor: pointer; }
.excel-kip label:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); color: var(--ana-koyu); font-weight: 600; }
.excel-kip input { accent-color: var(--ana); }
.secim-listesi { display: grid; gap: 8px; padding-bottom: 12px; }
.secim-listesi button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--cizgi); border-radius: 10px; text-align: left; }
.secim-listesi button:hover { border-color: var(--ana); background: var(--yuzey-2); }
.secim-listesi small { grid-column: 1; color: var(--ikincil); font-size: 12px; line-height: 1.45; }
.secim-listesi .ik { grid-column: 2; grid-row: 1 / span 2; color: var(--soluk); }
.hata-listesi { display: grid; gap: 4px; max-height: 220px; margin-top: 8px; padding: 10px 12px; border: 1px solid #f5c6c2; border-radius: 8px; background: #fdf6f5; font-size: 12px; overflow-y: auto; }
.tablo code, .bilgi-kutu code { padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .06); font-size: 12px; }
@media (max-width: 700px) { .excel-adimlar, .excel-kip { grid-template-columns: 1fr; } }

/* Üst çubuk açılır kapları ve Bildirimler kutusu */
.acilir-kap { position: relative; }
.ust-sag .acilir-liste { color: var(--metin); }
.bildirimler { max-height: 380px; overflow-y: auto; }
.bildirimler li { cursor: default; }
.bildirimler li[data-git] { cursor: pointer; }
.bildirimler li[data-git]:hover { background: #f3f5f7; }
.bildirimler li p { min-width: 0; font-size: 12.5px; color: var(--ikincil); }
.bildirimler li b { color: var(--metin); }
.bildirimler li small { display: block; }
.bildirimler li:not(.yeni) .nokta { background: #d5dae0; }
.bildirimler .bos { display: block; padding: 22px 16px; color: var(--soluk); text-align: center; }

/* Resim kutuda TAMAMI görünür: % yükseklik ızgara/esnek kutuda çözülmüyor, uzun resim taşıp kırpılıyordu → mutlak yerleşim (11 Kas 2026) */
.resimler figure { position: relative; }
.resimler img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───────── Önizleme penceresi (resim / PDF) — panel.js onizlemePenceresi, belgeGoster, gorselGoster ───────── */
.pencere.onizleme { width: min(460px, calc(100vw - 20px)); }
.pencere.onizleme.belge { width: min(900px, calc(100vw - 20px)); }
.pencere.onizleme .pencere-govde { padding: 0; background: #f3f4f6; }
.pencere.onizleme iframe { display: block; width: 100%; height: min(66vh, 720px); border: 0; background: #fff; }
.pencere.onizleme img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; background: #fff; object-fit: contain; }
.pencere.onizleme .alan-not { margin: 0; padding: 8px 16px; background: var(--yuzey); }
.pencere.onizleme h2 small { color: var(--soluk); font-size: 12.5px; font-weight: 500; }
.pencere.onizleme .tembel-bekle { padding: 24px 16px; text-align: center; }
.onizleme-pdf { display: grid; justify-items: center; gap: 8px; max-height: 72vh; padding: 8px; overflow: auto; }
.onizleme-pdf canvas { max-width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

/* ───────── Önde yürüyen parça parça iş (panel.js ondeTekrarla) ───────── */
.ilerleme.belirsiz i { width: 30%; animation: ilerleme-kay 1.2s ease-in-out infinite; }
@keyframes ilerleme-kay { from { margin-left: -30%; } to { margin-left: 100%; } }
.onde-satirlar { display: grid; gap: 3px; margin: 6px 0 10px; color: var(--ikincil); font-size: 12.5px; }
.onde-satirlar:empty { display: none; }

/* Kaydırmalı tablo kabı (pencere içi uzun tablo; başlık yapışık) */
.tablo-kaydir { max-height: 360px; border-radius: 10px; overflow: auto; }
.tablo-kaydir.yatay { max-height: none; overflow-x: auto; overflow-y: visible; }
.kart .tablo-kaydir { max-height: none; border-radius: 0; }   /* kart içi tablo kesilmez, kart kadar uzar (r kalıp eki 24 Kas 2026; partner'e de taşınmalı) */
.tablo-kaydir .tablo th { position: sticky; top: 0; z-index: 1; }

/* Kayıt kayıt önde işin sonuç listesi (panel.js ondeSirayla) */
.onde-sonuclar { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow: auto; font-size: 13px; }
.onde-sonuclar:empty { display: none; }
.onde-sonuclar li { display: flex; align-items: flex-start; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--cizgi-acik); overflow-wrap: anywhere; }
.onde-sonuclar li .ik { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.onde-sonuclar li.tamam .ik { color: var(--ana); }
.onde-sonuclar li.hata .ik { color: var(--kirmizi); }

/* Medya Kütüphanesi'nden seç düğmesi (data-medya-sec): kutunun altında */
.mds-dugme { margin-top: 6px; }

/* Sürükleyerek sıralama tutamağı (panel.js data-surukle-tut) */
[data-surukle-tut] { cursor: grab; touch-action: none; color: var(--soluk); }
[data-surukle-tut]:hover, [data-surukle-tut]:focus-visible { color: var(--metin); }
[data-surukle-sirala] > .suruklenen { opacity: .65; background: var(--ana-acik); }

/* ───────── Aç/kapa düğmesi YAZININ SAĞINDA (kullanıcı kararı 12 Kas 2026: "kaydırma eskisi gibi sağda olsun, tüm sitede") ─────────
   İşaretlemede düğme etiketin ilk çocuğu olsa da satırın sağ ucuna gider; yazı, "?" ipucu ve diğer parçaların sırası değişmez. */
label:has(> input.anahtar) { display: flex; align-items: center; gap: 10px; align-self: stretch; justify-self: stretch; }
label:has(> input.anahtar) > input.anahtar { order: 99; margin-left: auto !important; }
label:has(> input.anahtar) > :not(input.anahtar):not([type="hidden"]) { min-width: 0; }
