* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, Arial, sans-serif; background: #f3f5f9; color: #1f2937; }

/* ---------- Giriş ---------- */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16213e, #1f2a50); padding: 16px; }
.login-kart { width: 100%; max-width: 400px; background: #f3f4f6; border-radius: 16px;
  padding: 28px 30px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.login-logo { background: #fff; text-align: center; padding: 6px; margin-bottom: 18px; }
.login-logo img { max-width: 100%; height: auto; }
.login-baslik { text-align: center; color: #1e3a5f; font-size: 21px; margin: 0 0 20px; line-height: 1.35; }
.login-kart label { display: block; font-size: 14px; font-weight: 600; color: #4b5563; margin: 14px 0 6px; }
.girdi { width: 100%; height: 44px; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 0 12px; font-size: 16px; background: #fff; }
.girdi:focus { outline: none; border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.15); }
.btn-giris { width: 100%; height: 46px; margin-top: 24px; border: 0; border-radius: 8px; cursor: pointer;
  color: #fff; font-size: 16px; font-weight: 700; background: linear-gradient(90deg, #0d6efd, #0a4fb8);
  box-shadow: 0 6px 14px rgba(13,110,253,.3); }
.btn-giris:active { transform: translateY(1px); }
.hata { display: block; margin-top: 14px; padding: 10px 12px; border-radius: 6px;
  background: #fde8e8; color: #b91c1c; font-size: 14px; }

/* ---------- Üst bar ---------- */
.ust { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1b2233; color: #fff; padding: 10px 18px; border-bottom: 3px solid #3b82f6; flex-wrap: wrap; }
.ust-sol { display: flex; align-items: center; gap: 10px; }
.ust-logo { height: 44px; background: #fff; padding: 2px 4px; }
.firma { font-weight: 800; font-size: 15px; }
.alt-bilgi { font-size: 12px; color: #60a5fa; font-weight: 600; }
.ust-orta { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.ust-sag { display: flex; gap: 8px; }
.btn-ust { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 6px; }
.btn-ust.mavi { background: #3b82f6; }
.btn-ust.kirmizi { background: #ef4444; }

/* ---------- İçerik / menü ---------- */
.icerik { background: #fff; margin: 24px 20px; border-radius: 12px; padding: 60px 16px; min-height: 60vh; }
.menu { max-width: 600px; margin: 0 auto; padding: 30px; background: #f8f9fb; border-radius: 12px;
  display: flex; flex-direction: column; gap: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.menu-btn { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
  text-decoration: none; font-weight: 800; font-size: 24px; min-height: 110px; padding: 20px;
  border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.15); transition: transform .1s; }
.menu-btn:active { transform: scale(.98); }
.menu-btn:hover { filter: brightness(1.08); }
.menu-btn.mavi { background: #0d6efd; }
.menu-btn.gri { background: #4b5159; }
.menu-btn.yesil { background: #198754; }
.menu-btn.turuncu { background: #fd7e14; }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  .ust { justify-content: center; text-align: center; }
  .ust-sol, .ust-sag { width: 100%; justify-content: center; }
  .ust-orta { width: 100%; font-size: 16px; }
  .icerik { margin: 12px 8px; padding: 20px 8px; }
  .menu { padding: 12px; gap: 14px; }
  .menu-btn { font-size: 22px; min-height: 100px; }
}

/* ---------- Raporlar ---------- */
.icerik:has(.rapor-baslik) { padding: 20px 16px; }
.rapor-baslik { margin: 0 0 14px; font-size: 22px; }
.turuncu-yazi { color: #fd7e14; }
.filtre { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.filtre-alan { flex: 1 1 180px; }
.filtre-alan label { display: block; font-size: 13px; font-weight: 700; color: #4b5563; margin-bottom: 5px; }
.btn-filtre { flex: 1 1 180px; height: 44px; border: 0; border-radius: 8px; background: #0d6efd;
  color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.toplam-kutu { display: flex; justify-content: space-between; align-items: center; background: #fff7ed;
  border: 1px solid #fed7aa; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 15px; }
.toplam-kutu strong { color: #c2410c; font-size: 20px; }
.bos { text-align: center; color: #6b7280; padding: 30px; }
.tablo-sarici { overflow-x: auto; }
.rapor-tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.rapor-tablo th { background: #1f2937; color: #fff; text-align: left; padding: 12px 10px; white-space: nowrap; }
.rapor-tablo td { padding: 10px; border-bottom: 1px solid #e5e7eb; }
.rapor-tablo tbody tr:nth-child(odd) { background: #f3f4f6; }
.rapor-tablo tfoot td { font-weight: 800; background: #fff7ed; border-top: 2px solid #fd7e14; }
.sag { text-align: right !important; }
.miktar { color: #15803d; font-weight: 800; font-size: 16px; white-space: nowrap; }
.kartlar { display: none; }

@media (max-width: 720px) {
  .tablo-sarici { display: none; }
  .kartlar { display: flex; flex-direction: column; gap: 10px; }
  .kart { border: 1px solid #e5e7eb; border-left: 5px solid #fd7e14; border-radius: 10px; padding: 12px; background: #fff; }
  .kart-ust { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
  .kart-firma { font-weight: 700; font-size: 13px; line-height: 1.3; }
  .kart-miktar { color: #15803d; font-weight: 800; font-size: 17px; white-space: nowrap; }
  .kart-satir { font-size: 14px; color: #374151; margin-top: 3px; }
  .kart-sube { color: #6b7280; font-size: 12px; }
}

/* Şube grupları */
.rapor-tablo tr.grup-baslik td { background: #fd7e14 !important; color: #fff; font-weight: 800; font-size: 15px; }
.grup-kart-baslik { display: flex; justify-content: space-between; background: #fd7e14; color: #fff;
  font-weight: 800; padding: 10px 12px; border-radius: 8px; margin-top: 6px; }

/* Alt bilgi */
.alt { background: #1b2233; color: #93c5fd; text-align: center; font-size: 13px; font-weight: 600;
  padding: 12px 16px; border-top: 3px solid #3b82f6; line-height: 1.6; }
.alt b { color: #fff; }
.yesil-yazi { color: #198754; }
.mavi-yazi { color: #0d6efd; }

/* Ana ekrana ekle */
.ana-ekran { display: none; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; margin-top: 16px;
  font-size: 14px; color: #1e3a8a; }
.ana-ekran-btn { display: none; border: 0; border-radius: 8px; background: #198754; color: #fff;
  font-weight: 800; font-size: 15px; padding: 10px 16px; cursor: pointer; }
.ana-ekran-ios { display: none; text-align: center; line-height: 1.5; }
.ana-ekran-kapat { border: 0; background: none; color: #64748b; font-size: 13px; text-decoration: underline; cursor: pointer; }
.icerik > .ana-ekran { margin: 0 0 16px; }
