/* ── LAPORAN VIEW ── */
.laporan-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 14px;
  background: var(--home-header-bg);
  color: var(--home-header-text);
  border-radius: 0 0 24px 24px;
}
.laporan-topbar__back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.laporan-topbar__title { font-size: 16px; font-weight: 700; }

.laporan-body { padding: 18px 16px 90px; }

.laporan-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}
.laporan-filter-btn {
  flex: 1;
  justify-content: center;
}
.laporan-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}
.laporan-dropdown {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  min-width: 140px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.laporan-filter-btn#laporan-tahun-btn + .laporan-dropdown {
  left: auto;
  right: 0;
}
.laporan-dropdown.show { display: block; }
.laporan-dropdown-option {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}
.laporan-dropdown-option:hover { background: var(--bg-hover); }
.laporan-dropdown-option.selected { color: var(--accent); font-weight: 700; }

.laporan-total-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary, var(--accent)));
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  margin-bottom: 16px;
}
.laporan-total-label { font-size: 12px; opacity: 0.85; }
.laporan-total-value { font-size: 22px; font-weight: 700; margin-top: 4px; }

.laporan-list { display: flex; flex-direction: column; gap: 12px; }

.laporan-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
}
.laporan-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.laporan-item__tanggal {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.laporan-item__total {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.laporan-loyang-table {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}
.laporan-loyang-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
  gap: 6px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.laporan-loyang-head {
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}
.laporan-loyang-jenis { color: var(--text-primary); font-weight: 600; }
.laporan-loyang-nominal { color: var(--text-primary); font-weight: 600; text-align: right; }
.laporan-loyang-harga { text-align: right; }
.laporan-loyang-qty { text-align: center; }
.laporan-loyang-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
  text-align: center;
}
.laporan-kasbon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--danger, #e53935);
  font-weight: 600;
}
.laporan-kasbon-nominal { font-weight: 700; }

.laporan-total-breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.laporan-total-breakdown:empty { display: none; }
.laporan-total-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.75;
  margin-bottom: 6px;
}
.laporan-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 3px 0;
}
.laporan-total-row-label { opacity: 0.95; }
.laporan-total-row-value { font-weight: 700; }
.laporan-total-kasbon-row {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.35);
  font-size: 13px;
  font-weight: 700;
}
.laporan-filter-btn--range.active {
  border-color: var(--accent);
  color: var(--accent);
}
.laporan-rentang-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 50;
  align-items: center;
  justify-content: center;
}
.laporan-rentang-overlay.show { display: flex; }
.laporan-rentang-popup {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  width: 85%;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.laporan-rentang-popup__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.laporan-rentang-popup__field { margin-bottom: 12px; }
.laporan-rentang-popup__field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.laporan-rentang-popup__field input[type="date"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
}
.laporan-rentang-popup__actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.laporan-rentang-btn-reset,
.laporan-rentang-btn-terapkan {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.laporan-rentang-btn-reset {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.laporan-rentang-btn-terapkan {
  background: var(--accent);
  color: #fff;
}
.laporan-varian-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.laporan-varian-chip {
  background: var(--brand-pale);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.laporan-varian-chip-kode {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
}
.laporan-varian-chip-harga {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}