:root { --brand: #1f3a5f; }
body { background: #f3f5f8; padding-bottom: 80px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }
.bg-brand { background: var(--brand); }
.text-brand { color: var(--brand); }

/* Sol menü (masaüstü) */
.yan-menu { position: fixed; top: 0; left: 0; bottom: 0; width: 230px; background: var(--brand);
  flex-direction: column; z-index: 1030; overflow-y: auto; }
.yan-menu .marka { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1.25; padding: .95rem .9rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: .4rem; }
.yan-menu .marka svg { flex-shrink: 0; }
@media (min-width: 992px) { body { padding-left: 230px; } }

/* Menü bağlantıları (sol menü + mobil açılır menü) */
.menu-link { display: flex; align-items: center; gap: .65rem; color: rgba(255,255,255,.85);
  text-decoration: none; padding: .55rem 1rem; border-left: 3px solid transparent; font-size: .95rem; }
.menu-link i { font-size: 1.1rem; }
.menu-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu-link.active { color: #fff; background: rgba(255,255,255,.14); border-left-color: #fff; font-weight: 600; }
.navbar-brand { font-size: .95rem; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #16304f; color: #fff; }

/* Mobil alt menü */
.alt-menu { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: flex;
  background: #fff; border-top: 1px solid #dee2e6; padding-bottom: env(safe-area-inset-bottom); }
.alt-menu a { flex: 1; text-align: center; padding: .45rem 0 .35rem; color: #6c757d; text-decoration: none; font-size: .68rem; }
.alt-menu a i { display: block; font-size: 1.3rem; line-height: 1.2; }
.alt-menu a.active { color: var(--brand); font-weight: 600; }
.alt-menu a.orta i { background: var(--brand); color: #fff; border-radius: 50%; width: 2.5rem; height: 2.5rem;
  line-height: 2.5rem; margin: -1rem auto 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Liste kartları */
.liste .kart { display: block; background: #fff; border-radius: .6rem; padding: .7rem .85rem; margin-bottom: .5rem;
  color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.liste .kart:active { background: #eef2f7; }
.kart .baslik { font-weight: 600; }
.kart .alt { font-size: .82rem; color: #6c757d; }

.stat { background: #fff; border-radius: .6rem; padding: .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); height: 100%; }
.stat .etiket { font-size: .78rem; color: #6c757d; }
.stat .deger { font-size: 1.15rem; font-weight: 700; }

.hizli a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  background: #fff; border-radius: .6rem; padding: .8rem .3rem; text-decoration: none; color: var(--brand);
  font-size: .82rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); height: 100%; }
.hizli a i { font-size: 1.6rem; }

.kutu { background: #fff; border-radius: .6rem; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.form-control, .form-select { font-size: 16px; } /* iOS'ta odaklanınca zoom yapmasın */

/* Belge formu kalemleri */
.kalem { background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; padding: .6rem; margin-bottom: .5rem; }
#aramaSonuc { position: absolute; left: 0; right: 0; z-index: 20; max-height: 60vh; overflow-y: auto; }
.toplam-bar { position: sticky; bottom: 64px; background: #fff; border-top: 2px solid var(--brand);
  padding: .6rem .8rem; border-radius: .5rem; box-shadow: 0 -2px 6px rgba(0,0,0,.08); z-index: 10; }
@media (min-width: 992px) { .toplam-bar { bottom: 0; } }

.table-sm td, .table-sm th { white-space: nowrap; }

@media print {
  .navbar, .alt-menu, .yan-menu, .no-print, .btn { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .kutu { box-shadow: none; padding: 0; }
}
