/* MayaBulut — temel stil (satır içi stil yok; CSP: style-src 'self') */
:root {
  --ana: #0f5c73; --ana-koyu: #0a4254; --ana-acik: #e6f2f5;
  --zemin: #f4f6f8; --kart: #fff; --cizgi: #dde3e8; --yazi: #1c2730; --soluk: #66727d;
  --tehlike: #c0392b; --basari: #1e8449; --uyari: #b9770e;
  --yaricap: 8px; --golge: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--yazi); background: var(--zemin);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--ana); }
code { background: var(--ana-acik); padding: 1px 6px; border-radius: 4px; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 18px 0 6px; }
.soluk { color: var(--soluk); }
.gizli, [hidden] { display: none !important; }
.bosluk { flex: 1; }
.sag { text-align: right; }

/* Yerleşim */
.uygulama { display: flex; min-height: 100vh; }
.yan { width: 230px; background: var(--ana-koyu); color: #dbe9ee; padding: 16px 10px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { font-weight: 700; font-size: 18px; color: #fff; padding: 0 8px; letter-spacing: .2px; }
.logo.buyuk { font-size: 24px; color: var(--ana-koyu); text-align: center; margin-bottom: 20px; }
.logo-isaret { color: #5fd3c4; }
.firma-ad { font-size: 12px; opacity: .75; padding: 4px 8px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.menu-grup { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; opacity: .55; padding: 14px 8px 4px; }
.ikon { width: 20px; text-align: center; }
.govde { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ust { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--kart); border-bottom: 1px solid var(--cizgi); }
.ust-sag { display: flex; align-items: center; gap: 12px; }
.kullanici { font-weight: 500; }
.satir-ici { display: inline; margin: 0; }
.icerik { padding: 20px 24px; }

/* Düğmeler */
.dugme { text-decoration: none; display: inline-block; background: var(--ana); color: #fff; border: 1px solid var(--ana); border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer; }
.dugme:hover { background: var(--ana-koyu); }
.dugme:disabled { opacity: .5; cursor: not-allowed; }
.dugme.ikincil { background: #fff; color: var(--yazi); border-color: var(--cizgi); }
.dugme.ikincil:hover { background: var(--zemin); }
.dugme.tehlike { background: #fff; color: var(--tehlike); border-color: #f0c4bf; }
.dugme.kucuk { padding: 4px 10px; font-size: 13px; }
.dugme.tam { width: 100%; padding: 10px; margin-top: 6px; }
.rozet { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: var(--ana-acik); color: var(--ana-koyu); }
.rozet.uyari { background: #fdf2e0; color: var(--uyari); }

/* Form */
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; margin-bottom: 10px; font-size: 13px; }
.form label small { font-weight: 400; color: var(--soluk); }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--cizgi); border-radius: 6px; background: #fff; color: var(--yazi); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15,92,115,.25); border-color: var(--ana); }
input:disabled, select:disabled, textarea:disabled { background: #f7f8f9; }
.hatali { border-color: var(--tehlike) !important; background: #fff6f5; }
.form label.onay { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.genis2 { grid-column: 1 / -1; }
.iki-kolon { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.secim-ekle { display: flex; gap: 6px; }
.secim-ekle select { flex: 1; }
.secim-ekle button { width: 34px; border: 1px solid var(--cizgi); background: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; }
.gizli-alan { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Giriş sayfası */
.giris-sayfa { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e6f2f5, #f4f6f8 60%); padding: 20px; }
.giris-kutu { width: 100%; max-width: 440px; background: var(--kart); border-radius: 12px; padding: 32px; box-shadow: 0 10px 30px rgba(10,66,84,.12); }
.genis-kutu { max-width: 680px; }
.ust-bosluk { margin-top: 22px; }
.alt-not { text-align: center; color: var(--soluk); margin: 16px 0 0; }
.uyari-kutu { padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; border: 1px solid; }
.uyari-kutu.hata { background: #fdecea; border-color: #f5c6c0; color: #8e2a1f; }
.uyari-kutu.basari { background: #e9f7ef; border-color: #b7e1c7; color: #1b5e37; }
.uyari-kutu.uyari { background: #fdf2e0; border-color: #f3d7a6; color: #7d5208; }

/* Panel kartları */
.kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: 18px; box-shadow: var(--golge); text-decoration: none; color: inherit; }
a.kart:hover { border-color: var(--ana); }
.kart-sayi { font-size: 26px; font-weight: 700; color: var(--ana-koyu); }
.kart-ad { color: var(--soluk); margin-top: 4px; }

/* Liste */
.arac-cubugu { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.arama { width: 320px; max-width: 100%; }
.tablo { width: 100%; border-collapse: collapse; background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yaricap); overflow: hidden; }
.tablo th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--soluk); background: #fafbfc; padding: 9px 10px; border-bottom: 1px solid var(--cizgi); font-weight: 600; }
.tablo th.sag { text-align: right; }
.tablo td { padding: 8px 10px; border-bottom: 1px solid #eef1f4; }
.tablo tbody tr:hover { background: #f8fbfc; }
.tablo tr.pasif td { color: #9aa4ad; }
.tablo td.eksi { color: var(--tehlike); }
.tablo.kucuk td { padding: 5px 8px; }
.bos-satir { text-align: center; color: var(--soluk); padding: 28px !important; }
.sayfalama { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; }

/* Pencere */
.pencere { border: none; border-radius: 12px; padding: 0; width: 640px; max-width: calc(100vw - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pencere.genis { width: 820px; }
.pencere::backdrop { background: rgba(15,30,40,.45); }
.pencere header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--cizgi); }
.pencere header h2 { margin: 0; }
.pencere .kapat { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--soluk); }
.pencere footer .dugme.kapat { font-size: inherit; background: #fff; color: var(--yazi); border: 1px solid var(--cizgi); }
.pencere .sekme { padding: 16px 20px; max-height: 60vh; overflow-y: auto; }
.pencere footer { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--cizgi); background: #fafbfc; }
.sekmeler { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--cizgi); }
.sekmeler button { background: none; border: none; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--soluk); border-bottom: 2px solid transparent; }
.sekmeler button.aktif { color: var(--ana); border-bottom-color: var(--ana); font-weight: 600; }
fieldset.adres { border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: 12px; margin: 0 0 10px; }
.satir { display: flex; gap: 8px; margin-bottom: 6px; }
.birim-satir select { width: 200px; }
.birim-satir input { width: 140px; }

/* Bildirim */
.bildirim { position: fixed; right: 20px; bottom: 20px; padding: 12px 16px; border-radius: 8px; color: #fff; background: var(--basari); box-shadow: var(--golge); opacity: 0; transform: translateY(10px); transition: all .2s; pointer-events: none; max-width: 420px; z-index: 100; }
.bildirim.goster { opacity: 1; transform: none; }
.bildirim.hata { background: var(--tehlike); }

@media (max-width: 760px) {
  .uygulama { flex-direction: column; }
  .yan { width: 100%; height: auto; position: static; }
  .izgara, .iki-kolon { grid-template-columns: 1fr; }
  .icerik { padding: 14px; }
}

/* Adım 2 ekranları */
.rozet.basari { background: #e9f7ef; color: var(--basari); }
.onay-listesi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
fieldset.yetki-grup { border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: 8px 12px 4px; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
fieldset.yetki-grup legend { font-weight: 600; padding: 0 6px; display: flex; gap: 6px; align-items: center; }
.dar-kutu { max-width: 460px; }
.kart.form { padding: 20px; }
.iki-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 18px; align-items: start; }
.form-alt { display: flex; justify-content: flex-end; margin-top: 8px; }
.bilgi-listesi { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.bilgi-listesi dt { color: var(--soluk); }
.bilgi-listesi dd { margin: 0; font-weight: 500; }
.modul-listesi { margin: 0 0 12px; padding-left: 18px; }
.tanim-duzen { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.tanim-menu { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: 6px; position: sticky; top: 10px; }
.tanim-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 7px 10px; border-radius: 6px; cursor: pointer; font: inherit; color: var(--yazi); }
.tanim-menu button:hover { background: var(--zemin); }
.tanim-menu button.aktif { background: var(--ana-acik); color: var(--ana-koyu); font-weight: 600; }
.menu-grup.koyu { color: var(--soluk); opacity: 1; padding: 10px 10px 4px; }
.tanim-baslik { margin: 0; }
.tablo.fark td.eski { color: var(--tehlike); }
.tablo.fark td.yeni { color: var(--basari); }
.tablo.fark td { word-break: break-word; }
a.kullanici { color: inherit; text-decoration: none; }
a.kullanici:hover { text-decoration: underline; }
@media (max-width: 900px) { .iki-panel, .tanim-duzen { grid-template-columns: 1fr; } .tanim-menu { position: static; } }

/* Adım 3: evraklar */
tr.tiklanir { cursor: pointer; }
.rozet.durum-taslak { background: #eef1f4; color: #4b5563; }
.rozet.durum-onaylandi { background: #e6f2f5; color: var(--ana-koyu); }
.rozet.durum-kismi { background: #fdf2e0; color: var(--uyari); }
.rozet.durum-tamamlandi { background: #e9f7ef; color: var(--basari); }
.rozet.durum-iptal { background: #fdecea; color: var(--tehlike); }
.evrak-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.evrak-kimlik { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.evrak-aksiyon { display: flex; gap: 6px; flex-wrap: wrap; }
.evrak-baslik.kart { padding: 16px 18px 6px; margin-bottom: 14px; }
.izgara.dort { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.otomatik { position: relative; display: block; }
.otomatik input { width: 100%; }
.oneri { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--cizgi); border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto; min-width: 320px; }
.oneri-oge { padding: 7px 10px; cursor: pointer; display: flex; gap: 6px; align-items: baseline; font-weight: 400; }
.oneri-oge.aktif, .oneri-oge:hover { background: var(--ana-acik); }
.sag-uc { margin-left: auto; font-size: 12px; }
.uyari-yazi { color: var(--tehlike) !important; font-weight: 600; }
.satir-kap { padding: 0; overflow-x: auto; }
.satirlar { border: none; min-width: 1100px; }
.satirlar td { padding: 4px 4px; }
.satirlar input, .satirlar select { width: 100%; padding: 5px 6px; }
.satirlar .dar { width: 32px; text-align: center; color: var(--soluk); }
.satirlar .tip-kol { width: 86px; }
.satirlar .urun-kol { width: 260px; }
.satirlar .sayi-kol { width: 84px; }
.satirlar .birim-kol { width: 104px; }
.satirlar .yuzde-kol { width: 62px; }
.satirlar .tutar-kol { width: 110px; }
.satirlar td.tutar { font-weight: 600; white-space: nowrap; }
.satirlar td.teslim { color: var(--soluk); white-space: nowrap; font-size: 12px; }
.satirlar tr.not-satiri td { background: #fafbfc; }
.satir-sil { background: none; border: none; color: var(--tehlike); font-size: 18px; cursor: pointer; }
.satir-alt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--cizgi); }
.evrak-alt { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; margin-top: 14px; }
.aciklama-kap { flex: 1; max-width: 560px; }
.aciklama-kap textarea { width: 100%; }
table.toplamlar { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--yaricap); min-width: 300px; border-collapse: collapse; }
.toplamlar td { padding: 7px 14px; }
.toplamlar td:last-child { text-align: right; font-weight: 500; white-space: nowrap; }
.toplamlar tr.genel td { border-top: 2px solid var(--ana); font-size: 16px; font-weight: 700; color: var(--ana-koyu); }
.gecmis-kap { padding: 12px 18px; margin-top: 14px; }
.gecmis-kap ul { margin: 4px 0 8px; padding-left: 18px; }
.kart.gecmis-kap h3 { margin-top: 0; }
@media (max-width: 1100px) { .izgara.dort { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Adım 4: stok ve depo */
.fark.artı { color: var(--basari); font-weight: 600; }
.fark.eksi { color: var(--tehlike); font-weight: 600; }
.sayim-arac { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--cizgi); flex-wrap: wrap; }
.sayim-arac label.onay { margin: 0; flex-direction: row; display: flex; gap: 6px; align-items: center; }
.fis-satirlar { min-width: 760px; }
.tur-aciklama { margin: 4px 0 10px; }
.foy-stok { width: 380px; max-width: 100%; }
.foy-ozet { display: flex; gap: 28px; padding: 10px 16px; margin-bottom: 10px; font-weight: 500; }
.tablo td.kalin, .kalin { font-weight: 600; }
.tablo tr.devir td { background: #fafbfc; font-style: italic; }
.tablo tr.min-alti td { background: #fff8ec; }
.kucuk-yazi { font-size: 12px; }
.satir-ici-etiket { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.barkod-ayar { padding: 14px 16px; margin-bottom: 16px; }
.barkod-ara-kap { width: 340px; }
input.kisa { width: 80px; }
/* Etiket önizleme ve baskı */
.etiket-sayfasi { display: grid; gap: 0; background: #fff; border: 1px dashed var(--cizgi); width: 210mm; padding: 0; }
.etiket-sayfasi:empty { display: none; }
.etiket { overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5mm 2mm; border: 1px dotted #d0d5da; break-inside: avoid; }
.etiket-ad { font-size: 9pt; font-weight: 600; text-align: center; line-height: 1.15; max-height: 2.4em; overflow: hidden; width: 100%; }
.etiket-barkod { width: 100%; height: auto; max-height: 60%; }
.etiket-alt { display: flex; justify-content: space-between; width: 100%; font-size: 8pt; gap: 4px; }
.etiket-fiyat { font-size: 11pt; }
.sablon-a4-24 { grid-template-columns: repeat(3, 70mm); grid-auto-rows: 37mm; }
.sablon-a4-40 { grid-template-columns: repeat(4, 52.5mm); grid-auto-rows: 29.7mm; }
.sablon-a4-65 { grid-template-columns: repeat(5, 38mm); grid-auto-rows: 21.2mm; padding: 10.7mm 4.75mm; }
.sablon-a4-65 .etiket-ad { font-size: 6.5pt; }
.sablon-a4-65 .etiket-alt { font-size: 6pt; }
.sablon-termal-50x30 { grid-template-columns: 50mm; grid-auto-rows: 30mm; width: 50mm; }
.sablon-termal-100x50 { grid-template-columns: 100mm; grid-auto-rows: 50mm; width: 100mm; }
.sablon-termal-100x50 .etiket-ad { font-size: 13pt; }
@media print {
  @page { margin: 0; }
  body.uygulama, .uygulama { display: block; background: #fff; }
  .yan, .ust, .no-print, .bildirim, .arac-cubugu .dugme, .sayfalama { display: none !important; }
  .icerik { padding: 0; }
  .etiket-sayfasi { border: none; }
  .etiket { border: none; }
  .sablon-termal-50x30 .etiket, .sablon-termal-100x50 .etiket { break-after: page; }
  #stok-durum .arac-cubugu { display: none; }
}

/* Adım 5: finans */
.yeni-fis-dugmeleri { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rozet.fis-tahsilat { background: #e9f7ef; color: var(--basari); }
.rozet.fis-odeme { background: #fdecea; color: var(--tehlike); }
.rozet.fis-virman, .rozet.fis-acilis { background: #e6f2f5; color: var(--ana-koyu); }
.rozet.fis-masraf { background: #fdf2e0; color: var(--uyari); }
.rozet.fis-dekont { background: #eef1f4; color: #4b5563; }
.cek-kap { padding: 0; margin-bottom: 14px; }
.cek-satirlar { min-width: 900px; }
.cek-toplam { padding: 10px 14px; border-top: 1px solid var(--cizgi); }
.satir-alt.ust-cizgisiz { border-top: none; }
.ciro-kap { border-top: 1px solid var(--cizgi); }
.ciro-tablo { border: none; }
.iki-panel.esit { grid-template-columns: 1fr 1fr; }
tr.vadesi-gecmis td { background: #fff6f5; }
td.alacakli { color: var(--basari); }
.cek-bilgi { grid-template-columns: auto 1fr auto 1fr; }
.ust-bosluk { margin-top: 22px; }

/* Adım 6: raporlar */
.rapor-filtre label { display: inline-flex; align-items: center; gap: 4px; }
.rapor-grafik-kap { margin-bottom: 18px; }
.rapor-grafik-kap h3 { margin-top: 0; }
.grafik-svg { width: 100%; height: auto; display: block; }
.grafik-lejant { display: flex; gap: 16px; font-size: 12px; color: var(--soluk); margin-top: 6px; }
.lejant-oge { display: inline-flex; align-items: center; gap: 4px; }
.rapor-tablo { margin-bottom: 18px; overflow-x: auto; }
.rapor-tablo tfoot td { background: #fafbfc; border-top: 1px solid var(--cizgi); }
.kart-sayi.eksi { color: var(--tehlike); }
.rapor-kartlar .kart-sayi { font-size: 20px; }
.kredi-plan { max-height: 320px; overflow-y: auto; }
.tablo tr.odendi td { color: var(--soluk); }
@media print {
  .rapor-filtre, .yan, .ust { display: none !important; }
  .rapor-tablo { overflow: visible; }
}
.kredi-pencere .odeme-kap { margin-top: 14px; }

/* ═══ Akordeon yan menü ═══ */
.menu-ara-kap { padding: 12px 4px 6px; }
.menu-ara { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 6px; padding: 7px 10px; font: inherit; font-size: 13px; }
.menu-ara::placeholder { color: rgba(219,233,238,.6); }
.menu-ara:focus { outline: none; border-color: #5fd3c4; background: rgba(255,255,255,.12); }
.akordeon { display: flex; flex-direction: column; gap: 2px; }
.akordeon a { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 6px; color: #dbe9ee; text-decoration: none; font-size: 13.5px; }
.akordeon a:hover { background: rgba(255,255,255,.08); }
.akordeon a.aktif { background: rgba(95,211,196,.2); color: #fff; font-weight: 600; }
.akordeon .ikon { width: 20px; text-align: center; flex-shrink: 0; }
.menu-tek { margin-bottom: 4px; }
.menu-grup-kap { border-radius: 8px; }
.menu-grup-kap[open] { background: rgba(0,0,0,.14); }
.menu-grup-kap summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 8px; cursor: pointer; user-select: none; font-weight: 600; font-size: 13.5px; color: #eef6f8; }
.menu-grup-kap summary::-webkit-details-marker { display: none; }
.menu-grup-kap summary:hover { background: rgba(255,255,255,.07); }
.menu-grup-kap summary:focus-visible { outline: 2px solid #5fd3c4; outline-offset: -2px; }
.menu-grup-kap summary .grup-ad { flex: 1; }
.menu-grup-kap summary .sayac { font-size: 11px; font-weight: 500; opacity: .55; }
.menu-grup-kap summary::after { content: '›'; font-size: 18px; line-height: 1; opacity: .7; transition: transform .18s ease; }
.menu-grup-kap[open] summary::after { transform: rotate(90deg); }
.menu-grup-kap:has(a.aktif) > summary { color: #5fd3c4; }
.menu-ogeler { padding: 2px 6px 8px 14px; display: flex; flex-direction: column; gap: 1px; border-left: 1px solid rgba(255,255,255,.1); margin-left: 17px; }
.menu-grup-kap.acildi[open] .menu-ogeler { animation: menuAc .16s ease-out; }
@keyframes menuAc { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.akordeon .gizli-arama { display: none; }
.akordeon .bos-arama { padding: 8px; font-size: 12px; opacity: .6; }
.menu-ac-dugme { display: none; }
@media (max-width: 760px) {
  .menu-ac-dugme { display: inline-flex; background: none; border: 1px solid var(--cizgi); border-radius: 6px; padding: 4px 10px; font-size: 18px; cursor: pointer; margin-right: 8px; }
  .yan { display: none; }
  body.menu-acik .yan { display: block; position: fixed; inset: 0 auto 0 0; width: 280px; height: 100vh; z-index: 50; overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: reduce) { .menu-grup-kap.acildi[open] .menu-ogeler { animation: none; } .menu-grup-kap summary::after { transition: none; } }

/* ═══ Platform yönetim paneli ═══ */
.yonetim-panel .yan { background: #1d2433; }
.yonetim-panel .logo-isaret { color: #f0b44c; }
.yonetim-panel .akordeon a.aktif { background: rgba(240,180,76,.2); }
.yonetim-panel .menu-grup-kap:has(a.aktif) > summary { color: #f0b44c; }
.rozet.tehlike { background: #fdecea; color: var(--tehlike); }
.rozet.durum-aktif { background: #e9f7ef; color: var(--basari); }
.rozet.durum-demo { background: #fdf2e0; color: var(--uyari); }
.rozet.durum-askida, .rozet.durum-suresi_bitti { background: #fdecea; color: var(--tehlike); }
.rozet.durum-bilgi { background: var(--ana-acik); color: var(--ana-koyu); }
.iki-kolon.hizali { align-items: start; gap: 20px; }
.y-sekmeler { margin-bottom: 14px; padding: 0; }
.y-sekme.kart { padding: 18px; }
.genis-tam { grid-column: 1 / -1; }
.cubuk-hucre meter { width: 100%; height: 12px; }
.gecici-sifre { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gecici-sifre-kod { font-size: 15px; letter-spacing: 1px; user-select: all; }
.uyari-kutu.bilgi { background: var(--ana-acik); color: var(--ana-koyu); border: 1px solid #bcdbe3; }
.plan-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.plan-kart h3 { margin-top: 0; display: inline-block; margin-right: 8px; }
.tablo tr.uyari-satir td { background: #fff8ec; }
.orta { text-align: center; }
.qr-kap { display: flex; justify-content: center; margin: 10px 0; }
.qr-kap svg { border: 1px solid var(--cizgi); border-radius: 8px; }
.totp-sir { font-size: 15px; letter-spacing: 1px; user-select: all; }
.kurulum-adimlar { padding-left: 18px; margin: 0 0 8px; line-height: 1.6; color: var(--yazi); }
.kod-giris { font-size: 22px; letter-spacing: 6px; text-align: center; }
.kurulum-sy { border: 1px solid var(--cizgi); border-radius: var(--yaricap); padding: 12px 14px; margin: 14px 0; }
.kurulum-sy summary { cursor: pointer; }
.ust-hiza { align-self: end; }

/* Firma ekranında platform duyuruları */
.duyuru { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--yaricap); margin-bottom: 12px; border: 1px solid; }
.duyuru.bilgi { background: var(--ana-acik); border-color: #bcdbe3; color: var(--ana-koyu); }
.duyuru.uyari { background: #fdf6e9; border-color: #f2d8a7; color: #7a4f06; }
.duyuru.kritik { background: #fdecea; border-color: #f3b8b1; color: #8e2318; }
.duyuru .duyuru-metin { flex: 1; white-space: pre-line; }
.duyuru .kapat-duyuru { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: .7; }

/* ═══════════════════════════════════════════════════════════════════
   TEMA — orijinal projenin mavi tonları (lacivert menü #0d1b36, ana mavi #0057ff,
   açık zemin #f0f4f9, Outfit + DM Mono yazı tipleri). Yazı tipleri sunucudan
   (assets/fonts) yüklenir; harici CDN yok → CSP 'self' ile uyumlu.
   ═══════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/outfit-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 500; src: url('fonts/outfit-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 500; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 600; src: url('fonts/outfit-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 600; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 700; src: url('fonts/outfit-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 700; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/dm-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('fonts/dm-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('fonts/dm-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('fonts/dm-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ana: #0057ff; --ana-koyu: #0d1b36; --ana-acik: #dce8ff; --buz: #eaf1fb;
  --zemin: #f0f4f9; --kart: #fff; --cizgi: #d0daea; --yazi: #0d1b36; --soluk: #7b8eab;
  --tehlike: #e8334a; --basari: #00a36c; --uyari: #c27c0e; --altin: #f5a623; --mor: #7c3aed;
  --yaricap: 12px; --golge: 0 2px 12px rgba(0,87,255,.08);
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
body.uygulama { background: var(--zemin); }
body.uygulama::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(0,87,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,87,255,.025) 1px, transparent 1px);
  background-size: 40px 40px; }
.govde { position: relative; z-index: 1; }
a { color: var(--ana); }
h1 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
code, .mono { font-family: var(--mono); }

/* Yan menü */
.yan { width: 260px; background: #0d1b36; color: rgba(255,255,255,.7); padding: 0 0 14px; }
.yan::-webkit-scrollbar { width: 4px; } .yan::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.yan .logo { display: flex; align-items: center; gap: 10px; padding: 20px 18px 4px; font-size: 16px; letter-spacing: -.2px; }
.yan .logo-isaret { width: 34px; height: 34px; border-radius: 10px; background: var(--ana); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 16px rgba(0,87,255,.5); }
.yan .firma-ad { font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.4); opacity: 1; padding: 2px 18px 16px 62px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 0; }
.menu-ara-kap { padding: 10px 12px 8px; position: sticky; top: 0; z-index: 3; background: #0d1b36; }
.menu-ara { border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); font-size: 12.5px; padding: 8px 12px; }
.menu-ara:focus { border-color: rgba(0,87,255,.7); background: rgba(255,255,255,.1); outline: none; }
.menu-ara::placeholder { color: rgba(255,255,255,.35); }
.akordeon { gap: 0; padding: 0; }
.menu-grup-kap { border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.menu-grup-kap[open] { background: transparent; }
.menu-grup-kap summary { padding: 11px 18px; border-radius: 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); }
.menu-grup-kap summary:hover { background: rgba(255,255,255,.05); color: #fff; }
.menu-grup-kap[open] > summary { color: #fff; background: rgba(255,255,255,.06); }
.menu-grup-kap summary::after { content: '▸'; font-size: 10px; color: rgba(255,255,255,.3); }
.menu-grup-kap[open] summary::after { color: rgba(255,255,255,.6); }
.menu-grup-kap summary .sayac { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.35); opacity: 1; }
.menu-grup-kap:has(a.aktif) > summary { color: #fff; }
.menu-grup-kap:has(a.aktif) > summary .ikon { filter: drop-shadow(0 0 6px rgba(0,87,255,.8)); }
.menu-ogeler { border-left: 0; margin: 0; padding: 4px 8px 8px; gap: 1px; }
.akordeon .menu-ogeler a { position: relative; padding: 7px 12px 7px 20px; border-radius: 7px; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 500; }
.akordeon .menu-ogeler a::before { content: ''; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.2); }
.akordeon .menu-ogeler a .ikon { display: none; }
.akordeon a:hover { background: rgba(255,255,255,.07); color: #fff; }
.akordeon a.aktif, .yonetim-panel .akordeon a.aktif { background: linear-gradient(90deg, var(--ana), #2f6dff); color: #fff; font-weight: 600; box-shadow: 0 3px 14px rgba(0,87,255,.35); }
.akordeon .menu-ogeler a.aktif::before { background: #fff; }
.akordeon .menu-tek { margin: 4px 8px; padding: 9px 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }

/* Üst çubuk */
.ust { background: rgba(255,255,255,.85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--cizgi); padding: 14px 28px; position: sticky; top: 0; z-index: 20; }
.icerik { padding: 22px 28px; }
.kullanici { color: var(--yazi); text-decoration: none; font-weight: 600; }

/* Düğmeler */
.dugme { border-radius: 8px; font-weight: 600; padding: 9px 16px; background: var(--ana); border: 1px solid var(--ana); box-shadow: 0 3px 12px rgba(0,87,255,.25); transition: .15s; }
.dugme:hover { background: #0049d6; border-color: #0049d6; }
.dugme.ikincil { background: #fff; color: var(--yazi); border: 1.5px solid var(--cizgi); box-shadow: none; }
.dugme.ikincil:hover { border-color: var(--ana); color: var(--ana); background: #fff; }
.dugme.tehlike { background: #fff; color: var(--tehlike); border: 1.5px solid #f7c2ca; box-shadow: none; }
.dugme.tehlike:hover { background: #fef0f2; }
.dugme.kucuk { padding: 5px 11px; font-size: 12.5px; }

/* Form alanları */
input, select, textarea { border: 1.5px solid var(--cizgi); border-radius: 8px; padding: 8px 11px; background: #f8faff; transition: border-color .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ana); background: #fff; box-shadow: 0 0 0 3px rgba(0,87,255,.12); }
input:disabled, select:disabled, textarea:disabled { background: #eef2f8; color: var(--soluk); }
input[type=checkbox], input[type=radio] { accent-color: var(--ana); }
.form label { font-weight: 600; font-size: 12.5px; color: #34466a; }

/* Kartlar ve göstergeler */
.kart { border-radius: var(--yaricap); border: 1px solid var(--cizgi); box-shadow: var(--golge); }
.kartlar > .kart { position: relative; overflow: hidden; }
.kartlar > .kart::after { content: ''; position: absolute; top: -22px; right: -22px; width: 80px; height: 80px; border-radius: 50%; background: var(--ana); opacity: .07; }
.kartlar > .kart:nth-child(4n+2)::after { background: var(--basari); }
.kartlar > .kart:nth-child(4n+3)::after { background: var(--altin); }
.kartlar > .kart:nth-child(4n+4)::after { background: var(--mor); }
.kart-sayi { font-family: var(--mono); font-weight: 500; font-size: 24px; color: var(--yazi); letter-spacing: -.5px; }
.kart-sayi.eksi { color: var(--tehlike); }
.kart-ad { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soluk); margin-top: 6px; }
a.kart:hover { border-color: var(--ana); box-shadow: 0 6px 22px rgba(0,87,255,.14); }

/* Tablolar */
.tablo { border-radius: var(--yaricap); border: 1px solid var(--cizgi); box-shadow: var(--golge); }
.tablo th { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--soluk); background: #f8faff; padding: 10px 14px; border-bottom: 1px solid var(--cizgi); }
.tablo td { padding: 10px 14px; border-bottom: 1px solid rgba(208,218,234,.45); }
.tablo tbody tr:hover, .tablo tbody tr:hover td { background: var(--buz); }
.tablo.kucuk td { padding: 6px 10px; }
.tablo td.sag, .tablo td.kalin.sag { font-variant-numeric: tabular-nums; }
.tablo tfoot td { background: #f8faff; }

/* Rozetler */
.rozet { font-weight: 600; font-size: 11.5px; background: var(--ana-acik); color: #0040c0; }
.rozet.uyari, .rozet.durum-demo { background: #fff4e0; color: #a86a00; }
.rozet.basari, .rozet.durum-aktif, .rozet.durum-tamamlandi { background: #e3f8ef; color: #00804f; }
.rozet.tehlike, .rozet.durum-iptal, .rozet.durum-askida, .rozet.durum-suresi_bitti { background: #fef0f2; color: #c4162f; }
.rozet.durum-onaylandi { background: var(--ana-acik); color: #0040c0; }

/* Sekmeler, pencere, bildirim */
.sekmeler button.aktif { color: var(--ana); border-bottom-color: var(--ana); }
.pencere { border-radius: 14px; box-shadow: 0 24px 70px rgba(13,27,54,.3); }
.pencere::backdrop { background: rgba(13,27,54,.5); }
.pencere footer { background: #f8faff; }
.uyari-kutu { border-radius: 9px; }
.bildirim { border-radius: 10px; box-shadow: 0 10px 30px rgba(13,27,54,.25); }

/* Giriş sayfaları */
.giris-sayfa { background: #0d1b36; background-image: radial-gradient(circle at 20% 15%, rgba(0,87,255,.35), transparent 45%), radial-gradient(circle at 85% 90%, rgba(47,109,255,.25), transparent 40%); }
.giris-kutu { border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.logo.buyuk { color: var(--yazi); }
.logo.buyuk .logo-isaret { color: var(--ana); }

/* Yönetim paneli: aynı mavi tema, logoda altın vurgu ile ayırt edilir */
.yonetim-panel .yan { background: #0d1b36; }
.yonetim-panel .yan .logo-isaret { background: linear-gradient(135deg, #f5a623, #e08a00); box-shadow: 0 4px 16px rgba(245,166,35,.45); color: #fff; }
.yonetim-panel .menu-grup-kap:has(a.aktif) > summary { color: #fff; }

@media (max-width: 760px) {
  .ust { padding: 10px 14px; }
  body.menu-acik .yan { width: 280px; }
}
@media print {
  body.uygulama::before { display: none; }
  .ust { position: static; backdrop-filter: none; }
  .kartlar > .kart::after { display: none; }
}

/* Tanıtım kartları (hizmet / kasa / banka) */
.kart-ozet { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kart-ozet:empty { display: none; }
.ozet-kutu { background: #fff; border: 1px solid var(--cizgi); border-radius: 10px; padding: 10px 16px; min-width: 170px; box-shadow: var(--golge); display: flex; flex-direction: column; gap: 2px; }
.ozet-kutu small { font-size: 10.5px; font-weight: 700; color: var(--soluk); text-transform: uppercase; letter-spacing: .05em; }
.ozet-kutu b { font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--yazi); }
.liste-kart { padding: 0; overflow: hidden; }
.liste-kart .arac-cubugu { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--cizgi); }
.liste-kart .tablo.duz { border: 0; border-radius: 0; box-shadow: none; }
.liste-kart .sayfalama { padding: 10px 14px; margin: 0; border-top: 1px solid var(--cizgi); }
.kod-rozet { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 12px; background: #eef3fb; color: #1e3a5f; border-radius: 6px; padding: 3px 8px; }
.para { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tablo td.para.eksi, .para.eksi { color: var(--tehlike); }
.islem-hucre { white-space: nowrap; }
.pencere-ust-renkli { background: linear-gradient(120deg, #1e3a5f, #274b7a); color: #fff; border-bottom: 0 !important; }
.pencere-ust-renkli h2 { color: #fff; }
.pencere-ust-renkli .pencere-alt { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 2px; }
.pencere-ust-renkli .kapat { color: rgba(255,255,255,.8) !important; }
.kart-bolum { border: 1px solid var(--cizgi); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 12px; }
.kart-bolum legend { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ana); padding: 0 6px; }
.genis-uc { grid-column: span 3; }
.kart-bakiye { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--buz); border: 1px solid var(--cizgi); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.kart-bakiye b { font-size: 18px; }
.kart-pencere .sekme { max-height: 68vh; }
@media (max-width: 1100px) { .genis-uc { grid-column: 1 / -1; } }
/* Evrak / fiş satır tablolarında alanlar sıkı (tema dolgusu hücreleri daraltmasın) */
.tablo.satirlar td, .fis-satirlar td, .cek-satirlar td { padding: 6px 6px; }
.tablo.satirlar input, .tablo.satirlar select, .fis-satirlar input, .fis-satirlar select, .cek-satirlar input, .cek-satirlar select { padding: 6px 7px; font-size: 13px; }
.tablo.satirlar select[name="satir_tipi"], .tablo.satirlar td:nth-child(2) select { min-width: 84px; }

/* ═══ Üst çubuk (orijinaldeki .app-topbar: lacivert, sağda lisans · mesaj · bildirim · tam ekran · kullanıcı) ═══ */
.ust.ust-cubuk { background: #0d1b36; backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 9px 20px 9px 28px; gap: 12px; }
.ust-cubuk h1 { color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ust-cubuk .ust-sag { gap: 8px; flex-shrink: 0; margin-left: auto; }
.ust-cubuk .menu-ac-dugme { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.ust-lisans { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e2e8f0; font-size: 12px; white-space: nowrap; }
.ust-lisans b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ust-lisans.iyi b { color: #4ade80; }
.ust-lisans.yakin { background: rgba(245,158,11,.16); } .ust-lisans.yakin b { color: #fbbf24; }
.ust-lisans.kritik { background: rgba(239,68,68,.22); color: #fecaca; } .ust-lisans.kritik b { color: #fff; }
.ust-lisans.suresiz { color: #cbd5e1; }
.ust-demo { font-size: 9px; font-weight: 800; letter-spacing: .06em; background: #a78bfa; color: #1e1b4b; border-radius: 4px; padding: 1px 5px; }
.ust-acilir { position: relative; }
.ust-dugme { position: relative; width: 34px; height: 34px; border-radius: 9px; border: none; background: rgba(255,255,255,.06); color: #fff; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.ust-dugme:hover, .ust-dugme[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.ust-dugme:focus-visible, .ust-kullanici:focus-visible { outline: 2px solid #5b8cff; outline-offset: 2px; }
.ust-rozet { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--tehlike); color: #fff; font-size: 9.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: inherit; box-shadow: 0 0 0 2px #0d1b36; }
.ust-rozet.sabit { position: static; box-shadow: none; margin-left: auto; }
.ust-kullanici { display: flex; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; border-radius: 9px; background: rgba(255,255,255,.06); border: none; cursor: pointer; max-width: 260px; min-width: 0; font: inherit; transition: background .15s; }
.ust-kullanici:hover, .ust-kullanici[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.ust-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--ana); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; position: relative; }
.ust-avatar.kucuk { width: 30px; height: 30px; }
.ust-kullanici-metin { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.ust-kullanici-ad { font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust-kullanici-rol { font-size: 10px; color: rgba(255,255,255,.4); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust-ok { color: rgba(255,255,255,.45); font-size: 10px; }
.ust-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 320px; background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(13,27,54,.28); overflow: hidden; z-index: 300; border: 1px solid var(--cizgi); animation: panelAc .14s ease-out; }
.ust-panel.dar { width: 240px; }
@keyframes panelAc { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ust-panel-bas { padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--soluk); border-bottom: 1px solid var(--cizgi); text-transform: uppercase; letter-spacing: .05em; }
.ust-panel-govde { max-height: 360px; overflow-y: auto; }
.ust-panel-bos { padding: 26px 16px; text-align: center; color: var(--soluk); font-size: 12.5px; }
.ust-panel-alt { display: block; width: 100%; padding: 11px 16px; border: none; border-top: 1px solid var(--cizgi); background: #f8fafc; color: var(--ana); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ust-panel-alt:hover:not(:disabled) { background: #eff6ff; } .ust-panel-alt:disabled { color: var(--soluk); cursor: default; }
.ust-panel-kimlik { padding: 12px 16px; border-bottom: 1px solid var(--cizgi); display: flex; flex-direction: column; gap: 2px; }
.ust-panel-oge { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 16px; font: inherit; font-size: 13px; font-weight: 600; color: var(--yazi); background: none; border: none; text-align: left; cursor: pointer; text-decoration: none; }
.ust-panel-oge + .ust-panel-oge, form > .ust-panel-oge { border-top: 1px solid var(--cizgi); }
.ust-panel-oge:hover { background: var(--zemin); }
.ust-panel-oge.tehlike { color: var(--tehlike); }
.ust-panel form.satir-ici { display: block; }
.ust-bildirim { display: flex; gap: 10px; width: 100%; padding: 11px 16px; border: none; border-bottom: 1px solid var(--cizgi); background: #fff; text-align: left; cursor: pointer; font: inherit; }
.ust-bildirim:hover { background: var(--zemin); }
.ust-bildirim.yeni { background: #eff6ff; } .ust-bildirim.yeni.sv-kritik { background: #fef0f2; }
.ust-bildirim-ic { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ust-bildirim-baslik { font-size: 12.5px; font-weight: 700; color: var(--yazi); }
.ust-bildirim-metin { font-size: 11.5px; color: var(--soluk); white-space: pre-line; }
.ust-bildirim-zaman { font-size: 10.5px; color: #9aa8bd; }
.ust-kisi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; border: none; border-bottom: 1px solid var(--cizgi); background: #fff; text-align: left; cursor: pointer; font: inherit; }
.ust-kisi:hover { background: var(--zemin); }
.ust-kisi-ic { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ust-kisi-ad { font-size: 12.5px; font-weight: 600; color: var(--yazi); }
.ust-kisi-durum { font-size: 10.5px; color: var(--soluk); } .ust-kisi-durum.acik { color: var(--basari); }
.mini-rozet { font-size: 9px; font-weight: 800; color: #7c3aed; background: #f3e8ff; border-radius: 99px; padding: 1px 6px; }
.durum-nokta { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 2px #fff; }
.durum-nokta.acik { background: #22c55e; }
/* Sohbet penceresi (sağ alt) */
.sohbet-pencere { position: fixed; right: 20px; bottom: 20px; width: 360px; max-width: calc(100vw - 24px); background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(13,27,54,.35); z-index: 400; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--cizgi); }
.sohbet-bas { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(120deg, #1e3a5f, #274b7a); color: #fff; cursor: default; }
.sohbet-kimlik { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sohbet-ad { font-size: 13px; }
.sohbet-durum { font-size: 10.5px; color: rgba(255,255,255,.6); } .sohbet-durum.acik { color: #86efac; }
.sohbet-kucult, .sohbet-kapat { background: rgba(255,255,255,.1); border: none; color: #fff; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 15px; }
.sohbet-kucult:hover, .sohbet-kapat:hover { background: rgba(255,255,255,.22); }
.sohbet-govde { display: flex; flex-direction: column; height: 420px; max-height: 60vh; }
.sohbet-pencere.kucuk .sohbet-govde { display: none; }
.sohbet-mesajlar { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--zemin); }
.sohbet-bos { text-align: center; color: var(--soluk); font-size: 12px; padding: 20px; }
.balon-kap { max-width: 78%; display: flex; flex-direction: column; }
.balon-kap.ben { align-self: flex-end; align-items: flex-end; } .balon-kap.o { align-self: flex-start; }
.balon { padding: 8px 12px; border-radius: 14px 14px 14px 3px; background: #fff; color: var(--yazi); font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.08); white-space: pre-wrap; word-break: break-word; }
.balon-kap.ben .balon { background: var(--ana); color: #fff; border-radius: 14px 14px 3px 14px; }
.balon-zaman { font-size: 9.5px; color: var(--soluk); margin-top: 2px; }
.sohbet-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--cizgi); background: #fff; align-items: flex-end; }
.sohbet-form textarea { flex: 1; resize: none; min-height: 38px; max-height: 120px; }
.kart-baslik { margin-top: 0; }
@media (max-width: 860px) {
  .ust-kullanici-metin, .ust-ok, .ust-lisans .ust-demo { display: none; }
  .ust-kullanici { padding: 3px; background: none; }
  .ust-cubuk h1 { font-size: 15px; }
}
@media (max-width: 560px) {
  .ust-lisans, .tam-ekran { display: none; }
  .ust-panel { position: fixed; top: 56px; left: 8px; right: 8px; width: auto; }
  .sohbet-pencere { right: 8px; left: 8px; bottom: 8px; width: auto; }
}
@media print { .sohbet-pencere, .ust-cubuk .ust-sag { display: none !important; } }
