:root{--g:#079b1b;--g2:#6cff13;--dark:#073b12;--soft:#efffed;--line:#dfe9df;--muted:#687268;--danger:#ef2b2d;--warn:#ffbf00}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:#102016;background:#f7faf7}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 80% 10%,#caffb5,transparent 32%),linear-gradient(135deg,#fff 35%,#e9ffe2)}.login-card{width:min(430px,92vw);padding:38px;border-radius:26px;background:#fff;box-shadow:0 20px 60px #0a6b1922;text-align:center}.brand-mark img,.side-brand img{width:78px;height:78px;object-fit:cover;border-radius:18px}.login-card h1{margin:14px 0 6px;color:var(--dark)}.login-card p{color:var(--muted);margin-bottom:28px}label{display:block;text-align:left;font-weight:600;margin:14px 0}input,select,textarea{width:100%;border:1px solid #ccd8cc;border-radius:10px;padding:11px 12px;font:inherit;background:#fff}textarea{min-height:88px;resize:vertical}.btn{border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}.btn.primary{background:linear-gradient(135deg,var(--g),#19c62b);color:#fff}.btn.outline{background:#fff;border:1px solid var(--g);color:var(--g)}.btn.danger{background:#fff0f0;color:var(--danger)}.full{width:100%;margin-top:8px}.app{display:grid;grid-template-columns:250px 1fr;min-height:100vh}aside{background:#fff;border-right:1px solid var(--line);padding:22px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.side-brand{text-align:center;color:var(--dark);font-size:18px;margin-bottom:28px}.side-brand img{display:block;margin:0 auto 8px;width:70px;height:70px}nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;padding:12px 14px;text-align:left;border-radius:10px;font-weight:650;color:#1e2a20;cursor:pointer}.nav-item.active,.nav-item:hover{background:linear-gradient(90deg,var(--g),var(--g2));color:#fff}.logout{margin-top:auto}main{min-width:0}header{height:100px;padding:24px 30px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(120deg,#fff 45%,#d9ffc8);border-bottom:1px solid var(--line)}header h1{margin:0;color:var(--dark);font-size:32px}header p{margin:4px 0 0;color:var(--muted)}.user{font-weight:700;display:flex;gap:9px;align-items:center}.avatar{color:var(--g);font-size:28px}#content{padding:24px 30px}.grid{display:grid;gap:16px}.kpis{grid-template-columns:repeat(5,minmax(150px,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 5px 18px #0c4c1610}.kpi strong{font-size:30px;color:var(--dark);display:block;margin-top:6px}.kpi span{font-weight:650}.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px}.toolbar .search{max-width:430px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}table{width:100%;border-collapse:collapse;min-width:800px}th{background:#dcffd4;color:var(--dark);text-align:left;padding:12px}td{padding:12px;border-top:1px solid #edf1ed}.status{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800}.aprovado{background:#d9ffd8;color:#087d16}.em_analise{background:#fff1b8;color:#8a6500}.reprovado{background:#ffd8d8;color:#b31216}.em_aberto,.rascunho{background:#dcefff;color:#1763a6}.actions{display:flex;gap:6px}.iconbtn{border:0;background:#effbef;color:var(--g);border-radius:8px;padding:7px 9px;cursor:pointer}.iconbtn.red{color:var(--danger);background:#fff1f1}.form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.span2{grid-column:span 2}.span4{grid-column:1/-1}.section-title{margin:2px 0 14px;color:var(--dark)}.summary{display:flex;gap:22px;justify-content:flex-end;padding:14px;background:#e7ffe1;border-radius:12px;margin-top:14px;font-weight:800}.empty{text-align:center;color:var(--muted);padding:38px}.two{grid-template-columns:1fr 1.6fr}.bars{height:260px;display:flex;align-items:flex-end;gap:14px;padding:20px}.bar{flex:1;background:linear-gradient(var(--g2),var(--g));border-radius:8px 8px 0 0;min-height:8px}.wa{background:#18b84b!important;color:#fff!important}.modal{position:fixed;inset:0;background:#0007;display:grid;place-items:center;z-index:10}.modal-card{background:#fff;border-radius:18px;padding:22px;width:min(760px,94vw);max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:#eee;border-radius:50%;width:34px;height:34px;cursor:pointer}@media(max-width:1050px){.kpis{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}}@media(max-width:760px){.app{grid-template-columns:1fr}aside{position:static;height:auto}.side-brand{display:none}nav{grid-template-columns:repeat(2,1fr)}header{height:auto;padding:18px}#content{padding:16px}.kpis,.form-grid{grid-template-columns:1fr}.span2,.span4{grid-column:auto}.user{display:none}}

.client-select-row{display:flex;gap:8px;align-items:center}.client-select-row select{flex:1}.client-add{flex:0 0 44px;height:44px;padding:0;font-size:24px;line-height:1;background:linear-gradient(135deg,var(--g),#19c62b);color:#fff;border-radius:10px}

.logo-config{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px;border:1px solid #dce8dc;border-radius:14px;background:#f8fff6}.logo-config input[type=file]{margin-top:8px}.logo-help{margin:5px 0;color:#687268;font-size:13px}.logo-preview-wrap{width:100px;height:100px;border:1px solid #dce8dc;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.logo-preview-wrap img{max-width:90px;max-height:90px;object-fit:contain}@media(max-width:700px){.logo-config{flex-direction:column;align-items:flex-start}}
.product-select-row{display:flex;gap:7px;align-items:center;margin-bottom:7px}.product-select-row select{flex:1;min-width:180px}.product-add{flex:0 0 40px;height:40px;padding:0;font-size:22px;line-height:1;background:linear-gradient(135deg,var(--g),#19c62b);color:#fff;border-radius:10px}.modal-sub{margin:-4px 0 12px;color:var(--muted);font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
/* V1.7.1 — itens no padrão Germagran + botões proporcionais */
.client-add{flex:0 0 38px!important;width:38px!important;height:38px!important;padding:0!important;font-size:20px!important;border-radius:9px!important}
.item-entry{display:grid;grid-template-columns:minmax(260px,2.2fr) 38px repeat(4,minmax(105px,1fr)) auto;gap:10px;align-items:end;padding:14px 0 16px}.item-entry label{margin:0;font-size:12px;color:var(--dark)}.item-entry label input{margin-top:6px}.item-search{position:relative}.item-search select{height:42px;padding-left:34px}.search-icon{position:absolute;left:12px;top:9px;z-index:1;font-size:20px;color:var(--dark)}.mini-plus{width:38px;height:42px;border:0;border-radius:9px;background:linear-gradient(135deg,var(--g),#19c62b);color:#fff;font-size:22px;font-weight:800;cursor:pointer}.item-add-btn{height:42px;white-space:nowrap}.draft-desc{grid-column:1/3}.draft-desc input{height:38px}.budget-items table{min-width:1050px}.budget-items th{background:var(--dark);color:#fff}.budget-items td{vertical-align:middle}.row-edit{min-width:72px;padding:7px 8px;border-radius:7px}.budget-items td:nth-child(2) .row-edit{min-width:190px}.row-actions{white-space:nowrap}.summary{margin-top:16px}
@media(max-width:1200px){.item-entry{grid-template-columns:minmax(250px,2fr) 38px repeat(2,1fr)}.item-add-btn{grid-column:auto}.draft-desc{grid-column:1/3}}
\n/* V1.7.2 — padronização Cliente/Status + correção da inclusão de itens */
#forc .client-select-row select,
#forc #status{height:38px!important;min-height:38px!important;padding-top:6px!important;padding-bottom:6px!important}
#forc .client-add{height:38px!important;min-height:38px!important;flex-basis:38px!important}
/* V1.8 - Novo Orçamento no padrão de linhas editáveis */
.novo-v18{padding:20px}.novo-head{align-items:end}.novo-head label{margin:8px 0}.novo-head input,.novo-head select,.client-select-row select{height:42px;padding:8px 12px}.client-select-row{display:flex;gap:10px;align-items:stretch}.client-select-row select{flex:1}.client-add{width:42px;height:42px;min-width:42px;padding:0;border:0;border-radius:9px;background:linear-gradient(135deg,var(--g),#19c62b);color:#fff;font-size:25px;font-weight:800;line-height:42px;cursor:pointer}.cliente-detalhes{margin:10px 0 26px;padding:16px;border:1px solid var(--line);border-radius:14px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px 22px;background:#fff}.cliente-detalhes div{display:grid;gap:5px}.cliente-detalhes b{font-size:13px;color:var(--dark)}.cliente-detalhes span{min-height:42px;border:1px solid #d7e1d7;border-radius:9px;padding:10px 12px;background:#fafcfa}.itens-head{display:flex;align-items:center;justify-content:space-between;margin:12px 0 16px}.itens-head h3{font-size:22px;margin:0;color:var(--dark)}.catalog-row{display:grid;grid-template-columns:minmax(320px,1fr) 48px auto;gap:10px;align-items:center;margin-bottom:12px}.catalog-row input{height:46px}.mini-plus-v18{width:46px;height:46px;border:0;border-radius:9px;background:linear-gradient(135deg,var(--g),#19c62b);color:#fff;font-size:26px;font-weight:800;cursor:pointer}.cadastro-add{height:46px;white-space:nowrap}.v18-table table{min-width:1120px}.v18-table th{background:#f4f7f4;color:var(--dark);border-bottom:1px solid var(--line)}.v18-table td{padding:10px 8px}.v18-table .row-edit{height:42px;padding:8px 10px;min-width:90px}.v18-table td:nth-child(2) .row-edit{min-width:210px}.v18-table .area,.v18-table .tot{font-weight:650;white-space:nowrap}.btn-delete-row{border:1px solid #ffb8b8;background:#fff;color:#c71919;border-radius:9px;padding:10px 14px;font-weight:700;cursor:pointer}.novo-v18 .summary{margin-top:14px}
@media(max-width:900px){.cliente-detalhes{grid-template-columns:1fr}.catalog-row{grid-template-columns:1fr 46px}.cadastro-add{grid-column:1/-1}.novo-head{grid-template-columns:1fr}.novo-head .span2{grid-column:auto}}

/* V1.8.1 — alinhamento e cálculos do Novo Orçamento */
.novo-v18{overflow:hidden}
.novo-v18 .catalog-row{grid-template-columns:minmax(260px,520px) 42px auto;justify-content:start;gap:10px}
.novo-v18 .catalog-row input{height:42px}
.novo-v18 .mini-plus-v18{width:42px;height:42px;font-size:23px}
.novo-v18 .cadastro-add{height:42px}
.novo-v18 .v18-table{overflow-x:auto}
.novo-v18 .v18-table table{min-width:1000px;table-layout:fixed}
.novo-v18 .v18-table th,.novo-v18 .v18-table td{padding:9px 6px}
.novo-v18 .v18-table th:nth-child(1){width:52px}
.novo-v18 .v18-table th:nth-child(2){width:210px}
.novo-v18 .v18-table th:nth-child(3),.novo-v18 .v18-table th:nth-child(4){width:130px}
.novo-v18 .v18-table th:nth-child(5){width:90px}
.novo-v18 .v18-table th:nth-child(6){width:105px}
.novo-v18 .v18-table th:nth-child(7){width:145px}
.novo-v18 .v18-table th:nth-child(8){width:120px}
.novo-v18 .v18-table th:nth-child(9){width:95px}
.novo-v18 .v18-table .row-edit{width:100%;min-width:0;height:40px}
.novo-v18 .v18-table td:nth-child(2) .row-edit{min-width:0}
.novo-v18 .money-edit{text-align:right;font-variant-numeric:tabular-nums}
.novo-v18 .area,.novo-v18 .tot{text-align:right}
.novo-v18 .summary{display:flex;flex-wrap:wrap;gap:22px;justify-content:flex-end}
@media(max-width:1100px){.novo-v18 .catalog-row{grid-template-columns:minmax(220px,1fr) 42px auto}}

/* V1.8.2 — tabela e condições comerciais */
.novo-v18 .budget-items table{width:100%;table-layout:fixed;min-width:920px}
.novo-v18 .budget-items th:nth-child(1){width:5%}
.novo-v18 .budget-items th:nth-child(2){width:17%}
.novo-v18 .budget-items th:nth-child(3),.novo-v18 .budget-items th:nth-child(4){width:13%}
.novo-v18 .budget-items th:nth-child(5){width:8%}
.novo-v18 .budget-items th:nth-child(6){width:11%}
.novo-v18 .budget-items th:nth-child(7){width:13%}
.novo-v18 .budget-items th:nth-child(8){width:11%}
.novo-v18 .budget-items th:nth-child(9){width:9%}
.novo-v18 .budget-items td{vertical-align:middle;text-align:center}
.novo-v18 .budget-items td input{width:100%;min-width:0;box-sizing:border-box}
.novo-v18 .budget-items td .desc{text-align:left}
.comercial-v182,.aceite-v182{border:1px solid #d8e6d8;border-radius:13px;padding:16px;margin:16px 0;background:white}
.comercial-grid-v182{display:grid;grid-template-columns:1fr 1fr 3fr;gap:12px}
.comercial-grid-v182 label,.aceite-v182 label{display:flex;flex-direction:column;gap:7px;font-weight:650}
.comercial-grid-v182 input,.aceite-v182 input{height:42px;border:1px solid #cddccd;border-radius:8px;padding:9px;font:inherit;width:100%;box-sizing:border-box}
.total-final-v182{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:15px;font-size:18px}
.total-final-v182 strong{font-size:23px;color:#086b22}
.aceite-v182 h3{margin:0 0 16px}
.aceite-row-v182{display:grid;grid-template-columns:210px 1fr;gap:28px;align-items:end}
.assinatura-v182{text-align:center}.assinatura-v182 div{border-bottom:1px solid #384838;height:36px}.assinatura-v182 strong{display:block;margin-top:8px}
@media(max-width:800px){.comercial-grid-v182{grid-template-columns:1fr}.aceite-row-v182{grid-template-columns:1fr}}

#listTable td.actions{white-space:nowrap}
#listTable td.actions .iconbtn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 3px;border-radius:10px;vertical-align:middle}
.novo-v18 .toolbar svg{vertical-align:middle;margin-right:5px}

/* V1.8.5 — ações coloridas aprovadas */
#listTable td.actions .iconbtn.action-view{background:#0787f8!important;color:#fff!important;border:0!important}
#listTable td.actions .iconbtn.action-edit{background:#ff9000!important;color:#fff!important;border:0!important}
#listTable td.actions .iconbtn.action-whatsapp{background:#00a832!important;color:#fff!important;border:0!important}
#listTable td.actions .iconbtn.action-delete{background:#f0242b!important;color:#fff!important;border:0!important}
#listTable td.actions .iconbtn{width:42px;height:42px;border-radius:10px;transition:filter .15s ease,transform .15s ease}
#listTable td.actions .iconbtn:hover{filter:brightness(.92);transform:translateY(-1px)}
#listTable td.actions .iconbtn svg{width:21px;height:21px}
