/* Compact reporting workspace; all rules stay within the Reports page. */
.report-page { display: grid; gap: 16px; min-width: 0; }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.report-heading h1 { font-size: 1.65rem; line-height: 1.2; margin: 0; }
.report-heading p { color: var(--muted); font-size: .8rem; margin: 5px 0 0; }
.report-heading .topbar-actions button { padding: 9px 13px; font-size: .75rem; }
.report-workspace.card { padding: 0; overflow: hidden; border-radius: 16px; min-width: 0; }
.report-toolbar { display: grid; grid-template-columns: minmax(155px,1fr) minmax(130px,.8fr) minmax(150px,1fr) minmax(180px,1.2fr); gap: 12px; padding: 16px 18px 12px; align-items: end; }
.report-page label { min-width: 0; display: grid; gap: 5px; margin: 0; color: var(--muted); font-size: .69rem; font-weight: 600; }
.report-page input, .report-page select { width: 100%; min-width: 0; font-size: .78rem; padding: 8px 10px; min-height: 37px; border-radius: 8px; }
.report-page button { font-size: .75rem; padding: 8px 12px; box-shadow: none; border-radius: 8px; }
.report-page button:hover { transform: none; }
.report-custom-dates { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 0 18px 12px; font-size: .72rem; }
.report-custom-dates > span { padding-bottom: 9px; }
.report-custom-dates label { width: 155px; }
.report-filter-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; align-items: center; }
.report-status-tabs, .report-filter-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.report-status-tabs button { background: transparent; color: var(--muted); border: 1px solid transparent; padding: 6px 9px; font-size: .72rem; }
.report-status-tabs button.selected { background: var(--brand); color: var(--panel-strong); }
.report-status-tabs button:not(.selected):hover { border-color: var(--line); color: var(--ink); }
.report-filter-actions button { padding: 6px 9px; font-size: .72rem; }
.report-filter-actions .report-reset { background: transparent; color: var(--muted); }
.report-filter-count { padding: 1px 5px; border-radius: 4px; background: var(--brand); color: var(--panel-strong); margin-left: 3px; }
.report-advanced { border-top: 1px solid var(--line); padding: 14px 18px; background: rgba(127,127,127,.035); }
.report-advanced[hidden] { display: none; }
.report-primary-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; align-items: end; }
.report-date-note { margin: 0; font-size: .75rem; color: var(--muted); }
.report-stat-strip { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-block: 1px solid var(--line); padding: 12px 10px; background: rgba(127,127,127,.04); }
.report-stat-strip > div { display: flex; justify-content: center; gap: 7px; align-items: baseline; padding: 0 8px; border-right: 1px solid var(--line); }
.report-stat-strip > div:last-child { border: 0; }
.report-stat-strip strong { font-size: 1.1rem; line-height: 1.2; color: var(--ink); }
.report-stat-strip span { font-size: .69rem; color: var(--muted); }
.report-stat-strip .report-delayed strong { color: var(--danger, #c35646); }
.report-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.report-result-heading h2 { margin: 0; font-size: 1rem; }
.report-result-heading p { margin: 5px 0 0; font-size: .69rem; color: var(--muted); }
.report-export-buttons { display: flex; align-items: end; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.report-export-buttons label { min-width: 100px; }
.report-table.item-table-scroll { margin: 0; max-height: 560px; overflow: auto; }
.report-table table { width: 100%; font-size: .76rem; }
.report-page .report-table th { position: sticky; top: 0; background: var(--panel-strong); z-index: 1; white-space: nowrap; font-size: .69rem; font-weight: 700; }
.report-page .report-table th, .report-page .report-table td { padding: 10px 13px; }
.report-table td { min-width: 80px; max-width: 320px; overflow-wrap: anywhere; vertical-align: middle; line-height: 1.4; }
.report-table tbody tr:hover { background: rgba(127,127,127,.05); }
.report-table td.report-empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.report-export-status { margin: 0; padding: 0 18px 10px; font-size: .75rem; }
.report-export-status:empty { display: none; }
.report-range-error { margin: 0; padding: 10px 18px; color: var(--danger, #c35646); font-size: .8rem; }
.report-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; font-size: .68rem; color: var(--muted); }
.report-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.report-pagination button { padding: 6px 9px; font-size: .68rem; }
.report-definitions { padding: 10px 18px; border-top: 1px solid var(--line); font-size: .73rem; color: var(--muted); line-height: 1.6; }
.report-definitions summary { cursor: pointer; }
.report-definitions p { margin: 8px 0; }
.report-export-dialog { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--panel-strong); color: var(--ink); text-align: center; box-shadow: 0 24px 90px rgba(0,0,0,.22); animation: export-enter .2s ease-out; }
.report-export-dialog::backdrop { background: rgba(15,30,35,.48); backdrop-filter: blur(5px); }
.report-export-art { width: 76px; height: 76px; position: relative; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 24px; background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand); }
.report-export-art svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.report-export-orbit { position: absolute; inset: -5px; border: 2px solid transparent; border-top-color: var(--brand); border-right-color: var(--brand); border-radius: 50%; animation: export-spin 1.4s linear infinite; }
.report-export-check { display: none; position: absolute; right: -5px; bottom: -3px; background: var(--success); color: white; width: 28px; height: 28px; border-radius: 50%; place-items: center; font-weight: 800; border: 3px solid var(--panel-strong); }
.report-export-kicker { color: var(--brand); letter-spacing: .13em; font-size: .65rem; font-weight: 800; }
.report-export-dialog h2 { font-size: 1.35rem; line-height: 1.3; margin: 10px 0 8px; }
.report-export-name { font-size: .82rem; font-weight: 700; margin: 0 0 14px; }
#export-dialog-message { min-height: 3.2em; font-size: .8rem; line-height: 1.65; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.report-export-loader { margin: 22px 0 14px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--line); }
.report-export-loader span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--brand); animation: export-slide 1.3s ease-in-out infinite alternate; }
.report-export-steps { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0 0 24px; font-size: .68rem; color: var(--muted); }
.report-export-steps li.active { color: var(--brand); font-weight: 800; }
.report-export-dialog button { width: 100%; padding: 11px 16px; font-size: .8rem; }
.report-export-dialog.export-ready .report-export-orbit, .report-export-dialog.export-failed .report-export-orbit { display: none; }
.report-export-dialog.export-ready .report-export-check { display: grid; }
.report-export-dialog.export-ready .report-export-loader span { width: 100%; background: var(--success); animation: none; }
.report-export-dialog.export-failed .report-export-loader span { width: 100%; background: var(--danger, #b44236); animation: none; }
.report-export-dialog.export-failed .report-export-kicker { color: var(--danger, #b44236); }
@keyframes export-spin { to { transform: rotate(360deg); } }
@keyframes export-slide { from { transform: translateX(-30%); } to { transform: translateX(180%); } }
@keyframes export-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .report-export-dialog, .report-export-orbit, .report-export-loader span { animation: none; }
  .report-export-loader span { width: 100%; opacity: .6; }
}
@media (max-width: 1050px) {
  .report-toolbar { grid-template-columns: 1fr 1fr; }
  .report-primary-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-stat-strip > div { flex-direction: column; gap: 2px; align-items: center; }
}
@media (max-width: 650px) {
  .report-heading { align-items: flex-start; }
  .report-heading .topbar-actions { justify-content: flex-end; gap: 5px; }
  .report-heading .topbar-actions button { padding: 7px 9px; font-size: .65rem; }
  .report-heading h1 { font-size: 1.4rem; }
  .report-heading p { font-size: .7rem; }
  .report-toolbar { padding: 12px; gap: 10px; }
  .report-filter-row { padding: 0 12px 12px; }
  .report-filter-actions { margin-left: auto; }
  .report-stat-strip { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 10px 0; gap: 12px 0; }
  .report-stat-strip > div:nth-child(3) { border: 0; }
  .report-primary-filters { grid-template-columns: 1fr 1fr; }
  .report-advanced { padding: 12px; }
  .report-custom-dates { padding: 0 12px 12px; gap: 8px; }
  .report-custom-dates label { flex: 1; width: auto; }
  .report-custom-dates .muted { flex-basis: 100%; padding: 0; }
  .report-result-heading { padding: 12px; flex-wrap: wrap; }
  .report-export-buttons { flex-wrap: wrap; }
  .report-footer { padding: 12px; }
  .report-footer > span { order: 2; }
  .report-definitions { padding: 10px 12px; }
}
