/* SCADA SX readability layer.
   Loaded after the module styles so small operational text remains legible on laptop screens.
   Scope is intentionally limited to SCADA views. */

.app-shell:has(.scada-production-view) .page-heading p{font-size:14px;line-height:1.55}
.scada-production-view{line-height:1.5}
.scada-production-view .button{font-size:13px;line-height:1.25}
.scada-production-view input,.scada-production-view select,.scada-production-view textarea{font-size:14px;line-height:1.35}
.scada-production-view table th,.scada-production-view table td{font-size:13px;line-height:1.45}
.scada-production-view table small{font-size:11.5px}

/* SCADA landing / manual report */
.scada-production-intro p{font-size:15px}
.scada-production-copy b{font-size:16px}
.scada-production-copy small{font-size:13px;line-height:1.55}
.scada-production-card em{font-size:12px}
.scada-manual-breadcrumb{font-size:13px}
.scada-manual-breadcrumb .button{font-size:13px}
.scada-manual-header p{font-size:13.5px;line-height:1.55}
.scada-manual-status{font-size:12px}
.scada-manual-audit{font-size:12.5px;line-height:1.5}
.scada-operation-tabs button{font-size:13.5px}
.scada-manual-section legend{font-size:13.5px}
.scada-manual-field,.scada-shift-identity label{font-size:13.5px}
.scada-manual-control input,.scada-manual-control select,.scada-manual-control textarea,.scada-shift-identity input,.scada-shift-identity select{font-size:14px}
.scada-manual-field:has(.scada-derived-output)>span:first-child::after{font-size:10.5px}
.scada-manual-unit{font-size:11.5px}
.scada-manual-field small{font-size:11.5px;line-height:1.4}
.scada-manual-pair>b{font-size:13.5px}
.scada-scan-panel b{font-size:14px}
.scada-scan-panel span{font-size:11.5px}
.scada-scan-panel p,.scada-scan-panel>small{font-size:12.5px;line-height:1.55}
.scada-manual-message{font-size:13px;line-height:1.5}
.scada-manual-actions-title{font-size:13px}
.scada-manual-confirmed-badge{font-size:12px}

/* Shift closing V2 / source settings */
.scada-v2-header p,.scada-source-header p,.scada-v2-section>header p,.scada-source-section>header p{font-size:12px}
.scada-v2-header h2,.scada-source-header h2{font-size:24px}
.scada-v2-header small,.scada-source-header small{font-size:13.5px;line-height:1.6}
.scada-v2-header>span{font-size:12px}
.scada-v2-picker{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}
.scada-v2-picker label,.scada-v2-chemical-grid label,.scada-v2-note,.scada-v2-correction{font-size:13.5px}
.scada-v2-picker input,.scada-v2-picker select,.scada-v2-chemical-grid input,.scada-v2-note textarea,.scada-v2-correction input{font-size:14px}
.scada-v2-coverage b{font-size:14.5px}
.scada-v2-coverage span{font-size:12.5px;line-height:1.5}
.scada-v2-section>header h3,.scada-source-section>header h3{font-size:17.5px}
.scada-v2-section>header>span{font-size:12.5px;line-height:1.45}
.scada-v2-meter h4{font-size:15.5px}
.scada-v2-meter header p{font-size:11.5px;line-height:1.45}
.scada-v2-required{font-size:10.5px}
.scada-v2-meter-grid label{font-size:12.5px}
.scada-v2-input input{font-size:14px}
.scada-v2-input>span{font-size:11.5px}
.scada-v2-resolved>span{font-size:12.5px}
.scada-v2-resolved>b{font-size:14.5px}
.scada-v2-meter>footer .button{font-size:12.5px}
.scada-v2-nochange,.scada-v2-ok,.scada-v2-row-message{font-size:12px}
.scada-v2-source{font-size:10.5px;padding:5px 9px}
.scada-v2-final-message,.scada-v2-loading{font-size:13px;line-height:1.5}
.scada-source-current-grid span,.scada-source-url>span{font-size:11.5px}
.scada-source-current-grid b{font-size:13px}
.scada-source-code,.scada-source-url code{font-size:11.5px!important;line-height:1.5}
.scada-source-empty b{font-size:14px}
.scada-source-empty span{font-size:12.5px}
.scada-source-form>label{font-size:13.5px}
.scada-source-form input,.scada-source-form select{font-size:14px}
.scada-source-form>p{font-size:12.5px;line-height:1.6}
.scada-source-testing,.scada-source-error,.scada-source-test-pass{font-size:12.5px;line-height:1.5}
.scada-source-test-pass b,.scada-source-scan-pass>b{font-size:13.5px}
.scada-source-scan-pass{font-size:12.5px;line-height:1.5}
.scada-source-scan-pass small{font-size:11.5px}
.scada-source-scan-stats strong{font-size:15px}

/* Production / chemical summary */
.scada-output-header p,.scada-production-summary header p{font-size:12.5px}
.scada-output-header h2{font-size:24px}
.scada-output-header>span,.scada-output-note,.scada-output-message{font-size:13px;line-height:1.55}
.scada-output-controls label{font-size:13.5px}
.scada-output-controls input,.scada-output-controls select{font-size:14px}
.scada-output-section h3,.scada-production-summary header h3{font-size:18px}
.scada-output-state{font-size:11.5px}
.scada-production-kpi h4{font-size:13px}
.scada-production-kpi strong{font-size:22px}
.scada-kpi-comparison,.scada-kpi-comparison small,.scada-production-summary footer{font-size:12px}

/* Analysis & alerts: raise only the tiny metadata; keep the large hero/KPI sizes intact. */
.scada-alert-eyebrow{font-size:13px}
.scada-alert-controls label>span{font-size:12.5px}
.scada-alert-controls input,.scada-alert-controls select,.scada-alert-controls .button{font-size:14px}
.scada-alert-kpi span{font-size:12px}
.scada-alert-kpi small{font-size:11.5px}
.scada-alert-section-head>div>span{font-size:11.5px}
.scada-alert-section-head h3{font-size:18px}
.scada-alert-live,.scada-alert-source-state,.scada-alert-ok-badge,.scada-alert-count,.scada-alert-mini-label{font-size:12px}
.scada-alert-status-grid span{font-size:12px}
.scada-alert-status-grid small{font-size:11px}
.scada-alert-area,.scada-alert-level{font-size:11px}
.scada-alert-card h4{font-size:15.5px}
.scada-alert-reading span{font-size:12.5px}
.scada-alert-condition,.scada-alert-note{font-size:12.5px;line-height:1.55}
.scada-alert-card footer{font-size:11.5px}
.scada-alert-empty p{font-size:13px}
.scada-alert-compare-grid article>span{font-size:11px}
.scada-alert-compare-grid h4{font-size:14.5px}
.scada-alert-compare-grid small{font-size:11px}
.scada-alert-compare-value,.scada-alert-delta{font-size:12.5px}
.scada-alert-trend-card header span{font-size:10.5px}
.scada-alert-trend-card h4{font-size:13px}
.scada-alert-trend-card header small,.scada-alert-trend-card footer{font-size:10px}
.scada-alert-chart-empty{font-size:11px}
.scada-alert-source-card span{font-size:10.5px}
.scada-alert-source-card strong{font-size:12.5px}
.scada-alert-rule-row>div:first-child>span{font-size:10.5px}
.scada-alert-rule-row strong{font-size:13px}
.scada-alert-rule-row small{font-size:10.5px}
.scada-alert-rule-range>b{font-size:12px}
.scada-alert-rule-range span{font-size:10.5px}

/* Zalo report */
.scada-zalo-context-main,.scada-zalo-context-side{font-size:13.5px}
.scada-zalo-scan-policy,.scada-zalo-readiness{font-size:12px}
.scada-zalo-scan-message{font-size:12.5px;line-height:1.5}
.scada-zalo-header p,.scada-zalo-recent header p{font-size:13px}
.scada-zalo-header small,.scada-zalo-recent header small{font-size:12.5px}
.scada-zalo-alert-head p{font-size:12px}
.scada-zalo-alert-head h3{font-size:17px}
.scada-zalo-alert-count{font-size:12px}
.scada-zalo-source-notice header b{font-size:12px}
.scada-zalo-source-notice header small{font-size:11.5px}
.scada-zalo-source-notice section b{font-size:12px}
.scada-zalo-source-notice section span{font-size:13px}
.scada-zalo-alert-card header small{font-size:11.5px}
.scada-zalo-alert-card em{font-size:11px}
.scada-zalo-alert-card p{font-size:13px;line-height:1.5}
.scada-zalo-alert-card footer{font-size:12px}
.scada-zalo-alert-option label{font-size:13px}
.scada-zalo-alert-option small{font-size:12.5px}
.scada-zalo-card>header p{font-size:13px}
.scada-zalo-ready{font-size:12px}
.scada-zalo-message-label{font-size:13px}
.scada-zalo-message-label em{font-size:11px}
.scada-zalo-message{font-size:15px;line-height:1.7}
.scada-zalo-meta small,.scada-zalo-card>footer small{font-size:12px}
.scada-zalo-alert-note,.scada-zalo-ok-note{font-size:13px}
.scada-zalo-recent-item b{font-size:14px}
.scada-zalo-recent-item small{font-size:12px}
.scada-zalo-recent-item em{font-size:11px}

@media(max-width:820px){
  .scada-v2-picker{grid-template-columns:1fr}
  .scada-production-view .button{font-size:13px}
}
