/* DocArms — Painel Inteligente. Camada visual sobre a identidade Clara Suave. */
body:not(.docarms-public) #view-home{
 --dash-ink:#202b25;--dash-muted:#637068;--dash-line:#e1e8e1;
 --dash-teal:#0e626b;--dash-green:#216a42;--dash-soft:#eff6ee;
 color:var(--dash-ink);max-width:1100px;margin-inline:auto;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)){
 background:#f8faf7;min-height:100dvh;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:space-between!important;gap:12px!important;
 padding:14px 0 8px!important;margin-bottom:0!important;border:0!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand{
 display:flex!important;flex:1 1 auto;min-width:0!important;align-items:center!important;
 gap:9px!important;width:auto!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand .mark{
 width:45px!important;height:45px!important;min-width:45px!important;background:transparent!important;
 border:0!important;box-shadow:none!important;padding:0!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand img{
 width:45px!important;height:45px!important;object-fit:contain!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand h1{
 margin:0!important;font-weight:850!important;font-size:clamp(22px,4.8vw,30px)!important;
 line-height:1.05!important;letter-spacing:-.05em!important;
}
/* The approved promise replaces the temporary "Painel Inteligente" label. */
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand>div:last-child{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .pwa-toolbar{
 margin:0 0 4px!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) #pwaInstall{
 min-height:36px!important;padding:7px 12px!important;border-radius:999px!important;
 font-size:12px!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden) #view-home:not(.hidden)) .top .brand .brand-tagline{
 display:block!important;margin:4px 0 0!important;color:#63756b!important;
 font-size:clamp(8px,2vw,10px)!important;font-weight:500!important;
 line-height:1.15!important;letter-spacing:0!important;text-transform:none!important;
 white-space:normal!important;
}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden) #view-home:not(.hidden)) .top .brand .brand-tagline span{display:block!important}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .da-top-actions{
 display:flex!important;flex:none!important;width:auto!important;align-self:center!important;
 justify-content:flex-end!important;gap:12px!important;margin:0!important;
}
/* Atendimento continua acessível no menu de perfil, sem duplicar ícones no cabeçalho. */
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) #daToolbarHelpSlot{display:none!important}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) #signout{display:none!important}
.da-dash-header-bell{position:relative;display:grid;place-items:center;width:46px;height:46px;
 border:0;background:transparent;color:#27372e;cursor:pointer;border-radius:50%;padding:9px}
.da-dash-header-bell svg{width:26px;height:26px}
.da-dash-header-badge{position:absolute;top:0;right:0;min-width:21px;height:21px;padding:0 5px;
 display:grid;place-items:center;border-radius:20px;background:#c8442e;color:#fff;font:800 12px/1 system-ui}
.da-dash-header-badge[hidden]{display:none}
/* The app header actions are private: never expose them on login or signup. */
html body:not(.docarms-public) .wrap:not(:has(#app:not(.hidden))) .da-dash-header-bell,
html body:not(.docarms-public) .wrap:not(:has(#app:not(.hidden))) #daMenuToggle{display:none!important}
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) #daMenuToggle{
 display:grid!important;place-items:center!important;width:50px!important;height:50px!important;
 min-width:50px!important;min-height:50px!important;padding:2px!important;
 border:1px solid #d3ded4!important;border-radius:50%!important;background:#f1f5f0!important;
 color:#215c41!important;box-shadow:0 2px 7px rgba(26,58,42,.08)!important;
}
.da-menu-avatar{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;
 overflow:hidden;color:#1f6646;font-weight:850;font-size:16px;background:#e5f2e8}
html body:not(.docarms-public) #daMenuToggle .da-menu-avatar .da-photo{
 width:43px!important;height:43px!important;border:0!important;background:#e5f2e8!important;
 color:#1f6646!important;box-shadow:none!important;font-size:16px!important;
}
.da-dash-sr-only{position:absolute!important;clip:rect(0,0,0,0);width:1px;height:1px;
 padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0}

/* Same authorized menu from the profile photo on phones and desktops. */
html body:not(.docarms-public) .da-mobile-menu:not(.hidden){
 display:flex!important;left:auto!important;right:0!important;max-width:min(380px,92vw)!important;
 border-radius:18px 0 0 18px;box-shadow:-14px 0 45px rgba(28,53,35,.15);
}
html body:not(.docarms-public) .da-mobile-menu-backdrop:not(.hidden){display:block!important}
.da-dash-menu-identity{padding:12px 8px 6px;display:grid;gap:2px}
.da-dash-menu-identity strong{font-size:17px;color:#1e3027;overflow-wrap:anywhere}
.da-dash-menu-identity small{font-size:12px;color:#64756a}
.da-menu-link.da-dash-signout{color:#a3342e!important;background:#fbefed!important;
 border:1px solid #edcbc7!important;font-weight:800;justify-content:flex-start}
.da-dash-signout .da-menu-icon{background:#fae4e1;color:#a3342e}

/* Hero and summary closely follow the approved mobile concept. */
#view-home .da-dash-hero{background:transparent!important;border:0!important;box-shadow:none!important;
 padding:8px 0 17px!important;margin:0!important;min-height:0}
#view-home .da-dash-hero h2{font-size:clamp(27px,5.8vw,37px)!important;font-weight:850!important;
 letter-spacing:-.045em;line-height:1.12!important;margin:4px 0 6px!important;color:#19231e}
#view-home .da-dash-hero p{font-size:clamp(15px,3.7vw,18px)!important;font-weight:450;
 color:#637168!important;margin:0!important}
#view-home .da-dash-hero:after{display:none!important}
#view-home .da-dash-attention{display:flex;align-items:center;gap:13px;text-align:left;
 width:100%;min-height:102px;margin:1px 0 14px;padding:19px 16px;border-radius:17px;
 background:#fff2df;border:1px solid #ffdfb1;color:#2b3127;cursor:pointer;
 box-shadow:0 4px 14px rgba(95,67,29,.035)}
#view-home .da-dash-attention.is-clear{background:#edf7ee;border-color:#cde8d0}
.da-dash-attention-icon{flex:none;width:47px;height:47px;display:grid;place-items:center;color:#b57613}
.da-dash-attention.is-clear .da-dash-attention-icon{color:#287144}
.da-dash-attention-icon svg{width:43px;height:43px}
.da-dash-attention-content{flex:1 1 auto;min-width:0;display:grid;gap:5px}
.da-dash-attention-content strong{font-size:clamp(15px,3.9vw,19px);font-weight:830;line-height:1.2;color:#222b25}
.da-dash-attention-content small{font-size:clamp(12px,3.05vw,15px);color:#344239;line-height:1.35}
.da-dash-attention-action{flex:0 0 auto;font-size:13px;font-weight:800;color:#0d5a62;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

html body:not(.docarms-public) #view-home .home-primary-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:12px!important;margin:0 0 18px!important;
}
html body:not(.docarms-public) #view-home .home-primary-grid .stat{
 display:grid!important;grid-template-columns:40px minmax(0,1fr) 15px!important;
 grid-template-rows:auto auto auto!important;align-items:center!important;gap:0 7px!important;
 min-height:112px!important;padding:15px 12px!important;text-align:left!important;
 background:#fff!important;border:1px solid #e3e8e3!important;border-radius:17px!important;
 box-shadow:0 3px 8px rgba(29,52,38,.065)!important;color:#1c2921!important;
 cursor:pointer;position:relative;
}
#view-home .home-primary-grid .stat:after{display:none!important}
#view-home .da-dash-card-icon{grid-row:1 / span 2;grid-column:1;width:36px;height:36px;
 display:grid;place-items:center;color:#1c7543}
#view-home .da-dash-card-icon svg{width:35px;height:35px;stroke-width:1.85}
#view-home .da-dash-card-icon.is-teal{color:#11616a}
#view-home .da-dash-card-icon.is-amber{color:#b57511}
#view-home .home-primary-grid .statlabel{
 grid-row:1;grid-column:2;margin:0!important;color:#1f2b24!important;
 font-size:clamp(16px,4vw,21px)!important;font-weight:840!important;line-height:1.14!important;
 white-space:normal;overflow-wrap:normal;letter-spacing:-.025em;
}
#view-home .home-primary-grid .home-stat-count{
 grid-row:2;grid-column:2 / 4;margin:3px 0 0!important;padding:0!important;
 display:flex!important;align-items:baseline;gap:4px;color:#38453d!important;
 font-size:clamp(12px,3.2vw,16px)!important;line-height:1.2!important;
}
#view-home .home-primary-grid .statnum{
 font-size:clamp(16px,4vw,20px)!important;color:#1e2b24!important;font-weight:680!important;
}
#view-home .da-dash-card-arrow{grid-row:1;grid-column:3;color:#425248;font-size:22px;align-self:center}
#view-home .da-dash-weapon-note{grid-column:1 / -1;grid-row:3;margin:6px 0 0;
 font-size:11px!important;color:#287148;font-weight:720}
#view-home .da-dash-weapon-note.is-pending{color:#96631c}

#view-home .da-dash-actions{display:grid;grid-template-columns:1fr 1.36fr 1.15fr;gap:8px;margin:0 0 17px}
#view-home .da-dash-action{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;
 min-height:57px;padding:9px 7px;background:#eaf3e9;border:1px solid #e5efe4;border-radius:16px;
 font:780 clamp(12px,3.1vw,17px)/1.15 system-ui;color:#254331;cursor:pointer}
#view-home .da-dash-action svg{width:24px;height:24px;flex:none}
#view-home .da-dash-action.is-primary{background:#0f6871;color:#fff;border-color:#0a5d66;
 box-shadow:0 4px 10px rgba(16,93,102,.1)}

html body:not(.docarms-public) #view-home .da-dash-panel{
 border:1px solid #e2e9e3!important;background:#fff!important;border-radius:19px!important;
 padding:17px 17px 12px!important;margin:0 0 13px!important;
 box-shadow:0 4px 13px rgba(31,58,40,.07)!important;
}
#view-home .da-dash-panel-heading{display:flex;align-items:center;gap:10px;margin:0 0 12px}
#view-home .da-dash-panel-heading svg{width:29px;height:29px;color:#246741;flex:none}
#view-home .da-dash-panel-heading h3{margin:0!important;font-size:clamp(19px,4.4vw,25px)!important;
 font-weight:850!important;letter-spacing:-.035em;color:#1c2b23!important}
.da-dash-deadline-row{display:flex;align-items:center;gap:9px;width:100%;min-height:57px;
 padding:9px 1px;background:transparent;border:0;border-bottom:1px solid #e6ebe6;text-align:left;cursor:pointer;color:#253329}
.da-dash-deadline-row:last-child{border-bottom:0}
.da-dash-deadline-icon{font-size:23px;color:#7c8b81;width:29px;flex:none;text-align:center}
.da-dash-deadline-name{font-size:clamp(13px,3.4vw,17px);font-weight:730;
 min-width:0;flex:1;overflow-wrap:anywhere;line-height:1.25}
.da-dash-deadline-pill{flex:0 0 auto;max-width:49%;border-radius:99px;padding:7px 10px;
 background:#fff0d9;color:#875017;font-size:clamp(11px,2.9vw,14px);font-weight:750;
 text-align:center;line-height:1.22}
.da-dash-deadline-pill.is-expired{background:#fde9e5;color:#a2372e}
.da-dash-empty{padding:12px 4px;color:#647168;font-size:13px;line-height:1.45}
.da-dash-activity-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 padding:4px;border-radius:15px;background:#f0f2f0;gap:3px;margin:2px 0 10px}
.da-dash-activity-tabs button{min-width:0;min-height:44px;border:0;border-radius:12px;
 font-size:clamp(12px,3vw,15px);font-weight:650;color:#3b4840;background:transparent;cursor:pointer}
.da-dash-activity-tabs button.is-active{background:#0e6770;color:#fff;font-weight:780}
.da-dash-activity-body{background:#edf5ed;border-radius:13px;padding:12px 13px;display:grid;gap:6px}
.da-dash-activity-body strong{font-size:14px;color:#263a2b}
.da-dash-activity-body p{font-size:12px;margin:0;color:#53665a;line-height:1.45}
.da-dash-activity-body button{justify-self:start;border:0;background:none;color:#0e646d;
 padding:5px 0;min-height:30px;text-decoration:underline;font-weight:750;cursor:pointer}
#view-home .da-dash-more{margin:12px 0 5px;color:#476355}
#view-home .da-dash-more summary{font-size:13px;font-weight:700;padding:9px 0}
#view-home .da-dash-more .home-attention-grid{margin-top:0!important}

/* Bottom row matches the four fixed destinations in the concept. Hidden legacy routes remain clickable from the drawer. */
@media(max-width:899px){
 html body:not(.docarms-public) #bottomnav [data-nav="add"],
 html body:not(.docarms-public) #bottomnav [data-nav="account"]{display:none!important}
}
html body:not(.docarms-public) #bottomnav{grid-template-columns:repeat(4,minmax(0,1fr))!important;
 background:#fff!important;border-color:#e3e8e2!important}
html body:not(.docarms-public) #bottomnav .da-nav-share{display:flex!important}
html body:not(.docarms-public) #bottomnav .navbtn{color:#394c3f!important}
html body:not(.docarms-public) #bottomnav .navbtn.active{color:#17693c!important;
 background:#e5f2e3!important;border-radius:14px}
/* The old glass theme draws masked icons with ::before. Use only the SVGs. */
html body:not(.docarms-public) #bottomnav .navbtn .navico:has(>svg)::before{
 content:none!important;display:none!important;
}
html body:not(.docarms-public) #bottomnav .navbtn .navico{
 display:grid!important;place-items:center!important;flex:0 0 28px!important;
 width:28px!important;height:28px!important;min-height:28px!important;
}
html body:not(.docarms-public) #bottomnav .navico svg{
 width:25px!important;height:25px!important;display:block!important;flex:none;
}
@media(max-width:899px){
 html body:not(.docarms-public) #bottomnav{
  display:grid!important;grid-auto-flow:row!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:1fr!important;gap:0!important;
  align-items:stretch!important;min-height:calc(72px + env(safe-area-inset-bottom))!important;
  padding:5px 4px calc(6px + env(safe-area-inset-bottom))!important;
 }
 html body:not(.docarms-public) #bottomnav .navbtn{
  flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:3px!important;min-width:0!important;
  min-height:62px!important;padding:5px 1px!important;
 }
 /* Never re-enable the two legacy mobile destinations through the generic nav rule. */
 html body:not(.docarms-public) #bottomnav .navbtn[data-nav="add"],
 html body:not(.docarms-public) #bottomnav .navbtn[data-nav="account"]{
  display:none!important;
 }
 html body:not(.docarms-public) #bottomnav .navbtn>span:last-child{
  display:block!important;max-width:100%!important;text-align:center!important;
  font-size:clamp(11px,2.8vw,13px)!important;line-height:1.15!important;
  letter-spacing:-.3px!important;white-space:nowrap!important;
  overflow:visible!important;
 }
}

@media(min-width:900px){
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand{display:flex!important}
 html body:not(.docarms-public) #bottomnav .da-nav-share{display:flex!important}
 html body:not(.docarms-public) #bottomnav{display:flex!important;flex-direction:column!important;grid-template-columns:none!important}
}
@media(max-width:899px){
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top{padding-top:6px!important;padding-bottom:8px!important}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand{grid-template-columns:none!important}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand .brand-tagline{display:none!important}
 html body:not(.docarms-public) #view-home .da-dash-hero{padding-top:5px!important}
 html body:not(.docarms-public) #view-home .home-primary-grid .stat{min-height:107px!important}
}
@media(max-width:380px){
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top{gap:6px!important}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand{gap:5px!important}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand .mark,
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand img{
  width:39px!important;height:39px!important;min-width:39px!important;
 }
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .top .brand h1{font-size:21px!important}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .da-top-actions{gap:5px!important}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) .da-dash-header-bell{width:39px;height:39px;padding:6px}
 html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) #daMenuToggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 #view-home .da-dash-attention{gap:8px;padding:15px 10px}
 #view-home .da-dash-attention-action{font-size:11px}
 #view-home .da-dash-card-icon{width:29px;height:29px}
 #view-home .da-dash-card-icon svg{width:29px;height:29px}
 html body:not(.docarms-public) #view-home .home-primary-grid .stat{grid-template-columns:31px minmax(0,1fr) 10px!important;padding:12px 9px!important;gap:0 5px!important}
 #view-home .da-dash-action{gap:4px;padding:8px 5px}
 #view-home .da-dash-action svg{width:19px;height:19px}
 #view-home .da-dash-deadline-pill{max-width:45%}
}

/* Keep navigation out of the mandatory first-access registration. */
html body:not(.docarms-public) .wrap:has(#view-onboarding:not(.hidden)) #bottomnav{display:none!important}
/* WCAG contrast on the account's version wordmark, without changing the branded splash. */
#view-account .small.muted > .docarms-wordmark{color:#1d2b23!important}
#view-account .small.muted > .docarms-wordmark .docarms-wordmark-arms{color:#206a39!important}

/* Keep a single WhatsApp help entry in the profile drawer on mobile and desktop. */
html body:not(.docarms-public) .wrap:has(#app:not(.hidden)) #helpInboxButton{display:none!important}
