/* WinGestERP | Modernizacao visual compacta v1.0 - somente apresentacao. */
:root {
  --modern-ink:#19364b; --modern-muted:#586d7b; --modern-line:#d9e4ec;
  --modern-bg:#f3f7fa; --modern-blue:#16648b; --modern-green:#147957;
  --modern-radius:10px; --modern-gap:12px;
}
/* Tipografia: limitar apenas conteudo, preservar icones e cabecalho da central. */
body {font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; -webkit-font-smoothing:antialiased;}
body.module-view,body:not(.wg-delphi):not(.wg-layout-ativo){font-size:13px;line-height:1.45;color:var(--modern-ink)}
body.module-view h1,body.module-view main h1,body .tech-wrap h1 {font-size:clamp(20px,1.7vw,26px);font-weight:760;line-height:1.22;letter-spacing:-.025em;overflow-wrap:anywhere}
body.module-view h2,body.module-view main h2,body .tech-card h2 {font-size:clamp(16px,1.25vw,20px);font-weight:730;line-height:1.3;letter-spacing:-.018em;overflow-wrap:anywhere}
body.module-view h3,body .tech-card h3 {font-size:15px;line-height:1.3;overflow-wrap:anywhere}
body.module-view p,body .tech-wrap p{line-height:1.5}
body.module-view > main {padding:16px 18px!important;min-width:0}
body.module-view>main>header{margin-bottom:13px!important}
body.module-view section {padding:16px!important;margin-bottom:14px;border-radius:10px}
body.module-view .cards{gap:12px}
body.module-view .grid{gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
body.module-view .module-bar{min-height:40px;padding:5px 16px}
/* Campos e formularios: respeitar larguras e minimizar sobreposicoes. */
body.module-view :is(input,select,textarea),body .tech-wrap :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0;font-family:inherit;font-size:13px;line-height:1.35}
body.module-view :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select),body .tech-wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select){min-height:38px;padding:7px 10px;margin-top:4px;border-radius:7px}
body.module-view textarea,body .tech-wrap textarea{padding:9px 10px;min-height:72px;margin-top:4px}
body.module-view :is(label,.field-label),body .tech-wrap label{font-size:12px;line-height:1.38;overflow-wrap:anywhere;min-width:0}
body.module-view :is(.grid,.cards,form,fieldset,section),body .tech-wrap :is(.tech-grid,.tech-card,form,fieldset){min-width:0}
body.module-view fieldset,body .tech-wrap fieldset{border:1px solid var(--modern-line);border-radius:9px;padding:14px;margin-bottom:13px}
body.module-view :is(.grid,.cards)>*,body .tech-wrap .tech-grid>*{min-width:0;max-width:100%}
body.module-view :is(input,select,textarea):focus-visible,body .tech-wrap :is(input,select,textarea):focus-visible{outline:2px solid #2b91c2;outline-offset:1px}
/* Botoes com tamanho consistente; preserva cores semanticas customizadas. */
body.module-view :is(button,.btn,input[type="submit"]),body .tech-wrap :is(button,.tech-btn){box-sizing:border-box;min-height:36px;max-width:100%;padding:8px 13px;border-radius:7px;font-size:12px;font-weight:650;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body.module-view :is(button,input[type="submit"]):not(:disabled),body .tech-wrap button:not(:disabled){cursor:pointer}
/* Tabelas compactas: nunca quebrar estruturas de grid em tabelas nativas. */
body.module-view :is(table,.table table),body .tech-wrap table{border-collapse:collapse;font-size:12px}
body.module-view :is(th,td),body .tech-wrap :is(th,td){padding:8px 10px;line-height:1.4;vertical-align:middle}
body.module-view th,body .tech-wrap th{font-size:11px;font-weight:700;letter-spacing:.015em}
body.module-view :is(.table,.table-responsive,.table-wrap),body .tech-wrap :is(.tech-table,.table-responsive){max-width:100%;overflow-x:auto}
/* Cards dos modulos especilizados */
body .tech-wrap{max-width:1500px;margin:14px auto;padding:0 16px}
body .tech-card{padding:16px!important;margin-bottom:14px!important;border-radius:11px!important}
body .tech-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
body .tech-top{padding:13px 20px}
body .tech-top h1{font-size:22px}
body .tech-warning,body .tech-success{padding:10px 12px;margin-bottom:12px}
/* Formulario de tecnicos: privilegia fluxo livre sem sobrescrever grids funcionais. */
body .tech-actions{gap:7px;align-items:center}
/* Corrige textos longos sem truncar dados, layouts responsivos. */
body.module-view :is(.error,.notice,.alert),body .tech-wrap :is(.tech-warning,.tech-success){overflow-wrap:anywhere}
@media(max-width:900px){body.module-view>main{padding:12px!important}body.module-view section{padding:12px!important}body .tech-wrap{padding:0 10px}body .tech-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}}
@media(max-width:640px){body.module-view .grid,body.module-view .cards{grid-template-columns:minmax(0,1fr)}body.module-view :is(input,select,textarea){max-width:100%}body .tech-wrap .tech-grid{grid-template-columns:1fr}body .tech-card{padding:12px!important}}
@media print{body.module-view > main{padding:0!important}body.module-view section,body .tech-card{box-shadow:none!important}}
