/* RAWA 2.0 — tipografia de referencia: limpa, equilibrada e legivel.
   Fonte de sistema (sem requisicao externa/Google Fonts): PWA permanece offline.
   Conservar logotipos, iconografia, tamanhos de status e hierarquia atual. */
:root {
    --rawa-ui-type: "Segoe UI Variable Text", "Segoe UI Variable", "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
html, body,
#app-view, #app-view :is(button, input, select, textarea),
.modal-backdrop, .modal-backdrop :is(button, input, select, textarea),
#login-view, #login-view :is(button, input, select, textarea) {
    font-family: var(--rawa-ui-type) !important;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Titulo com menos peso de preto; valores financeiros mantem destaque. */
#app-view .rawa-module-page :is(h1, h2, h3, h4, .hero-row h2, .panel-header h3),
.modal-backdrop :is(.modal-header h3, .os-detail-section h4, .client-history-modal h4) {
    letter-spacing: -.019em;
    line-height: 1.28;
    font-weight: 650 !important;
}
#app-view .rawa-module-page :is(.table-main, .module-card strong, .data-panel strong),
.modal-backdrop :is(.client-history-kpis strong, .rawa-detail-readonly-grid strong) {
    letter-spacing: -.008em;
}
#app-view .rawa-module-page :is(.data-table td, .data-table th, .table-sub, .module-card p),
.modal-backdrop :is(.data-table td, .data-table th, .client-history-help, .rawa-detail-menu-items button) {
    line-height: 1.5;
}
/* Labels compactas nao usam espacamento excessivo entre letras. */
#app-view .rawa-module-page :is(.field > span, .table-main),
.modal-backdrop :is(.field > span, .field > label) {
    letter-spacing: .005em;
}
