/* otelmuhasebe — Tabler üzerine firma dokunuşları + bütçe pivot tabloları. Genel bileşenler Tabler'dan (tabler/css). */
:root { --lacivert: #1f3a5f; --lacivert-koyu: #162b47; --tblr-primary: #1f3a5f; --tblr-primary-rgb: 31, 58, 95; }
.navbar-vertical.navbar[data-bs-theme=dark] { background: var(--lacivert); }
.giris-arka { background: linear-gradient(160deg, var(--lacivert) 0%, #2d5a8c 100%); }
.logo-kutu { display: inline-flex; width: 30px; height: 30px; border-radius: 7px; background: #fff; color: var(--lacivert); align-items: center; justify-content: center; font-weight: 700; }
.logo-buyuk { width: 40px; height: 40px; font-size: 20px; }
.page-body { padding-top: 1rem; }
h1.page-title, h1 { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; color: var(--lacivert); }

/* eski yardımcı sınıflar (Tabler karşılıkları) */
.yan-yana { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.yan-yana > * { min-width: 0; }
.yan-yana .table-responsive { max-width: 100%; }
@media (max-width: 1000px) { .yan-yana { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.form .tam { grid-column: 1 / -1; }
.onay-kutu { display: flex; align-items: center; gap: 8px; padding-top: 22px; }
.onay-kutu label { margin: 0; }
.dugmeler { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.arac-cubugu { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.arac-cubugu > div { min-width: 140px; }
.rozet { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #e9ecef; color: #616876; }
.rozet.yesil { background: #d7f3e6; color: #176f44; }
.rozet.sari { background: #fcefc7; color: #8a5a00; }
.rozet.kirmizi { background: #fadcd9; color: #a3271b; }
.rozet.mavi { background: #dbe7fb; color: #1f4f9e; }
.mesaj { padding: 10px 14px; border-radius: 6px; margin: 10px 0; border: 1px solid transparent; }
.mesaj.basari { background: #e3f5ec; color: #166a43; border-color: #bfe8d2; }
.mesaj.hata { background: #fae3e0; color: #8e2a1f; border-color: #f2c4bf; }
.mesaj.bilgi { background: #e4ecff; color: #1f3a8a; border-color: #c3d4ff; }
.uyari { background: #fff; border: 1px solid #dadfe5; border-radius: 8px; padding: 20px; }
.baglanti-kutu { font-family: Consolas, monospace; font-size: 12px; background: #f6f8fb; border: 1px dashed #dadfe5; padding: 8px; border-radius: 6px; word-break: break-all; }
.gunluk-kutu { font-family: Consolas, monospace; font-size: 12px; background: #1d2733; color: #d9e2ef; padding: 10px; border-radius: 8px; max-height: 300px; overflow: auto; white-space: pre-wrap; }
.ilerleme { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.ilerleme span { padding: 4px 10px; border-radius: 6px; background: #fff; border: 1px solid #dadfe5; font-size: 12px; }
.ilerleme span.eksik { border-color: #f59f00; color: #8a5a00; }
.ilerleme span.tamam { border-color: #2fb344; color: #176f44; }
.satir-aksiyon { white-space: nowrap; }
.tablo td.sag, .tablo th.sag, td.sag, th.sag { text-align: right; }
.secili > td { background: #eef4ff !important; }
tr.pasif > td { color: #8a94a6; }

/* bütçe pivot / rapor tabloları */
.pivot-sarmal { overflow: auto; max-height: 72vh; background: #fff; border: 1px solid #dadfe5; border-radius: 6px; }
table.pivot { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; margin: 0; }
.pivot th, .pivot td { padding: 3px 6px; border-bottom: 1px solid #e6e9ee; border-right: 1px solid #f0f2f5; white-space: nowrap; }
.pivot th { position: sticky; top: 0; background: #f6f8fb; z-index: 2; font-weight: 600; color: #616876; text-align: right; }
.pivot th:first-child, .pivot td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; min-width: 260px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.pivot th:first-child { z-index: 3; background: #f6f8fb; }
.pivot td.sayi { text-align: right; font-variant-numeric: tabular-nums; }
.pivot tr.grup td { font-weight: 600; background: #f6f8fb; }
.pivot tr.grup td:first-child { background: #f6f8fb; }
.pivot tr.sev1 td:first-child { padding-left: 6px; font-weight: 700; color: var(--lacivert); }
.pivot tr.sev2 td:first-child { padding-left: 18px; }
.pivot tr.sev3 td:first-child { padding-left: 30px; }
.pivot tr.sev4 td:first-child { padding-left: 42px; }
.pivot tr.formul td:first-child { font-style: italic; color: #4a5a70; }
.pivot tr.toplam td { font-weight: 700; background: #eef4ff; border-top: 2px solid var(--lacivert); }
.pivot tr.toplam td:first-child { background: #eef4ff; }
.pivot tr.bolum td { background: var(--lacivert); color: #fff; font-weight: 600; }
.pivot tr.bolum td:first-child { background: var(--lacivert); }
input.hucre { width: 92px; text-align: right; padding: 2px 5px; font-size: 12px; border: 1px solid transparent; background: #fffdf2; border-radius: 4px; }
input.hucre:focus { border-color: #206bc4; background: #fff; outline: none; }
input.hucre.degisti { background: #e4ecff; border-color: #bcd0ff; }
.pivot td.neg, td.neg { color: #d63939; }
.pivot td.pos, td.pos { color: #2fb344; }
