#view-laporan { display: flex; overflow: hidden; }
.report-sidebar { width: 226px; flex: none; background: var(--surface-2); border-right: 1px solid var(--line); overflow-y: auto; padding: 26px 14px; scrollbar-width: thin; }
.report-sidebar-heading { padding: 0 13px 22px; }
.report-sidebar-heading h1 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.report-sidebar-heading span { color: var(--fg-muted); font-size: 11px; }
.report-saved { padding: 0 10px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.report-saved label { font-size: 11px; margin: 0 0 8px; }
.report-saved > div { display: flex; gap: 5px; }
.report-saved select { min-width: 0; font-size: 11px; padding: 8px; border-radius: 7px; }
.report-saved .btn { padding: 6px; }
.report-saved .ico { width: 14px; height: 14px; }
#reportNav details { margin: 5px 0 13px; }
#reportNav summary { cursor: pointer; color: var(--fg); font-weight: 650; font-size: 12px; padding: 7px 10px; }
#reportNav button { width: 100%; display: block; text-align: left; padding: 8px 12px 8px 26px; border: 0; border-radius: 7px; background: transparent; color: var(--fg-muted); font-size: 11.5px; cursor: pointer; margin: 2px 0; }
#reportNav button:hover { background: var(--surface-3); color: var(--fg); }
#reportNav button[aria-current=page] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 30px; border-bottom: 1px solid var(--line); flex: none; }
.report-breadcrumb { font-size: 10px; color: var(--fg-muted); }
.report-heading h2 { font-size: 20px; margin: 2px 0 0; line-height: 1.3; letter-spacing: -.02em; }
.report-heading-actions { display: flex; gap: 8px; }
.report-filterbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px 30px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.report-filterbar label,.report-more-filters label { margin: 0 0 6px; font-size: 10px; }
.report-filterbar select,.report-filterbar input,.report-more-filters select,.report-more-filters input { font-size: 11px; padding: 8px 9px; height: 35px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--fg); min-width: 0; }
.report-filterbar .btn { font-size: 11px; height: 35px; }
.report-filterbar .btn[aria-pressed=true] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.report-date-fields { display: flex; align-items: flex-end; gap: 8px; }
.report-date-fields > span { line-height: 35px; color: var(--fg-muted); }
.report-date-fields input { width: 126px; }
.report-more-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 14px 30px; }
.report-more-filters > div { min-width: 130px; }
#reportCapacity { width: 150px; }
.report-content { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 30px 35px; background: var(--surface-2); }
.report-content[aria-busy=true] #reportResult { opacity: .55; pointer-events: none; }
.report-notice,.report-error { font-size: 12px; line-height: 1.6; padding: 12px 16px; border-radius: 9px; margin-bottom: 18px; }
.report-notice { background: var(--accent-soft); color: var(--fg-muted); border-left: 3px solid var(--accent); }
.report-error { background: var(--danger-soft); color: var(--danger); }
.report-description { margin: 0 0 20px; color: var(--fg-muted); font-size: 12px; line-height: 1.75; max-width: 1000px; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 12px; margin-bottom: 20px; }
.report-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 19px 20px; }
.report-kpi-label { color: var(--fg-muted); font-size: 11px; }
.report-kpi-value { font-size: 25px; line-height: 1.3; font-weight: 650; letter-spacing: -.04em; margin: 9px 0 4px; font-variant-numeric: tabular-nums; }
.report-kpi-hint { color: var(--fg-muted); font-size: 10px; line-height: 1.6; }
.report-block { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.report-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.report-block h3 { margin: 0; font-size: 13px; font-weight: 650; }
.report-block-heading .btn { font-size: 11px; }
.report-block-heading label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 400; }
.report-block-heading input[type=checkbox] { accent-color: var(--accent); }
.report-chart { padding: 22px 20px 10px; overflow-x: auto; }
.report-chart svg { width: 100%; min-width: 540px; height: 245px; display: block; }
.report-chart text { fill: var(--fg-muted); font-size: 11px; }
.report-chart line { stroke: var(--line); }
.report-chart .report-bar { transition: opacity .15s; }
.report-chart .report-bar:hover,.report-chart .report-bar:focus { opacity: .65; outline: none; stroke: var(--fg); stroke-width: 1; }
.report-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 15px 20px 0; font-size: 11px; color: var(--fg-muted); }
.report-legend span { display: flex; align-items: center; gap: 6px; }
.report-legend i { width: 9px; height: 9px; border-radius: 2px; }
.report-empty { padding: 40px 22px; text-align: center; color: var(--fg-muted); }
.report-empty img { width: 46px; height: 46px; display: block; margin: 0 auto 14px; opacity: .8; }
.report-empty strong { display: block; font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 5px; }
.report-empty p { font-size: 12px; margin: 0; }
.report-table-wrap { overflow: auto; scrollbar-width: thin; }
.report-table { border-collapse: collapse; width: 100%; font-size: 11.5px; }
.report-table th { text-align: left; font-size: 10.5px; color: var(--fg-muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; padding: 12px 16px; }
.report-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; max-width: 330px; min-width: 70px; overflow-wrap: anywhere; }
.report-table tr:hover td { background: var(--surface-2); }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table .report-id { font: 10px ui-monospace,monospace; color: var(--fg-muted); }
.report-breakdown td:first-child,.report-breakdown th:first-child { position: sticky; left: 0; background: var(--surface); min-width: 145px; border-right: 1px solid var(--line); }
.report-breakdown td { text-align: right; white-space: nowrap; }
.report-breakdown td:first-child { text-align: left; }
.report-table-caption { padding: 14px 20px; font-size: 11px; color: var(--fg-muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.report-table-caption > div { display: flex; gap: 8px; }
.report-heatmap { display: grid; grid-template-columns: 55px repeat(24,minmax(18px,1fr)); gap: 4px; padding: 20px; min-width: 650px; }
.report-heatmap span { font-size: 9px; color: var(--fg-muted); display: grid; place-items: center; min-height: 21px; }
.report-heatmap .heat-cell { border: 1px solid var(--line); background: var(--accent-soft); border-radius: 3px; color: var(--fg); font-size: 9px; cursor: help; }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.report-actions .btn { font-size: 12px; }
.report-footer { text-align: center; font-size: 10px; line-height: 1.9; color: var(--fg-muted); padding-top: 5px; }
.report-dialog { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; padding: 25px; width: min(500px,calc(100vw - 28px)); max-height: calc(100dvh - 40px); box-shadow: var(--shadow-lg); }
.report-dialog::backdrop { background: #080e20a6; }
.report-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-dialog-heading h3 { margin: 0; font-size: 17px; }
.report-dialog input,.report-dialog select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--fg); padding: 10px; font-size: 13px; }
.report-dialog .err-inline { margin: 12px 0; }
.report-dialog #submitReportDialog { margin-top: 10px; width: 100%; }
.report-dialog p { font-size: 12px; color: var(--fg-muted); line-height: 1.7; }
.report-mobile-nav { display: none; }
.report-mobile-saved { display: none; }
.report-mobile-filters { display: none; }
.report-notice summary { cursor: pointer; color: var(--fg-muted); font-size: 11px; }
.report-notice p { margin: 8px 0 0; }
.report-chat-link { border: 0; padding: 0; font: inherit; color: var(--accent); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme:dark) { .report-main select,.report-main input,.report-dialog select,.report-dialog input { color-scheme: dark; } }
@media (max-width:1200px) {
  .report-sidebar { width: 195px; padding: 22px 10px; }
  .report-heading,.report-filterbar,.report-more-filters { padding-left: 22px; padding-right: 22px; }
  .report-content { padding: 20px 22px; }
  .report-kpis { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
}
@media (max-width:850px) {
  .report-sidebar { display: none; }
  .report-mobile-saved { display: block; padding: 8px 20px; border-bottom: 1px solid var(--line); font-size: 11px; }
  .report-mobile-saved summary { cursor: pointer; }
  .report-mobile-saved .report-saved { margin: 10px 0 0; border: 0; padding: 0; }
  .report-mobile-saved .report-saved label { display: none; }
  .report-mobile-saved select { flex: 1; }
  .report-mobile-filters { display: block; border-bottom: 1px solid var(--line); flex: none; max-height: 45dvh; overflow: auto; }
  .report-mobile-filters > summary { cursor: pointer; padding: 13px 20px; font-size: 12px; color: var(--fg-muted); }
  .report-mobile-filters .report-filterbar { border-top: 1px solid var(--line); border-bottom: 0; }
  .report-mobile-nav { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
  .report-mobile-nav label { margin: 0; white-space: nowrap; font-size: 11px; }
  .report-mobile-nav select { padding: 8px; font-size: 12px; }
  .report-heading { padding: 17px 20px; }
  .report-heading h2 { font-size: 17px; }
  .report-filterbar { gap: 10px; padding: 12px 20px; }
  .report-content { padding: 18px 16px; }
}
@media (max-width:520px) {
  .report-heading { padding: 14px; align-items: flex-start; }
  .report-heading-actions { flex-direction: column; gap: 5px; }
  .report-heading-actions .btn { padding: 5px 8px; font-size: 10px; }
  .report-mobile-nav { padding: 9px 14px; }
  .report-filterbar { padding: 10px 14px; }
  .report-filterbar > div:not(.report-date-fields) { flex: 1; min-width: 125px; }
  .report-filterbar select { width: 100%; }
  .report-date-fields { width: 100%; order: 1; }
  .report-date-fields > div { flex: 1; }
  .report-date-fields input { width: 100%; }
  .report-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .report-kpi { padding: 15px; }
  .report-kpi-value { font-size: 22px; }
  .report-more-filters { padding: 12px 14px; }
  .report-block-heading { padding: 14px; flex-wrap: wrap; }
  .report-content { padding: 14px 10px; }
}
