/* ============================================================
   Payandam Tasarim Sistemi
   Kaynak: kullanicinin "Claude design" handoff paketi (design_handoff_dashboard)
   Renkler/tipografi NIHAI kabul edilmistir, degistirilmemelidir.
   ============================================================ */

:root {
    --ink: #030E21;
    --sidebar-bg: #0B132A; /* Koyu Mürekkep rengi */
    --coral: #FC4E32;
    --coral-dark: #D6431F;
    --coral-dark-hover: #B23A1B;
    --danger: #C23F26;
    --success: #1F7A52;
    --warning: #A8791F;
    --app-bg: #f8f8f8; /* Soft light gray arka plan */
    --input-bg: #F0ECE3;
    --surface: #FFFFFF;
    --border: #E5DFD2;
    --border-light: #EEF1F6;
    --text-secondary: #5B6472;
    --text-tertiary: #94A0AF;
    --sidebar-inactive: #E2E8F0; /* Okunabilir açık menü yazısı */
    --sidebar-caption: #94A3B8;

    --radius-card: 12px;
    --radius-control: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--app-bg);
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
}

.tutar { font-family: 'IBM Plex Mono', monospace; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { color: var(--coral-dark-hover); }

/* ---------- Uygulama iskeleti ---------- */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 270px;
    min-width: 270px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: transform 0.25s ease, width 0.2s ease;
    z-index: 40;
}

/* Sidebar collapsed state (desktop only) */
.sidebar.collapsed {
    width: 76px;
    min-width: 76px;
}
.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 22px 0;
}
.sidebar.collapsed .sidebar-header .brand-text-container,
.sidebar.collapsed .sidebar-header .sidebar-tenant-adi,
.sidebar.collapsed .sidebar-header img.kelime,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-footer span,
.sidebar.collapsed .nav-item .chevron,
.sidebar.collapsed .nav-submenu {
    display: none !important;
}
.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
    border-left-width: 3px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 22px 18px;
    flex-shrink: 0;
}
.sidebar-header img.ikon { width: 54px; height: auto; flex-shrink: 0; }
.sidebar-header img.kelime { height: 21px; width: auto; }
.sidebar-tenant-adi {
    font-size: 11px;
    color: var(--sidebar-caption);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    margin-top: 3px;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-control);
    color: var(--sidebar-inactive);
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
    white-space: nowrap;
}
.nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-item:hover { color: #FFFFFF; text-decoration: none; }
.nav-item.aktif {
    color: #FFFFFF;
    background: rgba(252, 78, 50, 0.16);
    border-left: 3px solid var(--coral);
    font-weight: 600;
}

/* Accordion alt menüleri */
.nav-item .chevron {
    margin-left: auto;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.nav-item-parent.open .chevron {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding-left: 32px;
    margin: 2px 0 4px;
}
.nav-submenu.open {
    display: flex;
}
.sub-nav-item {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 13.5px;
    color: #dac1c1;
    border-radius: var(--radius-control);
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-nav-item:hover { color: #FFFFFF; text-decoration: none; }
.sub-nav-item.aktif {
    color: #FFFFFF;
    background: rgb(253 81 51 / 50%);
}
.nav-submenu .dropdown-divider {
    margin: 6px 14px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--sidebar-caption);
    font-size: 12.5px;
    flex-shrink: 0;
}

/* Mobile Off-canvas Sidebar & Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32,32,32,0.6);
    z-index: 1030;
}
.sidebar-backdrop.active {
    display: block;
}

@media (max-width: 879.98px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 1040;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 10px 0 28px rgba(0,0,0,0.28);
    }
}

.topbar {
    height: 64px;
    flex-shrink: 0;
    background: #e1e1e1;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 8px 0;
}

.topbar-doviz-seridi {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.topbar-tarih {
    color: var(--ink);
    font-weight: 600;
}
.topbar-doviz-ayrac {
    color: rgba(0, 0, 0, 0.15);
    font-weight: 300;
}
.topbar-kur {
    font-family: 'IBM Plex Mono', monospace;
}
.kur-kod {
    color: var(--text-secondary);
    margin-right: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}
.kur-deger {
    color: var(--ink);
    font-weight: 600;
}

.ana-icerik { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sayfa-icerigi { flex: 1; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Kartlar ---------- */

.kart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px 22px;
}

.kpi-baslik { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin: 0 0 10px; }
.kpi-deger { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 600; color: var(--ink); margin: 0; }
.kpi-uyari .kpi-deger { color: var(--warning); }
.kpi-not { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; margin-top: 10px; }
.kpi-not.uyari { color: var(--warning); }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* ---------- Butonlar ---------- */

.btn-payandam {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-control);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-birincil { background: var(--coral); color: #FFFFFF; box-shadow: 0 2px 8px rgba(252, 78, 50, 0.35); }
.btn-ikincil { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- Dashboard İki Kolon Düzeni ---------- */
.dashboard-iki-kolon {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 991.98px) {
    .dashboard-iki-kolon {
        grid-template-columns: 1fr;
    }
}

/* İşlem Listeleri */
.islem-satir {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
}
.islem-satir:first-of-type {
    border-top: none;
}
.islem-satir .chip {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
/* Chip Renk Kodları */
.chip.chip-fat { background: #E7ECF5; color: #030E21; }
.chip.chip-odm { background: #E3F3EA; color: #1F7A52; }
.chip.chip-tkf { background: #FDE8E2; color: #C23F26; }
.chip.chip-ony { background: #E3F3EA; color: #1F7A52; }
.chip.chip-gdr { background: #E7EBF2; color: #5B6472; }

/* ---------- Yeni Modern Login Tasarımı ---------- */

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #030E21; /* Ink as background for layout transition */
    overflow: hidden;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sol Panel (Görsel ve Marka) */
.login-visual-panel {
    flex: 1.2;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #0B132A 0%, #030E21 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 991.98px) {
    .login-visual-panel {
        display: none; /* Mobilde gizle */
    }
}

/* Arka Plandaki Parlamalar */
.visual-bg-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--coral);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #4A90E2;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    text-align: center;
    color: #FFFFFF;
}

.visual-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--sidebar-caption);
    margin-bottom: 40px;
}

/* Glassmorphism Floating Mockup */
.visual-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    width: 320px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0px) rotate(-1deg);
    animation: floatingMockup 6s ease-in-out infinite alternate;
}

@keyframes floatingMockup {
    0% {
        transform: translateY(0px) rotate(-1deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: translateY(-12px) rotate(1deg);
        box-shadow: 0 32px 50px rgba(252, 78, 50, 0.1);
    }
}

.preview-header {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.preview-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.preview-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.preview-line.long { width: 80%; }
.preview-line.medium { width: 50%; }
.preview-line.short { width: 30%; }

.preview-bar-chart {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 60px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-bar-chart .bar {
    flex: 1;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: height 0.3s;
}

.preview-bar-chart .bar-1 { height: 40%; background: rgba(252, 78, 50, 0.4); }
.preview-bar-chart .bar-2 { height: 75%; background: rgba(252, 78, 50, 0.6); }
.preview-bar-chart .bar-3 { height: 50%; background: rgba(252, 78, 50, 0.4); }
.preview-bar-chart .bar-4 { height: 90%; background: var(--coral); }


/* Sağ Panel (Form) */
.login-form-panel {
    width: 500px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 60px;
}

@media (max-width: 991.98px) {
    .login-form-panel {
        width: 100%;
        padding: 40px 24px;
        align-items: center;
        background: #F8F8F8; /* Soft light gray arka plan */
        justify-content: center;
        gap: 30px;
    }
}

.login-form-wrapper {
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    max-width: 380px;
}

.login-logo-container {
    margin-bottom: 40px;
    text-align: left;
}

@media (max-width: 991.98px) {
    .login-logo-container {
        text-align: center;
    }
}

.login-logo-img {
    height: 155px;
    width: auto;
    object-fit: contain;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Kutu Tasarımı (Firma Seç ve Diğer Fallback'ler İçin) */
.login-kutu {
    margin: auto;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(3, 14, 33, 0.04);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Floating Label Alan Grubu */
.login-alan-group {
    margin-bottom: 24px;
}

.login-field {
    position: relative;
    background: transparent;
}

.login-field input {
    width: 100%;
    padding: 16px 16px 14px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-control);
    background: transparent;
    outline: none;
    transition: all 0.2s ease;
}

.login-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14.5px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--surface);
    padding: 0 4px;
}

@media (max-width: 991.98px) {
    .login-field label {
        background: #F8F8F8; /* Sol paneldeki backgroundla uyum için mobilde */
    }
}

/* Floating behavior when input is focused or not empty */
.login-field input:focus ~ label,
.login-field input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    left: 12px;
    font-weight: 600;
    color: var(--coral);
}

.login-field input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(252, 78, 50, 0.08);
}

/* Validation Errors */
.login-validation-alert {
    background: rgba(194, 63, 38, 0.08);
    border: 1px solid rgba(194, 63, 38, 0.2);
    border-radius: var(--radius-control);
    padding: 12px 16px;
    margin-bottom: 24px;
    color: var(--danger);
    font-size: 13.5px;
}

.login-validation-alert ul {
    margin: 0;
    padding-left: 20px;
}

.field-validation-error {
    display: block;
    color: var(--danger);
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 500;
}

/* Remember me custom checkbox */
.login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.login-remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.login-remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

@media (max-width: 991.98px) {
    .checkbox-custom {
        background-color: #FFFFFF;
    }
}

.login-remember-me:hover input ~ .checkbox-custom {
    border-color: var(--text-secondary);
}

.login-remember-me input:checked ~ .checkbox-custom {
    background-color: var(--coral);
    border-color: var(--coral);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-remember-me input:checked ~ .checkbox-custom:after {
    display: block;
}

.checkbox-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.login-remember-me:hover .checkbox-text {
    color: var(--ink);
}

/* Submit Button with Hover Effects */
.login-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-control);
    background: var(--coral);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(252, 78, 50, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-submit-btn:hover {
    background: var(--coral-dark);
    box-shadow: 0 6px 20px rgba(252, 78, 50, 0.45);
    transform: translateY(-2px);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(252, 78, 50, 0.35);
}

.btn-arrow {
    transition: transform 0.25s ease;
}

.login-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Footer style */
.login-form-panel .login-footer {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: left;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .login-form-panel .login-footer {
        text-align: center;
        margin-top: 0;
    }
}

/* ============================================================
   CANLI TEMA DEMO SİSTEMİ (AYDINLIK / KOYU SOL BÖLÜM)
   ============================================================ */

/* SEÇENEK A: Aydınlık Sol Bölüm (Light Theme) */
.sidebar.theme-light {
    background: #dbdbdb;
    border-right: 1px solid var(--border);
}

.sidebar.theme-light .sidebar-header {
    border-bottom: 1px solid var(--border-light);
}

/* Logo Görünürlük Kuralları */
.logo-light-only {
    display: none !important;
}
.logo-dark-only {
    display: inline-block !important;
}
.sidebar.theme-light .logo-dark-only {
    display: none !important;
}
.sidebar.theme-light .logo-light-only {
    display: inline-block !important;
}

/* Aydınlık modda menü elemanları */
.sidebar.theme-light .nav-item {
    color: #13223a;
}
.sidebar.theme-light .nav-item svg {
    color: #13223a;
}
.sidebar.theme-light .nav-item:hover {
    color: #13223a;
    background: rgba(19, 34, 58, 0.08);
}
.sidebar.theme-light .nav-item.aktif {
    color: #ffffff !important;
    background: rgb(48 11 5 / 50%) !important;
    border-left: 3px solid var(--coral);
    font-weight: 600;
}
.sidebar.theme-light .nav-item.aktif svg {
    color: #ffffff !important;
}
.sidebar.theme-light .sub-nav-item {
    color: #13223a;
}
.sidebar.theme-light .sub-nav-item:hover {
    color: #13223a;
    background: rgba(19, 34, 58, 0.08);
}
.sidebar.theme-light .sub-nav-item.aktif {
    color: #ffffff !important;
    background: rgb(48 11 5 / 50%) !important;
}
.sidebar.theme-light .nav-submenu .dropdown-divider {
    border-top-color: rgba(19, 34, 58, 0.15);
}

.sidebar.theme-light .sidebar-footer {
    border-top: 1px solid rgba(19, 34, 58, 0.12);
    color: #13223a;
}
.sidebar.theme-light #sidebarThemeToggle {
    border-color: rgba(19, 34, 58, 0.25) !important;
    color: #13223a !important;
}
.sidebar.theme-light #sidebarCollapseBtn {
    color: #13223a !important;
}

/* ============================================================
   PAYANDAM PREMIUM FORM, TABLO VE KART YENİDEN TASARIMI
   ============================================================ */

/* Genel Sayfa Başlığı ve Açıklamaları */
.sayfa-icerigi h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.sayfa-icerigi p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Premium Kartlar */
.kart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(3, 14, 33, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.kart:hover {
    box-shadow: 0 6px 20px rgba(3, 14, 33, 0.04);
}

/* Form Alanları (.login-alan) Yeniden Tanımları */
.login-alan {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.login-alan label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-left: 2px;
}

.login-alan input,
.login-alan select,
.login-alan textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-control);
    background-color: var(--surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-alan input:focus,
.login-alan select:focus,
.login-alan textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(252, 78, 50, 0.08);
    background-color: #FFFFFF;
}

.login-alan input[readonly],
.login-alan input[disabled],
.login-alan select[disabled],
.login-alan textarea[disabled] {
    background-color: var(--input-bg);
    border-color: var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Belge bilgileri kartında satırlar arası sıkı boşluk (grid g-* zaten mesafe verir) */
.belge-bilgi-kart .login-alan {
    margin-bottom: 1px;
}

/* Satır Ekle — ürün sütununun altında, Kaydet'ten küçük ve ikincil */
.btn-satir-ekle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    line-height: 1.2;
    box-shadow: none;
}

.btn-satir-ekle-arti {
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1;
}

/* Vade tarihi + süre dropdown (tek alan içinde) */
.vade-tarih-grubu {
    display: flex;
    gap: 6px;
    align-items: stretch;
    width: 100%;
}

.login-alan .vade-tarih-grubu .vade-tarih-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 132px;
    max-width: none;
}

.login-alan .vade-tarih-grubu .vade-sure-select {
    flex: 0 0 118px;
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    padding: 8px 22px 8px 8px;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-control);
    background-color: var(--surface);
    outline: none;
    height: 42px;
}

.login-alan .vade-tarih-grubu .vade-sure-select:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(252, 78, 50, 0.08);
    background-color: #FFFFFF;
}

.login-hata {
    font-size: 12.5px;
    color: var(--danger);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Hata Özeti Paneli */
.validation-summary-errors {
    background: rgba(194, 63, 38, 0.05);
    border: 1.5px solid rgba(194, 63, 38, 0.15);
    border-radius: var(--radius-control);
    padding: 14px 18px;
    color: var(--danger);
    font-size: 13.5px;
    margin-bottom: 20px;
}
.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}
/* Hata yokken TagHelper hem valid hem errors sinifi birakabiliyor — bos cerceveyi gizle */
.validation-summary-valid {
    display: none !important;
}

/* Premium Modern Tablolar */
.table-container {
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(3, 14, 33, 0.02);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-bottom: 0 !important;
}

.custom-table thead th {
    background-color: #F8F9FA;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--border) !important;
}

.custom-table tbody td {
    padding: 14px 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table tbody tr {
    transition: background-color 0.15s ease;
}

.custom-table tbody tr:hover {
    background-color: rgba(3, 14, 33, 0.015) !important;
}

/* Durum Rozetleri */
.rozet {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 30px;
    line-height: 1;
}

.rozet-onayli, .rozet-aktif, .rozet-giden {
    background-color: rgba(31, 122, 82, 0.1);
    color: var(--success);
}

.rozet-bekleyen, .rozet-taslak {
    background-color: rgba(168, 121, 31, 0.1);
    color: var(--warning);
}

.rozet-red, .rozet-pasif, .rozet-gelen {
    background-color: rgba(194, 63, 38, 0.1);
    color: var(--danger);
}

.rozet-otomatik {
    background-color: rgba(19, 34, 58, 0.1);
    color: #13223a;
}

.fatura-ipuucu {
    background: #EEF1F5;
    border-radius: var(--radius-control);
}

.fatura-liste-ust {
    margin-bottom: 0;
}

.fatura-aksiyon-grup {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.fatura-aksiyon-ikon {
    flex-shrink: 0;
}

.fatura-aksiyon-yardim {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.fatura-aksiyon-yardim:hover,
.fatura-aksiyon-yardim:focus-visible {
    border-color: var(--ink);
    background: #EEF1F5;
    outline: none;
}

.fatura-liste-aciklama {
    font-size: 0.9rem;
    max-width: 52rem;
}

.fatura-ipuucu-satir {
    max-width: 36rem;
}

.fatura-ipuucu-satir > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
}

.fatura-ipuucu-satir > summary::-webkit-details-marker {
    display: none;
}

.fatura-ipuucu-satir > summary::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background:
        linear-gradient(var(--ink), var(--ink)) center 4px / 1.5px 1.5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center 7px / 1.5px 5px no-repeat;
    opacity: 0.75;
}

.fatura-ipuucu-satir > summary::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ink);
    opacity: 0.8;
    margin-left: 2px;
}

.fatura-ipuucu-satir[open] > summary::after {
    border-top: none;
    border-bottom: 6px solid var(--ink);
}

.fatura-ipuucu-icerik {
    margin-top: 0.45rem;
    padding: 0.65rem 0.85rem;
    background: #EEF1F5;
    border-radius: var(--radius-control);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Kompakt filtre çubuğu — alan genişliği içeriğe göre */
.fatura-filtre {
    padding: 0.75rem 0.9rem;
    margin-bottom: 0 !important;
    background: #F4F6F8;
    border-color: #E4E8EE;
    box-shadow: none;
}

.fatura-filtre:hover {
    box-shadow: none;
}

.fatura-filtre-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.55rem 0.7rem;
}

.fatura-filtre-alan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 !important;
}

.fatura-filtre-alan label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.fatura-filtre-alan input,
.fatura-filtre-alan select {
    width: 100%;
    min-height: 36px;
    height: 36px;
    padding: 0 0.65rem;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-control);
    background-color: #fff;
    outline: none;
    box-sizing: border-box;
}

.fatura-filtre-alan input:focus,
.fatura-filtre-alan select:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(252, 78, 50, 0.08);
}

.fatura-filtre-alan select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.85rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23030E21' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 11px 7px;
    cursor: pointer;
}

.fatura-filtre-alan.filtre-ara {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 280px;
}

.fatura-filtre-alan.filtre-tarih {
    flex: 0 0 9.4rem;
    width: 9.4rem;
}

.fatura-filtre-alan.filtre-kisa {
    flex: 0 0 6.75rem;
    width: 6.75rem;
}

.fatura-filtre-alan.filtre-orta {
    flex: 0 0 8.5rem;
    width: 8.5rem;
}

.fatura-filtre-alan.filtre-durum {
    flex: 0 0 10.25rem;
    width: 10.25rem;
}

.fatura-filtre-aksiyonlar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding-bottom: 0;
    height: 36px;
}

.fatura-filtre-aksiyonlar .btn-payandam {
    min-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
}

.fatura-liste-blok {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fatura-liste-blok .table-container {
    margin-bottom: 0;
}

.fatura-cari-hucre {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fatura-ettn {
    letter-spacing: -0.01em;
}

@media (max-width: 576px) {
    .fatura-filtre-alan.filtre-ara {
        flex: 1 1 100%;
        max-width: none;
    }

    .fatura-filtre-alan.filtre-tarih,
    .fatura-filtre-alan.filtre-kisa,
    .fatura-filtre-alan.filtre-orta,
    .fatura-filtre-alan.filtre-durum {
        flex: 1 1 calc(50% - 0.35rem);
        width: auto;
        min-width: 0;
    }
}

.fatura-sayfalama {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.15rem 0.15rem 0;
    margin: 0;
}

.fatura-sayfalama-sag {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.fatura-sayfalama-boyut {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.fatura-sayfalama-boyut select {
    min-height: 32px;
    padding: 0 1.75rem 0 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
}

.fatura-sayfalama-dugmeler {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.fatura-sayfalama-nokta {
    color: var(--text-tertiary);
    padding: 0 2px;
    font-weight: 600;
}

.tablo-islem-aktif {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--ink);
}

.tablo-islem-kilit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px dashed var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: transparent;
    cursor: help;
}

/* Tablo satır işlemleri — kompakt, yumuşak, Marka uyumlu */
.tablo-islemler {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.tablo-islemler form {
    display: inline;
    margin: 0;
}

.tablo-islem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: none;
    border-radius: var(--radius-control);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tablo-islem-notr {
    background: #EEF1F5;
    color: var(--ink);
}

.tablo-islem-notr:hover {
    background: var(--ink);
    color: #fff;
}

.tablo-islem-onay {
    background: rgba(31, 122, 82, 0.12);
    color: var(--success);
}

.tablo-islem-onay:hover {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(31, 122, 82, 0.28);
}

.tablo-islem-red {
    background: rgba(194, 63, 38, 0.1);
    color: var(--danger);
}

.tablo-islem-red:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(194, 63, 38, 0.28);
}

.tablo-islem-ayiraci {
    display: inline-block;
    width: 1px;
    height: 18px;
    margin: 0 2px;
    background: var(--border);
    flex-shrink: 0;
}

/* Buton Düzenlemeleri */
.btn-payandam {
    transition: all 0.2s ease-in-out;
}
.btn-payandam:hover {
    transform: translateY(-1px);
}
.btn-payandam:active {
    transform: translateY(0);
}
.btn-payandam.btn-birincil:hover {
    background-color: var(--coral-dark);
    box-shadow: 0 4px 12px rgba(252, 78, 50, 0.45);
}
.btn-payandam.btn-ikincil:hover {
    background-color: var(--ink);
    color: #FFFFFF;
}

/* Arama ve Filtreleme Barları */
.arama-grubu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.arama-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.arama-input-wrapper input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-control);
    background-color: var(--surface);
    outline: none;
    transition: all 0.2s;
}

.arama-input-wrapper input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(252, 78, 50, 0.08);
}

/* === Floating Toast Notifications === */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast-box {
    background: #ffffff;
    border-left: 4px solid var(--coral);
    color: var(--ink);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto;
}
.toast-box.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-box.success {
    border-left-color: #10b981; /* Emerald green */
}
.toast-box.error {
    border-left-color: #ef4444; /* Rose red */
}
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast-content {
    font-size: 13.5px;
    font-weight: 500;
    flex-grow: 1;
    line-height: 1.4;
}
.toast-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.toast-close:hover {
    color: var(--ink);
}

/* Toastr — yatay ortala; desktop %40, mobil %90 */
#toast-container.toast-top-center {
    top: 16px;
    right: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}
#toast-container.toast-top-center > div {
    pointer-events: auto;
    width: 40vw !important;
    max-width: 40vw !important;
    margin: 0 auto 10px auto !important;
}
@media (max-width: 768px) {
    #toast-container.toast-top-center > div {
        width: 90vw !important;
        max-width: 90vw !important;
    }
}

/* ---------- E-Fatura parametre / ilk indirme UX ---------- */

.efatura-ozet {
    padding: 1.1rem 1.35rem;
    max-width: 760px;
}

.efatura-ozet-baslik {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.85rem;
}

.efatura-ozet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.efatura-ozet-madde {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.efatura-ozet-etiket {
    width: 100%;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.efatura-ozet-ek {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    width: 100%;
}

.efatura-rozet {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.efatura-rozet-ok {
    background: rgba(31, 122, 82, 0.12);
    color: var(--success);
}

.efatura-rozet-hata {
    background: rgba(194, 63, 38, 0.12);
    color: var(--danger);
}

.efatura-rozet-bekliyor {
    background: rgba(168, 121, 31, 0.14);
    color: var(--warning);
}

@media (max-width: 576px) {
    .efatura-ozet-grid {
        grid-template-columns: 1fr;
    }
}

.efatura-param-form {
    gap: 1rem !important;
}

.efatura-grup {
    padding: 1.25rem 1.35rem;
}

.efatura-grup-ayrac {
    margin: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.efatura-bolum-alt-aksiyon {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.efatura-bolum-kilitli {
    padding: 1rem 1.35rem;
    background: rgba(0, 0, 0, 0.02);
    border-style: dashed;
}

.efatura-bolum {
    padding: 1.25rem 1.35rem;
}

.efatura-bolum-baslik {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.efatura-adim-no {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.efatura-durum {
    border-radius: var(--radius-control);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.efatura-durum-ok {
    background: rgba(31, 122, 82, 0.1);
    color: var(--success);
    border: 1px solid rgba(31, 122, 82, 0.22);
}

.efatura-durum-hata {
    background: rgba(194, 63, 38, 0.1);
    color: var(--danger);
    border: 1px solid rgba(194, 63, 38, 0.22);
}

.efatura-durum-bekliyor {
    background: rgba(168, 121, 31, 0.1);
    color: var(--warning);
    border: 1px solid rgba(168, 121, 31, 0.22);
}

.efatura-cta {
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(252, 78, 50, 0.28);
    background: linear-gradient(135deg, rgba(252, 78, 50, 0.06), rgba(255, 255, 255, 0.9));
}

.efatura-cta-etiket {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--coral-dark);
    margin-bottom: 0.35rem;
}

.efatura-secenek {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.15s, background 0.15s;
}

.efatura-secenek:hover {
    border-color: rgba(252, 78, 50, 0.45);
    background: rgba(252, 78, 50, 0.03);
}

.efatura-secenek:has(input:checked) {
    border-color: var(--coral);
    background: rgba(252, 78, 50, 0.06);
}

.efatura-secenek input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--coral);
}

.efatura-secenek strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.efatura-onay-shell,
.efatura-ilerleme-kart {
    max-width: 640px;
}

.efatura-onay-kart {
    padding: 1.35rem 1.5rem;
}

.efatura-onay-liste {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.efatura-onay-liste li {
    margin-bottom: 0.65rem;
}

.efatura-onay-liste strong {
    color: var(--ink);
}

.efatura-ilerleme-kart {
    padding: 1.5rem 1.5rem 1.75rem;
}

.efatura-ilerleme-gorsel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0 0.5rem;
}

.efatura-pulse {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--coral);
    position: relative;
    animation: efatura-pulse 1.6s ease-out infinite;
}

.efatura-pulse::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(252, 78, 50, 0.35);
    animation: efatura-ring 1.6s ease-out infinite;
}

.efatura-pulse.durdu {
    animation: none;
    background: var(--success);
}

.efatura-pulse.durdu::after {
    animation: none;
    border-color: rgba(31, 122, 82, 0.35);
}

.efatura-ilerleme-yazi {
    font-weight: 600;
    color: var(--ink);
    text-align: center;
}

.efatura-adimlar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.efatura-adimlar li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.92rem;
}

.efatura-adim-nokta {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--surface);
}

.efatura-adimlar li.aktif {
    color: var(--ink);
    font-weight: 600;
}

.efatura-adimlar li.aktif .efatura-adim-nokta {
    border-color: var(--coral);
    color: #fff;
    background: var(--coral);
}

.efatura-adimlar li.tamam {
    color: var(--success);
}

.efatura-adimlar li.tamam .efatura-adim-nokta {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.efatura-adimlar li.hata {
    color: var(--danger);
}

.efatura-adimlar li.hata .efatura-adim-nokta {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

@keyframes efatura-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.92); opacity: 0.85; }
}

@keyframes efatura-ring {
    0% { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 576px) {
    .efatura-bolum {
        padding: 1rem 1.1rem;
    }
}

/* Gelen fatura PDF görüntüleme (büyük popup) */
.fatura-pdf-modal-dialog {
    width: min(96vw, 1100px);
    max-width: 1100px;
    height: 92vh;
    margin: 1.5rem auto;
}

.fatura-pdf-modal-content {
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.fatura-pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    flex-shrink: 0;
}

.fatura-pdf-modal-baslik {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fatura-pdf-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.fatura-pdf-footer-sol {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.fatura-pdf-footer-btn {
    min-height: 36px;
    padding: 0 0.95rem !important;
    font-size: 13px !important;
    font-weight: 600;
    white-space: nowrap;
}

.fatura-pdf-mail-textarea {
    border-radius: var(--radius-control);
    border: 1.5px solid var(--border);
    font-size: 13.5px;
    min-height: 88px;
    resize: vertical;
}

.fatura-pdf-mail-textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(252, 78, 50, 0.08);
    outline: none;
}

.fatura-pdf-modal-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #f3f4f6;
}

.fatura-pdf-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f4f6;
}

.fatura-pdf-yukleniyor {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

button.tablo-islem {
    font-family: inherit;
    cursor: pointer;
}