/* Compact reports: calculations and source data are unchanged. */
#reportsView{min-width:0;max-width:100%}
#reportsView .report-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:10px 0!important;align-items:end!important}
#reportsView .report-actions label{display:grid;gap:4px;color:#1f2937}
#reportsView .report-actions button,#reportsView .report-actions select{min-height:42px!important;white-space:normal!important;line-height:1.35!important}
#reportsView #managerialReportHeader{padding:14px 16px!important;margin:8px 0!important}
#reportsView #managerialReportHeader h2{font-size:19px!important;margin:4px 0!important}
#reportsView #managerialReportHeader .managerial-totals{display:none!important}
#reportsView #weeklyReportSummary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:10px 0!important}
#reportsView #weeklyReportSummary .cash-card{min-height:0!important;padding:12px!important;border-radius:9px!important}
#reportsView #weeklyReportSummary .cash-card strong{font-size:22px!important}
#reportsView #weeklyReportSummary .cash-card span{font-size:13px!important}
#reportsView #weeklyReportSummary .cash-card small{font-size:12px!important;line-height:1.4!important}
#reportsView .report-compact-hint{font-size:13px;color:#4b5563;margin:10px 0}
#reportsView .compact-report-section{display:block;margin:8px 0;border:1px solid #cbd5e1;border-radius:9px;background:#fff;min-width:0;overflow:hidden}
#reportsView .compact-report-section>summary{cursor:pointer;padding:14px;color:#1f2937;font-size:15px;font-weight:700;line-height:1.4;min-height:46px;box-sizing:border-box;overflow-wrap:anywhere}
#reportsView .compact-report-section>summary span{float:right;font-weight:400;font-size:12px;color:#4b5563;margin-left:8px}
#reportsView .compact-report-section[open]>summary{border-bottom:1px solid #d1d5db;background:#f3f4f6}
#reportsView .compact-report-section>.panel{margin:0!important;border:0!important;box-shadow:none!important;padding:14px!important;min-width:0}
#reportsView .report-grid{display:block!important}
#reportsView .table-wrap{max-width:100%!important;overflow-x:auto!important}
#reportsView table{font-size:13px!important}
#reportsView td,#reportsView th{padding:8px!important;line-height:1.4!important}
#reportsView .report-page-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:10px 0;color:#374151;font-size:13px}
#reportsView .report-page-controls button{min-height:42px;background:#fff!important;color:#1f2937!important;border:1px solid #9ca3af!important;padding:8px 12px!important}
#reportsView tr[hidden]{display:none!important}
@media(max-width:900px){#reportsView #weeklyReportSummary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){
 #reportsView .report-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
 #reportsView .report-actions label{grid-column:1/-1}
 #reportsView .report-actions button,#reportsView .report-actions select{width:100%!important;min-width:0!important;font-size:14px!important}
 #reportsView #historicalImportBtn{grid-column:1/-1}
 #reportsView #weeklyReportSummary .cash-card strong{font-size:19px!important}
 #reportsView .compact-report-section>summary span{float:none;display:block;margin:3px 0 0}
 #reportsView .panel-title{flex-wrap:wrap!important;gap:8px!important}
 #reportsView .panel-title>*{max-width:100%;min-width:0}
 #reportsView p{font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
 #reportsView input,#reportsView select{font-size:16px!important;max-width:100%;min-width:0}
 #reportsView .table-wrap{overflow-x:visible!important}
 #reportsView table,#reportsView tbody,#reportsView tfoot{display:block!important;width:100%!important;min-width:0!important}
 #reportsView table thead{display:none!important}
 #reportsView tbody>tr,#reportsView tfoot>tr{display:block!important;border:1px solid #d1d5db;border-radius:8px;margin:10px 0;background:#fff;overflow:hidden}
 #reportsView td,#reportsView th{display:grid!important;grid-template-columns:minmax(100px,.75fr) minmax(0,1.25fr);gap:8px;align-items:start;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;border:0!important;border-bottom:1px solid #edf0f3!important;font-size:14px!important}
 #reportsView td[data-label]::before,#reportsView th[data-label]::before{content:attr(data-label);font-weight:700;color:#374151}
 #reportsView td:not([data-label]),#reportsView th:not([data-label]){display:block!important}
 #reportsView tr[hidden]{display:none!important}
 #reportsView .chart-box{height:230px!important;min-height:0!important;max-width:100%}
 #reportsView .report-page-controls{justify-content:space-between}
}
@media print{
 #reportsView .compact-report-section{border:0!important;overflow:visible!important}
 #reportsView .compact-report-section>summary,#reportsView .report-compact-hint,#reportsView .report-page-controls{display:none!important}
 #reportsView tr[hidden]{display:table-row!important}
}

#reportsView .report-page-controls[hidden]{display:none!important}

#reportsView td small{font-size:12px!important;line-height:1.4!important}
