/* finance.fiberteleport.net — tambahan di atas style.css existing */

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #eef4fd 0%, #d6e6fa 50%, #c5daf7 100%);
}
.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(17,85,204,.12);
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.login-logo { width: 130px; margin-bottom: 8px; }
.login-card h1 { margin: 0 0 4px; color: #1155CC; font-size: 1.5rem; }
.login-sub { color: #64748b; margin: 0 0 24px; font-size: .9rem; }
.login-error { color: #d93025; font-size: .875rem; margin-top: 12px; }
.btn-block { width: 100%; }

.top-bar { text-align: center; padding: 16px 16px 8px; position: relative; }
.top-bar-right {
  position: absolute; top: 12px; right: 16px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.top-bar h1 { margin: 0; color: #1155CC; font-size: 1.5rem; }
.top-bar p { margin: 4px 0 0; color: #64748b; font-size: .9rem; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef4fd; color: #1155CC; border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; font-weight: 500;
}
.chip-btn {
  border: none; cursor: pointer; background: #fee2e2; color: #b91c1c;
}
.chip-btn:hover { background: #fecaca; }

.nav-modul {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 12px 16px 20px; max-width: 1200px; margin: 0 auto;
}
.nav-modul-btn {
  border: none; background: #fff; color: #475569;
  border-radius: 999px; padding: 10px 16px; font-size: .875rem;
  font-weight: 500; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: all .15s;
}
.nav-modul-btn:hover { background: #eef4fd; color: #1155CC; }
.nav-modul-btn.aktif {
  background: linear-gradient(135deg, #1155CC, #29ABE2);
  color: #fff; box-shadow: 0 4px 12px rgba(17,85,204,.3);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.card {
  background: #fff; border-radius: 16px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 2px 8px rgba(17,85,204,.06);
}
.card-title {
  font-weight: 600; color: #1155CC; margin-bottom: 14px;
  font-size: 1.05rem;
}
.card-title-toggle-filter { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }

.filter-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 12px;
}
.filter-aksi { display: flex; gap: 8px; flex-wrap: wrap; }
.field label { display: block; font-size: .8rem; color: #64748b; margin-bottom: 4px; font-weight: 500; }
.input-text, .input-select {
  width: 100%; padding: 8px 12px; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: .9rem; background: #fff;
}
.input-text:focus, .input-select:focus {
  outline: none; border-color: #29ABE2; box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}

.btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; border-radius: 8px; padding: 8px 14px;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: transform .1s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #1155CC, #29ABE2); color: #fff; }
.btn-soft { background: #eef4fd; color: #1155CC; }
.btn-outline { background: #fff; color: #475569; border: 1px solid #cbd5e1; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-success { background: #dcfce7; color: #15803d; }
.btn-sm { padding: 6px 10px; font-size: .8rem; }

.table-wrap { overflow-x: auto; }
.tabel-pemakaian {
  width: 100%; border-collapse: collapse; font-size: .875rem;
}
.tabel-pemakaian th {
  background: #eef4fd; color: #1155CC; text-align: left;
  padding: 10px 12px; font-weight: 600; white-space: nowrap;
}
.tabel-pemakaian td {
  padding: 10px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: middle;
}
.tabel-pemakaian tr:hover td { background: #f8fafc; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
}
.badge-draft { background: #f1f5f9; color: #64748b; }
.badge-validated { background: #dcfce7; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }

.ringkasan-analitik {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.kartu-ringkasan {
  background: #eef4fd; border-radius: 12px; padding: 14px 16px;
}
.kartu-label { font-size: .75rem; color: #64748b; margin-bottom: 4px; }
.kartu-nilai { font-size: 1.15rem; font-weight: 700; color: #1155CC; }
.kartu-nilai.txt-sisa { color: #15803d; }
.kartu-nilai.txt-kurang { color: #b91c1c; }
.kartu-nilai.txt-laba { color: #15803d; }
.kartu-nilai.txt-rugi { color: #b91c1c; }

.sub-nav-pengajuan {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.sub-nav-pengajuan-btn {
  flex: 1; min-width: 140px; border: none; background: #fff;
  border-radius: 999px; padding: 10px 16px; font-weight: 500;
  cursor: pointer; color: #475569; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.sub-nav-pengajuan-btn.aktif {
  background: linear-gradient(135deg, #1155CC, #29ABE2); color: #fff;
}

.section-title { color: #1155CC; font-size: .95rem; margin: 20px 0 10px; }
.placeholder-msg { color: #94a3b8; text-align: center; padding: 32px 16px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #fff; border-radius: 16px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.modal-header h3 { margin: 0; color: #1155CC; }
.modal-close {
  border: none; background: none; font-size: 1.5rem; cursor: pointer;
  color: #94a3b8; line-height: 1;
}
.modal-footer {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px;
}

.aksi-btns { display: flex; gap: 4px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .nav-modul-btn span { display: none; }
  .nav-modul-btn { padding: 10px 12px; }
  .top-bar-right { position: static; justify-content: center; margin-bottom: 8px; }
}
