#reports{min-width:0}
#reports .page-head{margin-bottom:14px}
.reports-filter-panel{margin-bottom:18px;padding:15px;border:1px solid var(--line);border-radius:var(--crm-card-radius,18px);background:var(--panel);box-shadow:var(--shadow)}
.reports-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end}
.reports-filter-grid label{min-width:0;gap:6px;color:var(--muted);font-size:12px}
.reports-filter-grid input,.reports-filter-grid select{width:100%;min-width:0;padding:10px 11px;border-radius:var(--crm-control-radius,12px);color:var(--text)}
.reports-custom-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:span 2;min-width:0}
.reports-custom-range[hidden],[data-report-filter-field][hidden]{display:none}
.reports-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.reports-filter-footer p{min-width:0;margin:0;line-height:1.45;overflow-wrap:anywhere}
.reports-status{margin:0 0 18px}
.reports-loading{display:grid;gap:16px;margin-bottom:18px}
.reports-skeleton-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.reports-skeleton-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.reports-skeleton-grid i,.reports-skeleton-panels i{display:block;border-radius:16px;background:linear-gradient(105deg,#EEF2F7 22%,#F8FAFC 42%,#EEF2F7 62%);background-size:220% 100%;animation:reports-shimmer 1.25s linear infinite}
.reports-skeleton-grid i{height:92px}.reports-skeleton-panels i{height:260px}
body.theme-dark .reports-skeleton-grid i,body.theme-dark .reports-skeleton-panels i{background:linear-gradient(105deg,#102039 22%,#172A46 42%,#102039 62%);background-size:220% 100%}
@keyframes reports-shimmer{to{background-position:-220% 0}}
.reports-empty{margin-bottom:18px}
.reports-content{display:grid;gap:18px;min-width:0}
.reports-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.report-kpi{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--shadow);display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
.report-kpi-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--teal-soft);color:#0F766E}
.report-kpi-icon .material-symbols-rounded{font-size:22px}
.report-kpi span,.report-kpi strong,.report-kpi small{display:block;min-width:0;overflow-wrap:anywhere}
.report-kpi span{color:var(--muted);font-size:12px;font-weight:600}.report-kpi strong{margin-top:2px;font-size:25px;line-height:1.15}.report-kpi small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.35}
.reports-primary-grid,.reports-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0}
.report-panel{min-width:0}.report-panel[hidden]{display:none}
.report-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}
.report-panel-head h2{margin:0}.report-panel-head p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.report-chart-wrap{width:100%;min-height:250px;overflow:hidden}
.report-chart-wrap svg{display:block;width:100%;height:auto;min-height:250px;max-height:330px;color:var(--text)}
.report-chart-grid{stroke:var(--line);stroke-width:1}.report-chart-axis{fill:var(--muted);font:11px "Segoe UI",Arial,sans-serif}.report-chart-line{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5}.report-chart-point{stroke:var(--panel);stroke-width:2}.report-chart-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin:4px 0 8px;color:var(--muted);font-size:12px}.report-chart-legend span{display:inline-flex;align-items:center;gap:6px}.report-chart-legend i{width:10px;height:10px;border-radius:50%;background:var(--report-series-colour)}
.report-chart-status{margin:0 0 8px;font-size:12px}.report-chart-data{margin-top:10px}.report-chart-data summary{width:max-content;max-width:100%;cursor:pointer;color:#0F5FDB;font-weight:600}.report-chart-data summary:focus-visible{outline:3px solid var(--crm-focus-ring,#0F766E);outline-offset:3px;border-radius:4px}
.report-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:14px}
.report-table-scroll:focus-visible{outline:3px solid var(--crm-focus-ring,#0F766E);outline-offset:2px}
.report-data-table{min-width:720px}.report-data-table caption{padding:10px 13px;text-align:left;color:var(--muted);font-size:12px}.report-data-table tr{cursor:default}.report-data-table th button{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.report-data-table th button:focus-visible{outline:3px solid var(--crm-focus-ring,#0F766E);outline-offset:3px;border-radius:3px}
.report-status-bars,.report-breakdown-list{display:grid;gap:10px}
.report-status-bar{display:grid;grid-template-columns:minmax(105px,.85fr) minmax(120px,1.7fr) auto;gap:10px;align-items:center;width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font:inherit;text-align:left}
button.report-status-bar{cursor:pointer}button.report-status-bar:hover{border-color:#B8CEDF;background:#F8FCFF}button.report-status-bar:focus-visible{outline:3px solid var(--crm-focus-ring,#0F766E);outline-offset:2px}
.report-status-track{height:9px;border-radius:99px;background:#E7EDF6;overflow:hidden}.report-status-fill{display:block;height:100%;border-radius:inherit;background:var(--teal)}.report-status-value{color:var(--muted);font-size:12px;white-space:nowrap}
body.theme-dark button.report-status-bar:hover{background:#10284A}body.theme-dark .report-status-track{background:#1F3556}
body.theme-dark #reports .panel-link,body.theme-dark .report-workflow-link,body.theme-dark .report-chart-data summary{color:#93C5FD}
.report-metric-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.report-metric{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.report-metric span,.report-metric strong,.report-metric small{display:block}.report-metric span{color:var(--muted);font-size:11px}.report-metric strong{margin-top:4px;font-size:20px}.report-metric small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.report-subsection{margin-top:14px}.report-subsection h3{margin:0 0 9px;font-size:14px}.report-breakdown-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.report-breakdown-row:last-child{border-bottom:0}.report-breakdown-row span{overflow-wrap:anywhere}.report-breakdown-row strong{white-space:nowrap}
.report-workflow-link{border:0;background:transparent;padding:3px 0;color:#0F5FDB;font:inherit;font-weight:600;text-align:left;cursor:pointer}.report-workflow-link:hover{text-decoration:underline;text-underline-offset:3px}.report-workflow-link:focus-visible{outline:3px solid var(--crm-focus-ring,#0F766E);outline-offset:2px;border-radius:3px}
.report-section-empty{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
#reports .panel-link{border:0;background:transparent;padding:4px;color:#0F5FDB;cursor:pointer;font:inherit;font-weight:600;white-space:nowrap}#reports .panel-link:focus-visible{outline:3px solid var(--crm-focus-ring,#0F766E);outline-offset:2px;border-radius:4px}
@media(max-width:1280px){.reports-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){.reports-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-primary-grid,.reports-secondary-grid,.reports-skeleton-panels{grid-template-columns:1fr}.report-chart-wrap{min-height:220px}.report-chart-wrap svg{min-height:220px}}
@media(max-width:620px){.reports-filter-grid,.reports-custom-range,.reports-kpi-grid,.reports-skeleton-grid{grid-template-columns:1fr}.reports-custom-range{grid-column:auto}.reports-filter-footer{align-items:flex-start;flex-direction:column}.reports-filter-footer .btn{width:100%}.report-kpi{padding:14px}.report-panel{padding:15px}.report-panel-head{display:grid}.report-panel-head .panel-link{justify-self:start}.report-status-bar{grid-template-columns:minmax(0,1fr) auto}.report-status-track{grid-column:1/-1;grid-row:2}.report-metric-list{grid-template-columns:1fr}.report-chart-wrap{min-height:200px}.report-chart-wrap svg{min-height:200px}.report-data-table{min-width:660px}}
@media(prefers-reduced-motion:reduce){.reports-skeleton-grid i,.reports-skeleton-panels i{animation:none}}
