:root{font-family:Arial,Helvetica,sans-serif;color:#183047;background:#f3f6f9;font-size:16px}*{box-sizing:border-box}body{margin:0}aside{position:fixed;inset:0 auto 0 0;width:238px;background:#0c2237;color:white;padding:36px 22px;display:flex;flex-direction:column}.brand{font-size:42px;font-weight:800;letter-spacing:-3px;color:#65dfc3}.brand span{display:block;font-size:12px;letter-spacing:3px;color:#cbd9e4;margin-top:8px}.section-label{font-size:12px;letter-spacing:1.7px;color:#9ab0c2;margin:55px 12px 18px}nav button{display:block;width:100%;text-align:left;border:0;background:none;color:#c6d6e4;padding:15px;margin:5px 0;border-radius:7px;font-size:15px}nav button.active{background:#204052;color:#75edcf}.side-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;font-size:14px}.avatar{background:#2a4d62;border-radius:50%;padding:12px;font-size:12px}small{display:block;color:#98afbf;font-size:12px;margin-top:5px}main{margin-left:238px;padding:24px 42px;max-width:1700px}.demo{padding:12px 16px;background:#e6eff7;color:#395771;font-size:13px;border-radius:6px;display:flex;gap:20px;flex-wrap:wrap}header{display:flex;align-items:center;justify-content:space-between;margin:35px 0 28px;gap:20px}.eyebrow{font-size:12px;letter-spacing:1.6px;color:#637d91;font-weight:700}h1{font-size:30px;letter-spacing:-1px;margin:10px 0}h2{font-size:22px}button{font:inherit;cursor:pointer;background:white;color:#17354a;border:1px solid #d4dfe7;border-radius:6px;padding:10px 16px;min-height:42px}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#096c60;border-color:#096c60;color:white}.toolbar{display:flex;gap:20px;align-items:end;padding:20px;background:white;border:1px solid #e0e7ec;border-radius:10px}label{font-size:14px;font-weight:600;display:flex;flex-direction:column;gap:8px}input,select,textarea{font:inherit;font-size:15px;color:#19354c;background:white;border:1px solid #c8d5df;border-radius:5px;padding:11px;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #20a995;outline-offset:2px}.period{margin-left:auto;display:flex;flex-direction:column;gap:8px;font-size:14px}.period span{color:#667f90}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.card{background:white;border:1px solid #e0e7ec;border-radius:9px;padding:23px}.card p{font-size:14px;color:#62798c;margin:0 0 16px}.card strong{font-size:30px;letter-spacing:-1px}.card small{color:#62798c}.panel{background:white;border:1px solid #e0e7ec;border-radius:9px;overflow:hidden;margin-top:24px}.panel-head{padding:21px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #e7edf1}.panel-head h2{font-size:17px;margin:0}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{background:#f9fbfc;color:#60778b;font-size:12px;letter-spacing:.5px;padding:15px 20px;white-space:nowrap}td{padding:19px 20px;border-bottom:1px solid #edf1f4}td small{color:#6c8191}.badge{background:#e8f4f1;color:#256d61;padding:5px 8px;border-radius:4px;font-size:12px}.row-actions{display:flex;gap:7px}.row-actions button{font-size:13px;padding:6px 9px;min-height:34px}.muted{color:#647e91}.empty{text-align:center;padding:48px 20px;color:#647e91}.summaries{display:grid;grid-template-columns:1fr 1fr;gap:20px}.bar-row{padding:14px 23px}.bar-label{display:flex;justify-content:space-between;font-size:14px;margin-bottom:8px}.track{height:7px;background:#eef3f6;border-radius:8px}.bar{height:7px;background:#168779;border-radius:8px}footer{font-size:12px;color:#6b8193;margin:28px 0}dialog{border:0;border-radius:13px;box-shadow:0 25px 100px #051d3d40;padding:28px;max-width:760px;width:calc(100% - 32px);color:#19354c}dialog::backdrop{background:#0c223790}.dialog-title{display:flex;justify-content:space-between;align-items:center}.dialog-title h2{margin-top:8px}.ghost{border:0}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-top:18px}.wide{grid-column:1/-1}.duration{background:#edf8f4;padding:16px;display:flex;justify-content:space-between;margin-top:20px;border-radius:6px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}#error{color:#ab302e;font-size:14px}#toast{position:fixed;bottom:24px;right:25px;padding:15px 22px;background:#143d35;color:white;border-radius:8px;display:none;z-index:5}.note{background:#fff5dd;padding:14px 18px;border-radius:6px;font-size:14px;margin-top:20px}.history-item{padding:16px 0;border-bottom:1px solid #ddd;line-height:1.6} @media(max-width:1000px){aside{width:185px;padding:25px 15px}main{margin-left:185px;padding:22px}.toolbar{flex-wrap:wrap}.period{margin-left:0}.summaries{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:100%;padding:17px}.brand{font-size:28px}.brand span,.section-label,.side-bottom{display:none}nav{display:flex;overflow:auto;margin-top:12px}nav button{white-space:nowrap;width:auto;font-size:13px;padding:10px}main{margin:0;padding:16px}header{align-items:flex-start;margin:24px 0;flex-wrap:wrap}h1{font-size:27px}.cards{gap:8px;grid-template-columns:1fr}.card{padding:18px;display:flex;align-items:center;justify-content:space-between}.card p{margin:0}.card small{display:none}.toolbar{gap:15px}.fields{grid-template-columns:1fr 1fr}.panel-head{flex-wrap:wrap}.demo{gap:6px}.period{width:100%}dialog{padding:20px}}

/* Form layout: allow controls and grid tracks to shrink within the dialog. */
dialog{width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden}dialog form,.fields,.fields label{min-width:0;max-width:100%}.fields{grid-template-columns:repeat(3,minmax(0,1fr))}.fields input,.fields select,.fields textarea{width:100%;min-width:0;max-width:100%;font-size:16px}.fields textarea{resize:vertical}.dialog-title{gap:16px}.dialog-title>div{min-width:0}.dialog-actions{flex-wrap:wrap}.history-item{overflow-wrap:anywhere}@media(max-width:800px){.fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){dialog{padding:18px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.fields{grid-template-columns:minmax(0,1fr)}.dialog-actions button{flex:1}.duration{gap:12px;flex-wrap:wrap}}
#authPanel{max-width:440px;margin:7vh auto;padding:32px;background:white;border:1px solid #dde5ed;border-radius:12px}#authPanel .brand{color:#096c60}#authPanel .brand span{color:#667e91}#authForm{display:grid;gap:20px}#authHelp{font-size:14px;line-height:1.6;color:#5c7181}#authError,#adminMessage{white-space:pre-wrap;overflow-wrap:anywhere}body:not(.signed-out) #authPanel{display:none}.signed-out>aside,.signed-out>main{display:none}#authPanel [hidden]{display:none}#usersButton[hidden]{display:none}#userList{max-height:45vh;overflow:auto}.admin-user{padding:14px 0;border-bottom:1px solid #dde5ed;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.admin-user strong{flex:1;min-width:210px}.admin-user small{color:#4c687e}#projectForm{display:flex;gap:12px;align-items:end;margin:20px 0;flex-wrap:wrap}#adminMessage a{overflow-wrap:anywhere}

.refpick{display:flex;gap:8px;margin-top:6px}.refpick select{width:auto;min-width:96px}
.toolbar .filter select{display:block;margin-top:6px;width:220px;max-width:100%}
@media(max-width:700px){.toolbar .filter{width:100%}.toolbar .filter select{width:100%}}
.toolbar [hidden]{display:none!important}
.user-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:end;margin:12px 0 18px;padding:14px;border:1px solid #e0e7ec;border-radius:8px}.user-form h3{grid-column:1/-1;margin:0;font-size:15px}.user-form input,.user-form select{width:100%;display:block;margin-top:6px}
.note-limit{margin:10px 20px;color:#5b7083;font-size:13px}

.payroll-view #new,.payroll-view .toolbar .filter{display:none!important}.masked{color:#8aa0b2;letter-spacing:1px}.pay-note{background:#fdecea;color:#7a2520}#payDialog h3{font-size:15px;margin:18px 0 4px}#payDialog table{margin:10px 0}#payError{color:#ab302e;font-size:14px}#payDialog [hidden]{display:none}
.compras-view #new,.compras-view .toolbar{display:none!important}.cp-note{background:#eef3fb;color:#2c4a6b}.cp-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 0}.cp-tabs button{min-height:38px}.cp-tabs button.active{background:#096c60;color:#fff;border-color:#096c60}.cp-off td{color:#8aa0b2}.panel-head small{font-weight:400;color:#6c8191;margin-left:6px}#cpSearch{min-width:0;width:220px;padding:8px}.cp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;padding:18px}.cp-card{border:1px solid #e0e7ec;border-radius:8px;padding:14px}.cp-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.cp-card ol{padding-left:20px;margin:10px 0}.cp-card li{margin:6px 0}.cp-card li>span{display:inline-flex;justify-content:space-between;gap:10px;width:100%}.cp-etapa{display:grid;grid-template-columns:1fr 90px 42px;gap:8px;margin:8px 0}.cp-bad{color:#ab302e}#cpError{color:#ab302e;font-size:14px}#cpDialog [hidden]{display:none}@media(max-width:700px){#cpSearch{width:100%}.cp-tabs{overflow:auto;flex-wrap:nowrap}.cp-tabs button{white-space:nowrap}}
.cp-st{display:inline-block;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap}.cp-st-PAGO{background:#C6EFCE;color:#006100}.cp-st-PENDENTE{background:#FFC7CE;color:#9C0006}.cp-st-PARCIAL{background:#FFEB9C;color:#9C5700}.cp-st-CANCELADO{background:#C00000;color:#fff}.cp-filters{display:flex;gap:12px;flex-wrap:wrap;padding:14px 24px;border-bottom:1px solid #e7edf1}.cp-filters label{font-size:13px}.cp-filters input,.cp-filters select{padding:8px;min-width:150px}.cp-filters input{min-width:260px}.cp-table td{padding:12px 14px}.cp-table th{padding:12px 14px}.cp-table tfoot td{background:#f9fbfc;border-top:2px solid #e0e7ec}.cp-detail{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px 16px;background:#f6f9fb;padding:14px;border-radius:8px}.cp-detail span{display:block;font-size:12px;color:#62798c}.cp-detail b{font-size:15px}.cp-warn{background:#fff5dd;padding:10px 12px;border-radius:6px;margin:4px 0}.cp-actions{flex-wrap:wrap;margin-top:6px}.cp-marks{flex-wrap:wrap}.cp-marks button{font-size:13px}#cpDialog h3{font-size:15px;margin:10px 0 6px}@media(max-width:700px){.cp-filters input,.cp-filters select{min-width:0;width:100%}.cp-filters label{width:100%}}
.cp-filters select{max-width:240px}.cp-fprojs{min-width:260px}.cp-chips{display:flex;flex-wrap:wrap;gap:6px}.cp-chip{min-height:28px;padding:3px 9px;font-size:12px;background:#e8f4f1;border-color:#bfe2d8;color:#256d61}.cp-fclear{display:flex;align-items:flex-end}.cp-fclear button{min-height:38px}@media(max-width:700px){.cp-filters select{max-width:none}.cp-fprojs{min-width:0}}


/* Revisão 11: dica da atividade e cadastros de softwares e atividades */
.hint{display:block;font-size:12px;font-weight:400;color:#647e91;line-height:1.35;min-height:1.35em}
#catDialog .cat-tabs{margin:14px 0 6px}
#catDialog .cat-form{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,.6fr)}
#catDialog .wide{grid-column:auto}
#catDialog .cat-form .dialog-actions{grid-column:1/-1;margin-top:0}
#catDialog tr.inactive td{opacity:.55}
#catDialog td small{display:block}
@media (max-width:700px){#catDialog .cat-form{grid-template-columns:1fr}}

/* Revisão 12: botão Novo projeto no formulário */
.link-btn{align-self:flex-start;font-size:12px;font-weight:600;padding:4px 10px;margin-top:-2px}

/* Revisão 13: ocultar usuários desativados em "Usuários e projetos" */
#adminDialog:not(.show-inactive) .inactive-user{display:none}
#adminDialog .check-inline{flex-direction:row;align-items:center;gap:8px;font-weight:500;margin:14px 0 4px;cursor:pointer}
#adminDialog .check-inline input{width:auto;margin:0}

/* Revisão 15: filtro Projeto digitável e filtro Disciplina */
.toolbar .filter input{display:block;margin-top:6px;width:220px;max-width:100%}
@media(max-width:700px){.toolbar .filter input{width:100%}}
main .toolbar{flex-wrap:wrap}

/* Revisão 17: painel de totais em Compras e terceiros */
.cp-dash{margin:6px 0 18px}
.cp-dash h3{margin:0 0 10px;font-size:15px}
.cp-dash h3 small{font-weight:400;color:#647e91;margin-left:6px}
.cp-dash-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.cp-kpi{background:#f6f9fb;border:1px solid #e0e7ec;border-radius:10px;padding:14px 16px}
.cp-kpi p{margin:0;font-size:12px;color:#647e91;text-transform:uppercase;letter-spacing:.4px}
.cp-kpi strong{display:block;font-size:22px;margin:6px 0 2px;color:#19354c}
.cp-kpi small{color:#647e91;font-size:12px}
.cp-kpi-main{background:#0c2237;border-color:#0c2237}
.cp-kpi-main p,.cp-kpi-main small{color:#9ab0c2}
.cp-kpi-main strong{color:#58dbbf}
.cp-dash-st{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px;font-size:13px;color:#19354c}

/* Revisão 18: Controle de Obras */
#obDialog{width:min(1000px,calc(100vw - 32px))}
.ob-tag{display:inline-block;padding:2px 8px;border-radius:10px;background:#e6f4f1;color:#0c6b58;font-size:11px;font-weight:700;letter-spacing:.3px}
.ob-imp{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:8px}
#obLiq{font-size:14px}
@media(max-width:700px){.ob-imp{grid-template-columns:1fr 1fr}}

/* Revisão 19: 4N Engenharia */
#n4Dialog{width:min(1100px,calc(100vw - 32px))}
.n4-disc{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:8px}
.n4-disc .check-inline{flex-direction:row;align-items:center;gap:6px;font-weight:500}
.n4-disc input{width:auto;margin:0}

/* Revisão 21: logotipos i2N e 4N */
.brand-logos{display:flex;gap:10px;align-items:center;letter-spacing:0;font-size:0}
.brand-logos img{width:calc(50% - 5px);max-width:92px;height:auto;display:block}
#authPanel .brand-logos{justify-content:flex-start}
#authPanel .brand-logos img{max-width:96px}
/* Revisão 31: logotipo da Equinócio Soluções no lugar dos logotipos i2N e 4N */
.brand-logos img.logo-eq{width:100%;max-width:180px}
#authPanel .brand-logos img.logo-eq{max-width:200px}
.brand-sub{font-size:12px;letter-spacing:3px;color:#667e91;margin:12px 0 0}
@media(max-width:700px){.brand-logos img{max-width:52px}}

/* Revisão 22: cabeçalhos e resumos congelados ao rolar a página */
.panel{overflow:clip}
#content .table-wrap{overflow:auto}
#content thead th{position:sticky;top:0;z-index:3;box-shadow:inset 0 -1px 0 #e3e9ee}
#content .panel:not(:has(.cp-dash))>.panel-head{position:sticky;top:0;z-index:4;background:#fff}
#content .cp-dash{position:sticky;top:0;z-index:5;background:#fff;padding:12px 0 10px;margin-top:0;box-shadow:0 8px 10px -10px #0c223740}
body.summary-view #content>.cards,body.payroll-view #content>.cards{position:sticky;top:0;z-index:6;margin:0 0 12px;padding:12px 0;box-shadow:0 8px 10px -10px #0c223740}
@media(max-width:700px){body.summary-view #content>.cards,body.payroll-view #content>.cards,#content .cp-dash{position:static;box-shadow:none}}

/* Revisão 24: I2N Engenharia */
#i2Dialog{width:min(1100px,calc(100vw - 32px))}
.i2-disc{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px 14px;margin-top:8px}
.i2-disc label{font-size:12px}
.i2-total{margin:10px 0 0}

/* Revisão 63: uso no celular — menu recolhível, cabeçalho compacto, tabelas com rolagem lateral, filtros e resumos empilhados */
.nav-toggle{display:none}
@media(max-width:700px){
html,body{overflow-x:hidden}
body aside{position:sticky;top:0;z-index:50;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;box-shadow:0 2px 12px #0c223755}
body aside .brand-logos{flex:0 0 auto}
body aside .brand-logos img.logo-eq{max-width:96px}
body .nav-toggle{display:inline-flex;align-items:center;gap:8px;max-width:calc(100% - 110px);min-height:40px;padding:8px 12px;background:#204052;color:#fff;border-color:#2a4d62;font-size:14px;font-weight:700}
body .nav-toggle span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body aside nav#nav{display:none;flex-basis:100%;flex-direction:column;margin:2px 0 4px;max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}
body.nav-open aside nav#nav{display:flex}
body aside nav button{width:100%;white-space:normal;text-align:left;font-size:15px;padding:12px 14px;margin:1px 0;min-height:44px}
body main{margin:0;padding:10px 10px 24px}
body .demo{gap:6px 10px;padding:8px 10px;font-size:12px;align-items:center}
body .demo button{min-height:34px;padding:5px 10px;font-size:12px}
body header{margin:14px 0 10px;gap:10px;flex-wrap:wrap}
body header>div{flex:1 1 100%;min-width:0}
body header #new{width:100%}
body h1{font-size:23px;margin:6px 0}
body h2{font-size:18px}
body .toolbar{padding:12px;gap:10px}
body .toolbar>label{flex:1 1 calc(50% - 10px);min-width:0}
body .toolbar .filter input,body .toolbar .filter select{width:100%}
body .period{width:100%;margin-left:0}
body .panel{margin-top:14px}
body .panel-head{padding:12px 14px;gap:8px;flex-wrap:wrap}
body .panel-head>*{min-width:0}
body .row-actions{flex-wrap:wrap}
body table{font-size:13px}
body th{padding:10px 12px}
body td{padding:11px 12px}
body .cp-table td,body .cp-table th{padding:9px 10px}
body #content .table-wrap{-webkit-overflow-scrolling:touch;max-width:100%}
body .cp-filters{padding:10px 12px;gap:8px}
body .cp-filters label{flex:1 1 calc(50% - 8px);min-width:0;width:auto}
body .cp-filters input,body .cp-filters select{width:100%;min-width:0;max-width:none}
body .cp-dash h3{font-size:14px}
body .cp-dash-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body .cp-kpi{padding:10px 12px;min-width:0}
body .cp-kpi p{font-size:11px}
body .cp-kpi strong{font-size:17px;overflow-wrap:anywhere}
body .cp-tabs,body .fin-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:thin}
body .cp-tabs button,body .fin-tabs button{white-space:nowrap;flex:0 0 auto}
body .cp-detail{grid-template-columns:repeat(2,minmax(0,1fr))}
body #content .pj-grid2,body #content .pj-ents,body #content .art-cons,body #content .art-resp,body #content .fin-grid{grid-template-columns:minmax(0,1fr)!important}
body .fin-card,body .cp-card{min-width:0;overflow-x:auto}
body .pg-head label{flex:1 1 calc(50% - 10px);min-width:0}
body .pg-head .row-actions{width:100%}
body input,body select,body textarea{font-size:16px}
body dialog .row-actions button{flex:1 1 auto}
body #toast{left:10px;right:10px;bottom:10px;text-align:center}
body #content .table-wrap>table,body .fin-card table{min-width:620px}
body #content .table-wrap>table td small,body .fin-card table td small{overflow-wrap:anywhere}
body .cp-note,body .note{font-size:13px;padding:10px 12px}
}
@media(max-width:420px){
body .toolbar>label,body .cp-filters label,body .pg-head label{flex-basis:100%}
body .cp-detail{grid-template-columns:minmax(0,1fr)}
}

/* Revisão 73: menu lateral cabe em qualquer altura de monitor (itens mais compactos e rolagem só na lista do menu) */
@media (min-width:701px){
body aside{overflow:hidden}
body aside nav#nav{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3b5872 transparent;margin:0 -10px 0 0;padding-right:6px}
body aside nav#nav button{padding:11px 13px;margin:2px 0;font-size:14.5px;line-height:1.25;min-height:0}
body aside .side-bottom{flex:0 0 auto;padding-top:12px}
}
@media (min-width:701px) and (max-height:960px){
body aside{padding-top:16px;padding-bottom:14px}
body aside .brand-logos img.logo-eq{max-width:120px}
body aside .section-label{margin:14px 12px 8px}
body aside nav#nav button{padding:7px 12px;margin:1px 0;font-size:14px}
}
@media (min-width:701px) and (max-height:620px){
body aside .brand-logos img.logo-eq{max-width:84px}
body aside .section-label{display:none}
}
/* Revisão 89: topo só com Avisos e Sair (Usuários e Softwares ficam em Configurações) */
#usersButton,#catButton{display:none!important}
/* Revisão 91: cores dos cards do Planejamento Laudos (mesmas do Status; Visitas hoje azul, Sem data cinza, Cronograma vencido vermelho) */
.ro-dash .cp-kpi:nth-child(1){background:#ffc7ce;border-color:#9c0006;border-left:4px solid #9c0006;color:#9c0006}.ro-dash .cp-kpi:nth-child(1) p,.ro-dash .cp-kpi:nth-child(1) strong,.ro-dash .cp-kpi:nth-child(1) small{color:#9c0006}
.ro-dash .cp-kpi:nth-child(2){background:#ffeb9c;border-color:#9c5700;border-left:4px solid #9c5700;color:#9c5700}.ro-dash .cp-kpi:nth-child(2) p,.ro-dash .cp-kpi:nth-child(2) strong,.ro-dash .cp-kpi:nth-child(2) small{color:#9c5700}
.ro-dash .cp-kpi:nth-child(3){background:#fde9d9;border-color:#b5560b;border-left:4px solid #b5560b;color:#b5560b}.ro-dash .cp-kpi:nth-child(3) p,.ro-dash .cp-kpi:nth-child(3) strong,.ro-dash .cp-kpi:nth-child(3) small{color:#b5560b}
.ro-dash .cp-kpi:nth-child(4){background:#ece6fb;border-color:#5b3fb0;border-left:4px solid #5b3fb0;color:#5b3fb0}.ro-dash .cp-kpi:nth-child(4) p,.ro-dash .cp-kpi:nth-child(4) strong,.ro-dash .cp-kpi:nth-child(4) small{color:#5b3fb0}
.ro-dash .cp-kpi:nth-child(5){background:#c6efce;border-color:#006100;border-left:4px solid #006100;color:#006100}.ro-dash .cp-kpi:nth-child(5) p,.ro-dash .cp-kpi:nth-child(5) strong,.ro-dash .cp-kpi:nth-child(5) small{color:#006100}
.ro-dash .cp-kpi:nth-child(6){background:#ddebf7;border-color:#1f4e79;border-left:4px solid #1f4e79;color:#1f4e79}.ro-dash .cp-kpi:nth-child(6) p,.ro-dash .cp-kpi:nth-child(6) strong,.ro-dash .cp-kpi:nth-child(6) small{color:#1f4e79}
.ro-dash .cp-kpi:nth-child(7){background:#eceff3;border-color:#4a5866;border-left:4px solid #4a5866;color:#4a5866}.ro-dash .cp-kpi:nth-child(7) p,.ro-dash .cp-kpi:nth-child(7) strong,.ro-dash .cp-kpi:nth-child(7) small{color:#4a5866}
.ro-dash .cp-kpi:nth-child(8){background:#c00000;border-color:#ffffff;border-left:4px solid #ffffff;color:#ffffff}.ro-dash .cp-kpi:nth-child(8) p,.ro-dash .cp-kpi:nth-child(8) strong,.ro-dash .cp-kpi:nth-child(8) small{color:#ffffff}

/* Revisão 92: cores dos cards de todos os módulos (data-kc, definido em notificacoes.js pelo nome do card) */
.cp-kpi[data-kc="verde"]{background:#c6efce;border-color:#006100;border-left:4px solid #006100;color:#006100}.cp-kpi[data-kc="verde"] p,.cp-kpi[data-kc="verde"] strong,.cp-kpi[data-kc="verde"] small{color:#006100}
.cp-kpi[data-kc="rosa"]{background:#ffc7ce;border-color:#9c0006;border-left:4px solid #9c0006;color:#9c0006}.cp-kpi[data-kc="rosa"] p,.cp-kpi[data-kc="rosa"] strong,.cp-kpi[data-kc="rosa"] small{color:#9c0006}
.cp-kpi[data-kc="amarelo"]{background:#ffeb9c;border-color:#9c5700;border-left:4px solid #9c5700;color:#9c5700}.cp-kpi[data-kc="amarelo"] p,.cp-kpi[data-kc="amarelo"] strong,.cp-kpi[data-kc="amarelo"] small{color:#9c5700}
.cp-kpi[data-kc="laranja"]{background:#fde9d9;border-color:#b5560b;border-left:4px solid #b5560b;color:#b5560b}.cp-kpi[data-kc="laranja"] p,.cp-kpi[data-kc="laranja"] strong,.cp-kpi[data-kc="laranja"] small{color:#b5560b}
.cp-kpi[data-kc="lilas"]{background:#ece6fb;border-color:#5b3fb0;border-left:4px solid #5b3fb0;color:#5b3fb0}.cp-kpi[data-kc="lilas"] p,.cp-kpi[data-kc="lilas"] strong,.cp-kpi[data-kc="lilas"] small{color:#5b3fb0}
.cp-kpi[data-kc="azul"]{background:#ddebf7;border-color:#1f4e79;border-left:4px solid #1f4e79;color:#1f4e79}.cp-kpi[data-kc="azul"] p,.cp-kpi[data-kc="azul"] strong,.cp-kpi[data-kc="azul"] small{color:#1f4e79}
.cp-kpi[data-kc="cinza"]{background:#eceff3;border-color:#4a5866;border-left:4px solid #4a5866;color:#4a5866}.cp-kpi[data-kc="cinza"] p,.cp-kpi[data-kc="cinza"] strong,.cp-kpi[data-kc="cinza"] small{color:#4a5866}
.cp-kpi[data-kc="alerta"]{background:#c00000;border-color:#ffffff;border-left:4px solid #ffffff;color:#ffffff}.cp-kpi[data-kc="alerta"] p,.cp-kpi[data-kc="alerta"] strong,.cp-kpi[data-kc="alerta"] small{color:#ffffff}

/* Revisão 94: cores extras para conjuntos com muitos cards */
.cp-kpi[data-kc="verdeagua"]{background:#d5f2ee;border-color:#0c6b58;border-left:4px solid #0c6b58;color:#0c6b58}.cp-kpi[data-kc="verdeagua"] p,.cp-kpi[data-kc="verdeagua"] strong,.cp-kpi[data-kc="verdeagua"] small{color:#0c6b58}
.cp-kpi[data-kc="bege"]{background:#efe4d6;border-color:#6b4a1f;border-left:4px solid #6b4a1f;color:#6b4a1f}.cp-kpi[data-kc="bege"] p,.cp-kpi[data-kc="bege"] strong,.cp-kpi[data-kc="bege"] small{color:#6b4a1f}

/* Revisão 168: cores fixas (5º item do obKpis) — vermelho e roxo com fonte branca (Custos e Margens dos laudos: Prejuízos e Custo total) */
.cp-kpi[data-kc="vermelho"]{background:#c00000;border-color:#8b0000;border-left:4px solid #8b0000;color:#ffffff}
.cp-kpi[data-kc="vermelho"] p,.cp-kpi[data-kc="vermelho"] strong,.cp-kpi[data-kc="vermelho"] small{color:#ffffff}
.cp-kpi[data-kc="roxo"]{background:#6a2fb0;border-color:#4a1d82;border-left:4px solid #4a1d82;color:#ffffff}
.cp-kpi[data-kc="roxo"] p,.cp-kpi[data-kc="roxo"] strong,.cp-kpi[data-kc="roxo"] small{color:#ffffff}

/* Revisão 170: etiqueta EM CARTÓRIO (Controle de Projetos / Alpha3D) */
.cp-st.cp-st-CARTORIO{background:#5b3fb0;color:#ffffff}

/* Revisão 173: cores fixas verde e azul com fonte branca (Custos e Margens dos laudos: Pagamento realizado e Saldo a receber do sócio 25%) */
.cp-kpi[data-kc="verdeforte"]{background:#1e7b34;border-color:#145523;border-left:4px solid #145523;color:#ffffff}
.cp-kpi[data-kc="verdeforte"] p,.cp-kpi[data-kc="verdeforte"] strong,.cp-kpi[data-kc="verdeforte"] small{color:#ffffff}
.cp-kpi[data-kc="azulforte"]{background:#1f4e79;border-color:#143552;border-left:4px solid #143552;color:#ffffff}
.cp-kpi[data-kc="azulforte"] p,.cp-kpi[data-kc="azulforte"] strong,.cp-kpi[data-kc="azulforte"] small{color:#ffffff}

/* Revisão 179: etapas da aprovação — aprovado em azul, pendente em vermelho */
.apr-et{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;font-size:12px;margin-top:4px;line-height:1.35}
.apr-ok{color:#1f4e79;font-weight:600}
.apr-pend{color:#c62828}
.apr-atual{font-weight:700;background:#fdecec;border-radius:4px;padding:0 5px}
.apr-seta{color:#9aa7b2}
