/* ——— Teklif & Çek/Senet Modal (gelişmiş UI) ——— */
#teklif-cek-modal {
    --tc-accent: #3b82f6;
    --tc-accent-dark: #2563eb;
    --tc-accent-end: #1d4ed8;
    --tc-header-end: #2563eb;
    --tc-ozet-border: #bfdbfe;
    --tc-hover-bg: #eff6ff;
    --tc-selected-bg: #dbeafe;
    --tc-badge-bg: #dbeafe;
    --tc-badge-color: #1e40af;
    --tc-chip-border: #93c5fd;
    --fin-h: 36px;
    --fin-radius: 8px;
    --fin-font: 0.8125rem;
    --fin-border: #d1d5db;
    z-index: 10040;
}
#teklif-cek-modal.active { display: flex !important; }

#teklif-cek-modal .teklif-cek-modal-content {
    max-width: 1180px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}
#teklif-cek-modal.modal .modal-content.teklif-cek-modal-content {
    max-width: 1180px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
}

#teklif-cek-modal .teklif-cek-modal-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--tc-accent), var(--tc-header-end));
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: #fff;
}
#teklif-cek-modal .teklif-cek-header-brand h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
#teklif-cek-modal .teklif-cek-header-brand i { font-size: 1rem; opacity: 0.95; }

/* Header segment seçici (Teklif · Sipariş · Portföy) */
#teklif-cek-modal .teklif-cek-header-segment {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    min-width: 96px;
    padding: 0 14px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
}
#teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme i { font-size: 0.82rem; opacity: 0.92; }
#teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
#teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme.active {
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: var(--tc-accent-dark);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
#teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme.active i { color: var(--tc-accent-dark); }
#teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

#teklif-cek-modal .teklif-cek-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
#teklif-cek-modal .teklif-cek-yenile-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
#teklif-cek-modal .teklif-cek-yenile-btn:hover { background: rgba(255, 255, 255, 0.22); }
#teklif-cek-modal .fin-rapor-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    padding: 0 4px;
}
#teklif-cek-modal .fin-rapor-close:hover { opacity: 1; }

/* ——— Buton sistemi (modal kapsamlı — fin-btn burada tanımlı) ——— */
#teklif-cek-modal .fin-btn,
#cek-ciro-modal .fin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--fin-h);
    min-height: var(--fin-h);
    padding: 0 14px;
    border: none;
    border-radius: var(--fin-radius);
    font-family: inherit;
    font-size: var(--fin-font);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 1px rgba(15, 23, 42, 0.04);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
#teklif-cek-modal .fin-btn:hover,
#cek-ciro-modal .fin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
#teklif-cek-modal .fin-btn:active,
#cek-ciro-modal .fin-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
#teklif-cek-modal .fin-btn:disabled,
#cek-ciro-modal .fin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#teklif-cek-modal .fin-btn i,
#cek-ciro-modal .fin-btn i { font-size: 0.88em; opacity: 0.95; }
#teklif-cek-modal .fin-btn--sm,
#cek-ciro-modal .fin-btn--sm {
    height: 30px;
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.75rem;
    border-radius: 7px;
}
#teklif-cek-modal .fin-btn--xs,
#cek-ciro-modal .fin-btn--xs {
    height: 26px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 0.68rem;
    border-radius: 6px;
    gap: 4px;
}
#teklif-cek-modal .fin-btn--primary,
#cek-ciro-modal .fin-btn--primary {
    background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-end));
    color: #fff;
}
#teklif-cek-modal .fin-btn--primary:hover,
#cek-ciro-modal .fin-btn--primary:hover {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
#teklif-cek-modal .fin-btn--success,
#cek-ciro-modal .fin-btn--success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
#teklif-cek-modal .fin-btn--success:hover,
#cek-ciro-modal .fin-btn--success:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
#teklif-cek-modal .fin-btn--danger,
#cek-ciro-modal .fin-btn--danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
#teklif-cek-modal .fin-btn--danger:hover,
#cek-ciro-modal .fin-btn--danger:hover {
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.32);
}
#teklif-cek-modal .fin-btn--warning,
#cek-ciro-modal .fin-btn--warning {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}
#teklif-cek-modal .fin-btn--info,
#cek-ciro-modal .fin-btn--info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}
#teklif-cek-modal .fin-btn--ghost,
#cek-ciro-modal .fin-btn--ghost {
    background: linear-gradient(180deg, #fff, #f8fafc);
    color: #374151;
    border: 1px solid var(--fin-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#teklif-cek-modal .fin-btn--ghost:hover,
#cek-ciro-modal .fin-btn--ghost:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #111827;
}

/* Yeni kayıt CTA */
#teklif-cek-modal .teklif-cek-btn-yeni {
    height: 32px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 9px;
    background: linear-gradient(135deg, #22c55e, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
#teklif-cek-modal .teklif-cek-btn-yeni:hover {
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#teklif-cek-modal .teklif-cek-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* KPI — kompakt şerit */
#teklif-cek-modal .teklif-cek-ozet-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
#teklif-cek-modal .teklif-cek-ozet-kart {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--tc-ozet-border);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 52px;
}
#teklif-cek-modal .teklif-cek-ozet-kart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
#teklif-cek-modal .teklif-cek-ozet-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
#teklif-cek-modal .teklif-cek-ozet-kart--teklif .teklif-cek-ozet-icon { background: #dbeafe; color: #2563eb; }
#teklif-cek-modal .teklif-cek-ozet-kart--siparis .teklif-cek-ozet-icon { background: #ede9fe; color: #7c3aed; }
#teklif-cek-modal .teklif-cek-ozet-kart--portfoy .teklif-cek-ozet-icon { background: #d1fae5; color: #059669; }
#teklif-cek-modal .teklif-cek-ozet-kart--vade .teklif-cek-ozet-icon { background: #fee2e2; color: #dc2626; }
#teklif-cek-modal .teklif-cek-ozet-meta span {
    display: block;
    font-size: 0.65rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
#teklif-cek-modal .teklif-cek-ozet-meta strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
    margin-top: 1px;
    line-height: 1.2;
}

/* Eski body sekmeleri kaldırıldı — segment header'da */

/* Grid — liste dar, form geniş */
#teklif-cek-modal .teklif-cek-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 12px;
    align-items: start;
}
#teklif-cek-modal .teklif-listesi,
#teklif-cek-modal .siparis-listesi,
#teklif-cek-modal .cek-listesi {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 2px;
}

/* Filtre kartı */
#teklif-cek-modal .teklif-cek-filtre-card .fin-card-body--compact { padding: 10px 12px; }
#teklif-cek-modal .teklif-cek-filtre-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
#teklif-cek-modal .teklif-cek-filtre-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff, #f8fafc);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.15s ease;
}
#teklif-cek-modal .teklif-cek-filtre-btn:hover {
    border-color: var(--tc-chip-border);
    color: var(--tc-accent-dark);
    background: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}
#teklif-cek-modal .teklif-cek-filtre-btn.active {
    background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-end));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

/* Liste kartları */
#teklif-cek-modal .teklif-cek-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--tc-accent);
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
#teklif-cek-modal .teklif-cek-item:hover {
    border-color: var(--tc-chip-border);
    background: var(--tc-hover-bg);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
#teklif-cek-modal .teklif-cek-item.secilen {
    border-color: var(--tc-accent-dark);
    box-shadow: 0 0 0 1px var(--tc-accent), 0 4px 12px rgba(37, 99, 235, 0.12);
    background: var(--tc-selected-bg);
}
#teklif-cek-modal .teklif-cek-item--cek { border-left-color: #059669; }
#teklif-cek-modal .teklif-cek-item--siparis { border-left-color: #7c3aed; }
#teklif-cek-modal .teklif-cek-item-main { min-width: 0; flex: 1; }
#teklif-cek-modal .teklif-cek-item-baslik {
    font-weight: 700;
    font-size: 0.84rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
#teklif-cek-modal .teklif-cek-item-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
    font-size: 0.68rem;
    color: #6b7280;
    flex-wrap: wrap;
}
#teklif-cek-modal .teklif-cek-item-tutar {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--tc-accent-dark);
    white-space: nowrap;
    text-align: right;
}
#teklif-cek-modal .teklif-cek-item-tutar small {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    color: #9ca3af;
}

/* Sağ panel sekmeleri */
#teklif-cek-modal .teklif-sag-sekmeler {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
#teklif-cek-modal .teklif-sag-sekme {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}
#teklif-cek-modal .teklif-sag-sekme:hover:not(.active) {
    background: #f1f5f9;
    color: #334155;
}
#teklif-cek-modal .teklif-sag-sekme.active {
    background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-end));
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

/* Detay paneli */
#teklif-cek-modal .teklif-detay-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
#teklif-cek-modal .teklif-detay-hero h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}
#teklif-cek-modal .teklif-detay-hero p {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}
#teklif-cek-modal .teklif-detay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
#teklif-cek-modal .teklif-detay-chip {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
}
#teklif-cek-modal .teklif-detay-chip span {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.03em;
}
#teklif-cek-modal .teklif-detay-chip strong {
    display: block;
    font-size: 0.8rem;
    color: #111827;
    margin-top: 3px;
}
#teklif-cek-modal .teklif-detay-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 12px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-radius: 0 0 10px 10px;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: -10px;
}
#teklif-cek-modal .teklif-detay-actions .fin-btn {
    min-width: 0;
    flex: 0 1 auto;
}
#teklif-cek-modal .teklif-detay-actions .fin-btn--ghost {
    background: #fff;
}

/* Form */
#teklif-cek-modal .teklif-form-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
}
#teklif-cek-modal .teklif-form-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
#teklif-cek-modal .teklif-toplam-kutu {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 10px 0;
}
#teklif-cek-modal .teklif-toplam-satir {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #374151;
    padding: 3px 0;
}
#teklif-cek-modal .teklif-toplam-satir--genel {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #93c5fd;
    font-size: 0.92rem;
    font-weight: 800;
    color: #1d4ed8;
}

/* Satır tablosu */
#teklif-cek-modal .teklif-satirlar-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
#teklif-cek-modal .teklif-satir-head {
    display: grid;
    grid-template-columns: 2fr 0.65fr 0.85fr 0.55fr 0.75fr 32px;
    gap: 6px;
    padding: 8px 10px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
}
#teklif-cek-modal .teklif-satir-head--siparis,
#teklif-cek-modal .teklif-satir-row--siparis {
    grid-template-columns: 0.75fr 1.35fr 0.6fr 0.8fr 0.5fr 0.7fr 32px;
}
#teklif-cek-modal .teklif-satirlar,
#teklif-cek-modal .siparis-satirlar { padding: 8px; }
#teklif-cek-modal .teklif-satir-row {
    display: grid;
    grid-template-columns: 2fr 0.65fr 0.85fr 0.55fr 0.75fr 32px;
    gap: 6px;
    margin-bottom: 6px;
    align-items: center;
}
#teklif-cek-modal .teklif-satir-tutar {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1d4ed8;
    text-align: right;
}

/* Badge */
#teklif-cek-modal .teklif-durum-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}
#teklif-cek-modal .teklif-durum-badge--taslak { background: #f3f4f6; color: #4b5563; }
#teklif-cek-modal .teklif-durum-badge--gonderildi { background: #dbeafe; color: #1d4ed8; }
#teklif-cek-modal .teklif-durum-badge--onaylandi { background: #d1fae5; color: #047857; }
#teklif-cek-modal .teklif-durum-badge--reddedildi { background: #fee2e2; color: #b91c1c; }
#teklif-cek-modal .teklif-durum-badge--faturaya_donustu { background: #ede9fe; color: #6d28d9; }
#teklif-cek-modal .teklif-durum-badge--siparis-onay_bekliyor { background: #fef3c7; color: #b45309; }
#teklif-cek-modal .teklif-durum-badge--siparis-onaylandi { background: #d1fae5; color: #047857; }
#teklif-cek-modal .teklif-durum-badge--siparis-reddedildi { background: #fee2e2; color: #b91c1c; }
#teklif-cek-modal .teklif-durum-badge--siparis-iptal { background: #f3f4f6; color: #6b7280; }
#teklif-cek-modal .teklif-durum-badge--cek-portfoyde { background: #dbeafe; color: #1d4ed8; }
#teklif-cek-modal .teklif-durum-badge--cek-tahsil { background: #d1fae5; color: #047857; }
#teklif-cek-modal .teklif-durum-badge--cek-ciro { background: #e0e7ff; color: #4338ca; }
#teklif-cek-modal .teklif-durum-badge--cek-odendi { background: #cffafe; color: #0e7490; }
#teklif-cek-modal .teklif-durum-badge--cek-karsiliksiz { background: #fee2e2; color: #b91c1c; }
#teklif-cek-modal .teklif-durum-badge--cek-protesto { background: #ffedd5; color: #c2410c; }
#teklif-cek-modal .teklif-durum-badge--cek-iade { background: #f3f4f6; color: #4b5563; }
#teklif-cek-modal .teklif-durum-badge--tip-cek_alinan,
#teklif-cek-modal .teklif-durum-badge--tip-senet_alinan { background: #ecfdf5; color: #047857; }
#teklif-cek-modal .teklif-durum-badge--tip-cek_verilen,
#teklif-cek-modal .teklif-durum-badge--tip-senet_verilen { background: #fff7ed; color: #c2410c; }

#teklif-cek-modal .teklif-vade--yakin { color: #b45309; font-weight: 700; }
#teklif-cek-modal .teklif-vade--gecikmis { color: #dc2626; font-weight: 800; }

#teklif-cek-modal .cek-vade-uyari { margin-bottom: 4px; }
#teklif-cek-modal .cek-vade-uyari-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}
#teklif-cek-modal .cek-vade-uyari-inner ul { margin: 4px 0 0; padding-left: 16px; }

#teklif-cek-modal .teklif-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    flex-wrap: wrap;
}
#teklif-cek-modal .fin-hareket-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
#teklif-cek-modal .fin-hareket-table th {
    padding: 7px 8px;
    text-align: left;
    font-size: 0.62rem;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
#teklif-cek-modal .fin-hareket-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #f3f4f6;
}
#teklif-cek-modal .fin-ekstre-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
}
#teklif-cek-modal .fin-ekstre-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #cbd5e1;
}
#teklif-cek-modal .fin-ekstre-empty strong { display: block; color: #6b7280; font-size: 0.85rem; }

/* Ciro alt modal */
#cek-ciro-modal.teklif-cek-submodal { z-index: 10060; }
#cek-ciro-modal .teklif-cek-submodal-content {
    max-width: 480px;
    width: 92vw;
    border-radius: 12px;
    overflow: hidden;
}
#cek-ciro-modal .modal-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 12px 16px;
}
#cek-ciro-modal .modal-header h3 { margin: 0; font-size: 0.95rem; }
#cek-ciro-modal .teklif-cek-ciro-aciklama {
    font-size: 0.78rem;
    color: #4b5563;
    margin: 0 0 12px;
    line-height: 1.5;
}

#teklif-cek-modal .teklif-cek-ozet-kart--teklif strong { color: #2563eb; }
#teklif-cek-modal .teklif-cek-ozet-kart--siparis strong { color: #7c3aed; }
#teklif-cek-modal .teklif-cek-ozet-kart--portfoy strong { color: #059669; }
#teklif-cek-modal .teklif-cek-ozet-kart--vade strong { color: #dc2626; }

#teklif-cek-modal .fin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
#teklif-cek-modal .fin-section-head h4 {
    font-size: 0.82rem;
    margin: 0;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 7px;
}
#teklif-cek-modal .fin-section-head h4 i { color: var(--tc-accent); font-size: 0.9em; }
#teklif-cek-modal .fin-card-header { font-size: 0.82rem; padding: 8px 12px; }
#teklif-cek-modal .fin-card-body { padding: 10px 12px; }

#teklif-cek-modal .fin-field label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}
#teklif-cek-modal .teklif-form-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
}
#teklif-cek-modal .teklif-form-grid-compact .fin-field--full {
    grid-column: 1 / -1;
}
#teklif-cek-modal .fin-input,
#teklif-cek-modal .fin-select,
#teklif-cek-modal textarea.fin-input {
    width: 100%;
    height: var(--fin-h);
    min-height: var(--fin-h);
    padding: 0 10px;
    font-size: var(--fin-font);
    border: 1px solid var(--fin-border);
    border-radius: var(--fin-radius);
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#teklif-cek-modal .fin-input:focus,
#teklif-cek-modal .fin-select:focus,
#teklif-cek-modal textarea.fin-input:focus {
    outline: none;
    border-color: var(--tc-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
#teklif-cek-modal .fin-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
#teklif-cek-modal textarea.fin-input {
    min-height: 56px;
    padding: 8px 10px;
    height: auto;
}
#teklif-cek-modal .teklif-form-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#teklif-cek-modal .teklif-form-section-title .fin-btn { margin-left: auto; }

@media (max-width: 960px) {
    #teklif-cek-modal .teklif-cek-modal-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    #teklif-cek-modal .teklif-cek-header-segment { justify-content: center; width: 100%; }
    #teklif-cek-modal .teklif-cek-header-segment .teklif-cek-sekme { flex: 1; min-width: 0; }
    #teklif-cek-modal .teklif-cek-ozet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #teklif-cek-modal .teklif-cek-grid { grid-template-columns: 1fr; }
    #teklif-cek-modal .teklif-detay-grid { grid-template-columns: 1fr; }
    #teklif-cek-modal .teklif-form-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#teklif-cek-modal .fin-btn--whatsapp {
    background: #25d366;
    color: #fff;
}
#teklif-cek-modal .fin-btn--whatsapp:hover {
    background: #1da851;
}
