
/* JSE Rastreamento: camada final de contraste e responsividade para TODAS as páginas.
   Temas independentes da preferência do sistema, persistidos por jse-theme-toggle.js. */
html[data-jse-theme="dark"]{
 color-scheme:dark;--jse-page:#091522;--jse-surface:#14273d;--jse-surface-2:#1b3550;
 --jse-text:#f1f7ff;--jse-muted-text:#bed0e1;--jse-stroke:#46647f;
 --jse-field:#0b1d30;--jse-field-text:#fff;--jse-head:#19354f;
 --jse-link:#8cd5ff;--jse-button:#137fc1;--jse-button-text:#fff;
}
html[data-jse-theme="light"]{
 color-scheme:light;--jse-page:#f0f5fa;--jse-surface:#fff;--jse-surface-2:#e7f0f8;
 --jse-text:#152c44;--jse-muted-text:#425b71;--jse-stroke:#b8cbdc;
 --jse-field:#fff;--jse-field-text:#14283c;--jse-head:#e2eef8;
 --jse-link:#075e9c;--jse-button:#116da9;--jse-button-text:#fff;
}
html[data-jse-theme] {background:var(--jse-page)!important;overflow-x:clip}
html[data-jse-theme] body{background:var(--jse-page)!important;color:var(--jse-text)!important;max-width:100%;overflow-x:clip}
html[data-jse-theme] :is(main,section,article,aside,form,nav,div){min-width:0}
html[data-jse-theme] :is(.panel,.card,.store-card,.product,.product-card,.stat,.metric,.box,.modal-content,.dashboard-card,.jse-admin-shortcuts){
 background:var(--jse-surface)!important;color:var(--jse-text)!important;
 border-color:var(--jse-stroke)!important;
}
html[data-jse-theme] :is(.panel,.card,.store-card,.product,.product-card,.stat,.metric,.dashboard-card) :is(h1,h2,h3,h4,p,strong,span,li){
 color:var(--jse-text)!important;
}
html[data-jse-theme] :is(h1,h2,h3,h4,label,legend){color:var(--jse-text)!important}
html[data-jse-theme] :is(p,.muted,.hint,.subtitle,small,footer,footer a){color:var(--jse-muted-text)!important}
html[data-jse-theme] :is(input,select,textarea){
 background:var(--jse-field)!important;color:var(--jse-field-text)!important;
 border:1px solid var(--jse-stroke)!important;max-width:100%;
}
html[data-jse-theme] :is(input,textarea)::placeholder{color:var(--jse-muted-text)!important;opacity:1}
html[data-jse-theme] :is(button,.button,[role="button"]){
 color:var(--jse-button-text)!important;overflow-wrap:normal;word-break:normal;
}
html[data-jse-theme] :is(button,.button):not(.secondary):not(.danger):not(.alt):not(.ghost):not(.active){
 background:var(--jse-button)!important;border-color:var(--jse-button)!important;
}
html[data-jse-theme] :is(button.secondary,button.alt,button.ghost){
 background:var(--jse-surface-2)!important;color:var(--jse-text)!important;
 border:1px solid var(--jse-stroke)!important;
}
html[data-jse-theme] a:not(.button){color:var(--jse-link)}
html[data-jse-theme] :is(th,thead td){background:var(--jse-head)!important;color:var(--jse-text)!important}
html[data-jse-theme] td{color:var(--jse-text)!important;border-color:var(--jse-stroke)!important}
html[data-jse-theme] :is(.scroll,.table-responsive,.table-wrap){overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
html[data-jse-theme] table{max-width:none;white-space:normal}
html[data-jse-theme] #tabs{min-width:0!important;max-width:100%!important}
html[data-jse-theme] #tabs > *{word-break:normal!important;overflow-wrap:break-word!important;writing-mode:horizontal-tb!important}
html[data-jse-theme] #jseThemeButton{white-space:nowrap!important;min-width:0}
html[data-jse-theme] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #54a8ee!important;outline-offset:2px}
@media(max-width:800px){
 html[data-jse-theme] :is(main,.container,.content,#app){max-width:100%;min-width:0}
 html[data-jse-theme] :is(.grid,.cards,.products,.stats){min-width:0}
 html[data-jse-theme] :is(table){display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
 html[data-jse-theme] :is(th,td){white-space:nowrap}
 html[data-jse-theme] :is(button,.button){max-width:100%}
 html[data-jse-theme] #tabs{grid-template-columns:1fr!important}
 html[data-jse-theme] #tabs > *{width:100%!important;min-height:44px!important}
}
