:root{--marinho:#0b2545;--marinho-2:#13315c;--marinho-3:#1d4477;--fundo:#f3f6fa;--texto:#13223a;--linha:#dde3ec;--primary:#13315c;--brand:#13315c;--ink:#13223a;--accent:#13315c;color-scheme:light}
body{background:#f3f6fa;color:#13223a;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.ths-sidebar{width:264px!important;background:#0b2545!important;color:#d6e0ee!important;overflow-y:auto;z-index:20;display:flex;flex-direction:column;height:100dvh;top:0;left:0;padding:0!important;border:0!important}
body.ths-standalone{padding-left:264px}body.ths-standalone>.ths-sidebar{position:fixed}
.ths-global-nav{padding:20px 14px 16px;border-bottom:1px solid #ffffff20;flex:none}
.ths-home{display:flex!important;align-items:center;flex-direction:column;gap:10px;padding:12px;background:#13315c;border:1px solid #ffffff20;border-radius:10px;text-decoration:none!important;color:white!important}
.ths-home img{width:180px;max-height:85px;object-fit:contain}.ths-home span{font-size:10px;letter-spacing:.15em;font-weight:700}
.ths-global-nav nav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;padding:18px 0 0!important;border:0!important;background:none!important;margin:0!important}
.ths-global-nav nav a{display:block!important;padding:11px 12px!important;border-radius:8px;color:#d6e0ee!important;text-decoration:none;font-size:14px;line-height:1.4}
.ths-global-nav nav a:hover{background:#13315c}.ths-global-nav nav a[aria-current=page]{background:#1d4477;color:white!important;font-weight:650}
.ths-account{margin-top:auto;padding:18px 20px;border-top:1px solid #ffffff20;display:grid;gap:10px;font-size:12px;overflow-wrap:anywhere}.ths-account button{background:#13315c;color:white;border:1px solid #8ea4c2;padding:8px;border-radius:6px;cursor:pointer}
.ths-menu-toggle{display:none}.ths-sidebar .nav-title{padding:0 20px}.ths-sidebar>button.nav{margin:3px 12px;width:calc(100% - 24px)}
body[data-ths-module=xml]>main{margin-left:264px}body[data-ths-module=xml]>.ths-sidebar{position:fixed}
body[data-ths-module=monitor] .app{grid-template-columns:264px minmax(0,1fr)}body[data-ths-module=monitor] .ths-sidebar{position:sticky}
body[data-ths-module=home]>header .brand,body[data-ths-module=home] #account{display:none}body[data-ths-module=home]>header{display:none}
body[data-ths-module=home] main{max-width:1400px;margin:32px auto}.primary,button.primary{background:#13315c!important;border-color:#13315c!important;color:white!important}
body[data-ths-module=ferramentas]>header,body[data-ths-module=ferramentas]>.topbar{background:white;color:#13223a;border-bottom:1px solid #dde3ec}body[data-ths-module=ferramentas] .brand{color:#13315c}
body[data-ths-module=ferramentas]>header,body[data-ths-module=ferramentas]>.topbar{padding:16px 24px;gap:14px;flex-wrap:wrap;height:auto;min-height:72px}
body[data-ths-module=ferramentas] .header-button,body[data-ths-module=ferramentas] .header-link{color:#13315c;border-color:#b8c6d8;background:#f3f6fa}
body[data-ths-module=ferramentas]>header>.brand,body[data-ths-module=ferramentas]>.topbar>.brand{display:none}
body[data-ths-module=ferramentas] main>nav{background:#e8edf5}body[data-ths-module=ferramentas] nav button[aria-current] b{background:#13315c}
body[data-ths-module=ferramentas] .source-options button.selected{border-color:#13315c;color:#13315c;background:#edf2f9}
body[data-ths-module=ferramentas] .source-icon{background:#e8edf5;color:#13315c}
@media print{.ths-sidebar,.ths-menu-toggle{display:none!important}body.ths-standalone{padding-left:0}body[data-ths-module=xml]>main{margin-left:0}}
body[data-ths-module=home] .modules{display:none}body[data-ths-module=home] .login{gap:36px;margin-top:60px}
.ths-sidebar a:focus-visible,.ths-sidebar button:focus-visible{outline:3px solid #9cc0ff;outline-offset:2px}
@media(max-width:900px){body.ths-standalone{padding-left:0}body[data-ths-module=xml]>main{margin-left:0}body[data-ths-module=monitor] .app{display:block}.ths-sidebar,body[data-ths-module=monitor] .ths-sidebar{position:fixed!important;transform:translateX(-100%);transition:transform .15s;box-shadow:5px 0 20px #0003}.ths-menu-open .ths-sidebar{transform:translateX(0)!important}.ths-menu-toggle{display:block;position:sticky;top:0;z-index:25;background:#0b2545;color:white;border:0;border-radius:0;padding:12px 18px;width:100%;text-align:left}.ths-sidebar{padding-top:44px!important}body[data-ths-module=monitor] button.abrir-menu{display:none!important}}
body[data-ths-module=ferramentas] .local-badge{color:#13315c;background:#f3f6fa;border-color:#b8c6d8}
