/* Corrige menus esmagados e contraste em ambos os temas. Carregado por último. */
html,body{max-width:100%;overflow-x:hidden}
#app,#app *{box-sizing:border-box}
#app #tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important}
#app #tabs>*{display:flex!important;justify-content:center;align-items:center;min-width:0!important;width:auto!important;max-width:none!important;min-height:44px!important;padding:12px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;line-height:1.35!important;letter-spacing:normal!important;text-align:center!important;text-decoration:none!important;border-radius:10px!important;font-size:14px!important}
#app .jse-admin-shortcuts{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:10px!important}
#app .jse-admin-shortcuts a{min-width:0!important;max-width:100%!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important;writing-mode:horizontal-tb!important;line-height:1.4!important;color:#fff!important}
#app button,#app .jse-admin-shortcuts a{color:#fff!important}
#app #tabs button:not(.active),#app #tabs a{background:#203b57!important;color:#f3f9ff!important;border:1px solid #416583!important}
#app #tabs button.active{background:#087bc3!important;color:#fff!important}
#app #content{min-width:0!important;max-width:100%!important;overflow-wrap:break-word}
#app .scroll{display:block!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
#app table{min-width:580px!important;width:100%!important}
#app table th,#app table td{white-space:nowrap!important;word-break:normal!important}
#app .panel,#app .grid>*{min-width:0!important}
#app button:not(:disabled){opacity:1}
#jse-menu-toggle{display:none!important;width:100%;margin:0 0 12px;padding:13px 16px!important;border-radius:12px!important;background:#176da9!important;color:#fff!important;text-align:left!important;font-weight:750!important;cursor:pointer}
html[data-jse-theme="light"] #app #content,html[data-theme="light"] #app #content{background:#fff!important;color:#192d43!important}
html[data-jse-theme="light"] #app #content :is(h1,h2,h3,h4,th,label,strong),html[data-theme="light"] #app #content :is(h1,h2,h3,h4,th,label,strong){color:#172b42!important}
html[data-jse-theme="light"] #app #content :is(p,small,.muted),html[data-theme="light"] #app #content :is(p,small,.muted){color:#41566d!important}
html[data-jse-theme="light"] #app #content thead th,html[data-theme="light"] #app #content thead th{background:#e7f1f9!important}
html[data-jse-theme="light"] #app #content td,html[data-theme="light"] #app #content td{color:#20374f!important}
@media(max-width:900px){#app #tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
  main{width:100%!important;max-width:100%!important;padding:0 12px!important}
  #app #jse-menu-toggle{display:block!important}
  #app #tabs{display:none!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;margin:0 0 14px!important;background:#10273d!important;border:1px solid #345775!important;border-radius:14px!important}
  #app #tabs.jse-menu-open{display:grid!important}
  #app #tabs>*{width:100%!important;min-height:46px!important;text-align:left!important;justify-content:flex-start!important;padding:12px 14px!important}
  #app .jse-admin-shortcuts{grid-template-columns:1fr!important}
  #app .jse-admin-shortcuts a{width:100%!important;min-height:46px!important}
  #app #content{padding:16px!important}
  #app table{min-width:600px!important}
}
