/* O layout do computador é mantido. Adaptações apenas para tela pequena. */
.rh-accounts-link{color:white;text-decoration:none;border:1px solid #555;border-radius:8px;padding:9px 12px;font-weight:700;white-space:nowrap}
#rh-mobile-tabs,#rh-menu-toggle,#rh-mobile-drawer{display:none}
@media screen and (max-width:800px){
 html,body{width:100%;max-width:100%;margin:0}
 body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 body *{box-sizing:border-box}
 header{padding:10px 12px;gap:8px;min-height:65px;flex-wrap:nowrap;flex-direction:row!important;align-items:center;z-index:80}
 header .brand{flex:1;min-width:0;gap:8px}
 header .brand-logo{width:39px;height:39px;flex-shrink:0}
 header .brand h1{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
 header .module-nav,header .logout-entry,header #adminUserEntry,header>.rh-accounts-link{display:none!important}
 header .system-header{display:contents}
 #rh-menu-toggle{display:block;flex:none;color:#fff;background:#222;border:1px solid #555;min-height:44px;min-width:44px;font-size:23px;padding:5px 10px}
 main{width:100%;max-width:100%;padding:14px 10px}
 main>*,section,article,.view,.card,.modalbox,.module-placeholder-card{min-width:0;max-width:100%;overflow-wrap:anywhere}
 h2,.section-title{font-size:22px!important;line-height:1.25}
 h3{line-height:1.35}
 input,select,textarea{min-width:0;max-width:100%;font-size:16px!important;min-height:44px}
 input[type=checkbox],input[type=radio]{min-height:22px;width:22px;max-width:22px;flex:none}
 button,.btn{min-height:44px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
 .mini{font-size:13px}
 .grid2,.grid3,.formgrid,.filters,.grid,.kpis,.form-grid,[class$="-grid"],[class*="-grid "]{grid-template-columns:minmax(0,1fr)!important}
 [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 [class*="span"],[style*="grid-column"]{grid-column:auto!important}
 .kpis,[class*="kpi-grid"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
 .kpi{padding:12px 10px;min-width:0}
 .kpi .value{font-size:20px;overflow-wrap:anywhere}
 .toolbar,.actions,[class*="-toolbar"],[class*="-filters"]{min-width:0;max-width:100%;gap:8px;flex-wrap:wrap}
 .toolbar>*{max-width:100%;min-width:0}
 .filters select,#processos .employment-summary .filters select{width:100%;min-width:0!important;max-width:100%!important}
 .metricRow{grid-template-columns:minmax(0,1fr) minmax(45px,1fr) minmax(55px,90px);font-size:12px}
 img,svg,canvas,video,iframe{max-width:100%}
 canvas{width:100%!important;min-width:0!important}
 .tablewrap,.table-wrap,[class*="table-scroll"],[class*="table-wrap"]{width:100%;max-width:100%;overflow:visible!important;border:0;max-height:none!important}
 table,#processos .process-table-scroll table,#processos .employment-summary table{display:block;width:100%!important;min-width:0!important;max-width:100%}
 table caption{display:block;text-align:left}
 table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 table tbody,table tfoot{display:block;width:100%}
 table tr{display:block;background:#fff;border:1px solid #dde3eb;border-radius:12px;margin-bottom:12px;padding:8px 10px;box-shadow:0 3px 12px #00000005}
 table td,table th{display:grid;grid-template-columns:minmax(84px,36%) minmax(0,1fr);gap:8px;align-items:start;width:100%;min-width:0!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important;padding:9px 0;position:static;font-size:13px;border-bottom:1px solid #edf0f4}
 table td:before{content:attr(data-rh-label);font-size:11px;line-height:1.4;color:#607086;font-weight:700;text-transform:uppercase}
 table td[colspan],table th[colspan]{display:block}
 table td[colspan]:before{display:none}
 table td:last-child{border-bottom:0}
 table td>*{min-width:0;max-width:100%;grid-column:2}
 table td>button,table td>a{grid-column:auto;justify-self:start}
 #processos .process-scroll-top,.process-scroll-top{display:none!important}
 .rh-desktop-scroll-help{display:none}
 .wrap{min-width:0}
 .modal{padding:0;z-index:200;align-items:stretch}
 .modalbox{width:100%!important;max-width:100%!important;border-radius:0;padding:12px;max-height:100dvh;min-width:0}
 .modalhead{top:-12px;min-width:0;gap:8px;flex-wrap:wrap}
 .modalhead h2{font-size:20px!important}
 .juridico-subnav{padding:9px 10px;position:static;display:flex;flex-wrap:wrap;overflow:visible!important}
 .juridico-subnav nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-wrap:wrap}
 .juridico-subnav .module-context{border:0;width:100%}
 .juridico-subnav .navbtn{white-space:normal!important;font-size:12px}
 .tabs,[class*="-tabs"]{flex-wrap:wrap;overflow:visible;min-width:0}
 .tabbtn{flex:1 1 130px}
 .calendar{grid-template-columns:repeat(7,minmax(0,1fr))!important;width:100%;min-width:0}
 .calendar .day{min-width:0;padding:3px;min-height:70px}
 .calendar .event{font-size:9px;overflow-wrap:anywhere;white-space:normal}
 .agenda-row{grid-template-columns:minmax(0,1fr)!important;min-width:0}
 #rh-mobile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;background:#101114;color:#fff;border-top:3px solid #f4511e;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:85;gap:6px}
 #rh-mobile-tabs button,#rh-mobile-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;background:transparent;color:#fff;text-decoration:none;border-radius:8px;font-size:12px;font-weight:700}
 #rh-mobile-tabs .rh-icon{font-size:21px;line-height:1}
 #rh-mobile-drawer{position:fixed;inset:0;z-index:150;background:#0009;padding:0;display:none}
 #rh-mobile-drawer.open{display:block}
 .rh-drawer-panel{background:#fff;color:#16243a;width:min(360px,94vw);height:100dvh;overflow-y:auto;margin-left:auto;padding:20px 15px calc(25px + env(safe-area-inset-bottom))}
 .rh-drawer-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px;font-size:20px}
 .rh-drawer-panel button,.rh-drawer-panel a{display:block;width:100%;text-align:left;border:1px solid #e3e7ef;background:#f7f9fc;color:#16243a;font:600 15px inherit;padding:13px;margin-bottom:8px;text-decoration:none;border-radius:9px}
 .rh-drawer-panel .rh-drawer-title button{width:45px;margin:0;text-align:center}
}
