/* =====================================================================
   Sinir deger hesaplama sayfasi - stiller
   Bu dosya kendi basina yeterlidir; /ihale-rehberi/ dosyalarina bagli degildir.
   Temel renkler ve 3 tema (anaTema, maviTema, siyahTema; kusursuzTema -> anaTema)
   sitenin tema cerezine gore secilir. Yeni arayuzun --sd-* renkleri de
   ayni data-theme degerini izler.
   Not: sayfa windows-1254 okundugu icin bu dosyada ASCII disi karakter kullanmayin.
   ===================================================================== */

@font-face {
    font-family: 'Pretoria';
    src: url('font/pretoria.woff2') format('woff2'),
         url('font/pretoria.woff') format('woff'),
         url('font/pretoria.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== TEMA DEGISKENLERI ===== */
:root {
    --bg: #f8f9fe;
    --white: #ffffff;
    --text: #2d3436;
    --text-muted: #434647;
    --brand-purple: #860085;
    --brand-purple-light: #fcf4f9;
    --border: rgba(134, 0, 133, 0.12);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --main-gradient: linear-gradient(330deg, rgba(214, 65, 185, 1) 0%, rgba(183, 84, 196, 1) 25%, rgba(166, 97, 202, 1) 40%, rgba(148, 109, 208, 1) 55%, rgba(129, 121, 215, 1) 77%, rgba(111, 133, 222, 1) 88%, rgba(104, 138, 225, 1) 97%, rgba(93, 145, 229, 1) 100%);
    /* CTA / sonuc karti vurgulari */
    --accent-gradient: linear-gradient(90deg, #7c58ff, #d845cd);
    --accent: #7c58ff;
    --accent-shadow: rgba(216, 69, 205, 0.3);
    --hero-bg: #fafafc;
    --hero-glow: radial-gradient(circle at top right, rgba(216, 69, 205, 0.15) 0%, rgba(124, 88, 255, 0.05) 50%, transparent 80%);
    --feature-bg: #f3e8ff;
    --feature-fg: #a855f7;
    --heading: #1a1a2e;
    --line: #e2e8f0;
    --glossy: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
}
/* kusursuzTema artik kullanilmiyor: sayfa bu cerezi anaTema sayar. */

:root[data-theme="maviTema"] {
    --brand-purple: #265073;
    --brand-purple-light: #e9eff4;
    --border: rgba(38, 80, 115, 0.12);
    --main-gradient: linear-gradient(330deg, #265073, #336b99, #265073, #336b99, #265073, #ffffff);
    --accent-gradient: linear-gradient(135deg, #265073, #336b99);
    --accent: #265073;
    --accent-shadow: rgba(38, 80, 115, 0.3);
    --hero-glow: radial-gradient(circle at top right, rgba(38, 80, 115, 0.15) 0%, rgba(38, 80, 115, 0.05) 50%, transparent 80%);
    --feature-bg: #e9eff4;
    --feature-fg: #265073;
}

:root[data-theme="siyahTema"] {
    --bg: #000000;
    --white: #111111;
    --text: #e0e0e0;
    --text-muted: #999999;
    --brand-purple: #ffffff;
    --brand-purple-light: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --main-gradient: linear-gradient(330deg, #1a1a1a, #404040, #1a1a1a, #404040, #1a1a1a, #808080);
    --accent-gradient: linear-gradient(135deg, #5c5c5c, #2b2b40);
    --accent: #a1a5b7;
    --accent-shadow: rgba(0, 0, 0, 0.4);
    --hero-bg: #000000;
    --hero-glow: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 80%);
    --feature-bg: #2b2b40;
    --feature-fg: #f1f1f4;
    --heading: #f1f1f4;
    --line: #2b2b40;
    --glossy: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== GENEL ===== */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.sd-sayfa { flex: 1; }

.sd-kart {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.sd-baslik { font-weight: 800; letter-spacing: -0.5px; color: var(--heading); }
.sd-link { color: var(--brand-purple); text-decoration: none; }
.sd-link:hover { text-decoration: underline; color: var(--brand-purple); }

.sd-uyari {
    background-color: #fff3cd;
    border-left: 4px solid #ffecb5;
    font-size: 14px;
    color: #856404;
}
.sd-uyari i, .sd-uyari strong { color: #856404; }

.sd-ozet {
    background: var(--brand-purple-light);
    border-left: 4px solid var(--brand-purple);
    font-weight: 500;
}

.breadcrumb { font-size: 14px; font-weight: 500; }
.breadcrumb-item.active { color: var(--text-muted); }

.sd-gizli { display: none !important; }

/* ===== NAVBAR ===== */
.sd-navbar {
    background: var(--main-gradient);
    box-shadow: 0 0 8px -3px black;
}

.sd-navbar-ic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 15px;
    gap: 20px;
}

.sd-marka {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.sd-logo-img { height: 50px; width: auto; }

.sd-logo-yazi {
    font-family: 'Pretoria', Impact, sans-serif;
    font-size: 26px;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    line-height: 1;
}

.sd-logo-i { position: relative; display: inline-block; }
.sd-logo-i::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.sd-navbar-menu { flex: 1; }
.sd-navbar-linkler { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.sd-navbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: var(--main-gradient);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--glossy);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.sd-navbar-btn:hover { filter: brightness(1.1); }
:root[data-theme="siyahTema"] .sd-navbar-btn {
    background: linear-gradient(135deg, #4d4d4d 0%, #2b2b2b 40%, #0a0a0a 100%);
    border-color: #ffffff;
}

.sd-navbar-ac {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: 26px;
}
.sd-navbar-ac:hover,
.sd-navbar-ac:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Navbar giris formu */
.sd-giris-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.sd-giris-form input {
    height: 28px;
    width: 150px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3436;
    font-size: 13px;
    outline: none;
}
.sd-giris-form input:focus { background: #ffffff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45); }

@media (min-width: 768px) {
    .sd-navbar-menu.collapse { display: block !important; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .sd-navbar-ic { gap: clamp(8px, 1.2vw, 16px); }
    .sd-logo-img { height: clamp(40px, 4.2vw, 50px); }
    .sd-logo-yazi { font-size: clamp(20px, 2.15vw, 26px); }
    .sd-giris-form input { width: clamp(110px, 12vw, 150px); }
}

@media (max-width: 767.98px) {
    .sd-navbar-ic { flex-wrap: wrap; padding: 9px 16px; gap: 8px 14px; }
    .sd-navbar-ac { display: inline-flex; }
    .sd-navbar-menu { flex-basis: 100%; width: 100%; }
    .sd-logo-img { height: 40px; }
    .sd-logo-yazi { font-size: 20px; }
    .sd-giris-form { flex-direction: column; align-items: stretch; width: 100%; padding: 10px 0 6px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
    .sd-giris-form input { width: 100%; height: 44px; font-size: 15px; }
    .sd-giris-form .sd-navbar-btn { height: 44px; font-size: 15px; }
    .sd-navbar-git { margin-left: auto; }
}

/* ===== FORM ===== */
.sd-bolum { display: flex; align-items: center; gap: 10px; margin: 28px 0 16px; font-size: 17px; font-weight: 700; color: var(--brand-purple); }
.sd-bolum-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--main-gradient); color: #ffffff; font-size: 14px;
    box-shadow: var(--glossy);
}

.sd-form .form-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sd-form .form-control,
.sd-form .form-select {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--text);
    font-size: 15px;
}
.sd-form textarea.form-control { min-height: 180px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.sd-form .form-control:focus,
.sd-form .form-select:focus { border-color: var(--brand-purple); box-shadow: 0 0 0 3px var(--brand-purple-light); }
.sd-form .form-control::placeholder { color: var(--text-muted); opacity: 0.7; }
:root[data-theme="siyahTema"] .sd-form .form-select { background-color: #1a1a1a; }
:root[data-theme="siyahTema"] .sd-form input[type="date"] { color-scheme: dark; }
.sd-ipucu { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

/* Ihale turu secici */
.sd-tur-secici { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sd-tur-secici input { position: absolute; opacity: 0; pointer-events: none; }
.sd-tur-secici label {
    display: flex; align-items: center; gap: 10px;
    height: 100%; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--white); color: var(--text);
    cursor: pointer; transition: all 0.2s ease; line-height: 1.3;
}
.sd-tur-secici label i { font-size: 22px; color: var(--brand-purple); flex-shrink: 0; }
.sd-tur-secici label small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.sd-tur-secici label strong { font-size: 14.5px; }
.sd-tur-secici label:hover { border-color: var(--brand-purple); background: var(--brand-purple-light); }
.sd-tur-secici input:checked + label {
    background: var(--main-gradient); color: #ffffff; border-color: transparent;
    box-shadow: var(--glossy), 0 4px 12px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.sd-tur-secici input:checked + label i,
.sd-tur-secici input:checked + label small { color: #ffffff; }
.sd-tur-secici input:focus-visible + label { outline: 2px solid var(--brand-purple); outline-offset: 2px; }
@media (max-width: 767.98px) { .sd-tur-secici { grid-template-columns: 1fr; } }

.sd-teklif-sayac { font-size: 12.5px; font-weight: 600; color: var(--brand-purple); }

/* ===== BUTONLAR ===== */
.sd-butonlar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.sd-btn-birincil {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    background: var(--accent-gradient);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px var(--accent-shadow);
    transition: all 0.3s ease;
}
.sd-btn-birincil:hover { transform: translateY(-2px); box-shadow: 0 10px 25px var(--accent-shadow); }

.sd-btn-ikincil {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent) !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--line);
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.sd-btn-ikincil:hover { border-color: var(--accent); background: rgba(124, 88, 255, 0.05); }

/* ===== SONUC KARTI (rehber CTA karti gorunumu) ===== */
.sd-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    background: var(--hero-bg);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f2f2f7;
}
:root[data-theme="siyahTema"] .sd-hero { border-color: #1a1a1a; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); }

.sd-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: var(--hero-glow);
    z-index: 0;
    pointer-events: none;
}

.sd-hero-icerik { position: relative; z-index: 1; flex: 1 1 500px; }

.sd-hero-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px var(--accent-shadow);
}

.sd-vurgulu {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
:root[data-theme="siyahTema"] .sd-vurgulu { background: linear-gradient(90deg, #a1a5b7, #f1f1f4); -webkit-background-clip: text; background-clip: text; }

.sd-hero-cizgi { width: 60px; height: 4px; background: var(--line); border-radius: 2px; margin-bottom: 15px; }
.sd-hero-aciklama { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 90%; }

.sd-hero-ozellikler {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    flex-wrap: wrap;
}
.sd-hero-ozellik {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}
.sd-hero-ozellik i {
    font-size: 18px;
    color: var(--feature-fg);
    background: var(--feature-bg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.sd-sonuc-tutar { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.sd-sonuc-etiket { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }

@media (max-width: 1380px) { .sd-hero { padding: 30px 20px; } }
@media (max-width: 575.98px) { .sd-sonuc-tutar { font-size: 30px; } }

/* ===== HESAP ADIMLARI VE TEKLIF TABLOSU ===== */
.sd-kart-baslik { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--brand-purple); margin-bottom: 14px; }
.sd-kart-baslik.sd-hata { color: #dc3545; }

.sd-adimlar { width: 100%; border-collapse: collapse; font-size: 14px; }
.sd-adimlar td { padding: 9px 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
.sd-adimlar tr:last-child td { border-bottom: 0; }
.sd-adimlar td:first-child { color: var(--text-muted); padding-right: 12px; }
.sd-adimlar td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.sd-adimlar tr.sd-vurgu td { font-weight: 800; color: var(--brand-purple); border-top: 2px solid var(--border); }

.sd-teklifler { width: 100%; font-size: 14px; border-collapse: separate; border-spacing: 0; color: var(--text); }
.sd-teklifler th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; padding: 0 8px 10px; border-bottom: 1px solid var(--border); }
.sd-teklifler td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sd-teklifler .sd-tutar { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-teklifler tr.sd-alti td { background: rgba(220, 53, 69, 0.06); }
.sd-teklifler tr.sd-alti td:first-child { box-shadow: inset 3px 0 0 #dc3545; }

.sd-rozet { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sd-rozet-dahil { background: var(--brand-purple-light); color: var(--brand-purple); }
.sd-rozet-disi { background: rgba(99, 110, 114, 0.12); color: var(--text-muted); }
.sd-rozet-alti { background: #dc3545; color: #ffffff; }
.sd-rozet-ustu { background: rgba(25, 135, 84, 0.12); color: #198754; }
:root[data-theme="siyahTema"] .sd-rozet-ustu { color: #6fdc9f; }

/* ===== YAN PANEL ===== */
.sd-yan .sd-kart + .sd-kart { margin-top: 20px; }
.sd-yan-baslik { font-weight: 700; color: var(--brand-purple); font-size: 1.15rem; }

.sd-adim-listesi { counter-reset: adim; list-style: none; padding: 0; margin: 0; }
.sd-adim-listesi li { counter-increment: adim; position: relative; padding: 0 0 12px 36px; font-size: 14px; color: var(--text); line-height: 1.5; }
.sd-adim-listesi li::before {
    content: counter(adim);
    position: absolute; left: 0; top: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand-purple-light); color: var(--brand-purple);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.sd-formul {
    display: block; margin: 4px 0 2px; padding: 6px 10px; border-radius: 8px;
    background: var(--brand-purple-light); color: var(--brand-purple);
    font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
}

.sd-r-tablo { width: 100%; font-size: 13.5px; color: var(--text); }
.sd-r-tablo td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sd-r-tablo tr:last-child td { border-bottom: 0; }
.sd-r-tablo td:last-child { text-align: right; font-weight: 700; color: var(--brand-purple); font-variant-numeric: tabular-nums; }

.sd-link-listesi { list-style: none; padding: 0; margin: 0; }
.sd-link-listesi a {
    display: block;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}
.sd-link-listesi a i { font-size: 10px; margin-right: 4px; }
.sd-link-listesi a:hover { color: var(--brand-purple); padding-left: 18px; background-color: rgba(128, 128, 128, 0.05); }

/* ===== FOOTER ===== */
.sd-footer { background: var(--main-gradient); position: relative; overflow: hidden; color: #fff; }

.sd-footer-harita {
    position: absolute;
    inset: 0;
    background-image: url('https://www.ihaledunyasi.net/assets1/img/world-map.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    z-index: 1;
}

.sd-footer-ic { position: relative; z-index: 2; width: 100%; padding: 28px 0 0; }

.sd-footer-icerik {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: 145px;
    padding: 0 24px;
    gap: 32px;
}

.sd-footer-logo { justify-self: center; transform: translateY(-8px); }
.sd-footer-logo img { height: 160px; width: auto; }

.sd-footer-iletisim { justify-self: center; transform: translateY(-12px); }
.sd-footer-baslik { margin: 0 0 14px; font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: #fff; }

.sd-footer-satir { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.sd-footer-satir i { font-size: 16px; flex-shrink: 0; }
.sd-footer-satir a { color: inherit; text-decoration: none; }

.sd-footer-linkler { display: flex; flex-direction: column; gap: 11px; justify-self: center; transform: translateY(6px); }
.sd-footer-link { color: #fff !important; text-decoration: none; font-size: 15px; white-space: nowrap; transition: color 0.2s; }
.sd-footer-link:hover { color: #BBDEFB !important; text-decoration: underline !important; }

.sd-footer-cizgi { border-top: 1px solid rgba(255, 255, 255, 0.5); margin: 28px 0 0; }

.sd-footer-sosyal { display: flex; justify-content: center; align-items: center; gap: 52px; padding: 32px 0 38px; }
.sd-footer-sosyal a { color: #fff; font-size: 28px; text-decoration: none; transition: opacity 0.2s; }
.sd-footer-sosyal a:hover { opacity: 0.7; color: #fff; }

@media (max-width: 991.98px) {
    .sd-footer-harita { background-size: 100% auto; }
    .sd-footer-icerik {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
        grid-template-areas: "iletisim linkler" "logo logo";
        align-items: start;
        padding: 46px clamp(24px, 4vw, 36px) 34px;
        column-gap: clamp(24px, 8vw, 80px);
        row-gap: 52px;
    }
    .sd-footer-logo { grid-area: logo; transform: none; }
    .sd-footer-logo img { height: 64px; }
    .sd-footer-iletisim { grid-area: iletisim; justify-self: start; transform: none; }
    .sd-footer-linkler { grid-area: linkler; justify-self: start; transform: none; }
    .sd-footer-baslik { font-size: 20px; font-weight: 700; }
    .sd-footer-cizgi { margin: 0; }
}

@media (max-width: 767.98px) {
    .sd-footer-icerik {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "iletisim" "linkler" "logo";
        padding: 48px 28px 40px;
        row-gap: 40px;
    }
    .sd-footer-satir { align-items: flex-start; font-size: 14px; line-height: 1.45; }
    .sd-footer-link { white-space: normal; font-size: 14px; }
    .sd-footer-logo img { height: 88px; }
}

/* ===== TEKLIF SATIRLARI (form) ===== */
.sd-satirlar { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.sd-satirlar th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; padding: 0 6px 2px; }
.sd-satirlar td { padding: 0 6px; vertical-align: middle; }
.sd-satirlar td.sd-sira, .sd-satirlar th.sd-sira { width: 38px; text-align: right; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-left: 0; }
.sd-satirlar .form-control { min-height: 40px; font-size: 14.5px; }
.sd-satirlar .sd-tutar-input { text-align: right; font-variant-numeric: tabular-nums; }
.sd-satirlar td:nth-child(3), .sd-satirlar .sd-th-tutar { width: 190px; text-align: right; }
.sd-satirlar td.sd-tenzilat, .sd-satirlar .sd-th-tenzilat { width: 90px; text-align: right; font-size: 13.5px; font-weight: 600; color: var(--brand-purple); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-satirlar td.sd-tenzilat.sd-negatif { color: #dc3545; }
.sd-satirlar td.sd-islemler { width: 78px; white-space: nowrap; text-align: right; padding-right: 0; }
.sd-satirlar-iptal .form-control { background-color: rgba(220, 53, 69, 0.04); }
.sd-satirlar-iptal td.sd-tenzilat { color: var(--text-muted); }

.sd-ikon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-left: 2px;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--white); color: var(--brand-purple);
    font-size: 15px; cursor: pointer; transition: all 0.15s ease;
}
.sd-ikon-btn:hover { background: var(--brand-purple-light); border-color: var(--brand-purple); }
.sd-ikon-btn.sd-sil { color: #dc3545; }
.sd-ikon-btn.sd-sil:hover { background: rgba(220, 53, 69, 0.08); border-color: #dc3545; }

.sd-btn-ekle {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 8px 16px;
    border: 1px dashed var(--brand-purple); border-radius: 10px;
    background: transparent; color: var(--brand-purple);
    font-weight: 700; font-size: 14px; cursor: pointer;
}
.sd-btn-ekle:hover { background: var(--brand-purple-light); }

.sd-alt-bolum { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--brand-purple-light); }
.sd-alt-bolum-baslik { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sd-alt-bolum-baslik i { color: #dc3545; }
.sd-iptal-bos { font-size: 13px; color: var(--text-muted); font-style: italic; }

@media (max-width: 575.98px) {
    .sd-satirlar td:nth-child(3), .sd-satirlar .sd-th-tutar { width: 130px; }
    .sd-satirlar td.sd-tenzilat, .sd-satirlar .sd-th-tenzilat { display: none; }
}

/* ===== SONUC: ihale adi, firma sutunu, iptal satirlari ===== */
.sd-sonuc-ihale { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--brand-purple-light); color: var(--brand-purple); font-size: 13px; font-weight: 600; }
.sd-kart-baslik-not { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.sd-teklifler td.sd-firma { font-weight: 600; min-width: 160px; }
.sd-teklifler tr.sd-iptal-satir td { color: var(--text-muted); background: rgba(99, 110, 114, 0.05); }
.sd-teklifler tr.sd-iptal-satir td.sd-firma { text-decoration: line-through; font-weight: 500; }
.sd-rozet-iptal { background: rgba(220, 53, 69, 0.12); color: #dc3545; font-weight: 700; }

/* ===== SINIR DEGERE UYAN TEKLIF ===== */
.sd-uyan { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: rgba(25, 135, 84, 0.1); color: #146c43; font-size: 14.5px; line-height: 1.4; }
.sd-uyan.sd-uyan-yok { background: rgba(220, 53, 69, 0.08); color: #b02a37; }
:root[data-theme="siyahTema"] .sd-uyan { color: #6fdc9f; }
:root[data-theme="siyahTema"] .sd-uyan.sd-uyan-yok { color: #f1aeb5; }
.sd-teklifler tr.sd-uyan-satir td { background: rgba(25, 135, 84, 0.08); font-weight: 700; }
.sd-teklifler tr.sd-uyan-satir td:first-child { box-shadow: inset 3px 0 0 #198754; }
.sd-rozet-uyan { background: #198754; color: #ffffff; }

/* ===== KISALTMALAR ===== */
.sd-sozluk { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sd-sozluk dt { font-weight: 800; color: var(--brand-purple); margin-top: 10px; }
.sd-sozluk dt:first-child { margin-top: 0; }
.sd-sozluk dd { margin: 2px 0 0; color: var(--text); }

/* ===== PDF / YAZDIR ===== */
.sd-cikti-butonlar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sd-btn-kucuk { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.sd-cikti-baslik, .sd-cikti-alt { display: none; }

.sd-cikti-ust { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 3px solid #860085; }
.sd-cikti-logo { height: 54px; width: auto; }
.sd-cikti-marka { font-family: 'Pretoria', Impact, sans-serif; font-size: 26px; line-height: 1; color: #860085; letter-spacing: 0.5px; }
.sd-cikti-marka .sd-logo-i::before { background: #860085; box-shadow: none; }
.sd-cikti-altbaslik { font-size: 14px; font-weight: 700; color: #2d3436; margin-top: 4px; }
.sd-cikti-site { margin-left: auto; font-size: 13px; font-weight: 700; color: #860085; }
.sd-cikti-ibare { margin: 10px 0; padding: 8px 12px; border-radius: 8px; background: #fcf4f9; font-size: 12.5px; color: #2d3436; }
.sd-cikti-bilgi { width: 100%; font-size: 12.5px; margin-bottom: 14px; border-collapse: collapse; }
.sd-cikti-bilgi td { padding: 4px 0; border-bottom: 1px solid #eee; vertical-align: top; }
.sd-cikti-bilgi td:first-child { width: 190px; color: #636e72; }
.sd-cikti-alt { margin-top: 14px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 11px; line-height: 1.5; color: #555; }
.sd-cikti-yasal { margin-top: 8px; font-style: italic; }

/* PDF uretimi sirasinda (html2pdf): sabit genislik, acik tema, ekran ogeleri gizli */
/* Genislik verilmez: html2pdf icerigi A4 yazi alani genisligindeki kendi kapsayicisina koyar (~733px); sabit genislik kesilmeye yol acar. */
body.sd-pdf-modu #sonuc { box-sizing: border-box; width: auto; max-width: 100%; padding: 0; margin: 0; background: #ffffff; font-size: 12px; }
body.sd-pdf-modu #sonuc .table-responsive { overflow: visible; }
body.sd-pdf-modu .sd-teklifler { font-size: 11px; }
body.sd-pdf-modu .sd-teklifler th, body.sd-pdf-modu .sd-teklifler td { padding: 6px 4px; }
body.sd-pdf-modu .sd-teklifler td.sd-firma { min-width: 0; }
body.sd-pdf-modu .sd-rozet { padding: 2px 6px; font-size: 10px; }
body.sd-pdf-modu .sd-adimlar { font-size: 12px; }
body.sd-pdf-modu .sd-hero { padding: 20px 24px; }
body.sd-pdf-modu .sd-hero-ozellikler { gap: 12px; }
body.sd-pdf-modu .sd-sonuc-tutar { font-size: 32px; }
body.sd-pdf-modu .p-4 { padding: 16px !important; }
/* gradyanli yazi html2canvas'ta blok gibi cikiyor: PDF ve yazdirmada duz renk */
body.sd-pdf-modu .sd-vurgulu { background: none !important; -webkit-text-fill-color: #860085; color: #860085; }
body.sd-pdf-modu .sd-cikti-baslik, body.sd-pdf-modu .sd-cikti-alt { display: block; }
body.sd-pdf-modu .sd-cikti-butonlar { display: none; }
body.sd-pdf-modu .sd-kart, body.sd-pdf-modu .sd-hero { box-shadow: none; }

@media print {
    @page { size: A4; margin: 12mm 10mm; }
    body { background: #ffffff !important; }
    .sd-navbar, .sd-footer, .sd-yan, #sdFormKart, .sd-cikti-butonlar { display: none !important; }
    main.sd-sayfa { margin: 0 !important; padding: 0 !important; }
    main.sd-sayfa > .row > article { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .sd-cikti-baslik, .sd-cikti-alt { display: block !important; }
    .sd-kart, .sd-hero { box-shadow: none !important; break-inside: avoid; }
    .sd-teklifler tr { break-inside: avoid; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sd-vurgulu { background: none !important; -webkit-text-fill-color: #860085 !important; color: #860085 !important; }
}

/* ===== R TABLOSU KARTLARI (ilan tarihine gore JS gosterir) ===== */
.sd-gizli-yil { display: none !important; }

/* ===== SIYAH TEMA: Bootstrap'in gri metinleri ===== */
:root[data-theme="siyahTema"] .text-muted,
:root[data-theme="siyahTema"] .breadcrumb-item.active,
:root[data-theme="siyahTema"] .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted) !important; }
:root[data-theme="siyahTema"] .sd-baslik + div,
:root[data-theme="siyahTema"] .form-label .fw-normal { color: var(--text-muted) !important; }

/* ===== MOBIL: teklif satirlari iki satira bolunur (ust: firma, alt: tutar + butonlar) ===== */
@media (max-width: 575.98px) {
    .sd-satirlar thead { display: none; }
    .sd-satirlar, .sd-satirlar tbody { display: block; }
    .sd-satirlar tr { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); }
    .sd-satirlar td { display: block; padding: 0 !important; width: auto !important; }
    .sd-satirlar td.sd-sira { grid-row: 1 / span 2; align-self: start; padding-top: 10px !important; text-align: left; }
    .sd-satirlar td:nth-child(2) { grid-column: 2 / span 2; }
    .sd-satirlar td:nth-child(3) { grid-column: 2; }
    .sd-satirlar td.sd-tenzilat { display: none; }
    .sd-satirlar td.sd-islemler { grid-column: 3; }
}

/* ===== CALISMA ALANI: TEMA RENKLI YENI TASARIM ===== */
/* Buyuk yuzeyler (navbar, kapak, adim seridi, butonlar...) dogrudan
   temanin --main-gradient degerini kullanir; --sd-* yalnizca vurgu renkleridir. */
:root {
    --sd-deep: #6f85de;
    --sd-deep-2: #946dd0;
    --sd-primary: #946dd0;
    --sd-primary-light: #d641b9;
    --sd-highlight: #ffffff;
    --sd-card: #faf7fd;
    --sd-card-edge: #e3d6f0;
    --sd-field: #ffffff;
    --sd-soft: #f3ebfa;
    --sd-page: #f1ecf8;
    --sd-glass: rgba(255, 255, 255, .18);
    --sd-hero-glow: rgba(255, 255, 255, .14);
    --sd-hero-sheen: rgba(255, 255, 255, .08);
    --sd-hero-ray: rgba(255, 255, 255, .08);
}
:root[data-theme="maviTema"] {
    --sd-deep: #265073;
    --sd-deep-2: #336b99;
    --sd-primary: #265073;
    --sd-primary-light: #336b99;
    --sd-highlight: #ffffff;
    --sd-card: #f5f8fb;
    --sd-card-edge: #cfdbe6;
    --sd-field: #ffffff;
    --sd-soft: #e9eff4;
    --sd-page: #e9eff4;
    --sd-glass: rgba(255, 255, 255, .16);
    --sd-hero-glow: rgba(255, 255, 255, .12);
    --sd-hero-sheen: rgba(255, 255, 255, .06);
    --sd-hero-ray: rgba(255, 255, 255, .07);
}
:root[data-theme="siyahTema"] {
    --sd-deep: #1a1a1a;
    --sd-deep-2: #404040;
    --sd-primary: #404040;
    --sd-primary-light: #808080;
    --sd-highlight: #e0e0e0;
    --sd-card: #111111;
    --sd-card-edge: #2b2b2b;
    --sd-field: #1a1a1a;
    --sd-soft: #1f1f1f;
    --sd-page: #000000;
    --sd-glass: rgba(255, 255, 255, .09);
    --sd-hero-glow: rgba(255, 255, 255, .06);
    --sd-hero-sheen: rgba(255, 255, 255, .04);
    --sd-hero-ray: rgba(255, 255, 255, .04);
}
:root[data-theme="siyahTema"] .sd-tur-secici label i,
:root[data-theme="siyahTema"] .sd-ozet-satir span i,
:root[data-theme="siyahTema"] .sd-yan-baslik i,
:root[data-theme="siyahTema"] .sd-ozet-rapor,
:root[data-theme="siyahTema"] .sd-formul { color: #e0e0e0; }


html { scroll-behavior: smooth; }
body {
    background: radial-gradient(circle at 9% 31%, var(--sd-soft), transparent 38%),
                linear-gradient(145deg, var(--sd-page), var(--bg) 60%);
}
.sd-navbar {
    position: relative;
    z-index: 5;
    background: var(--main-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 6px 22px rgba(5, 15, 41, .18);
}
.sd-navbar-ic { max-width: none; margin: 0; min-height: 62px; padding: 8px 24px; gap: 28px; }
.sd-logo-img { height: 40px; max-width: 72px; object-fit: contain; }
.sd-logo-yazi { font-size: 23px; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.sd-navbar-linkler { gap: 4px; }
.sd-navbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 9px;
    color: #f7f9ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}
.sd-navbar-link:hover, .sd-navbar-link:focus-visible, .sd-navbar-link-aktif {
    background: var(--sd-glass);
    color: #ffffff;
}
.sd-navbar-btn {
    min-height: 38px;
    height: auto;
    border-radius: 9px;
    padding: 7px 14px;
    background: var(--main-gradient);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    white-space: nowrap;
}
:root[data-theme="siyahTema"] .sd-navbar-btn { background: var(--main-gradient); }
.sd-giris-form { margin-left: 10px; }
.sd-giris-form input { height: 38px; width: 128px; border-radius: 8px; }

.sd-kapak {
    position: relative;
    overflow: hidden;
    background: var(--main-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}
.sd-kapak::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(128deg, transparent 0 27%, var(--sd-hero-ray) 27.1% 33%, transparent 33.1%),
                linear-gradient(312deg, transparent 0 29%, var(--sd-hero-ray) 29.1% 36%, transparent 36.1%),
                repeating-linear-gradient(130deg, transparent 0 84px, rgba(255, 255, 255, .055) 85px, transparent 86px);
    opacity: .75;
}
.sd-kapak::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 78% 120%, var(--sd-hero-glow), transparent 80%);
}
.sd-kapak-ic {
    position: relative;
    z-index: 1;
    max-width: none;
    margin: 0;
    min-height: 240px;
    padding: 34px 36px 63px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
}
.sd-kapak-metin { max-width: 720px; }
.sd-kapak-etiket {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .17);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 12px;
    font-weight: 700;
    color: #ffe5ab;
}
.sd-kapak h1 { margin: 9px 0 6px; font-size: clamp(33px, 3.7vw, 55px); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-shadow: 0 3px 15px rgba(0,0,0,.32); }
.sd-kapak h1 span { color: #ffffff; }
.sd-kapak p { max-width: 580px; margin: 0; color: #e9f3ff; font-size: 14px; line-height: 1.5; }
.sd-kapak-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 15px; color: #dceafa; font-size: 11.5px; }
.sd-kapak-meta i { color: var(--sd-highlight); margin-right: 4px; }
.sd-kapak-kisayollar { display: flex; align-items: stretch; gap: 12px; }
.sd-kapak-kisayollar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 112px;
    min-height: 98px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 15px;
    background: linear-gradient(145deg, var(--sd-glass), rgba(0, 0, 0, .16));
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 12px 30px rgba(0,0,0,.13);
    backdrop-filter: blur(7px);
    transition: transform .2s ease, background .2s ease;
}
.sd-kapak-kisayollar a:hover, .sd-kapak-kisayollar a:focus-visible { transform: translateY(-3px); background: var(--sd-glass); color: #fff; }
.sd-kapak-kisayollar i { font-size: 28px; line-height: 1; color: var(--sd-highlight); }
.sd-kapak-kisayollar span { font-size: 11.5px; font-weight: 700; line-height: 1.25; }

main.sd-sayfa { max-width: none; margin: -42px 0 0; position: relative; z-index: 2; }
.sd-calisma-alani { display: grid; grid-template-columns: 172px minmax(0, 1fr) 312px; align-items: start; gap: 16px; margin: 0; }
.sd-calisma-alani > * { min-width: 0; width: auto; max-width: none; margin-top: 0; align-self: start; }
.sd-calisma-alani > .sd-ana-icerik, .sd-calisma-alani > .sd-yan { padding: 0; margin: 0; }
.sd-kart { border-color: var(--sd-card-edge); background: var(--sd-card); box-shadow: 0 14px 34px rgba(20, 36, 76, .11); }
.sd-adim-seridi {
    position: sticky;
    top: 18px;
    min-height: 456px;
    margin-top: 0;
    padding: 22px 13px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 19px;
    color: #fff;
    background: var(--main-gradient);
    box-shadow: 0 18px 34px rgba(8, 28, 63, .22);
}
.sd-adim-seridi-baslik { padding: 0 5px 17px; font-size: 10px; font-weight: 800; letter-spacing: .13em; color: var(--sd-highlight); }
.sd-adim-seridi-ogesi {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 95px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}
.sd-adim-seridi-ogesi:not(:last-child)::after { content: ''; position: absolute; top: 31px; bottom: 9px; left: 15px; width: 2px; background: linear-gradient(var(--sd-highlight), rgba(255,255,255,.22)); }
.sd-adim-seridi-ogesi:hover { color: #fff; }
.sd-adim-seridi-no { z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border: 2px solid #d1e9ff; border-radius: 50%; background: var(--main-gradient); font-size: 13px; font-weight: 800; box-shadow: 0 0 0 4px rgba(255,255,255,.07); }
.sd-adim-seridi-ogesi strong { display: block; padding-top: 1px; font-size: 12px; }
.sd-adim-seridi-ogesi small { display: block; margin-top: 4px; color: #d6e3f1; line-height: 1.25; }
.sd-adim-bekliyor { opacity: .55; }

.sd-form-kart { border: 1px solid #fff; background: linear-gradient(155deg, #fff, var(--sd-card) 35%, var(--sd-soft)); box-shadow: 0 15px 34px rgba(17, 37, 77, .16); }
:root[data-theme="siyahTema"] .sd-form-kart { border-color: var(--sd-card-edge); background: linear-gradient(155deg, #232a38, var(--sd-card) 40%, #10141d); }
.sd-form-kart-giris { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--sd-card-edge); }
.sd-form-kart-giris strong { display: block; font-size: 17px; color: var(--heading); }
.sd-form-kart-giris span:not(.sd-form-kart-ikon) { color: var(--text-muted); font-size: 12px; }
.sd-form-kart-ikon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: var(--main-gradient); color: #fff; font-size: 19px; }
.sd-bolum { padding-top: 18px; border-top: 1px solid var(--sd-card-edge); margin: 18px 0 13px; font-size: 16px; color: var(--heading); scroll-margin-top: 20px; }
.sd-form-kart-giris + .sd-form .sd-bolum:first-child { border-top: 0; padding-top: 0; }
.sd-bolum-no { width: 26px; height: 26px; border-radius: 8px; background: var(--main-gradient); font-size: 13px; box-shadow: 0 3px 8px rgba(20, 30, 64, .2); }
.sd-form .form-label { margin-bottom: 4px; font-size: 12px; }
.sd-form .form-control, .sd-form .form-select { min-height: 41px; border: 1px solid var(--sd-card-edge); border-radius: 8px; background-color: var(--sd-field); box-shadow: inset 0 1px 3px rgba(9, 31, 63, .06); font-size: 13px; }
.sd-form .form-control:focus, .sd-form .form-select:focus { border-color: var(--sd-primary-light); box-shadow: 0 0 0 3px var(--sd-soft); }
:root[data-theme="siyahTema"] .sd-form .form-select { background-color: var(--sd-field); }
.sd-tur-secici { gap: 9px; }
.sd-tur-secici label { flex-direction: column; align-items: center; justify-content: center; min-height: 92px; padding: 11px 8px; border-color: var(--sd-card-edge); border-radius: 10px; background: var(--sd-field); box-shadow: 0 3px 8px rgba(14, 34, 76, .08); text-align: center; }
.sd-tur-secici label i { font-size: 24px; color: var(--sd-primary); }
.sd-tur-secici label strong { font-size: 12.5px; }
.sd-tur-secici label small { margin-top: 2px; font-size: 10px; }
.sd-tur-secici input:checked + label { background: var(--main-gradient); border-color: var(--sd-primary-light); box-shadow: 0 6px 14px rgba(11, 35, 79, .22), inset 0 1px rgba(255,255,255,.28); }
.sd-tur-secici input:checked + label i { color: #fff; }
.sd-ipucu { font-size: 11px; line-height: 1.4; }
.sd-satirlar thead { background: var(--sd-soft); }
.sd-satirlar th { padding: 7px 6px; color: var(--text); }
.sd-satirlar td { padding: 3px 5px; border-bottom: 1px solid var(--sd-card-edge); }
.sd-satirlar .form-control { min-height: 35px; font-size: 12px; }
.sd-satirlar td:nth-child(3), .sd-satirlar .sd-th-tutar { width: 155px; }
.sd-ikon-btn { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.sd-teklif-araclar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0 0; }
.sd-teklif-araclar > span { font-size: 11px; color: var(--text-muted); }
.sd-teklif-araclar > span i { color: #16854a; margin-right: 3px; }
.sd-btn-ekle { margin-top: 0; padding: 6px 12px; border-style: solid; border-color: var(--sd-primary-light); background: var(--sd-soft); font-size: 12px; }
.sd-alt-bolum { margin-top: 16px; padding: 12px 14px; border-color: var(--sd-card-edge); background: var(--sd-soft); }
.sd-butonlar { margin-top: 18px; }
.sd-btn-birincil { justify-content: center; background: var(--main-gradient); border-radius: 9px; box-shadow: 0 8px 18px rgba(18, 40, 88, .23); }
.sd-btn-ikincil { border-color: var(--sd-card-edge); }
.sd-btn-ikincil:hover { background: var(--sd-soft); }
.sd-butonlar .sd-btn-birincil { flex: 1 1 280px; }

.sd-yan .sd-kart + .sd-kart { margin-top: 13px; }
.sd-ozet-kart { overflow: hidden; border: 1px solid #fff; border-radius: 17px; background: linear-gradient(150deg, #fff, var(--sd-card)); box-shadow: 0 16px 36px rgba(8, 28, 63, .19); }
:root[data-theme="siyahTema"] .sd-ozet-kart { border-color: var(--sd-card-edge); background: var(--sd-card); }
.sd-ozet-baslik { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: var(--main-gradient); color: #fff; font-size: 15px; }
.sd-ozet-baslik i { font-size: 20px; }
.sd-ozet-icerik { padding: 10px 12px 13px; }
.sd-ozet-satir { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 1px; border-bottom: 1px solid var(--sd-card-edge); font-size: 11.5px; }
.sd-ozet-satir span { color: var(--text-muted); }
.sd-ozet-satir span i { margin-right: 5px; color: var(--sd-primary); }
.sd-ozet-satir strong { font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.sd-ozet-sonuc { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 15px; border-radius: 10px; background: var(--main-gradient); color: #fff; box-shadow: 0 8px 20px rgba(17, 36, 77, .22); }
.sd-ozet-sonuc > i { font-size: 26px; }
.sd-ozet-sonuc small { display: block; font-size: 10px; opacity: .9; }
.sd-ozet-sonuc strong { display: block; margin-top: 2px; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.sd-ozet-durum { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.sd-ozet-durum span { padding: 8px; border-radius: 8px; font-size: 10px; line-height: 1.4; }
.sd-ozet-durum strong { display: block; margin-left: 16px; font-size: 11px; }
.sd-ozet-ust { background: rgba(25, 135, 84, .12); color: #146c43; }
.sd-ozet-alt { background: rgba(220, 53, 69, .11); color: #b02a37; }
:root[data-theme="siyahTema"] .sd-ozet-ust { color: #8de1b2; }
:root[data-theme="siyahTema"] .sd-ozet-alt { color: #f1aeb5; }
.sd-ozet-rapor { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; color: var(--sd-primary); font-size: 11px; font-weight: 700; text-decoration: none; }
.sd-ozet-rapor:hover { color: var(--sd-primary-light); text-decoration: underline; }
.sd-ozet-uyari { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--sd-card-edge); color: var(--text-muted); font-size: 10.5px; line-height: 1.35; }
.sd-bilgi-kart { border-radius: 14px; background: linear-gradient(150deg, var(--sd-card), var(--sd-soft)); }
.sd-yan-baslik { color: var(--heading); font-size: 14px; }
.sd-yan-baslik i { color: var(--sd-primary); }
.sd-adim-listesi li { font-size: 12px; }
.sd-adim-listesi li::before { background: var(--sd-primary); color: #fff; }
.sd-formul { color: var(--sd-primary); background: var(--sd-field); }

@media (max-width: 1300px) {
    .sd-calisma-alani { grid-template-columns: 145px minmax(0,1fr) 280px; gap: 12px; }
    .sd-kapak-kisayollar a { width: 100px; }
    .sd-navbar-ic { gap: 12px; }
    .sd-navbar-link { padding: 7px 8px; }
    .sd-giris-form input { width: 108px; }
}
@media (max-width: 1100px) {
    .sd-kapak-ic { grid-template-columns: 1fr; gap: 18px; padding-bottom: 68px; }
    .sd-kapak-kisayollar { justify-content: flex-start; }
    .sd-kapak-kisayollar a { width: 120px; min-height: 76px; flex-direction: row; gap: 8px; }
    .sd-kapak-kisayollar i { font-size: 23px; }
    .sd-calisma-alani { grid-template-columns: minmax(0, 1fr) 290px; }
    .sd-adim-seridi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; min-height: 0; margin-top: 0; padding: 10px 14px; gap: 8px 18px; position: static; }
    .sd-adim-seridi-baslik { flex-basis: 100%; padding: 0; }
    .sd-adim-seridi-ogesi { min-height: 0; flex: 1 1 115px; align-items: center; }
    .sd-adim-seridi-ogesi::after { display: none; }
    .sd-ana-icerik { grid-column: 1; }
    .sd-yan { grid-column: 2; }
}
@media (max-width: 1050px) {
    .sd-navbar-ic { flex-wrap: wrap; }
    .sd-navbar-ac { display: inline-flex; margin-left: auto; }
    .sd-navbar-menu { flex: 0 0 100%; width: 100%; }
    .sd-navbar-menu.collapse:not(.show) { display: none !important; }
    .sd-navbar-linkler { flex-wrap: wrap; justify-content: flex-start; padding: 12px 0 4px; border-top: 1px solid rgba(255,255,255,.22); }
    .sd-giris-form { flex-basis: 100%; width: 100%; margin: 4px 0 0; }
    .sd-giris-form input { width: 100%; }
}
@media (max-width: 850px) {
    .sd-calisma-alani { grid-template-columns: minmax(0,1fr); }
    .sd-ana-icerik, .sd-yan { grid-column: 1; }
    .sd-yan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sd-yan .sd-kart + .sd-kart { margin-top: 0; }
    .sd-ozet-kart { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .sd-navbar-ic { padding: 8px 14px; }
    .sd-logo-img { height: 34px; max-width: 52px; }
    .sd-logo-yazi { font-size: 18px; }
    .sd-kapak-ic { padding: 25px 18px 65px; }
    .sd-kapak h1 { font-size: 36px; }
    .sd-kapak p { font-size: 12.5px; }
    .sd-kapak-meta { font-size: 10.5px; }
    .sd-kapak-kisayollar { gap: 6px; }
    .sd-kapak-kisayollar a { width: auto; flex: 1; min-height: 70px; flex-direction: column; gap: 4px; padding: 6px; }
    .sd-kapak-kisayollar i { font-size: 20px; }
    .sd-kapak-kisayollar span { font-size: 9.5px; }
    main.sd-sayfa { margin-top: -37px; }
    .sd-adim-seridi { gap: 8px; }
    .sd-adim-seridi-ogesi { flex: 1 1 42%; }
    .sd-adim-seridi-ogesi strong { font-size: 10.5px; }
    .sd-adim-seridi-ogesi small { font-size: 9px; }
    .sd-tur-secici { grid-template-columns: 1fr; }
    .sd-tur-secici label { flex-direction: row; justify-content: flex-start; min-height: 60px; text-align: left; }
    .sd-yan { display: block; }
    .sd-yan .sd-kart + .sd-kart { margin-top: 12px; }
    .sd-ozet-durum { grid-template-columns: 1fr 1fr; }
}
@media print {
    .sd-kapak, .sd-adim-seridi { display: none !important; }
    .sd-calisma-alani { display: block !important; }
    main.sd-sayfa { margin: 0 !important; max-width: none !important; }
    .sd-ana-icerik { width: 100% !important; max-width: none !important; }
}

/* ===== reCAPTCHA ===== */
.sd-captcha { margin-top: 24px; }
.sd-captcha-uyari { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(220, 53, 69, 0.08); color: #b02a37; font-size: 13.5px; font-weight: 600; }
:root[data-theme="siyahTema"] .sd-captcha-uyari { color: #f1aeb5; }
@media (max-width: 360px) { .sd-captcha .g-recaptcha { transform: scale(0.9); transform-origin: 0 0; } }

/* ===== TEMA GRADYANI YERLESIMI =====
   main-gradient shorthand ile verildigi icin boyut/konum en sonda tanimlanir.
   Gradyanin acik (maviTema'da beyaz) sol ust kosesi yazinin altina gelmesin diye buyutulur. */
.sd-navbar, .sd-kapak, .sd-adim-seridi, .sd-navbar-btn, .sd-adim-seridi-no, .sd-form-kart-ikon, .sd-bolum-no,
.sd-tur-secici input:checked + label, .sd-btn-birincil, .sd-ozet-baslik, .sd-ozet-sonuc {
    background-size: 150% 150%;
    background-position: right bottom;
}

/* Acik temalarda soluk gri yazilar (Bootstrap .text-muted, etiket aciklamalari) tema gri tonunu kullanir. */
:root:not([data-theme="siyahTema"]) .text-muted,
:root:not([data-theme="siyahTema"]) .text-secondary,
:root:not([data-theme="siyahTema"]) .form-text,
:root:not([data-theme="siyahTema"]) .form-label .fw-normal { color: var(--text-muted) !important; }

/* ===== UYE NAVBARI (giris yapilmis) =====
   Uye panelindeki navbar (/ihale, logged-in-navbar.asp) gibi: kalin menu yazilari,
   hover'da yukari kayma + alt cizgi, sagda yuvarlak Guvenli Cikis butonu. */
.sd-navbar-uye .sd-navbar-linkler { gap: 1px; }
.sd-navbar-uye .sd-navbar-link {
    position: relative;
    padding: 7px 9px;
    border-radius: 6px;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: clamp(11px, .55vw + 5px, 13px);
    font-weight: 800;
    letter-spacing: -.2px;
    text-shadow: 0 0 4px rgba(0, 0, 0, .55);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), background .25s ease, text-shadow .25s ease;
}
.sd-navbar-uye .sd-navbar-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width .25s ease;
}
.sd-navbar-uye .sd-navbar-link:hover,
.sd-navbar-uye .sd-navbar-link:focus-visible {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-3px);
    text-shadow: 0 4px 15px rgba(255, 255, 255, .4);
}
.sd-navbar-uye .sd-navbar-link:hover::after,
.sd-navbar-uye .sd-navbar-link:focus-visible::after { width: 70%; }
.sd-navbar-uye .sd-navbar-cikis {
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 32px;
    min-height: 32px;
    height: 32px;
    margin-left: 6px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
    text-shadow: none;
}
.sd-navbar-uye .sd-navbar-cikis i { font-size: 16px; line-height: 1; }
.sd-navbar-uye .sd-navbar-cikis::after { display: none; }
.sd-navbar-uye .sd-navbar-cikis:hover,
.sd-navbar-uye .sd-navbar-cikis:focus-visible {
    background: #fff;
    color: var(--sd-primary);
    transform: translateY(-1px);
    text-shadow: none;
}
:root[data-theme="siyahTema"] .sd-navbar-uye .sd-navbar-cikis:hover { color: #1a1a1a; }
.sd-navbar-cikis-metin { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1300px) {
    .sd-navbar-uye .sd-navbar-link { padding: 7px 6px; }
}
/* Uye menusu daha uzun oldugu icin hamburger menuye daha genis ekranda gecilir. */
@media (max-width: 1200px) {
    .sd-navbar-uye .sd-navbar-ic { flex-wrap: wrap; }
    .sd-navbar-uye .sd-navbar-ac { display: inline-flex; margin-left: auto; }
    .sd-navbar-uye .sd-navbar-menu { flex: 0 0 100%; width: 100%; }
    .sd-navbar-uye .sd-navbar-menu.collapse:not(.show) { display: none !important; }
    .sd-navbar-uye .sd-navbar-linkler { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 10px 0 4px; border-top: 1px solid rgba(255,255,255,.22); }
    .sd-navbar-uye .sd-navbar-link { justify-content: center; font-size: 15px; font-weight: 600; padding: 10px; }
    .sd-navbar-uye .sd-navbar-link:hover { transform: none; }
    .sd-navbar-uye .sd-navbar-link::after { display: none; }
    .sd-navbar-uye .sd-navbar-cikis { width: auto; height: auto; min-height: 42px; margin: 6px 0 0; border-radius: 9px; }
    .sd-navbar-uye .sd-navbar-cikis-metin { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}


/* ===== MISAFIR NAVBARI (giris yapilmamis / disaridan gelen) =====
   Sitenin ana sayfa navbari gibi: menu linkleri, ikonlu kullanici adi / parola alanlari,
   Giris Yap, Kayit Ol ve Bize Ulasin butonlari. */
.sd-navbar-misafir .sd-navbar-linkler { gap: 4px; }
.sd-navbar-misafir .sd-navbar-link { padding: 7px 9px; font-weight: 700; text-shadow: 0 0 4px rgba(0, 0, 0, .45); }
.sd-navbar-misafir .sd-giris-form { margin-left: 12px; gap: 6px; }
.sd-giris-alan { position: relative; display: flex; align-items: center; margin: 0; }
.sd-giris-alan > i { position: absolute; left: 10px; color: #6b6f72; font-size: 14px; pointer-events: none; }
.sd-navbar-misafir .sd-giris-form input {
    width: 150px;
    height: 32px;
    padding: 0 10px 0 30px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 8px;
    background: #fff;
}
.sd-navbar-misafir .sd-giris-form input[type="password"],
.sd-navbar-misafir .sd-giris-form input#sdParola { padding-right: 32px; }
.sd-parola-goster {
    position: absolute;
    right: 4px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b6f72;
    font-size: 15px;
    cursor: pointer;
}
.sd-parola-goster:hover { color: #2d3436; }
.sd-navbar-misafir .sd-navbar-btn {
    height: 32px;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 12.5px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.sd-navbar-misafir .sd-navbar-btn:hover { background: rgba(255, 255, 255, .28); filter: none; }
:root[data-theme="siyahTema"] .sd-navbar-misafir .sd-navbar-btn { background: rgba(255, 255, 255, .1); }
@media (max-width: 1300px) {
    .sd-navbar-misafir .sd-navbar-link { padding: 7px 6px; }
    .sd-navbar-misafir .sd-giris-form input { width: 125px; }
}
/* Ogeler sigmadigi icin hamburger menuye daha genis ekranda gecilir. */
@media (max-width: 1200px) {
    .sd-navbar-misafir .sd-navbar-ic { flex-wrap: wrap; }
    .sd-navbar-misafir .sd-navbar-ac { display: inline-flex; margin-left: auto; }
    .sd-navbar-misafir .sd-navbar-menu { flex: 0 0 100%; width: 100%; }
    .sd-navbar-misafir .sd-navbar-menu.collapse:not(.show) { display: none !important; }
    .sd-navbar-misafir .sd-navbar-linkler { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 10px 0 4px; border-top: 1px solid rgba(255,255,255,.22); }
    .sd-navbar-misafir .sd-navbar-link { justify-content: center; font-size: 15px; padding: 10px; }
    .sd-navbar-misafir .sd-giris-form { flex-direction: column; align-items: stretch; width: 100%; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.22); }
    .sd-navbar-misafir .sd-giris-form input { width: 100%; height: 44px; font-size: 15px; }
    .sd-navbar-misafir .sd-navbar-btn { height: 44px; font-size: 15px; }
}


/* ===== YAPISKAN NAVBAR =====
   Navbar sayfa kaydirilinca ustte sabit kalir. Bolum linkleri ve sol adim seridi
   navbarin altinda kalmasin diye navbar yuksekligi kadar pay birakilir. */
:root { --sd-navbar-pay: 78px; }
html { scroll-padding-top: var(--sd-navbar-pay); }
.sd-navbar { position: sticky; top: 0; z-index: 1030; }
.sd-adim-seridi { top: var(--sd-navbar-pay); }
@media (max-width: 1200px) {
    /* Hamburger menu acikken uzun menu ekrana sigmazsa kendi icinde kayar */
    .sd-navbar-menu.show, .sd-navbar-menu.collapsing { max-height: calc(100vh - 70px); overflow-y: auto; }
}
@media (max-width: 575.98px) { :root { --sd-navbar-pay: 66px; } }
@media print { .sd-navbar { position: static; } }
