* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #F3F4F6;
  color: #1F2937;
}
.topnav {
  display: flex;
  overflow-x: auto;
  background: #1F2937;
  padding: 0 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topnav a {
  flex: 0 0 auto;
  padding: 14px 14px;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.topnav a.aktif { color: #fff; border-bottom-color: #10B981; }

main { padding: 16px; max-width: 640px; margin: 0 auto; }
h2 { font-size: 17px; margin: 0 0 14px 0; }
h3.altBaslik { font-size: 14px; margin: 18px 0 8px; }

.kpiGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kpiCard { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.kpiCard .label { font-size: 11px; color: #6B7280; font-weight: bold; text-transform: uppercase; }
.kpiCard .value { font-size: 19px; font-weight: bold; margin-top: 4px; }
.kpiCard.uyari .value { color: #DC2626; }
.kpiCard.iyi .value { color: #059669; }

.card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 12px; }

label { display: block; margin-top: 12px; font-weight: bold; font-size: 12px; }
select, input[type=text], input[type=number], input[type=date], input[type=month], input[type=password] {
  width: 100%; padding: 9px; margin-top: 4px; box-sizing: border-box;
  border: 1px solid #D1D5DB; border-radius: 6px; font-size: 14px; background: #fff;
}

.turBtns { display: flex; gap: 6px; margin-top: 6px; }
.turBtn { flex: 1; padding: 10px; border: 1px solid #D1D5DB; border-radius: 6px; background: #fff; cursor: pointer; font-weight: bold; font-size: 13px; }
.turBtn.aktif-gelir, .turBtn.aktif-bize { background: #EAF7EF; border-color: #10B981; }
.turBtn.aktif-gider, .turBtn.aktif-bizim { background: #FDEDED; border-color: #EF4444; }

.kaydetBtn {
  width: 100%; margin-top: 18px; padding: 13px; background: #1F2937; color: #fff;
  border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 15px;
}
.kaydetBtn:hover { background: #111827; }

.mesaj { margin-top: 10px; padding: 10px; border-radius: 6px; font-size: 13px; }
.mesaj.basarili { background: #D1FAE5; color: #065F46; }
.mesaj.hata { background: #FEE2E2; color: #991B1B; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th { text-align: left; color: #6B7280; font-size: 11px; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid #E5E7EB; }
table td { padding: 8px 12px; border-bottom: 1px solid #F3F4F6; }
table tr.satirGelir td { background: #EAF7EF; }
table tr.satirGider td { background: #FDEDED; }

.negatif { color: #DC2626; font-weight: bold; }
.pozitif { color: #059669; font-weight: bold; }
.planToplam { margin-top: 10px; font-weight: bold; font-size: 13px; text-align: right; }
.tedaviKalem { display: flex; justify-content: space-between; align-items: center; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 6px; padding: 6px 10px; margin-top: 6px; font-size: 12px; }
.miniBtn { padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: bold; cursor: pointer; border: none; margin-left: 4px; text-decoration: none; display: inline-block; }
.duzenleBtn { background: #DBEAFE; color: #1E40AF; }
.silBtn { background: #FEE2E2; color: #991B1B; }

.borcSatir { background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.borcSatir.gecmis { border-left: 4px solid #EF4444; }
.borcSatir.yaklasan { border-left: 4px solid #F59E0B; }
.borcUst { display: flex; justify-content: space-between; align-items: center; }
.borcUst .aciklama { font-weight: bold; font-size: 13px; }
.borcDetay { font-size: 11px; color: #6B7280; margin-top: 2px; }
.odendiBtn { padding: 6px 10px; background: #10B981; color: #fff; border: none; border-radius: 6px; font-size: 11px; font-weight: bold; cursor: pointer; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-kutu { background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); width: 320px; }
.login-kutu h1 { text-align: center; font-size: 20px; margin-bottom: 8px; }
