.monthly-report-workspace{min-width:0}
.monthly-report-workspace .page-head{align-items:flex-start;gap:18px}
.monthly-report-period{display:grid;grid-template-columns:140px minmax(220px,1fr) auto;gap:16px;align-items:end;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin:20px 0}
.monthly-report-workspace label{display:grid;gap:7px;min-width:0;font-size:12px;color:var(--muted)}
.monthly-report-workspace :is(input,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.monthly-report-workspace :is(input:not([type=checkbox]),select){font:inherit;min-height:42px;padding:10px 11px;border:1px solid var(--line);border-radius:7px;background:light-dark(#fff,#171b20);color:inherit}
.monthly-report-workspace input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:var(--green)}
.monthly-report-month{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}
.monthly-report-month button{min-width:40px;min-height:40px}
.monthly-report-range{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}
.monthly-report-range .date-controls{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px}
.monthly-report-range .date-controls input[data-date]{min-width:0;width:100%}
.monthly-report-range .date-controls input[data-date-calendar]{width:38px;min-width:38px}
.monthly-report-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.monthly-report-scope{grid-column:1/-1;font-size:12px}
.monthly-report-scope label{display:flex;align-items:center;gap:9px;color:var(--text)}
.monthly-report-tabs{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid var(--line);margin-bottom:20px}
.monthly-report-tabs button{border:0;border-bottom:3px solid transparent;border-radius:7px 7px 0 0;background:transparent;color:var(--muted);padding:12px 14px;min-height:46px}
.monthly-report-tabs button[aria-selected=true]{color:light-dark(#245fa9,#8bb9fb);background:light-dark(#e8f0fc,#25364d);border-bottom-color:light-dark(#245fa9,#8bb9fb)}
.monthly-report-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;font-size:12px;color:var(--muted)}
.monthly-report-caption strong{color:var(--text);font-weight:500}
.monthly-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.monthly-report-metrics .metric{min-width:0}
.monthly-report-metrics strong{overflow-wrap:anywhere}
.monthly-report-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.monthly-report-summary-grid>.panel{min-width:0}
.monthly-report-summary-grid h3{margin-bottom:12px}
.monthly-report-summary-grid .monthly-report-table{border:0;margin:8px 0}
.monthly-report-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:22px 0 12px}
.monthly-report-section-head p{margin:5px 0 0;font-size:12px}
.monthly-report-workspace details{padding:15px 18px;border:1px solid var(--line);border-radius:9px;margin:18px 0;background:var(--panel)}
.monthly-report-workspace details summary{cursor:pointer;font-weight:600;min-height:30px}
.monthly-report-workspace details>.monthly-report-table{margin-top:12px}
.monthly-report-workspace details>.notice{margin-top:12px}
.monthly-report-table{border:1px solid var(--line);border-radius:9px;background:var(--panel);min-width:0}
.monthly-report-table table{width:100%;table-layout:fixed;font-size:12px}
.monthly-report-table th{white-space:normal;font-size:11px;text-transform:none}
.monthly-report-table td{vertical-align:middle;overflow-wrap:anywhere;white-space:normal}
.monthly-report-table td small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.monthly-report-table td:last-child,.monthly-report-table th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.monthly-report-table .report-compact-table td:first-child{width:45%}
.monthly-report-table button{max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
.monthly-report-filters{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) minmax(0,1fr);gap:14px;margin:18px 0}
.monthly-report-pagination{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:12px 0 18px;font-size:12px;color:var(--muted)}
.monthly-report-pagination>div{display:flex;align-items:center;gap:10px}
.monthly-report-workspace button,.monthly-report-workspace .notice{overflow-wrap:anywhere;white-space:normal}
#monthlySnapshotModal .notice{margin:16px 0}
#monthlySnapshotModal .form-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1050px){
 .monthly-report-period{grid-template-columns:130px minmax(0,1fr)}
 .monthly-report-actions{grid-column:1/-1}
}
@media(max-width:720px){
 .monthly-report-summary-grid{grid-template-columns:1fr}
 .monthly-report-filters{grid-template-columns:1fr 1fr}
 .monthly-report-filters>label:first-child{grid-column:1/-1}
 .monthly-report-metrics{grid-template-columns:1fr}
}
@media(max-width:600px){
 .monthly-report-period,.monthly-report-range,.monthly-report-filters{grid-template-columns:1fr}
 .monthly-report-period{padding:14px;gap:16px}
 .monthly-report-actions{justify-content:flex-start}
 .monthly-report-actions>button{flex:1}
 .monthly-report-workspace button{min-height:44px}
 .monthly-report-workspace input:not([type=checkbox]),.monthly-report-workspace select{font-size:16px;min-height:44px}
 .monthly-report-tabs button{padding:10px 12px}
 .monthly-report-table{padding:0 12px;overflow:visible}
 .monthly-report-table table,.monthly-report-table tbody,.monthly-report-table tr{display:block;width:100%}
 .monthly-report-table thead{display:none}
 .monthly-report-table tbody tr{padding:12px 0;border-bottom:1px solid var(--line)}
 .monthly-report-table tbody tr:last-child{border-bottom:0}
 .monthly-report-table td{display:flex;width:100%;justify-content:space-between;align-items:flex-start;gap:16px;padding:6px 0;border:0;text-align:right;min-width:0}
 .monthly-report-table td:before{content:attr(data-label);font-size:11px;color:var(--muted);text-align:left;flex:0 0 31%}
 .monthly-report-table td.report-identity{display:block;text-align:left;padding:3px 0 9px;width:100%}
 .monthly-report-table td.report-identity:before{display:none}
 .monthly-report-table td.report-identity button{min-height:32px;padding:3px 0}
 .monthly-report-table .report-compact-table td{width:100%}
 .monthly-report-pagination>div{flex-wrap:wrap}
 .monthly-report-summary-grid .monthly-report-table{padding:0}
 .monthly-report-workspace details{padding:13px}
}
@media(max-width:380px){
 .monthly-report-month{grid-template-columns:1fr 1fr}
 .monthly-report-month input{grid-column:1/-1;grid-row:1}
 .monthly-report-month button{grid-row:2}
}
