#operationalReports { min-width: 0; margin-top: 24px; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
#reportFilters { scroll-margin-top: 90px; }
.report-heading h3 { margin: 4px 0; }
.report-heading p, #reportStatus, .report-budget p { font-size: 13px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.report-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; align-items: end; margin: 18px 0; }
.report-filters label { display: grid; gap: 6px; min-width: 0; font-size: 12px; }
.report-filters input, .report-filters select { box-sizing: border-box; width: 100%; min-width: 0; height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
.report-filters input:focus-visible, .report-filters select:focus-visible, #operationalReports summary:focus-visible { outline: 2px solid var(--accent, #7465df); outline-offset: 3px; }
.report-wide { grid-column: 1 / -1; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.report-actions button, .report-upload { min-height: 42px; }
#operationalReports .report-actions > button, #operationalReports .report-actions > .report-upload { width: auto; flex: 0 1 auto; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 12px; margin: 20px 0; }
.report-cards .metric-card { min-width: 0; padding: 16px; }
.report-cards small { white-space: normal; overflow-wrap: anywhere; }
.report-table-scroll { width: 100%; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
.report-table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-table-scroll th, .report-table-scroll td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); max-width: 280px; overflow-wrap: anywhere; }
.report-table-scroll th { position: sticky; top: 0; background: var(--panel); z-index: 1; white-space: nowrap; }
.report-table-scroll input[type="checkbox"] { width: 24px; height: 24px; }
.report-series { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.report-heatmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; align-content: start; margin-top: 12px; }
.report-heatmap > div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--accent) var(--heat), var(--panel)); font-size: 12px; }
.report-budget { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
#operationalReports summary { cursor: pointer; padding: 10px 0; min-height: 24px; }
.report-filters .report-check { display: flex; align-items: center; align-self: center; }
.report-check input { width: 22px; height: 22px; }
.report-upload { display: inline-flex !important; align-items: center; cursor: pointer; }
@media (max-width: 480px) { #operationalReports .report-actions > button, #operationalReports .report-actions > label { flex: 1 1 140px; justify-content: center; } .report-cards { grid-template-columns: 1fr; } }

#commercialAutomationPanel code { overflow-wrap: anywhere; }
