
:root{
  --verde-profundo:#1F4317;--off-white:#EBE4DE;--marrom:#622B1C;--laranja:#E27D4C;
  --amarelo:#ECD742;--verde-claro:#98B981;--azul:#91C2D0;--lilas:#CBB1D3;
  --texto:#1F4317;--texto-suave:#4a5a44;--branco-puro:#fff;
  --sombra:0 8px 30px rgba(31,67,23,.12);--sombra-forte:0 14px 45px rgba(31,67,23,.20);
  --radius:14px;--serif:'Besley',Georgia,serif;--sans:'Red Hat Display',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--sans);background:var(--off-white);color:var(--texto);line-height:1.5;-webkit-font-smoothing:antialiased}
.hidden{display:none!important}
.pattern-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:.5}
.pattern-bg svg{position:absolute;width:140%;height:140%;top:-20%;left:-20%}
.topbar{background:var(--verde-profundo);color:var(--off-white);padding:16px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;position:sticky;top:0;z-index:50}
.brand{display:flex;align-items:center;gap:14px}
.brand-logo{height:46px;width:auto;display:block}
.topbar .subtitle{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--verde-claro);font-weight:600}
.btn{font-family:var(--sans);font-weight:600;font-size:15px;border:none;border-radius:40px;padding:13px 26px;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s;display:inline-flex;align-items:center;gap:8px}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--laranja);color:#fff;box-shadow:var(--sombra)}
.btn-primary:hover{background:#d16b3c}
.btn-verde{background:var(--verde-profundo);color:var(--off-white)}
.btn-ghost{background:transparent;color:var(--off-white);border:1.5px solid rgba(235,228,222,.5)}
.btn-ghost:hover{background:rgba(235,228,222,.12)}
.btn-outline{background:transparent;color:var(--verde-profundo);border:1.5px solid var(--verde-profundo)}
.btn-outline:hover{background:var(--verde-profundo);color:var(--off-white)}
.btn-amarelo{background:var(--amarelo);color:var(--verde-profundo)}
.btn-sm{padding:9px 18px;font-size:13px}
.screen{min-height:calc(100vh - 71px)}
.container{max-width:1180px;margin:0 auto;padding:0 26px}
.hero{position:relative;background:var(--verde-profundo);color:var(--off-white);padding:60px 26px 80px;overflow:hidden}
.hero .container{position:relative;z-index:2}
.langbar{display:flex;gap:8px;margin-bottom:26px;flex-wrap:wrap;align-items:center}
.langbar .lbl{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--verde-claro);font-weight:600;margin-right:6px}
.lang-btn{background:transparent;border:1.5px solid rgba(235,228,222,.4);color:var(--off-white);border-radius:30px;padding:7px 16px;font-family:var(--sans);font-weight:600;font-size:13px;cursor:pointer;transition:all .15s}
.lang-btn:hover{background:rgba(235,228,222,.12)}
.lang-btn.active{background:var(--amarelo);color:var(--verde-profundo);border-color:var(--amarelo)}
.hero .eyebrow{display:inline-block;background:var(--lilas);color:var(--verde-profundo);font-weight:700;font-size:12px;letter-spacing:3px;text-transform:uppercase;padding:8px 16px;border-radius:30px;margin-bottom:22px}
.hero h1{font-family:var(--serif);font-weight:800;font-size:clamp(36px,6vw,64px);line-height:1.03;max-width:17ch;margin-bottom:18px}
.hero p.lead{font-size:clamp(16px,2vw,19px);max-width:60ch;color:#d8dcc8;margin-bottom:40px}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:820px}
.choice-card{background:var(--off-white);color:var(--verde-profundo);border-radius:var(--radius);padding:32px;cursor:pointer;transition:transform .18s,box-shadow .18s;border:2px solid transparent;box-shadow:var(--sombra)}
.choice-card:hover{transform:translateY(-4px);box-shadow:var(--sombra-forte)}
.choice-card .tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;padding:5px 12px;border-radius:20px;margin-bottom:16px}
.choice-card.colab .tag{background:var(--verde-claro);color:var(--verde-profundo)}
.choice-card.rh .tag{background:var(--azul);color:var(--verde-profundo)}
.choice-card h3{font-family:var(--serif);font-size:26px;font-weight:700;margin-bottom:8px}
.choice-card p{font-size:15px;color:var(--texto-suave);margin-bottom:20px}
.choice-card .arrow{font-weight:700;color:var(--laranja);font-size:15px}
@media(max-width:820px){.choice-grid{grid-template-columns:1fr}}
.choice-grid-1{grid-template-columns:1fr!important;max-width:460px}
.form-wrap{padding:0 0 80px;background:var(--off-white)}
.section-band{background:var(--lilas);padding:34px 0}
.section-band h2{font-family:var(--serif);font-weight:700;color:var(--verde-profundo);font-size:clamp(26px,4vw,40px)}
.section-band .band-sub{color:#5a4a63;font-weight:500;margin-top:4px;font-size:15px}
.greeting{background:var(--verde-claro);color:var(--verde-profundo);border-radius:12px;padding:14px 18px;margin:-24px 0 20px;position:relative;z-index:2;font-weight:600;box-shadow:var(--sombra)}
.form-card{background:#fff;border-radius:var(--radius);box-shadow:var(--sombra);padding:38px}
.intro-note{background:#f3efe9;border-left:5px solid var(--lilas);border-radius:10px;padding:18px 20px;margin-bottom:30px;font-size:14.5px;color:var(--texto-suave);line-height:1.6}
.prefill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}
.prefill{min-width:0;background:#f7f8f5;border:1px solid #dce3d7;border-radius:12px;padding:20px;margin-bottom:16px}
.prefill-grid>.prefill{margin-bottom:0}
.pf-top{display:flex;flex-direction:column;gap:16px}
.pf-main{min-width:0}
.pf-label{display:block;font-size:13px;font-weight:700;color:var(--texto-suave);margin-bottom:8px;line-height:1.5}
.pf-value{font-size:18px;font-weight:600;line-height:1.5;color:var(--verde-profundo);overflow-wrap:anywhere}
.pf-value.empty{font-size:14px;font-weight:400;color:#626c5b}
.pf-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #dce3d7;padding-top:14px}
.pf-confirm .lbl{font-size:13px;font-weight:600;margin-right:auto}
.pf-btn{font:600 14px var(--sans);padding:9px 16px;min-height:42px;border:1px solid #b4c2ac;border-radius:8px;color:var(--verde-profundo);background:#fff;cursor:pointer}
.pf-btn:hover{background:#edf2e9}
.pf-btn.active[data-v=sim]{background:var(--verde-profundo);border-color:var(--verde-profundo);color:#fff}
.pf-btn.active[data-v=nao]{background:#fff0e7;border-color:#ba602f;color:#843c17}
.pf-btn:focus-visible,.radio-chip input:focus-visible+label{outline:3px solid var(--laranja);outline-offset:3px}
.pf-edit{margin-top:16px;padding-top:16px;border-top:1px solid #dce3d7}
.pf-edit-label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.pf-edit input,.pf-edit select{background:#fff}
.pf-flag{display:none;font-size:11px;font-weight:700;background:#e8efdf;color:var(--verde-profundo);border-radius:5px;padding:3px 8px;margin-top:8px}
.prefill.corrigido .pf-flag{display:inline-block}
.prefill.locked .pf-edit,.prefill.locked .pf-flag,.prefill.missing .pf-confirm{display:none}
.prefill.invalid{border-color:#b03a1e}
#censoForm .fieldset{min-width:0}
#censoForm .fieldset+.fieldset{border-top:1px solid #e1e4dc;padding-top:28px}
#censoForm .grid>.field{min-width:0;padding:18px;border:1px solid #e1e4dc;border-radius:12px;background:#fff}
#censoForm .field>span{font-size:15px;line-height:1.5;margin-bottom:12px}
#censoForm .field>input,#censoForm .field>select,#censoForm .field>textarea{background:#f7f8f5}
@media(max-width:700px){.prefill-grid{grid-template-columns:1fr}.prefill{padding:16px}.pf-value{font-size:17px}}
.fieldset{border:none;margin-bottom:38px}
.fieldset>legend,.block-title{font-family:var(--sans);font-weight:700;font-size:19px;color:var(--verde-profundo);padding-left:16px;margin-bottom:22px;position:relative;display:block}
.fieldset>legend::before,.block-title::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:6px;background:var(--laranja);border-radius:4px}
.section-band-mini{background:var(--verde-profundo);color:var(--off-white);border-radius:var(--radius);padding:22px 26px;margin:10px 0 30px}
.section-band-mini h3{font-family:var(--serif);font-size:24px;font-weight:700}
.section-band-mini p{color:var(--verde-claro);font-size:14px;margin-top:4px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.full{grid-column:1/-1}
label.field{display:block}
label.field>span,.field>span{display:block;font-weight:600;font-size:14px;margin-bottom:7px;color:var(--verde-profundo)}
label.field .req,.field .req{color:var(--laranja)}
input[type=text],input[type=number],input[type=tel],input[type=date],input[type=email],input[type=password],select,textarea{width:100%;font-family:var(--sans);font-size:15px;color:var(--verde-profundo);background:var(--off-white);border:1.5px solid #d8d0c6;border-radius:10px;padding:12px 14px;transition:border .15s,background .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--laranja);background:#fff}
textarea{resize:vertical;min-height:90px}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F4317' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
.radio-row{display:flex;flex-wrap:wrap;gap:10px}
.radio-chip{position:relative}
.radio-chip input{position:absolute;opacity:0;pointer-events:none}
.radio-chip label{display:inline-block;padding:10px 18px;border-radius:30px;cursor:pointer;background:var(--off-white);border:1.5px solid #d8d0c6;font-size:14px;font-weight:500;transition:all .15s}
.radio-chip input:checked+label{background:var(--verde-profundo);color:var(--off-white);border-color:var(--verde-profundo)}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.check-item{display:flex;align-items:center;gap:9px;font-size:14px;background:var(--off-white);border:1.5px solid #d8d0c6;border-radius:10px;padding:11px 13px;cursor:pointer}
.check-item input{width:17px;height:17px;accent-color:var(--laranja);flex:0 0 auto}
.hint{font-size:13px;color:var(--texto-suave);margin-top:6px}
.error-msg{color:#b03a1e;font-size:13px;margin-top:6px;font-weight:600;display:none}
.field.invalid input,.field.invalid select{border-color:#b03a1e}
.field.invalid .error-msg{display:block}
.form-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:10px}
.idioma-row{display:grid;grid-template-columns:1fr 200px;gap:12px;align-items:center;margin-bottom:10px}
.idioma-row .idioma-nome{font-weight:600;font-size:15px;color:var(--verde-profundo);background:var(--off-white);border:1.5px solid #d8d0c6;border-radius:10px;padding:12px 14px}
.btn-add{background:var(--verde-claro);color:var(--verde-profundo);border:none;border-radius:30px;padding:9px 16px;font-family:var(--sans);font-weight:600;font-size:13px;cursor:pointer;margin-top:8px}
.btn-add:hover{background:#89ab72}
.idioma-extra,.info-extra{grid-template-columns:1fr 170px 42px}
.idioma-remove{background:none;border:1.5px solid #d8d0c6;border-radius:10px;color:var(--marrom);font-size:18px;font-weight:700;cursor:pointer;height:46px}
@media(max-width:600px){.idioma-row,.idioma-extra,.info-extra{grid-template-columns:1fr}}
@media(max-width:820px){.grid,.grid-3{grid-template-columns:1fr}.form-card{padding:24px}}
.success-screen,.login-screen{min-height:calc(100vh - 71px);display:flex;align-items:center;justify-content:center;background:var(--verde-profundo);padding:40px 26px;position:relative;overflow:hidden}
.success-inner{position:relative;z-index:2;text-align:center;max-width:600px;color:var(--off-white)}
.success-inner .check{width:92px;height:92px;border-radius:50%;background:var(--amarelo);color:var(--verde-profundo);display:flex;align-items:center;justify-content:center;margin:0 auto 24px;font-size:48px;font-weight:800}
.success-inner .badge-ok{display:inline-block;background:var(--amarelo);color:var(--verde-profundo);font-weight:700;font-size:12px;letter-spacing:3px;text-transform:uppercase;padding:8px 16px;border-radius:30px;margin-bottom:18px}
.success-inner h2{font-family:var(--serif);font-size:clamp(30px,5vw,46px);margin-bottom:16px}
.success-inner p{font-size:17px;color:#d8dcc8;margin-bottom:32px}
.login-card{background:var(--off-white);border-radius:var(--radius);box-shadow:var(--sombra-forte);padding:44px 40px;width:100%;max-width:430px;position:relative;z-index:2}
.login-card .tag{display:inline-block;background:var(--azul);color:var(--verde-profundo);font-weight:700;font-size:11px;letter-spacing:2px;text-transform:uppercase;padding:6px 13px;border-radius:20px;margin-bottom:18px}
.login-card h2{font-family:var(--serif);font-size:30px;color:var(--verde-profundo);margin-bottom:6px}
.login-card p.sub{font-size:14px;color:var(--texto-suave);margin-bottom:28px}
.login-card label.field{margin-bottom:18px}
.login-error{background:#f7dcd3;color:#b03a1e;border-radius:10px;padding:11px 14px;font-size:14px;font-weight:600;margin-bottom:18px;display:none}
.login-hint{margin-top:22px;font-size:12.5px;color:var(--texto-suave);background:#f3efe9;border-radius:10px;padding:12px 14px;line-height:1.6}
.rh-panel,.detail-screen,.dash-screen{padding:0 0 80px}
.rh-header{background:var(--verde-profundo);color:var(--off-white);padding:30px 0 34px}
.rh-header .container{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.rh-header h2{font-family:var(--serif);font-size:clamp(26px,4vw,38px)}
.rh-header p{color:var(--verde-claro);font-size:14px;margin-top:4px}
.stats,.dash-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-top:-30px;position:relative;z-index:3}
.stat,.kpi{background:#fff;border-radius:var(--radius);padding:22px;box-shadow:var(--sombra)}
.stat .num,.kpi .num{font-family:var(--serif);font-size:36px;font-weight:800;color:var(--verde-profundo);line-height:1}
.stat .lbl,.kpi .lbl{font-size:13px;color:var(--texto-suave);margin-top:6px;font-weight:500}
.stat.a,.kpi:nth-child(5n+1){border-top:5px solid var(--laranja)}
.stat.b,.kpi:nth-child(5n+2){border-top:5px solid var(--azul)}
.stat.c,.kpi:nth-child(5n+3){border-top:5px solid var(--amarelo)}
.stat.d,.kpi:nth-child(5n+4){border-top:5px solid var(--verde-claro)}
.kpi:nth-child(5n+5){border-top:5px solid var(--lilas)}
.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:34px 0 20px}
.toolbar .search{flex:1;min-width:220px}
.toolbar .search input,.toolbar select{background:#fff}
.toolbar select{max-width:210px}
.table-wrap{background:#fff;border-radius:var(--radius);box-shadow:var(--sombra);overflow:hidden}
table{width:100%;border-collapse:collapse;font-size:14.5px}
thead{background:var(--verde-profundo);color:var(--off-white)}
th{text-align:left;padding:15px 18px;font-weight:600;font-size:13px}
td{padding:15px 18px;border-bottom:1px solid #eee5db;vertical-align:middle}
tbody tr{cursor:pointer;transition:background .12s}
tbody tr:hover{background:#f5f1eb}
.badge{display:inline-block;font-size:11.5px;font-weight:700;padding:4px 10px;border-radius:20px}
.badge.pend{background:#f7e6b0;color:#7a5c00}
.badge.rev{background:var(--azul);color:var(--verde-profundo)}
.badge.ok{background:var(--verde-claro);color:var(--verde-profundo)}
.badge.op{background:var(--lilas);color:var(--verde-profundo)}
.empty-state,.dash-empty{text-align:center;padding:60px 20px;color:var(--texto-suave)}
.empty-state h3,.dash-empty h3{font-family:var(--serif);color:var(--verde-profundo);font-size:22px;margin-bottom:8px}
.local-warning{background:#f7e6b0;color:#6b4e00;border-radius:10px;padding:12px 16px;font-size:13.5px;margin:18px 0;line-height:1.55}
.detail-hero{background:var(--verde-profundo);color:var(--off-white);padding:26px 0 30px}
.detail-hero .container{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.detail-hero h2{font-family:var(--serif);font-size:clamp(24px,4vw,34px)}
.detail-hero .meta{color:var(--verde-claro);font-size:14px;margin-top:6px}
.detail-cols{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:26px}
@media(max-width:900px){.detail-cols{grid-template-columns:1fr}}
.panel{background:#fff;border-radius:var(--radius);box-shadow:var(--sombra);padding:30px}
.panel h3{font-family:var(--sans);font-weight:700;font-size:18px;color:var(--verde-profundo);padding-left:16px;position:relative;margin-bottom:20px}
.panel h3::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:6px;border-radius:4px}
.panel.colab h3::before{background:var(--verde-claro)}
.panel.rh h3::before{background:var(--laranja)}
.panel.rh{border-top:4px solid var(--laranja)}
.data-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px dashed #e3dccf;font-size:14.5px}
.data-row:last-child{border-bottom:none}
.data-row .k{color:var(--texto-suave);font-weight:500}
.data-row .v{font-weight:600;text-align:right;color:var(--verde-profundo)}
.subhead{font-weight:700;color:var(--laranja);font-size:13px;text-transform:uppercase;letter-spacing:1px;margin:18px 0 6px}
.fb-item{background:var(--off-white);border-radius:10px;padding:12px 14px;margin-bottom:10px;border-left:4px solid var(--verde-claro)}
.fb-item.neg{border-left-color:var(--marrom)}
.fb-item .fb-head{display:flex;justify-content:space-between;font-size:12px;color:var(--texto-suave);margin-bottom:4px}
.fb-item .fb-remove{cursor:pointer;color:var(--marrom);font-weight:700;font-size:16px;background:none;border:none}
.fb-add{display:grid;grid-template-columns:130px 1fr auto;gap:10px;align-items:end}
@media(max-width:600px){.fb-add{grid-template-columns:1fr}}
.save-bar{position:sticky;bottom:0;background:#fff;border-top:2px solid #e3dccf;padding:16px 26px;display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap;z-index:40;box-shadow:0 -6px 20px rgba(31,67,23,.08)}
.save-status{font-size:14px;color:var(--verde-claro);font-weight:600;margin-right:auto;display:none}
.save-status.show{display:inline}
.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:26px}
@media(max-width:820px){.chart-grid{grid-template-columns:1fr}}
.chart-card{background:#fff;border-radius:var(--radius);padding:26px;box-shadow:var(--sombra)}
.chart-card h3{font-family:var(--sans);font-weight:700;font-size:16px;color:var(--verde-profundo);padding-left:14px;position:relative;margin-bottom:20px}
.chart-card h3::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:6px;border-radius:4px;background:var(--laranja)}
.bar-row{display:grid;grid-template-columns:170px 1fr 52px;gap:12px;align-items:center;margin-bottom:11px;font-size:13.5px}
@media(max-width:600px){.bar-row{grid-template-columns:110px 1fr 46px}}
.bar-label{color:var(--texto-suave);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar-track{background:var(--off-white);border-radius:20px;height:22px;overflow:hidden}
.bar-fill{height:100%;border-radius:20px;min-width:3px;transition:width .4s}
.bar-val{font-weight:700;color:var(--verde-profundo);text-align:right}
.toast{position:fixed;top:24px;left:50%;transform:translateX(-50%) translateY(-20px);background:var(--verde-profundo);color:var(--off-white);border-radius:12px;padding:16px 22px;box-shadow:var(--sombra-forte);z-index:200;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:90vw}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast ul{list-style:none}
.toast li{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600}
.toast li .dot{width:22px;height:22px;border-radius:50%;background:var(--amarelo);color:var(--verde-profundo);display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto}
