/* =========================================================================
   MR GRUP — Tek CSS Dosyası
   Sistem fontu, MR Grup mavisi (#0e7490), sade beyaz zemin.
   CDN/Google Fonts/Bootstrap/Tailwind YOK.
   ========================================================================= */

/* ----- TOKENS ----- */
:root {
    --brand:        #0e7490;
    --brand-dark:   #155e75;
    --brand-50:     #ecfeff;
    --brand-100:    #cffafe;
    --brand-200:    #a5f3fc;

    --ink:          #0f172a;
    --ink-2:        #334155;
    --ink-3:        #475569;
    --muted:        #64748b;
    --line:         #e2e8f0;
    --line-2:       #cbd5e1;
    --bg:           #f8fafc;
    --bg-2:         #f1f5f9;
    --bg-3:         #e2e8f0;
    --white:        #ffffff;

    --success:      #16a34a;  --success-bg:  #dcfce7;  --success-soft: #f0fdf4;
    --warning:      #d97706;  --warning-bg:  #fef3c7;  --warning-soft: #fffbeb;
    --danger:       #dc2626;  --danger-bg:   #fee2e2;  --danger-soft:  #fef2f2;
    --info:         #2563eb;  --info-bg:     #dbeafe;  --info-soft:    #eff6ff;

    --radius:       8px;
    --radius-sm:    6px;
    --radius-xs:    4px;
    --shadow-sm:    0 1px 2px rgba(15,23,42,.06);
    --shadow:       0 4px 12px rgba(15,23,42,.08);
    --shadow-lg:    0 8px 24px rgba(15,23,42,.14);

    --sidebar-w:    220px;
    --topbar-h:     64px;
    --drawer-w:     480px;
    --hover-bg:     #f8fafc;

    --t-fast:       120ms;
    --t-med:        220ms;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, "Segoe UI Variable", "Segoe UI",
                 system-ui, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* mono — para hücresi için */
.mono, .num {
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas,
                 "SF Mono", Menlo, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.num { text-align: right; }
.num.neg { color: var(--danger); }
.num.pos { color: var(--ink); }
.num.zero { color: var(--muted); }

/* =========================================================================
   LOGIN
   ========================================================================= */
.login-body {
    margin: 0;
    background: var(--bg);
    min-height: 100vh;
}
.login-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}
.login-side {
    background:
        linear-gradient(135deg, rgba(14,116,144,.85), rgba(21,94,117,.70)),
        url('../img/loginpg.png') center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.login-side-overlay {
    max-width: 380px;
    text-align: center;
}
.login-logo {
    width: 96px; height: 96px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: var(--white);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.login-h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 1px;
}
.login-tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    margin: 0;
}
.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}
.login-form {
    width: 100%;
    max-width: 380px;
}
.login-baslik {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--ink);
}
.login-alt {
    color: var(--muted);
    margin: 0 0 24px;
}
.login-hata {
    background: var(--danger-bg);
    color: var(--danger);
    border-left: 3px solid var(--danger);
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}
.login-foot {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
}

/* form alanı */
.form-grup { display: block; margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-textarea {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    resize: vertical;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14,116,144,.18);
}
.form-input.invalid { border-color: var(--danger); }
.form-yardim {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.form-hata {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* =========================================================================
   BUTONLAR
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--t-fast), border-color var(--t-fast),
                color var(--t-fast), box-shadow var(--t-fast);
    user-select: none;
}
.btn:hover    { background: var(--bg-2); }
.btn:active   { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block    { width: 100%; }
.btn-sm       { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-xs       { height: 24px; padding: 0 8px;  font-size: 11px; }

.btn-primary {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}
.btn-primary:hover  { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-ghost {
    background: transparent;
    color: var(--brand);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--brand-50); }

.btn-outline {
    background: var(--white);
    border-color: var(--line-2);
    color: var(--ink-2);
}
.btn-outline:hover { border-color: var(--ink-3); }

.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #15803d; border-color: #15803d; }
.btn-success-outline { color: var(--success); border-color: var(--success); background: var(--white); }
.btn-success-outline:hover { background: var(--success-soft); }

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-danger-outline { color: var(--danger); border-color: var(--danger); background: var(--white); }
.btn-danger-outline:hover { background: var(--danger-soft); }

.btn-mini {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    background: var(--white);
    transition: background var(--t-fast), border-color var(--t-fast);
    user-select: none;
}
.btn-mini.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-mini.btn-success:hover { background: #15803d; }
.btn-mini.btn-danger-outline {
    background: var(--white);
    color: var(--danger);
    border-color: var(--danger);
}
.btn-mini.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-mini.btn-ghost {
    background: transparent;
    color: var(--brand);
}
.btn-mini.btn-ghost:hover { background: var(--brand-50); }

/* =========================================================================
   APP LAYOUT (Sidebar + Topbar + Content)
   ========================================================================= */
.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    background: var(--white);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-logo {
    width: 36px; height: 36px;
    object-fit: contain;
    border-radius: var(--radius-xs);
}
.sidebar-brand-text strong {
    display: block;
    font-size: 15px;
    color: var(--brand);
    line-height: 1.1;
}
.sidebar-brand-text small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.sidebar-madde { margin: 1px 0; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--ink-2);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.sidebar-link:hover {
    background: var(--brand-50);
    color: var(--brand);
    text-decoration: none;
}
.sidebar-madde.aktif .sidebar-link {
    background: var(--brand-50);
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 600;
}
.sidebar-ikon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}
.sidebar-ikon svg {
    display: block;
}
.sidebar-etiket {
    flex: 1;
    min-width: 0;
}
.sidebar-rozet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.sidebar-rozet-warn  { background: var(--warning-bg); color: var(--warning); }
.sidebar-rozet-brand { background: var(--brand-100);  color: var(--brand-dark); }
.sidebar-madde.aktif .sidebar-rozet-warn  { background: var(--warning); color: var(--white); }
.sidebar-madde.aktif .sidebar-rozet-brand { background: var(--brand);   color: var(--white); }
.sidebar-foot {
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-kullanici { flex: 1; min-width: 0; }
.sidebar-kul-ad {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-kul-rol {
    font-size: 11px;
    color: var(--muted);
}
.sidebar-cikis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    color: var(--ink-3);
    transition: background var(--t-fast), color var(--t-fast);
}
.sidebar-cikis:hover { background: var(--danger-soft); color: var(--danger); text-decoration: none; }
.sidebar-cikis svg { display: block; }

/* ---- Topbar ---- */
.app-content-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar-sol {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}
.topbar-baslik {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    white-space: nowrap;
}
.topbar-filtreler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.topbar-sag {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-ikon-btn {
    position: relative;
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--ink-2);
}
.topbar-ikon-btn:hover { background: var(--bg-2); }
.topbar-zil { font-size: 16px; }
.topbar-rozet {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--danger);
    color: var(--white);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.topbar-kullanici { position: relative; }
.topbar-kul-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--ink-2);
}
.topbar-kul-btn:hover { background: var(--bg-2); }
.topbar-kul-ad { font-weight: 600; color: var(--ink); }
.topbar-kul-rol { color: var(--muted); font-size: 12px; }
.kullanici-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 160px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 50;
}
.kullanici-link {
    display: block;
    padding: 8px 10px;
    color: var(--ink-2);
    border-radius: var(--radius-xs);
}
.kullanici-link:hover { background: var(--bg-2); text-decoration: none; }

/* ---- Filtre dropdown ---- */
.filtre-grup { position: relative; }
.filtre-buton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: var(--white);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--ink-2);
}
.filtre-buton:hover { background: var(--bg-2); }
.filtre-sayi {
    background: var(--brand);
    color: var(--white);
    border-radius: 9px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.filtre-ok { color: var(--muted); font-size: 10px; }
.filtre-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
}
.filtre-secenek {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    color: var(--ink-2);
    font-size: 13px;
}
.filtre-secenek:hover { background: var(--bg-2); }
.filtre-ayrac {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 4px 0;
}
.filtre-select {
    height: 32px;
    padding: 0 8px;
    background: var(--white);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    cursor: pointer;
}
.filtre-arama {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.filtre-arama-input {
    height: 32px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--white);
    min-width: 220px;
}
.filtre-arama-ikon {
    position: absolute;
    right: 8px;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

/* =========================================================================
   ANA İÇERİK
   ========================================================================= */
.app-main {
    flex: 1;
    padding: 18px 22px 60px;
    min-width: 0;
    overflow-x: auto;
}

/* ---- KPI Bandı (bakış-özel başlık altı bant) ---- */
.kpi-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.kpi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-right: 1px solid var(--line);
}
.kpi-item:first-child { padding-left: 0; }
.kpi-item:last-child  { border-right: 0; padding-right: 0; }
.kpi-etiket {
    font-size: 12px;
    color: var(--muted);
    text-transform: none;
}
.kpi-deger {
    font-weight: 700;
    color: var(--ink);
}
.kpi-deger.brand   { color: var(--brand); }
.kpi-deger.success { color: var(--success); }
.kpi-deger.warning { color: var(--warning); }
.kpi-deger.danger  { color: var(--danger); }

/* ---- Grid Tablosu ---- */
.grid-tablo-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: auto;
    box-shadow: var(--shadow-sm);
}
.grid-tablo {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}
.grid-tablo thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-2);
    color: var(--ink-2);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 6px 4px;
    border-bottom: 1px solid var(--line-2);
    white-space: normal;
    text-align: left;
    vertical-align: bottom;
    line-height: 1.2;
}
.grid-tablo thead th.num { text-align: right; }
.grid-tablo tbody td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink);
    background: var(--white);
}
.grid-tablo tbody tr:hover td:not(.santiye-cell):not(.firma-cell) {
    background: var(--bg);
}

/* sticky firma kolonu */
.grid-tablo .col-firma {
    position: sticky;
    left: 0;
    z-index: 4;
    background: inherit;
    border-right: 1px solid var(--line);
    min-width: 140px;
    max-width: 180px;
}
.grid-tablo thead th.col-firma {
    background: var(--bg-2);
    z-index: 6;
}

/* satır renkleri (durum) */
.grid-tablo tr.satir-odendi td:not(.col-firma)     { background: var(--success-soft); }
.grid-tablo tr.satir-gecmis td:not(.col-firma)     { background: var(--danger-soft); }
.grid-tablo tr.satir-yakin   td:not(.col-firma)    { background: var(--warning-soft); }

/* Şantiye başlık satırı */
.grid-tablo tr.santiye-baslik td {
    background: var(--brand-50);
    color: var(--brand-dark);
    font-weight: 700;
    padding: 10px 8px;
    border-top: 1px solid var(--brand-100);
}
.grid-tablo tr.santiye-baslik td.col-firma {
    background: var(--brand-50);
}

/* Firma başlık satırı */
.grid-tablo tr.firma-baslik td {
    background: var(--bg-3);
    font-weight: 600;
    color: var(--ink);
    padding: 8px;
}
.grid-tablo tr.firma-baslik td.col-firma {
    background: var(--bg-3);
}
.firma-baslik-ad {
    font-weight: 700;
    font-size: 14px;
}
.firma-baslik-sira {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: var(--white);
    color: var(--ink-2);
    border-radius: 50%;
    font-size: 11px;
    margin-right: 6px;
    font-weight: 600;
}

/* Alt-toplam satırı */
.grid-tablo tr.alt-toplam td {
    background: var(--bg);
    font-weight: 700;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    padding: 8px;
    color: var(--ink);
}
.grid-tablo tr.alt-toplam td.col-firma {
    background: var(--bg);
}

/* Genel toplam (sticky bottom) */
.grid-tablo tr.genel-toplam td {
    position: sticky;
    bottom: 0;
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    padding: 10px 8px;
    border-top: 2px solid var(--brand-dark);
}

/* HK satırı küçük detaylar */
.hk-no {
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
}
.hk-no:hover { text-decoration: underline; }
.hk-tipi-rozet {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    background: var(--brand-50);
    color: var(--brand);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.hk-tipi-rozet.ihzarat {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Vade chip (1. Vade / 2. Vade / Çek hücresi) */
.vade {
    display: block;
    border-left: 3px solid var(--muted);
    padding: 3px 4px;
    border-radius: var(--radius-xs);
    background: var(--bg);
    line-height: 1.2;
    cursor: default;
    transition: background var(--t-fast);
    min-width: 90px;
}
.vade.tiklanabilir { cursor: pointer; }
.vade.tiklanabilir:hover { filter: brightness(0.97); }
.vade-tarih {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
}
.vade-tutar {
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
}
.vade-yesil    { background: var(--success-soft); border-left-color: var(--success); }
.vade-yesil .vade-tutar { color: var(--success); }
.vade-sari     { background: var(--warning-soft); border-left-color: var(--warning); }
.vade-turuncu  { background: var(--warning-soft); border-left-color: #f97316; }
.vade-turuncu .vade-tarih { color: var(--warning); font-weight: 600; }
.vade-kirmizi  { background: var(--danger-soft); border-left-color: var(--danger); }
.vade-kirmizi .vade-tarih { color: var(--danger); font-weight: 600; }
.vade-gri      { background: var(--bg); border-left-color: var(--line-2); }
.vade-bos {
    background: var(--bg);
    border-left-color: var(--line-2);
    color: var(--muted);
    font-style: italic;
    font-size: 12px;
}
.vade-bos-yazi { color: var(--muted); font-size: 12px; }
.vade-dash {
    color: var(--muted);
    text-align: center;
    display: inline-block;
    min-width: 100%;
}

/* Onay hücresi */
.onay-cell {
    white-space: nowrap;
    min-width: 80px;
}
.onay-cell .btn-mini + .btn-mini { margin-left: 2px; }

.rozet {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid transparent;
}
.rozet-gri    { background: var(--bg-2); color: var(--muted);   border-color: var(--line); }
.rozet-yesil  { background: var(--success-bg); color: var(--success); border-color: rgba(22,163,74,.2); }
.rozet-kirmizi{ background: var(--danger-bg);  color: var(--danger);  border-color: rgba(220,38,38,.2); }
.rozet-sari   { background: var(--warning-bg); color: var(--warning); border-color: rgba(217,119,6,.2); }
.rozet-mavi   { background: var(--info-bg);    color: var(--info);    border-color: rgba(37,99,235,.2); }

/* not kolonu */
.not-cell {
    max-width: 100px;
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ödenecek tutar kolonu */
.odenecek-cell .btn-mini { margin-left: 6px; }
.odenecek-tutar.aktif { color: var(--success); font-weight: 700; }

/* boş veri */
.bos-veri {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

/* =========================================================================
   DRAWER (sağdan kayar)
   ========================================================================= */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.32);
    z-index: 90;
    animation: fade-in var(--t-med) ease;
}
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--drawer-w);
    max-width: 92vw;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: slide-in var(--t-med) cubic-bezier(.2,.7,.2,1);
}
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.drawer-baslik {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.drawer-kapat {
    width: 32px; height: 32px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--ink-2);
    cursor: pointer;
}
.drawer-kapat:hover { background: var(--bg-2); }
.drawer-icerik {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}
.drawer-foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
}

/* drawer içi grup */
.drawer-grup {
    margin-bottom: 14px;
}
.drawer-grup-baslik {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

/* =========================================================================
   POPOVER (satır üzerinde)
   ========================================================================= */
.popover {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 80;
    min-width: 260px;
    animation: pop-in var(--t-fast) ease-out;
}
.popover-baslik {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink);
}
.popover-foot {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* =========================================================================
   MODAL (custom — browser confirm/alert YASAK)
   ========================================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 110;
    animation: fade-in var(--t-med);
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 120;
    min-width: 360px;
    max-width: 92vw;
}
.modal-icerik {
    padding: 20px 22px;
}

/* =========================================================================
   TOAST
   ========================================================================= */
.toast-host {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: var(--ink);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.4;
    animation: toast-in 240ms cubic-bezier(.2,.7,.2,1);
    border-left: 3px solid var(--brand);
}
.toast.toast-success { border-left-color: var(--success); background: #064e3b; }
.toast.toast-danger  { border-left-color: var(--danger);  background: #7f1d1d; }
.toast.toast-warning { border-left-color: var(--warning); background: #78350f; }
.toast.toast-info    { border-left-color: var(--info);    background: #1e3a8a; }
.toast-baslik { font-weight: 700; margin-bottom: 2px; }

/* =========================================================================
   HATA SAYFASI
   ========================================================================= */
.hata-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: var(--bg);
}
.hata-logo {
    width: 64px; height: 64px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--white);
    padding: 6px;
    box-shadow: var(--shadow);
}
.hata-kod {
    font-size: 72px;
    font-weight: 800;
    margin: 0;
    color: var(--brand);
    letter-spacing: -2px;
}
.hata-baslik { font-size: 20px; margin: 8px 0; color: var(--ink); }
.hata-mesaj  { color: var(--muted); margin-bottom: 20px; }

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes pop-in {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1);   }
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   YARDIMCI SINIFLAR
   ========================================================================= */
.gizli, [hidden] { display: none !important; }
.gor-flex  { display: flex !important; }
.sag       { text-align: right; }
.sol       { text-align: left; }
.orta      { text-align: center; }
.nowrap    { white-space: nowrap; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; } .mb-4 { margin-bottom: 20px; }
.mt-0 { margin-top: 0; }    .mt-1 { margin-top: 4px; }    .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; } .mt-4 { margin-top: 20px; }
.flex { display: flex; }
.flex-arasi { justify-content: space-between; }
.flex-orta { align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.muted { color: var(--muted); }
.bold  { font-weight: 600; }

/* =========================================================================
   ERP ANA EKRAN REVİZYONU
   ========================================================================= */
:root {
    --topbar-h: 112px;
    --drawer-w: 560px;
}

body {
    background: #f3f6f8;
}

.num.warning,
.num .warning { color: var(--warning); }
.num.success,
.num .success { color: var(--success); }
.num.danger,
.num .danger { color: var(--danger); }
.num.brand,
.num .brand { color: var(--brand); }

.topbar {
    height: auto;
    min-height: var(--topbar-h);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 10px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
    border-bottom: 1px solid var(--line-2);
}
.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.topbar-row-ana { min-height: 42px; }
.topbar-row-filtre {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.topbar-sol {
    gap: 18px;
    align-items: center;
}
.topbar-baslik-grup {
    min-width: 190px;
}
.topbar-baslik {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.topbar-alt {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.topbar-aksiyonlar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filtre-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.filtre-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--brand);
}
.topbar-aksiyonlar .btn {
    text-decoration: none;
}
.topbar-filtreler {
    width: 100%;
    gap: 10px;
}
.filtre-buton,
.filtre-select,
.filtre-arama-input {
    height: 34px;
    border-color: var(--line-2);
    background: #fff;
}
.filtre-arama {
    margin-left: auto;
}
.filtre-arama-input {
    min-width: 280px;
}
.topbar-ikon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--warning-soft);
    border-color: rgba(217,119,6,.25);
    color: var(--warning);
    font-weight: 800;
}
.topbar-ikon-btn:hover {
    background: var(--warning-bg);
    text-decoration: none;
}
.topbar-zil {
    font-size: 15px;
    line-height: 1;
}

.app-main {
    padding: 16px 18px 56px;
    overflow-x: hidden;
}
#ana-icerik {
    min-width: 0;
}
.kpi-band {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    border-color: var(--line-2);
    border-radius: 6px;
}
.kpi-item-ozel {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 6px;
    margin-right: 12px;
    padding: 7px 12px;
}
.kpi-detay {
    color: var(--muted);
    font-size: 12px;
}

.grid-tablo-wrap {
    border-color: var(--line-2);
    border-radius: 6px;
    max-height: calc(100vh - 205px);
}
.grid-tablo {
    min-width: 1580px;
    table-layout: fixed;
    font-size: 12.5px;
}
.grid-tablo thead th {
    top: 0;
    padding: 8px 7px;
    font-size: 10.5px;
    background: #eef3f7;
    color: #233244;
    border-bottom: 1px solid var(--line-2);
}
.grid-tablo tbody td {
    padding: 7px 7px;
}
.grid-tablo tbody tr:hover td {
    background: #f8fbfc;
}
.grid-tablo .col-sira {
    width: 54px;
    min-width: 54px;
    position: sticky;
    left: 0;
    z-index: 4;
    background: inherit;
}
.grid-tablo .col-firma {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    position: sticky;
    left: 54px;
    z-index: 4;
    background: inherit;
}
.grid-tablo .col-hk {
    width: 88px;
    min-width: 88px;
    position: sticky;
    left: 274px;
    z-index: 4;
    background: inherit;
    border-right: 1px solid var(--line);
}
.grid-tablo thead th.col-sira,
.grid-tablo thead th.col-firma,
.grid-tablo thead th.col-hk {
    z-index: 8;
    background: #e8eef3;
}
.grid-tablo .col-tarih { width: 88px; }
.grid-tablo .col-tutar { width: 128px; }
.grid-tablo .col-vade { width: 136px; }
.grid-tablo .col-cek { width: 148px; }
.grid-tablo .col-odenecek { width: 156px; }
.grid-tablo .col-menu { width: 104px; text-align: center; }

.grid-tablo tr.santiye-baslik td {
    background: #dff5f8;
    color: var(--brand-dark);
    font-size: 13px;
}
.santiye-baslik-metin {
    font-size: 14px;
    font-weight: 750;
}
.santiye-baslik-meta,
.firma-baslik-meta,
.genel-toplam-meta {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.grid-tablo tr.firma-baslik td {
    background: #e7edf3;
    border-top: 1px solid var(--line-2);
}
.firma-baslik-ad {
    letter-spacing: .01em;
}
.firma-baslik-ozet {
    color: var(--ink-2);
    font-size: 12px;
}
.firma-baslik-ozet span + span {
    margin-left: 18px;
}
.firma-tekrar {
    background: #fbfdfe !important;
}
.firma-tekrar-ad {
    display: block;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.firma-tekrar-alt {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
}
.grid-tablo tr.alt-toplam td {
    background: #f7fafc;
}
:root.firma-toplam-gizli .grid-tablo tr.alt-toplam {
    display: none;
}
.grid-tablo tr.alt-toplam-santiye td {
    border-top: 2px solid var(--brand-100);
}
.toplam-label {
    text-align: left;
}
.genel-toplam-label {
    background: var(--brand) !important;
}
.grid-tablo tr.genel-toplam td {
    z-index: 7;
}
.grid-tablo tr.genel-toplam .col-sira,
.grid-tablo tr.genel-toplam .col-firma,
.grid-tablo tr.genel-toplam .col-hk {
    z-index: 9;
}

.tarih-cell {
    color: var(--ink-2);
    font-size: 12px;
}
.btn-mini {
    border-radius: 5px;
    font-weight: 700;
}
.btn-mini.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-mini.btn-primary:hover {
    background: var(--brand-dark);
}

.vade {
    min-width: 118px;
    padding: 6px 7px;
    border-radius: 6px;
    border-left-width: 4px;
}
.vade-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.vade-tarih {
    font-size: 11px;
}
.vade-durum {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: inherit;
    opacity: .78;
}
.vade-tutar {
    margin-top: 2px;
    font-size: 12.5px;
}
.vade-aksiyon {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
}
.vade-bos-yazi {
    font-size: 11px;
    font-weight: 700;
    color: var(--warning);
}
.vade.tiklanabilir {
    box-shadow: inset 0 0 0 1px rgba(14,116,144,.08);
}
.vade.tiklanabilir:hover {
    filter: none;
    box-shadow: inset 0 0 0 1px rgba(14,116,144,.28);
}

.onay-cell {
    white-space: normal;
}
.onay-cell .btn-mini {
    margin: 1px 2px 1px 0;
}
.rozet {
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 10.5px;
}
.not-cell {
    max-width: none;
    white-space: normal;
    line-height: 1.25;
}
/* Detay satırı — varsayılan KAPALI, "Aksiyon" butonu açıyor */
.hk-detay-satir {
    display: none;
}
.hk-detay-satir.acik {
    display: table-row;
}
.hk-detay-satir td {
    padding-top: 4px;
    padding-bottom: 8px;
    border-bottom-color: var(--line-2);
}
.hk-detay-satir .col-sira,
.hk-detay-satir .col-firma,
.hk-detay-satir .col-hk {
    background: #fbfdfe;
}
.hk-detay-cell {
    background: #fbfdfe !important;
    padding-left: 10px !important;
}
.hk-detay-grid {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.onay-not-kart,
.satir-aksiyon-kart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    min-height: 26px;
}
.satir-aksiyon-kart {
    gap: 4px;
    border-color: var(--brand-100);
    background: var(--brand-50);
}
.onay-not-baslik {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.onay-not-metin {
    color: var(--ink-2);
    font-size: 10.5px;
    line-height: 1.2;
    max-width: 160px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Satır "Aksiyon" toggle butonu */
.satir-detay-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px !important;
}
.satir-detay-toggle svg {
    transition: transform 120ms ease;
}
.satir-detay-toggle.acik svg {
    transform: rotate(180deg);
}
.satir-detay-toggle.acik {
    background: var(--brand-50);
    color: var(--brand);
    border-color: var(--brand-100);
}

/* Grup chevron (santiye/firma açma kapama) */
.grup-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--ink-3);
    cursor: pointer;
    vertical-align: middle;
    transition: transform 140ms ease, background var(--t-fast);
}
.grup-chevron:hover {
    background: rgba(15,23,42,.06);
    color: var(--ink);
}
tr.kapali .grup-chevron {
    transform: rotate(-90deg);
}

/* Toggle yapılan satırın tamamı tıklanabilir vurgu */
.grid-tablo tr.santiye-baslik[data-santiye-toggle],
.grid-tablo tr.firma-baslik[data-firma-toggle] {
    cursor: pointer;
}
.grid-tablo tr.santiye-baslik[data-santiye-toggle]:hover td,
.grid-tablo tr.firma-baslik[data-firma-toggle]:hover td {
    filter: brightness(0.98);
}

/* Tüm gizlemeler */
.row-hidden {
    display: none !important;
}
.btn-mini.btn-outline {
    color: var(--ink-2);
    border-color: var(--line-2);
    background: #fff;
}
.btn-mini.btn-outline:hover {
    color: var(--brand);
    border-color: var(--brand-100);
    background: var(--brand-50);
}
.odenecek-cell {
    text-align: right;
}
.odenecek-cell .btn-mini {
    margin-top: 4px;
}

.drawer {
    max-width: min(94vw, var(--drawer-w));
}
.drawer-head {
    background: #fbfdfe;
}
.drawer-icerik {
    padding: 18px 20px 0;
}
.drawer-form {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.drawer-form > .drawer-foot {
    position: sticky;
    bottom: 0;
    margin: 16px -20px 0;
    background: #fff;
    box-shadow: 0 -8px 18px rgba(15,23,42,.06);
}
.drawer-intro {
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 6px;
    color: var(--brand-dark);
    font-size: 13px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dagilim-liste {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.dagilim-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.dagilim-satir:last-child {
    border-bottom: 0;
}
.dagilim-bilgi {
    flex: 1;
    min-width: 0;
}
.dagilim-input {
    width: 160px;
}
.vade-edit-list {
    display: grid;
    gap: 10px;
}
.vade-edit-card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.vade-edit-title {
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 800;
}
.vade-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.vade-edit-head .vade-edit-title {
    margin-bottom: 0;
}
.vade-kapatilacak {
    opacity: .72;
    background: var(--danger-soft);
    border-color: var(--danger-bg);
}
.yeni-vade {
    border-color: var(--brand-100);
    background: var(--brand-50);
}
.odeme-hareket-satir {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.odeme-hareket-satir:last-child {
    border-bottom: 0;
}
.odeme-hareket-sag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.modal-baslik {
    margin: 0 0 8px;
    font-size: 16px;
}
.modal-metin {
    margin: 0 0 16px;
    color: var(--ink-2);
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    :root { --sidebar-w: 64px; }
    .sidebar-brand-text,
    .sidebar-etiket,
    .sidebar-kullanici { display: none; }
    .sidebar-link { justify-content: center; padding: 12px 8px; }
    .sidebar-brand { justify-content: center; }
}
@media (max-width: 768px) {
    :root { --topbar-h: 170px; }
    .topbar-row,
    .topbar-sol,
    .topbar-sag {
        align-items: flex-start;
    }
    .topbar-row-ana,
    .topbar-sol {
        flex-direction: column;
    }
    .topbar-sag {
        align-self: stretch;
        justify-content: space-between;
    }
    .topbar-filtreler { display: flex; }
    .filtre-arama {
        margin-left: 0;
        width: 100%;
    }
    .filtre-arama-input {
        width: 100%;
        min-width: 0;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hk-detay-grid {
        grid-template-columns: 1fr;
    }
    .firma-baslik-ozet span {
        display: block;
        margin-left: 0 !important;
    }
    .topbar-baslik { font-size: 16px; }
}

/* =========================================================================
   TAB BAR (Tanım/Yönetim sekmeleri için)
   ========================================================================= */
.tab-bar {
    display: flex;
    gap: 0;
    padding: 0 18px;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.tab-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--ink-3);
    font-weight: 600;
    font-size: 13.5px;
    border-bottom: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.tab-item:hover {
    color: var(--brand);
    background: var(--brand-50);
    text-decoration: none;
}
.tab-item.aktif {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* Tablo wrap (alt sayfalar için) — kpi-band'siz */
.tablo-ic {
    margin: 14px 18px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.tanim-ust-bar {
    margin: 8px 18px 0;
    display: flex;
    justify-content: flex-end;
}

/* =========================================================================
   PROFİL SAYFASI
   ========================================================================= */
.profil-sayfa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    max-width: 1100px;
}
.profil-kart {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.profil-kart-bas {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.profil-kart-bas h2 {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    font-weight: 700;
}
.profil-kart-icerik { padding: 16px; }
.profil-list { margin: 0; }
.profil-satir {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}
.profil-satir:last-child { border-bottom: 0; }
.profil-satir dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.profil-satir dd {
    margin: 0;
    color: var(--ink);
    font-size: 13.5px;
}
.profil-form { display: flex; flex-direction: column; gap: 12px; }
.profil-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profil-form .form-etiket {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.profil-form .form-input {
    padding: 8px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xs);
    background: #fff;
}
.profil-form .form-input:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-50);
}
.profil-form .form-yardim {
    color: var(--muted);
    font-size: 11px;
}
.profil-form .form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

@media (max-width: 900px) {
    .profil-sayfa { grid-template-columns: 1fr; }
}

/* =========================================================================
   ICMAL — pivot tablo
   ========================================================================= */
.icmal-kpi-band {
    display: grid;
    grid-template-columns: minmax(360px, 1.4fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 10px;
    align-items: stretch;
}
.icmal-kpi-item {
    border-right: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-height: 48px;
    background: var(--white);
}
.icmal-kpi-item:first-child,
.icmal-kpi-item:last-child {
    padding-left: 12px;
    padding-right: 12px;
}
.icmal-kpi-filtre {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}
.icmal-filtre-form {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}
.icmal-select {
    min-width: 170px;
    height: 34px;
}
.icmal-wrap {
    max-height: calc(100vh - 240px);
}
.icmal-tablo {
    min-width: 1320px;
    table-layout: auto;
}
.icmal-tablo thead th,
.icmal-tablo tbody td {
    padding: 9px 10px;
    font-size: 12px;
}
.icmal-tablo thead th {
    white-space: nowrap;
}
.icmal-tablo thead th.col-firma,
.icmal-tablo tbody td.col-firma {
    min-width: 220px;
    left: 0;
}
.icmal-tablo .icmal-deger {
    min-width: 142px;
    width: 142px;
    white-space: nowrap;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}
.icmal-tablo .num.mono {
    font-size: 12px;
    letter-spacing: 0;
}
.icmal-tablo .muted {
    white-space: nowrap;
}
.icmal-tablo .satir-baslik {
    font-weight: 600;
    background: var(--bg-2);
}
.icmal-tablo .tiklanabilir { cursor: pointer; }
.icmal-tablo .tiklanabilir:hover { background: var(--brand-50); }
.icmal-tablo tr.genel-toplam .col-firma { background: var(--brand); color: var(--white); }

@media (max-width: 1200px) {
    .icmal-kpi-band {
        grid-template-columns: 1fr;
    }
    .icmal-select {
        min-width: 150px;
    }
}

.kpi-form-grup {
    display: flex;
    gap: 6px;
    margin: 0;
}

/* IBAN — uzun karakter dizesi için küçük font */
.iban-cell { font-size: 11px; max-width: 220px; }

/* Yönetim log sütunları */
.log-tarih-cell { font-size: 12px; }
.log-ip-cell    { font-size: 11px; }

/* =========================================================================
   v2 — SADELEŞTIRME (Excel benzeri kompakt, onay kolonları ana tabloda)
   ========================================================================= */

/* ----- Genel font/yoğunluk ----- */
body {
    font-size: 13px;
    background: #f5f7f9;
}

/* ----- HAMBURGER + Sidebar Toggle ----- */
.topbar-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--t-fast), color var(--t-fast);
}
.topbar-hamburger:hover {
    background: var(--brand-50);
    color: var(--brand);
    border-color: var(--brand-100);
}
.topbar-hamburger svg { display: block; }

/* Sidebar daraltılmış mod */
.app-shell.sidebar-kapali { --sidebar-w: 56px; }
.app-shell.sidebar-kapali .sidebar-brand-text,
.app-shell.sidebar-kapali .sidebar-etiket,
.app-shell.sidebar-kapali .sidebar-rozet,
.app-shell.sidebar-kapali .sidebar-kullanici {
    display: none;
}
.app-shell.sidebar-kapali .sidebar-brand,
.app-shell.sidebar-kapali .sidebar-link,
.app-shell.sidebar-kapali .sidebar-foot {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.app-shell.sidebar-kapali .sidebar-link {
    padding: 11px 0;
    border-left-width: 3px;
}
.app-shell.sidebar-kapali .sidebar-cikis {
    margin: 0 auto;
}

/* ----- Topbar: tek satır, sade ----- */
:root { --topbar-h: 96px; }
.topbar {
    min-height: var(--topbar-h);
    padding: 8px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line-2);
}
.topbar-row-ana { min-height: 38px; }
.topbar-sol { gap: 12px; }
.topbar-baslik-grup { min-width: auto; }
.topbar-baslik {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}
.topbar-alt { display: none; }
.topbar-aksiyonlar { gap: 6px; }
.topbar-row-filtre {
    margin-top: 6px;
    padding-top: 8px;
}
.filtre-buton,
.filtre-select,
.filtre-arama-input {
    height: 32px;
    font-size: 12.5px;
}
.filtre-arama-input { min-width: 240px; }
.topbar-kul-btn { height: 34px; font-size: 12.5px; }

/* ----- KPI bandı: daha sade ----- */
.kpi-band {
    padding: 8px 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    gap: 0;
}
.kpi-item { padding: 0 14px; }
.kpi-item:first-child { padding-left: 4px; }
.kpi-etiket {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
}
.kpi-deger {
    font-size: 13.5px;
    font-weight: 700;
}

/* ----- Grid tablosu: kompakt + 16 sütun ----- */
.grid-tablo-wrap {
    border-radius: var(--radius-sm);
    max-height: calc(100vh - 195px);
}
.grid-tablo {
    min-width: 1640px;
    font-size: 12px;
}
.grid-tablo thead th {
    padding: 7px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #334155;
    background: #eef2f5;
    line-height: 1.15;
}
.grid-tablo thead th.th-center { text-align: center; }
.grid-tablo tbody td {
    padding: 5px 6px;
    line-height: 1.3;
    font-size: 12px;
}

/* Sütun genişlikleri (16 sütun) */
.grid-tablo .col-sira     { width: 44px;  min-width: 44px; text-align: center; }
.grid-tablo .col-firma    { width: 152px; min-width: 152px; max-width: 152px; left: 44px; }
.grid-tablo .col-hk       { width: 70px;  min-width: 70px; left: 196px; text-align: center; }
.grid-tablo .col-tarih    { width: 74px;  min-width: 74px; text-align: center; }
.grid-tablo .col-tutar    { width: 112px; min-width: 112px; }
.grid-tablo .col-vade     { width: 168px; min-width: 168px; }
.grid-tablo .col-cek      { width: 140px; min-width: 140px; }
.grid-tablo .col-onay     { width: 64px;  min-width: 64px;  text-align: center; padding-left: 3px; padding-right: 3px; }
.grid-tablo .col-odenecek { width: 152px; min-width: 152px; }
.grid-tablo .col-menu     { width: 46px;  min-width: 46px;  text-align: center; }

/* 1. vade ve 2. vade kutuları arasında net ayrım */
.grid-tablo thead th:nth-child(6),
.grid-tablo tbody tr.hk-satir td:nth-child(6) {
    padding-right: 14px;
    border-right: 2px solid #d8e0e8;
}
.grid-tablo thead th:nth-child(7),
.grid-tablo tbody tr.hk-satir td:nth-child(7) {
    padding-left: 14px;
}

/* Kutucukları da birbirinden uzaklaştır */
.grid-tablo tbody td:nth-child(6) .vade {
    margin-right: 3px;
}
.grid-tablo tbody td:nth-child(7) .vade {
    margin-left: 3px;
}

.grid-tablo thead th.col-sira,
.grid-tablo thead th.col-firma,
.grid-tablo thead th.col-hk {
    z-index: 8;
    background: #e6edf3;
}

/* Onay sütunu için th üstüne sticky alanları override */
.grid-tablo tr.santiye-baslik td { font-size: 12.5px; padding: 8px 8px; }
.grid-tablo tr.firma-baslik td   { padding: 8px 7px; }
.firma-baslik-ad { font-size: 12px; }
.firma-baslik-meta { font-size: 10px; }
.firma-baslik-ozet { font-size: 10.5px; color: var(--ink-2); }
.firma-baslik-ozet span + span { margin-left: 14px; }
.firma-baslik-ozet .ozet-kalem strong { font-weight: 700; }
.firma-baslik-ozet .ozet-brut strong  { color: #1e3a8a; }
.firma-baslik-ozet .ozet-vade strong  { color: #b45309; }
.firma-baslik-ozet .ozet-odeme strong { color: #15803d; }
.grid-tablo tr.firma-baslik td.ozet-kalan {
    color: #9a3412;
    font-weight: 700;
}
.firma-baslik-sira {
    width: 20px; height: 20px; line-height: 20px;
    font-size: 10.5px;
    margin-right: 4px;
}

.firma-tekrar-ad { font-size: 11.5px; }
.firma-tekrar-alt {
    margin-top: 1px;
    color: var(--warning);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tarih-cell { font-size: 11.5px; color: var(--ink-2); }

/* HK no — kompakt */
.hk-no {
    font-weight: 700;
    font-size: 12px;
    color: var(--brand);
}

/* ----- Vade Chip: TEK SATIR (Excel benzeri) ----- */
.vade {
    display: block;
    min-width: 0;
    padding: 4px 5px;
    border-left: 3px solid var(--line-2);
    border-radius: 4px;
    background: var(--bg);
    line-height: 1.2;
    cursor: default;
    transition: filter var(--t-fast);
}
.vade.tiklanabilir {
    cursor: pointer;
    box-shadow: none;
}
.vade.tiklanabilir:hover {
    filter: brightness(0.97);
    box-shadow: inset 0 0 0 1px rgba(14,116,144,.20);
}
.vade-tek {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}
.vade-tek-bekleme {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}
.vade-tek-bekleme .vade-tarih,
.vade-tek-bekleme .vade-tutar {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}
.vade-tarih {
    font-size: 10px;
    color: var(--ink-2);
    font-weight: 600;
    white-space: nowrap;
}
.vade-tutar {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
    letter-spacing: -0.02em;
}
.vade-alt {
    display: block;
    margin-top: 2px;
}
.vade-durum {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: inherit;
    opacity: .85;
}
.vade-kalan {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    color: var(--warning);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
}
.vade-bekleme {
    font-style: italic;
    color: var(--warning);
    font-weight: 700;
}

/* Vade durum renkleri (override) */
.vade-yesil    { background: var(--success-soft); border-left-color: var(--success); }
.vade-yesil .vade-tutar { color: var(--success); }
.vade-yesil .vade-durum { color: var(--success); }

.vade-sari     { background: var(--warning-soft); border-left-color: var(--warning); }
.vade-sari .vade-durum  { color: var(--warning); }

.vade-turuncu  { background: #fff7ed; border-left-color: #f97316; }
.vade-turuncu .vade-tarih { color: #c2410c; }
.vade-turuncu .vade-durum { color: #c2410c; }

.vade-kirmizi  { background: var(--danger-soft); border-left-color: var(--danger); }
.vade-kirmizi .vade-tarih { color: var(--danger); }
.vade-kirmizi .vade-tutar { color: var(--danger); }
.vade-kirmizi .vade-durum { color: var(--danger); }

.vade-gri      { background: #fafafa; border-left-color: var(--line-2); }

.vade-aksiyon { display: none; }
.vade-bos-yazi { display: none; }
.vade-ust { display: none; }

/* ----- Onay Hücresi: KOMPAKT (sadece ikon) ----- */
.onay-cell {
    text-align: center;
    white-space: nowrap;
    padding: 4px 3px !important;
}
.btn-onay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 1px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn-onay-ok {
    color: var(--success);
    border-color: rgba(22,163,74,.30);
    background: var(--success-soft);
}
.btn-onay-ok:hover {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}
.btn-onay-ret {
    color: var(--danger);
    border-color: rgba(220,38,38,.30);
    background: var(--danger-soft);
}
.btn-onay-ret:hover {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}
.btn-onay-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(14,116,144,.28);
    border-radius: 4px;
    background: var(--brand-50);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn-onay-menu:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}
.rozet-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: help;
}
.rozet-mini-gri     { background: var(--bg-2);      color: var(--muted);   border-color: var(--line); }
.rozet-mini-yesil   { background: var(--success-bg); color: var(--success); border-color: rgba(22,163,74,.25); }
.rozet-mini-kirmizi { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(220,38,38,.25); }
.rozet-mini-sari    { background: var(--warning-bg); color: var(--warning); border-color: rgba(217,119,6,.25); }

/* ----- Ödenecek hücresi: tutar üstte, buton altta — kompakt ----- */
.odenecek-cell {
    text-align: right;
    line-height: 1.2;
}
.odenecek-cell .btn-mini {
    margin-top: 3px;
    margin-left: 0;
}
.odenecek-tutar.aktif {
    color: var(--success);
    font-weight: 700;
    font-size: 12.5px;
}

/* ----- Satır menü ⋯ butonu ----- */
.satir-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    padding: 0 !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 0.5;
    letter-spacing: -1px;
    color: var(--ink-3);
}
.satir-menu-btn:hover {
    background: var(--bg-2);
    color: var(--brand);
}

/* Eski "Aksiyon" detay satırını gizle (artık kullanılmıyor ama eski snapshot için) */
.hk-detay-satir { display: none !important; }

/* ----- Popover (satır menü için) — küçük, sade ----- */
.popover-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px;
    min-width: 180px;
}
.popover-menu.context-menu {
    min-width: 200px;
}
.popover-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 4px;
    background: transparent;
    border: 0;
    text-align: left;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.popover-menu-item:hover {
    background: var(--brand-50);
    color: var(--brand);
}
.popover-menu-item.danger { color: var(--danger); }
.popover-menu-item.danger:hover { background: var(--danger-soft); }
.popover-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.popover-menu-ayrac {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 3px 0;
}

/* ----- ÖDEME DRAWER — yeni tasarım ----- */
.odeme-vade-tablo {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 6px;
}
.odeme-vade-bas {
    display: grid;
    grid-template-columns: 1fr 110px 130px;
    gap: 10px;
    padding: 7px 10px;
    background: var(--bg-2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.odeme-vade-bas span:nth-child(2),
.odeme-vade-bas span:nth-child(3) {
    text-align: right;
}
.odeme-vade-satir {
    display: grid;
    grid-template-columns: 1fr 110px 130px;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.odeme-vade-satir:last-child { border-bottom: 0; }
.odeme-vade-satir.vade-kapali {
    opacity: 0.55;
    background: var(--bg);
}
.odeme-vade-bilgi-baslik {
    font-weight: 600;
    color: var(--ink);
    font-size: 12.5px;
}
.odeme-vade-bilgi-alt {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}
.odeme-vade-acik {
    text-align: right;
    color: var(--warning);
    font-weight: 700;
    font-size: 12px;
}
.odeme-vade-input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    text-align: right;
    font-size: 12.5px;
    background: var(--white);
}
.odeme-vade-input:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14,116,144,.15);
}
.odeme-vade-input:disabled {
    background: var(--bg-2);
    color: var(--muted);
    cursor: not-allowed;
}
.odeme-ozet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-sm);
}
.odeme-ozet-kart {
    text-align: center;
}
.odeme-ozet-etiket {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.odeme-ozet-deger {
    display: block;
    margin-top: 2px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.odeme-ozet-deger.fark-pozitif { color: var(--success); }
.odeme-ozet-deger.fark-negatif { color: var(--danger); }
.odeme-cek-notu {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--warning-soft);
    border: 1px solid rgba(217,119,6,.25);
    border-radius: 4px;
    font-size: 11.5px;
    color: var(--ink-2);
}

/* ----- Drawer form: daha kompakt ----- */
.drawer-grup-baslik {
    font-size: 11px;
    margin-bottom: 4px;
}
.drawer-baslik { font-size: 15px; }
.drawer-icerik { padding: 14px 18px 0; }
.drawer-foot { padding: 10px 18px; }

.form-grup { margin-bottom: 10px; }
.form-label { font-size: 11px; font-weight: 600; }
.form-input, .form-select, .form-textarea {
    height: 34px;
    padding: 0 10px;
    font-size: 12.5px;
}
.form-textarea { height: auto; min-height: 60px; padding: 8px 10px; }

/* Genel toplam satırı sade */
.grid-tablo tr.genel-toplam td {
    padding: 8px 7px;
    font-size: 12px;
}

/* Şantiye toplam stili sade */
.grid-tablo tr.alt-toplam td {
    padding: 8px 7px;
    background: #f7f9fb;
    font-weight: 700;
}

/* Firma blokları arasına nefes alanı */
.grid-tablo tr.alt-toplam td {
    border-bottom: 10px solid #f5f7f9;
}
.grid-tablo tr.firma-baslik + tr.hk-satir td {
    border-top: 1px solid #dde6ee;
}

/* Genel toplam hover'da bozulmasın */
.grid-tablo tbody tr.genel-toplam td,
.grid-tablo tbody tr.genel-toplam:hover td,
.grid-tablo tbody tr.genel-toplam:hover td:not(.santiye-cell):not(.firma-cell) {
    background: var(--brand) !important;
    color: var(--white) !important;
    border-top-color: var(--brand-dark);
}
.grid-tablo tbody tr.genel-toplam .num,
.grid-tablo tbody tr.genel-toplam .brand,
.grid-tablo tbody tr.genel-toplam .success,
.grid-tablo tbody tr.genel-toplam .warning,
.grid-tablo tbody tr.genel-toplam .danger,
.grid-tablo tbody tr.genel-toplam .muted,
.grid-tablo tbody tr.genel-toplam .genel-toplam-meta {
    color: rgba(255,255,255,.9) !important;
}
.grid-tablo tbody tr.genel-toplam td:last-child {
    background: var(--brand) !important;
    border-right: 0 !important;
}

/* Para + ₺ tek satır dursun */
.grid-tablo td.num.mono,
.grid-tablo .odenecek-tutar,
.grid-tablo .vade-tutar {
    white-space: nowrap;
    word-break: keep-all;
}

/* =========================================================================
   ÖDEME LİSTESİ
   ========================================================================= */
.odeme-liste-sayfa {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.odeme-kpi-band {
    margin-bottom: 0;
}
.odeme-liste-tabs {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.odeme-liste-tab {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-xs);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
}
.odeme-liste-tab:hover {
    background: var(--brand-50);
    color: var(--brand);
    text-decoration: none;
}
.odeme-liste-tab.aktif {
    background: var(--brand);
    color: var(--white);
}
.odeme-ay-grup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.odeme-ay-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius);
}
.odeme-ay-baslik h2 {
    margin: 0 0 2px;
    font-size: 15px;
    color: var(--brand-dark);
}
.odeme-ay-baslik span {
    color: var(--muted);
    font-size: 12px;
}
.odeme-liste-wrap {
    overflow-x: auto;
}
.odeme-liste-tablo th,
.odeme-liste-tablo td {
    white-space: nowrap;
}
.odeme-liste-tablo .btn-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
    font-weight: 700;
}
.odeme-liste-tablo .btn-link:hover {
    text-decoration: underline;
}
.odeme-liste-aksiyon {
    text-align: center;
    width: 64px;
}
