/* ============================================================
   Müşteri Takip Paneli — Dark Tema
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Muhasebe modülü için tema değişkenleri (yeni sayfalar kullanır) */
:root {
  --yuzey: #11151c;
  --cizgi: rgba(255,255,255,0.06);
  --cizgi-2: #232b36;
  --metin: #e6e9ef;
  --inset: #0b0e13;
}
html[data-tema="light"] {
  --yuzey: #ffffff;
  --cizgi: rgba(15,23,42,0.09);
  --cizgi-2: #d5dbe4;
  --metin: #1a2230;
  --inset: #f7f9fc;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(52,211,153,0.06), transparent 60%), #0a0c10;
  color: #e6e9ef;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
.mono { font-family: 'Montserrat', system-ui, sans-serif; }
.soluk { color: #7c8696; }
.sag { text-align: right; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a323e; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #374252; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Girdiler / Butonlar ---------- */
.girdi {
  width: 100%; padding: 11px 13px; background: #0b0e13; border: 1px solid #232b36;
  border-radius: 10px; color: #e6e9ef; font-size: 13.5px; font-family: inherit; outline: none;
}
.girdi:focus { border-color: #34d399; }
select.girdi { cursor: pointer; }
textarea.alan { min-height: 74px; resize: vertical; line-height: 1.5; }
.etiket { display: block; font-size: 12px; font-weight: 600; color: #9aa3b2; margin-bottom: 7px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; font-family: inherit; white-space: nowrap;
}
.btn-ana { background: linear-gradient(135deg, #34d399, #10b981); color: #06281d; font-weight: 800; border: none; }
.btn-cizgi { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #c5ccd6; }
.btn-cizgi:hover { border-color: rgba(255,255,255,0.25); }
.btn-blok { width: 100%; }
.btn-kucuk { padding: 6px 12px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #c5ccd6; }
.btn-kucuk:hover { background: rgba(255,255,255,0.1); }
.btn-sil { color: #f1a3a3; border-color: rgba(239,68,68,0.25); }
.btn-sil:hover { background: rgba(239,68,68,0.12); }
.btn-aktif-al { color: #86e3b4; border-color: rgba(16,185,129,0.3); }
.btn-ekstre { color: #34a37a; border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }
.btn-ekstre:hover { background: rgba(52,211,153,0.16); }

/* Global arama sonuç kutusu */
.arama-sonuc {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--yuzey); border: 1px solid var(--cizgi-2); border-radius: 12px;
  box-shadow: var(--pop-golge); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.arama-grup-bas { padding: 8px 14px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #7c8696; background: var(--th-bg); }
.arama-satir { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--satir-cizgi); text-decoration: none; }
.arama-satir:hover { background: var(--th-bg); }
.arama-metin { min-width: 0; flex: 1; }
.arama-baslik { display: block; font-size: 13px; font-weight: 600; color: var(--metin); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arama-alt { display: block; font-size: 11.5px; color: #7c8696; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .global-arama-kutu { flex-basis: 100%; max-width: none; margin: 0; } }
.arama-bar { padding: 16px 28px 0; }
.arama-bar .global-arama-kutu { max-width: 460px; }
@media (max-width: 860px) { .arama-bar { padding: 12px 16px 0; } .arama-bar .global-arama-kutu { max-width: none; } }
.btn-aktif-al:hover { background: rgba(16,185,129,0.12); }
.btn-uyari-aktif { background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.4); color: #fda4a4; }

/* ---------- Kart ---------- */
.kart { background: #11151c; border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; }
.kart-bas { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.kart-bas-ad { font-size: 15px; font-weight: 700; }
.kart-bas-alt { font-size: 12px; color: #7c8696; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-kutu { width: 100%; max-width: 400px; animation: pop .4s ease; }
.login-marka { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-bottom: 26px; }
.login-logo { height: 56px; width: auto; }
.login-marka-ad { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: #9aa3b2; text-transform: uppercase; }
.login-kart { padding: 30px 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.login-baslik { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.login-alt { font-size: 13px; color: #8b93a1; margin-bottom: 22px; }
.login-hata { min-height: 20px; font-size: 12.5px; color: #f87171; margin: 8px 2px 12px; }
.login-ipucu { margin-top: 16px; padding: 10px 12px; background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.2); border-radius: 9px; font-size: 12px; color: #aab2c8; font-family: 'Montserrat', system-ui, sans-serif; }

/* ============================================================
   KABUK (Sidebar + İçerik)
   ============================================================ */
.menu-ac { display: none; }
.kabuk { display: flex; min-height: 100vh; }

.yan-menu {
  width: 236px; flex-shrink: 0; background: #0d1117; border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.marka { display: flex; flex-direction: column; gap: 9px; padding: 20px 20px 18px; }
.marka-logo { height: 30px; width: auto; align-self: flex-start; }
.marka-ad { font-size: 11px; font-weight: 700; color: #7c8696; letter-spacing: 0.06em; }
.menu { padding: 6px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.menu-ge {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px 10px 14px; border-radius: 9px; color: #8b93a1; font-size: 13.5px; font-weight: 600;
}
.menu-ge:hover { background: rgba(255,255,255,0.04); color: #c5ccd6; }
.menu-ge.aktif { background: rgba(52,211,153,0.10); color: #e6e9ef; font-weight: 700; }
.menu-ge.aktif::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #34d399; }
.menu-say { margin-left: auto; font-size: 11px; font-family: 'Montserrat', system-ui, sans-serif; color: #5b6573; background: transparent; padding: 2px 7px; border-radius: 6px; }
.menu-ge.aktif .menu-say { color: #86e3b4; background: rgba(16,185,129,0.12); }
.menu-alt { margin-top: auto; padding: 16px; }
.menu-grup-bas { padding: 14px 14px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: #5b6573; text-transform: uppercase; }
.menu-ayrac { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 12px; }
html[data-tema="light"] .menu-ayrac { background: rgba(15,23,42,0.09); }

.ortu { display: none; }

.ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ust-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 18px 28px; border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; background: rgba(10,12,16,0.85); backdrop-filter: blur(8px); z-index: 5;
}
.ust-sol { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ust-baslik-kutu { min-width: 0; }
.ust-baslik { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust-alt { font-size: 12.5px; color: #7c8696; margin-top: 2px; }
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 10px; background: #11151c; border: 1px solid #232b36; border-radius: 9px; cursor: pointer; flex-shrink: 0; }
.hamburger span { display: block; width: 18px; height: 2px; background: #c5ccd6; border-radius: 2px; }
.icerik { padding: 26px 28px 60px; flex: 1; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.stat-izgara { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { padding: 18px 18px 16px; position: relative; }
.stat-etiket { font-size: 12px; font-weight: 600; color: #8b93a1; margin-bottom: 10px; }
.stat-deger { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-family: 'Montserrat', system-ui, sans-serif; }
.stat-alt { font-size: 11.5px; color: #6b7484; margin-top: 4px; }
.stat-mor .stat-deger { color: #a5b4fc; }
.stat-yesil .stat-deger { color: #86e3b4; }
.stat-sari .stat-deger { color: #fbbf24; }
.stat-kirmizi .stat-deger { color: #f87171; }

/* Dashboard mali özet (bu ay / geçen ay) */
.mali-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.mali-kart { padding: 18px 20px; }
.mali-baslik { font-size: 12px; font-weight: 700; color: #8b93a1; margin-bottom: 12px; }
.mali-satir { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mali-et { font-size: 10.5px; font-weight: 600; color: #6b7484; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.mali-deger { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; font-family: 'Montserrat', system-ui, sans-serif; }
.mali-gecen { text-align: right; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.06); }
html[data-tema="light"] .mali-gecen { border-left-color: rgba(15,23,42,0.09); }
.mali-deger-kucuk { font-size: 15px; font-weight: 700; font-family: 'Montserrat', system-ui, sans-serif; color: #7c8696; }
@media (max-width: 860px) { .mali-izgara { grid-template-columns: 1fr; } }

/* Dashboard "Bugün Yapılacaklar" */
.bugun-izgara { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 26px; }
.bugun-satir { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--satir-cizgi); cursor: pointer; }
.bugun-satir:hover { background: var(--th-bg); }
.bugun-firma { font-size: 13px; font-weight: 700; color: var(--metin); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bugun-alt { font-size: 11.5px; color: #7c8696; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .bugun-izgara { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .bugun-izgara { grid-template-columns: 1fr; } }

.yaklasan-tablo td { padding: 13px 20px; }
.g-ad { font-size: 13.5px; font-weight: 700; color: #e6e9ef; }
.g-alt { font-size: 12px; color: #7c8696; }

/* ============================================================
   TABLOLAR
   ============================================================ */
.tablo-kaydir { overflow: auto; max-height: calc(100vh - 200px); }
.liste { width: 100%; border-collapse: collapse; }
.liste th {
  text-align: left; padding: 12px 15px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #7c8696; border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap; background: #151a22;
  position: sticky; top: 0; z-index: 4;
}
.liste th.sag { text-align: right; }
.liste th.dar { width: 46px; }
.liste td { padding: 13px 15px; font-size: 13px; color: #d3d8e0; border-bottom: 1px solid rgba(255,255,255,0.045); white-space: nowrap; vertical-align: middle; }
.liste tbody tr:hover { background: rgba(255,255,255,0.02); }
.liste td.para { color: #86e3b4; font-weight: 500; }
.td-ad, .td-firma { font-weight: 700; color: #fff; }
.td-alt { font-size: 11px; color: #6b7484; font-weight: 500; white-space: normal; }
.bos-satir { text-align: center; color: #6b7484; padding: 30px 15px; }
.islem-hucre { display: flex; gap: 8px; justify-content: flex-end; }

.paket-ad { display: inline-flex; align-items: center; gap: 11px; }
.paket-nokta { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Rozet ---------- */
.rozet { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: 'Montserrat', system-ui, sans-serif; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rozet-bos { color: #5b6573; }
.rozet-kirmizi { color: #fda4a4; background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.34); }
.rozet-turuncu { color: #fbd38d; background: rgba(245,158,11,0.13); border: 1px solid rgba(245,158,11,0.3); }
.rozet-yesil { color: #86e3b4; background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.26); }

/* ---------- Etiket (tip/durum) ---------- */
.etk { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.etk-mor { color: #a5b4fc; background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.25); }
.etk-yesil { color: #86e3b4; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); }
.etk-sari { color: #fcd34d; background: rgba(245,158,11,0.13); border: 1px solid rgba(245,158,11,0.3); }
.etk-mavi { color: #7dd3fc; background: rgba(56,189,248,0.13); border: 1px solid rgba(56,189,248,0.3); }

/* ---------- Firma hover popover ---------- */
.td-firma { position: relative; }
.kart-pop {
  position: absolute; top: calc(100% - 6px); left: 15px; z-index: 50; width: 320px; padding: 15px 17px;
  background: #161b23; border: 1px solid rgba(52,211,153,0.25); border-radius: 13px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55); white-space: normal; cursor: default;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.td-firma:hover .kart-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.firma-ad { border-bottom: 1px dotted rgba(255,255,255,0.3); cursor: help; }
.pop-ad { font-size: 13.5px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.pop-unvan { font-size: 11.5px; color: #8b93a1; margin-bottom: 10px; }
.pop-grid { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.pop-grid > div { display: flex; gap: 8px; color: #d3d8e0; }
.pop-k { color: #6b7484; width: 62px; flex-shrink: 0; }
.pop-mail, .mail { color: #86e3b4; }

/* ============================================================
   ARAÇ ÇUBUĞU
   ============================================================ */
.arac-cubuk { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ara-girdi { flex: 1; min-width: 200px; max-width: 380px; }
.arac-say { margin-left: auto; font-size: 12.5px; color: #7c8696; }

/* ============================================================
   FORMLAR
   ============================================================ */
.form-dar { max-width: 920px; }
.form-orta { max-width: 600px; }
.form-cok-dar { max-width: 480px; }
.blok { padding: 22px 24px; margin-bottom: 18px; }
.blok-bas { font-size: 14px; font-weight: 800; margin-bottom: 18px; letter-spacing: 0.01em; }
.blok-bas.yesil { color: #34d399; }
.blok-bas.mor { color: #818cf8; }
.blok-bas.sari { color: #fbbf24; }
.blok-bas.mavi { color: #7dd3fc; }
.izgara-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hizala-ust { align-items: start; }
.ikili { display: grid; grid-template-columns: 1fr 86px; gap: 10px; margin-top: 14px; }
.kutu-ikili { display: flex; gap: 10px; margin-top: 14px; }
.mini-kutu { flex: 1; background: #0b0e13; border: 1px solid #1d242e; border-radius: 10px; padding: 10px 12px; }
.mini-et { font-size: 10.5px; color: #6b7484; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px; }
.mini-deger { font-size: 14px; font-weight: 700; font-family: 'Montserrat', system-ui, sans-serif; color: #e6e9ef; }

.firma-mini { margin-top: 12px; padding: 14px; background: #0b0e13; border: 1px solid rgba(52,211,153,0.18); border-radius: 11px; animation: pop .25s ease; }
.fm-ad { font-size: 13px; font-weight: 800; color: #fff; }
.fm-unvan { font-size: 11.5px; color: #8b93a1; margin-bottom: 9px; }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 11.5px; }
.fm-tam { grid-column: 1 / 3; }

.fiyat-kutu { margin-top: 14px; background: #0b0e13; border: 1px solid #1d242e; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fiyat-kutu .soluk { font-size: 12px; font-weight: 600; }
.fiyat-deger { font-size: 17px; font-weight: 800; font-family: 'Montserrat', system-ui, sans-serif; color: #86e3b4; }
.fiyat-ozel { width: 140px; text-align: right; font-weight: 700; font-family: 'Montserrat', system-ui, sans-serif; }

.firma-form-izgara { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.firma-form-izgara .genis-2 { grid-column: span 2; }
.firma-form-izgara .genis-3 { grid-column: 1 / -1; }

.form-dugmeler { display: flex; gap: 12px; justify-content: flex-end; }
.ipucu-yazi { margin-top: 14px; font-size: 12px; color: #6b7484; padding: 0 4px; line-height: 1.5; }

/* ============================================================
   MUHASEBE — Filtre çubuğu, para renkleri, rapor grafiği
   ============================================================ */
.para-yesil { color: #86e3b4; }
.para-kirmizi { color: #fca5a5; }
html[data-tema="light"] .para-yesil { color: #0f7a52; }
html[data-tema="light"] .para-kirmizi { color: #c0392b; }
.etk-kirmizi { color: #fca5a5; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.28); }
html[data-tema="light"] .etk-kirmizi { color: #c0392b; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.etk-gri { color: #9aa3b2; background: rgba(148,160,175,0.14); border: 1px solid rgba(148,160,175,0.3); }
html[data-tema="light"] .etk-gri { color: #55617a; background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.12); }

/* Tedarikçi otomatik-arama önerisi */
.ted-oneri {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40; margin-top: 4px;
  background: var(--yuzey); border: 1px solid var(--cizgi-2); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25); overflow: hidden; max-height: 260px; overflow-y: auto;
}
.ted-sec, .ted-yeni { padding: 10px 13px; font-size: 13px; cursor: pointer; color: var(--metin); }
.ted-sec:hover { background: var(--th-bg); }
.ted-yeni { border-top: 1px solid var(--satir-cizgi); color: #34a37a; font-weight: 600; }
.ted-yeni:hover { background: rgba(52,163,122,0.1); }

/* Teklif formu — kalem tablosu + toplam kutusu */
.kalem-tablo td { padding: 6px 6px; vertical-align: middle; }
.kalem-tablo .girdi { padding: 8px 10px; font-size: 13px; }
.sag-metin { text-align: right; }
.k-miktar, .k-birim { max-width: 110px; }
.k-kdv { max-width: 100px; }
.teklif-toplam { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; margin-left: auto; max-width: 280px; }
.tt-satir { display: flex; justify-content: space-between; font-size: 13px; }
.tt-satir .soluk { color: #8b93a1; }
.tt-genel { font-size: 16px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--cizgi); }

.filtre-cubuk { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filtre-et { display: block; font-size: 11px; font-weight: 600; color: #8b93a1; margin-bottom: 5px; }
.filtre-girdi { min-width: 150px; padding: 9px 11px; }
.ozet-rozet { margin-left: auto; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; padding: 10px 16px; font-size: 12px; color: #8b93a1; font-weight: 600; }
.ozet-rozet b { font-family: 'Montserrat', system-ui, sans-serif; font-size: 16px; font-weight: 800; margin-left: 6px; }

.uyari-kutu { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.4); border-radius: 11px; padding: 13px 16px; margin-bottom: 16px; font-size: 13px; color: #fbd38d; }
html[data-tema="light"] .uyari-kutu { color: #92600a; }

/* Gelir formu canlı hesap kutuları */
.hesap-kutular { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hesap-kutular .mini-kutu { flex: 1; min-width: 150px; }

/* Rapor özet kartları */
.rapor-ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.rapor-ozet .mali-baslik { font-size: 12px; font-weight: 600; color: #8b93a1; margin-bottom: 10px; }
.rapor-ozet .mali-deger { font-size: 23px; }
@media (max-width: 860px) { .rapor-ozet { grid-template-columns: 1fr 1fr; } }

/* Rapor grafiği */
.grafik-bas { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.grafik-lejant { display: flex; gap: 16px; font-size: 12px; color: #9aa3b2; }
.grafik-lejant span { display: inline-flex; align-items: center; gap: 6px; }
.lej-nokta { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.grafik { display: flex; align-items: flex-end; gap: 18px; overflow-x: auto; padding-bottom: 8px; }
.grafik-sutun { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 64px; flex: 1; }
.grafik-barlar { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 180px; width: 100%; }
.grafik-barlar .bar { width: 22px; min-height: 3px; border-radius: 5px 5px 0 0; }
.bar-gelir { background: linear-gradient(180deg, #34d399, #10b981); }
.bar-gider { background: linear-gradient(180deg, #f87171, #ef4444); }
.grafik-ay { font-size: 11.5px; font-weight: 600; color: #9aa3b2; font-family: 'Montserrat', system-ui, sans-serif; white-space: nowrap; }
.grafik-kar { font-size: 11px; font-weight: 700; font-family: 'Montserrat', system-ui, sans-serif; white-space: nowrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .stat-izgara { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Sidebar -> sürgülü çekmece */
  .yan-menu {
    position: fixed; left: -260px; top: 0; height: 100vh; z-index: 60;
    transition: left .25s ease;
  }
  .menu-ac:checked ~ .kabuk .yan-menu { left: 0; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
  .menu-ac:checked ~ .kabuk .ortu {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 55; animation: fadein .2s ease;
  }
  .hamburger { display: flex; }
  .ust-bar { padding: 13px 16px; }
  .icerik { padding: 18px 16px 56px; }
  .izgara-2 { grid-template-columns: 1fr; }
  /* Firma formu mobilde tek sütun, stabil */
  .firma-form-izgara { display: flex; flex-direction: column; gap: 14px; }
  .firma-form-izgara .genis-2, .firma-form-izgara .genis-3 { grid-column: auto; }
}
@media (max-width: 560px) {
  .stat-izgara { gap: 12px; }
}

/* ============================================================
   TEMA DEĞİŞTİR BUTONU
   ============================================================ */
.ust-sag { display: flex; align-items: center; gap: 10px; }
.tema-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #c5ccd6;
}
.tema-btn:hover { background: rgba(255,255,255,0.1); }
.tema-btn svg { width: 18px; height: 18px; display: block; }
.tema-btn .ikon-ay { display: none; }
html[data-tema="light"] .tema-btn .ikon-gunes { display: none; }
html[data-tema="light"] .tema-btn .ikon-ay { display: block; }
/* Login sayfası köşe toggle'ı */
.tema-btn-sabit { position: fixed; top: 20px; right: 20px; z-index: 20; }

/* ============================================================
   AÇIK TEMA (data-tema="light")
   ============================================================ */
html[data-tema="light"] body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(16,185,129,0.08), transparent 60%), #eef1f6;
  color: #1a2230;
}
html[data-tema="light"] .soluk,
html[data-tema="light"] .arac-say,
html[data-tema="light"] .kart-bas-alt,
html[data-tema="light"] .g-alt,
html[data-tema="light"] .ust-alt { color: #6b7688; }

/* Girdiler */
html[data-tema="light"] .girdi { background: #ffffff; border-color: #d5dbe4; color: #1a2230; }
html[data-tema="light"] .girdi:focus { border-color: #10b981; }
html[data-tema="light"] .etiket { color: #55617a; }
html[data-tema="light"] input[type=date]::-webkit-calendar-picker-indicator { filter: none; }

/* Butonlar */
html[data-tema="light"] .btn-cizgi { border-color: rgba(15,23,42,0.15); color: #3a4356; }
html[data-tema="light"] .btn-cizgi:hover { border-color: rgba(15,23,42,0.3); background: rgba(15,23,42,0.03); }
html[data-tema="light"] .btn-kucuk { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.1); color: #3a4356; }
html[data-tema="light"] .btn-kucuk:hover { background: rgba(15,23,42,0.08); }
html[data-tema="light"] .tema-btn { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.12); color: #3a4356; }
html[data-tema="light"] .tema-btn:hover { background: rgba(15,23,42,0.08); }
html[data-tema="light"] .btn-sil { color: #c0392b; border-color: rgba(239,68,68,0.3); }
html[data-tema="light"] .btn-aktif-al { color: #0f7a52; border-color: rgba(16,185,129,0.4); }

/* Kartlar / paneller */
html[data-tema="light"] .kart { background: #ffffff; border-color: rgba(15,23,42,0.09); box-shadow: 0 1px 3px rgba(15,23,42,0.04); }
html[data-tema="light"] .kart-bas { border-bottom-color: rgba(15,23,42,0.08); }

/* Sidebar */
html[data-tema="light"] .yan-menu { background: #f7f9fc; border-right-color: rgba(15,23,42,0.09); }
html[data-tema="light"] .marka-ad { color: #6b7688; }
html[data-tema="light"] .menu-ge { color: #55617a; }
html[data-tema="light"] .menu-ge:hover { background: rgba(15,23,42,0.04); color: #1a2230; }
html[data-tema="light"] .menu-ge.aktif { background: rgba(16,185,129,0.12); color: #10151f; }
html[data-tema="light"] .menu-say { color: #94a0af; }
html[data-tema="light"] .menu-ge.aktif .menu-say { color: #0f7a52; background: rgba(16,185,129,0.15); }

/* Üst bar */
html[data-tema="light"] .ust-bar { background: rgba(238,241,246,0.85); border-bottom-color: rgba(15,23,42,0.09); }
html[data-tema="light"] .hamburger { background: #ffffff; border-color: #d5dbe4; }
html[data-tema="light"] .hamburger span { background: #45506a; }

/* Tablolar */
html[data-tema="light"] .liste th { background: #f1f4f9; color: #55617a; border-bottom-color: rgba(15,23,42,0.1); }
html[data-tema="light"] .liste td { color: #2a3342; border-bottom-color: rgba(15,23,42,0.06); }
html[data-tema="light"] .liste tbody tr:hover { background: rgba(15,23,42,0.03); }
html[data-tema="light"] .td-ad, html[data-tema="light"] .td-firma { color: #10151f; }
html[data-tema="light"] .td-alt, html[data-tema="light"] .bos-satir { color: #6b7688; }
html[data-tema="light"] .g-ad { color: #1a2230; }
html[data-tema="light"] .firma-ad { border-bottom-color: rgba(15,23,42,0.3); }
html[data-tema="light"] .liste td.para, html[data-tema="light"] .fiyat-deger, html[data-tema="light"] .pop-mail, html[data-tema="light"] .mail { color: #0f7a52; }

/* Rozetler (açık zeminde okunur renkler) */
html[data-tema="light"] .rozet-bos { color: #94a0af; }
html[data-tema="light"] .rozet-kirmizi { color: #c0392b; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
html[data-tema="light"] .rozet-turuncu { color: #b45309; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
html[data-tema="light"] .rozet-yesil { color: #0f7a52; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
html[data-tema="light"] .etk-mor { color: #4f46e5; background: rgba(129,140,248,0.12); border-color: rgba(129,140,248,0.3); }
html[data-tema="light"] .etk-yesil { color: #0f7a52; background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); }
html[data-tema="light"] .etk-sari { color: #b45309; background: rgba(245,158,11,0.13); border-color: rgba(245,158,11,0.35); }
html[data-tema="light"] .etk-mavi { color: #0284c7; background: rgba(56,189,248,0.13); border-color: rgba(56,189,248,0.35); }

/* Dashboard stat renkleri (açık zemin) */
html[data-tema="light"] .stat-etiket { color: #6b7688; }
html[data-tema="light"] .stat-alt, html[data-tema="light"] .ipucu-yazi, html[data-tema="light"] .mini-et { color: #8490a0; }
html[data-tema="light"] .stat-mor .stat-deger { color: #6366f1; }
html[data-tema="light"] .stat-yesil .stat-deger { color: #0f9d63; }
html[data-tema="light"] .stat-sari .stat-deger { color: #d97706; }
html[data-tema="light"] .stat-kirmizi .stat-deger { color: #dc2626; }

/* Popover / mini kutular / form kutuları */
html[data-tema="light"] .kart-pop { background: #ffffff; border-color: rgba(16,185,129,0.35); box-shadow: 0 20px 50px rgba(15,23,42,0.18); }
html[data-tema="light"] .pop-ad, html[data-tema="light"] .fm-ad { color: #10151f; }
html[data-tema="light"] .pop-unvan, html[data-tema="light"] .fm-unvan { color: #6b7688; }
html[data-tema="light"] .pop-grid > div { color: #2a3342; }
html[data-tema="light"] .pop-k { color: #8490a0; }
html[data-tema="light"] .mini-kutu { background: #f7f9fc; border-color: #e2e7ee; }
html[data-tema="light"] .mini-deger { color: #1a2230; }
html[data-tema="light"] .firma-mini { background: #f2faf6; border-color: rgba(16,185,129,0.25); }
html[data-tema="light"] .fiyat-kutu { background: #f7f9fc; border-color: #e2e7ee; }
html[data-tema="light"] .blok-bas.mor { color: #6366f1; }
html[data-tema="light"] .blok-bas.sari { color: #d97706; }
html[data-tema="light"] .blok-bas.mavi { color: #0284c7; }

/* Scrollbar */
html[data-tema="light"] ::-webkit-scrollbar-thumb { background: #c2ccd8; }
html[data-tema="light"] ::-webkit-scrollbar-thumb:hover { background: #a9b5c4; }

/* Login */
html[data-tema="light"] .login-kart { box-shadow: 0 24px 60px rgba(15,23,42,0.12); }
html[data-tema="light"] .login-marka-ad { color: #6b7688; }
html[data-tema="light"] .login-alt { color: #6b7688; }
html[data-tema="light"] .login-ipucu { color: #55617a; }

/* Açık zeminde sürgülü menü karartması biraz daha yumuşak */
html[data-tema="light"] .menu-ac:checked ~ .kabuk .ortu { background: rgba(15,23,42,0.4); }

/* ============================================================
   YAZDIRMA — sadece cari ekstre belgesi
   ============================================================ */
@media print {
  .yan-menu, .ust-bar, .arama-bar, .ekstre-arac, .ortu, .hamburger, .tema-btn, .menu-ac, .menu-alt { display: none !important; }
  .kabuk, .ana, .icerik { display: block !important; margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; }
  #ekstre-belge {
    position: static !important; width: 100% !important;
    border: none !important; border-radius: 0 !important; padding: 0 !important;
    background: #fff !important; box-shadow: none !important;
  }
  #ekstre-belge, #ekstre-belge * { color: #000 !important; }
  #ekstre-belge .etk { border: 1px solid #999 !important; }
  @page { margin: 1.3cm; }
}
