/* A single usable sidebar across modules, with accessible native disclosure groups. */
body:not(.auth-pendente) .sidebar{display:flex;flex-direction:column;gap:8px;align-self:start;min-width:0}
body:not(.auth-pendente) .sidebar .brand{cursor:pointer;flex-shrink:0}
body:not(.auth-pendente) .sidebar .brand-mark{width:100px;height:100px}
body:not(.auth-pendente) #nav{display:flex;flex-direction:column;gap:6px;width:100%}
.nav-category{width:100%;border-radius:10px;background:#f4f7f2}
.nav-category>summary{cursor:pointer;padding:14px 12px;font-weight:650;color:#365333;font-size:15px}
.nav-category[open]>summary{color:#267728;background:#eaf3e5;border-radius:10px}
body:not(.auth-pendente) #nav .menu-item{min-height:43px;font-size:14px;padding:6px 10px;gap:9px}
body:not(.auth-pendente) #nav .menu-icon{width:28px;height:28px}
body:not(.auth-pendente) #nav .menu-icon svg{width:23px;height:23px}
body.sidebar-recolhida:not(.auth-pendente) .app-shell{grid-template-columns:92px minmax(0,1fr)}
body.sidebar-recolhida:not(.auth-pendente) .brand-mark{width:54px;height:64px}
body.sidebar-recolhida #nav .nav-category>summary{font-size:10px;padding:12px 2px;text-align:center;overflow-wrap:anywhere;list-style:none}
body.sidebar-recolhida #nav .nav-category>a{display:none}
body.view-users .main,body.view-history .main{height:auto;min-height:100vh;display:flex;flex-direction:column;overflow:visible}
body.view-users #content,body.view-history #content{overflow:visible;flex:1 0 auto}
.history-work{padding:28px;max-width:1400px;margin:auto;color:#243b32}
.history-work h2{font-size:30px;margin:10px 0}.history-work header p{color:#637469}
.history-eyebrow{font-size:12px;letter-spacing:1px;color:#3b7e34;font-weight:700}
.history-tip{margin:24px 0;background:#edf5e8;border:1px solid #d5e7cd;border-radius:12px;padding:18px}.history-tip p{margin:7px 0 0;line-height:1.6}
.history-tools{display:flex;gap:12px;align-items:end;background:white;padding:18px;border:1px solid #dce5db;border-radius:12px}.history-tools label{flex:1;margin:0!important}.history-tools button{min-height:44px}
.history-table{overflow-x:auto;border:1px solid #dce5db;border-radius:12px;background:white}.history-table td{padding:20px;overflow-wrap:anywhere}.history-table th{padding:16px}.history-table td:last-child{min-width:155px}.history-table small{display:block;color:#708078;margin-top:5px}.history-empty{padding:35px;background:white;border:1px dashed #cbdac7;border-radius:12px;text-align:center}
body.view-users .company-search{flex-wrap:wrap}
@media(max-width:700px){body.sidebar-recolhida:not(.auth-pendente) .app-shell{display:block}.nav-category>summary{text-align:left}body.sidebar-recolhida #nav .nav-category{display:none}body.sidebar-recolhida #nav>a{display:none}body:not(.auth-pendente) .sidebar .brand-mark{width:65px;height:60px}.history-work{padding:16px}.history-tools{flex-wrap:wrap}.history-tools label{flex-basis:100%}}
