/* ==== LK Acente – uygulama stilleri ==== */
:root {
    --marka: #015927;
    --marka-600: #01471f;
    --marka-700: #013517;
    --marka-50: #eef6f1;
    --marka-100: #d6eadd;
    --yazi: #13201a;
    --soluk: #5b6b63;
    --cizgi: #e3ebe6;
    --zemin: #f4f7f5;
    --yan-g: 240px;
    --uyari: #b45309;
    --uyari-50: #fff4dc;
    --tehlike: #b91c1c;
    --tehlike-50: #fdecec;
    --bilgi: #1d4ed8;
    --bilgi-50: #e8efff;
}

body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--yazi); background: var(--zemin); -webkit-font-smoothing: antialiased; font-size: .95rem; }
a { color: var(--marka); }
a:hover { color: var(--marka-600); }
.ikon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.text-soluk { color: var(--soluk) !important; }
.sayi { font-variant-numeric: tabular-nums; }

/* Butonlar ve form */
.btn-marka { background: var(--marka); border: 1px solid var(--marka); color: #fff; font-weight: 600; }
.btn-marka:hover, .btn-marka:focus { background: var(--marka-600); border-color: var(--marka-600); color: #fff; }
.btn-cizgi { border: 1px solid var(--marka); color: var(--marka); font-weight: 600; background: #fff; }
.btn-cizgi:hover { background: var(--marka); color: #fff; }
.btn-light { border: 1px solid var(--cizgi); background: #fff; }
.btn .ikon { width: 16px; height: 16px; margin-top: -2px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--marka); box-shadow: 0 0 0 .2rem rgba(1, 89, 39, .18); }
.form-check-input:checked { background-color: var(--marka); border-color: var(--marka); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.form-text { font-size: .8rem; }
.input-validation-error { border-color: #dc3545 !important; }
.field-validation-error { font-size: .82rem; }
.validation-summary-valid { display: none; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.zorunlu::after { content: " *"; color: var(--tehlike); }

/* ---- Giriş / yalın sayfalar ---- */
.yalin { min-height: 100vh; background: radial-gradient(900px 500px at 80% 0%, var(--marka-50), transparent 70%), var(--zemin); }
.giris-kap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.giris-kart { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--cizgi); border-radius: 18px; padding: 2.5rem 2rem; box-shadow: 0 30px 80px rgba(1, 53, 23, .1); }

/* ---- Yerleşim ---- */
.yan { position: fixed; inset: 0 auto 0 0; width: var(--yan-g); background: var(--marka-700); color: #cfe2d6; display: flex; flex-direction: column; padding: 1.1rem .85rem; z-index: 1040; overflow-y: auto; }
.marka { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: .25rem .5rem 1.25rem; }
.marka:hover { color: #fff; }
.marka span { line-height: 1.15; font-size: 1.05rem; }
.marka small { display: block; font-size: .7rem; color: #a9c7b4; font-weight: 500; }
.menu { display: grid; gap: .15rem; }
.menu a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 9px; color: #cfe2d6; text-decoration: none; font-weight: 600; font-size: .9rem; }
.menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu a.active { background: rgba(255, 255, 255, .13); color: #fff; }
.menu-baslik { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7fa48d; padding: 1rem .75rem .35rem; font-weight: 700; }
.yan-alt { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: .5rem; }
.kullanici-kart { display: flex; gap: .6rem; align-items: center; text-decoration: none; color: #fff; padding: .35rem .5rem; border-radius: 9px; }
.kullanici-kart:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.kullanici-kart strong { display: block; font-size: .85rem; line-height: 1.2; }
.kullanici-kart small { display: block; font-size: .72rem; color: #a9c7b4; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-weight: 700; flex: none; }
.cikis-btn { background: none; border: 0; color: #a9c7b4; font-size: .82rem; padding: .2rem .5rem; text-align: left; }
.cikis-btn:hover { color: #fff; text-decoration: underline; }

.ana { margin-left: var(--yan-g); min-height: 100vh; }
.ust { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 1rem; padding: .85rem 1.75rem; background: rgba(244, 247, 245, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cizgi); }
.ust-baslik { flex: 1; min-width: 0; }
.ust-baslik h1 { font-size: 1.25rem; font-weight: 800; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ust-yol { font-size: .78rem; color: var(--soluk); }
.ust-yol a { color: var(--soluk); text-decoration: none; }
.ust-yol a:hover { color: var(--marka); }
.ust-eylem { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.ust-eylem:empty { display: none; }
.menu-btn { display: none; border: 1px solid var(--cizgi); background: #fff; border-radius: 8px; width: 40px; height: 40px; font-size: 1.1rem; }
.icerik { padding: 1.5rem 1.75rem 3rem; max-width: 1500px; }

@media (max-width: 991.98px) {
    .yan { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
    .yan.acik { transform: none; }
    .ana { margin-left: 0; }
    .menu-btn { display: inline-block; }
    .ust { padding: .7rem 1rem; flex-wrap: wrap; }
    .ust-eylem { width: 100%; justify-content: flex-start; }
    .icerik { padding: 1rem 1rem 2rem; }
}

/* ---- Kartlar ---- */
.kart { background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; padding: 1.35rem; margin-bottom: 1.25rem; }
.kart-bas { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.kart-bas h2, .kart-baslik { font-size: 1rem; font-weight: 700; margin: 0; }
.kart-baslik { margin-bottom: 1rem; }
.kart-bas a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.kart.p-0 .kart-bas { padding: 1.1rem 1.35rem 0; }
.kart-tehlike { border-color: #f1d3d3; }

.istatistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.ist { background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--yazi); display: block; transition: border-color .15s; }
a.ist:hover { border-color: var(--marka); color: var(--yazi); }
.ist-etiket { display: block; color: var(--soluk); font-size: .8rem; font-weight: 600; }
.ist-deger { display: block; font-size: 1.65rem; font-weight: 800; color: var(--marka); line-height: 1.25; font-variant-numeric: tabular-nums; }
.ist-alt { display: block; font-size: .78rem; color: var(--soluk); }
.ist.uyari .ist-deger { color: var(--uyari); }
.ist.tehlike .ist-deger { color: var(--tehlike); }

/* ---- Tablolar ---- */
.tablo { --bs-table-bg: transparent; margin: 0; }
.tablo th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); font-weight: 700; padding: .75rem 1rem; border-bottom: 1px solid var(--cizgi); background: #fafcfb; white-space: nowrap; }
.tablo td { padding: .75rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--cizgi); }
.tablo tr:last-child td { border-bottom: 0; }
.tablo a.baslik-link { color: var(--yazi); text-decoration: none; font-weight: 600; }
.tablo a.baslik-link:hover { color: var(--marka); }
.tablo tfoot td { font-weight: 700; background: #fafcfb; border-top: 2px solid var(--cizgi); }
.tablo .alt { font-size: .78rem; color: var(--soluk); }
.tablo tr.satir-uyari td { background: #fffaf0; }
.tablo tr.satir-tehlike td { background: #fff6f6; }
.bos { padding: 2.5rem 1rem; text-align: center; color: var(--soluk); }
.bos a { font-weight: 600; }

/* ---- Rozetler ---- */
.rozet { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; }
.rozet-yesil { background: var(--marka-50); color: var(--marka); }
.rozet-gri { background: #f1f1f1; color: #555; }
.rozet-sari { background: var(--uyari-50); color: var(--uyari); }
.rozet-kirmizi { background: var(--tehlike-50); color: var(--tehlike); }
.rozet-mavi { background: var(--bilgi-50); color: var(--bilgi); }

/* ---- Filtre çubuğu ---- */
.filtre { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1.25rem; }
.filtre .form-label { font-size: .75rem; margin-bottom: .15rem; color: var(--soluk); }
.filtre > div { min-width: 140px; }
.filtre .arama { flex: 1; min-width: 220px; }
.sekmeler { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sekmeler a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--cizgi); background: #fff; color: var(--yazi); text-decoration: none; font-weight: 600; font-size: .85rem; }
.sekmeler a:hover { border-color: var(--marka); color: var(--marka); }
.sekmeler a.active { background: var(--marka); border-color: var(--marka); color: #fff; }
.sekmeler .adet { opacity: .7; margin-left: .25rem; font-weight: 500; }

/* ---- Bilgi listesi (detay sayfaları) ---- */
.bilgi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.bilgi dt { font-size: .75rem; color: var(--soluk); font-weight: 600; margin-bottom: .15rem; }
.bilgi dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---- Zaman çizelgesi ---- */
.zaman { list-style: none; padding: 0; margin: 0; position: relative; }
.zaman::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--cizgi); }
.zaman li { position: relative; padding: 0 0 1.1rem 1.75rem; }
.zaman li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--marka-100); }
.zaman li.durum::before { border-color: var(--marka); }
.zaman .z-ust { font-size: .78rem; color: var(--soluk); }
.zaman .z-not { white-space: pre-wrap; }

/* ---- Tekrarlanan satırlar (teklif kalemleri) ---- */
.kalem-satir { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 90px minmax(0, 2fr) auto; gap: .5rem; align-items: start; margin-bottom: .5rem; }
@media (max-width: 767.98px) { .kalem-satir { grid-template-columns: 1fr 1fr; } }

/* ---- Sayfalama ---- */
.sayfalama { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .85rem 1rem; border-top: 1px solid var(--cizgi); font-size: .85rem; color: var(--soluk); }
.sayfalama nav { display: flex; gap: .3rem; }
.sayfalama a, .sayfalama span.aktif { min-width: 2.2rem; padding: .3rem .6rem; border: 1px solid var(--cizgi); border-radius: 8px; text-align: center; text-decoration: none; color: var(--yazi); background: #fff; }
.sayfalama span.aktif { background: var(--marka); border-color: var(--marka); color: #fff; }

/* ---- Teklif karşılaştırma ---- */
.karsilastirma { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.fiyat-kart { border: 1px solid var(--cizgi); border-radius: 12px; padding: 1.1rem; background: #fff; position: relative; }
.fiyat-kart.secili { border: 2px solid var(--marka); }
.fiyat-kart.en-uygun::after { content: "En uygun"; position: absolute; top: -10px; right: 12px; background: var(--marka); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; }
.fiyat-kart h3 { font-size: .95rem; margin-bottom: .5rem; }
.fiyat { font-size: 1.5rem; font-weight: 800; color: var(--marka); font-variant-numeric: tabular-nums; }

/* ---- Belgeler ---- */
.belge-liste { list-style: none; padding: 0; margin: 0; }
.belge-liste li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--cizgi); }
.belge-liste li:last-child { border-bottom: 0; }
.belge-liste .bilgi-alan { flex: 1; min-width: 0; }
.belge-liste .bilgi-alan a { font-weight: 600; text-decoration: none; word-break: break-all; }
.belge-liste .bilgi-alan small { display: block; color: var(--soluk); font-size: .75rem; }

/* ---- Basit sütun grafik ---- */
.grafik-cubuk { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; height: 200px; align-items: end; }
.cubuk { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; }
.cubuk-dolgu { width: 100%; max-width: 44px; background: var(--marka); border-radius: 6px 6px 2px 2px; }
.cubuk:last-child .cubuk-dolgu { background: #2f7d4f; }
.cubuk-deger { font-size: .72rem; font-weight: 700; color: var(--soluk); }
.cubuk-etiket { font-size: .78rem; color: var(--soluk); text-transform: capitalize; }

/* ---- Yazdırma (teklif, rapor) ---- */
@media print {
    .yan, .ust, .no-print, .alert { display: none !important; }
    .ana { margin: 0; }
    .icerik { padding: 0; }
    body { background: #fff; }
    .kart { border: 0; padding: 0; }
}
