/* Greenjob Gestão · interface refinada e consistente */
:root{--green:#087a50;--light:#eaf4ed;--dark:#173f30;--border:#dce6df;--ink:#24372d;--muted:#687b70;--bg:#f2f6f3;--white:#fff}
body{background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}
#view{width:min(100%,1900px);padding:clamp(14px,2vw,28px)}
#shell main>header{position:sticky;top:0;z-index:9;min-height:82px;padding:14px clamp(16px,2.5vw,32px);box-shadow:0 2px 12px #183d2a0a}
h1{font-size:22px;letter-spacing:-.35px;color:#193d2e}h2{font-size:19px;letter-spacing:-.2px;color:#244535}h3{font-size:16px;letter-spacing:-.12px;color:#294b39}
.sidebar{background:#fff;border-right-color:#e0e8e3;box-shadow:3px 0 16px #193e3007}.sidebar .brand{padding-bottom:15px}.sidebar nav button{font-size:13px;color:#42584b}.sidebar nav button.on{border-left:3px solid #0a8054;border-radius:5px 9px 9px 5px;background:#e9f4ed;color:#0b6848;font-weight:650}
button{min-height:38px;border-radius:8px;padding:8px 12px;border-color:#d7e2da;color:#294337;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s}button:hover{border-color:#8fbaa0;box-shadow:0 2px 7px #153b2910}button:active{transform:translateY(1px)}button.primary{background:#087a50;border-color:#087a50;color:#fff;font-weight:650}button.primary:hover{background:#076844;border-color:#076844}
input,select,textarea{border-color:#cbd9d0;border-radius:8px;padding:9px 11px;color:#24372d}input:focus,select:focus,textarea:focus{outline:3px solid #d3ecdc;border-color:#359267}label{font-size:12px;color:#465d4f}
.panel,.card{background:#fff;border:1px solid #dce6df;border-radius:14px;box-shadow:0 3px 14px #173d2908}.panel{padding:clamp(16px,2vw,24px);margin:0 0 16px}.card{padding:16px}.toolbar{gap:9px}.actions{gap:8px}.tablewrap,.panel .tablewrap{border:1px solid #e0e8e3;border-radius:10px;overflow:auto}table{border-collapse:separate;border-spacing:0;min-width:680px}td,th{padding:10px 12px;border-bottom:1px solid #e8eeea}th{background:#f1f6f2;color:#365544;font-size:11px;font-weight:700;letter-spacing:.01em}tbody tr:nth-child(even) td{background:#fbfcfb}tbody tr:hover td{background:#f0f7f2}
#toast{border-radius:10px;box-shadow:0 8px 26px #102d2050}.modal{border:1px solid #dbe5de;border-radius:16px;box-shadow:0 20px 70px #10291f35}
/* Estoque: indicadores, pesquisa e ações agrupados em cartões de leitura rápida. */
.stock-eyebrow{display:block;margin-bottom:5px;color:#718579;font-size:10px;font-weight:750;letter-spacing:.11em}.stock-title-row,.stock-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.stock-title-row h2,.stock-section-heading h3{margin:0 0 4px}.stock-title-row p{color:#6a7c71}.stock-title-row .actions{justify-content:flex-end;flex-shrink:0}.stock-summary{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0 14px}.stock-summary span{padding:6px 10px;border:1px solid #e0e8e3;border-radius:22px;background:#f7faf8;color:#53685b;font-size:12px}.stock-summary strong{color:#244b38}.stock-summary .stock-alert{background:#fff4df;border-color:#f0d59b;color:#805d19}.stock-summary .stock-alert strong{color:#805d19}.stock-search{display:block;margin:12px 0 15px}.stock-search input{margin-top:6px;min-height:42px}.stock-primary{border-top:3px solid #118157}.stock-dashboard{border-top:3px solid #8eb89b}.stock-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:12px 0 18px}.stock-kpi{min-width:0;padding:13px 15px;border:1px solid #e0e9e3;border-radius:11px;background:#f9fbf9}.stock-kpi span{display:block;color:#687b70;font-size:11px}.stock-kpi strong{display:block;margin-top:5px;color:#214d38;font-size:21px;line-height:1.2;overflow-wrap:anywhere}.stock-kpi-2{background:#f3f8f4}.stock-kpi-3{background:#fff8e9;border-color:#f0e3c3}.stock-kpi-3 strong{color:#855f17}.stock-kpi-4{background:#fff4f2;border-color:#f1ded9}.stock-kpi-4 strong{color:#a33d35}.stock-dashboard-bottom{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.7fr);gap:16px;align-items:start}.stock-dashboard-bottom>section{min-width:0;padding:14px;border:1px solid #e4ebe6;border-radius:11px;background:#fff}.stock-dashboard-bottom h4{margin:0 0 8px;color:#365644;font-size:13px}.stock-dashboard-bottom p{margin:0 0 8px;color:#43594b;font-size:13px}.stock-dashboard-bottom small{color:#79887f;font-size:11px}.stock-dashboard-bottom .tablewrap{max-height:330px}.stock-section{padding:18px 20px}.stock-section-heading{margin-bottom:13px}.stock-section-heading h3{margin:0}.stock-section .actions{margin-bottom:12px}.stock-primary #stockList table{min-width:760px}.stock-primary #stockList td button{padding:6px 9px;min-height:34px;font-size:12px}.stock-primary #stockList td small{display:block;margin-top:3px;color:#7a8b80;font-size:11px}.stock-primary #stockList .tablewrap{margin-top:10px}.stock-movements h3{margin:0}
@media(max-width:900px){.stock-dashboard-bottom{grid-template-columns:1fr}.stock-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){header{align-items:flex-start;gap:8px}#view{padding:12px}.stock-title-row{align-items:flex-start;flex-direction:column}.stock-title-row .actions{width:100%;justify-content:flex-start}.stock-title-row .actions button{flex:1}.stock-summary{gap:6px}.stock-summary span{font-size:11px}.stock-kpi-grid{gap:8px}.stock-kpi{padding:11px}.stock-kpi strong{font-size:18px}.stock-section{padding:15px}.tablewrap{border-radius:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Navegação separada por responsabilidade de estoque */
.stock-filter-row{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px;margin:12px 0}.stock-filter-row label{display:flex;flex-direction:column;gap:5px}.stock-filter-row select{min-height:40px}.stock-inventory-page{border-top:3px solid #a87d39}.stock-inventory-page>p{color:#617569}.stock-inventory-page #stockInventoryPanel>p{padding:10px 12px;border-radius:9px;background:#f7f4e9;color:#695630}.stock-inventory-page form{padding:14px;border:1px solid #e1e9e3;border-radius:11px;background:#fafcfb}.stock-inventory-page form label{display:flex;flex-direction:column;gap:5px}.stock-inventory-page #stockExpectedBalance{font-weight:650;color:#355b45}.stock-inventory-page h4{margin:22px 0 10px;color:#355b45}.stock-inventory-page table{min-width:760px}.stock-inventory-page [data-count-approve]{background:#eaf4ed;color:#176c49;border-color:#c7dece}
@media(max-width:600px){.stock-filter-row{grid-template-columns:1fr}}

.cmms-shell-top>div{display:none}.cmms-shell-top{justify-content:flex-end;min-height:0;padding-block:4px}.kit-master-card{min-width:0}.quote-special-row>div{min-width:0}

/* v3.156.276: mensagens de erro não devem cobrir formulários nem impedir ações. */
#toast{max-width:min(440px,calc(100vw - 24px))!important;max-height:min(180px,35dvh)!important;box-sizing:border-box!important;overflow:auto!important;overflow-wrap:anywhere!important;white-space:normal!important;font-size:13px!important;line-height:1.45!important;z-index:2100!important}
@media(max-width:650px){#toast{left:12px!important;right:12px!important;width:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}}
