/* ── TASARIM DEĞİŞKENLERİ ───────────────────────────────────── */
        :root {
            --mavi:        #1e40af;
            --mavi-ac:     #3b82f6;
            --mavi-hover:  #1e3a8a;
            --yesil:       #16a34a;
            --yesil-hover: #15803d;
            --kirmizi:     #dc2626;
            --kirmizi-hover:#b91c1c;
            --sari:        #d97706;
            --sari-hover:  #b45309;
            --arkaplan:    #f1f5f9;
            --kart:        #ffffff;
            --sinir:       #e2e8f0;
            --metin:       #1e293b;
            --metin-ac:    #64748b;
            --golge:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
            --golge-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
            --yaricap:     10px;
            --yaricap-kk:  6px;
        }

        /* ── TEMEL ───────────────────────────────────────────────────── */
        *, *::before, *::after { box-sizing: border-box; }
        html {
            min-height: 100%;
            background: linear-gradient(180deg, #f3f7fc 0%, #e8eff8 100%);
            background-attachment: fixed;
        }
        body {
            min-height: 100vh;
            font-family: 'Inter', Arial, sans-serif;
            background: transparent;
            margin: 0; padding: 24px 20px;
            color: var(--metin);
            font-size: 14px;
            line-height: 1.5;
        }
        .container {
            background: var(--kart);
            padding: 28px 32px;
            border-radius: 16px;
            box-shadow: var(--golge);
            max-width: 1240px;
            margin: auto;
            border: 1px solid #e5e7eb;
        }
        .hidden { display: none !important; }

        /* ── INPUT & SELECT ─────────────────────────────────────────── */
        input, select, textarea {
            padding: 9px 12px;
            margin: 4px 0;
            width: 100%;
            border: 1.5px solid var(--sinir);
            border-radius: var(--yaricap-kk);
            font-family: inherit;
            font-size: 13.5px;
            color: var(--metin);
            background: #f8fafc;
            transition: border-color .18s, box-shadow .18s;
            outline: none;
        }
        input:focus, select:focus, textarea:focus {
            border-color: var(--mavi-ac);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(59,130,246,.15);
        }
        .donem-kilit-panel {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 10px 12px;
            margin: 10px 0 14px;
            background: #f8fafc;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            color: #334155;
        }
        .donem-kilit-panel strong {
            color: #1e3a8a;
            margin-right: 8px;
        }
        .donem-kilit-kontrol {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }
        .uyari-ozet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 10px;
            margin-bottom: 16px;
        }
        .uyari-ozet-kutu {
            background: #f8fafc;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            padding: 12px;
        }
        .uyari-ozet-kutu b {
            display: block;
            font-size: 22px;
            color: #1e3a8a;
            line-height: 1;
            margin-bottom: 5px;
        }
        .uyari-etiket {
            display: inline-flex;
            padding: 5px 9px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
        }
        .uyari-yuksek { background: #fee2e2; color: #991b1b; }
        .uyari-orta { background: #fef3c7; color: #92400e; }
        .uyari-dusuk { background: #dbeafe; color: #1e40af; }
        .dekont-tutar-uyari {
            display: none;
            margin: 8px 0 12px;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.35;
        }
        .dekont-tutar-uyari.uyari {
            display: block;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #9a3412;
        }
        .dekont-tutar-uyari.hata {
            display: block;
            background: #fee2e2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }
        .dekont-tutar-uyari.bilgi {
            display: block;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e40af;
        }
        .dekont-satir-bekliyor {
            background: #fffbeb;
        }
        .dekont-kalem-rozet,
        .dekont-dosya-rozet {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            max-width: 100%;
            margin-top: 6px;
            padding: 5px 9px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            white-space: normal;
        }
        .dekont-kalem-rozet {
            background: #eef2ff;
            color: #3730a3;
            border: 1px solid #c7d2fe;
        }
        .dekont-dosya-rozet.var {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #bbf7d0;
        }
        .dekont-dosya-rozet.yok {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }
        .dekont-not {
            display: block;
            margin-top: 5px;
            color: #64748b;
            line-height: 1.35;
            white-space: normal;
        }
        input[type=date] { cursor: pointer; }
        input[type=number] { -moz-appearance: textfield; }
        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

        /* ── BUTONLAR ────────────────────────────────────────────────── */
        button {
            border: none; cursor: pointer;
            border-radius: var(--yaricap-kk);
            padding: 10px 16px;
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 600;
            width: 100%;
            transition: background .18s, transform .12s, box-shadow .18s;
            letter-spacing: .01em;
        }
        button:active { transform: scale(.97); }

        .btn-koyu-mavi { background: var(--mavi); color: #fff; }
        .btn-koyu-mavi:hover { background: var(--mavi-hover); box-shadow: 0 2px 8px rgba(30,64,175,.3); }

        .btn-danger { background: var(--kirmizi); color: #fff; }
        .btn-danger:hover { background: var(--kirmizi-hover); box-shadow: 0 2px 8px rgba(220,38,38,.3); }

        .btn-success { background: var(--yesil); color: #fff; }
        .btn-success:hover { background: var(--yesil-hover); box-shadow: 0 2px 8px rgba(22,163,74,.3); }

        .btn-geri { background: #fef3c7; color: var(--sari); border: 1.5px solid #fcd34d; }
        .btn-geri:hover { background: #fde68a; }

        .btn-duzenle { background: #fef3c7; color: var(--sari); border: 1.5px solid #fcd34d; padding: 4px 10px; font-size: 12px; }
        .btn-duzenle:hover { background: #fde68a; }
        .btn-duzenle-defter { background: #dbeafe; color: #1d4ed8; border: 1.5px solid #93c5fd; }
        .btn-duzenle-defter:hover { background: #bfdbfe; }
        .duyuru-islem-hucre { min-width: 230px; }
        .duyuru-aksiyon-grup {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: wrap;
        }
        .duyuru-mini-btn {
            width: auto !important;
            min-width: 58px;
            padding: 6px 9px !important;
            margin: 0 !important;
            font-size: 12px !important;
            line-height: 1.2;
        }
        .duyuru-gonder-secim {
            width: 94px !important;
            min-width: 94px;
            margin: 0 !important;
            padding: 6px 8px !important;
            font-size: 12px;
            line-height: 1.2;
            border-radius: 6px;
        }

        /* ── PANEL BAŞLIĞI ────────────────────────────────────────────── */
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--sinir);
        }
        .panel-header h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: var(--mavi);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .panel-header .btn-grup { display: flex; gap: 8px; flex-wrap: wrap; }
        .panel-header .btn-grup button { width: auto; }

        /* ── ANA MENÜ ────────────────────────────────────────────────── */
        .ana-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
        }
        .ana-header h2 {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: var(--mavi);
        }
        .ana-header-aksiyonlar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
        .ana-header-aksiyonlar button { width: auto; padding: 9px 14px; font-size: 13px; }
        .aktif-yil-secici {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 7px 10px;
            border: 1.5px solid #bfdbfe;
            border-radius: var(--yaricap-kk);
            background: #eff6ff;
            color: var(--mavi);
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }
        .aktif-yil-secici select {
            width: auto;
            min-width: 84px;
            margin: 0;
            padding: 5px 8px;
            background: white;
            color: var(--mavi);
            font-weight: 800;
        }

        .menu-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 24px; }
        .menu-karti {
            background: #edf4fb;
            color: #0f172a;
            padding: 22px 20px 20px;
            border-radius: 18px;
            text-align: left;
            width: 230px;
            min-height: 148px;
            box-shadow: 0 10px 24px rgba(15,23,42,.08);
            transition: transform .2s, box-shadow .2s, filter .2s;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            border: 1px solid #d8e3f2;
            border-left: 5px solid #bfd0e6;
        }
        .menu-karti::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(255,255,255,.34), rgba(237,244,251,.18));
            pointer-events: none;
        }
        .menu-karti:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,23,42,.12); }
        .menu-karti-baslik {
            display: block;
            font-size: 17px;
            font-weight: 700;
            line-height: 1.25;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
            color: #0f172a;
        }
        .menu-karti-aciklama {
            display: block;
            font-size: 13px;
            line-height: 1.5;
            color: #475569;
            font-weight: 500;
            position: relative;
            z-index: 1;
        }
        .menu-karti-finans { border-left-color: #3b82f6; background: linear-gradient(180deg, #f1f6fd 0%, #e7f0fb 100%); }
        .menu-karti-sakin { border-left-color: #4f9cb2; background: linear-gradient(180deg, #eff6fb 0%, #e4eef7 100%); }
        .menu-karti-ayar { border-left-color: #7f9bb8; background: linear-gradient(180deg, #f2f6fb 0%, #e7eef8 100%); }
        .menu-karti-ozel { border-left-color: #6d8fc2; background: linear-gradient(180deg, #f0f5fc 0%, #e6eef9 100%); }
        .menu-karti-bilgi { border-left-color: #5d8fc8; background: linear-gradient(180deg, #eff5fc 0%, #e5eef9 100%); }
        .menu-karti-tahsilat { border-left-color: #3b82f6; background: linear-gradient(180deg, #f1f6fd 0%, #e7f0fb 100%); }
        .menu-karti-ekbutce-0 { border-left-color: #2563eb; background: linear-gradient(180deg, #eef6ff 0%, #dbeafe 100%); }
        .menu-karti-ekbutce-1 { border-left-color: #3b82f6; background: linear-gradient(180deg, #f1f6fd 0%, #e7f0fb 100%); }
        .menu-karti-ekbutce-2 { border-left-color: #ea580c; background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%); }
        .menu-karti-ekbutce-3 { border-left-color: #3b82f6; background: linear-gradient(180deg, #f1f6fd 0%, #e7f0fb 100%); }
        .menu-karti-ekbutce-4 { border-left-color: #0891b2; background: linear-gradient(180deg, #ecfeff 0%, #a5f3fc 100%); }
        .menu-karti-ekbutce-5 { border-left-color: #3b82f6; background: linear-gradient(180deg, #f1f6fd 0%, #e7f0fb 100%); }
        .menu-karti-ekbutce-0:hover { box-shadow: 0 16px 32px rgba(37,99,235,.18); }
        .menu-karti-ekbutce-1:hover { box-shadow: 0 16px 32px rgba(59,130,246,.18); }
        .menu-karti-ekbutce-2:hover { box-shadow: 0 16px 32px rgba(234,88,12,.18); }
        .menu-karti-ekbutce-3:hover { box-shadow: 0 16px 32px rgba(59,130,246,.18); }
        .menu-karti-ekbutce-4:hover { box-shadow: 0 16px 32px rgba(8,145,178,.18); }
        .menu-karti-ekbutce-5:hover { box-shadow: 0 16px 32px rgba(59,130,246,.18); }

        /* ── METİN TOOLBAR ──────────────────────────────────────────── */
        .metin-toolbar {
            display: flex;
            align-items: center;
            gap: 1px;
            padding: 3px 6px;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-bottom: none;
            border-radius: 6px 6px 0 0;
        }
        .metin-toolbar button {
            width: 28px;
            height: 24px;
            padding: 0;
            font-size: 13px;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            color: #475569;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background .12s, color .12s;
        }
        .metin-toolbar button:hover { background: #e2e8f0; color: #1e293b; }
        .metin-toolbar .t-ayrac { width: 1px; height: 16px; background: #cbd5e1; margin: 0 4px; flex-shrink: 0; }
        .metin-toolbar + textarea { border-radius: 0 0 6px 6px !important; border-color: #cbd5e1 !important; }

        /* ── TABLOLAR ────────────────────────────────────────────────── */
        .matris-tablo { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12.5px; text-align: center; }
        .matris-tablo th, .matris-tablo td { border: 1px solid #e2e8f0; padding: 4px 3px; }
        .matris-tablo th {
            background: linear-gradient(135deg, #1e293b, #334155);
            color: white; position: sticky; top: 0;
            padding: 10px 6px; font-size: 12px; letter-spacing: .02em;
        }
        .matris-tablo td:first-child {
            font-weight: 600; background: #f8fafc;
            text-align: left; padding-left: 12px; width: 130px;
            border-right: 2px solid #cbd5e1;
        }
        .matris-tablo tbody tr:hover td { background-color: #f0f9ff; }
        .matris-tablo tbody tr:hover td:first-child { background-color: #e0f2fe; }
        .tahsilat-ozet-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 12px;
            margin: 14px 0 4px;
        }
        .tahsilat-ozet-kutu {
            padding: 14px;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            background: #f8fafc;
        }
        .tahsilat-ozet-kutu .etiket {
            font-size: 11px;
            color: #64748b;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
        .tahsilat-ozet-kutu .deger {
            margin-top: 6px;
            font-size: 18px;
            color: #0f172a;
            font-weight: 800;
        }
        .tahsilat-tablo td { vertical-align: middle; }
        .tahsilat-detay {
            text-align: left;
            font-size: 12px;
            line-height: 1.45;
            color: #475569;
            max-width: 360px;
        }
        .tahsilat-borc { font-weight: 800; color: #b91c1c; white-space: nowrap; }
        .tahsilat-sifir { font-weight: 800; color: #15803d; white-space: nowrap; }

        table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
        thead tr { background: linear-gradient(135deg, #1e293b, #334155); }
        th { color: white; padding: 10px 10px; text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
        td { border-bottom: 1px solid var(--sinir); padding: 9px 10px; }
        tbody tr:hover td { background: #f8fafc; }
        tbody tr:last-child td { border-bottom: none; }

        /* ── DURUM KUTULARI ────────────────────────────────────────── */
        .sakin-daire-tablosu td { vertical-align: top; }
        .sakin-daire-adi {
            font-weight: 800;
            color: var(--mavi);
            white-space: nowrap;
        }
        .sakin-kisi-ozet {
            display: grid;
            gap: 2px;
            min-width: 150px;
        }
        .sakin-kisi-ozet strong {
            color: #0f172a;
            font-size: 13.5px;
        }
        .sakin-kisi-ozet small,
        .sakin-kisi-bos {
            color: #64748b;
            font-size: 12.5px;
        }
        .sakin-kisi-bos {
            padding: 6px 8px;
            border-radius: 8px;
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
            display: inline-block;
        }
        .sakin-hesap-ozet {
            display: grid;
            gap: 2px;
            padding: 7px 9px;
            margin-bottom: 6px;
            border-radius: 9px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
        }
        .sakin-hesap-ozet span {
            color: #1d4ed8;
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
        .sakin-hesap-ozet strong { color: #0f172a; }
        .sakin-hesap-ozet small {
            color: #475569;
            font-size: 12px;
        }
        .sakin-daire-islem {
            min-width: 190px;
            white-space: nowrap;
        }
        .sakin-daire-islem button {
            width: auto;
            padding: 7px 10px;
            margin: 0 4px 5px 0;
        }

        .durum-kutu {
            padding: 5px 4px; width: 100%; border-radius: 5px;
            font-size: 11.5px; font-weight: 700; color: white;
            box-sizing: border-box; display: block; letter-spacing: .02em;
        }
        .odendi { background: linear-gradient(135deg, #16a34a, #15803d); }
        .odenmedi { background: linear-gradient(135deg, #dc2626, #b91c1c); }
        .gelecek-ay { color: #94a3b8; font-weight: 700; font-size: 15px; }
        .borc-sutun { background: linear-gradient(135deg, #dc2626, #b91c1c) !important; color: white !important; font-weight: 700; font-size: 13px; }
        .borc-sifir  { background: linear-gradient(135deg, #16a34a, #15803d) !important; color: white !important; font-weight: 700; font-size: 13px; }
        .print-only { display: none; }

        /* ── DEFTER ───────────────────────────────────────────────── */
        .defter-satiri { display: flex; gap: 16px; align-items: flex-start; flex-wrap: nowrap; margin-top: 16px; }
        .defter-sutunu {
            flex: 1; width: 50%;
            background: #fff;
            border: 1.5px solid var(--sinir);
            border-radius: var(--yaricap);
            padding: 16px;
            overflow-x: auto;
        }
        .defter-sutunu h3 {
            margin: 0 0 12px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: var(--metin-ac);
        }
        .row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
        .col { flex: 1; min-width: 140px; }

        .bakiye-kutusu {
            background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
            color: white !important;
            text-align: center; padding: 16px 20px;
            border-radius: var(--yaricap); font-size: 17px;
            margin-top: 16px; font-weight: 700;
            box-shadow: 0 4px 12px rgba(14,165,233,.3);
            letter-spacing: .02em;
        }

        /* ── YIL PANELİ ───────────────────────────────────────────── */
        .yil-paneli {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            color: var(--mavi);
            border: 1.5px solid #bfdbfe;
            padding: 14px 18px;
            border-radius: var(--yaricap);
            margin-bottom: 20px;
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 10px;
        }
        .yil-paneli select { width: auto; background: white; }
        .yil-paneli button { width: auto; }

        /* ── AYARLAR ──────────────────────────────────────────────── */
        .ayarlar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
        .ayar-kutu {
            background: #f8fafc;
            padding: 14px;
            border-radius: var(--yaricap);
            border: 1.5px solid var(--sinir);
            transition: border-color .18s, box-shadow .18s;
        }
        .ayar-kutu:hover { border-color: var(--mavi-ac); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
        .ayar-kutu strong { font-size: 13px; color: var(--metin); }

        /* ── ARAMA BARI ───────────────────────────────────────────── */
        .arama-bar {
            display: flex; align-items: center; gap: 10px;
            background: #f8fafc;
            border: 1.5px solid var(--sinir);
            border-radius: var(--yaricap);
            padding: 10px 14px;
            margin-bottom: 12px;
        }
        .arama-bar label { font-weight: 600; color: var(--metin-ac); white-space: nowrap; font-size: 13px; }
        .arama-bar input { margin: 0; background: white; }
        .arama-bar button { width: auto; padding: 8px 14px; }

        /* ── GİRİŞ FORMU (defter) ─────────────────────────────────── */
        .giris-formu {
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            border: 1.5px solid #bae6fd;
            border-radius: var(--yaricap);
            padding: 16px 18px;
            margin-bottom: 16px;
        }

        /* ── SAYFA KONTROL ────────────────────────────────────────── */
        .sayfa-kontrol {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 0; font-size: 13px; color: var(--metin-ac);
        }
        .sayfa-kontrol button { width: auto; padding: 6px 12px; font-size: 12px; }

        /* ── ÖZEL ONAY MODALİ ─────────────────────────────────────── */
        #modalOnay .modal-kutu { text-align: center; padding: 40px 32px 28px; }
        #onayIkon { font-size: 54px; line-height: 1; margin-bottom: 14px; display: block; }
        #onayBaslik { font-size: 20px; font-weight: 700; color: var(--metin); margin: 0 0 10px; }
        #onayMesaj { color: var(--metin-ac); font-size: 14px; line-height: 1.7; margin: 0 0 5px; white-space: pre-wrap; }
        #onayButonlar { justify-content: center !important; }
        #onayButonlar button { min-width: 130px; font-size: 14px; }

        /* ── MODAL ────────────────────────────────────────────────── */
        .modal-arkaplan {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15,23,42,.55);
            backdrop-filter: blur(4px);
            display: flex; justify-content: center; align-items: center;
            z-index: 1000; animation: yavascaAc 0.2s;
        }
        .modal-kutu {
            background: white; padding: 28px 28px 24px;
            border-radius: 16px; width: 500px;
            box-shadow: 0 20px 60px rgba(0,0,0,.2);
            max-height: 90vh; overflow-y: auto;
        }
        .modal-kutu h3 {
            margin-top: 0; color: var(--mavi);
            text-align: center;
            border-bottom: 2px solid var(--sinir);
            padding-bottom: 14px; margin-bottom: 16px;
            font-size: 17px; font-weight: 700;
        }
        .modal-kutu label {
            font-weight: 600; display: block;
            margin-top: 12px; color: var(--metin);
            font-size: 12.5px; letter-spacing: .02em;
            text-transform: uppercase;
        }
        .modal-butonlar { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
        .ek-butce-daire-tutar-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin: 6px 0 10px;
            max-height: 260px;
            overflow: auto;
            padding: 10px;
            border: 1px solid #dbeafe;
            border-radius: 8px;
            background: #f8fafc;
        }
        .ek-butce-daire-tutar-kutu { display: grid; gap: 5px; }
        .ek-butce-daire-tutar-kutu label {
            margin: 0;
            font-size: 12px;
            color: #334155;
            font-weight: 700;
            text-transform: none;
            letter-spacing: 0;
        }
        .ek-butce-daire-tutar-kutu input { margin: 0; }
        .ek-butce-toplam-ozet {
            margin: -2px 0 12px;
            padding: 8px 10px;
            border-radius: 8px;
            background: #eff6ff;
            color: #1e40af;
            font-size: 13px;
            font-weight: 700;
            text-align: right;
        }
        @keyframes yavascaAc { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

        /* ── WHATSAPP MODALİ ──────────────────────────────────────────── */
        #modalWhatsapp { align-items: flex-start; padding-top: 2vh; }
        .wa-modal-kutu {
            display: flex; flex-direction: column;
            width: min(960px, 97vw);
            height: min(93vh, 940px);
            background: white; border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,.25);
            overflow: hidden;
        }
        .wa-modal-baslik {
            padding: 14px 20px 13px; border-bottom: 2px solid #25D366;
            flex-shrink: 0; background: #f0faf3;
            display: flex; align-items: center; justify-content: space-between;
        }
        .wa-modal-baslik h3 { margin: 0; color: #14532d; font-size: 16px; font-weight: 700; }
        .wa-modal-kapat-btn {
            background: none; border: none; font-size: 20px; cursor: pointer;
            color: #888; padding: 0; width: auto; line-height: 1;
        }
        .wa-modal-kapat-btn:hover { color: #333; }
        .wa-sablon-alani { padding: 12px 20px 10px; background: #f8f9fa; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
        .wa-sablon-alani label { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: .04em; }
        .wa-mesaj-alani {
            width: 100%; box-sizing: border-box; padding: 10px 13px;
            border: 1.5px solid #e2e8f0; border-radius: 8px;
            font-size: 13.5px; resize: vertical; min-height: 72px; max-height: 130px;
            font-family: 'Inter', Arial, sans-serif; line-height: 1.6;
        }
        .wa-mesaj-alani:focus { outline: none; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.15); }
        .wa-degiskenler { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }
        .wa-degiskenler b { color: #475569; background: #e9ecef; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin-right: 2px; }
        .wa-ozet {
            padding: 9px 20px; background: #ecfdf5;
            border-bottom: 1px solid #bbf7d0;
            font-size: 13px; color: #15803d; flex-shrink: 0; font-weight: 600;
        }
        /* Liste */
        .wa-liste-alani { flex: 1; overflow-y: auto; padding: 12px 16px; }
        .wa-secim-bar {
            display: flex; justify-content: space-between; align-items: center;
            padding: 9px 14px; background: #f1f5f9; border-radius: 9px;
            margin-bottom: 10px; position: sticky; top: 0; z-index: 2;
            border: 1.5px solid #e2e8f0;
        }
        .wa-secim-bar label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: #334155; margin: 0; }
        .wa-secim-bar input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; accent-color: #25D366; }
        .wa-secili-sayisi { font-size: 12px; color: #475569; background: white; padding: 4px 12px; border-radius: 12px; font-weight: 700; border: 1.5px solid #e2e8f0; }
        /* 2 kolonlu kart grid */
        .wa-kart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .wa-kart {
            display: grid;
            grid-template-columns: 22px 1fr 38px;
            align-items: start; gap: 10px;
            background: #fff; border: 1.5px solid #e2e8f0;
            border-left: 5px solid #25D366; border-radius: 11px;
            padding: 12px 13px;
            transition: background .12s, box-shadow .12s;
        }
        .wa-kart:hover { background: #f0faf3; box-shadow: 0 3px 10px rgba(37,211,102,.1); }
        .wa-kart.telefon-yok { border-left-color: #cbd5e1; }
        .wa-kart input[type=checkbox] { width: 18px; height: 18px; accent-color: #25D366; cursor: pointer; margin-top: 2px; }
        .wa-kart-bilgi { min-width: 0; }
        .wa-kart-ad   { font-size: 13.5px; color: #1e293b; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .wa-kart-satir { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 2px; }
        .wa-tel       { font-size: 12px; color: #475569; }
        .wa-borc      { font-size: 12.5px; color: #dc2626; font-weight: 700; white-space: nowrap; }
        .wa-aylar     { font-size: 11.5px; color: #64748b; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .btn-whatsapp {
            width: 38px; height: 38px; padding: 0; align-self: center;
            background: #25D366; color: white; border: none; border-radius: 9px;
            font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; transition: background .15s;
        }
        .btn-whatsapp:hover { background: #1da851; }
        .btn-whatsapp:disabled { background: #e2e8f0; cursor: not-allowed; font-size: 14px; }
        .wa-modal-footer {
            padding: 13px 20px; border-top: 1.5px solid #e2e8f0;
            display: flex; gap: 10px; flex-shrink: 0; background: #f8fafc; align-items: center;
        }
        .wa-btn-kapat {
            flex: 0 0 auto; padding: 11px 24px; font-size: 13.5px; font-weight: 700;
            border: 1.5px solid #e2e8f0; border-radius: 8px; cursor: pointer;
            background: #fff; color: #64748b; width: auto; transition: background .15s;
        }
        .wa-btn-kapat:hover { background: #f1f5f9; }
        .wa-btn-gonder {
            flex: 1; padding: 11px 16px; font-size: 14px; font-weight: 700;
            border: none; border-radius: 8px; cursor: pointer;
            background: #25D366; color: white; transition: background .15s;
        }
        .wa-btn-gonder:hover { background: #1da851; }
        .wa-bos-mesaj { text-align: center; padding: 40px 20px; color: #16a34a; font-weight: 600; font-size: 15px; }
        .wa-kart.aktif-adim { outline: 2.5px solid #25D366; background: #f0fdf4; }
        .wa-siralı-panel { width: 100%; display: flex; flex-direction: column; gap: 10px; }
        .wa-siralı-ilerleme { display: flex; align-items: center; gap: 10px; }
        .wa-siralı-ilerleme-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
        .wa-siralı-ilerleme-bar-ic { height: 100%; background: #25D366; border-radius: 99px; transition: width .3s; }
        .wa-siralı-kisi { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 10px; padding: 10px 14px; }
        .wa-siralı-kisi-ad { font-weight: 700; font-size: 14px; color: #166534; }
        .wa-siralı-kisi-detay { font-size: 12px; color: #64748b; margin-top: 2px; }
        .wa-siralı-butonlar { display: flex; gap: 8px; }
        .wa-btn-ac { flex: 1; padding: 11px; font-size: 14px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; background: #25D366; color: white; transition: background .15s; }
        .wa-btn-ac:hover { background: #1da851; }
        .wa-btn-sonraki { flex: 1; padding: 11px; font-size: 14px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; background: #1e40af; color: white; transition: background .15s; }
        .wa-btn-sonraki:hover { background: #1d4ed8; }
        .wa-btn-iptal { flex: 0 0 auto; padding: 11px 18px; font-size: 13px; font-weight: 600; border: 1.5px solid #e2e8f0; border-radius: 8px; cursor: pointer; background: #fff; color: #64748b; transition: background .15s; }
        .wa-btn-iptal:hover { background: #f1f5f9; }

        /* ── TOAST ────────────────────────────────────────────────────── */
        #toastKap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
        .toast {
            padding: 13px 20px; border-radius: 10px; font-weight: 600;
            font-size: 13.5px; color: white; min-width: 240px; max-width: 340px;
            box-shadow: 0 8px 24px rgba(0,0,0,.18);
            opacity: 0; transform: translateX(20px);
            transition: opacity .28s, transform .28s;
            font-family: 'Inter', Arial, sans-serif;
        }
        .toast-gorunum { opacity: 1; transform: translateX(0); }
        .toast-basari { background: linear-gradient(135deg, #16a34a, #15803d); }
        .toast-hata    { background: linear-gradient(135deg, #dc2626, #b91c1c); }
        .toast-uyari   { background: linear-gradient(135deg, #d97706, #b45309); }
        .toast-bilgi   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
        .auth-ekrani {
            min-height: calc(100vh - 48px);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        body.yukleniyor #authPaneli,
        body.yukleniyor #uygulamaKabugu {
            visibility: hidden;
        }
        .auth-kart {
            width: 100%;
            max-width: 460px;
            background: linear-gradient(160deg, #ffffff, #f8fbff);
            border: 1px solid #dbeafe;
            border-radius: 22px;
            box-shadow: 0 24px 60px rgba(30,64,175,.12);
            padding: 32px;
        }
        .auth-ust-baslik { margin-bottom: 20px; }
        .auth-ust-baslik h1 {
            margin: 0 0 8px;
            color: var(--mavi);
            font-size: 27px;
            line-height: 1.2;
            text-align: center;
            letter-spacing: .06em;
            text-transform: uppercase;
        }
        .auth-ust-baslik p { margin: 0; color: var(--metin-ac); font-size: 14px; }
        .auth-form { display: grid; gap: 12px; }
        .auth-yardim {
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: 12px;
            background: #eff6ff;
            color: #1d4ed8;
            font-size: 12.5px;
            line-height: 1.5;
        }
        .durum-etiketi {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }
        .durum-bekliyor { background: #fef3c7; color: #92400e; }
        .durum-basari { background: #dcfce7; color: #166534; }
        .durum-hata { background: #fee2e2; color: #991b1b; }
        .durum-bilgi { background: #dbeafe; color: #1d4ed8; }
        .kullanici-kart {
            border: 1px solid #dbeafe;
            border-radius: 12px;
            background: #f8fbff;
            padding: 14px 16px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            gap: 14px;
            align-items: center;
        }
        .kullanici-kart strong { color: var(--mavi); }
        .kullanici-kart small { display: block; color: var(--metin-ac); margin-top: 4px; }
        .kullanici-kart-aksiyon { display: flex; gap: 8px; flex-wrap: wrap; }
        body.sakin-modu { padding: 0; }
        body.sakin-menu-acik { overflow: hidden; }
        .sakin-panel {
            display: flex;
            flex-direction: column;
            min-height: 100dvh;
            background: #f0f4f8;
        }
        .sakin-ustbar {
            background: linear-gradient(135deg, #1e3a8a, #2563eb);
            padding: 14px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 40;
        }
        .sakin-ust-sol,
        .sakin-ust-sag {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }
        .sakin-ust-sag { margin-left: auto; }
        .sakin-menu-toggle,
        .sakin-ikon-btn,
        .sakin-cikis-btn {
            width: auto;
            background: rgba(255,255,255,.18);
            border: 1px solid rgba(255,255,255,.32);
            color: white;
            box-shadow: none;
        }
        .sakin-menu-toggle {
            display: none;
            padding: 8px 12px;
            font-size: 18px;
            line-height: 1;
        }
        .sakin-ikon-btn {
            padding: 8px 12px;
            font-size: 15px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .sakin-cikis-btn {
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 700;
        }
        .sakin-apt-ad {
            font-size: 22px;
            font-weight: 800;
            color: white;
            letter-spacing: .02em;
            overflow-wrap: anywhere;
        }
        .sakin-kimlik {
            font-size: 13px;
            font-weight: 700;
            color: white;
        }
        .sakin-layout {
            display: flex;
            flex: 1;
            min-height: 0;
            position: relative;
        }
        .sakin-menu-overlay { display: none; }
        .sakin-menu {
            width: 236px;
            background: white;
            border-right: 1px solid #e2e8f0;
            padding: 16px 10px;
            flex-shrink: 0;
            overflow-y: auto;
            z-index: 30;
        }
        .sakin-menu-baslik {
            font-size: 10px;
            font-weight: 700;
            color: #94a3b8;
            letter-spacing: .08em;
            text-transform: uppercase;
            padding: 0 8px;
            margin-bottom: 8px;
        }
        .sakin-menu-nav {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .sakin-menu-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 12px;
            border-radius: 10px;
            border: none;
            width: 100%;
            text-align: left;
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            transition: background .15s, color .15s, box-shadow .15s;
            background: transparent;
            color: #334155;
            box-shadow: none;
        }
        .sakin-menu-ikon {
            width: 28px;
            min-width: 28px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            line-height: 1;
            text-align: center;
        }
        .sakin-menu-yazi {
            flex: 1;
            min-width: 0;
            line-height: 1.25;
        }
        .sakin-menu-btn.aktif {
            background: #eff6ff;
            color: #1e40af;
            font-weight: 700;
            box-shadow: inset 0 0 0 1px #dbeafe;
        }
        .sakin-icerik {
            flex: 1;
            overflow-y: auto;
            padding: 24px;
            min-width: 0;
        }
        .sakin-page-shell {
            width: min(100%, 960px);
            margin: 0 auto;
        }
        .sakin-page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }
        .sakin-page-title {
            margin: 0;
            font-size: 24px;
            line-height: 1.2;
            color: #1e3a8a;
        }
        .sakin-year-select {
            width: auto;
            min-width: 88px;
            background: #eff6ff;
            border: 1.5px solid #bfdbfe;
            color: #1e40af;
            font-weight: 700;
            padding: 8px 10px;
        }
        .sakin-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 20px 24px;
            box-shadow: 0 10px 25px rgba(15,23,42,.06);
        }
        .talep-akis,
        .sakin-talep-akis {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }
        .talep-akis-satir {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 8px 10px;
            color: #334155;
        }
        .talep-akis-satir b {
            display: inline-block;
            margin-right: 8px;
            color: #1e3a8a;
        }
        .talep-akis-satir small {
            color: #94a3b8;
        }
        .sakin-talep-karti {
            display: grid;
            gap: 10px;
        }
        .sakin-talep-karti textarea {
            width: 100%;
            max-width: 100%;
            resize: vertical;
        }
        .talep-kapali-notu {
            display: inline-flex;
            width: fit-content;
            max-width: 100%;
            padding: 7px 10px;
            border-radius: 999px;
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid #cbd5e1;
            font-size: 12.5px;
            font-weight: 700;
        }
        .sakin-bilgi-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }
        .sakin-bilgi-etiket {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .05em;
            margin-bottom: 4px;
        }
        .sakin-bilgi-deger {
            font-size: 15px;
            font-weight: 700;
            color: #1e293b;
            overflow-wrap: anywhere;
        }
        .sakin-stat-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .sakin-stat-card {
            background: white;
            border-radius: 14px;
            padding: 14px 16px;
            border: 1px solid #e2e8f0;
        }
        .sakin-stat-title {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 700;
            text-transform: uppercase;
        }
        .sakin-stat-value {
            font-size: 16px;
            font-weight: 800;
            margin-top: 4px;
        }
        .sakin-stat-value.bilgi { color: #1e40af; }
        .sakin-stat-value.basarili { color: #16a34a; }
        .sakin-stat-value.hata { color: #dc2626; }
        .sakin-ekbutce-shell .sakin-ekbutce-ozet-grid,
        .sakin-ekbutce-shell .sakin-liste-kap {
            width: min(100%, 720px);
        }
        .sakin-ekbutce-shell .sakin-ekbutce-ozet-grid {
            grid-template-columns: 1fr;
        }
        .sakin-liste-kap,
        .sakin-finans-kap {
            width: min(100%, 720px);
            display: grid;
            gap: 8px;
        }
        .sakin-aidat-satir {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 18px;
            border: 1px solid #e2e8f0;
            background: #fff;
        }
        .sakin-aidat-satir.tanimsiz,
        .sakin-aidat-satir.gelecek {
            background: #f8fafc;
            border-color: #dbe3ee;
        }
        .sakin-aidat-satir.odendi {
            background: #eefbf4;
            border-color: #86efac;
        }
        .sakin-aidat-satir.borclu {
            background: #fff5f1;
            border-color: #fdba74;
        }
        .sakin-aidat-satir.ekbutce-renk-0 { background: #eef6ff; border-color: #93c5fd; }
        .sakin-aidat-satir.ekbutce-renk-1 { background: #f0fdf4; border-color: #86efac; }
        .sakin-aidat-satir.ekbutce-renk-2 { background: #fff7ed; border-color: #fdba74; }
        .sakin-aidat-satir.ekbutce-renk-3 { background: #f5f3ff; border-color: #c4b5fd; }
        .sakin-aidat-satir.ekbutce-renk-4 { background: #ecfeff; border-color: #67e8f9; }
        .sakin-aidat-satir.ekbutce-renk-5 { background: #fdf2f8; border-color: #f9a8d4; }
        .sakin-aidat-ay {
            flex: 1 1 auto;
            min-width: 0;
            font-weight: 600;
            color: #334155;
            overflow-wrap: anywhere;
        }
        .sakin-aidat-ay small {
            display: block;
            margin-top: 2px;
            overflow-wrap: anywhere;
        }
        .sakin-aidat-etiket {
            display: inline-flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12px;
            line-height: 1.25;
            color: #475569;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            font-weight: 700;
            text-align: center;
            white-space: nowrap;
        }
        .sakin-aidat-etiket.odendi {
            color: #14532d;
            background: #dcfce7 !important;
            border-color: #22c55e;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
        }
        .sakin-aidat-etiket.borc {
            font-size: 13px;
            color: #9a3412;
            background: #ffedd5;
            border-color: #fb923c;
            font-weight: 800;
        }
        .sakin-aidat-satir.ekbutce-renk-0 .sakin-aidat-etiket.borc { color: #1d4ed8; background: #dbeafe; border-color: #60a5fa; }
        .sakin-aidat-satir.ekbutce-renk-1 .sakin-aidat-etiket.borc { color: #166534; background: #dcfce7; border-color: #22c55e; }
        .sakin-aidat-satir.ekbutce-renk-2 .sakin-aidat-etiket.borc { color: #9a3412; background: #ffedd5; border-color: #fb923c; }
        .sakin-aidat-satir.ekbutce-renk-3 .sakin-aidat-etiket.borc { color: #5b21b6; background: #ede9fe; border-color: #a78bfa; }
        .sakin-aidat-satir.ekbutce-renk-4 .sakin-aidat-etiket.borc { color: #155e75; background: #cffafe; border-color: #22d3ee; }
        .sakin-aidat-satir.ekbutce-renk-5 .sakin-aidat-etiket.borc { color: #9d174d; background: #fce7f3; border-color: #f472b6; }
        .sakin-finans-ozet-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 4px;
        }
        .sakin-finans-ozet-card {
            padding: 14px 16px;
            border-radius: 12px;
            text-align: center;
        }
        .sakin-finans-ozet-card.gelir {
            background: #f0fdf4;
            border: 1.5px solid #bbf7d0;
        }
        .sakin-finans-ozet-card.gider {
            background: #fef2f2;
            border: 1.5px solid #fca5a5;
        }
        .sakin-finans-ozet-card .etiket {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .05em;
        }
        .sakin-finans-ozet-card.gelir .etiket,
        .sakin-finans-ozet-card.gelir .deger { color: #15803d; }
        .sakin-finans-ozet-card.gider .etiket,
        .sakin-finans-ozet-card.gider .deger { color: #991b1b; }
        .sakin-finans-ozet-card .deger {
            font-size: 18px;
            font-weight: 800;
            margin-top: 4px;
        }
        .sakin-finans-net {
            padding: 12px 16px;
            border-radius: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 4px;
            border: 1.5px solid #bfdbfe;
            background: #eff6ff;
        }
        .sakin-finans-net.negatif {
            border-color: #fca5a5;
            background: #fff7f7;
        }
        .sakin-finans-net .etiket {
            font-weight: 700;
            color: #1e40af;
        }
        .sakin-finans-net.negatif .etiket { color: #991b1b; }
        .sakin-finans-net .deger {
            font-size: 16px;
            font-weight: 800;
            color: #1e40af;
        }
        .sakin-finans-net.negatif .deger { color: #dc2626; }
        .sakin-finans-list-baslik {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            padding: 8px 2px 4px;
        }
        .sakin-finans-list {
            background: white;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
        }
        .sakin-finans-bos {
            text-align: center;
            color: #94a3b8;
            padding: 20px;
            background: white;
            border: 1px dashed #cbd5e1;
            border-radius: 14px;
        }
        .sakin-banka-kart {
            width: min(100%, 720px);
            display: grid;
            gap: 18px;
        }
        .sakin-banka-ust {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
            border: 1px solid #bfdbfe;
            border-radius: 14px;
            padding: 18px;
        }
        .sakin-banka-rozet {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(30, 64, 175, .1);
            color: #1d4ed8;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .05em;
            text-transform: uppercase;
        }
        .sakin-banka-baslik {
            margin-top: 10px;
            font-size: 17px;
            font-weight: 800;
            color: #1e3a8a;
        }
        .sakin-banka-aciklama {
            margin-top: 6px;
            font-size: 12px;
            color: #475569;
            line-height: 1.6;
        }
        .sakin-banka-liste {
            display: grid;
            gap: 8px;
        }
        .sakin-banka-satir {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            padding: 11px 14px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
        }
        .sakin-banka-etiket {
            font-size: 10px;
            color: #94a3b8;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .05em;
            margin-bottom: 3px;
        }
        .sakin-banka-deger {
            font-size: 13px;
            font-weight: 700;
            color: #0f172a;
            overflow-wrap: anywhere;
        }
        .sakin-banka-deger.mono {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            color: #1e40af;
        }
        .sakin-kopyala-btn {
            width: auto;
            min-width: 116px;
            padding: 9px 12px;
            background: #1d4ed8;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
            box-shadow: none;
        }
        .sakin-banka-not {
            padding: 14px 16px;
            border-radius: 12px;
            background: #fffbeb;
            border: 1px solid #fde68a;
            color: #92400e;
            line-height: 1.6;
            font-size: 13px;
        }
        .sakin-form-card {
            width: min(100%, 720px);
            display: grid;
            gap: 12px;
        }
        .sakin-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .sakin-form-card label {
            display: grid;
            gap: 6px;
            min-width: 0;
            font-size: 12px;
            font-weight: 700;
            color: #475569;
        }
        .sakin-form-card input,
        .sakin-form-card select,
        .sakin-form-card textarea {
            min-width: 0;
            max-width: 100%;
            width: 100%;
        }
        .sakin-form-card input[type="date"],
        .sakin-form-card input[type="file"] {
            -webkit-appearance: none;
            appearance: none;
            display: block;
            min-width: 0;
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        .sakin-form-card textarea {
            max-width: 100%;
            resize: vertical;
        }
        .sakin-form-mesaj {
            min-height: 18px;
            color: #b91c1c;
            font-size: 13px;
            margin-top: 6px;
        }
        .sakin-hesap-karti {
            width: min(100%, 720px) !important;
            max-width: 720px !important;
            box-sizing: border-box;
            margin-top: 18px !important;
        }
        .sakin-duyuru-bolumu {
            width: min(100%, 720px) !important;
            max-width: 720px !important;
            box-sizing: border-box;
            margin-top: 24px !important;
            margin-left: 0 !important;
            margin-right: auto !important;
        }
        .sakin-duyuru {
            width: 100%;
            box-shadow: none;
        }
        .sakin-duyuru-bolumu .sakin-liste-kap {
            width: 100%;
        }
        .sakin-odeme-satir {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            width: 100%;
            max-width: 100%;
        }
        .sakin-odeme-satir .sakin-aidat-ay {
            min-width: 0;
            max-width: 100%;
        }
        .sakin-odeme-satir .sakin-aidat-etiket {
            max-width: 42vw;
        }
        .sakin-duyuru h3 {
            margin: 4px 0 8px;
            color: #0f172a;
            font-size: 18px;
        }
        .sakin-duyuru p {
            margin: 0;
            color: #475569;
            line-height: 1.6;
        }
        .sakin-duyuru-tarih {
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
        }
        @media (max-width: 900px) {
            body:not(.sakin-modu) { padding: 16px 12px; }
            .container { padding: 22px 16px; border-radius: 14px; }
            .auth-ekrani { min-height: calc(100vh - 32px); }
            .auth-kart { padding: 24px 18px; border-radius: 18px; }
            .sakin-ustbar {
                padding: 12px 14px;
                align-items: flex-start;
                flex-wrap: wrap;
            }
            .sakin-ust-sol { flex: 1; min-width: 0; }
            .sakin-ust-sag {
                width: 100%;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 8px;
            }
            .sakin-menu-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            .sakin-apt-ad { font-size: 18px; }
            .sakin-kimlik {
                font-size: 12px;
                white-space: normal;
            }
            .sakin-layout { overflow: visible; }
            .sakin-menu-overlay {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(15,23,42,.42);
                opacity: 0;
                pointer-events: none;
                transition: opacity .25s ease;
                z-index: 34;
            }
            .sakin-menu {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                width: min(82vw, 300px);
                padding: 86px 12px 18px;
                transform: translateX(-105%);
                transition: transform .25s ease;
                box-shadow: 0 18px 40px rgba(15,23,42,.25);
                border-right: 1px solid #dbeafe;
                z-index: 35;
            }
            #sakinGorunumPaneli.menu-acik .sakin-menu {
                transform: translateX(0);
            }
            #sakinGorunumPaneli.menu-acik .sakin-menu-overlay {
                opacity: 1;
                pointer-events: auto;
            }
            .sakin-icerik { padding: 16px 14px 24px; }
            .sakin-page-shell { width: 100%; }
            .sakin-page-title { font-size: 20px; }
            .sakin-card { padding: 16px; border-radius: 14px; }
            .sakin-bilgi-grid,
            .sakin-stat-grid,
            .sakin-finans-ozet-grid,
            .sakin-form-grid {
                grid-template-columns: 1fr;
            }
            .sakin-liste-kap,
            .sakin-finans-kap {
                width: 100%;
            }
            .sakin-aidat-satir,
            .sakin-finans-net,
            .sakin-banka-satir {
                flex-direction: column;
                align-items: flex-start;
            }
            .sakin-kopyala-btn { width: 100%; }
            .sakin-year-select { width: 100%; }
        }
        @media (max-width: 560px) {
            .auth-ust-baslik h1 { font-size: 22px; }
            #toastKap {
                left: 12px;
                right: 12px;
                bottom: 12px;
            }
            .toast {
                min-width: 0;
                max-width: calc(100vw - 24px);
            }
        }

        /* ── BASKIYA ÖZEL ────────────────────────────────────────────── */
        .print-only { display: none; }
        @page { size: A4; margin: 1.5cm; }
        @media print {
            /* Tüm sayfa arka planını temizle */
            html, body {
                background: #fff !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            /* Karar belgesi dışındaki her şeyi gizle */
            body > *:not(#uygulamaKabugu),
            #uygulamaKabugu > *:not(.ana-icerik),
            .no-print,
            .sakin-gorunum-paneli,
            .ana-kenar-cubugu,
            nav, header, footer { display: none !important; }
            .print-only { display: block !important; }
            /* Belge kapsayıcılarını sıfırla */
            .container, .ana-icerik, .icerik-alani,
            .ekran, .ekran.aktif {
                background: #fff !important;
                box-shadow: none !important;
                border: none !important;
                padding: 0 !important;
                margin: 0 !important;
                max-width: 100% !important;
                width: 100% !important;
            }
            /* Karar belgesi */
            .karar-belge {
                max-width: 100% !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                border: none !important;
                box-shadow: none !important;
                background: #fff !important;
                color: #000 !important;
                font-size: 11pt !important;
            }
            .karar-belge * { font-size: 11pt !important; }
        }
