:root { --erp-ana: #1f3a5f; --erp-ana-koyu: #162b47; --erp-menu-gen: 260px; }
body { background: #f3f5f8; font-size: .925rem; }
.erp-ust { background: var(--erp-ana); height: 52px; position: sticky; top: 0; z-index: 1030; }
.erp-govde { display: flex; min-height: calc(100vh - 52px); }
.erp-menu { width: var(--erp-menu-gen); background: #fff; border-right: 1px solid #e3e7ed; }
@media (min-width: 992px) {
    .erp-menu { position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto; flex-shrink: 0; }
}
.erp-icerik { flex: 1; padding: 1.25rem; min-width: 0; }
@media (max-width: 576px) { .erp-icerik { padding: .75rem; } }

.erp-menu-liste a { display: flex; align-items: center; gap: .55rem; color: #334155; text-decoration: none; padding: .45rem 1rem; }
.erp-menu-liste a:hover { background: #f1f5f9; }
.erp-menu-ana, .erp-menu-modul { font-weight: 600; }
.erp-menu-modul .ok { transition: transform .2s; font-size: .75rem; }
.erp-menu-modul.collapsed .ok { transform: rotate(-90deg); }
.erp-menu-oge { padding-left: 2.2rem !important; font-size: .875rem; }
.erp-menu-liste a.aktif { background: #e8eef7; color: var(--erp-ana); border-right: 3px solid var(--erp-ana); }
.erp-menu-grup { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; padding: .5rem 1rem .15rem 2.2rem; }

.sayfa-baslik { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sayfa-baslik h4 { margin: 0; font-weight: 600; color: #1e293b; }
.card { border: 1px solid #e3e7ed; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.table > :not(caption) > * > * { padding: .45rem .55rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #64748b; font-weight: 600; background: #f8fafc; white-space: nowrap; }
.tablo-kaydir { overflow-x: auto; }
.form-label { font-size: .8rem; color: #475569; margin-bottom: .2rem; font-weight: 500; }

.kpi { border-radius: .6rem; padding: 1rem; background: #fff; border: 1px solid #e3e7ed; height: 100%; }
.kpi .deger { font-size: 1.6rem; font-weight: 700; color: #0f172a; }
.kpi .etiket { color: #64748b; font-size: .8rem; }
.kpi i { font-size: 1.6rem; opacity: .35; }

/* Belge satır tablosu */
.satir-tablo input, .satir-tablo select { min-width: 70px; }
.satir-tablo td { vertical-align: middle; }
.satir-tablo .malzeme-hucre { min-width: 260px; }
.satir-tablo .sayi { text-align: right; }
.toplam-kutu { max-width: 360px; margin-left: auto; }
.toplam-kutu .satir { display: flex; justify-content: space-between; padding: .2rem 0; }
.toplam-kutu .genel { font-weight: 700; font-size: 1.1rem; border-top: 1px solid #e2e8f0; padding-top: .4rem; }

.giris-zemin { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f3a5f, #2e5a8a); }
.giris-kart { width: 100%; max-width: 400px; }

@media print {
    .erp-ust, .erp-menu, .no-print, .alert { display: none !important; }
    .erp-icerik { padding: 0; }
    body { background: #fff; }
}
