/* MDRHC V535 — complete Looker-style classified budget reports, public read-only.
   All responsive table scrolling stays inside the section; finance/API logic unchanged. */
.v535-report-container,.v535-report{min-width:0;width:100%;margin:18px 0 0}
.v535-report{overflow:hidden;border:1px solid #d6e6ec;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(10,52,71,.045)}
.v535-report-toolbar{padding:16px 19px;display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,290px) minmax(90px,120px);align-items:end;gap:13px;background:linear-gradient(125deg,#f0fbf8,#f6faff 75%);border-bottom:1px solid #d8e8ee}
.v535-report-toolbar>div>strong{display:block;color:#123c54;font-weight:850;font-size:.97rem;line-height:1.4}
.v535-report-toolbar>div>small{display:block;color:#648194;font-size:.75rem;margin-top:3px}
.v535-report-toolbar label{display:grid;gap:5px;color:#486779;font-size:.72rem;font-weight:800}
.v535-report-toolbar :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:39px;border-radius:10px;border:1px solid #c7d8e5;background:white;color:#123951;padding:8px 10px;font-size:.82rem;outline-offset:2px}
.v535-report-toolbar :is(input,select):focus-visible{outline:2px solid #218e9d;border-color:#218e9d}
.v535-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#bdd9e5 #f3f8fb}
.v535-ledger{width:100%;min-width:1250px;border-collapse:separate;border-spacing:0;text-align:left;font-size:.76rem;font-variant-numeric:tabular-nums;color:#28435a}
.v535-ledger thead th{position:sticky;top:0;background:#e8f2f8;color:#22455e;z-index:1;white-space:nowrap;border-bottom:1px solid #cddfe9;text-transform:uppercase;letter-spacing:.025em}
.v535-ledger :is(th,td){padding:10px 12px;border-right:1px solid #edf3f7;border-bottom:1px solid #e9f0f5;vertical-align:middle}
.v535-ledger :is(th,td):last-child{border-right:0}
.v535-ledger thead th button{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;text-transform:inherit;letter-spacing:inherit;text-align:inherit;cursor:pointer;white-space:nowrap}
.v535-ledger thead th button:hover{color:#0b8795}
.v535-ledger tbody tr:nth-child(even){background:#f6f9fc}
.v535-ledger tbody tr:hover{background:#ebf7f9}
.v535-ledger td:not(:first-child),.v535-ledger tfoot td{text-align:right;white-space:nowrap}
.v535-ledger .v535-label-cell{min-width:230px;max-width:460px;font-variant-numeric:normal;overflow-wrap:anywhere}
.v535-ledger .v535-label-cell .v535-table-drill{border:0;background:transparent;color:#0d647d;text-decoration:none;text-align:left;white-space:normal;line-height:1.48;font-weight:750;padding:3px 0;border-radius:4px;cursor:pointer}
.v535-ledger .v535-label-cell .v535-table-drill:hover,.v535-ledger .v535-label-cell .v535-table-drill:focus-visible{text-decoration:underline;color:#087c89}
.v535-ledger .v535-nodata{text-align:center!important;padding:22px;color:#6d8290}
.v535-ledger .v535-total th,.v535-ledger .v535-total td{padding:12px;background:#e3f4f0;color:#124b55;font-size:.78rem;font-weight:900;border-top:2px solid #82c8b8;border-bottom:0}
.v535-percent{display:inline-block;padding:5px 8px;border-radius:7px;min-width:68px;text-align:center;font-weight:850}
.v535-percent.green{background:#d7f2e2;color:#096b42}.v535-percent.olive{background:#f2f3c5;color:#65710a}.v535-percent.yellow{background:#ffe6aa;color:#895708}.v535-percent.red{background:#ffe0e2;color:#b52237}.v535-percent.gray{background:#edf1f5;color:#6c7780}
.v535-report-bottom{padding:12px 18px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;color:#607b8e;font-size:.8rem}
.v535-report-bottom nav{display:flex;gap:8px;align-items:center}.v535-report-bottom nav span{min-width:50px;text-align:center}
.v535-report-bottom button{padding:8px 11px;border-radius:10px;border:1px solid #cfdee8;color:#254d66;background:#f1f7fa;font-weight:800;cursor:pointer}
.v535-report-bottom button:disabled{opacity:.35;cursor:not-allowed}
.v535-report-explain{margin:0;padding:0 18px 15px;color:#648193;line-height:1.55;font-size:.73rem}
.v535-drill-panel .v535-report{margin-top:20px}
.v535-drill-panel .v535-drill-preview{max-height:310px}
.v518-chart-section{min-width:0}
.v518-chart-section .v535-report{margin-top:24px}
#v516-modal-table .v535-report{margin-bottom:12px}
.v516-full-modal{width:min(98vw,1700px);max-height:95dvh}
#v516-modal-chart{max-height:40dvh}
.v534-report-card{min-width:0}
.v534-report-card .v535-report{margin-top:16px}
@media (max-width:900px){.v535-report-toolbar{grid-template-columns:1fr 1fr}.v535-report-toolbar>div{grid-column:1/-1}.v535-ledger{font-size:.73rem}}
@media (max-width:580px){.v535-report-toolbar{padding:13px;gap:8px}.v535-report-toolbar label{min-width:0}.v535-ledger :is(th,td){padding:9px 10px}.v535-report-bottom{flex-direction:column;align-items:flex-start;padding:12px}.v535-report-explain{padding:0 12px 12px}.v535-ledger{min-width:1100px}}
@media print{@page{size:A4 landscape;margin:12mm}.v535-report{box-shadow:none;border-color:#d4e0e6;break-inside:auto}.v535-report-toolbar label,.v535-report-bottom nav,.v535-report-explain{display:none!important}.v535-report-toolbar{display:block}.v535-scroll{overflow:visible}.v535-ledger{min-width:0;font-size:7pt}.v535-ledger :is(th,td){padding:4px 5px}.v535-report-bottom{padding:5px}.v535-ledger thead{display:table-header-group}.v535-ledger tfoot{display:table-footer-group}.v535-ledger tr{break-inside:avoid}}
