/* VIS-01..14: somente módulos autorizados; sem seletores de Comunicação/Automação. */
#nortearMenuTooltip{position:fixed;z-index:100005;max-width:min(360px,calc(100vw - 24px));padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);box-shadow:0 8px 24px #0003;font:500 12px/1.5 Inter,Arial,sans-serif;overflow-wrap:anywhere;pointer-events:none}
:is(#teamarea,#documentos,#projetos,#saasadmin,#financeiro) :is(button,a):focus-visible{outline:2px solid #3b82f6;outline-offset:3px}
#teamarea .teamops{min-width:0;overflow:visible;scrollbar-gutter:stable}
#teamarea .teamops .teamops-layout .teamops-nav.teamops-nav{padding-top:5px!important;padding-bottom:13px!important;scroll-padding-inline:5px}
#teamarea .teamops .teamops-layout .teamops-nav.teamops-nav .team-tab{transform:none!important;margin-block:2px!important}
#teamarea .teamops .teamops-nav .team-tab b{min-width:0;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 24px)}
#teamarea .teamops-layout{min-width:0}
#teamarea .teamops-panel>header{align-items:flex-start;margin-bottom:14px;padding-bottom:6px;gap:14px}
#teamarea .teamops-panel>header h3{margin:0;line-height:1.45}
#teamarea .teamops-panel>.teamops-actions{margin-top:14px;padding-bottom:4px}
#teamarea .teamops .wsp-hero.team .wsp-hero-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;min-width:440px}
#teamarea .teamops .wsp-hero.team .wsp-hero-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;width:100%;padding:10px 12px;border-radius:999px!important;font:600 11px/1.3 Inter,Arial,sans-serif}
#teamarea .teamops .wsp-hero.team .wsp-hero-actions button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
#teamarea .teamops .wsp-hero.team .wsp-hero-actions [data-team-op=refresh]{background:#147848!important;border-color:#16854f!important;color:#fff!important}
#teamarea .teamops .wsp-hero.team .wsp-hero-actions [data-team-op=member]{background:#f1bb28!important;border-color:#e8ad10!important;color:#fff!important}
#teamarea .teamops .wsp-hero.team .wsp-hero-actions [data-team-op=new]{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
#teamarea .teamops-board{grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);grid-template-columns:none;align-items:start;gap:12px;padding:4px 4px 14px;scrollbar-width:thin;scroll-snap-type:x proximity}
#teamarea .teamops-board>section{min-width:0;padding:12px;border-radius:13px;scroll-snap-align:start}
#teamarea .teamops-board .teamops-record{display:grid;align-items:start;gap:9px;background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:12px;margin-top:10px;min-width:0}
#teamarea .teamops-board .teamops-record p{margin:4px 0;line-height:1.5}
#teamarea .teamops-board .teamops-actions{gap:6px;align-items:stretch}
#teamarea .teamops-board .teamops-actions button{flex:1 1 90px;white-space:normal}
#teamarea .teamflow-month{margin-bottom:12px;padding:4px 0 10px;border-bottom:1px solid var(--line)}
#teamarea .teamflow-calendar{grid-template-columns:repeat(7,minmax(116px,1fr));gap:8px;padding:4px 2px 12px;scrollbar-width:thin;align-items:stretch}
#teamarea .teamflow-calendar>section{min-height:126px;padding:9px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
#teamarea .teamflow-calendar>b{text-align:center;padding:7px;color:var(--muted);font-size:11px}
#teamarea .teamflow-calendar button{min-height:30px;line-height:1.35;border:1px solid var(--line)}
#teamarea .teamflow-filters{gap:12px;margin-bottom:12px;align-items:end}
#teamarea .teamflow-filters label{line-height:1.5}
#documentos .wsap-hero{display:grid;grid-template-columns:minmax(280px,1fr) minmax(540px,1.35fr);align-items:center;gap:24px}
#documentos .wsap-hero-title{min-width:0}
#documentos .wsap-hero-actions{container:wsapactions / inline-size;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;min-width:0}
#documentos .wsap-hero-actions button{border:1px solid;min-height:42px!important;width:100%;border-radius:999px!important;padding:9px 12px!important;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;white-space:normal}
#documentos .wsap-hero-title>span{color:#fff!important;background:#a66300!important}
#documentos .wsap-hero-title>span svg{stroke:currentColor;fill:none}
#projetos .wsca-hero .wsca-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#projetos .wsca-hero .wsca-actions button{min-width:145px;min-height:42px;padding:10px 14px;border-radius:12px;justify-content:center}
#saasadmin .ws-saas-hero{grid-template-columns:auto minmax(0,1fr) auto}
#saasadmin .ws-saas-refresh{display:grid;gap:8px;justify-items:end}
#saasadmin .ws-saas-action-row{display:flex;align-items:center;gap:10px}
#saasadmin .ws-admin-badge,#saasadmin #wsSaasRefresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:150px;height:42px;box-sizing:border-box;border-radius:999px!important;padding:10px 14px;line-height:1.2;color:#fff;border:1px solid transparent;font-size:11px;font-weight:700}
#saasadmin .ws-admin-badge{background:#743bd1}
#saasadmin #wsSaasRefresh{background:#147848}
#saasadmin .ws-saas-refresh small{display:block;text-align:right;margin:0}
#financeiro #wsNewFinanceBtn,#financeiro .wsfp-header .wsfp-btn.primary,#financeiro button[onclick*="wsFinanceNew"]{background:#147848!important;border-color:#147848!important;color:#fff!important;min-height:42px;border-radius:999px!important;padding:10px 16px;font-weight:700}
@media(max-width:1100px){#documentos .wsap-hero{grid-template-columns:minmax(230px,1fr) minmax(340px,1fr)}#documentos .wsap-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){#teamarea .teamops .wsp-hero.team .wsp-hero-actions{min-width:0;width:100%}#documentos .wsap-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#documentos .wsap-hero{grid-template-columns:1fr}#saasadmin .ws-saas-hero{grid-template-columns:auto minmax(0,1fr)}#saasadmin .ws-saas-refresh{grid-column:1/-1;justify-items:start}#saasadmin .ws-saas-refresh small{text-align:left}}
@media(max-width:600px){#teamarea .teamops .wsp-hero.team .wsp-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#projetos .wsca-hero .wsca-actions{width:100%}#projetos .wsca-hero .wsca-actions button{min-width:0}#documentos .wsap-hero-actions{width:100%}}
@media(max-width:400px){#teamarea .teamops .wsp-hero.team .wsp-hero-actions{grid-template-columns:1fr}}

/* Actions are one group per record; variable descriptions never move individual buttons. */
#teamarea .teamops-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}
#teamarea .teamops-record>.teamops-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;max-width:420px}
#teamarea .teamops-record>.teamops-actions>strong,#teamarea .teamops-record>.teamops-actions>span{flex-basis:100%;line-height:1.5}
#teamarea .teamops-record>.teamops-actions button{min-width:86px;min-height:38px;border-radius:999px}
#teamarea .teamops-panel>header>.teamops-actions{margin-left:auto}
#teamarea .teamops-panel>header button{border-radius:999px;min-height:40px;padding:9px 16px}
#teamarea .teamops-form footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:12px}
#financeiro #wsNewFinanceBtn i{background:transparent;color:inherit;border:0;box-shadow:none}
#aprovacao .wsr-module-hero-actions{display:flex;gap:10px;align-items:center}
#aprovacao .wsr-module-hero-actions .wsr-btn{height:42px;min-width:145px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px!important;padding:10px 16px;line-height:1.2}
#organizacao .wso-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(145px,1fr));gap:10px;align-items:center}
#organizacao .wso-hero-actions .wso-btn{border-radius:999px!important;background:#147848;border-color:#147848;color:white;width:100%!important}
#organizacao .wso-hero-actions .wso-btn.primary{background:#2563eb;border-color:#2563eb}
#documentos .wsap-hero-actions .wsap-action-production{background:#743bd1;color:white;border-color:#743bd1}
#documentos .wsap-hero-actions .wsap-action-calendar{background:#087e99;color:white;border-color:#087e99}
#documentos .wsap-hero-actions .wsap-action-approval{background:#a66000;color:white;border-color:#a66000}
#documentos .wsap-hero-actions .wsap-action-asset{background:color-mix(in srgb,#2563eb 16%,transparent);color:#60a5fa;border-color:#397ad6}
:is(#teamarea,#documentos,#organizacao,#aprovacao,#saasadmin,#financeiro) :is(.wsp-hero-actions,.wsap-hero-actions,.wso-hero-actions,.wsr-module-hero-actions,.ws-saas-action-row,.wsfp-head-actions) button:hover{filter:brightness(1.1)}
@media(max-width:700px){#teamarea .teamops-record{grid-template-columns:1fr}#teamarea .teamops-record>.teamops-actions{justify-content:flex-start;max-width:none}#organizacao .wso-hero-actions{width:100%}#aprovacao .wsr-module-hero-actions{flex-wrap:wrap}}

#documentos .wsap-hero-actions .wsap-action-approval{white-space:nowrap;gap:8px;padding-inline:14px!important}
#documentos .wsap-action-approval svg{flex:0 0 15px}
#documentos .wsap-action-approval>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
#documentos .wsap-action-approval .wsap-approval-short{display:none}
@container wsapactions (max-width:760px){#documentos .wsap-action-approval .wsap-approval-full{display:none}#documentos .wsap-action-approval .wsap-approval-short{display:block}}

#documentos .wsap-hero-actions button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}

#teamarea .teamops .wsp-hero.team .wsp-hero-actions button :is(span,svg){color:inherit}

/* Match the commercial prospecting hero actions in both themes. */
#documentos .wsap-hero-actions button{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;font-size:12px!important;font-weight:850!important;letter-spacing:normal!important}
#documentos .wsap-hero-actions button>span{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important}
html body #documentos .wsap-hero-actions .wsap-action-approval,
html body #documentos .wsap-hero-actions .wsap-action-approval>span,
html body #documentos .wsap-hero-actions .wsap-action-approval svg{color:#fff!important}
