/* ——— Teklif PDF baskı şablonu (premium antetli kağıt) ——— */
#teklif-pdf-print-root {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 794px;
    z-index: -1;
    pointer-events: none;
}

.teklif-pdf-sheet {
    width: 794px;
    background: #fff;
    color: #0f172a;
    font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    box-sizing: border-box;
}

/* ——— Üst antet ——— */
.teklif-pdf-antet {
    position: relative;
    background: linear-gradient(135deg, #0f2d6e 0%, #1e40af 38%, #2563eb 68%, #3b82f6 100%);
    color: #fff;
    overflow: hidden;
}
.teklif-pdf-antet-dekor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 12% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 35%),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 10px
        );
    pointer-events: none;
}
.teklif-pdf-antet-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: stretch;
    padding: 22px 24px 20px;
}
.teklif-pdf-marka {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}
.teklif-pdf-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.teklif-pdf-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.teklif-pdf-logo i {
    font-size: 28px;
    color: #2563eb;
    opacity: 0.85;
}
.teklif-pdf-marka-metin {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.teklif-pdf-firma-ad {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}
.teklif-pdf-firma-iletisim {
    margin-top: 2px;
}
.teklif-pdf-kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}
.teklif-pdf-kontakt-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    backdrop-filter: blur(4px);
}
.teklif-pdf-kontakt-etiket {
    font-size: 7.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.72;
}
.teklif-pdf-kontakt-deger {
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

/* Belge kartı — antet içinde yüzen panel */
.teklif-pdf-belge-kart {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}
.teklif-pdf-belge-tur {
    font-size: 20px;
    font-weight: 900;
    color: #1e40af;
    letter-spacing: 0.14em;
    line-height: 1;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbeafe;
}
.teklif-pdf-belge-meta {
    width: 100%;
}
.teklif-pdf-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.teklif-pdf-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.teklif-pdf-meta-row span {
    font-size: 7.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
    white-space: nowrap;
}
.teklif-pdf-meta-row strong {
    color: #0f172a;
    font-weight: 800;
    font-size: 10px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.teklif-pdf-antet-alt {
    height: 5px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
}

/* ——— Gövde ——— */
.teklif-pdf-govde {
    padding: 0 0 4px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 120px);
}

/* Alıcı kutusu */
.teklif-pdf-alici-wrap {
    padding: 18px 24px 0;
}
.teklif-pdf-alici {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}
.teklif-pdf-alici::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 12px 0 0 12px;
}
.teklif-pdf-alici-baslik {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-left: 4px;
}
.teklif-pdf-alici-etiket {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}
.teklif-pdf-alici-unvan {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.teklif-pdf-cari-kontakt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 16px;
    padding-left: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 4px;
}
.teklif-pdf-cari-kontakt-satir {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.teklif-pdf-cari-kontakt-etiket {
    font-size: 7.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}
.teklif-pdf-cari-kontakt-deger {
    font-size: 9.5px;
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
}

/* Giriş metni */
.teklif-pdf-giris {
    margin: 14px 24px 0;
    padding: 12px 16px;
    font-size: 10.5px;
    color: #334155;
    line-height: 1.65;
    background: #fff;
    border-left: 3px solid #93c5fd;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

/* Satır tablosu */
.teklif-pdf-table-wrap {
    padding: 14px 24px 0;
}
.teklif-pdf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.teklif-pdf-table thead th {
    background: linear-gradient(180deg, #1e3a8a, #2563eb);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 9px 10px;
    text-align: left;
    border: none;
}
.teklif-pdf-table thead th.r { text-align: right; }
.teklif-pdf-table thead th.teklif-pdf-th-idx { width: 28px; text-align: center; }
.teklif-pdf-table tbody td.teklif-pdf-table-bos {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}
.teklif-pdf-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}
.teklif-pdf-table tbody tr:last-child td {
    border-bottom: none;
}
.teklif-pdf-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}
.teklif-pdf-table tbody td.r {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.teklif-pdf-table tbody td.idx {
    color: #94a3b8;
    font-weight: 700;
    text-align: center;
    width: 28px;
    font-size: 9px;
}

/* Özet kutusu */
.teklif-pdf-ozet-wrap {
    padding: 14px 24px 0;
    display: flex;
    justify-content: flex-end;
}
.teklif-pdf-ozet {
    width: 272px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}
.teklif-pdf-ozet-satir {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 10px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.teklif-pdf-ozet-satir span:last-child {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.teklif-pdf-ozet-satir--genel {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-bottom: none;
    padding: 11px 14px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}
.teklif-pdf-ozet-satir--genel span:first-child {
    color: rgba(255, 255, 255, 0.88);
}
.teklif-pdf-ozet-satir--genel span:last-child {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

/* Notlar ve koşullar */
.teklif-pdf-notlar {
    margin: 14px 24px 0;
    padding: 11px 14px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 9.5px;
    color: #78350f;
    line-height: 1.55;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
.teklif-pdf-notlar strong {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    margin-bottom: 5px;
    font-weight: 800;
}

.teklif-pdf-kosullar {
    margin: 12px 24px 0;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 9px;
    color: #64748b;
    line-height: 1.65;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
.teklif-pdf-kosullar strong {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 800;
}
.teklif-pdf-kosullar ul {
    margin: 4px 0 0;
    padding-left: 16px;
}
.teklif-pdf-kosullar li { margin-bottom: 3px; }

/* Alt imza alanı */
.teklif-pdf-footer {
    margin: 20px 24px 0;
    padding: 16px 0 20px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}
.teklif-pdf-imza {
    flex: 1;
    text-align: center;
    font-size: 9px;
    color: #94a3b8;
}
.teklif-pdf-imza-line {
    border-top: 1px solid #cbd5e1;
    margin: 40px 16px 6px;
    padding-top: 7px;
    color: #475569;
    font-weight: 700;
    font-size: 9.5px;
}
.teklif-pdf-footer-marka {
    font-size: 7.5px;
    color: #cbd5e1;
    text-align: center;
    padding: 0 24px 14px;
    letter-spacing: 0.02em;
}
