/* E-Defter Bulut — masaüstü uygulamasıyla aynı tasarım sistemi (TASARIM-SISTEMI.md). Yalnızca açık tema. */
:root {
    --navy: #02396F;
    --navy-dark: #06233F;
    --teal: #05999A;
    --teal-dark: #047E7F;
    --teal-light: #E3F4F4;
    --text: #1E293B;
    --muted: #64748B;
    --border: #DDE3EA;
    --panel: #F4F6FA;
    --alt-row: #F2F8FA;
    --success: #15803D;
    --danger: #C62828;
    --warning: #B45309;
    --navy-light: #E8EEF7;
    --green-light: #E6F4EA;
    --orange-light: #FDF0E6;
    --sidebar: linear-gradient(180deg, #0A2D55, #06233F);
    --titlebar: linear-gradient(90deg, #06233F, #02396F);
    --brand: linear-gradient(135deg, #02396F, #05999A);
    --card-shadow: 0 2px 18px rgba(15, 23, 42, .10);
    --window-shadow: 0 4px 24px rgba(0, 0, 0, .28);
    --mono: Consolas, "SF Mono", "Roboto Mono", Menlo, monospace;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    margin: 0;
    font: 13px/1.4 var(--font);
    color: var(--text);
    background: var(--panel);
    -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i.turkuaz { color: var(--teal); }
.i.lacivert { color: var(--navy); }
.i.yesil { color: var(--success); }
.i.turuncu { color: var(--warning); }
.i.kirmizi { color: var(--danger); }
.i.berat { color: #2E7D32; }
.i.rapor { color: #6A1B9A; }

/* ---------- İlerleme ---------- */
.ilerleme { width: 220px; height: 4px; border-radius: 2px; background: #E8EEF4; overflow: hidden; position: relative; margin: 18px auto 0; }
.ilerleme::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--teal); border-radius: 2px; animation: kay 1.2s ease-in-out infinite; }
@keyframes kay { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .ilerleme::after { animation-duration: 3s; } }
.acilis { position: fixed; inset: 0; display: grid; place-items: center; background: var(--panel); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 6px 12px; min-height: 32px; border-radius: 7px; border: 1px solid var(--border);
    background: #fff; color: var(--text); cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--teal-light); border-color: var(--teal); }
.btn:active:not(:disabled) { background: #CDEBEB; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.birincil { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.btn.birincil:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.kucuk { padding: 4px 8px; min-height: 28px; }
.btn.genis { width: 100%; min-height: 38px; }
.btn.tehlike .i { color: var(--danger); }
.btn:focus-visible, .menu-btn:focus-visible, .agac-oge:focus-visible, .sekmeler button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ---------- Metin kutuları ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], select, textarea {
    padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; min-height: 32px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
input::placeholder { color: #9AA3AE; }

/* ---------- Kart, çip ---------- */
.kart { background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--card-shadow); }
.cip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cip .i { width: 12px; height: 12px; }
.cip.turkuaz { background: var(--teal-light); color: var(--teal-dark); }
.cip.lacivert { background: var(--navy-light); color: var(--navy); }
.cip.yesil { background: var(--green-light); color: var(--success); }
.cip.turuncu { background: var(--orange-light); color: var(--warning); }
.cip.kirmizi { background: #FDECEC; color: var(--danger); }
.cip.dolu { color: #fff; }
.cip.dolu.yesil, .cip.dolu.denk { background: var(--success); }
.cip.dolu.fark { background: var(--danger); }
.cip.sayac { padding: 3px 10px; }
.soluk { color: var(--muted); font-weight: 400; }
.tutar { font-family: var(--mono); font-weight: 600; color: var(--navy); }

/* ---------- Giriş ---------- */
.giris { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; padding-top: calc(20px + var(--safe-top));
         background: #02396F url(/img/giris-arka.svg) center / cover no-repeat; }
.giris-kutu { box-shadow: 0 18px 60px rgba(0, 0, 0, .35); }
.giris-kutu { width: min(640px, 100%); min-height: 380px; display: flex; background: #fff; border-radius: 16px; box-shadow: var(--window-shadow); overflow: hidden; }
.giris-marka { width: 240px; flex: none; background: var(--brand); position: relative; overflow: hidden; display: grid; place-items: center; }
.daire { position: absolute; border-radius: 50%; }
.daire.d1 { width: 260px; height: 260px; background: rgba(255,255,255,.08); left: -90px; top: -90px; }
.daire.d2 { width: 180px; height: 180px; background: rgba(255,255,255,.06); right: -60px; bottom: -60px; }
.giris-logo { width: 132px; height: 132px; background: #fff; border-radius: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.35); display: grid; place-items: center; position: relative; }
.giris-logo img { width: 96px; height: 96px; object-fit: contain; }
.giris-form { flex: 1; padding: 30px 30px 22px 34px; display: flex; flex-direction: column; }
.ust-etiket { font-size: 15px; font-weight: 700; color: var(--teal); letter-spacing: .02em; }
.giris-form h1 { font-size: 34px; font-weight: 600; color: var(--navy); margin-top: -4px; line-height: 1.2; }
.moduller { color: var(--muted); margin-bottom: 16px; }
.alan { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.alan > span { color: var(--muted); font-size: 12px; }
.form-hata { color: var(--danger); font-size: 12px; margin: 0 0 10px; }
.telif { margin-top: auto; padding-top: 14px; font-size: 11px; color: #94A3B8; }

/* ---------- Ana düzen ---------- */
.uygulama { height: 100%; display: flex; flex-direction: column; }
.baslik-cubugu {
    height: calc(46px + var(--safe-top)); padding-top: var(--safe-top); flex: none; display: flex; align-items: center;
    background: var(--titlebar); color: #E2E8F0; padding-left: 14px; padding-right: 10px; gap: 10px;
}
.cubuk-logo { width: 28px; height: 28px; border-radius: 6px; }
.urun { font-size: 14px; color: #B9C7D8; white-space: nowrap; }
.urun b { color: #fff; }
.rozet { padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; color: #fff; background: var(--teal); white-space: nowrap; }
.rozet.kirmizi { background: var(--danger); }
.cubuk-menu { margin-left: auto; display: flex; align-items: center; gap: 2px; min-width: 0; }
.menu-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; color: #E2E8F0; padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.menu-btn .i { color: #7FD6D6; }
.menu-btn:hover { background: rgba(255,255,255,.15); }
.ayirici { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 6px; }
.cubuk-btn { display: none; background: transparent; border: 0; color: #E2E8F0; width: 36px; height: 36px; border-radius: 6px; cursor: pointer; place-items: center; }
.cubuk-btn:hover { background: rgba(255,255,255,.15); }
.cubuk-btn .i { width: 20px; height: 20px; }

.govde { flex: 1; min-height: 0; display: flex; }

/* ---------- Kenar çubuğu ---------- */
.kenar { width: 310px; flex: none; background: var(--sidebar); color: #D6E1EE; display: flex; flex-direction: column; border-right: 3px solid #06233F; }
.kenar-ust { padding: 16px 16px 10px; }
.bolum-baslik { font-size: 10.5px; font-weight: 700; color: #7F93AB; letter-spacing: .04em; }
.kenar-bilgi { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: #C7D3E0; font-size: 12px; min-height: 28px; }
.kenar-bilgi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.i.vurgu { color: #3CC8C8; }
.ikon-btn { background: transparent; border: 0; color: #E2E8F0; width: 30px; height: 28px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.ikon-btn:hover { background: rgba(255,255,255,.15); }
.kenar-ara { position: relative; margin-top: 12px; }
.kenar-ara .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8FA6C1; width: 15px; height: 15px; }
.kenar-ara input { width: 100%; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.13); color: #fff; border-radius: 8px; padding: 7px 8px 7px 32px; }
.kenar-ara input::placeholder { color: #7F93AB; }
.kenar-ara input:focus { border-color: var(--teal); }

.agac { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.agac-oge { display: flex; align-items: center; width: 100%; gap: 0; padding: 5px 8px 5px 4px; margin: 1px 0; border-radius: 7px; border: 0; background: transparent; color: #D6E1EE; text-align: left; cursor: pointer; }
.agac-oge:hover { background: rgba(255,255,255,.10); }
.agac-oge.secili { background: var(--teal); color: #fff; }
.agac-oge .ok { width: 20px; flex: none; display: grid; place-items: center; color: #8FA6C1; }
.agac-oge .ok .i { width: 12px; height: 12px; transition: transform .12s; }
.agac-oge[aria-expanded=true] .ok .i { transform: rotate(90deg); }
.agac-oge .oi { color: #8FA6C1; margin-right: 9px; width: 15px; height: 15px; }
.agac-oge.secili .oi, .agac-oge.secili .ok { color: #fff; }
.agac-oge .ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agac-oge .say { margin-left: 8px; padding: 1px 7px; border-radius: 8px; background: rgba(255,255,255,.13); color: #C7D3E0; font-size: 10.5px; flex: none; }
.agac-oge.yil .ad { font-weight: 700; font-size: 14px; }
.agac-oge.yil .oi { color: #3CC8C8; }
.agac-oge.yil .say { background: rgba(5,153,154,.2); }
.agac-oge.ay .oi { width: 14px; height: 14px; }
.agac-oge .durum-nokta { width: 7px; height: 7px; border-radius: 50%; background: #F5B041; margin-left: 8px; flex: none; }
.agac-oge .durum-nokta.hata { background: #FF6B6B; }
.agac-alt { padding-left: 14px; }
.agac-bos { padding: 14px 10px; color: #7F93AB; font-size: 12px; }
.kenar-alt { border-top: 1px solid rgba(255,255,255,.12); padding: 10px 16px; padding-bottom: calc(10px + var(--safe-bottom)); font-size: 11.5px; color: #7F93AB; }
.perde { display: none; }

/* ---------- İçerik ---------- */
.icerik { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px 18px 12px; gap: 14px; }
.baslik-kart { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.ikon-kutu { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; flex: none; color: #fff; }
.ikon-kutu .i { width: 22px; height: 22px; }
.baslik-metin { flex: 1; min-width: 0; }
.baslik-metin h1 { font-size: 19px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cipler { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.alt-yazi { color: var(--muted); font-size: 12px; }
.islemler { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.acilir { position: relative; }
.acilir-menu { color: var(--text); }
.hesap-menu { min-width: 200px; top: calc(100% + 6px); }
.kenar { position: relative; }
.kenar-kapat { display: none; position: absolute; top: calc(10px + var(--safe-top)); right: 10px; z-index: 2; color: #C7D3E0; }
.profil-dl { margin: 6px 0 4px; }
.acilir-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 290px; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--card-shadow); padding: 5px; }
.acilir-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 6px; text-align: left; cursor: pointer; }
.acilir-menu button:hover:not(:disabled) { background: var(--teal-light); }
.acilir-menu button:disabled { opacity: .45; cursor: default; }
.acilir-menu button .i { color: var(--navy); }
.acilir-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }

.icerik-kart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sekmeler { display: flex; gap: 2px; margin: 6px 10px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; flex: none; }
.sekmeler::-webkit-scrollbar { display: none; }
.sekmeler button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 9px; border: 0; background: transparent; color: var(--muted); border-radius: 7px 7px 0 0; cursor: pointer; white-space: nowrap; }
.sekmeler button:hover { background: #EEF2F7; }
.sekmeler button[aria-selected=true] { color: var(--navy); font-weight: 600; }
.sekmeler button[aria-selected=true]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 2px; background: var(--teal); }

.bilgi-seridi { display: flex; align-items: center; gap: 8px; margin: 10px 10px 0; padding: 6px 10px; border-radius: 9px; background: var(--teal-light); color: var(--teal-dark); font-size: 12px; flex: none; }
.bilgi-seridi > span:nth-child(2) { flex: 1; }
.seritbtnler { display: flex; align-items: center; gap: 6px; }
.seritbtnler select { min-width: 140px; padding: 4px 8px; min-height: 28px; }

.sekme-govde { position: relative; flex: 1; min-height: 0; margin: 10px; }
.resmi { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.arac-satiri { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex: none; }
.arama { position: relative; width: 420px; max-width: 100%; }
.arama .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 15px; height: 15px; }
.arama input { width: 100%; padding-left: 30px; }

/* ---------- Tablolar ---------- */
.tablo-kap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 2px; background: #fff; }
.tablo { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
/* Sütun genişlikleri masaüstündeki gibi: kod/tarih/tutar sabit; genişliği verilmeyen ad/açıklama sütunları kalan alanı paylaşır */
.tablo col.w40 { width: 40px; } .tablo col.w60 { width: 60px; } .tablo col.w82 { width: 84px; } .tablo col.w100 { width: 100px; }
.tablo col.w110 { width: 110px; } .tablo col.w115 { width: 118px; } .tablo col.w120 { width: 122px; } .tablo col.w130 { width: 132px; }
.tablo col.w70 { width: 72px; } .tablo col.w90 { width: 92px; } .tablo col.w170 { width: 170px; }
.tablo col.w160 { width: 160px; } .tablo col.w180 { width: 190px; } .tablo col.w140 { width: 140px; }.tablo th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 8px; border-right: 1px solid #1A4E85; white-space: nowrap; }
.tablo th { overflow: hidden; text-overflow: ellipsis; }
.tablo td { padding: 4px 6px; border-right: 1px solid #EDF0F4; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablo th.n, .tablo td.n { text-align: right; }
.tablo td.n { font-family: var(--mono); }
.tablo td.kalin { font-weight: 600; }
.tablo tr.alt td { background: var(--alt-row); }
.tablo.secilebilir tbody tr { cursor: pointer; }
.tablo tbody tr:hover td { background: #EAF6F6; }
.tablo tbody tr.secili td { background: #C9EBEB; color: #000; }
.tablo td.bos-hucre { text-align: center; color: var(--muted); padding: 24px; white-space: normal; }
.daha { margin: 10px auto 0; flex: none; }
.mizan .ust { flex: 2; }
.mizan .alt { flex: 3; }
.alt-baslik { padding: 10px 2px 6px; font-weight: 600; color: var(--navy); flex: none; }

/* ---------- Bilgi ve belgeler ---------- */
.bilgi { overflow: auto; display: block; padding: 2px; }
.bilgi-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.bolum { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: #fff; }
.bolum-bas { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bolum-ikon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.bolum-ikon.turkuaz { background: var(--teal-light); color: var(--teal); }
.bolum-ikon.lacivert { background: var(--navy-light); color: var(--navy); }
.bolum-ikon.yesil { background: var(--green-light); color: var(--success); }
.bolum-ikon.turuncu { background: var(--orange-light); color: var(--warning); }
.bolum-bas h3 { font-size: 14px; font-weight: 600; }
.bolum-bas p { margin: 0; font-size: 11.5px; color: var(--muted); }
.anahtar-deger { display: grid; grid-template-columns: 150px 1fr; gap: 5px 12px; font-size: 12.5px; }
.anahtar-deger dt { color: var(--muted); }
.anahtar-deger dd { margin: 0; word-break: break-word; }
.ozet { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all; }
.genis-bolum { grid-column: 1 / -1; }
.liste-satir { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #EEF1F5; }
.liste-satir:last-child { border-bottom: 0; }
.liste-satir .orta { flex: 1; min-width: 0; }
.liste-satir .orta div:first-child { font-size: 12.5px; }
.liste-satir .orta div + div { font-size: 11.5px; color: var(--muted); }

/* ---------- Boş durum / yükleniyor ---------- */
.katman { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; z-index: 5; padding: 20px; }
.katman-ic { max-width: 460px; text-align: center; }
.katman-ic img { width: 110px; opacity: .9; margin-bottom: 18px; }
.katman-ic h2 { font-size: 20px; font-weight: 600; color: var(--navy); }
.katman-ic p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* ---------- Durum çubuğu ---------- */
.durum { display: flex; align-items: center; gap: 7px; padding: 0 4px; color: var(--muted); font-size: 12px; flex: none; min-height: 24px; }
.durum > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplamlar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.toplamlar .cip { padding: 3px 10px; font-size: 12px; font-weight: 400; }

/* ---------- Diyaloglar ---------- */
.diyalog-arka { position: fixed; inset: 0; background: rgba(6, 35, 63, .35); display: grid; place-items: center; z-index: 50; padding: 16px; }
.diyalog { width: 620px; max-width: 100%; max-height: calc(100% - 20px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--window-shadow); overflow: hidden; }
.diyalog.genis { width: 920px; }
.diyalog-bas { height: 48px; flex: none; display: flex; align-items: center; background: var(--titlebar); color: #fff; }
.diyalog-bas .i { color: #7FD6D6; margin: 0 10px 0 18px; }
.diyalog-bas h2 { font-size: 15px; font-weight: 600; flex: 1; }
.diyalog-bas .kapat { width: 48px; height: 48px; border: 0; background: transparent; color: #E2E8F0; cursor: pointer; display: grid; place-items: center; }
.diyalog-bas .kapat:hover { background: #E81123; color: #fff; }
.diyalog-ic { padding: 20px 26px 24px; overflow: auto; }
.diyalog-alt { display: flex; justify-content: flex-end; gap: 6px; margin-top: 22px; }
.diyalog-alt .btn { min-width: 90px; }
.diyalog-alt .btn.birincil { min-width: 110px; }
.form-satir { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.form-satir > label { color: var(--muted); }
.form-satir .zorunlu::after { content: " *"; color: var(--danger); }
.form-satir input, .form-satir select { width: 100%; }
.form-satir > label:has(> input[type=checkbox]) { display: flex; align-items: center; gap: 8px; color: var(--text); }
.form-satir input[type=checkbox] { width: auto; min-height: 0; margin: 0; flex: none; }
.form-aciklama { font-size: 11.5px; color: var(--muted); margin: -4px 0 10px 170px; }
.kutu-liste { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); padding: 4px; }
.kutu-liste .liste-satir { padding: 5px 6px; }
hr.ayir { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.vkn-secim { max-height: 180px; overflow: auto; border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; }
.vkn-secim label { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 12.5px; }

/* ---------- Görünüm geçişi ve süzgeç ---------- */
.mod-gecis { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.08); }
.mod-gecis .menu-btn { padding: 5px 10px; }
.menu-btn.secili { background: rgba(5,153,154,.35); color: #fff; }
.suzgec { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 4px 5px 10px; border-radius: 8px;
          background: rgba(5,153,154,.22); color: #fff; font-size: 12px; }
.suzgec span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suzgec .ikon-btn { width: 26px; height: 24px; }

/* ---------- Yönetim paneli ---------- */
.panel-alan { overflow-y: auto; }
.panel-alan > * { flex: none; }
.bos-kart { padding: 40px 20px; text-align: center; }
.bos-kart h2 { color: var(--navy); font-size: 18px; }
.bos-kart p { color: var(--muted); }
.btn.geri { padding: 6px 8px; margin-right: -4px; }
.panel-bolum { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin: 4px 2px -4px; }
.karo-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.karo { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; background: #fff; border: 1px solid var(--border);
        border-radius: 10px; box-shadow: var(--card-shadow); font: inherit; color: inherit; min-width: 0; }
.karo.tiklanir { cursor: pointer; }
.karo.tiklanir:hover { border-color: var(--teal); }
.karo-bas { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; min-height: 22px; }
.karo-bas > span:first-of-type { flex: 1; }
.karo-bas .i { color: var(--teal); }
.karo-deger { font-size: 24px; font-weight: 600; color: var(--navy); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karo-alt { font-size: 12px; color: var(--muted); }
.olcer { height: 6px; border-radius: 4px; background: #E8EEF4; overflow: hidden; }
.olcer.ince { height: 4px; }
.olcer-dolu { height: 100%; border-radius: 4px; background: var(--teal); }
.olcer-dolu.uyari { background: var(--warning); }
.olcer-dolu.kritik { background: var(--danger); }
.satir-olcer { display: flex; flex-direction: column; gap: 3px; }
.panel-kart { padding: 14px 16px; }
.panel-kart .bolum-bas .orta { flex: 1; min-width: 0; }
.panel-ikili, .grafik-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.panel-tablo { flex: none; max-height: 460px; }
.iki-satir { display: flex; flex-direction: column; line-height: 1.3; }
.iki-satir b { font-weight: 600; }
.iki-satir span { font-size: 11.5px; }
.say.uyari { background: var(--warning) !important; color: #fff !important; }
.madde-liste { display: flex; flex-direction: column; }
.madde { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #EEF1F5; }
.madde:last-child { border-bottom: 0; }
.madde .orta { flex: 1; min-width: 0; }
.madde-ad { font-size: 12.5px; font-weight: 600; }
.madde-deger { font-size: 12px; color: var(--muted); }
.soluk-ikon { color: var(--muted); }
.grafik-kap { position: relative; }
.grafik { width: 100%; height: auto; display: block; touch-action: pan-y; }
.grafik .izgara { stroke: #EDF0F4; stroke-width: 1; }
.grafik .eksen { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.grafik .cizgi { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafik .alan { fill: rgba(5,153,154,.08); }
.grafik .imlec { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.grafik .nokta { fill: var(--teal); stroke: #fff; stroke-width: 2; }
.grafik-bos { padding: 34px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.ipucu { position: absolute; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px;
         box-shadow: var(--card-shadow); font-size: 12px; white-space: nowrap; pointer-events: none; }
.ipucu b { color: var(--text); }

.kilit { position: fixed; inset: 0; z-index: 70; background: var(--panel); display: grid; place-items: center; padding: 24px; }
.kilit .btn { margin-top: 22px; min-width: 180px; min-height: 40px; }
#guncelle { z-index: 75; }
.btn.tehlike-dolu { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn.tehlike-dolu:hover:not(:disabled) { background: #A51F1F; border-color: #A51F1F; }
.silme-uyari { display: flex; gap: 12px; padding: 12px 14px; border-radius: 9px; background: #FDECEC; color: var(--danger); margin-bottom: 14px; }
.silme-uyari .i { flex: none; margin-top: 2px; }
.silme-uyari p { margin: 6px 0 0; color: var(--text); font-size: 12.5px; }
.silme-ozet { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); margin-bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.surum-notlari { text-align: left; margin: 14px auto 0; padding-left: 20px; max-width: 360px; color: var(--text); font-size: 13px; }
.surum-notlari li + li { margin-top: 4px; }
.guncelle-serit { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 55; display: flex; align-items: center; gap: 10px;
                  max-width: 560px; margin: 0 auto; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--window-shadow); }
.guncelle-serit .orta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.guncelle-serit .orta span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serit-ikon { width: 36px; height: 36px; border-radius: 9px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; flex: none; }

.bildirim { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); background: var(--navy-dark); color: #fff; padding: 9px 16px; border-radius: 9px; box-shadow: var(--window-shadow); z-index: 60; max-width: calc(100% - 32px); }
.bildirim.hata { background: var(--danger); }

/* ---------- Mobil / dar ekran ---------- */
@media (max-width: 1100px) {
    .islemler .btn span { display: none; }
    .menu-btn span { display: none; }
}
@media (max-width: 900px) {
    .cubuk-btn { display: grid; }
    .baslik-cubugu { padding-left: 6px; gap: 6px; }
    .urun { font-size: 13px; }
    .rozet { display: none; }
    .kenar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(320px, 86vw); padding-top: var(--safe-top); transform: translateX(-100%); transition: transform .2s ease; border-right: 0; }
    .kenar.acik { transform: none; box-shadow: var(--window-shadow); }
    .kenar-kapat { display: grid; }
    .perde.acik { display: block; position: fixed; inset: 0; background: rgba(6,35,63,.4); z-index: 35; }
    .icerik { padding: 10px 10px calc(8px + var(--safe-bottom)); gap: 10px; }
    .baslik-kart { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
    .ikon-kutu { width: 40px; height: 40px; }
    .baslik-metin h1 { font-size: 16.5px; }
    .islemler { width: 100%; justify-content: stretch; }
    .islemler > * { flex: 1; }
    .islemler .btn { width: 100%; }
    .acilir-menu { left: 0; right: auto; min-width: min(290px, 90vw); }
    .islemler .acilir:last-child .acilir-menu, .acilir-menu.hesap-menu { left: auto; right: 0; }
    .sekmeler { margin: 4px 6px 0; }
    .sekmeler button { padding: 9px 10px 8px; }
    .sekme-govde { margin: 8px; }
    .bilgi-seridi { flex-wrap: wrap; margin: 8px 8px 0; }
    .seritbtnler { width: 100%; justify-content: space-between; }
    .seritbtnler select { flex: 1; }
    .arama { width: 100%; }
    .arac-satiri { flex-wrap: wrap; }
    .durum { flex-wrap: wrap; }
    .durum > span:nth-child(2) { flex-basis: calc(100% - 30px); }
    .toplamlar { width: 100%; justify-content: flex-start; }

    /* Tablolar kart görünümüne geçer: her satır bir kart, sütun adları etiket olur */
    .tablo-kap { border: 0; background: transparent; }
    .tablo thead { display: none; }
    .tablo, .tablo tbody { display: block; }
    .tablo tr { display: block; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 6px 10px; margin-bottom: 6px; }
    .tablo tr.alt td { background: transparent; }
    .tablo tr.alt { background: var(--alt-row); }
    .tablo tbody tr.secili { background: #C9EBEB; }
    .tablo tbody tr.secili td, .tablo tbody tr:hover td { background: transparent; }
    .tablo td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 2px 0; max-width: none; white-space: normal; text-align: right; }
    .tablo td::before { content: attr(data-etiket); color: var(--muted); text-align: left; flex: none; font-family: var(--font); font-weight: 400; }
    .tablo td.bos-hucre::before, .tablo td:empty { display: none; }
    .tablo td.n { font-size: 12.5px; }
    .tablo tr.devam { margin-top: -7px; border-top-left-radius: 0; border-top-right-radius: 0; border-top-style: dashed; }
    .mizan .ust, .mizan .alt { flex: none; overflow: visible; }
    .mizan { overflow: auto; display: block; }

    .giris-kutu { flex-direction: column; min-height: 0; }
    .giris-marka { width: 100%; height: 150px; }
    .giris-logo { width: 96px; height: 96px; border-radius: 22px; }
    .giris-logo img { width: 70px; height: 70px; }
    .giris-form { padding: 22px 22px 18px; }
    .giris-form h1 { font-size: 30px; }

    .diyalog-arka { padding: 0; place-items: end stretch; }
    .diyalog, .diyalog.genis { width: 100%; max-height: 92%; border-radius: 12px 12px 0 0; }
    .diyalog-ic { padding: 16px 16px calc(20px + var(--safe-bottom)); }
    .form-satir { grid-template-columns: 1fr; gap: 4px; }
    .form-satir > span:empty { display: none; }
    .panel-ikili, .grafik-izgara { grid-template-columns: 1fr; }
    .karo-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .karo { padding: 11px 12px; }
    .karo-deger { font-size: 19px; }
    .panel-tablo { max-height: none; }
    .mod-gecis .menu-btn { padding: 5px 8px; }
    .form-aciklama { margin-left: 0; }
    .anahtar-deger { grid-template-columns: 1fr; gap: 0 0; }
    .anahtar-deger dd { margin-bottom: 6px; }
    .bilgi-izgara { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .menu-btn { padding: 6px 7px; }
    .urun { display: none; }
}
@media print {
    .baslik-cubugu, .kenar, .durum, .sekmeler, .islemler { display: none !important; }
}
