/* UzASBO 22.46.3 — legible text in ALL sections; data and calculations untouched. */
:root { --uz-ui-text:15px; --uz-ui-small:13.5px; --uz-ui-table:14px; }
body {font-size:var(--uz-ui-text);line-height:1.45;}

/* Navigation and page chrome: readable even on 100% Windows browser zoom. */
@media(min-width:1100px){#shell .sidebar{width:252px} #shell main{margin-left:252px}}
#shell .brand strong{font-size:16px!important}
#shell .brand small{font-size:13px!important}
#shell .nav-label{font-size:12px!important;letter-spacing:.6px!important}
#shell .nav-link{font-size:14.5px!important;line-height:1.36!important;padding:11px 12px!important}
#shell .version,#shell .operator strong,#shell .operator small{font-size:13px!important}
#shell .breadcrumb{font-size:17px!important}
#shell .connection,#shell .top-period{font-size:13.5px!important}
#shell .eyebrow{font-size:12px!important}
#shell .page-heading h1{font-size:26px!important;line-height:1.28!important}
#shell .page-heading p{font-size:14px!important;line-height:1.45!important}
#shell .heading-actions button{font-size:14px!important;padding:10px 12px!important}
#shell .page-footer,#shell #load-status{font-size:13px!important;line-height:1.45!important}

/* Shared typography for every module: inputs, filters, captions and tables. */
#shell label,#shell .filterbar label,#shell .debt-filters label{font-size:13.5px!important;line-height:1.35!important}
#shell input,#shell select,#shell textarea,#shell .filterbar select,#shell .filterbar input,#shell .debt-filters input,
#shell .table-toolbar select,#shell .table-toolbar input,#shell .home-budget-filters input{font-size:14.5px!important;line-height:1.35!important}
#shell button:not(.icon-button):not(.lb-map-zoom button),#shell .segmented button,#shell .section-tabs button,#shell .home-section-tabs button,
#shell .home-group-tabs button{font-size:14px!important;line-height:1.3!important}
#shell .caption,#shell .note,#shell .notice,#shell .subtle-link,#shell .check-message,
#shell .home-partial-note,#shell .home-source-errors,#shell .load-status,#shell .preview-strip{font-size:13.5px!important;line-height:1.48!important}
#shell h2,#shell .panel-head h2,#shell .wide-card h2,#shell .home-card-heading h2{font-size:18px!important;line-height:1.35!important}
#shell h3,#shell .home-regional-title h3,#shell .home-map-top h3{font-size:16px!important;line-height:1.35!important}
#shell .panel-head p,#shell .home-card-heading p,#shell .module-card p,#shell .empty p,
#shell .status-list li,#shell .history,#shell .rule-top{font-size:13.5px!important;line-height:1.42!important}
#shell .pill,#shell .region-rank,#shell .risk-cell,#shell .bc-chip{font-size:12.5px!important;line-height:1.3!important}
#shell table,#shell .region-table,#shell .home-region-table,#shell .home-plan-table,
#shell .home-form-table,#shell .home-card table{font-size:14px!important;line-height:1.38!important}
#shell table th,#shell .home-region-table th,#shell .home-plan-table th,#shell .home-card .hc-budget-table th,
#shell .home-card .hc-budget-table thead th{font-size:13.5px!important;line-height:1.4!important;padding:10px 9px!important}
#shell table td,#shell .home-card .hc-budget-table td{font-size:14px!important;line-height:1.4!important;padding:9px!important}
#shell .region-name,#shell .home-region-row button,#shell .record-subject,#shell .record-subject strong,
#shell #records-panel .record-subject,#shell #records-panel .record-subject strong{font-size:14px!important;line-height:1.4!important}
#shell .record-subject small,#shell .home-region-row button small,
#shell #records-panel .record-subject small,#shell .risk-cell span:not(.pill){font-size:13px!important;line-height:1.35!important}
#shell .region-table td.num,#shell .home-region-table td.num,#shell .home-plan-table td.num,
#shell .home-plan-table tfoot th.num,#shell .bc-table .num{font-size:15px!important;font-variant-numeric:tabular-nums!important;white-space:nowrap}
#shell .table-toolbar input,#shell .table-toolbar select{height:38px!important}
#shell .pagination,#shell .debt-filters .caption{font-size:13.5px!important}
#shell .grid-two .note,#shell .grid-two .wide-card .note{font-size:14px!important;line-height:1.55!important}
#shell .metric-top,#shell .metric-bottom,#shell .metric-value small{font-size:14px!important;line-height:1.35!important}
#shell .metric-value{font-size:29px!important;line-height:1.17!important}
#shell .score-stats span,#shell .detail-grid small,#shell .findings li{font-size:13.5px!important;line-height:1.4!important}
#shell .detail-grid div,#shell .org-checks label{font-size:14px!important}
#shell .search input{font-size:14.5px!important}
#shell .home-budget-actions button,#shell .home-form-heading button,#shell .home-import-bar button{font-size:14px!important}

/* Home, regions and summary tables. */
#shell .home-scope,#shell .home-scope strong,#shell .home-total .home-total-note,
#shell .home-pending,#shell .home-group-id,#shell .home-group strong,#shell .home-group small,
#shell .home-selection-values small,#shell .home-org-count,#shell .home-table-note,
#shell .home-list-selection,#shell .home-region-details dt,#shell .home-region-details small,
#shell .home-form-heading p,#shell .home-form-account>span,#shell .home-form-account select,
#shell .home-detail-plans small,#shell .home-detail-plans strong>span:last-child{
 font-size:13px!important;line-height:1.4!important;
}
#shell .home-card header h2,#shell .home-plan-heading h2,#shell .home-form-heading h2{font-size:17px!important}
#shell .home-card header p,#shell .hc-main span,#shell .hc-main small,#shell .hc-boxes span,
#shell .hc-boxes small,#shell .hc-source,#shell .hc-staff-lines>div,#shell .hc-mini,#shell .hc-cut-label,
#shell .hc-source button,#shell .hc-main .hc-unit,#shell .home-card footer,
#shell .home-card footer button{font-size:13px!important;line-height:1.4!important}
#shell .hc-main b,#shell .hc-boxes b{font-size:26px!important}
#shell .home-detail-plans strong,#shell .home-selection-values strong{font-size:21px!important}
#shell .home-map-label text{font-size:15px!important}
#shell .home-map-legend,#shell .home-map-legend>a,#shell .home-map-legend>span,
#shell .home-map-legend #home-open-detail,#shell .home-selection>div>span{font-size:13px!important}

/* Light landing dashboard — card subtitles, legends, graphs and risk tables. */
#shell .lb-kpi-head{font-size:13.5px!important;line-height:1.32!important}
#shell .lb-kpi{min-height:160px!important;padding:13px 9px 11px!important}
#shell .lb-kpi strong{font-size:25px!important}
#shell .lb-unit,#shell .lb-kpi>small{font-size:13px!important;line-height:1.35!important}
#shell .lb-panel-heading h3{font-size:16px!important;line-height:1.35!important}
#shell .lb-panel-heading small,#shell .lb-legends{font-size:12.5px!important;line-height:1.35!important}
#shell .lb-axis,#shell .lb-bar-value{font-size:12px!important}
#shell .lb-bar-group{font-size:14px!important}
#shell .lb-bar-sub{font-size:11.5px!important}
#shell .lb-data-hint,#shell .lb-map-foot,#shell .lb-map-foot a,
#shell .lb-status-foot,#shell .lb-map-legend,#shell .lb-map-panel .home-central{font-size:12.5px!important;line-height:1.45!important}
#shell .lb-pie-item b,#shell .lb-pie-item small,#shell .lb-pie-item strong{font-size:13px!important;line-height:1.36!important}
#shell .lb-donut small,#shell .lb-status small,#shell .lb-status>span{font-size:13px!important}
#shell .lb-donut strong{font-size:20px!important}
#shell .lb-map-panel .home-map-label text{font-size:16px!important}
#shell .lb-panel table,#shell .lb-panel th,#shell .lb-panel td,
#shell .lb-link-cell{font-size:13.5px!important;line-height:1.4!important}
#shell .lb-panel .lb-chip,#shell .lb-status-panel .lb-data-hint{font-size:12.5px!important}
#shell .lb-panel-action,#shell .lb-audit-tile span,#shell .lb-audit-tile small{font-size:13px!important}
#shell .lb-audit-tile strong{font-size:25px!important}
#shell .lb-table-wrap{overflow-x:auto;}
#shell .lb-rank-panel table,#shell .lb-ops-panel table{min-width:410px;}

/* Budget 22.46 control workspace: readable 4-column group and risk tables. */
#shell .budget-control-page,#shell .bc-source-note,#shell .bc-empty,#shell .bc-footnote,
#shell .bc-risk-totals,#shell .bc-account-label{font-size:14px!important;line-height:1.5!important}
#shell .bc-metric-title,#shell .bc-metric small,#shell .bc-metric p{font-size:13.5px!important;line-height:1.35!important}
#shell .bc-metric strong{font-size:27px!important}
#shell .bc-panel-head h2{font-size:18px!important}
#shell .bc-panel-head p,#shell .bc-count{font-size:13.5px!important}
#shell .bc-table,#shell .bc-table td{font-size:14px!important;line-height:1.4!important}
#shell .bc-table th{font-size:13.5px!important;line-height:1.4!important}
#shell .bc-table{min-width:1250px!important}
#shell .bc-region button,#shell .bc-source-link{font-size:14px!important}
#shell .bc-region small,#shell .bc-source-link small,#shell .bc-risk-table td small,
#shell .bc-risk-table .bc-risk-title,#shell .bc-risk-table .bc-source-ref,
#shell .bc-review-button{font-size:12.5px!important;line-height:1.4!important}
#shell .bc-chip{font-size:12.5px!important}

/* Readable dialogs, tooltips and login page. */
#dialog,#dialog input,#dialog select,#dialog textarea,#dialog button,
.login-wrap,.login-card input,.login-card button{font-size:14px!important;line-height:1.4!important}
#dialog .detail-grid small,#dialog .history,#dialog .note,#dialog .pill{font-size:13px!important}
#dialog h2{font-size:20px!important}
.login-card p,.login-card label{font-size:14px!important}
#toast{font-size:14px!important}

/* Do not shrink numeric columns to fit: scroll safely when necessary. */
#shell .table-wrap,#shell .home-regional-panel,#shell .bc-table-scroll{min-width:0;}
#shell .table-wrap,#shell .bc-table-scroll{overflow-x:auto;}
@media(max-width:1250px){
 #shell .lb-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
 #shell .lb-analytics-first,#shell .lb-analytics-second{grid-template-columns:repeat(2,minmax(0,1fr));}
 #shell .lb-status-panel,#shell .lb-ops-panel{grid-column:1/-1;}
}
@media(max-width:850px){
 #shell .lb-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
 #shell .lb-analytics-first,#shell .lb-analytics-second{grid-template-columns:minmax(0,1fr);}
 #shell .lb-status-panel,#shell .lb-ops-panel{grid-column:auto;}
}
@media(max-width:540px){#shell .lb-kpis{grid-template-columns:minmax(0,1fr);}}

/* 22.46.4: compact, readable audit drill-down and relocated modules */
.moved-tools { margin-bottom: 14px; }
.moved-tools .modules-grid { margin: 12px 0 8px; }
.moved-tools .module-card { min-height: 126px; }
.risk-scope { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.risk-scope button.active { background:#206bec; color:white; border-color:#206bec; }
.risk-regions table { min-width: 970px; }
.risk-regions .risk-desc { min-width: 260px; max-width: 420px; overflow-wrap:anywhere; line-height:1.4; }
.risk-regions td, .risk-regions th { padding: 11px 13px; font-size: 14px; }
.risk-regions tr.selected { background:#eaf3ff; }
.risk-drill-intro { margin: 14px 0; }
.risk-findings { display:flex; flex-wrap:wrap; gap:9px; margin-top:10px; }
.risk-findings button { display:inline-flex; align-items:center; gap:12px; max-width:100%; white-space:normal; text-align:left; }
.risk-findings strong { color:#ba3030; }
@media(max-width:750px) {.risk-regions table {min-width:890px;} .moved-tools .panel-head{display:block;}}

/* Permanent risk register: accessible responsive layout */
.persistent-risk-stats{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:14px 0}
.persistent-risk-stats>div{background:#f2f7ff;border:1px solid #dae5f4;border-radius:9px;padding:12px 16px;display:flex;flex-direction:column;gap:5px}
.persistent-risk-stats small{font-size:14px;color:#4c627e}.persistent-risk-stats strong{font-size:25px;color:#153b72}
.persistent-risk-panel .table-wrap{overflow-x:auto}.persistent-risk-panel td,.persistent-risk-panel th{font-size:14px;vertical-align:middle}
@media(max-width:940px){.persistent-risk-stats{grid-template-columns:repeat(2,minmax(140px,1fr))}}
