/* Scoped to reports: shared section/form spacing is meant for product dialogs. */
.report-queue-panel,.report-history{margin-top:20px;min-width:0}
.report-queue-panel .section-heading,.report-history .section-heading{margin:0;padding:20px;align-items:center;flex-wrap:wrap;gap:16px}
#queue-filter,#report-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}
#queue-filter label,#report-filter label{display:grid;gap:6px;font-size:12px;margin:0}
#queue-filter input,#report-filter input{width:110px}
#queue-filter input,#queue-filter select,#report-filter input{margin:0;height:38px}
#queue-filter .button,#report-filter .button{height:38px}
#queue-summary{margin:8px 0 0;color:var(--muted,#676d65);font-size:12px}
.queue-help{margin:0;padding:0 20px 18px;max-width:1000px}
#queue-empty,#report-empty{padding:24px 20px;margin:0;color:var(--muted)}
.report-queue-panel table{table-layout:fixed;min-width:920px}
.report-history table{table-layout:fixed;min-width:850px}
.report-queue-panel th:nth-child(1){width:32%}.report-queue-panel th:nth-child(2){width:18%}.report-queue-panel th:nth-child(3){width:17%}.report-queue-panel th:nth-child(4){width:18%}.report-queue-panel th:nth-child(5){width:15%}
.report-history th:first-child{width:42%}.report-history th:nth-child(2){width:11%}.report-history th:nth-child(3){width:16%}.report-history th:nth-child(4){width:19%}.report-history th:last-child{width:12%}
.report-queue-panel td,.report-history td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding-top:14px;padding-bottom:14px}
.report-queue-panel .subtext,.report-history .subtext{max-width:none}
.report-queue-panel td:first-child strong{display:block;font-weight:600;line-height:1.6}
.report-queue-panel td:last-child .button{display:inline-block;margin:0 6px 6px 0;padding:6px 10px}
.report-queue-panel td:last-child a{display:block;margin-bottom:6px}
.report-queue-panel .tag[data-status="running"]{color:#245e8d;background:#eaf3fb;border-color:#c7ddec}
.report-queue-panel .tag[data-status="needs_attention"],.report-queue-panel .tag[data-status="cancel_requested"]{color:#985825;background:#fff3e4;border-color:#ecd2b3}
.report-queue-panel .tag[data-status="complete"]{color:#2e6952;background:#e4f0e7}
.report-queue-panel .tag[data-status="cancelled"]{color:#727872;background:#f0f0ec;border-color:#dedfd8}
.queue-error{color:#a13d32;font-size:12px;margin-top:6px}
#report-feedback{margin:0 0 14px}#report-feedback:empty{display:none}#report-feedback.error{color:#a13d32}
.report-viewer{width:100%;height:calc(100vh - 220px);min-height:600px;border:1px solid var(--line,#ddd);background:white}
.report-view-meta{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:16px}.report-view-actions{display:flex;gap:12px;flex-wrap:wrap}.report-view-title{overflow-wrap:anywhere}
@media(max-width:650px){
 .report-viewer{height:75vh;min-height:500px}
 .report-queue-panel .section-heading,.report-history .section-heading{padding:16px;align-items:flex-start}
 #queue-filter,#report-filter{width:100%}#queue-filter label{flex:1;min-width:95px}#queue-filter input,#queue-filter select{width:100%}
 .queue-help{padding:0 16px 16px}
 .report-queue-panel .pagination,.report-history .pagination{flex-wrap:wrap;font-size:12px;gap:10px}
}
