:root{--navy:#063a67;--blue:#078fe7;--cyan:#16a8df;--teal:#18b8b1;--green:#20c568;--ink:#10233e;--muted:#6b7b91;--line:#dfe8f1;--bg:#f5f9fc;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}aside{position:fixed;inset:0 auto 0 0;width:240px;background:linear-gradient(180deg,#073b67,#032f55);padding:24px 16px;color:#fff;z-index:3}.brand{display:flex;flex-direction:column;align-items:center;margin-bottom:28px}.brand img{width:188px;max-height:150px;object-fit:contain}.brand small{font-size:11px;opacity:.85;margin-top:3px}nav{display:grid;gap:7px}aside button{width:100%;border:0;background:transparent;color:#eaf6ff;text-align:left;padding:13px 14px;border-radius:10px}aside button.active,aside button:hover{background:#087ee7;color:#fff}.bottom{position:absolute;left:16px;right:16px;bottom:22px}header{position:fixed;left:240px;right:0;top:0;height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;z-index:2}header img{height:42px;width:auto}header span{font-size:12px;color:var(--muted)}main{margin-left:240px;padding:94px 28px 40px;max-width:1600px}.mobile-nav{display:none}.hidden{display:none!important}h1{font-size:30px;margin:0 0 5px}h2{font-size:17px;margin:0 0 18px}p{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:25px 0}.cards article,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 24px #16395b0a}.cards article{padding:20px}.cards label{display:block;color:var(--muted);font-size:13px}.cards strong{display:block;font-size:26px;margin-top:8px}.panel{padding:20px;margin-bottom:18px}.panelhead,.pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px}.pagehead{margin-bottom:20px}.primary,.success{border:0;border-radius:9px;padding:11px 16px;color:#fff;font-weight:700}.primary{background:var(--blue)}.success{background:var(--green);width:100%;margin:10px 0}.link{color:var(--blue);background:none;border:0;width:auto!important;padding:8px 0!important}.quotegrid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);gap:18px}.summary{position:static;width:auto;background:none;padding:0;color:var(--ink)}.summary .panel{position:sticky;top:84px}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px}input,select,textarea{width:100%;border:1px solid #cfdce8;border-radius:8px;padding:11px;background:#fff;color:var(--ink)}textarea{min-height:90px;margin-top:12px;resize:vertical}label{font-size:12px;color:var(--muted)}label input,label select{margin-top:5px}.panel h2 i{font-style:normal;background:var(--blue);color:#fff;border-radius:50%;display:inline-grid;place-items:center;width:26px;height:26px;margin-right:7px}.total{background:#eaf6ff;padding:16px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin:15px 0}.total strong{font-size:25px}.internal{background:#ecfbf4;border:1px solid #c6f1dc;border-radius:10px;padding:14px}.internal p{display:flex;justify-content:space-between;margin:10px 0;color:var(--ink)}.internal strong{color:var(--green);font-size:20px}.row{display:grid;grid-template-columns:1.5fr .7fr .7fr .7fr auto;gap:8px;padding:10px;border-bottom:1px solid var(--line);font-size:13px;align-items:center}.empty{padding:24px;text-align:center;color:var(--muted)}@media(max-width:980px){aside{width:78px;padding:18px 10px}.brand img{width:58px;height:58px;object-fit:cover;object-position:left}.brand small,aside button{font-size:0}aside button:first-letter{font-size:20px}header{left:78px}main{margin-left:78px}.cards{grid-template-columns:repeat(2,1fr)}.quotegrid{grid-template-columns:1fr}.summary .panel{position:static}}@media(max-width:640px){aside{display:none}header{left:0;height:60px;padding:0 15px}header img{height:36px;max-width:190px;object-fit:contain}header span{display:none}main{margin:0;padding:78px 14px 92px}.cards{grid-template-columns:repeat(2,1fr);gap:10px}.cards article{padding:14px}.cards strong{font-size:21px}.formgrid{grid-template-columns:1fr 1fr}.quotegrid{display:block}.pagehead{align-items:flex-start}.panel{padding:15px}.row{grid-template-columns:1.4fr .8fr .7fr}.row span:nth-child(4),.row button{display:none}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);z-index:10;box-shadow:0 -6px 24px #16395b14}.mobile-nav button{border:0;background:#fff;color:var(--navy);padding:9px 2px 8px;font-size:20px}.mobile-nav button span{display:block;font-size:9px;margin-top:4px}.mobile-nav button:hover,.mobile-nav button.active{color:var(--blue);background:#f2f8ff}}@media(max-width:420px){.formgrid{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}h1{font-size:25px}}
.sub{margin:-12px 0 15px;font-size:13px}.soft{border:1px solid #b8d8f1;background:#f1f8fe;color:var(--blue);border-radius:9px;padding:9px 12px;font-weight:700}.span2{grid-column:span 2}.span3{grid-column:1/-1}.formgrid label{position:relative}.formgrid label small{font-size:10px}.formgrid label>small:last-child{position:absolute;right:10px;bottom:12px}.areaBadge{display:inline-flex;flex-direction:column;background:#eef9ff;border:1px solid #cdeafa;border-radius:10px;padding:10px 14px;margin-bottom:14px}.areaBadge strong{color:var(--blue);font-size:20px}.areaBadge span{font-size:10px;color:var(--muted)}hr{border:0;border-top:1px solid var(--line);margin:20px 0}.panel h3{margin:0 0 15px}.hint{background:#f2f8fd;border-left:3px solid var(--cyan);padding:11px 13px;border-radius:6px;margin:15px 0;color:#49667f;font-size:12px}.wide{width:100%}.helper{font-size:11px;text-align:center}.addedTitle{font-weight:700;border-top:1px solid var(--line);padding-top:16px;margin-top:16px;display:flex;justify-content:space-between}.addedTitle span{font-weight:400;color:var(--muted)}.itemrow{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.itemrow small{display:block;color:var(--muted);margin-top:3px}.itemrow button{border:0;background:#fff0f0;color:#d84b4b;border-radius:7px;width:30px;height:30px}.check{display:flex!important;align-items:center;gap:8px;color:var(--ink);padding-top:22px}.check input{width:auto;margin:0}.preview{overflow:hidden}.previewBrand{border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:13px}.previewBrand b{display:block;color:var(--navy);font-size:15px}.previewBrand small{color:var(--muted)}.quoteNo{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:15px}.quoteNo b{color:var(--blue)}.prepared{font-size:10px;color:var(--muted);margin-bottom:14px}.prepared strong{display:block;color:var(--ink);font-size:17px;margin-top:3px}.previewLine{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px dashed #e2eaf1;font-size:12px}.previewLine span{color:#526a80}.paymentBox{background:#f3f8fc;border-radius:10px;padding:13px;margin:12px 0}.paymentBox>b{display:block;font-size:10px;color:var(--muted)}.paymentBox>span{display:block;color:var(--blue);font-weight:800;font-size:12px;margin:3px 0 10px}.paymentBox p{display:flex;justify-content:space-between;margin:7px 0;font-size:12px;color:var(--ink)}.validity{text-align:center;color:var(--muted);font-size:10px;margin:13px 0}.settings{max-width:650px}.settings label{display:block;margin-bottom:14px}@media(max-width:640px){.span2,.span3{grid-column:1/-1}.preview{margin-top:4px}.quotegrid .summary{margin-top:0}.areaBadge{width:100%}.check{padding-top:5px}}@media print{body{background:#fff}body>aside,header,.mobile-nav,.pagehead,.quotegrid>div,.summary button{display:none!important}main{margin:0;padding:0}.view{display:none!important}#quote{display:block!important}.quotegrid{display:block}.summary{display:block!important}.summary .panel{border:0;box-shadow:none;max-width:760px;margin:auto}.internal{display:none}.preview{font-size:14px}}
.star{border:0;background:transparent!important;font-size:24px!important;color:#9aabba!important;padding:3px!important;width:auto!important;text-align:center!important}.star.fav{color:#f2b705!important}.productRow{grid-template-columns:36px 1.5fr .55fr .8fr .9fr}.previewItem small{display:block;color:var(--muted);font-size:10px;padding:2px 0 7px}.clientMeasureToggle{padding-top:8px;margin-top:8px}.measureHelp{font-size:10px;color:var(--muted);margin:-2px 0 10px 25px}@media(max-width:640px){.productRow{grid-template-columns:32px 1.4fr .7fr}.productRow span:nth-of-type(2),.productRow span:nth-of-type(3){display:none}}@media print{.clientMeasureToggle,.measureHelp{display:none!important}}
/* MVP 0.6 — Minha Empresa e PDF comercial */
.pdfHead{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border-bottom:2px solid var(--navy);padding-bottom:14px;margin-bottom:15px}.pdfCompany{display:flex;align-items:center;gap:12px;min-width:0}.companyLogo{max-width:180px;max-height:72px;object-fit:contain;object-position:left center}.pdfCompany b{display:block;color:var(--navy);font-size:16px}.pdfCompany small{display:block;color:var(--muted);font-size:10px;line-height:1.45;margin-top:3px}.pdfOrder{text-align:right;white-space:nowrap}.pdfOrder strong{display:block;color:var(--navy);font-size:14px}.pdfOrder span{font-size:10px;color:var(--muted)}.prepared>small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.logoUpload{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center;margin-bottom:18px}.logoPreviewBox{height:120px;border:1px dashed #b9cad8;border-radius:12px;background:#f8fbfd;display:grid;place-items:center;padding:12px;color:var(--muted)}.logoPreviewBox img{max-width:100%;max-height:96px;object-fit:contain}.uploadBtn{display:inline-block;margin-top:10px;background:#eef7ff;border:1px solid #b8d8f1;color:var(--blue);font-weight:700;padding:10px 12px;border-radius:8px;cursor:pointer}.uploadBtn input{display:none}.logoHelp{margin:8px 0 0}.settings>.primary{margin-top:16px}
@media(max-width:640px){.logoUpload{grid-template-columns:1fr}.pdfHead{display:block}.pdfOrder{text-align:left;margin-top:12px}.companyLogo{max-width:145px;max-height:60px}}
@media print{@page{size:A4;margin:12mm}#quote .summary .panel{max-width:none;padding:0}.pdfHead{padding-bottom:5mm;margin-bottom:5mm}.companyLogo{max-width:48mm;max-height:18mm}.previewItem{break-inside:avoid}.previewLine{padding:2.5mm 0}.total{margin:5mm 0;padding:4mm}.paymentBox{break-inside:avoid}.prepared{margin-bottom:5mm}}

/* MVP 0.7 */
.productRow small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.editBtn{border:1px solid #b8d8f1!important;background:#f1f8fe!important;color:var(--blue)!important;border-radius:7px!important;padding:7px 10px!important;width:auto!important;font-size:12px!important}.pdfPrintBtn{width:100%;border:2px solid var(--navy);background:#fff;color:var(--navy);font-weight:800;border-radius:9px;padding:12px 16px;margin-top:2px}.saveStatus{background:#ecfbf4;border:1px solid #bcebd3;color:#14734a;border-radius:8px;padding:10px;margin:10px 0;font-size:11px}.logoDimensions{font-size:11px;color:var(--navy);background:#f3f8fc;border-radius:7px;padding:8px;margin-top:8px}.pdfFooter{border-top:1px solid var(--line);margin-top:18px;padding-top:10px;text-align:center;font-size:9px;color:var(--muted);line-height:1.5}
@media print{.pdfFooter{display:block!important;position:fixed;left:12mm;right:12mm;bottom:7mm}.saveStatus{display:none!important}.pdfPrintBtn{display:none!important}.preview{padding-bottom:20mm!important}}
/* MVP 0.8 — acessibilidade, histórico e fluxo orçamento/pedido */
body{font-size:16px}label{font-size:14px;font-weight:600;color:#526a80}input,select,textarea{padding:14px 13px;font-size:15px;min-height:46px}button{min-height:42px;font-weight:650}.primary,.success,.pdfPrintBtn,.confirmOrderBtn{padding:14px 18px;font-size:15px}.panel h2{font-size:19px}.sub,.hint{font-size:14px}.backBtn{border:0;background:transparent;color:var(--blue);font-weight:750;padding:8px 0;margin-bottom:8px}.headActions{display:flex;gap:8px;align-items:center}.searchbar{display:flex;gap:12px;align-items:center;margin-bottom:16px}.searchbar>input{flex:1}.filters{display:flex;gap:6px}.filter{border:1px solid #cbdbe8;background:#fff;color:var(--navy);border-radius:9px;padding:9px 12px}.filter.active{background:var(--navy);color:#fff}.savedRow{display:grid;grid-template-columns:.7fr 1.5fr .8fr .7fr auto;gap:10px;align-items:center;padding:13px 8px;border-bottom:1px solid var(--line)}.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.badge.quote{background:#eaf6ff;color:#0875be}.badge.order{background:#e9fbf1;color:#16824e}.rowActions{display:flex;gap:6px}.rowActions button{border:1px solid #bdd7ea;background:#fff;color:var(--navy);border-radius:8px;padding:7px 9px;font-size:12px}.confirmOrderBtn{width:100%;border:0;border-radius:9px;background:var(--navy);color:#fff;margin:2px 0 8px}.editingNote{font-size:12px;color:var(--blue);font-weight:700}
@media(max-width:700px){.searchbar{display:block}.filters{margin-top:10px;overflow:auto}.savedRow{grid-template-columns:.8fr 1.5fr .8fr}.savedRow .savedTotal,.savedRow .savedStatus{display:none}.rowActions{grid-column:1/-1}.rowActions button{flex:1}.headActions{width:100%;justify-content:space-between}.pagehead{flex-wrap:wrap}}
/* MVP 0.9 — legibilidade e hierarquia */
.formgrid label,.settings label,#quote label{color:var(--blue);font-weight:700;font-size:13px}.formgrid label small{font-weight:500}.previewItem .previewLine span{font-weight:800;color:var(--ink)}.previewItem small{font-weight:400}.cardFeeInfo{background:#eef9ff;border:1px solid #cdeafa;border-radius:9px;padding:11px 13px;color:var(--navy);font-size:12px;font-weight:700}.paymentBox #paymentDescription{display:block!important;line-height:1.45}.paymentBox #cardFeePreview{display:flex!important}.paymentBox #cardFeePreview.hidden{display:none!important}@media print{#previewClientInfo{font-size:0}#previewClientInfo::after{content:attr(data-print-info);font-size:10px}.previewItem .previewLine span{font-weight:800}.previewItem small{font-weight:400}}
/* MVP 1.0 — emitente/cliente e tabela de taxas */
.issuerBlock,.clientBlock{border:1px solid #d8e4ee;border-radius:12px;overflow:hidden;margin-bottom:14px}.issuerBlock{background:#f8fbfe}.clientBlock{background:#f2f8fc}.blockLabel{font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--blue);background:#e9f4fc;padding:7px 11px}.issuerBlock .pdfHead{border-bottom:0;margin:0;padding:13px}.clientBlock .prepared{margin:0;padding:12px}.clientBlock .prepared strong{margin-top:0}.feeTableWrap{overflow:auto;border:1px solid var(--line);border-radius:10px}.feeTable{width:100%;border-collapse:collapse;min-width:720px}.feeTable th,.feeTable td{padding:9px;border-bottom:1px solid var(--line);text-align:center}.feeTable th:first-child,.feeTable td:first-child{text-align:left;font-weight:800}.feeTable th{background:#eef7ff;color:var(--navy);font-size:12px}.feeTable input{width:78px;padding:8px!important;text-align:right}.feeNote{margin-top:10px!important}
@media print{.issuerBlock,.clientBlock{break-inside:avoid}.blockLabel{-webkit-print-color-adjust:exact;print-color-adjust:exact}.issuerBlock .pdfHead{padding:4mm}.clientBlock .prepared{padding:4mm}}
/* MVP 1.1 — dashboard visual */
.topbar{gap:24px}.topSearch{display:flex;align-items:center;gap:9px;width:min(520px,52vw);border:1px solid #d5e1ed;border-radius:10px;padding:0 13px;color:#71839a;background:#fff}.topSearch input{border:0;padding:10px 0;outline:0;background:transparent}.topUser{display:flex;align-items:center;gap:10px;margin-left:auto}.notifyBtn,.userChevron{position:relative;width:auto!important;border:0;background:transparent;color:var(--navy);font-size:22px;padding:8px!important}.notifyBtn i{position:absolute;right:5px;top:3px;width:9px;height:9px;border-radius:50%;background:#ef2f38;font-size:0;border:2px solid #fff}.userAvatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e4f2ff;color:var(--navy);font-weight:800;border:2px solid #c9e4fb}.userMeta{display:grid;line-height:1.2}.userMeta b{font-size:13px}.userMeta span{font-size:11px;color:var(--muted);margin-top:3px}.dashboardHead .periodBtn{width:auto;border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:10px;padding:11px 14px;font-weight:700;display:flex;gap:9px;align-items:center}.dashboardCards{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.dashboardCards .metricCard{display:flex;align-items:flex-start;gap:10px;padding:15px 13px;min-width:0}.metricCard .metricIcon{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:20px;font-weight:800}.metricCard label{color:var(--navy);font-weight:800;font-size:12px}.metricCard strong{font-size:24px;margin:4px 0 3px;color:#0c2342;white-space:nowrap}.metricCard small{font-size:10px;font-weight:700}.metricValue strong{font-size:20px}.metricBlue .metricIcon,.metricValue .metricIcon{background:#0795ec}.metricGreen{background:linear-gradient(135deg,#fff,#f1fff7)!important}.metricGreen .metricIcon{background:#13bd66}.metricOrange{background:linear-gradient(135deg,#fff,#fff9ec)!important}.metricOrange .metricIcon{background:#ffad16}.metricCancelled{background:linear-gradient(135deg,#fff,#fff3f3)!important}.metricCancelled .metricIcon{background:#e45757}.trendBlue{color:#178bd2}.trendGreen{color:#10ae5e}.trendOrange{color:#d99100}.trendCancelled{color:#c74343}.dashboardGrid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.78fr);gap:16px}.recentPanel{margin:0}.dashboardSide{display:grid;gap:14px;align-content:start}.salesPanel{margin:0}.salesHead{display:flex;justify-content:space-between;align-items:flex-start}.salesHead h2{margin-bottom:5px}.salesHead strong{font-size:25px;color:#0c2342}.salesBadge{background:#dcf8e8;color:#0aae5b;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:800}.salesChart{height:130px;display:flex;align-items:end;gap:10px;padding-top:15px;border-bottom:1px solid #dce6ef}.salesBarWrap{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.salesBar{width:70%;min-width:16px;border-radius:5px 5px 0 0;background:#c7d6e6;min-height:8px}.salesBar.current{background:#14bd67}.salesBarWrap small{font-size:10px;color:#6b7b91}.dashboardNew{margin:0;font-size:16px;padding:14px}.dashboardPromo{background:linear-gradient(135deg,#073c69,#032f55);border-radius:14px;color:#fff;padding:18px;display:flex;align-items:center;justify-content:space-between;min-height:125px}.dashboardPromo b{font-size:18px}.dashboardPromo span{display:block;margin-top:9px;color:#1ee1b0;font-weight:800}.dashboardPromo img{width:82px;height:82px;object-fit:contain;border-radius:18px}.recentPanel .row{grid-template-columns:.55fr 1.4fr .8fr .8fr}.recentPanel .row span:last-child{justify-self:start;border-radius:999px;padding:5px 9px;font-weight:700}.recentPanel .row .status-approved{background:#dcf8e8;color:#0a9c54}.recentPanel .row .status-open{background:#fff0ca;color:#b77700}.recentPanel .row .status-order{background:#dcf8e8;color:#0a9c54}.recentPanel .row .status-quote{background:#fff0ca;color:#b77700}
@media(max-width:980px){.userMeta{display:none}.dashboardGrid{grid-template-columns:1fr}.dashboardSide{grid-template-columns:1fr 1fr}.dashboardPromo{grid-column:1/-1}.topSearch{width:min(460px,62vw)}}
@media(max-width:640px){.topSearch{width:100%;border:0;padding:0}.topUser{gap:3px}.userAvatar{width:34px;height:34px}.userChevron{display:none}.dashboardHead{align-items:flex-start}.dashboardHead .periodBtn{font-size:11px;padding:9px}.dashboardCards{grid-template-columns:1fr 1fr}.dashboardCards .metricCard{padding:13px;gap:9px}.metricCard .metricIcon{width:38px;height:38px;flex-basis:38px;font-size:18px}.metricCard strong{font-size:21px}.metricCard small{font-size:9px}.dashboardSide{grid-template-columns:1fr}.dashboardPromo{grid-column:auto}.recentPanel .row{grid-template-columns:.6fr 1.2fr .8fr}.recentPanel .row span:nth-child(4){display:none}}

/* MVP 1.2 — status editáveis e cores padronizadas */
.badge.open{background:#fff0ca;color:#b77700}.badge.approved{background:#dcf8e8;color:#0a9c54}.badge.cancelled{background:#ffe5e7;color:#b4232d}.badge.draft{background:#edf1f5;color:#5d6b7b}.recordStatusBox{margin:8px 0 10px;padding:12px;border:1px solid #d8e5ef;border-radius:10px;background:#f8fbfe}.recordStatusBox label{margin:0}.recentPanel .row .status-quote{background:#eaf6ff;color:#0875be}.recentPanel .row .status-open{background:#fff0ca;color:#b77700}.recentPanel .row .status-approved{background:#dcf8e8;color:#0a9c54}.recentPanel .row .status-order{background:#e4f8f2;color:#087f6b}.recentPanel .row .status-cancelled{background:#ffe5e7;color:#b4232d}.recentPanel .row .status-draft{background:#edf1f5;color:#5d6b7b}
/* MVP 1.3 — integridade documental */
.documentLockInfo{margin-top:10px;padding:10px 12px;border-radius:8px;background:#fff7df;border:1px solid #f0d58b;color:#805b00;font-size:12px;font-weight:700;line-height:1.45}.cancelDocumentBtn{width:100%;margin-top:10px;border:1px solid #efb4b8;background:#fff3f4;color:#b4232d;border-radius:9px;padding:11px 14px;font-weight:800}.lockedDocument{opacity:.72}.lockedDocument input:disabled,.lockedDocument select:disabled,.lockedDocument textarea:disabled{background:#f3f5f7;color:#59636e;cursor:not-allowed}.cancelMeta{font-size:11px;color:#b4232d;font-weight:700;margin-top:4px}
.partialPaymentLock{opacity:1!important}.partialPaymentLock input:disabled,.partialPaymentLock select:disabled,.partialPaymentLock textarea:disabled{background:#f3f5f7;color:#59636e;cursor:not-allowed}.partialPaymentLock #paid:not(:disabled),.partialPaymentLock #paidDate:not(:disabled),.partialPaymentLock #balanceMethod:not(:disabled),.partialPaymentLock #installments:not(:disabled),.partialPaymentLock #balanceWhen:not(:disabled),.partialPaymentLock #balanceDate:not(:disabled){background:#fff;color:inherit;cursor:auto}
/* MVP 1.4 */
.extrasBox{border:1px solid #dbe7f4;border-radius:12px;padding:14px;background:#f8fbff}.extrasBox>b{color:#0b5bd3}.extrasGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr) minmax(120px,1fr));gap:10px;align-items:end;margin-top:10px}.notifyBtn{font-family:Arial,sans-serif;font-size:20px;line-height:1}.clientTypeTag{font-size:12px;font-weight:700;color:#0b5bd3}.unitHelp{color:#60758d;font-size:12px}@media(max-width:900px){.extrasGrid{grid-template-columns:1fr 1fr}}

/* MVP 1.5 — ergonomia das medidas e impressão econômica/profissional */
.formgrid label>small:last-child{font-size:15px!important;font-weight:800!important;color:var(--navy)!important;right:12px!important;bottom:14px!important}
@media print{
  @page{size:A4;margin:13mm}
  body,#quote,.summary,.preview,.issuerBlock,.clientBlock,.paymentBox{background:#fff!important;color:#000!important}
  #quote .summary .panel{font-size:14px!important;color:#000!important}
  .issuerBlock,.clientBlock{border:1px solid #777!important;border-radius:4px!important;background:#fff!important}
  .blockLabel{background:#fff!important;color:#000!important;border-bottom:1px solid #aaa!important;font-size:12px!important;padding:7px 10px!important}
  .pdfCompany b{color:#000!important;font-size:18px!important}
  .pdfCompany small,.pdfOrder span,.prepared>small,.previewItem small,.validity,.pdfFooter,.measureHelp{color:#000!important;font-size:12px!important}
  .pdfOrder strong{color:#000!important;font-size:16px!important}
  .prepared strong{color:#000!important;font-size:18px!important}
  .previewLine{font-size:14px!important;border-bottom:1px solid #bbb!important}
  .previewLine span{color:#000!important}
  .previewItem small{font-size:12px!important}
  .paymentBox{border:1px solid #888!important;border-radius:4px!important;padding:11px!important}
  .paymentBox>b{color:#000!important;font-size:12px!important}
  .paymentBox>span{color:#000!important;font-size:14px!important}
  .paymentBox p{color:#000!important;font-size:14px!important}
  .total{background:#fff!important;color:#000!important;border-top:2px solid #000!important;border-bottom:2px solid #000!important;border-radius:0!important;padding:12px 0!important}
  .total span,.total strong{color:#000!important}
  .validity{font-size:12px!important}
  .pdfFooter{font-size:11px!important;border-top:1px solid #888!important}
  *{-webkit-print-color-adjust:economy!important;print-color-adjust:economy!important}
}

/* MVP 3.16 — limpeza definitiva do documento entregue ao cliente. */
@media print{
  @page{size:A4;margin:7mm 14mm 22mm!important}
  #quote .summary .panel.preview{position:relative!important;top:0!important;margin:0 auto!important}
  .summary .preview>.internal,
  .summary .preview>.clientMeasureToggle,
  .summary .preview>.measureHelp,
  .summary .preview>.success,
  .summary .preview>.confirmOrderBtn,
  .summary .preview>.recordStatusBox,
  .summary .preview>.pdfPrintBtn,
  .summary .preview>.saveStatus{display:none!important}
  #previewClientInfo{font-size:0!important}
  #previewClientInfo::after{font-size:10px!important}
}

/* MVP 1.6 — documento comercial moderno, leve e econômico */
.printSection{margin-top:14px}.printSectionTitle{background:var(--blue);color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;padding:7px 11px;border-radius:4px 4px 0 0}.printProducts,.printValues{border-bottom:1px solid var(--line)}
@media print{
  @page{size:A4;margin:13mm 13mm 18mm}
  #quote .summary .panel{position:relative!important;border:0!important;padding-top:4mm!important}
  #quote .summary .panel::before{content:"";display:block;position:absolute;left:0;right:0;top:0;height:1.6mm;background:linear-gradient(90deg,#078fe7 0 68%,#20c568 68% 100%)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .issuerBlock,.clientBlock{border:0!important;border-radius:0!important;margin-bottom:5mm!important;overflow:visible!important}
  .issuerBlock .pdfHead,.clientBlock .prepared{padding:3mm 0!important}
  .blockLabel,.printSectionTitle{background:#078fe7!important;color:#fff!important;border:0!important;border-radius:0!important;padding:2.2mm 3mm!important;font-size:12px!important;font-weight:900!important;letter-spacing:.06em!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .printSection{margin-top:5mm!important;border:0!important}.printProducts{margin-top:3mm!important}.printValues{margin-top:6mm!important}
  .previewItem{padding:1mm 0 1.5mm!important;border-bottom:1px solid #d6d6d6!important}.previewItem:last-child{border-bottom:0!important}
  .previewLine{border-bottom:0!important;padding:2.3mm 1mm 1mm!important;font-size:14px!important}.previewItem small{padding:0 1mm 2mm!important;font-size:12px!important;color:#000!important}
  #summaryRows{padding-top:1.5mm!important}#summaryRows .previewLine{border-bottom:1px solid #d8d8d8!important;padding:2.3mm 1mm!important}
  .total{margin:3mm 0 0!important;padding:3mm 1mm!important;border-top:1.5px solid #000!important;border-bottom:1.5px solid #000!important}.total strong{font-size:22px!important}
  .paymentBox{margin-top:6mm!important;border:1px solid #aaa!important;border-radius:0!important;padding:3mm!important}
  .pdfFooter{left:13mm!important;right:13mm!important;bottom:5mm!important;border-top:1.2px solid #078fe7!important;padding-top:2mm!important;text-align:center!important;font-size:11px!important;color:#000!important;background:#fff!important}
  .pdfFooter::before{content:"";display:block;position:absolute;left:0;right:0;top:-1.2mm;height:.8mm;background:linear-gradient(90deg,#078fe7 0 72%,#20c568 72% 100%)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}

/* MVP 1.7 — refinamento Emitente / Cliente */
.issuerBlock,.clientBlock{border:0;border-radius:0;background:transparent;overflow:visible}
.blockLabel{background:#e8f5fd;color:#0b3d91;border:0;border-radius:0;padding:8px 11px}
.issuerBlock .pdfHead,.clientBlock .prepared{padding:12px 2px}
@media print{
  .issuerBlock,.clientBlock{border:0!important;box-shadow:none!important;background:#fff!important}
  .blockLabel{background:#e8f5fd!important;color:#0b3d91!important;border:0!important;border-radius:0!important;padding:2.2mm 3mm!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .printSectionTitle{background:#078fe7!important;color:#fff!important}
}

/* MVP 1.8 - alinhamento da listagem de orçamentos/pedidos */
.savedRow>span,.savedRow .savedTotal{text-align:left!important;justify-self:stretch}.savedRow .savedStatus{text-align:left!important}


/* MVP 1.9 — colunas consistentes em Orçamentos/Pedidos */
.savedRow{grid-template-columns:120px minmax(220px,1fr) 150px 130px minmax(230px,auto)!important;column-gap:18px!important}
.savedRow>b,.savedRow>span,.savedRow .savedTotal,.savedRow .savedStatus{justify-self:stretch!important;text-align:left!important}
.savedTotal{font-variant-numeric:tabular-nums}
@media(max-width:900px){.savedRow{grid-template-columns:100px minmax(170px,1fr) 130px 120px!important}.savedRow .rowActions{grid-column:1/-1}}
@media(max-width:700px){.savedRow{grid-template-columns:90px minmax(150px,1fr) 120px!important}.savedRow .savedStatus{display:none!important}}
/* MVP 2.0 — preenchimento visual de produtos */
.productEntryPanel{overflow:visible}.productComposer{border:1px solid #dbe6f0;border-radius:14px;background:#fbfdff;padding:16px;margin-bottom:18px}.selectedProductVisual{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:stretch}.quoteProductImageBox,.productPhotoPreview{border:1px dashed #b9cfe1;border-radius:12px;background:linear-gradient(145deg,#eef8ff,#f5fffb);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;color:#6d8499;min-height:128px}.quoteProductImageBox img,.productPhotoPreview img{width:100%;height:100%;object-fit:cover}.quoteProductImageBox span,.productPhotoPreview span{font-size:34px;color:var(--blue)}.quoteProductImageBox small,.productPhotoPreview small{font-size:11px;margin-top:6px}.selectedProductMeta{display:grid;grid-template-columns:1fr;gap:10px}.selectedProductMeta label{display:block}.measureStrip{display:grid;grid-template-columns:1fr 28px 1fr 1fr auto;gap:10px;align-items:end;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.measureX{font-size:24px;font-weight:700;text-align:center;padding-bottom:10px;color:var(--navy)}.inputUnit{position:relative}.inputUnit input{padding-right:48px}.inputUnit b{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:15px;color:var(--navy)}.measureStrip .areaBadge{margin:0;min-width:140px;height:44px;padding:6px 12px;justify-content:center}.measureStrip .areaBadge strong{font-size:17px}.valuesSection{border-top:1px solid var(--line);padding-top:18px}.sectionMiniHead{display:flex;align-items:baseline;gap:12px;margin-bottom:12px}.sectionMiniHead h3{margin:0}.sectionMiniHead p{margin:0;font-size:12px}.productRegisterGrid{display:grid;grid-template-columns:190px 1fr;gap:20px}.productPhotoEditor{display:flex;flex-direction:column;gap:9px}.productPhotoPreview{height:160px}.productPhotoEditor p{font-size:10px;margin:0}.productUploadBtn{display:block;text-align:center}.productFormActions{display:flex;gap:10px}.productCardImage{width:58px;height:58px;border-radius:9px;object-fit:cover;border:1px solid var(--line);background:#f2f7fb}.productCardPlaceholder{width:58px;height:58px;border-radius:9px;background:#eef8ff;display:grid;place-items:center;color:var(--blue);font-size:22px}.productRow{grid-template-columns:36px 64px 1.5fr .55fr .9fr .8fr auto!important}.itemThumb{width:44px;height:44px;border-radius:7px;object-fit:cover;border:1px solid var(--line);margin-right:9px;vertical-align:middle}.itemMain{display:flex;align-items:center}.itemMainText{min-width:0}
@media(max-width:760px){.selectedProductVisual{grid-template-columns:100px 1fr}.measureStrip{grid-template-columns:1fr 24px 1fr}.measureStrip label:nth-of-type(3),.measureStrip #lengthWrap,.measureStrip .areaBadge{grid-column:1/-1}.productRegisterGrid{grid-template-columns:1fr}.productPhotoEditor{max-width:260px}.productRow{grid-template-columns:32px 58px 1fr!important}.productRow>span{display:none}.productRow .editBtn{display:block!important}.productFormActions{flex-direction:column}}
@media(max-width:480px){.selectedProductVisual{grid-template-columns:1fr}.quoteProductImageBox{height:150px}.measureStrip{grid-template-columns:1fr 20px 1fr}}

/* MVP 2.1 — tipografia do preenchimento visual em preto */
.productEntryPanel label,
.productEntryPanel .selectedProductMeta label,
.productEntryPanel .measureStrip label,
.productEntryPanel .inputUnit b,
.productEntryPanel .measureX,
.productEntryPanel .areaBadge strong,
.productEntryPanel .sectionMiniHead h3,
.productEntryPanel .sectionMiniHead p,
.productEntryPanel .unitHelp,
.productEntryPanel .clientTypeTag,
.productEntryPanel .extrasBox>b,
.productEntryPanel .hint,
.productEntryPanel .soft,
.productEntryPanel .link{color:#000!important}

/* MVP 2.2 — alinhamento consistente das listagens */
#recent .row>b,#recent .row>span,#clientList .row>b,#clientList .row>span{
  text-align:left!important;
  justify-self:stretch!important;
}
#clientList .clientTypeTag{color:#000!important;text-align:left!important}
.recentPanel .row>b,.recentPanel .row>span{
  text-align:left!important;
  justify-self:stretch!important;
}


/* MVP 2.3 — pesquisa e ordenação de produtos */
.productListTools{display:grid;grid-template-columns:minmax(260px,1fr) 210px;gap:14px;align-items:end;margin:22px 0 12px;padding-top:18px;border-top:1px solid var(--line)}
.productListTools label{color:#000!important;font-weight:700}.productListTools input,.productListTools select{margin-top:6px}
#quoteProductSearch{background:#fff}
@media(max-width:700px){.productListTools{grid-template-columns:1fr}}
/* MVP 2.4 — materiais pré-cadastrados + Dicas OrçUP */
.quoteSearchWrap{position:relative}.quoteProductResults{position:absolute;z-index:30;top:100%;left:0;right:0;background:#fff;border:1px solid #d8dee8;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.14);max-height:360px;overflow:auto;padding:6px}.productSearchResult{width:100%;display:grid;grid-template-columns:52px 1fr 24px;gap:10px;align-items:center;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef1f5;padding:8px;border-radius:7px;cursor:pointer;color:#111}.productSearchResult:hover{background:#f6f9fc}.productSearchResult img,.resultPlaceholder{width:52px;height:42px;object-fit:cover;border-radius:6px;border:1px solid #e3e7ec}.resultPlaceholder{display:grid;place-items:center;background:#f5f6f8}.productSearchResult b,.productSearchResult small{display:block}.productSearchResult small{margin-top:3px;color:#4b5563;font-size:12px}.productSearchResult i{font-style:normal;color:#0b3d91}.noProductResult{padding:12px;color:#667085}.orcupTipQuote{position:relative;align-self:end;padding-bottom:3px}.tipIcon{border:0;background:#eef6ff;color:#0b3d91;border-radius:50%;width:28px;height:28px;cursor:help;font-weight:700}.tipBubble{display:none;position:absolute;z-index:35;left:0;top:34px;width:min(340px,80vw);background:#fff;border:1px solid #dce3ec;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.14);padding:10px 12px;font-size:13px;line-height:1.4;color:#222}.tipBubble b{display:block;margin-bottom:4px;color:#0b3d91}.orcupTipQuote:hover .tipBubble,.orcupTipQuote:focus-within .tipBubble{display:block}.productRow>div:nth-of-type(2){position:relative}.productRow .tipIcon{margin-left:6px}
.pricingChoice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}.pricingChoice.hidden{display:none}@media(max-width:700px){.pricingChoice{grid-template-columns:1fr}}
/* MVP 2.7 — campos de preço abrem ao lado da seleção */
.valuesSection .pricingChoice{display:contents}
.valuesSection .pricingChoice.hidden{display:none!important}
@media(max-width:700px){
  .valuesSection .pricingChoice{display:contents}
}

/* MVP 3.87.8 — bloqueio claro do Pedido sem desativar PDF e recibos. */
#quote.orderCommercialLock{opacity:1!important}
#quote.orderCommercialLock #addItemButton,#quote.orderCommercialLock .itemrow>.itemEditButton,#quote.orderCommercialLock .itemrow>button:not(.itemEditButton){display:none!important}
#quote.orderCommercialLock .pdfPrintBtn,#quote.orderCommercialLock .shareAction,#quote.orderCommercialLock .receiptPaymentAction button,#quote.orderCommercialLock #cancelDocumentBtn{opacity:1!important;pointer-events:auto!important;cursor:pointer!important}
/* MVP 2.8 — Novo Orçamento alinhado à demonstração comercial do OrçUP */
.quoteStudio{padding:26px 28px;border-radius:20px}.studioHead{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}.studioHead h2{font-size:22px;margin:0;color:#0b1b3b}.studioHead p{font-size:12px;margin:5px 0 0}.autoBadge{background:#e8f8f2;color:#00a66a;font-size:11px;font-weight:800;padding:9px 12px;border-radius:10px;white-space:nowrap}.studioTop{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;align-items:end}.studioTop label,.studioChoices>label,.choiceBlock>label,.studioQty,.studioNotes{color:#10233e!important;font-weight:700!important}.hiddenSelect{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}.measurePair{display:grid;grid-template-columns:1fr 22px 1fr;gap:8px;align-items:start}.measurePair b{padding-top:13px;text-align:center;font-size:18px}.measurePair small{display:block;text-align:center;margin-top:6px;color:#6b7b91;font-size:10px}.studioProductRow{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(160px,.75fr);gap:16px;margin:20px 0}.studioProductCard{grid-template-columns:180px 1fr!important;border:1px solid #d7e4f0;border-radius:15px;background:#fbfdff;padding:14px}.studioProductCard .quoteProductImageBox{min-height:120px;border-style:solid}.studioProductCard .selectedProductMeta{align-content:center}.studioProductCard .selectedProductMeta>strong{font-size:16px;color:#0b1b3b}.studioProductCard .selectedProductMeta>p{font-size:12px;line-height:1.55;margin:6px 0;color:#58708b}.studioDescription{margin-top:4px}.studioDescription input{padding:8px 10px}.studioQty{align-self:center}.qtyInput{position:relative}.qtyInput input{padding-right:70px}.qtyInput span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11px;color:#71839a;font-weight:400}.studioQty>small{display:block;margin-top:8px;text-align:right;color:#078fe7;font-weight:800}.studioChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;margin-bottom:18px}.materialReadOnly{margin-top:5px;border:1px solid #cfdce8;border-radius:10px;padding:12px;background:#f8fbfe;color:#526a80;font-weight:500;min-height:44px}.choiceBlock{min-width:0}.inlinePricing{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px;padding:9px;border:1px solid #dce8f2;border-radius:11px;background:#f8fbfe}.inlinePricing.hidden{display:none!important}.inlinePricing label{font-size:10px!important;color:#526a80!important}.inlinePricing input{padding:8px;margin-top:3px}.studioFinancial{border-top:1px solid #e0e9f2;padding-top:17px;margin-top:4px}.studioFinancial .sectionMiniHead{margin-bottom:10px}.studioNotes{display:block;margin-top:17px}.studioNotes textarea{min-height:92px;border-radius:11px}.studioAdd{margin-top:15px}.quoteSearchWrap input,.studioTop input,.studioChoices select,.studioQty input{border-radius:11px;min-height:46px}.quotegrid{grid-template-columns:minmax(0,1.65fr) minmax(330px,.75fr);gap:20px}.summary .panel{border-radius:20px}.summary:before{content:'Resumo do orçamento';display:block;background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;padding:22px 20px 8px;font-size:22px;font-weight:800;color:#0b1b3b}.summary .panel{border-radius:0 0 20px 20px;border-top:0}.productEntryPanel .panelhead{display:none}
@media(max-width:1100px){.studioProductCard{grid-template-columns:130px 1fr!important}.studioChoices{grid-template-columns:1fr 1fr}.studioChoices>label:first-child{grid-column:1/-1}}
@media(max-width:760px){.quoteStudio{padding:18px}.studioHead,.studioTop{grid-template-columns:1fr;display:grid}.studioProductRow{grid-template-columns:1fr}.studioProductCard{grid-template-columns:110px 1fr!important}.studioChoices{grid-template-columns:1fr}.studioChoices>label:first-child{grid-column:auto}.summary:before{font-size:19px}.studioFinancial .formgrid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.studioProductCard{grid-template-columns:1fr!important}.studioFinancial .formgrid{grid-template-columns:1fr}}

/* MVP 2.9 — alinhamento fiel à demonstração comercial */
.quoteStudio{padding:28px 28px 24px}
.studioTop{grid-template-columns:minmax(0,1.35fr) minmax(290px,.95fr);gap:18px}
.studioProductRow{grid-template-columns:minmax(0,1.75fr) minmax(180px,.8fr);gap:16px;margin:18px 0}
.studioProductCard{grid-template-columns:180px 1fr!important;min-height:128px;padding:14px}
.studioProductCard .quoteProductImageBox{height:100%;min-height:100px}
.studioChoices{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0 18px}
.studioChoices select{width:100%}
.serviceDescription{display:block;margin-top:16px;color:#10233e!important;font-weight:700!important}
.serviceDescription input{margin-top:5px}
.studioNotes{margin-top:14px}
.studioFinancial{margin-top:20px}
@media(max-width:1100px){.studioChoices{grid-template-columns:repeat(3,minmax(0,1fr))}.studioChoices>label:first-child{grid-column:auto}}
@media(max-width:820px){.studioChoices{grid-template-columns:1fr}.studioTop,.studioProductRow{grid-template-columns:1fr}}

/* MVP 3.0 - refinamento conforme marcações */
.studioTop{align-items:start!important}.studioProductSearch>label,.studioMeasures>label:first-child{display:block;margin:0 0 5px!important;line-height:16px}.quoteSearchWrap{position:relative}.quoteSearchWrap input{padding-right:42px}.productDropArrow{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:22px;color:#0b1b3b;pointer-events:none}.quoteProductResults{max-height:310px!important;overflow-y:auto!important}.studioChoices select{font-weight:400!important}.studioChoices select option{font-weight:400}.sectionMiniHead p{display:none}.studioPriceGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.studioFinancial .sectionMiniHead{margin-bottom:10px}.serviceDescription{display:none!important}
@media(max-width:1000px){.studioPriceGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.studioPriceGrid{grid-template-columns:1fr!important}}

/* MVP 3.1 — refinamentos visuais solicitados */
.studioPriceGrid>label{display:grid;grid-template-rows:32px 46px;align-items:start;font-weight:700;color:#10233e!important}
.studioPriceGrid>label input{margin-top:0;height:46px}
.studioPriceGrid>label small{font-size:9px!important;font-weight:400;line-height:1;display:inline;margin-left:2px}
.studioAdd{background:#0b3d91!important;color:#fff!important}
.studioAdd:hover{background:#082f70!important}
.studioNotes{font-weight:600!important}
.studioNotes textarea{min-height:92px;background:#fff;border:1px solid #cfdce8;border-radius:11px;font-weight:400!important;font-family:Inter,Arial,sans-serif;line-height:1.5}
.studioNotes textarea::placeholder{font-weight:300!important;color:#667085;opacity:1}

/* Resumo de trabalho: mesmo idioma visual da demonstração comercial */
.summary:before{display:none!important}
.summary .panel.preview{border:1px solid #d7e4f0!important;border-radius:20px!important;padding:28px!important;background:#fff!important;box-shadow:0 10px 30px rgba(20,52,85,.06)!important;position:sticky;top:84px}
.summary .preview>:not(.screenSummary){display:none}
.screenSummary{display:block;color:#0b1b3b}
.screenSummary h2{font-size:24px;margin:0 0 25px;font-weight:800;color:#0b1b3b}
.screenSummaryFacts,.screenSummaryValues{display:grid;gap:13px}
.screenSummaryFacts>div,.screenSummaryValues>div{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:13px}
.screenSummaryFacts span,.screenSummaryValues span{color:#5f7089;font-weight:400}
.screenSummaryFacts b,.screenSummaryValues b{color:#0b1b3b;text-align:right;font-weight:800}
.screenSummaryFacts{padding-bottom:20px;border-bottom:1px solid #dce5ee}
.screenProductList{display:grid;gap:10px;margin-bottom:16px}
.screenProductEmpty{padding:12px;border:1px dashed #cbd9e6;border-radius:10px;color:#6b7b91;font-size:12px;text-align:center}
.screenProductItem{padding:12px;border:1px solid #dce6ef;border-radius:11px;background:#f8fbfe}
.screenProductItemHead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.screenProductItemHead b{font-size:13px;color:#0b1b3b}
.screenProductItemHead strong{font-size:13px;color:#078fe7;white-space:nowrap}
.screenProductItemMeta{display:block;margin-top:5px;color:#5f7089;font-size:11px;line-height:1.4}
.screenProductItemValues{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:7px;color:#445a73;font-size:10px}
.screenProductItemValues b{color:#0b1b3b}
.screenSummaryTotals{padding-top:2px}
.cancelModal{position:fixed;inset:0;background:rgba(6,25,45,.62);display:grid;place-items:center;padding:20px;z-index:1000}
.cancelModal.hidden{display:none!important}.cancelModalCard{position:relative;width:min(520px,100%);background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.28);color:#10233e}
.cancelModalClose{position:absolute;right:14px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:#f2f5f8;color:#526a80;text-align:center;font-size:22px;padding:0}
.cancelModalIcon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff0ed;color:#b33a28;font-size:23px;font-weight:900;margin-bottom:14px}
.cancelModalCard h2{font-size:22px;margin:0 0 8px}.cancelModalCard p{font-size:13px;line-height:1.5;margin:0 0 18px}.cancelModalCard label{display:block;color:#10233e;font-size:13px;font-weight:700}.cancelModalCard label b{color:#c63c2e}
.cancelModalCard textarea{min-height:105px;margin-top:7px}.cancelReasonError{display:block;color:#c63c2e;font-weight:700;margin-top:6px}
.cancelModalActions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.cancelModalActions button{width:auto;text-align:center}.cancelConfirmButton{border:0;border-radius:9px;padding:10px 15px;background:#b43b2b;color:#fff;font-weight:800}
@media(max-width:520px){.cancelModalCard{padding:22px}.cancelModalActions{display:grid;grid-template-columns:1fr}.cancelModalActions button{width:100%}}
@media print{.cancelModal{display:none!important}}

/* MVP 3.14 — timbrado comercial profissional e econômico */
.pdfCompanyDetails{min-width:0}.pdfCompanyAddress,.pdfCompanyChannels{display:block}
@media print{
  @page{size:A4;margin:11mm 13mm 22mm}
  #quote .summary .panel{padding:3mm 0 27mm!important;font-family:Arial,Helvetica,sans-serif!important}
  #quote .summary .panel::before{height:1mm!important;background:linear-gradient(90deg,#078fe7 0 72%,#20c568 72% 100%)!important}
  .issuerBlock{margin:0 0 5mm!important}.issuerBlock .blockLabel{display:none!important}
  .issuerBlock .pdfHead{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8mm!important;padding:5mm 0 4mm!important;border-bottom:1.2px solid #078fe7!important;margin:0!important}
  .pdfCompany{align-items:flex-start!important;gap:4mm!important}.companyLogo{max-width:42mm!important;max-height:20mm!important}
  .pdfCompanyDetails b{font-size:17px!important;line-height:1.2!important;margin-bottom:1.2mm!important}.pdfCompanyDetails small{font-size:9.5px!important;line-height:1.45!important;color:#222!important;margin:0!important}
  .pdfCompanyDetails small:empty{display:none!important}.pdfOrder{padding-top:1mm!important}.pdfOrder strong{font-size:15px!important;color:#073b67!important}.pdfOrder span{font-size:10px!important;margin-top:1.5mm!important;display:block!important}
  .clientBlock{margin:0 0 5mm!important}.blockLabel,.printSectionTitle{background:#fff!important;color:#073b67!important;border-left:1.2mm solid #20c568!important;border-bottom:1px solid #b9d8ee!important;padding:1.8mm 2.5mm!important;font-size:10px!important;letter-spacing:.08em!important}
  .clientBlock .prepared{padding:2.5mm 1mm 3.5mm!important}.prepared strong{font-size:14px!important}.prepared>small{font-size:10px!important;line-height:1.5!important;color:#222!important}
  .printSection{margin-top:4mm!important}.printProducts{margin-top:0!important}.previewItem{padding:2mm 1mm 2.5mm!important;border-bottom:1px solid #d9e1e8!important;break-inside:avoid!important}
  .previewLine{padding:0 0 1mm!important;font-size:11.5px!important}.previewLine span{color:#111!important}.previewLine b{white-space:nowrap!important}.previewItem small{padding:0!important;font-size:9.5px!important;line-height:1.5!important;color:#333!important}
  .printValues{margin-top:5mm!important;break-inside:avoid!important}#summaryRows{width:108mm!important;margin-left:auto!important;padding-top:2mm!important}#summaryRows .previewLine{padding:1.6mm 1mm!important;font-size:10.5px!important;border-bottom:1px solid #e1e5e9!important}
  .total{width:108mm!important;margin:1.5mm 0 0 auto!important;padding:2.5mm 1mm!important;border-top:1.4px solid #073b67!important;border-bottom:2px solid #073b67!important}.total span{font-size:10px!important;font-weight:800!important}.total strong{font-size:20px!important;color:#073b67!important}
  .paymentBox{margin:5mm 0 0!important;padding:3mm 4mm!important;border:1px solid #cbd5df!important;border-left:1.2mm solid #078fe7!important;border-radius:0!important;background:#fff!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .paymentBox>b{font-size:9px!important;color:#073b67!important;letter-spacing:.06em!important}.paymentBox>span{font-size:11px!important;color:#111!important;margin:1mm 0 2mm!important}.paymentBox p{font-size:10px!important;margin:1.2mm 0!important;line-height:1.35!important}
  .validity{margin:4mm 0 0!important;font-size:9px!important;color:#333!important}.pdfFooter{position:fixed!important;left:13mm!important;right:13mm!important;bottom:5mm!important;padding:2.2mm 0 0!important;border-top:1px solid #078fe7!important;font-size:8.8px!important;line-height:1.4!important;color:#222!important;background:#fff!important}
  .pdfFooter::before{display:none!important}.preview{padding-bottom:28mm!important}.internal{display:none!important}
}
.screenSummaryValues{padding:22px 0 20px}
.screenSummaryValues .saleValue{margin-bottom:4px}
.screenSummaryValues .saleValue b{font-size:26px;color:#07943b}
.screenSummaryValues .screenDiscountRow{padding-top:9px;border-top:1px dashed #d6e1e9}
.screenSummaryValues .screenDiscountRow span,.screenSummaryValues .screenDiscountRow b{color:#b4232e;font-weight:850}
.screenMargin{display:flex;align-items:center;justify-content:space-between;background:#e2f9e8;border:1px solid #b4ebc2;border-radius:14px;padding:22px 18px;margin-top:3px;color:#18562e;font-size:13px;font-weight:700}
.screenMargin b{font-size:36px;color:#07943b}
.screenProfit{text-align:right;color:#718096;font-size:11px;margin:10px 0 20px}
.screenProfit b{color:#5c6c82}
.screenSave{width:100%;border:0;border-radius:12px;background:#0aaa72;color:#fff;font-weight:800;font-size:16px;padding:16px;box-shadow:0 10px 22px rgba(10,170,114,.15)}
.screenSave:hover{background:#079663}
@media(max-width:980px){.summary .panel.preview{position:static}}
@media(max-width:760px){.studioPriceGrid>label{grid-template-rows:auto 46px}.screenSummary h2{font-size:21px}}
@media print{
  .screenSummary{display:none!important}
  .summary .preview>:not(.screenSummary){display:block!important}
  .summary .preview>.clientMeasureToggle,.summary .preview>.measureHelp,.summary .preview>button,.summary .preview>.recordStatusBox,.summary .preview>.saveStatus{display:none!important}
}

/* MVP 3.2 — refinamentos conforme marcações */
.studioHead{align-items:center;margin-bottom:24px}
.studioHead h2{margin:0}
.studioChoices{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px}
.studioPriceGrid>label{grid-template-rows:32px 46px!important}
.studioPriceGrid>label>span{display:block;line-height:16px}
.studioPriceGrid>label small{display:inline!important;vertical-align:baseline}
.quoteSearchWrap input::placeholder,.studioNotes textarea::placeholder{font-family:Inter,Arial,sans-serif;font-weight:300!important;color:#667085!important;opacity:1}
.selectedProductMeta>strong{font-weight:600!important}
.selectedProductMeta>p{font-weight:300!important;color:#667085!important}
.studioNotes{font-weight:600!important}
.studioNotes textarea{font-family:Inter,Arial,sans-serif!important;font-weight:300!important}
@media(max-width:820px){.studioChoices{grid-template-columns:1fr!important}}

/* MVP 3.3 — restauração funcional do resumo e refinamentos */
.studioMeasures input{font-weight:700!important;color:#0b1b3b}
.summary .preview>.paymentBox,
.summary .preview>.internal,
.summary .preview>.clientMeasureToggle,
.summary .preview>.measureHelp,
.summary .preview>.validity,
.summary .preview>.success,
.summary .preview>.confirmOrderBtn,
.summary .preview>.recordStatusBox,
.summary .preview>.pdfPrintBtn,
.summary .preview>.saveStatus{display:block}
.summary .preview>.paymentBox{margin-top:22px}
.summary .preview>.internal{margin-top:12px}
.summary .preview>.clientMeasureToggle{margin-top:18px}
.summary .preview>.success,.summary .preview>.pdfPrintBtn{width:100%;margin-top:12px}
.screenSave{display:none!important}
.quoteProductResults{max-height:330px!important;overflow-y:auto!important;overscroll-behavior:contain}
.productDropArrow{pointer-events:auto;cursor:pointer}
@media print{
 .summary .preview>.paymentBox,.summary .preview>.internal,.summary .preview>.validity{display:block!important}
}
/* MVP 3.5 — composição financeira visível por item */
.itemBreakdown{display:block;margin-top:4px;color:#64748b;font-size:12px;line-height:1.35}

/* MVP 3.6 — seta do Produto igual aos selects nativos e lista realmente rolável */
.productDropArrow{font-size:0!important;width:12px;height:12px;right:17px;top:47%;border-right:2px solid #0b1b3b;border-bottom:2px solid #0b1b3b;transform:translateY(-65%) rotate(45deg)!important;box-sizing:border-box}
.quoteProductResults{max-height:300px!important;overflow-y:scroll!important;scrollbar-gutter:stable;overscroll-behavior:contain}

/* MVP 3.15 — regra final do PDF; deve permanecer no fim do arquivo. */
@media print{
  @page{size:A4;margin:12mm 14mm 22mm!important}
  #quote .summary .panel{padding:3mm 0 27mm!important;font-family:Arial,Helvetica,sans-serif!important;background:#fff!important}
  #quote .summary .panel::before{height:1mm!important;background:linear-gradient(90deg,#078fe7 0 72%,#20c568 72% 100%)!important}
  .issuerBlock{margin:0 0 5mm!important}.issuerBlock .blockLabel{display:none!important}
  .issuerBlock .pdfHead{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8mm!important;padding:5mm 0 4mm!important;border-bottom:1.3px solid #078fe7!important;margin:0!important}
  .pdfCompany{display:flex!important;align-items:flex-start!important;gap:4mm!important}.companyLogo{max-width:42mm!important;max-height:20mm!important}
  .pdfCompanyDetails b{display:block!important;font-size:17px!important;line-height:1.2!important;color:#073b67!important;margin-bottom:1mm!important}.pdfCompanyDetails small{display:block!important;font-size:9.5px!important;line-height:1.45!important;color:#111!important;margin:0!important}.pdfCompanyDetails small:empty{display:none!important}
  .pdfOrder{text-align:right!important;padding-top:1mm!important}.pdfOrder strong{display:block!important;font-size:15px!important;color:#073b67!important}.pdfOrder span{display:block!important;font-size:10px!important;color:#222!important;margin-top:1.5mm!important}
  .clientBlock{margin:0 0 5mm!important}.blockLabel,.printSectionTitle{background:#fff!important;color:#073b67!important;border:0!important;border-left:1.2mm solid #20c568!important;border-bottom:1px solid #b9d8ee!important;border-radius:0!important;padding:1.8mm 2.5mm!important;font-size:10px!important;font-weight:900!important;letter-spacing:.08em!important}
  .clientBlock .prepared{padding:2.5mm 1mm 3.5mm!important}.prepared strong{font-size:14px!important;color:#111!important}.prepared>small{font-size:10px!important;line-height:1.5!important;color:#222!important}
  .printSection{margin-top:4mm!important}.printProducts{margin-top:0!important}.previewItem{padding:2mm 1mm 2.5mm!important;border-bottom:1px solid #d9e1e8!important;break-inside:avoid!important}.previewLine{padding:0 0 1mm!important;font-size:11.5px!important}.previewLine span{color:#111!important}.previewItem small{padding:0!important;font-size:9.5px!important;line-height:1.5!important;color:#222!important}
  .printValues{margin-top:5mm!important;break-inside:avoid!important}#summaryRows{width:110mm!important;margin-left:auto!important;padding-top:2mm!important}#summaryRows .previewLine{padding:1.6mm 1mm!important;font-size:10.5px!important;border-bottom:1px solid #e1e5e9!important}
  .total{width:110mm!important;margin:1.5mm 0 0 auto!important;padding:2.5mm 1mm!important;border-top:1.4px solid #073b67!important;border-bottom:2px solid #073b67!important}.total span{font-size:10px!important;font-weight:800!important}.total strong{font-size:20px!important;color:#073b67!important}
  .paymentBox{display:block!important;margin:5mm 0 0!important;padding:3mm 4mm!important;border:1px solid #cbd5df!important;border-left:1.2mm solid #078fe7!important;border-radius:0!important;background:#fff!important;break-inside:avoid!important;page-break-inside:avoid!important}.paymentBox>b{font-size:9px!important;color:#073b67!important}.paymentBox>span{font-size:11px!important;color:#111!important;margin:1mm 0 2mm!important}.paymentBox p{font-size:10px!important;color:#111!important;margin:1.2mm 0!important;line-height:1.35!important}
  .validity{display:block!important;margin:4mm 0 0!important;font-size:9px!important;color:#333!important}.pdfFooter{display:block!important;position:fixed!important;left:14mm!important;right:14mm!important;bottom:5mm!important;padding:2.2mm 0 0!important;border-top:1px solid #078fe7!important;font-size:8.8px!important;line-height:1.4!important;color:#222!important;background:#fff!important}.pdfFooter::before{display:none!important}.preview{padding-bottom:28mm!important}.internal{display:none!important}
}

/* MVP 3.16 — regra final: somente informações destinadas ao cliente. */
@media print{
  @page{size:A4;margin:7mm 14mm 22mm!important}
  #quote .summary .panel.preview{position:relative!important;top:0!important;margin:0 auto!important}
  .summary .preview>.internal,
  .summary .preview>.clientMeasureToggle,
  .summary .preview>.measureHelp,
  .summary .preview>.success,
  .summary .preview>.confirmOrderBtn,
  .summary .preview>.recordStatusBox,
  .summary .preview>.pdfPrintBtn,
  .summary .preview>.saveStatus{display:none!important}
  #previewClientInfo{font-size:0!important}
  #previewClientInfo::after{font-size:10px!important}
}

/* MVP 3.17 — prazo, observações, condições e aprovação. */
.commercialDocumentInfo{display:none}.commercialDocumentInfo b{color:#073b67}
@media print{
  .summary .preview>#commercialDocumentInfo{display:block!important;margin-top:4mm!important;color:#111!important}
  .commercialFacts{display:grid!important;grid-template-columns:1fr!important;gap:3mm!important;break-inside:avoid!important}
  .commercialFacts>div,.commercialNotes,.commercialTerms,.commercialApproval{border:1px solid #cbd5df!important;border-left:1.2mm solid #20c568!important;padding:2.5mm 3mm!important;background:#fff!important;break-inside:avoid!important}
  .commercialFacts b,.commercialNotes>b,.commercialTerms>b,.commercialApproval>b{display:block!important;font-size:8.5px!important;letter-spacing:.06em!important;margin-bottom:1mm!important}
  .commercialFacts span,.commercialNotes p,.commercialTerms p,.commercialApproval p{display:block!important;margin:0!important;font-size:9px!important;line-height:1.4!important;color:#222!important}
  .commercialNotes,.commercialTerms,.commercialApproval{margin-top:3mm!important}.commercialNotes.hidden{display:none!important}
  .commercialApproval{border-left-color:#078fe7!important}.approvalLines{display:grid!important;grid-template-columns:1.4fr .55fr 1fr!important;gap:5mm!important;margin-top:5mm!important}
  .approvalLines span{border-top:1px solid #718096!important;padding-top:1mm!important;font-size:8px!important;color:#444!important;text-align:center!important}
  .nonFiscalNotice{text-align:center!important;font-size:8px!important;color:#555!important;margin:2.5mm 0 0!important}
}

/* MVP 3.20 — dados do cliente visíveis uma única vez no PDF. */
@media print{
  #previewClientInfo{display:block!important;font-size:10px!important;line-height:1.5!important;color:#222!important}
  #previewClientInfo::after{content:none!important;display:none!important}
}

/* MVP 3.21 — observações vinculadas individualmente a cada produto. */
.previewItemObservation{display:block!important;margin-top:1mm!important;padding:1.2mm 2mm!important;border-left:1mm solid #20c568!important;background:#f5fbf8!important;color:#222!important;white-space:pre-wrap!important}
.previewItemObservation b{color:#073b67!important}

/* MVP 3.22 — sino de notificações em contorno, sem indicador. */
.notifyBtn{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:0!important;color:#111!important;border-radius:50%!important}
.notifyBtn:hover{background:#eef4f8!important}
.notifyBtn svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.notifyBtn i{display:none!important}

/* MVP 3.23 — caixa, devoluções e recibo. */
.cashSummary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:-2px 0 16px}.cashSummary>div{display:flex;align-items:center;justify-content:space-between;padding:11px 15px;border:1px solid #d8e4ee;border-radius:10px;background:#fff}.cashSummary span{font-size:12px;color:#60728a}.cashSummary strong{font-size:15px;color:#073b67}.cashSummary .cashRefund strong{color:#c74343}.cashSummary .cashNet{background:#effcf5;border-color:#bcebd0}.cashSummary .cashNet strong{color:#079b50}
.refundFields{margin-top:14px;padding:14px;border:1px solid #d7e4ee;border-radius:10px;background:#f7fafc}.refundFields h3{margin:0 0 10px;color:#073b67;font-size:15px}.refundDetails{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.refundDetails label:last-child{grid-column:1/-1}.receiptPrintBtn{display:block;width:100%;margin-top:12px;padding:12px;border:1px solid #078fe7;border-radius:9px;background:#fff;color:#073b67;font-weight:800}.receiptDocument{display:none}
@media(max-width:700px){.cashSummary{grid-template-columns:1fr}.refundDetails{grid-template-columns:1fr}.refundDetails label:last-child{grid-column:auto}}
@media print{
 body.printingReceipt>aside,body.printingReceipt>.topbar,body.printingReceipt>main,body.printingReceipt>.mobile-nav,body.printingReceipt>#cancelModal{display:none!important}
 body.printingReceipt>#receiptDocument{display:block!important;font-family:Arial,Helvetica,sans-serif;color:#111;padding:8mm 4mm}
 body.printingReceipt>#receiptDocument header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #078fe7;padding-bottom:6mm}body.printingReceipt>#receiptDocument header>div:first-child{max-width:130mm}body.printingReceipt>#receiptDocument header>div:last-child{text-align:right}body.printingReceipt>#receiptDocument header strong{display:block;font-size:24px;color:#073b67}body.printingReceipt>#receiptDocument header span{font-size:12px}#receiptLogo{max-width:42mm;max-height:18mm;margin-bottom:2mm}#receiptCompany{font-size:18px;color:#073b67;margin:0 0 1mm}#receiptCompanyInfo{font-size:9px;line-height:1.5;margin:0}
 body.printingReceipt>#receiptDocument main{display:block!important;padding:12mm 3mm 6mm}#receiptDocument main h2{text-align:center;font-size:16px;letter-spacing:.08em;color:#073b67}.receiptAmount{text-align:center;font-size:30px;font-weight:900;color:#079b50;margin:6mm 0}.receiptDocument main>p:not(.receiptAmount):not(.receiptNonFiscal){font-size:12px;line-height:1.7}.receiptDocument dl{margin:9mm 0;border:1px solid #d5dee7}.receiptDocument dl>div{display:grid;grid-template-columns:48mm 1fr;padding:3mm;border-bottom:1px solid #d5dee7}.receiptDocument dl>div:last-child{border-bottom:0}.receiptDocument dt{font-size:10px;font-weight:800;color:#52657a}.receiptDocument dd{font-size:11px;margin:0}.receiptSignature{text-align:center;margin:17mm auto 5mm;width:90mm}.receiptSignature>span{display:block;font-size:10px;margin-bottom:15mm}.receiptSignature i{display:block;border-top:1px solid #333}.receiptSignature b,.receiptSignature small{display:block;margin-top:2mm}.receiptSignature small{font-size:9px}.receiptNonFiscal{text-align:center;font-size:8px!important;color:#555;margin-top:10mm}.receiptDocument footer{border-top:1px solid #078fe7;text-align:center;padding-top:2mm;font-size:9px}
}
/* MVP 3.25 — alinhamento do bloco Forma de pagamento */
.paymentGrid{align-items:end;column-gap:10px;row-gap:12px}
.paymentGrid>label{margin:0;min-width:0}
.paymentGrid>.check{min-height:46px;padding:0 0 1px;align-self:end}
.paymentGrid>.check.span2{grid-column:1/-1;min-height:auto;padding:10px 0 4px;border-top:1px solid #edf2f6}
.paymentGrid>#cardFeeInfo{margin:0}
.paymentGrid>#paidDateWrap{align-self:end}
@media(max-width:640px){
  .paymentGrid{grid-template-columns:1fr 1fr}
  .paymentGrid>.check.span2{grid-column:1/-1}
}

/* Pacote de correções funcionais — empresa, clientes, negociação e documento. */
.cepStatus{min-height:18px;color:var(--muted);font-size:12px;font-weight:600}
.cepStatus.loading{color:var(--blue)}
.cepStatus.success{color:#12834a}
.cepStatus.error{color:#b4232e}
#companySetupPrompt{margin:0 0 20px}
#quoteCompany[readonly]{background:#f3f7fa;color:#40566e;cursor:not-allowed}
.studioPriceGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.clientAddress{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35}
.summary .panel.preview{box-shadow:none!important}
.pdfExportClone{padding-top:3mm!important;padding-bottom:3mm!important;box-shadow:none!important}
.pdfExportClone .pdfFooter{margin-top:4mm!important}
@media(max-width:640px){.studioPriceGrid{grid-template-columns:1fr!important}}
@media(max-width:420px){
  .paymentGrid{grid-template-columns:1fr}
  .paymentGrid>.check,.paymentGrid>.check.span2{grid-column:1/-1;min-height:auto;padding:9px 0}
}

/* MVP 3.30 — preços híbridos para banners e faixas */
.hybridPriceHelp{align-self:end;min-height:46px;display:flex;align-items:center;padding:8px 11px;border:1px solid #cde5f6;border-radius:8px;background:#f3f9fd;color:#45657f;font-size:11px;line-height:1.35}
@media(max-width:640px){.hybridPriceHelp{grid-column:1/-1}}

/* MVP 3.31 — deslocamento da instalação */
.travelFields{margin-top:10px;padding:12px;border:1px solid #cfe2f1;border-radius:10px;background:#f7fbfe}.travelFieldsHead{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px;color:var(--navy)}.travelFieldsHead small{font-size:10px;color:var(--muted);font-weight:500}.travelGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.travelRound{padding-top:22px!important}.travelEstimate{margin-top:8px;padding:8px 10px;border-radius:7px;background:#eaf6ff;color:#075f9b;font-size:11px;font-weight:800}.travelSettings{margin-top:18px}.travelSettings .check{padding-top:8px}
@media(max-width:640px){.travelGrid{grid-template-columns:1fr}.travelRound{padding-top:5px!important}}

/* MVP 3.32 — controles alinhados nas grades financeira e de deslocamento */
.depositPaidField,.travelDefaultField{display:flex!important;flex-direction:column;justify-content:flex-end;gap:5px;align-self:end}
.depositPaidField>span:first-child,.travelDefaultField>span:first-child{display:block;color:var(--blue);font-weight:700;font-size:13px}
.checkboxControl{display:flex!important;align-items:center;gap:9px;width:100%;min-height:48px;padding:0 13px;border:1px solid #cfdce8;border-radius:8px;background:#fff;color:var(--ink);font-size:13px;font-weight:700;line-height:1.25}
.checkboxControl input{flex:0 0 auto;width:auto!important;min-height:0!important;margin:0!important}
.paymentGrid>.depositPaidField{min-height:auto;padding:0}
.paymentGrid>.depositPaidField{grid-column:1;grid-row:2}.paymentGrid>.paymentBalanceField{grid-column:2;grid-row:2}.paymentGrid>.paymentInstallmentsField{grid-column:3;grid-row:2}.paymentGrid>.paymentWhenField{grid-column:1;grid-row:3}.paymentGrid>.paymentDueField{grid-column:2;grid-row:3}.paymentGrid>#cardBrandWrap{grid-column:3;grid-row:3}.paymentGrid>#depositPaidDateWrap{grid-column:1;grid-row:4}
.travelSettings .formgrid{align-items:end}
@media(max-width:640px){.depositPaidField,.travelDefaultField{grid-column:auto}.checkboxControl{min-height:46px}.paymentGrid>.depositPaidField,.paymentGrid>.paymentBalanceField,.paymentGrid>.paymentInstallmentsField,.paymentGrid>.paymentWhenField,.paymentGrid>.paymentDueField,.paymentGrid>#cardBrandWrap,.paymentGrid>#depositPaidDateWrap{grid-column:auto;grid-row:auto}}

/* MVP 3.33 — ações do catálogo de produtos */
.productActions{display:flex;flex-direction:column;gap:6px;align-items:stretch}.deleteProductBtn{width:auto!important;min-height:34px!important;padding:7px 10px!important;border:1px solid #efb4b8!important;border-radius:7px!important;background:#fff3f4!important;color:#b4232d!important;font-size:12px!important;font-weight:750!important}.deleteProductBtn:hover{background:#ffe5e7!important}
@media(max-width:760px){.productActions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.productActions button{flex:1}.productRow .deleteProductBtn{display:block!important}}

/* MVP 3.46 — geração e compartilhamento do PDF */
.documentShareActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.shareAction{border:1px solid #b8d8f1;border-radius:9px;padding:11px 10px;background:#fff;color:#073b67;font-weight:800;cursor:pointer}.shareAction:disabled{opacity:.55;cursor:wait}.shareDownload{background:#073b67;color:#fff;border-color:#073b67}.shareNative{background:#078fe7;color:#fff;border-color:#078fe7}.shareWhatsapp{color:#087a43;border-color:#8bd5ae}.shareEmail{color:#075d9a}.shareHelp{margin:8px 2px 0;color:#64748b;font-size:11px;line-height:1.45}.shareStatus{margin-top:9px;padding:9px 11px;border-radius:8px;background:#eef9ff;color:#075d9a;font-size:11px;font-weight:700}.shareStatus.error{background:#fff1f1;color:#b42318}
.pdfExportClone{width:190mm!important;max-width:none!important;padding:8mm 10mm!important;background:#fff!important;color:#111!important;font-family:Arial,Helvetica,sans-serif!important;box-shadow:none!important;border:0!important}.pdfExportClone .screenSummary,.pdfExportClone .internal,.pdfExportClone .clientMeasureToggle,.pdfExportClone .measureHelp,.pdfExportClone .success,.pdfExportClone .confirmOrderBtn,.pdfExportClone .recordStatusBox,.pdfExportClone .pdfPrintBtn,.pdfExportClone .receiptPrintBtn,.pdfExportClone .documentShareActions,.pdfExportClone .shareHelp,.pdfExportClone .shareStatus,.pdfExportClone .saveStatus{display:none!important}.pdfExportClone .issuerBlock,.pdfExportClone .clientBlock{border:0!important;border-radius:0!important;background:#fff!important}.pdfExportClone .issuerBlock .blockLabel{display:none!important}.pdfExportClone .pdfHead{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8mm!important;border-bottom:2px solid #078fe7!important;padding:4mm 0!important}.pdfExportClone .blockLabel,.pdfExportClone .printSectionTitle{background:#fff!important;color:#073b67!important;border-left:4px solid #20c568!important;border-bottom:1px solid #b9d8ee!important;border-radius:0!important}.pdfExportClone .printSection{margin-top:5mm!important}.pdfExportClone .previewItem{break-inside:avoid;border-bottom:1px solid #d9e1e8!important}.pdfExportClone .printValues{break-inside:avoid}.pdfExportClone #summaryRows,.pdfExportClone .total{width:110mm!important;margin-left:auto!important}.pdfExportClone .paymentBox{background:#fff!important;border:1px solid #cbd5df!important;border-left:4px solid #078fe7!important;border-radius:0!important;break-inside:avoid}.pdfExportClone .pdfFooter{position:static!important;margin-top:8mm!important;border-top:1px solid #078fe7!important;padding-top:3mm!important;color:#222!important}.pdfExportClone .validity{color:#333!important}
@media(max-width:640px){.documentShareActions{grid-template-columns:1fr}.shareAction{width:100%}}
@media print{.documentShareActions,.shareHelp,.shareStatus{display:none!important}}

/* MVP 3.57 — acabamento com lista ancorada abaixo do campo. */
.finishingNativeSelect{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.finishingCombobox{position:relative;width:100%;margin-top:5px}
.finishingCombobox>input{width:100%;min-height:46px;padding-right:42px!important;border-radius:11px!important;background:#fff;cursor:text;font-weight:400!important}
.finishingArrow{position:absolute;right:15px;top:23px;width:8px;height:8px;border-right:2px solid #10233e;border-bottom:2px solid #10233e;transform:translateY(-65%) rotate(45deg);pointer-events:none}
.finishingOptions{position:absolute!important;z-index:120!important;top:calc(100% + 6px)!important;bottom:auto!important;left:0;right:0;max-height:290px;overflow-y:scroll;scrollbar-gutter:stable;overscroll-behavior:contain;padding:6px;background:#fff;border:1px solid #b9c9d8;border-radius:10px;box-shadow:0 14px 32px rgba(15,35,62,.18)}
.finishingOptions.hidden{display:none!important}
.finishingOptions button{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:#fff;color:#10233e;text-align:left;font:inherit;cursor:pointer}
.finishingOptions button:hover,.finishingOptions button.active{background:#eaf6ff;color:#075d9a}
.finishingOptions button[aria-selected="true"]{font-weight:800;color:#075d9a}
.finishingEmpty{padding:11px;color:#66788d;font-size:12px}

/* MVP 3.58 — realce da navegação por teclado na busca de produtos. */
.productSearchResult.active{background:#eaf6ff!important;color:#075d9a!important;outline:2px solid #8bcaf2;outline-offset:-2px}

/* MVP 3.59 — listas da forma de pagamento com direção, setas e cursor uniformes. */
.paymentNativeSelect{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.paymentSelectControl{position:relative;width:100%;margin-top:5px}
.paymentSelectButton{position:relative;display:flex;align-items:center;width:100%;min-height:48px;padding:10px 42px 10px 13px;border:1px solid #cfdce8;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-weight:700;text-align:left;cursor:pointer}
.paymentSelectButton>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.paymentSelectButton>i{position:absolute;right:15px;top:50%;width:8px;height:8px;border-right:2px solid #10233e;border-bottom:2px solid #10233e;transform:translateY(-65%) rotate(45deg);pointer-events:none}
.paymentSelectButton:hover{border-color:#8cbfe3;background:#fbfdff}
.paymentSelectButton:focus{outline:2px solid rgba(7,143,231,.22);border-color:#078fe7}
.paymentSelectOptions{position:absolute!important;z-index:140!important;top:calc(100% + 6px)!important;bottom:auto!important;left:0;right:0;max-height:250px;overflow-y:scroll;scrollbar-gutter:stable;overscroll-behavior:contain;padding:6px;border:1px solid #b9c9d8;border-radius:9px;background:#fff;box-shadow:0 14px 32px rgba(15,35,62,.18)}
.paymentSelectOptions.hidden{display:none!important}
.paymentSelectOptions button{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:#fff;color:#10233e;text-align:left;font:inherit;cursor:pointer}
.paymentSelectOptions button:hover,.paymentSelectOptions button.active{background:#eaf6ff;color:#075d9a}
.paymentSelectOptions button[aria-selected="true"]{font-weight:800;color:#075d9a}
.paymentGrid .paymentSelectControl,.paymentGrid .paymentSelectButton,.paymentGrid .paymentSelectButton>i,.paymentGrid .paymentSelectOptions button{cursor:pointer}

/* MVP 3.63 — experiência completa em celulares e tablets. */
.mobileHeaderLogo{display:none}
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
  body{padding-bottom:env(safe-area-inset-bottom)}
  body>aside{display:none!important}
  .topbar{left:0!important;right:0!important;top:0!important;height:60px!important;padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left))!important;z-index:100!important;justify-content:space-between!important}
  .mobileHeaderLogo{display:block!important;width:auto!important;height:38px!important;max-width:124px!important;object-fit:contain!important}
  .topUser{margin-left:auto!important;gap:5px!important}
  .topUser .userMeta,.topUser .userChevron{display:none!important}
  .notifyBtn{width:40px!important;height:40px!important;min-height:40px!important}
  .userAvatar{width:36px!important;height:36px!important;flex:0 0 36px!important}
  body>main{width:100%!important;max-width:100%!important;margin:0!important;padding:76px 10px calc(88px + env(safe-area-inset-bottom))!important;overflow:visible!important}
  .view,.quotegrid,.quotegrid>div,.panel,.summary,.settings{width:100%!important;max-width:100%!important;min-width:0!important}
  .pagehead,.panelhead,.studioHead{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .pagehead h1{font-size:25px!important;line-height:1.15}
  .pagehead p{margin:5px 0 0;font-size:13px;line-height:1.4}
  .headActions{width:100%;display:grid!important;grid-template-columns:1fr 1fr!important}
  .headActions button,.pagehead>button{width:100%!important}
  .panel{padding:14px!important;border-radius:13px!important}
  .formgrid,.paymentGrid,.studioPriceGrid,.studioFinancial .formgrid{grid-template-columns:1fr!important}
  .formgrid>*,.span2,.span3,.paymentGrid>*{grid-column:1/-1!important;grid-row:auto!important;min-width:0!important}
  input,select,textarea,.paymentSelectButton,.finishingCombobox>input{font-size:16px!important;max-width:100%!important}
  textarea{min-height:100px}
  .quotegrid{display:flex!important;flex-direction:column!important;gap:12px!important}
  .quoteStudio{padding:14px!important}
  .studioHead{margin-bottom:17px!important}
  .autoBadge{align-self:flex-start!important;white-space:normal!important}
  .studioTop,.studioProductRow,.studioChoices{display:grid!important;grid-template-columns:1fr!important;gap:13px!important}
  .measurePair{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;gap:5px!important}
  .measurePair input{padding-left:10px!important;padding-right:8px!important}
  .studioProductCard{grid-template-columns:88px minmax(0,1fr)!important;padding:10px!important;gap:10px!important}
  .studioProductCard .quoteProductImageBox{min-height:94px!important;height:94px!important}
  .studioProductCard .selectedProductMeta>strong{font-size:14px!important;overflow-wrap:anywhere}
  .quoteProductResults{position:fixed!important;z-index:220!important;left:10px!important;right:10px!important;top:126px!important;width:auto!important;max-height:calc(100dvh - 220px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
  .productSearchResult{grid-template-columns:46px minmax(0,1fr) 22px!important;min-height:62px!important}
  .productSearchResult img,.resultPlaceholder{width:46px!important;height:42px!important}
  .productSearchResult b{font-size:13px!important;overflow-wrap:anywhere}
  .productSearchResult small{font-size:11px!important}
  .finishingOptions,.paymentSelectOptions{z-index:230!important;max-height:min(42dvh,280px)!important;-webkit-overflow-scrolling:touch}
  .inlinePricing{grid-template-columns:1fr!important}
  .itemrow{grid-template-columns:minmax(0,1fr) auto!important}
  .itemrow>*{min-width:0}
  .summary:before{padding:18px 14px 7px!important}
  .summary .panel{position:static!important;top:auto!important}
  .pdfHead{display:flex!important;flex-direction:column!important}
  .pdfOrder{text-align:left!important;white-space:normal!important}
  .previewLine,.paymentBox p,.total{gap:8px!important;align-items:flex-start!important}
  .previewLine span,.paymentBox p{overflow-wrap:anywhere}
  .total strong{font-size:21px!important;text-align:right}
  .documentShareActions{grid-template-columns:1fr!important}
  .dashboardHead .periodBtn{align-self:stretch!important;justify-content:center!important}
  .dashboardCards{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .dashboardCards .metricCard{min-width:0!important;padding:11px 9px!important;gap:7px!important}
  .metricCard .metricIcon{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:16px!important}
  .metricCard strong{font-size:18px!important;white-space:normal!important;overflow-wrap:anywhere}
  .metricCard label{font-size:11px!important}
  .metricCard small{font-size:8px!important;line-height:1.25}
  .dashboardGrid,.dashboardSide{display:grid!important;grid-template-columns:1fr!important}
  .recentPanel .row,.savedRow,.productRow{grid-template-columns:1fr!important;gap:5px!important;padding:12px 4px!important}
  .recentPanel .row span,.savedRow>*,.productRow>*{display:block!important;justify-self:stretch!important;min-width:0!important}
  .rowActions,.productActions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .rowActions button,.productActions button{display:block!important;width:100%!important}
  .productRow .star{display:none!important}
  .productRow .productCardImage,.productRow .productCardPlaceholder{width:72px!important;height:60px!important}
  .productRegisterGrid,.productListTools,.logoUpload{grid-template-columns:1fr!important}
  .productPhotoEditor{max-width:none!important;width:100%!important}
  .productPhotoPreview{height:190px!important}
  .filters{display:flex!important;width:100%!important;overflow-x:auto!important;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .filters .filter{flex:0 0 auto!important;white-space:nowrap!important}
  .searchbar{display:block!important}
  .feeTableWrap{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .feeTable{min-width:700px!important}
  .cancelModal{padding:10px!important;align-items:flex-end!important}
  .cancelModalCard{width:100%!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;border-radius:18px 18px 8px 8px!important;padding:20px 16px!important}
  .mobile-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:200!important;padding:4px max(2px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(2px,env(safe-area-inset-left))!important;background:#fff!important;border-top:1px solid var(--line)!important;box-shadow:0 -5px 22px rgba(16,35,62,.14)!important}
  .mobile-nav button{min-width:0!important;min-height:54px!important;padding:5px 1px!important;border:0!important;background:#fff!important;color:var(--navy)!important;font-size:19px!important;line-height:1!important}
  .mobile-nav button span{display:block!important;margin-top:5px!important;font-size:8px!important;line-height:1.05!important;white-space:nowrap!important}
  .mobile-nav button.active{color:var(--blue)!important;background:#f1f8fe!important;border-radius:9px!important}
}
@media(max-width:380px){
  body>main{padding-left:7px!important;padding-right:7px!important}
  .panel,.quoteStudio{padding:11px!important}
  .dashboardCards{grid-template-columns:1fr!important}
  .studioProductCard{grid-template-columns:1fr!important}
  .studioProductCard .quoteProductImageBox{height:145px!important}
  .mobile-nav button span{font-size:7.5px!important}
}

/* MVP 3.64 — navegação móvel maior e coerente com o menu do desktop. */
@media(max-width:760px){
  body>main{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:7px 4px calc(7px + env(safe-area-inset-bottom))!important;gap:3px!important}
  .mobile-nav button{min-height:76px!important;padding:8px 3px!important;font-size:24px!important;border-radius:11px!important}
  .mobile-nav button span{font-size:10px!important;line-height:1.15!important;font-weight:750!important;white-space:normal!important;min-height:23px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .mobile-nav button.active{background:#087ee7!important;color:#fff!important;box-shadow:0 5px 13px rgba(8,126,231,.24)!important}
  .userAvatar{border:2px solid #c9e4fb!important;padding:0!important;cursor:pointer!important}
}
@media(max-width:380px){
  .mobile-nav button{font-size:22px!important;padding-left:1px!important;padding-right:1px!important}
  .mobile-nav button span{font-size:9px!important}
}

/* MVP 3.65 — identidade e acessibilidade visual do aplicativo móvel. */
@media(max-width:760px){
  :root{--mobile-navy:#063a67;--mobile-blue:#087ee7;--mobile-focus:#20c568;--mobile-bg:#eaf3fa}
  body{background:var(--mobile-bg)!important;color:#0b1f39!important}
  .topbar{height:72px!important;background:linear-gradient(135deg,#063a67 0%,#07558f 100%)!important;border:0!important;box-shadow:0 5px 18px rgba(3,47,85,.24)!important;padding-top:8px!important;padding-bottom:8px!important}
  .mobileHeaderLogo{width:108px!important;max-width:108px!important;height:54px!important;object-fit:contain!important;object-position:left center!important}
  .notifyBtn{color:#fff!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.28)!important}
  .notifyBtn:hover,.notifyBtn:focus{background:rgba(255,255,255,.2)!important;outline:3px solid rgba(255,255,255,.3)!important}
  .userAvatar{background:#fff!important;color:#063a67!important;border:3px solid #8fd4ff!important;font-size:15px!important;box-shadow:0 3px 9px rgba(0,0,0,.18)!important}
  body>main{padding-top:90px!important;background:linear-gradient(180deg,#eef7fd 0%,#e7f1f8 100%)!important}
  .pagehead{padding:2px 5px 5px!important}
  .pagehead .backBtn{align-self:flex-start!important;color:#075f9b!important;background:#dceefa!important;border:1px solid #b8d9ef!important;border-radius:10px!important;padding:9px 13px!important;min-height:44px!important}
  .pagehead h1{color:#062f55!important;font-size:27px!important;font-weight:850!important;letter-spacing:-.02em!important}
  .panel,.summary:before{border:1px solid #c6d9e8!important;box-shadow:0 7px 22px rgba(6,58,103,.1)!important;background:#fff!important}
  #quote>.quotegrid>div>.panel:first-child{background:linear-gradient(180deg,#f9fcff 0%,#f2f8fd 100%)!important;border-color:#a9cce5!important}
  #quote>.quotegrid>div>.panel:first-child>h2,.quoteStudio .studioHead h2,#quote>.quotegrid>div>.panel:last-child>h2{margin:-14px -14px 18px!important;padding:15px 14px!important;background:linear-gradient(100deg,#073c69,#087ee7)!important;color:#fff!important;border-radius:12px 12px 0 0!important;font-size:20px!important;line-height:1.25!important}
  #quote>.quotegrid>div>.panel:first-child>h2 i,.quoteStudio .studioHead h2 i,#quote>.quotegrid>div>.panel:last-child>h2 i{background:#fff!important;color:#087ee7!important;box-shadow:0 0 0 3px rgba(255,255,255,.2)!important}
  .quoteStudio .studioHead{margin-bottom:17px!important}
  .quoteStudio .studioHead h2{width:calc(100% + 28px)!important}
  .autoBadge{background:#daf7e9!important;color:#08734a!important;border:1px solid #9de0bf!important;font-size:12px!important;padding:9px 11px!important}
  label,.studioProductSearch>label,.studioMeasures>label:first-child,.studioQty,.studioNotes,.choiceBlock>label{color:#073c69!important;font-size:15px!important;font-weight:800!important;line-height:1.3!important}
  input,select,textarea,.paymentSelectButton,.finishingCombobox>input{min-height:52px!important;border:2px solid #9fbdd4!important;border-radius:11px!important;background:#fff!important;color:#10233e!important;padding:13px!important;box-shadow:inset 0 1px 2px rgba(6,58,103,.04)!important}
  input::placeholder,textarea::placeholder{color:#64788d!important;opacity:1!important}
  input:hover,select:hover,textarea:hover,.paymentSelectButton:hover,.finishingCombobox>input:hover{border-color:#5e9dca!important}
  input:focus,select:focus,textarea:focus,.paymentSelectButton:focus,.finishingCombobox>input:focus{outline:3px solid rgba(32,197,104,.24)!important;border-color:#149e57!important;box-shadow:0 0 0 1px #149e57!important}
  input:disabled,select:disabled,textarea:disabled{background:#e7edf2!important;color:#536579!important;border-color:#b9c6d1!important;opacity:1!important}
  #clientSelect{border-color:#087ee7!important;background-color:#f8fcff!important}
  .formgrid{gap:15px!important}
  .link{min-height:44px!important;font-size:14px!important;color:#076fb7!important;text-decoration:underline;text-underline-offset:3px!important}
  .studioProductCard{background:#f3f9fd!important;border:1px solid #b9d4e8!important}
  .quoteProductImageBox{background:#fff!important;border:2px dashed #8dbbd9!important}
  .studioFinancial{background:#f3f8fc!important;border:1px solid #c8ddeb!important;border-radius:12px!important;padding:14px!important}
  .sectionMiniHead h3{color:#073c69!important;font-size:19px!important}
  .primary,.success,.screenSave,.confirmOrderBtn,.pdfPrintBtn,.shareAction{min-height:52px!important;border-radius:11px!important;font-size:16px!important}
  .primary{background:#087ee7!important;box-shadow:0 5px 12px rgba(8,126,231,.2)!important}
  .success,.screenSave{background:#159f59!important;color:#fff!important}
  button:focus-visible,a:focus-visible{outline:3px solid #ffbf31!important;outline-offset:2px!important}
  .checkboxControl,.check{font-size:15px!important;line-height:1.35!important}
  input[type='checkbox']{width:22px!important;height:22px!important;min-height:22px!important;accent-color:#087ee7!important}
  .summary:before{color:#073c69!important;background:#e6f4fd!important;border-bottom:0!important}
  .screenProductItem,.paymentBox{background:#f4f9fd!important;border:1px solid #c6dceb!important}
  .mobile-nav{background:#063a67!important;border-top:3px solid #20c568!important;box-shadow:0 -7px 22px rgba(3,47,85,.24)!important}
  .mobile-nav button{background:transparent!important;color:#e7f4ff!important}
  .mobile-nav button.active{background:#087ee7!important;color:#fff!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.22),0 5px 13px rgba(0,0,0,.2)!important}
  #quotes .searchbar{display:grid!important;grid-template-columns:1fr!important;gap:13px!important}
  #quotes .filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;overflow:visible!important;padding:0!important}
  #quotes .filters .filter{width:100%!important;min-width:0!important;min-height:56px!important;padding:11px 8px!important;white-space:normal!important;font-size:17px!important;line-height:1.2!important;font-weight:800!important;text-align:center!important}
  #quotes .filters .filter:last-child:nth-child(odd){grid-column:1/-1!important}
  #quotes .filters .filter.active{background:#087ee7!important;border-color:#087ee7!important;color:#fff!important;box-shadow:0 4px 10px rgba(8,126,231,.2)!important}
}

/* MVP 3.68 — dashboard móvel no mesmo padrão visual da arte de divulgação. */
.mobileQuickActions{display:none}
@media(max-width:760px){
  .mobileQuickActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 20px}
  .quickAction{min-height:138px!important;border:1px solid transparent!important;border-radius:18px!important;padding:17px 10px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;color:#08274a!important;box-shadow:0 8px 18px rgba(6,58,103,.09)!important}
  .quickAction.quickBlue{background:linear-gradient(145deg,#edf6ff,#dcecff)!important;border-color:#c5def6!important}
  .quickAction.quickGreen{background:linear-gradient(145deg,#effcf5,#dcf6e8)!important;border-color:#bde8d0!important}
  .quickAction .quickIcon{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;background:#fff;box-shadow:0 5px 12px rgba(6,58,103,.09)}
  .quickAction.quickBlue .quickIcon{color:#087ee7}
  .quickAction.quickGreen .quickIcon{color:#10ae5e}
  .quickAction svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .quickAction b{font-size:16px!important;line-height:1.2!important;text-align:center!important;overflow-wrap:anywhere}
  .quickAction:active{transform:scale(.98)}
  #dashboard .dashboardCards{grid-template-columns:1fr!important;gap:9px!important;margin-top:12px!important}
  #dashboard .dashboardCards .metricCard{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important;min-height:78px!important;padding:12px 14px!important;border-radius:15px!important}
  #dashboard .metricCard .metricIcon{grid-row:1/3!important;width:44px!important;height:44px!important;flex-basis:44px!important;font-size:20px!important}
  #dashboard .metricCard>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:10px!important;width:100%!important}
  #dashboard .metricCard label{font-size:15px!important;color:#5d6f86!important}
  #dashboard .metricCard strong{font-size:20px!important;color:#09284b!important;text-align:right!important}
  #dashboard .metricCard small{grid-column:1/-1!important;font-size:11px!important;margin-top:3px!important}
  #dashboard .dashboardPromo{display:none!important}
  .mobile-nav{background:#fff!important;border-top:2px solid #d6e3ed!important}
  .mobile-nav button{background:#fff!important;color:#60728a!important}
  .mobile-nav button.active{background:#e9f4ff!important;color:#087ee7!important;box-shadow:inset 0 3px 0 #087ee7!important}
}
@media(max-width:380px){
  .quickAction{min-height:125px!important}
  .quickAction b{font-size:14px!important}
}

/* MVP 3.69 — logo oficial e navegação inferior azul. */
@media(max-width:760px){
  .mobileHeaderLogo{width:158px!important;max-width:158px!important;height:58px!important;object-fit:contain!important;object-position:left top!important;clip-path:inset(0 0 23% 0)!important;transform:translateY(7px) scale(1.08)!important;transform-origin:left top!important}
  .mobile-nav{background:#063a67!important;border-top:3px solid #20c568!important;box-shadow:0 -7px 22px rgba(3,47,85,.28)!important}
  .mobile-nav button{background:#063a67!important;color:#dcefff!important}
  .mobile-nav button span{font-size:11px!important;color:inherit!important;font-weight:800!important}
  .mobile-nav button.active{background:#087ee7!important;color:#fff!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18)!important}
}
@media(max-width:380px){.mobile-nav button span{font-size:10px!important}}

/* MVP 3.70 — busca móvel ancorada ao campo Produto. */
@media(max-width:760px){
  .quoteSearchWrap{position:relative!important;z-index:180!important}
  .quoteProductResults{position:absolute!important;z-index:240!important;top:calc(100% + 7px)!important;bottom:auto!important;left:0!important;right:0!important;width:100%!important;max-height:min(46dvh,330px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;border:2px solid #87b9dc!important;border-radius:12px!important;box-shadow:0 14px 30px rgba(3,47,85,.22)!important}
  .quoteProductResults.hidden{display:none!important}
  .productSearchResult{min-height:68px!important;padding:9px!important}
  .productSearchResult:active,.productSearchResult.active{background:#dff1ff!important}
}

/* MVP 3.71 — ação de cadastro obrigatório visível e acessível. */
.setupAction{width:100%;margin-top:16px;min-height:66px;border:0;border-radius:12px;padding:11px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) 24px;align-items:center;gap:12px;text-align:left;background:linear-gradient(105deg,#087ee7,#079bd9);color:#fff;box-shadow:0 7px 16px rgba(8,126,231,.22);cursor:pointer}
.setupAction:hover{filter:brightness(1.04);transform:translateY(-1px)}
.setupAction:active{transform:translateY(0)}
.setupActionIcon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:#087ee7;font-size:27px;font-weight:900;line-height:1}
.setupActionText{min-width:0;display:block}
.setupActionText strong{display:block;font-size:16px;line-height:1.2;color:#fff}
.setupActionText small{display:block;margin-top:4px;font-size:12px;line-height:1.3;font-weight:600;color:#eaf7ff}
.setupActionArrow{font-size:30px;line-height:1;text-align:right;color:#fff}
.setupAction:focus-visible{outline:4px solid #ffbf31;outline-offset:3px}
@media(max-width:760px){
  .setupAction{min-height:82px!important;margin-top:20px!important;padding:13px 14px!important;grid-template-columns:48px minmax(0,1fr) 24px!important;border:2px solid rgba(255,255,255,.65)!important;box-shadow:0 8px 19px rgba(6,58,103,.25)!important}
  .setupActionIcon{width:48px!important;height:48px!important;font-size:31px!important}
  .setupActionText strong{font-size:18px!important}
  .setupActionText small{font-size:13px!important}
}

/* MVP 3.72 — campos móveis permanecem visíveis com o teclado aberto. */
@media(max-width:760px){
  #quoteProductSearch{scroll-margin-top:100px!important}
  .quoteProductResults{max-height:min(290px,calc(100dvh - 300px))!important}
  .finishingCombobox>input[readonly]{cursor:pointer!important;background:#fff!important}
  .finishingOptions{max-height:min(290px,calc(100dvh - 260px))!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
}

/* MVP 3.73 — atalhos de preparação da empresa, cliente e produto. */
.setupCompanyAction{margin:0 0 18px;background:linear-gradient(105deg,#063a67,#087ee7)}
.setupProductAction{margin:0 0 15px;background:linear-gradient(105deg,#087ee7,#16a8df)}
.setupProductAction+label{display:block}
@media(min-width:761px){
  .setupCompanyAction,.setupProductAction{min-height:62px}
}

/* MVP 3.74 — entrada única responsiva para desktop e mobile. */
body.splashOpen{overflow:hidden}
.appSplash{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;overflow:hidden;padding:max(24px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));background:radial-gradient(circle at 50% 28%,#075483 0,#063a67 42%,#032b50 100%);color:#fff;opacity:1;visibility:visible;transition:opacity .38s ease,visibility .38s ease}
.appSplash.isLeaving{opacity:0;visibility:hidden;pointer-events:none}
.splashGlow{position:absolute;border-radius:50%;filter:blur(4px);pointer-events:none}
.splashGlowOne{width:45vw;height:45vw;max-width:620px;max-height:620px;left:-16vw;bottom:-24vw;background:rgba(5,174,222,.17)}
.splashGlowTwo{width:38vw;height:38vw;max-width:520px;max-height:520px;right:-13vw;top:-20vw;background:rgba(32,197,104,.14)}
.splashContent{position:relative;z-index:1;width:min(92vw,500px);display:flex;flex-direction:column;align-items:center;text-align:center;animation:splashRise .7s cubic-bezier(.2,.75,.25,1) both}
.splashIcon{width:clamp(92px,11vw,128px);aspect-ratio:1;object-fit:contain;border-radius:28%;filter:drop-shadow(0 15px 28px rgba(0,0,0,.27))}
.splashBrand{display:flex;align-items:baseline;margin-top:13px;font-size:clamp(40px,5vw,58px);line-height:1;font-weight:900;letter-spacing:-3px;text-shadow:0 4px 12px rgba(0,0,0,.22)}
.splashBrand span{color:#fff}.splashBrand b{color:#18a9df}.splashBrand b::first-letter{color:#18a9df}
.splashTagline{margin:15px 0 19px;font-size:clamp(20px,2.2vw,27px);line-height:1.18;font-weight:800}
.splashTagline span,.splashTagline strong{display:block}.splashTagline span{color:#18a9df}.splashTagline strong{color:#20c568}
.loginCard{width:100%;padding:21px;border:1px solid rgba(255,255,255,.24);border-radius:24px;background:rgba(3,42,75,.68);box-shadow:0 22px 48px rgba(0,0,0,.22);backdrop-filter:blur(14px);text-align:left}
.loginCard>label{display:block;margin:0 0 6px;color:#fff;font-size:14px;font-weight:800}
.loginCard>input,.passwordField input{height:52px;margin:0 0 15px;border:2px solid rgba(181,222,246,.5);border-radius:13px;padding:0 15px;background:#fff;color:#10233e;font-size:16px;outline:none}
.loginCard>input:focus,.passwordField input:focus{border-color:#20c568;box-shadow:0 0 0 4px rgba(32,197,104,.18)}
.passwordField{position:relative}.passwordField input{padding-right:54px}.passwordField button{position:absolute;right:5px;top:5px;width:42px;height:42px;border:0;border-radius:10px;background:#edf6fb;color:#063a67;font-size:18px;cursor:pointer}
.loginOptions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 15px}
.rememberLogin{display:flex!important;align-items:center;gap:7px;margin:0!important;color:#eaf7ff!important;font-size:13px!important;font-weight:700}.rememberLogin input{width:18px;height:18px;margin:0;accent-color:#20c568}
.forgotPassword,.loginSignup button{border:0;background:none;color:#69d5ff;font-weight:800;text-decoration:underline;cursor:pointer}
.loginError{margin:-3px 0 13px;padding:9px 11px;border-radius:9px;background:#ffe9e9;color:#a51d2b;font-size:13px;font-weight:800}
.splashStart{width:100%;min-height:58px;border:0;border-radius:15px;padding:13px 24px;display:flex;align-items:center;justify-content:center;gap:17px;background:linear-gradient(105deg,#087ee7,#12b8df);color:#fff;font-size:20px;font-weight:900;box-shadow:0 12px 25px rgba(0,152,225,.3);cursor:pointer;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.splashStart:hover{transform:translateY(-2px);filter:brightness(1.07);box-shadow:0 19px 38px rgba(0,152,225,.4)}
.splashStart:active{transform:scale(.985)}
.splashStart:focus-visible{outline:4px solid #fff;outline-offset:5px}
.splashStart span{font-size:31px;line-height:1}
.loginSignup{margin:14px 0 8px!important;text-align:center;color:#eaf7ff!important;font-size:13px}.demoHint{display:block;text-align:center;color:#bcd8e9;font-size:11px;line-height:1.35}.splashSystemName{margin-top:13px;color:#cde5f4;font-size:12px;font-weight:700;letter-spacing:.03em}
@keyframes splashRise{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .appSplash{place-items:center;padding:36px 24px calc(34px + env(safe-area-inset-bottom))}
  .splashContent{width:min(100%,390px)}
  .splashIcon{width:102px;border-radius:26px}
  .splashBrand{margin-top:11px;font-size:44px}
  .splashTagline{margin:13px 0 17px;font-size:22px}
  .loginCard{padding:18px;border-radius:20px}.loginCard>input,.passwordField input{height:50px}
  .splashStart{min-height:56px;border-radius:14px;font-size:19px}
  .splashSystemName{font-size:11px}
}
@media(max-height:620px){
  .appSplash{overflow:auto;place-items:start center}.splashIcon{width:72px}.splashBrand{font-size:34px;margin-top:8px}.splashTagline{font-size:18px;margin:8px 0 12px}.loginCard{padding:14px}.loginCard>input,.passwordField input{height:44px;margin-bottom:10px}.splashStart{min-height:48px}.splashSystemName{margin-top:9px}
}
@media(prefers-reduced-motion:reduce){.splashContent{animation:none}.appSplash,.splashStart{transition:none}}

/* MVP 3.76 — acesso corrigido, viewport/barra inferior e controle mostrar/ocultar senha. */
html,body{min-height:100%;-webkit-text-size-adjust:100%}
.appSplash{overflow-y:auto!important;overflow-x:hidden!important;align-items:start!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
.splashContent{margin:auto 0;flex:0 0 auto}
@media(max-width:760px){
  body.splashOpen{overflow:hidden}
  .appSplash{display:flex!important;justify-content:center!important;align-items:flex-start!important;padding:calc(18px + env(safe-area-inset-top)) 16px calc(34px + env(safe-area-inset-bottom))!important}
  .splashContent{width:min(100%,390px)!important;margin:0 auto!important;padding-bottom:8px}
  .splashIcon{width:78px!important}
  .splashBrand{font-size:36px!important;margin-top:7px!important}
  .splashTagline{font-size:18px!important;margin:8px 0 11px!important}
  .loginCard{padding:14px!important;border-radius:18px!important}
  .loginCard>input,.passwordField input{height:46px!important;margin-bottom:10px!important}
  .loginOptions{margin-bottom:10px!important;flex-wrap:wrap}
  .splashStart{min-height:50px!important;font-size:18px!important}
  .loginSignup{margin:10px 0 6px!important}
  .splashSystemName{margin-top:7px!important}
  main{padding-bottom:calc(126px + env(safe-area-inset-bottom))!important}
  .mobile-nav{padding-bottom:env(safe-area-inset-bottom);min-height:calc(62px + env(safe-area-inset-bottom))}
  .mobile-nav button{min-height:58px}
  .view{scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom))}
}
@media(max-height:700px){
  .appSplash{align-items:flex-start!important}
  .splashContent{margin:0 auto!important}
}
@media(max-width:420px){
  .forgotPassword{font-size:12px}.rememberLogin{font-size:12px!important}
  .demoHint{font-size:10px}
}

/* MVP 3.77 — acesso do protótipo e olho padrão de senha */
.passwordField{position:relative!important}.passwordField input{padding-right:48px!important}.passwordField #togglePasswordBtn{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;background:transparent!important;color:#60758d!important;display:grid!important;place-items:center!important;border-radius:8px!important}.passwordField #togglePasswordBtn:hover{background:#f1f6fa!important;color:var(--navy)!important}.passwordField #togglePasswordBtn:focus-visible{outline:2px solid var(--blue)!important;outline-offset:1px!important}.passwordField #togglePasswordBtn svg{pointer-events:none}.passwordField #togglePasswordBtn .hidden{display:none!important}

/* MVP 3.79 — acesso direto robusto e olho de senha visível */
#togglePasswordBtn{display:flex!important;align-items:center!important;justify-content:center!important;color:#526a80!important;opacity:1!important;visibility:visible!important}
#togglePasswordBtn svg{display:block;overflow:visible;flex:none}

/* MVP 3.80 — correção definitiva da camada de entrada */
#appSplash.accessGranted{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}

/* MVP 3.81 — cabeçalho OrçUP conforme arte aprovada */
header.topbar{background:linear-gradient(90deg,#073b67,#07558a)!important;min-height:74px!important;height:74px!important;border-bottom:0!important}
header.topbar>img,header.topbar .topLogo{height:58px!important;width:auto!important;max-width:360px!important;object-fit:contain!important;object-position:left center!important}
header.topbar .notifyBtn{color:#fff!important;border:2px solid rgba(255,255,255,.32)!important;border-radius:50%!important;width:48px!important;height:48px!important;padding:0!important;display:grid!important;place-items:center!important}
header.topbar .userAvatar{background:#fff!important;color:#063a67!important;border:4px solid #bfe9ff!important;width:48px!important;height:48px!important;font-size:17px!important}
header.topbar .userMeta{display:none!important}
header.topbar .userChevron{display:none!important}
@media(max-width:640px){
 header.topbar{height:72px!important;min-height:72px!important;padding:0 18px!important}
 header.topbar>img,header.topbar .topLogo{height:54px!important;max-width:250px!important}
 header.topbar .topSearch{display:none!important}
 header.topbar .notifyBtn{width:46px!important;height:46px!important}
 header.topbar .userAvatar{width:46px!important;height:46px!important}
 main{padding-top:90px!important}
}

/* MVP 3.82 — logo do topo 50% menor, sem recorte */
header.topbar{height:64px!important;min-height:64px!important}
header.topbar>img,header.topbar .topLogo{
  height:29px!important;
  width:auto!important;
  max-width:180px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
@media(max-width:640px){
  header.topbar{height:64px!important;min-height:64px!important}
  header.topbar>img,header.topbar .topLogo{
    height:27px!important;
    width:auto!important;
    max-width:125px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  main{padding-top:82px!important}
}

/* MVP 3.83 — PNG oficial completo no topo do aplicativo */
header.topbar{height:72px!important;min-height:72px!important}
header.topbar>img,header.topbar .topLogo{
  display:block!important;
  width:260px!important;
  height:auto!important;
  max-width:34vw!important;
  max-height:54px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
@media(max-width:640px){
  header.topbar{height:72px!important;min-height:72px!important;padding-left:14px!important;padding-right:14px!important}
  header.topbar>img,header.topbar .topLogo{
    width:185px!important;
    height:auto!important;
    max-width:52vw!important;
    max-height:48px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  main{padding-top:90px!important}
}

/* Prioridade final das correções do documento. */
.summary .panel.preview{box-shadow:none!important}
.pdfExportClone{padding:1mm 10mm 3mm!important;box-shadow:none!important}
.pdfExportClone .pdfFooter{margin-top:4mm!important}

/* MVP 3.86 — homologação final: clientes, edição de itens e recibos. */
.clientListHeader,.clientRow{
  display:grid;
  grid-template-columns:minmax(160px,1.3fr) minmax(130px,1fr) minmax(130px,.95fr) minmax(125px,.9fr) minmax(170px,1.15fr) minmax(220px,1.65fr);
  gap:14px;
  align-items:center;
}
.clientListHeader{
  margin-top:22px;
  padding:10px 14px;
  border-radius:10px 10px 0 0;
  background:#edf6fd;
  color:#0a4a75;
  font-size:.76rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.clientRow{
  padding:14px;
  border-bottom:1px solid #dbe7ef;
  color:#20364a;
  font-size:.88rem;
}
.clientRow:nth-child(odd){background:#fbfdff}
.clientCell{min-width:0;overflow-wrap:anywhere}
.clientNameCell b{color:#082a48;font-size:.95rem}
.clientContactCell,.clientAddressCell{color:#536b80;line-height:1.35}
.clientRow .clientTypeTag{display:inline-flex;max-width:100%;white-space:normal;text-align:center}

.itemrow .itemMain.itemEditable{cursor:pointer;border-radius:10px;padding:5px;margin:-5px;transition:background .18s ease,box-shadow .18s ease}
.itemrow .itemMain.itemEditable:hover,.itemrow .itemMain.itemEditable:focus{background:#eef8ff;box-shadow:0 0 0 2px #9fd5f4;outline:0}
.itemrow .itemEditButton{
  width:auto!important;
  min-width:68px;
  height:36px;
  padding:0 13px!important;
  border:1px solid #0d8ce8!important;
  border-radius:9px!important;
  background:#eff8ff!important;
  color:#0876be!important;
  font-size:.78rem!important;
  font-weight:800!important;
  cursor:pointer;
}
.itemrow .itemEditButton:hover{background:#dff2ff!important}
.itemEditNotice{margin:8px 0 10px;padding:10px 12px;border-left:4px solid #0d8ce8;border-radius:7px;background:#edf8ff;color:#174d70;font-size:.84rem}
#addItemButton.updatingProduct{background:#087fc8!important;box-shadow:0 7px 16px rgba(8,127,200,.2)}

.receiptControls{margin:16px 0 8px;padding:12px;border:1px solid #c9dfef;border-radius:10px;background:#f4faff;text-align:left}
.receiptControls>b{display:block;margin-bottom:9px;color:#0a4a75;font-size:.78rem;text-transform:uppercase;letter-spacing:.035em}
.receiptPaymentActions{display:grid;gap:8px}.receiptPaymentAction{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #d4e4ef;border-radius:9px;background:#fff}.receiptPaymentAction>span{display:grid;gap:2px;min-width:0}.receiptPaymentAction>span>b{color:#173c57;font-size:.82rem}.receiptPaymentAction small{color:#62798a;font-size:.72rem}.receiptPaymentAction button{flex:0 0 auto;min-height:38px;padding:8px 12px;border:1px solid #078fe7;border-radius:8px;background:#078fe7;color:#fff;font-size:.78rem;font-weight:850;cursor:pointer}
.balanceDueNotice{grid-column:1/-1;margin:0;padding:10px 12px;border-left:4px solid #078fe7;border-radius:7px;background:#eef8ff;color:#164967;font-size:.79rem;font-weight:750;line-height:1.4}.paymentDueField.needsBalanceDate{padding:8px;border:2px solid #e5a600;border-radius:9px;background:#fff9e7}.paymentDueField.needsBalanceDate input{border-color:#d99d00!important;box-shadow:0 0 0 3px rgba(229,166,0,.12)}
.pdfExportClone .receiptControls{display:none!important}
@media print{#receiptControls{display:none!important}}
@media(max-width:640px){.receiptPaymentAction{align-items:stretch;flex-direction:column}.receiptPaymentAction button{width:100%}}

/* MVP 3.87.5 — topo mais compacto sem retirar a margem técnica da impressão. */
.discountSummaryRow{margin-top:1mm;border-top:1px dashed #c9d6df;color:#a92732!important}.discountSummaryRow b,.discountSummaryRow span{color:#a92732!important;font-weight:850!important}
.pdfExportClone{padding-top:0!important}
.pdfExportClone .issuerBlock{margin-top:0!important}
.pdfExportClone .issuerBlock .pdfHead{padding-top:.25mm!important}
@media print{
  @page{size:A4;margin:1.5mm 10mm 12mm!important}
  #quote .summary .panel.preview{padding-top:0!important;margin-top:0!important}
  #quote .summary .issuerBlock{margin-top:0!important}
  #quote .summary .issuerBlock .pdfHead{padding-top:.25mm!important}
}
.receiptPrintBtn+#receiptPdfBtn{margin-top:8px}
.receiptPdfHolder{position:fixed;left:-10000px;top:0;width:210mm;background:#fff;z-index:-1}
.receiptDocument.receiptPdfClone{display:block!important;position:static!important;width:100%!important;min-height:auto!important;margin:0!important;padding:10mm!important;background:#fff!important;color:#102f49!important}
.receiptDocument.receiptPdfClone header,.receiptDocument.receiptPdfClone main,.receiptDocument.receiptPdfClone footer{display:block!important}

.pdfExportClone .backBtn,.pdfExportClone .pagehead,.pdfExportClone [data-view]{display:none!important}

@media(max-width:900px){
  .clientListHeader{display:none}
  .clientRow{grid-template-columns:1fr 1fr;margin-top:12px;border:1px solid #d7e5ee;border-radius:12px;background:#fff!important;box-shadow:0 4px 12px rgba(13,69,105,.06)}
  .clientCell::before{content:attr(data-label);display:block;margin-bottom:4px;color:#168fd1;font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
  .clientAddressCell{grid-column:1/-1}
}
@media(max-width:580px){
  .clientRow{grid-template-columns:1fr;padding:15px;gap:12px}
  .clientAddressCell{grid-column:auto}
  .itemrow{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  .itemrow>strong{grid-column:1/2}
  .itemrow .itemEditButton{grid-column:1/2;justify-self:start}
}

@media print{
  #quote>.pagehead,.backBtn{display:none!important}
  #quote{padding-top:0!important;margin-top:0!important}
  .summary .panel.preview{margin-top:0!important;padding-top:0!important}
}

/* MVP 3.87 — documento compacto, sem faixa decorativa e sem sombra. */
.summary .panel.preview{box-shadow:none!important}
#quote .summary .panel::before,.pdfExportClone::before,.pdfExportClone .panel::before{display:none!important;content:none!important;height:0!important;background:none!important}
#quote button.success:disabled,#quote .screenSave:disabled{cursor:default;opacity:.82;background:#e8f8f2!important;color:#087a52!important;border:1px solid #bde8d5!important}
.receiptAmountWords{text-align:center!important;font-size:12px!important;font-weight:700;color:#334e68;margin:-4mm 0 7mm!important}
.receiptPdfClone .receiptAmountWords{display:block!important;text-align:center!important}

.pdfExportClone{width:190mm!important;padding:0 7mm 2mm!important;box-shadow:none!important}
.pdfExportClone .issuerBlock,.pdfExportClone .clientBlock{margin-bottom:2.2mm!important}
.pdfExportClone .pdfHead{padding:.5mm 0 2mm!important;gap:5mm!important;margin:0!important}
.pdfExportClone .companyLogo{max-width:43mm!important;max-height:15mm!important}
.pdfExportClone .clientBlock .prepared{padding:2mm 1mm!important;margin:0!important}
.pdfExportClone .printSection{margin-top:2.5mm!important}
.pdfExportClone .printSectionTitle{padding:1.5mm 2.5mm!important;font-size:10.5px!important}
.pdfExportClone .previewItem{padding:.5mm 0 1mm!important}
.pdfExportClone .previewLine{padding:1.4mm 1mm!important;font-size:12px!important}
.pdfExportClone .previewItem small{padding:0 1mm 1mm!important;font-size:10px!important;line-height:1.25!important}
.previewItemSpecification{display:block;color:#536a7c;font-size:.76rem!important;line-height:1.35}
.pdfExportClone .previewItemSpecification{color:#4b6071!important;font-size:9.5px!important;font-weight:400!important}
.pdfExportClone #summaryRows{padding-top:.5mm!important}
.pdfExportClone #summaryRows .previewLine{padding:1.4mm 1mm!important}
.pdfExportClone .total{margin:1.5mm 0 0!important;padding:2mm 1mm!important}
.pdfExportClone .total strong{font-size:19px!important}
.pdfExportClone .paymentBox{margin:2.5mm 0!important;padding:2mm 2.5mm!important}
.pdfExportClone .paymentBox>span{margin:1mm 0!important}
.pdfExportClone .paymentBox p{margin:1.2mm 0!important;font-size:11px!important;line-height:1.25!important}
.pdfExportClone .commercialDocumentInfo{margin-top:2.5mm!important}
.pdfExportClone .commercialFacts{gap:2mm!important}
.pdfExportClone .validity{margin:2mm 0!important;font-size:9px!important}
.pdfExportClone .pdfFooter{margin-top:2.5mm!important;padding-top:1.5mm!important}

@media print{
  @page{size:A4;margin:3mm 10mm 12mm!important}
  #quote .summary .panel.preview{padding-top:0!important;box-shadow:none!important}
  #quote .summary .panel::before{display:none!important;content:none!important;height:0!important}
  .issuerBlock,.clientBlock{margin-bottom:2.5mm!important}
  .issuerBlock .pdfHead,.clientBlock .prepared{padding:2mm 0!important}
  .printSection{margin-top:2.5mm!important}
  .previewItem{padding:.5mm 0 1mm!important}
  .previewLine,#summaryRows .previewLine{padding:1.5mm 1mm!important}
  .paymentBox{margin-top:2.5mm!important;padding:2.5mm!important}
  .validity{margin:2mm 0!important}
}

/* MVP 3.87.1 — ordem visual natural em Produtos e serviços.
   Produto → card visual → medidas (L × A) → quantidade → acabamento/instalação. */
.quoteStudio .studioTop{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;align-items:stretch!important}
.quoteStudio .studioProductRow{display:block!important;margin:14px 0 12px!important}
.quoteStudio .studioProductCard{grid-template-columns:150px minmax(0,1fr)!important;min-height:108px!important;padding:12px!important}
.quoteStudio .studioProductCard .quoteProductImageBox{min-height:104px!important}
.studioMeasureQuantityRow{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(180px,.55fr);gap:16px;align-items:end;margin:12px 0 14px}
.studioMeasureQuantityRow .studioMeasures,.studioMeasureQuantityRow .studioQty{min-width:0}
.studioMeasureQuantityRow .studioQty{align-self:end;margin:0}

@media(max-width:820px){
  .studioMeasureQuantityRow{grid-template-columns:1fr!important;gap:12px!important}
}
@media(max-width:760px){
  .quoteStudio .studioProductRow{margin:12px 0!important}
  .quoteStudio .studioProductCard{grid-template-columns:88px minmax(0,1fr)!important;min-height:94px!important;padding:10px!important}
  .quoteStudio .studioProductCard .quoteProductImageBox{min-height:94px!important;height:94px!important}
  .studioMeasureQuantityRow{display:grid!important;grid-template-columns:1fr!important;margin:10px 0 13px!important}
}

/* MVP 3.87.2 — recibo real, independente e somente de leitura. */
body.receiptPreviewOpen{overflow:hidden}
.receiptPreviewModal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px;background:rgba(4,28,50,.78);backdrop-filter:blur(3px)}
.receiptPreviewModal.hidden{display:none!important}
.receiptPreviewShell{display:flex;flex-direction:column;width:min(1040px,100%);max-height:calc(100vh - 44px);overflow:hidden;border-radius:18px;background:#eef4f8;box-shadow:0 28px 80px rgba(0,20,38,.36)}
.receiptPreviewToolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid #cad9e4;background:#fff}
.receiptPreviewToolbar>div:first-child{display:grid;gap:2px}
.receiptPreviewToolbar b{color:#073b67;font-size:1rem}
.receiptPreviewToolbar span{color:#607489;font-size:.78rem}
.receiptPreviewActions{display:flex;gap:8px;align-items:center}
.receiptPreviewActions button{min-height:42px;padding:9px 15px;border-radius:9px;font-weight:800;cursor:pointer}
.receiptActionPrint{border:1px solid #a9cce4;background:#fff;color:#073b67}
.receiptActionPdf{border:1px solid #078fe7;background:#078fe7;color:#fff}
.receiptActionClose{border:1px solid #cad5dd;background:#edf2f5;color:#334e60}
.receiptPreviewActions button:disabled{opacity:.6;cursor:wait}
.receiptPreviewViewport{overflow:auto;padding:24px;background:#dfe8ee}
.receiptPreviewModal .receiptDocument,.receiptDocument.receiptPdfClone{display:block!important;position:relative!important;width:min(190mm,100%)!important;min-height:250mm;margin:0 auto!important;padding:13mm 14mm!important;box-sizing:border-box;background:#fff!important;color:#102f49!important;font-family:Arial,Helvetica,sans-serif!important;box-shadow:0 8px 28px rgba(7,41,65,.18)!important}
.receiptDocument header{position:static!important;inset:auto!important;width:auto!important;height:auto!important;z-index:auto!important;display:flex!important;align-items:flex-start;justify-content:space-between;gap:12mm;padding:0 0 6mm!important;background:transparent!important;border-bottom:2px solid #078fe7}
.receiptCompanyBlock{min-width:0;max-width:118mm}
.receiptDocument #receiptLogo{display:block;max-width:42mm;max-height:18mm;object-fit:contain;margin:0 0 3mm}
.receiptDocument #receiptLogo.hidden{display:none!important}
.receiptDocument #receiptCompany{margin:0 0 1.5mm;color:#073b67;font-size:18px;line-height:1.15;overflow-wrap:anywhere}
.receiptDocument #receiptCompanyInfo{margin:0;color:#3d566b;font-size:9px;line-height:1.55;overflow-wrap:anywhere}
.receiptIdentity{flex:0 0 52mm;text-align:right}
.receiptIdentity strong{display:block;color:#073b67;font-size:16px;line-height:1.2;letter-spacing:.035em}
.receiptIdentity span{display:block;margin-top:2mm;color:#40596c;font-size:10px;font-weight:800}
.receiptDocument main{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:9mm 2mm 4mm!important;background:#fff!important}
.receiptDocument main>h2{margin:0 0 8mm;text-align:center;color:#073b67;font-size:19px;letter-spacing:.08em}
.receiptLead{margin:0 0 1.5mm!important;text-align:center;color:#617689;font-size:10px!important;text-transform:uppercase;letter-spacing:.08em}
.receiptDocument #receiptClient{margin:0;text-align:center;color:#102f49;font-size:17px;overflow-wrap:anywhere}
.receiptClientDoc{margin:1.5mm 0 6mm!important;text-align:center;color:#3f586c;font-size:10px!important}
.receiptValueBlock{margin:7mm auto;padding:6mm 7mm;border:1px solid #b9d8ee;border-left:5px solid #20c568;border-radius:8px;background:#f7fcff;text-align:center}
.receiptValueBlock>span{color:#577084;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.receiptDocument .receiptAmount{margin:2mm 0 1mm!important;color:#087d4c;font-size:31px!important;font-weight:900;line-height:1.1;text-align:center}
.receiptDocument .receiptAmountWords{margin:0!important;color:#2f4a5f;font-size:12px!important;font-weight:700;line-height:1.45;text-align:center!important}
.receiptText{margin:6mm 1mm!important;color:#17384f;font-size:12px!important;font-weight:700;line-height:1.6;text-align:center}
.receiptDocument dl{margin:7mm 0;border:1px solid #d0dde6;border-radius:7px;overflow:hidden}
.receiptDocument dl>div{display:grid;grid-template-columns:48mm minmax(0,1fr);padding:3.2mm 4mm;border-bottom:1px solid #d9e3ea;background:#fff}
.receiptDocument dl>div:nth-child(odd){background:#f8fbfd}
.receiptDocument dl>div:last-child{border-bottom:0}
.receiptDocument dt{color:#557084;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.receiptDocument dd{margin:0;color:#102f49;font-size:11px;font-weight:800;overflow-wrap:anywhere}
.receiptDocument #receiptStatus{color:#087d4c}
.receiptIssuerCard{margin:7mm 0 4mm;padding:4mm 5mm;border-left:4px solid #078fe7;background:#f3f8fc}
.receiptIssuerCard h3{margin:0 0 2mm;color:#073b67;font-size:10px;letter-spacing:.05em}
.receiptIssuerCard b{display:block;color:#102f49;font-size:12px}
.receiptIssuerCard p{margin:1mm 0 0;color:#405c70;font-size:9.5px;line-height:1.5;overflow-wrap:anywhere}
.receiptDeclaration{text-align:center;color:#435d70;font-size:10px!important;line-height:1.5}
.receiptDocument .receiptSignature{width:88mm;margin:15mm auto 4mm;text-align:center}
.receiptDocument .receiptSignature>span{display:block;margin-bottom:13mm;color:#455f72;font-size:9px}
.receiptDocument .receiptSignature i{display:block;border-top:1px solid #2d4353}
.receiptDocument .receiptSignature b,.receiptDocument .receiptSignature small{display:block;margin-top:1.5mm;color:#203d52}
.receiptDocument .receiptSignature small{font-size:9px;font-weight:400}
.receiptDocument .receiptNonFiscal{margin:8mm 0 2mm!important;text-align:center;color:#617789;font-size:8px!important}
.receiptDocument footer{display:block!important;margin-top:5mm;padding-top:3mm;border-top:1px solid #078fe7;color:#415d71;font-size:8.5px;line-height:1.45;text-align:center;overflow-wrap:anywhere}
.receiptPdfHolder{position:fixed!important;left:-10000px!important;top:0!important;width:210mm!important;background:#fff!important;z-index:-1!important}
.receiptDocument.receiptPdfClone{width:196mm!important;min-height:277mm!important;padding:11mm 12mm!important;box-shadow:none!important}
.receiptDocument.receiptPdfClone header{display:flex!important}

@media(max-width:700px){
  .receiptPreviewModal{padding:0;place-items:stretch}
  .receiptPreviewShell{width:100%;max-height:100vh;border-radius:0}
  .receiptPreviewToolbar{align-items:flex-start;flex-direction:column;padding:13px 14px;gap:10px}
  .receiptPreviewActions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .receiptActionClose{grid-column:1/-1}
  .receiptPreviewViewport{padding:10px}
  .receiptPreviewModal .receiptDocument{width:100%!important;min-height:auto;padding:24px 18px!important}
  .receiptDocument header{flex-direction:column;gap:14px}
  .receiptIdentity{flex-basis:auto;text-align:left}
  .receiptDocument main{padding:26px 0 10px!important}
  .receiptDocument main>h2{font-size:17px;margin-bottom:25px}
  .receiptDocument dl>div{grid-template-columns:1fr;gap:4px;padding:11px 12px}
  .receiptDocument .receiptAmount{font-size:27px!important}
  .receiptDocument .receiptSignature{width:min(88mm,88%)}
}

@media print{
  body.printingReceipt{background:#fff!important}
  body.printingReceipt>#appSplash,body.printingReceipt>aside,body.printingReceipt>.topbar,body.printingReceipt>main,body.printingReceipt>.mobile-nav,body.printingReceipt>#cancelModal{display:none!important}
  body.printingReceipt>#receiptPreviewModal{display:block!important;position:static!important;inset:auto!important;padding:0!important;background:#fff!important;backdrop-filter:none!important}
  body.printingReceipt .receiptPreviewShell{display:block!important;width:auto!important;max-height:none!important;overflow:visible!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
  body.printingReceipt .receiptPreviewToolbar{display:none!important}
  body.printingReceipt .receiptPreviewViewport{display:block!important;overflow:visible!important;padding:0!important;background:#fff!important}
  body.printingReceipt #receiptDocument{display:block!important;width:auto!important;min-height:auto!important;margin:0!important;padding:4mm 5mm!important;box-shadow:none!important}
  body.printingReceipt #receiptDocument header{display:flex!important}
  body.printingReceipt #receiptDocument main{display:block!important;padding:7mm 1mm 3mm!important}
  body.printingReceipt #receiptDocument footer{display:block!important}
}

/* MVP 3.87.4 — módulo mensal compacto, sem alterar os demais componentes. */
.reportPageHead{align-items:flex-end}
.reportFilters{display:flex;gap:14px;align-items:end;margin-bottom:16px;padding:16px}
.reportFilters label{display:grid;gap:6px;min-width:170px;color:#0a4a75;font-size:.82rem;font-weight:800}
.reportFilters select{min-height:44px;padding:0 12px;border:1px solid #b8cedd;border-radius:9px;background:#fff;color:#102f49;font-weight:700;cursor:pointer}
.monthlyReportDocument{padding:24px;border:1px solid #d7e4ec;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(9,61,94,.07)}
.reportDocumentHead{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;padding-bottom:16px;border-bottom:2px solid #078fe7}
.reportDocumentHead>div:first-child{min-width:0}.reportDocumentHead>div:last-child{text-align:right;white-space:nowrap}
.reportCompanyLogo{display:block;max-width:170px;max-height:64px;object-fit:contain;margin-bottom:10px}
.reportDocumentHead h2{margin:0;color:#073b67;font-size:1.28rem}.reportDocumentHead p{max-width:720px;margin:6px 0 0;color:#5c7183;font-size:.78rem;line-height:1.45}
.reportDocumentHead strong{display:block;color:#073b67;font-size:1.05rem;letter-spacing:.04em}.reportDocumentHead span{display:block;margin-top:6px;color:#078fe7;font-size:.76rem;font-weight:800}
.reportComparison{margin:16px 0 0;padding:10px 13px;border-left:4px solid #20c568;border-radius:6px;background:#eefbf5;color:#176446;font-size:.82rem;font-weight:800}
.reportMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.reportMetrics article{display:grid;gap:4px;min-height:88px;padding:14px;border:1px solid #d9e6ee;border-radius:10px;background:#f8fbfd}
.reportMetrics span{color:#557084;font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.025em}.reportMetrics b{color:#073b67;font-size:1.2rem}.reportMetrics small{color:#168b61;font-size:.78rem;font-weight:800}
.reportSection{margin-top:18px;padding:16px;border:1px solid #d9e6ee;border-radius:10px;background:#fff;break-inside:avoid}
.reportSection h3{margin:0 0 14px;color:#073b67;font-size:.92rem;text-transform:uppercase;letter-spacing:.025em}
.reportSectionHelp{margin:-7px 0 14px;color:#607789;font-size:.75rem;line-height:1.45}
.reportDailyTable{overflow:hidden;border:1px solid #d9e5ec;border-radius:9px}
.reportDailyHeader,.reportDailySummary{display:grid;grid-template-columns:44px 64px repeat(5,minmax(92px,1fr)) 24px;gap:8px;align-items:center;padding:9px 10px}
.reportDailyHeader{background:#e8f4fb;color:#075682;font-size:.65rem;font-weight:900;text-transform:uppercase}
.reportDailyHeader span:not(:first-child){text-align:right}
.reportDailyGroup{border-top:1px solid #e1e9ef}.reportDailyGroup:first-child{border-top:0}
.reportDailySummary{min-height:42px;background:#fff;color:#29485d;font-size:.73rem;cursor:pointer;outline:0}
.reportDailySummary:hover,.reportDailySummary:focus{background:#f2f9fd}.reportDailySummary span{text-align:right}.reportDailySummary>b{color:#073b67}.reportDailySummary i{justify-self:end;color:#078fe7;font-size:1.1rem;font-style:normal;font-weight:900;transition:transform .18s}.reportDailySummary.expanded i{transform:rotate(90deg)}
.reportDailyWarning>.reportDailySummary{background:#fff9e8}.reportDailyWarning>.reportDailySummary:hover,.reportDailyWarning>.reportDailySummary:focus{background:#fff3ce}.reportDailyWarning>.reportDailySummary span:last-of-type{color:#a56700;font-weight:900}
.reportDailyError>.reportDailySummary{background:#fff0f0}.reportDailyError>.reportDailySummary:hover,.reportDailyError>.reportDailySummary:focus{background:#ffe3e3}.reportDailyError>.reportDailySummary span{color:#a52626;font-weight:800}
.reportDayDetails{padding:8px 12px 12px;background:#f7fafc}.reportOrderDetail{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,110px) 82px;gap:10px;align-items:center;padding:9px 10px;border-top:1px solid #dfe8ee;color:#334f62;font-size:.72rem}.reportOrderDetail:first-child{border-top:0}.reportOrderDetail>span:first-child{display:grid;gap:2px}.reportOrderDetail small{color:#667d8e}.reportOrderDetail>span:not(:first-child){text-align:right}.reportOrderStatus{justify-self:end;padding:4px 7px;border-radius:999px;font-size:.63rem;text-transform:uppercase}.reportOrderStatus.paid{background:#e5f8ef;color:#08754a}.reportOrderStatus.partial{background:#fff3d6;color:#936100}.reportOrderStatus.pending{background:#ffe5e5;color:#a21f2c}
.reportDailyChart{display:grid;grid-template-columns:repeat(var(--report-days),minmax(6px,1fr));gap:3px;align-items:end;height:190px;padding:12px 4px 0;border-bottom:1px solid #cbd9e2}
.reportDay{display:grid;grid-template-rows:1fr 18px;height:100%;min-width:0;text-align:center}.reportBarTrack{display:flex;align-items:flex-end;min-height:0;background:#eef5f9;border-radius:3px 3px 0 0;overflow:hidden}.reportBarTrack i{display:block;width:100%;background:linear-gradient(180deg,#19b9e7,#078fe7);border-radius:3px 3px 0 0}.reportDay span{padding-top:4px;color:#657b8c;font-size:.55rem}
.reportLists{display:grid;grid-template-columns:1fr 1fr;gap:16px}.reportTable{overflow:hidden;border:1px solid #dce7ee;border-radius:8px}.reportTableHead,.reportTableRow{display:grid;grid-template-columns:minmax(0,1fr) 64px 108px;gap:10px;align-items:center;padding:9px 11px}.reportTableHead{background:#eaf5fc;color:#0a5685;font-size:.68rem;font-weight:900;text-transform:uppercase}.reportTableRow{border-top:1px solid #e3ebf0;color:#29485e;font-size:.76rem}.reportTableRow b{min-width:0;overflow-wrap:anywhere}.reportTableRow span,.reportTableRow strong{text-align:right}.reportTableRow strong{color:#087d4c}.reportEmpty{padding:20px;text-align:center;color:#718493;font-size:.78rem}
.monthlyReportDocument>footer{margin-top:18px;padding-top:10px;border-top:1px solid #d7e4ec;color:#667b8b;font-size:.68rem;text-align:center}
.reportPdfHolder{position:fixed;left:-10000px;top:0;width:210mm;background:#fff;z-index:-1}.monthlyReportDocument.reportPdfClone{width:196mm!important;padding:7mm!important;border:0!important;border-radius:0!important;box-shadow:none!important}.reportPdfClone .reportMetrics{gap:3mm}.reportPdfClone .reportMetrics article{min-height:18mm;padding:3mm}.reportPdfClone .reportSection{margin-top:4mm;padding:3.5mm}.reportPdfClone .reportDailyChart{height:42mm}.reportPdfClone .reportTableHead,.reportPdfClone .reportTableRow{padding:2mm 2.5mm}.reportPdfClone .reportSectionHelp,.reportPdfClone .reportDayToggle{display:none!important}.reportPdfClone .reportDayDetails.hidden{display:none!important}.reportPdfClone .reportDayDetails:not(.hidden){display:block!important}.reportPdfClone .reportDailyHeader,.reportPdfClone .reportDailySummary{grid-template-columns:10mm 13mm repeat(5,minmax(0,1fr)) 0!important;gap:1.5mm!important;padding:1.5mm 2mm!important;font-size:7.5px!important}.reportPdfClone .reportDailyGroup{break-inside:auto!important}.reportPdfClone .reportDailySummary{break-after:avoid-page}.reportPdfClone .reportOrderDetail{break-inside:avoid;padding:1.8mm 2mm!important;font-size:7.5px!important;grid-template-columns:minmax(32mm,1fr) repeat(3,22mm) 18mm!important;gap:1.5mm!important}.reportPdfClone .reportDayDetails{padding:1.5mm 2mm 2.5mm!important;background:#f7fafc!important}.reportPdfClone>footer{margin-top:4mm}

@media(max-width:900px){
  .reportMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.reportLists{grid-template-columns:1fr}.reportDailyHeader,.reportDailySummary{grid-template-columns:38px 56px repeat(5,minmax(82px,1fr)) 20px;font-size:.68rem}.reportOrderDetail{grid-template-columns:minmax(150px,1fr) repeat(3,95px) 74px}
}
@media(max-width:620px){
  .reportPageHead{align-items:stretch}.reportPageHead #reportPdfButton{width:100%}.reportFilters{display:grid;grid-template-columns:1fr 1fr}.reportFilters label{min-width:0}.monthlyReportDocument{padding:16px}.reportDocumentHead{display:grid;gap:12px}.reportDocumentHead>div:last-child{text-align:left}.reportMetrics{grid-template-columns:1fr}.reportDailyChart{gap:2px;height:150px;padding-inline:0}.reportDay span{font-size:.48rem}.reportTableHead,.reportTableRow{grid-template-columns:minmax(0,1fr) 52px 96px;padding-inline:8px}.reportDailyHeader{display:none}.reportDailySummary{grid-template-columns:1fr 1fr;gap:10px;padding:13px}.reportDailySummary>*{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;text-align:right!important}.reportDailySummary>*::before{content:attr(data-label);color:#6b8190;font-size:.62rem;font-weight:800;text-align:left;text-transform:uppercase}.reportDailySummary .reportDayToggle{display:none}.reportOrderDetail{grid-template-columns:1fr 1fr;padding:12px 4px}.reportOrderDetail>span:first-child{grid-column:1/-1}.reportOrderDetail>span:not(:first-child){display:grid;gap:3px;text-align:left}.reportOrderDetail>span:not(:first-child)::before{content:attr(data-label);color:#6b8190;font-size:.6rem;font-weight:800;text-transform:uppercase}.reportOrderStatus{justify-self:start}
}

/* MVP 3.87.5 — última precedência para impressão do orçamento/pedido. */
.pdfExportClone .issuerBlock .pdfHead{padding-top:.25mm!important;margin-top:0!important}
.pdfExportClone .receiptControls{display:none!important}
@media print{
  @page{size:A4;margin:1.5mm 10mm 12mm!important}
  #quote .summary .panel.preview{padding-top:0!important;margin-top:0!important}
  #quote .summary .issuerBlock .pdfHead{padding-top:.25mm!important;margin-top:0!important}
  #receiptControls{display:none!important}
}

/* MVP 3.87.6 — recibos visíveis após as formas de pagamento. */
#quote .paymentGrid+.receiptControls,#quote .panel>.formgrid+.receiptControls{grid-column:1/-1;margin:18px 0 0;border:1px solid #91d8b3;background:#f2fff8;box-shadow:0 5px 16px rgba(4,122,68,.08)}
.receiptControlsHelp{margin:-3px 0 10px;color:#557267;font-size:.74rem;line-height:1.4}
.receiptPaymentAction button{min-width:170px;background:#087fc8;border-color:#087fc8}
.receiptPaymentAction button:hover{background:#066ba9;border-color:#066ba9}
@media(max-width:640px){.receiptPaymentAction button{min-width:0}}

/* MVP 3.87.7 — recibo A5 horizontal, compacto e legível. */
.receiptPreviewShell{width:min(1120px,100%)}
.receiptPreviewModal .receiptDocument{width:min(210mm,100%)!important;min-height:148mm!important;padding:7mm 8mm!important}
.receiptPdfHolder{width:210mm!important}
.receiptDocument.receiptPdfClone{width:198mm!important;min-height:138mm!important;padding:6mm 7mm!important}
body.printingReceipt>#receiptDocument{width:200mm!important;min-height:138mm!important;margin:0 auto!important;padding:5mm 6mm!important;box-sizing:border-box!important}
.receiptPreviewModal .receiptDocument header,.receiptDocument.receiptPdfClone header,body.printingReceipt>#receiptDocument header{gap:6mm!important;padding-bottom:3mm!important}
.receiptPreviewModal .receiptDocument #receiptLogo,.receiptDocument.receiptPdfClone #receiptLogo,body.printingReceipt>#receiptDocument #receiptLogo{max-width:34mm!important;max-height:12mm!important;margin-bottom:1.5mm!important}
.receiptPreviewModal .receiptDocument #receiptCompany,.receiptDocument.receiptPdfClone #receiptCompany,body.printingReceipt>#receiptDocument #receiptCompany{font-size:14px!important;margin-bottom:1mm!important}
.receiptPreviewModal .receiptDocument #receiptCompanyInfo,.receiptDocument.receiptPdfClone #receiptCompanyInfo,body.printingReceipt>#receiptDocument #receiptCompanyInfo{font-size:8px!important;line-height:1.35!important}
.receiptPreviewModal .receiptIdentity,.receiptDocument.receiptPdfClone .receiptIdentity,body.printingReceipt>#receiptDocument .receiptIdentity{flex-basis:49mm!important}
.receiptPreviewModal .receiptIdentity strong,.receiptDocument.receiptPdfClone .receiptIdentity strong,body.printingReceipt>#receiptDocument .receiptIdentity strong{font-size:14px!important}
.receiptPreviewModal .receiptDocument main,.receiptDocument.receiptPdfClone main,body.printingReceipt>#receiptDocument main{display:grid!important;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr)!important;grid-template-areas:'lead details' 'client details' 'clientdoc details' 'value details' 'text issuer' 'signature issuer' 'signature declaration' 'nonfiscal nonfiscal'!important;column-gap:7mm!important;row-gap:1mm!important;padding:4mm 0 1mm!important}
.receiptPreviewModal .receiptDocument main>h2,.receiptDocument.receiptPdfClone main>h2,body.printingReceipt>#receiptDocument main>h2{display:none!important}
.receiptDocument .receiptLead{grid-area:lead;margin:0!important;text-align:left!important}
.receiptDocument #receiptClient{grid-area:client;text-align:left!important;font-size:14px!important}
.receiptDocument .receiptClientDoc{grid-area:clientdoc;margin:0 0 1mm!important;text-align:left!important;font-size:8.5px!important}
.receiptDocument .receiptValueBlock{grid-area:value;margin:1.5mm 0!important;padding:3.5mm 4mm!important}
.receiptDocument .receiptAmount{font-size:25px!important;margin:1.2mm 0 .5mm!important}
.receiptDocument .receiptAmountWords{font-size:9.5px!important;line-height:1.3!important}
.receiptDocument .receiptText{grid-area:text;margin:1mm 0!important;font-size:10px!important;line-height:1.4!important;text-align:left!important}
.receiptDocument dl{grid-area:details;margin:0!important;align-self:start!important}
.receiptDocument dl>div{grid-template-columns:32mm minmax(0,1fr)!important;padding:2mm 3mm!important}
.receiptDocument dt{font-size:8px!important}.receiptDocument dd{font-size:9.5px!important}
.receiptDocument .receiptIssuerCard{grid-area:issuer;margin:1mm 0 0!important;padding:3mm 4mm!important;align-self:start!important}
.receiptDocument .receiptIssuerCard h3{font-size:8.5px!important;margin-bottom:1mm!important}
.receiptDocument .receiptIssuerCard b{font-size:10.5px!important}
.receiptDocument .receiptIssuerCard p{font-size:8px!important;line-height:1.35!important}
.receiptDocument .receiptDeclaration{grid-area:declaration;margin:1mm 0 0!important;font-size:8.5px!important;align-self:start!important}
.receiptDocument .receiptSignature{grid-area:signature;width:70mm!important;margin:3mm auto 0!important;align-self:end!important}
.receiptDocument .receiptSignature>span{margin-bottom:7mm!important;font-size:8px!important}
.receiptDocument .receiptSignature b,.receiptDocument .receiptSignature small{margin-top:1mm!important;font-size:8.5px!important}
.receiptDocument .receiptNonFiscal{grid-area:nonfiscal;margin:1mm 0 0!important;font-size:7px!important}
.receiptPreviewModal .receiptDocument footer,.receiptDocument.receiptPdfClone footer,body.printingReceipt>#receiptDocument footer{margin-top:1mm!important;padding-top:1.5mm!important;font-size:7.5px!important}
@media(max-width:700px){
  .receiptPreviewModal .receiptDocument{width:100%!important;min-height:auto!important;padding:24px 18px!important}
  .receiptPreviewModal .receiptDocument main{display:block!important;padding:26px 0 10px!important}
  .receiptPreviewModal .receiptDocument main>h2{display:block!important}
  .receiptPreviewModal .receiptDocument .receiptLead,.receiptPreviewModal .receiptDocument #receiptClient,.receiptPreviewModal .receiptDocument .receiptClientDoc,.receiptPreviewModal .receiptDocument .receiptText{text-align:center!important}
  .receiptPreviewModal .receiptDocument .receiptValueBlock,.receiptPreviewModal .receiptDocument dl,.receiptPreviewModal .receiptDocument .receiptIssuerCard{margin:7mm 0!important}
  .receiptPreviewModal .receiptDocument .receiptSignature{width:min(70mm,88%)!important;margin:12mm auto 3mm!important}
}

/* MVP 3.87.9 — substituição auditável de pedido, sem duplicar entradas no caixa. */
.replaceOrderBtn{width:100%;margin-top:10px;border:1px solid #76c5f2;background:linear-gradient(135deg,#eef9ff,#e7fff5);color:#075e91;border-radius:9px;padding:11px 14px;font-weight:850;cursor:pointer}
.replaceOrderBtn:hover{border-color:#078fe7;background:#e5f6ff}.replaceOrderBtn:disabled{opacity:.55;cursor:not-allowed}
.transferredCreditPreview{padding:7px 9px;border-radius:7px;background:#eafbf3;color:#126c4c!important;font-weight:750}.transferredCreditPreview>span:first-child{padding-right:10px}.transferredCreditPreview strong{white-space:nowrap;color:#087d4c}
.replacementModalIcon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:14px;border-radius:50%;background:#e6f7ff;color:#078fe7;font-size:22px;font-weight:900}
.replacementSummary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.replacementSummary>div{display:grid;gap:5px;padding:12px;border:1px solid #d6e6ef;border-radius:10px;background:#f7fbfe}.replacementSummary span{color:#61798a;font-size:11px;font-weight:750;text-transform:uppercase}.replacementSummary b{color:#073b67;font-size:16px}
.replacementSafety{display:grid;gap:3px;margin:0 0 16px;padding:12px 13px;border-left:4px solid #20c568;border-radius:8px;background:#ecfbf4}.replacementSafety b{color:#08774c;font-size:13px}.replacementSafety span{color:#3f6656;font-size:12px;line-height:1.45}
.replacementConfirmButton{border:0;border-radius:9px;padding:10px 15px;background:#078fe7;color:#fff;font-weight:850}.replacementConfirmButton:hover{background:#0678c2}
.replacementCreditNotice{grid-column:1/-1;display:grid;gap:8px;margin:14px 0 0;padding:13px 14px;border:1px solid #9bdcba;border-radius:10px;background:#effcf6;color:#174f39}.replacementCreditNotice header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.replacementCreditNotice b{color:#08764b}.replacementCreditNotice strong{color:#08764b;white-space:nowrap}.replacementCreditNotice p{margin:0;color:#466b5b;font-size:12px;line-height:1.45}.replacementCreditNotice .creditRemainder{padding-top:7px;border-top:1px solid #bfe9d2;color:#8a5b00;font-weight:750}
.replacementDocumentLink{margin-top:9px;padding:9px 11px;border-radius:8px;background:#e9f6ff;color:#075e91;font-size:12px;font-weight:800;line-height:1.45}
.replacementDraftBanner{margin:0 0 14px;padding:11px 13px;border:1px solid #9fd8f6;border-radius:9px;background:#edf9ff;color:#075682;font-size:12px;font-weight:750;line-height:1.45}
@media(max-width:520px){.replacementSummary{grid-template-columns:1fr}.replacementCreditNotice header{display:grid}.replacementConfirmButton{width:100%}}
@media print{
  #replaceOrderModal{display:none!important}
  .transferredCreditPreview{padding:1.2mm 2mm!important;border:1px solid #b7dcca!important;background:#fff!important;color:#111!important}
  .replacementCreditNotice,.replacementDocumentLink{display:none!important}
}

/* Patch 3.87.9.1 — ordem solicitada na Forma de pagamento. */
.paymentGridV38791>.paymentDepositTypeField{grid-column:1;grid-row:1}
.paymentGridV38791>.paymentDepositValueField{grid-column:2;grid-row:1}
.paymentGridV38791>.paymentMethodsField{grid-column:3;grid-row:1}
.paymentGridV38791>.paymentInstallmentsFieldV38791{grid-column:1;grid-row:2}
.paymentGridV38791>.paymentWhenFieldV38791{grid-column:2;grid-row:2}
.paymentGridV38791>.paymentDueFieldV38791{grid-column:3;grid-row:2}
.paymentGridV38791>.paymentBalanceFieldV38791{grid-column:1;grid-row:3}
.paymentGridV38791>.paymentDepositPaidFieldV38791{grid-column:2;grid-row:3}
.paymentGridV38791>.paymentDiscountField{grid-column:3;grid-row:3}
.paymentGridV38791>#cardBrandWrap{grid-column:1;grid-row:4}
.paymentGridV38791>#depositPaidDateWrap{grid-column:2;grid-row:4}
.paymentCheckboxRow{width:100%;cursor:default}
.paymentCheckboxHit{display:inline-flex!important;align-items:center;gap:8px;width:auto;color:var(--ink);cursor:pointer;font-weight:700}
.paymentCheckboxHit input{flex:0 0 auto;width:auto!important;margin:0!important}
@media(max-width:640px){
  .paymentGridV38791>.paymentDepositTypeField,.paymentGridV38791>.paymentDepositValueField,.paymentGridV38791>.paymentMethodsField,
  .paymentGridV38791>.paymentInstallmentsFieldV38791,.paymentGridV38791>.paymentWhenFieldV38791,.paymentGridV38791>.paymentDueFieldV38791,
  .paymentGridV38791>.paymentBalanceFieldV38791,.paymentGridV38791>.paymentDepositPaidFieldV38791,.paymentGridV38791>.paymentDiscountField,
  .paymentGridV38791>#cardBrandWrap,.paymentGridV38791>#depositPaidDateWrap{grid-column:auto;grid-row:auto}
}

/* ORÇUP — padronização visual cirúrgica dos ícones do menu lateral */
aside nav button,aside .bottom button{display:flex;align-items:center;gap:12px;font-weight:700;line-height:1.15}
.menuIcon{width:22px;height:22px;min-width:22px;display:inline-flex;align-items:center;justify-content:center;color:currentColor}
.menuIcon svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.menuLabel{display:block;min-width:0}
.brand img{width:188px;max-height:158px;object-fit:contain;object-position:center}
@media(max-width:980px){
  .brand img{width:58px;height:58px;max-height:58px;object-fit:contain;object-position:center}
  aside nav button,aside .bottom button{justify-content:center;padding-left:10px;padding-right:10px}
  .menuLabel{display:none}
  .menuIcon,.menuIcon svg{width:23px;height:23px;min-width:23px}
}

/* ORÇUP — ajuste visual solicitado em 29/09/2026.
   Escopo: logo lateral maior, ocultar logo horizontal no topo do desktop
   e corrigir o cabeçalho interno da tela Relatórios. Sem alteração de lógica. */
@media (min-width:981px){
  aside .brand{margin-bottom:18px!important}
  aside .brand img{
    width:208px!important;
    max-width:100%!important;
    height:auto!important;
    max-height:190px!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  header.topbar > img.mobileHeaderLogo{
    display:none!important;
  }
}

/* O seletor global `header` fixa o cabeçalho principal do app.
   O header do documento de Relatórios precisa permanecer dentro do relatório. */
#monthlyReportDocument > header.reportDocumentHead{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0 0 16px!important;
  background:transparent!important;
  box-shadow:none!important;
  z-index:auto!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:28px!important;
  border-bottom:2px solid #078fe7!important;
}
@media(max-width:620px){
  #monthlyReportDocument > header.reportDocumentHead{
    display:grid!important;
    gap:12px!important;
  }
}


/* Ajuste do PDF do Relatório Mensal - 29/09/2026
   O clone usado pelo html2pdf perde o id monthlyReportDocument.
   Estas regras impedem que o header do relatório herde o header fixo global do app. */
.reportPdfClone > header.reportDocumentHead{
  position:static!important;
  inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
  width:auto!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:0 0 4mm!important;
  background:#fff!important;box-shadow:none!important;z-index:auto!important;
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:6mm!important;border-bottom:2px solid #078fe7!important;
  break-inside:avoid!important;
}
.reportPdfClone > header.reportDocumentHead > div:first-child{min-width:0!important;max-width:132mm!important}
.reportPdfClone > header.reportDocumentHead > div:last-child{text-align:right!important;white-space:nowrap!important}
.reportPdfClone .reportCompanyLogo{max-width:42mm!important;max-height:15mm!important;margin:0 0 2mm!important;object-fit:contain!important}
.reportPdfClone .reportDocumentHead h2{margin:0!important;font-size:13px!important;line-height:1.15!important}
.reportPdfClone .reportDocumentHead p{margin:1.5mm 0 0!important;font-size:8px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
.reportPdfClone .reportDocumentHead strong{font-size:12px!important;line-height:1.15!important}
.reportPdfClone .reportDocumentHead span{margin-top:1.5mm!important;font-size:8.5px!important}
.reportPdfClone .reportMetrics{break-inside:auto!important}
.reportPdfClone .reportMetrics article{break-inside:avoid!important}
.reportPdfClone .reportReconciliation{break-inside:auto!important}
.reportPdfClone .reportLists{break-inside:auto!important}


/* ORÇUP — impressão mensal detalhada + identificação dinâmica da empresa — 29/09/2026 */
.reportPageActions{display:flex;align-items:center;gap:10px}
.reportPrintButton{border:1px solid #0b8fe5;background:#fff;color:#087ac0;border-radius:10px;padding:12px 18px;font-weight:800;cursor:pointer}
.reportPrintButton:hover{background:#eef8ff}
@media(max-width:620px){
  .reportPageActions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .reportPageActions button{width:100%!important}
}
@media print{
  @page{size:A4 portrait;margin:10mm}
  body.printingMonthlyReport{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background:#fff!important}
  body.printingMonthlyReport aside,
  body.printingMonthlyReport header.topbar,
  body.printingMonthlyReport .mobile-nav,
  body.printingMonthlyReport main > section.view:not(#reports),
  body.printingMonthlyReport #reports > .pagehead,
  body.printingMonthlyReport #reports > .reportFilters{display:none!important}
  body.printingMonthlyReport main{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
  body.printingMonthlyReport #reports{display:block!important;margin:0!important;padding:0!important}
  body.printingMonthlyReport #monthlyReportDocument{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
  body.printingMonthlyReport #monthlyReportDocument > header.reportDocumentHead{position:static!important;padding:0 0 5mm!important;gap:6mm!important;break-inside:avoid!important}
  body.printingMonthlyReport .reportCompanyLogo{max-width:42mm!important;max-height:15mm!important;object-fit:contain!important}
  body.printingMonthlyReport .reportMetrics{break-inside:auto!important}
  body.printingMonthlyReport .reportMetrics article{break-inside:avoid!important;page-break-inside:avoid!important}
  body.printingMonthlyReport .reportSection{break-inside:auto!important;page-break-inside:auto!important}
  body.printingMonthlyReport .reportDailyTable{overflow:visible!important}
  body.printingMonthlyReport .reportDailyGroup{break-inside:auto!important;page-break-inside:auto!important}
  body.printingMonthlyReport .reportDailySummary{break-after:avoid-page!important;page-break-after:avoid!important}
  body.printingMonthlyReport .reportDayDetails{overflow:visible!important;max-height:none!important}
  body.printingMonthlyReport .reportDayDetails.hidden{display:none!important}
  body.printingMonthlyReport .reportDayDetails:not(.hidden){display:block!important}
  body.printingMonthlyReport .reportOrderDetail{break-inside:avoid!important;page-break-inside:avoid!important}
  body.printingMonthlyReport .reportDayToggle,
  body.printingMonthlyReport .reportSectionHelp{display:none!important}
  body.printingMonthlyReport .reportDailyChart{break-inside:avoid!important;page-break-inside:avoid!important}
  body.printingMonthlyReport .reportLists{break-inside:auto!important}
  body.printingMonthlyReport .reportTableRow{break-inside:avoid!important;page-break-inside:avoid!important}
  body.printingMonthlyReport footer{break-inside:avoid!important}
}

/* MVP 3.87.9.6 — limpeza visual da área do documento: oculta botão legado solto de recibo; recibos contextuais permanecem em receiptControls. */
#receiptPrintBtn{display:none!important}
@media print{#collabReceiptPanel{display:none!important}}
#receiptControls.collabReceiptHidden{display:none!important}
/* 03/11 — linha de assinatura também à direita, acima da declaração. */
.receiptDocument .receiptDeclaration::before,body.printingReceipt #receiptDocument .receiptDeclaration::before{content:'';display:block;width:70mm;max-width:100%;margin:0 auto 1.5mm;border-top:1px solid #2d4353}
.receiptPreviewModal .receiptDocument .receiptDeclaration,.receiptDocument.receiptPdfClone .receiptDeclaration,body.printingReceipt #receiptDocument .receiptDeclaration{align-self:end!important;padding-bottom:2.4mm!important}
.receiptPreviewModal .receiptDocument .receiptSignature>span,.receiptDocument.receiptPdfClone .receiptSignature>span,body.printingReceipt #receiptDocument .receiptSignature>span{margin-bottom:var(--receiptSignSpace,16mm)!important}
.shareHelp{display:none!important}

/* MVP 3.87.9.7 — margem superior do documento igual às laterais. */
.pdfExportClone{padding-top:7mm!important}
@media print{
  #quote .summary .panel.preview{padding-top:7mm!important}
}

/* ORÇUP 3.87.9.8 — seletor funcional de período do Dashboard. */
.periodPicker{position:relative;display:flex;align-items:center;justify-content:flex-end;z-index:25}
.dashboardHead .periodBtn{cursor:pointer;user-select:none}
.dashboardHead .periodBtn[aria-expanded="true"]{border-color:#159ee8;box-shadow:0 0 0 3px rgba(21,158,232,.10)}
.periodMenu{position:absolute;right:0;top:calc(100% + 8px);width:230px;background:#fff;border:1px solid #d6e3ee;border-radius:12px;box-shadow:0 14px 34px rgba(7,59,103,.16);padding:7px;display:none;z-index:1000}
.periodMenu.open{display:block}
.periodMenu button{width:100%;border:0;background:transparent;color:#173b61;text-align:left;padding:10px 11px;border-radius:8px;font-weight:700;font-size:13px;cursor:pointer}
.periodMenu button:hover,.periodMenu button.active{background:#edf7ff;color:#078dd8}
.periodMenu .periodDivider{height:1px;background:#e7eef5;margin:5px 3px}
.periodCustom{display:none;padding:7px 5px 5px}
.periodCustom.open{display:grid;gap:7px}
.periodCustom label{display:grid;gap:4px;font-size:11px;color:#60728a;font-weight:700}
.periodCustom input{width:100%;border:1px solid #cfdeea;border-radius:7px;padding:7px 8px;color:#173b61;background:#fff}
.periodCustom .applyCustomPeriod{background:#0b94e7;color:#fff;text-align:center;margin-top:2px}
.periodCustom .applyCustomPeriod:hover{background:#087fc7;color:#fff}
.salesChart.periodFiltered{overflow-x:auto;overflow-y:hidden;align-items:end;padding-bottom:2px}
.salesChart.periodFiltered .salesBarWrap{min-width:18px}
.salesChart.periodFiltered .salesBarWrap small{white-space:nowrap}
@media(max-width:640px){.periodPicker{width:100%;justify-content:stretch}.periodPicker>.periodBtn{width:100%!important}.periodMenu{left:0;right:auto;width:min(260px,92vw)}}

/* MVP 3.87.9.9 — login reconstruído a partir dos arquivos visuais aprovados (29-09-2026).
   Ajuste visual do conteúdo do card (medidas do anexo tela_de_entrada_2.png, base 1920x1080; --u = 1px em 1920). */
#appSplash.orcupLoginV2{
  position:fixed!important;inset:0!important;z-index:10000!important;padding:0!important;
  display:block!important;overflow:hidden!important;background:#052238!important;color:#0b3d8c!important;
}
#appSplash.orcupLoginV2.accessGranted{display:none!important}
.orcupLoginV2 .loginScene{
  --u:calc(max(100vw,177.7778vh)/1920);
  position:absolute;left:50%;top:50%;
  width:max(100vw,calc(100vh * 1.7777778));height:max(100vh,calc(100vw * .5625));
  transform:translate(-50%,-50%);overflow:hidden;
  font-family:Montserrat,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
}
.orcupLoginV2 .loginBackdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
/* texto lateral, mascote, logo e "Bem-vindo" já fazem parte do fundo no desktop */
.orcupLoginV2 .loginMarketingArt,.orcupLoginV2 .loginMascotArt,.orcupLoginV2 .loginLogoArt,.orcupLoginV2 .loginWelcomeArt{display:none!important}
.orcupLoginV2 .loginCardOverlay{
  /* 07/11/2026: fundo novo (tela-login-base-v3.png, azul escuro até a parede + branco); cartão medido na arte: x 1421–2016, y 284–1133 de 2560×1440 */
  position:absolute;left:55.74%;top:20.21%;width:23.09%;height:58.54%;z-index:4;
  display:flex;flex-direction:column;align-items:center;box-sizing:border-box;
  padding:calc(var(--u)*180) calc(var(--u)*48) 0;
}
.orcupLoginV2 .loginCardReal{
  width:100%!important;flex:none!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  backdrop-filter:none!important;text-align:left!important;display:flex!important;flex-direction:column!important;
}
.orcupLoginV2 .loginCardReal>label{
  display:block!important;margin:0 0 calc(var(--u)*8)!important;color:#0a2f75!important;font-size:max(10px,calc(var(--u)*13.5))!important;
  line-height:calc(var(--u)*16)!important;font-weight:700!important;
}
.orcupLoginV2 .loginInputWrap{
  position:relative!important;width:100%!important;height:calc(var(--u)*47)!important;min-height:0!important;margin:0 0 calc(var(--u)*17)!important;
  border:calc(var(--u)*1.5) solid #d3dbe8!important;border-radius:calc(var(--u)*10)!important;background:#fff!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;
}
.orcupLoginV2 .passwordField.loginInputWrap{margin-bottom:calc(var(--u)*14)!important}
.orcupLoginV2 .loginInputWrap:focus-within{border-color:#1486ef!important;box-shadow:0 0 0 calc(var(--u)*3) rgba(20,134,239,.14)!important}
.orcupLoginV2 .loginFieldIcon{
  position:absolute;left:calc(var(--u)*15);top:50%;transform:translateY(-50%);width:calc(var(--u)*21);height:calc(var(--u)*21);color:#0a2f75;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;z-index:2
}
.orcupLoginV2 .loginInputWrap input,
.orcupLoginV2 .loginCardReal>input,
.orcupLoginV2 .passwordField input{
  width:100%!important;height:100%!important;min-height:0!important;margin:0!important;border:0!important;border-radius:calc(var(--u)*10)!important;
  padding:0 calc(var(--u)*50) 0 calc(var(--u)*49)!important;background:transparent!important;color:#163c6b!important;
  font-family:inherit!important;font-size:max(10px,calc(var(--u)*14.5))!important;font-weight:500!important;outline:none!important;box-sizing:border-box!important;
  box-shadow:none!important;
}
.orcupLoginV2 .loginInputWrap input::placeholder{color:#9aa7ba!important;opacity:1!important}
.orcupLoginV2 .passwordField #togglePasswordBtn{
  position:absolute!important;right:calc(var(--u)*10)!important;top:50%!important;transform:translateY(-50%)!important;
  width:calc(var(--u)*34)!important;height:calc(var(--u)*34)!important;min-height:0!important;padding:0!important;border:0!important;
  background:transparent!important;color:#0a2f75!important;display:grid!important;place-items:center!important;border-radius:calc(var(--u)*8)!important;cursor:pointer!important;
}
.orcupLoginV2 .passwordField #togglePasswordBtn svg{width:calc(var(--u)*23)!important;height:calc(var(--u)*23)!important}
.orcupLoginV2 .loginOptions{
  display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4%!important;
  width:100%!important;height:calc(var(--u)*22)!important;min-height:0!important;margin:0 0 calc(var(--u)*16)!important;
}
.orcupLoginV2 .rememberLogin{display:flex!important;align-items:center!important;gap:calc(var(--u)*10)!important;margin:0!important;color:#0a2f75!important;font-size:max(10px,calc(var(--u)*14))!important;font-weight:700!important;white-space:nowrap!important;cursor:pointer!important}
.orcupLoginV2 .rememberLogin input{
  -webkit-appearance:none!important;appearance:none!important;min-height:0!important;padding:0!important;box-shadow:none!important;width:calc(var(--u)*19)!important;height:calc(var(--u)*19)!important;margin:0!important;flex:none!important;
  border:calc(var(--u)*1.5) solid #b9c6da!important;border-radius:calc(var(--u)*5)!important;background:#fff!important;cursor:pointer!important;
  display:grid!important;place-items:center!important;
}
.orcupLoginV2 .rememberLogin input:checked{
  border-color:#0a6cf2!important;background:#0a6cf2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/78% no-repeat!important;
}
.orcupLoginV2 .rememberLogin input:focus-visible{outline:calc(var(--u)*2) solid rgba(10,108,242,.45)!important;outline-offset:calc(var(--u)*2)!important}
.orcupLoginV2 .forgotPassword{
  border:0!important;background:none!important;color:#0a6cf2!important;font-family:inherit!important;font-size:max(10px,calc(var(--u)*13.5))!important;
  line-height:1.1!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;padding:0!important;white-space:nowrap!important;
}
.orcupLoginV2 .forgotPassword:hover{text-decoration:underline!important}
.orcupLoginV2 .loginError{margin:calc(var(--u)*-6) 0 calc(var(--u)*10)!important;padding:calc(var(--u)*6) calc(var(--u)*9)!important;font-size:max(10px,calc(var(--u)*12))!important}
.orcupLoginV2 .splashStart{
  width:100%!important;height:calc(var(--u)*49)!important;min-height:0!important;margin:0!important;border:0!important;border-radius:calc(var(--u)*10)!important;
  padding:0 calc(var(--u)*20)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:calc(var(--u)*12)!important;
  background:#0a6cf2!important;color:#fff!important;font-family:inherit!important;font-size:max(10px,calc(var(--u)*19))!important;font-weight:600!important;
  box-shadow:none!important;cursor:pointer!important;transition:filter .15s ease!important;flex:none!important;
}
.orcupLoginV2 .splashStart:hover{transform:none!important;filter:brightness(1.06)!important;box-shadow:none!important}
.orcupLoginV2 .splashStart .btnArrow{display:block;width:calc(var(--u)*22);height:calc(var(--u)*22);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.orcupLoginV2 .loginDivider{
  width:100%!important;height:calc(var(--u)*36)!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:calc(var(--u)*14)!important;
  color:#5b6577!important;font-size:max(10px,calc(var(--u)*13.5))!important;font-weight:600!important;flex:none!important;
}
.orcupLoginV2 .loginDivider::before,.orcupLoginV2 .loginDivider::after{content:"";flex:1;height:1px;background:#dde3ec}
.orcupLoginV2 .trialButton{
  width:100%!important;height:calc(var(--u)*47)!important;min-height:0!important;margin:0!important;border:calc(var(--u)*1.7) solid #1a7df5!important;border-radius:calc(var(--u)*9)!important;
  background:#fff!important;color:#0a6cf2!important;font-family:inherit!important;font-size:max(10px,calc(var(--u)*14.5))!important;font-weight:700!important;cursor:pointer!important;flex:none!important;
}
.orcupLoginV2 .trialButton:hover{background:#f2f8ff!important}
.orcupLoginV2 .demoHint{
  display:block!important;width:100%!important;text-align:center!important;color:#6d7888!important;
  font-size:max(10px,calc(var(--u)*12))!important;line-height:calc(var(--u)*15)!important;margin:calc(var(--u)*12) 0 0!important;flex:none!important;
}
/* fallback compacto para telas estreitas; não altera o desktop aprovado */
@media(max-width:760px){
  #appSplash.orcupLoginV2{overflow:auto!important;background:linear-gradient(145deg,#27429b 0%,#087ee7 60%,#12d6b1 100%)!important}
  .orcupLoginV2 .loginScene{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:100%!important;height:auto!important;min-height:100vh!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;box-sizing:border-box!important;overflow:visible!important}
  .orcupLoginV2 .loginBackdrop,.orcupLoginV2 .loginMarketingArt,.orcupLoginV2 .loginMascotArt{display:none!important}
  .orcupLoginV2 .loginLogoArt,.orcupLoginV2 .loginWelcomeArt{display:block!important}
  .orcupLoginV2 .splashStart .btnArrow{width:24px!important;height:24px!important}
  .orcupLoginV2 .loginCardOverlay{position:relative!important;left:auto!important;top:auto!important;width:min(100%,410px)!important;height:auto!important;min-height:610px!important;padding:26px 24px 22px!important;background:#fff!important;border-radius:18px!important;box-shadow:0 18px 45px rgba(0,38,100,.22)!important}
  .orcupLoginV2 .loginLogoArt{width:48%!important;margin-bottom:10px!important}.orcupLoginV2 .loginWelcomeArt{width:92%!important;margin-bottom:18px!important}
  .orcupLoginV2 .loginCardReal{display:block!important}.orcupLoginV2 .loginCardReal>label{font-size:15px!important;margin-bottom:7px!important}.orcupLoginV2 .loginInputWrap{height:58px!important;margin-bottom:15px!important}.orcupLoginV2 .loginInputWrap input{font-size:15px!important}.orcupLoginV2 .loginOptions{margin-bottom:15px!important}.orcupLoginV2 .rememberLogin,.orcupLoginV2 .forgotPassword{font-size:13px!important}.orcupLoginV2 .splashStart{height:58px!important;font-size:20px!important}.orcupLoginV2 .loginDivider{height:42px!important}.orcupLoginV2 .trialButton{height:54px!important;font-size:15px!important}.orcupLoginV2 .demoHint{font-size:12px!important;margin-top:12px!important}
}


/* MVP 3.87.9.10b — logout local sem alterar o fluxo original de entrada. */
.logoutBtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:38px!important;width:auto!important;padding:7px 10px!important;border:1px solid #d8e5f0!important;border-radius:10px!important;background:#fff!important;color:#0b4b82!important;font-weight:800!important;font-size:12px!important;line-height:1!important;box-shadow:none!important}
.logoutBtn:hover,.logoutBtn:focus-visible{background:#eef7ff!important;border-color:#a8d2f2!important;outline:none!important}
.logoutBtn svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.logoutBtn span{font-size:12px!important;color:inherit!important;font-weight:800!important}
@media(max-width:640px){
  .logoutBtn{width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.32)!important;color:#fff!important;flex:0 0 42px!important}
  .logoutBtn span{display:none!important}
  .logoutBtn svg{width:21px!important;height:21px!important}
}


/* PATCH CIRÚRGICO — foto de perfil independente do logo da empresa */
.userAvatar{overflow:hidden;position:relative}
.userAvatarImage{width:100%;height:100%;object-fit:contain;display:block;border-radius:50%;background:#fff}
.userAvatarMenu{position:fixed;z-index:9999;min-width:142px;padding:6px;background:#fff;border:1px solid #d7e3ef;border-radius:10px;box-shadow:0 10px 28px rgba(6,58,103,.18);display:grid;gap:4px}
.userAvatarMenu button{width:100%;border:0;background:#fff;color:#063a67;text-align:left;padding:9px 10px;border-radius:7px;font:inherit;font-weight:700;cursor:pointer}
.userAvatarMenu button:hover{background:#eef7ff}
.userAvatarMenu .removeAvatarAction{color:#b42318}

.userAvatarImage{object-fit:cover;object-position:center;background:#fff}
.avatarCropOverlay{position:fixed;inset:0;z-index:10020;background:rgba(4,19,38,.62);display:grid;place-items:center;padding:18px}
.avatarCropDialog{width:min(92vw,520px);background:#fff;border-radius:18px;box-shadow:0 24px 64px rgba(6,58,103,.28);padding:18px;display:grid;gap:16px}
.avatarCropHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.avatarCropHead strong{display:block;font-size:18px;color:#0c2342}
.avatarCropHead span{display:block;margin-top:5px;font-size:13px;color:#6b7b91}
.avatarCropClose{border:0;background:#eef7ff;color:#0c5d95;width:34px;height:34px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}
.avatarCropBody{display:grid;gap:15px}
.avatarCropViewportWrap{display:grid;justify-items:center;gap:10px}
.avatarCropViewport{position:relative;width:min(72vw,260px);height:min(72vw,260px);max-width:260px;max-height:260px;border-radius:28px;background:linear-gradient(135deg,#f4f9ff,#ebf5ff);overflow:hidden;box-shadow:inset 0 0 0 1px #d6e7f7;touch-action:none;user-select:none;cursor:grab}
.avatarCropViewport.dragging{cursor:grabbing}
.avatarCropImage{position:absolute;left:50%;top:50%;max-width:none;max-height:none;transform:translate(-50%,-50%);pointer-events:none;user-select:none;-webkit-user-drag:none}
.avatarCropMask{position:absolute;inset:12px;border-radius:50%;box-shadow:0 0 0 999px rgba(255,255,255,.36), inset 0 0 0 2px rgba(9,139,220,.45);pointer-events:none}
.avatarCropHint{margin:0;font-size:12px;color:#6b7b91;text-align:center}
.avatarCropControls{display:grid;gap:10px}
.avatarCropRangeLabel{font-size:13px;font-weight:700;color:#0c2342}
.avatarCropRangeRow{display:grid;grid-template-columns:42px 1fr 42px;gap:10px;align-items:center}
.avatarZoomBtn{border:1px solid #cfe1ef;background:#fff;color:#0c5d95;border-radius:12px;height:42px;font-size:24px;cursor:pointer}
.avatarCropControls input[type=range]{width:100%}
.avatarCropZoomValue{font-size:12px;font-weight:700;color:#0c5d95;text-align:center}
.avatarCropActions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:640px){.avatarCropDialog{padding:16px;width:min(94vw,420px)}.avatarCropViewport{width:min(76vw,240px);height:min(76vw,240px)}.avatarCropActions{justify-content:stretch}.avatarCropActions button{flex:1}}

/* PATCH FINAL 01-10-2026 — avatar salvo preenche todo o círculo do cabeçalho.
   Mantém exatamente o recorte aprovado no modal e elimina qualquer padding do botão. */
header.topbar .userAvatar{padding:0!important;overflow:hidden!important;position:relative!important}
header.topbar .userAvatarImage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;display:block!important;background:#fff!important}


/* PATCH FINAL 01-10-2026 — remove a borda externa do avatar no cabeçalho.
   A foto passa a ocupar o diâmetro inteiro do botão, sem aro/padding adicional. */
header.topbar .userAvatar{
  border:0!important;
  padding:0!important;
  background:transparent!important;
  overflow:hidden!important;
  box-shadow:none!important;
  outline:0!important;
}
header.topbar .userAvatarImage{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  border-radius:50%!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  display:block!important;
  background:transparent!important;
}

/* MVP 3.87.10 — recibo A5 em uma única página (desktop e mobile).
   Corrige a impressão pelo navegador, que estava herdando o layout vertical
   do preview e empurrando declaração/assinatura para uma segunda folha. */
.receiptDocument.receiptPdfClone header{
  flex-direction:row!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
}
.receiptDocument.receiptPdfClone .receiptIdentity{
  flex:0 0 49mm!important;
  text-align:right!important;
}
@media print{
  body.printingReceipt #receiptDocument{
    display:block!important;
    width:200mm!important;
    min-height:0!important;
    height:auto!important;
    margin:0 auto!important;
    padding:5mm 6mm!important;
    box-sizing:border-box!important;
    box-shadow:none!important;
  }
  body.printingReceipt #receiptDocument header{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:6mm!important;
    padding:0 0 3mm!important;
  }
  body.printingReceipt #receiptDocument #receiptLogo{
    max-width:34mm!important;
    max-height:12mm!important;
    margin-bottom:1.5mm!important;
  }
  body.printingReceipt #receiptDocument #receiptCompany{
    font-size:14px!important;
    margin-bottom:1mm!important;
  }
  body.printingReceipt #receiptDocument #receiptCompanyInfo{
    font-size:8px!important;
    line-height:1.35!important;
  }
  body.printingReceipt #receiptDocument .receiptIdentity{
    flex:0 0 49mm!important;
    text-align:right!important;
  }
  body.printingReceipt #receiptDocument .receiptIdentity strong{
    font-size:14px!important;
  }
  body.printingReceipt #receiptDocument main{
    display:grid!important;
    grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr)!important;
    grid-template-areas:
      'lead details'
      'client details'
      'clientdoc details'
      'value details'
      'text issuer'
      'signature issuer'
      'signature declaration'
      'nonfiscal nonfiscal'!important;
    column-gap:7mm!important;
    row-gap:1mm!important;
    padding:4mm 0 1mm!important;
  }
  body.printingReceipt #receiptDocument main>h2{display:none!important;}
  body.printingReceipt #receiptDocument .receiptLead{margin:0!important;text-align:left!important;}
  body.printingReceipt #receiptDocument #receiptClient{text-align:left!important;font-size:14px!important;}
  body.printingReceipt #receiptDocument .receiptClientDoc{margin:0 0 1mm!important;text-align:left!important;font-size:8.5px!important;}
  body.printingReceipt #receiptDocument .receiptValueBlock{margin:1.5mm 0!important;padding:3.5mm 4mm!important;}
  body.printingReceipt #receiptDocument .receiptAmount{font-size:25px!important;margin:1.2mm 0 .5mm!important;}
  body.printingReceipt #receiptDocument .receiptAmountWords{font-size:9.5px!important;line-height:1.3!important;}
  body.printingReceipt #receiptDocument .receiptText{margin:1mm 0!important;font-size:10px!important;line-height:1.4!important;text-align:left!important;}
  body.printingReceipt #receiptDocument dl{margin:0!important;align-self:start!important;}
  body.printingReceipt #receiptDocument dl>div{grid-template-columns:32mm minmax(0,1fr)!important;padding:2mm 3mm!important;}
  body.printingReceipt #receiptDocument dt{font-size:8px!important;}
  body.printingReceipt #receiptDocument dd{font-size:9.5px!important;}
  body.printingReceipt #receiptDocument .receiptIssuerCard{margin:1mm 0 0!important;padding:3mm 4mm!important;align-self:start!important;}
  body.printingReceipt #receiptDocument .receiptIssuerCard h3{font-size:8.5px!important;margin-bottom:1mm!important;}
  body.printingReceipt #receiptDocument .receiptIssuerCard b{font-size:10.5px!important;}
  body.printingReceipt #receiptDocument .receiptIssuerCard p{font-size:8px!important;line-height:1.35!important;}
  body.printingReceipt #receiptDocument .receiptDeclaration{margin:1mm 0 0!important;font-size:8.5px!important;align-self:start!important;}
  body.printingReceipt #receiptDocument .receiptSignature{width:70mm!important;margin:3mm auto 0!important;align-self:end!important;}
  body.printingReceipt #receiptDocument .receiptSignature>span{margin-bottom:7mm!important;font-size:8px!important;}
  body.printingReceipt #receiptDocument .receiptSignature b,
  body.printingReceipt #receiptDocument .receiptSignature small{margin-top:1mm!important;font-size:8.5px!important;}
  body.printingReceipt #receiptDocument .receiptNonFiscal{margin:1mm 0 0!important;font-size:7px!important;}
  body.printingReceipt #receiptDocument footer{margin-top:1mm!important;padding-top:1.5mm!important;font-size:7.5px!important;}
}


/* PATCH 02-10-2026 — correção do botão Salvar em PDF do recibo A5.
   Evita página inicial em branco no html2pdf e deixa margem de segurança
   contra arredondamento de altura no A5 landscape. */
.receiptDocument.receiptPdfClone{
  min-height:0!important;
  height:auto!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
}


/* PATCH 02-10-2026 v2 — Salvar PDF A5 sem corte lateral.
   A exportação usa largura exata da área útil e o JS reposiciona a captura
   inteira dentro de uma única página A5 horizontal com margem de segurança. */
.receiptPdfHolder{
  width:198mm!important;
  min-width:198mm!important;
  overflow:visible!important;
}
.receiptDocument.receiptPdfClone{
  width:198mm!important;
  max-width:198mm!important;
  min-width:198mm!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  transform:none!important;
  box-shadow:none!important;
}


/* PATCH 02-10-2026 — lista completa de produtos e seta recolhível. */
.quoteProductResults{
  max-height:min(52vh,430px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
}
.productDropArrow.open{
  transform:translateY(-30%) rotate(225deg)!important;
}
@media(max-width:700px){
  .quoteProductResults{max-height:min(48dvh,360px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
}


/* PATCH FINAL 02-10-2026 — resumo não invade a tarja superior.
   Entre 761 e 980 px havia uma regra antiga que tornava o resumo estático,
   enquanto o layout novo continuava em duas colunas. O sticky volta a valer
   somente em telas com espaço para as duas colunas e respeita a topbar. */
@media (min-width:761px){
  #quote .summary{position:relative!important;}
  #quote .summary .panel.preview{position:sticky!important;top:88px!important;z-index:1!important;}
}
@media (max-width:760px){
  #quote .summary .panel.preview{position:static!important;top:auto!important;z-index:auto!important;}
}


/* PATCH 02-10-2026 V3 — o resumo nunca pode ocupar a área da topbar. */
header.topbar{z-index:1000!important;}
#quote .quotegrid{align-items:start!important;}
#quote .summary{align-self:start!important;min-width:0!important;}
@media (min-width:981px){
  #quote .summary .panel.preview{
    position:sticky!important;
    top:88px!important;
    z-index:1!important;
    max-height:calc(100vh - 102px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
}
@media (max-width:980px){
  #quote .summary .panel.preview{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;}
}
.star{cursor:pointer!important;user-select:none!important;}
.star:hover,.star:focus-visible{transform:scale(1.12);outline:none!important;}
.star.fav{color:#f2b705!important;text-shadow:0 1px 0 rgba(0,0,0,.08);}


/* PATCH 02-10-2026 V5 — mantém a rolagem original do resumo.
   Correção cirúrgica: o sticky nunca entra na topbar azul. */
@media (min-width:981px){
  #quote .summary .panel.preview{
    position:sticky!important;
    top:88px!important;
    z-index:1!important;
    max-height:calc(100vh - 102px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
}
@media (max-width:980px){
  #quote .summary .panel.preview{
    position:static!important;
    top:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
}


/* PATCH 02-10-2026 V6 — resumo com uma única rolagem da página.
   O card da direita deixa de ser sticky/rolável internamente e acompanha
   o documento inteiro. No desktop, ele se estica até a mesma altura da
   coluna da esquerda para formar um único conjunto visual do topo à base. */
#quote .summary .panel.preview{
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  scrollbar-gutter:auto!important;
}
@media (min-width:981px){
  #quote .quotegrid{align-items:stretch!important;}
  #quote .summary{align-self:stretch!important;display:flex!important;}
  #quote .summary .panel.preview{width:100%!important;height:100%!important;min-height:100%!important;margin-bottom:0!important;}
}
@media (max-width:980px){
  #quote .summary{display:block!important;}
  #quote .summary .panel.preview{height:auto!important;min-height:0!important;}
}


/* Correção cirúrgica 03-10-2026 — sticky no bloco lateral, com altura
   natural e somente a rolagem da página. Restrito ao desktop em tela. */
@media screen and (min-width:981px){
  #quote .quotegrid{align-items:start!important;}
  #quote .summary{
    align-self:start!important;
    display:block!important;
    position:sticky!important;
    top:0!important;
    bottom:auto!important;
    z-index:1001!important;
  }
  #quote .summary .panel.preview{width:100%!important;height:auto!important;min-height:0!important;margin-bottom:0!important;}
}


/* AJUSTE CIRÚRGICO 04-10-2026 — somente a lista "Produtos adicionados" (Novo Orçamento).
   Editar e Excluir com o mesmo padrão visual, lado a lado, na mesma linha do valor do produto. */
#items .itemrow{grid-template-columns:minmax(0,1fr) auto auto auto!important;align-items:center!important;gap:10px!important}
#items .itemrow>.itemMain{min-width:0}
#items .itemrow .itemEditButton,#items .itemrow .itemDeleteButton{
  display:inline-flex;align-items:center;justify-content:center;
  width:auto!important;min-width:76px;height:36px;padding:0 14px!important;margin:0;
  border-radius:9px!important;font-size:.78rem!important;font-weight:800!important;line-height:1;
  cursor:pointer;white-space:nowrap;transition:background .18s ease,border-color .18s ease;
}
#items .itemrow .itemDeleteButton{border:1px solid #e0605f!important;background:#fff1f1!important;color:#c53030!important}
#items .itemrow .itemDeleteButton:hover,#items .itemrow .itemDeleteButton:focus-visible{background:#ffe0e0!important;outline:0}
#items .itemrow .itemEditButton.hidden{display:none!important}
@media(max-width:580px){
  #items .itemrow{grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important}
  #items .itemrow>.itemMain{grid-column:1/-1}
  #items .itemrow>strong{grid-column:1/2;justify-self:start}
  #items .itemrow .itemEditButton{grid-column:2/3;justify-self:end}
  #items .itemrow .itemDeleteButton{grid-column:3/4;justify-self:end}
  #items .itemrow .itemEditButton,#items .itemrow .itemDeleteButton{min-width:72px;height:38px}
}

/* Desktop — alinhamento das caixas de Acabamento e Instalação/Entrega. */
@media screen and (min-width:761px){
  #quote .studioChoices #finishingSearch,#quote .studioChoices #finishingType,#quote .studioChoices #installationType{height:38px;min-height:38px}
  #quote .studioChoices .finishingArrow{top:19px}
  #quote .studioChoices #finishingSearch{margin-top:0}
}
/* 04/11/2026 — acabamento com aparência da caixa de Instalação/Entrega: sem digitação, itens compactos e barra de rolagem. */
#finishingSearch{cursor:pointer!important;caret-color:transparent;user-select:none}
#finishingSearch::selection{background:transparent}
/* 05/11/2026 — tamanho compacto só a partir de 761 px; abaixo disso as listas mantêm a altura anterior, boa para o toque. */
@media screen and (min-width:761px){
#finishingOptions.finishingOptions{top:calc(100% + 2px)!important;max-height:300px;padding:0;border:1px solid #9fbdd4;border-radius:4px;box-shadow:0 8px 20px rgba(15,35,62,.18);scrollbar-width:auto}
#finishingOptions.finishingOptions button{min-height:0;padding:4px 12px;border-radius:0;font-size:14px;line-height:18px;font-weight:400}
}
#finishingOptions.finishingOptions button,#finishingOptions.finishingOptions button:hover,#finishingOptions.finishingOptions button[aria-selected="true"]{background:#fff;color:#10233e;font-weight:400}
#finishingOptions.finishingOptions button.active,#finishingOptions.finishingOptions button.active:hover{background:#1967d2;color:#fff}
/* 05/11/2026 — listas da forma de pagamento no mesmo padrão: compactas, um único destaque azul com letra branca. */
@media screen and (min-width:761px){
.paymentSelectOptions{top:calc(100% + 2px)!important;padding:0;border:1px solid #9fbdd4;border-radius:4px;box-shadow:0 8px 20px rgba(15,35,62,.18);overflow-y:auto;scrollbar-gutter:auto}
.paymentSelectOptions button{min-height:0!important;height:auto!important;margin:0;padding:4px 12px!important;border-radius:0;font-size:14px;line-height:18px}
}
.paymentSelectOptions button,.paymentSelectOptions button:hover,.paymentSelectOptions button[aria-selected="true"]{background:#fff;color:#10233e;font-weight:400}
.paymentSelectOptions button.active,.paymentSelectOptions button.active:hover{background:#1967d2;color:#fff}
/* 04/11/2026 — textos de Largura, Altura e metragem um pouco maiores. */
#quote .studioMeasures .measurePair small,#quote #areaPreview{font-size:12px!important}
/* 04/11/2026 — Largura, Altura e m² acima da caixa, no canto superior direito. */
#quote .studioMeasures .measurePair>div{position:relative}
#quote .studioMeasures .measurePair>div>small{position:absolute!important;right:2px;bottom:calc(100% + 4px);margin:0!important;line-height:16px;text-align:right;white-space:nowrap}
#quote .studioQty{position:relative}
#quote #areaPreview{position:absolute!important;right:2px;top:0;margin:0!important;line-height:16px;text-align:right;white-space:nowrap}

/* 13/10/2026 — ajuste exclusivo da marca lateral no Desktop. */
@media (min-width:981px){
  aside .brand{align-items:flex-start!important;padding-left:34px!important;margin-bottom:18px!important}
  aside .brand img{width:116px!important;max-width:116px!important;height:auto!important;max-height:50px!important;object-fit:contain!important;object-position:left center!important}
}

/* Ajuste pontual 13-10-2026: alinhar inicio do menu Dashboard ao conteudo principal, sem mover o logotipo. */
@media (min-width:981px){body>aside>nav{margin-top:65px!important}}

/* Ajuste cirúrgico: menu lateral desktop sem seleção azul permanente.
   O realce azul aparece somente quando o ponteiro está sobre a função. */
@media (min-width: 641px) {
  aside nav button.active:not(:hover),
  aside nav button.active:not(:hover):focus,
  aside nav button.active:not(:hover):focus-visible {
    background: transparent !important;
    box-shadow: none !important;
  }
  aside nav button:hover {
    background: #087ee7 !important;
    color: #fff !important;
  }
}

/* 13-10-2026 — Compactação cirúrgica APENAS do PDF comercial (orçamento/pedido).
   Mantém cores, tipografia e organização; não altera visual na tela nem recibos. */
.pdfExportClone{padding-top:1.5mm!important;padding-bottom:1.5mm!important}
.pdfExportClone .issuerBlock,.pdfExportClone .clientBlock{margin-bottom:1mm!important}
.pdfExportClone .pdfHead{padding:0 0 1mm!important;gap:3mm!important}
.pdfExportClone .companyLogo{max-height:12mm!important;max-width:40mm!important}
.pdfExportClone .clientBlock .prepared{padding:1mm .8mm!important}
.pdfExportClone .printSection{margin-top:1.2mm!important}
.pdfExportClone .printSectionTitle{padding:1mm 2mm!important}
.pdfExportClone .previewItem{padding:0 0 .45mm!important}
.pdfExportClone .previewLine{padding:.85mm 1mm!important;font-size:12px!important;line-height:1.2!important}
.pdfExportClone .previewItem small{padding:0 1mm .4mm!important;line-height:1.18!important}
.pdfExportClone .previewItemSpecification{line-height:1.18!important}
.pdfExportClone #summaryRows .previewLine{padding:.85mm 1mm!important}
.pdfExportClone .total{margin:.8mm 0 0!important;padding:1.2mm 1mm!important}
.pdfExportClone .paymentBox{margin:1.2mm 0!important;padding:1.2mm 2mm!important}
.pdfExportClone .paymentBox>span{margin:.5mm 0!important}
.pdfExportClone .paymentBox p{margin:.6mm 0!important;line-height:1.18!important}
.pdfExportClone .commercialDocumentInfo{margin-top:1.2mm!important}
.pdfExportClone .commercialFacts{gap:1mm!important}
.pdfExportClone .validity{margin:1mm 0!important}
.pdfExportClone .pdfFooter{margin-top:1.2mm!important;padding-top:1mm!important}


/* 13-10-2026 — layout comercial: grade dinâmica e sem duplicação de endereço. */
.pdfExportClone .pdfFooter,.pdfExportClone #pdfFooter{display:none!important}
.pdfExportClone .issuerBlock{margin-bottom:5mm!important}
.pdfExportClone .clientBlock{margin-bottom:3.5mm!important}
.pdfExportClone .pdfProductTableRow{display:grid!important;grid-template-columns:minmax(0,2.5fr) minmax(0,1.05fr) minmax(0,1.55fr) minmax(18mm,.85fr);gap:0!important;padding:0!important;margin:0!important;border:0!important;break-inside:avoid!important;page-break-inside:avoid!important;align-items:stretch!important}
.pdfExportClone .pdfProductTableRow>div{border:0.3px solid #9ca5aa;margin-right:-.3px;margin-bottom:-.3px;padding:1.35mm 1.5mm!important;min-width:0;overflow-wrap:anywhere;line-height:1.2!important}
.pdfExportClone .pdfProductTableRow strong{display:block;font-size:10.8px!important;color:#102c40!important;line-height:1.2!important}
.pdfExportClone .pdfProductTableRow small{display:block!important;font-size:9px!important;color:#344250!important;margin:0!important;padding:.5mm 0 0!important;line-height:1.2!important}
.pdfExportClone .pdfProductTableRow .pdfProductAmount{font-size:10.3px!important;font-weight:800;text-align:right;white-space:nowrap;color:#102c40}
.pdfExportClone .pdfProductTableRow .pdfProductExtras:empty,.pdfExportClone .pdfProductTableRow .pdfProductQuantity:empty{min-height:8mm}
.pdfExportClone .pdfProductTableRow .pdfProductQuantity small:first-child{font-weight:700!important}
.pdfExportClone #previewItems{margin-top:1mm!important;margin-bottom:2mm!important}
@media print{
  body:not(.printingReceipt):not(.printingMonthlyReport) #quote .pdfFooter,
  body:not(.printingReceipt):not(.printingMonthlyReport) #quote #pdfFooter{display:none!important;position:static!important;height:0!important;padding:0!important;margin:0!important}
  #quote .summary .issuerBlock{margin-bottom:5mm!important}
  #quote .summary .clientBlock{margin-bottom:3.5mm!important}
  #quote .summary .preview{padding-bottom:0!important}
}

/* Final commercial PDF: actual table shared by print and download. */
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument){width:190mm!important;max-width:190mm!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:11px!important;color:#111!important;box-shadow:none!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfHead{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:4mm!important;padding:1mm 0 2mm!important;margin:0!important;border-bottom:1px solid #078fe7!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfCompany{display:flex!important;align-items:center!important;gap:4mm!important;flex:1;min-width:0}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .companyLogo{width:40mm!important;max-width:40mm!important;max-height:16mm!important;flex-shrink:0;object-fit:contain!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfCompanyDetails b{font-size:10px!important;margin:0 0 .5mm!important;line-height:1.25!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfCompanyDetails small{font-size:9px!important;line-height:1.3!important;margin:0!important;color:#222!important;overflow-wrap:anywhere}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfCompanyDetails small:empty{display:none!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfOrder{flex-shrink:0;text-align:right!important;white-space:nowrap!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfOrder strong{font-size:13px!important;color:#063a67!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfOrder span{display:block!important;font-size:9.5px!important;margin-top:1mm!important;color:#222!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .issuerBlock{margin:0 0 4mm!important;padding:0!important;border:0!important;background:#fff!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .issuerBlock .blockLabel{display:none!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .clientBlock{margin:0 0 3mm!important;border:0!important;background:#fff!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .blockLabel,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .printSectionTitle{padding:1.5mm 2mm!important;border:0!important;border-left:1mm solid #20c568!important;border-bottom:1px solid #b9d8ee!important;background:#fff!important;color:#063a67!important;border-radius:0!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.07em!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .prepared{padding:1.5mm 1mm!important;margin:0!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .prepared strong{font-size:13px!important;color:#111!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .prepared>small{font-size:9.5px!important;line-height:1.3!important;color:#222!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .printSection{margin-top:2mm!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) #previewItems{margin:2mm 0!important;padding:0!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductsTable{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;border:1px solid #777!important;margin:0!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductTableRow{display:table-row!important;break-inside:avoid!important;page-break-inside:avoid!important;border:0!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductTableRow>td{padding:1.6mm 1.5mm!important;vertical-align:top!important;border:1px solid #999!important;color:#111!important;overflow-wrap:anywhere;line-height:1.25!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductTableRow strong{display:block!important;font-size:11px!important;line-height:1.25!important;color:#111!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductTableRow small{display:block!important;font-size:9.5px!important;line-height:1.3!important;margin:0!important;padding:.4mm 0 0!important;color:#222!important;white-space:pre-wrap!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductTableRow small strong{font-size:10px!important;margin-bottom:.4mm!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfProductAmount{text-align:right!important;white-space:nowrap!important;font-size:11px!important;font-weight:800!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .previewItemObservation{border:0!important;background:#fff!important;margin:0!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .printValues{margin:3mm 0 0!important;break-inside:avoid!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) #summaryRows,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .total{width:110mm!important;margin-left:auto!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) #summaryRows .previewLine{padding:1.1mm 1mm!important;font-size:11px!important;line-height:1.3!important;border-bottom:1px solid #dfe8f1!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .total{padding:1.6mm 1mm!important;margin-top:1mm!important;margin-bottom:0!important;border-radius:0!important;background:#fff!important;border-top:1px solid #063a67!important;border-bottom:2px solid #063a67!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .total span{font-size:11px!important;font-weight:800!important;color:#111!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .total strong{font-size:21px!important;color:#063a67!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .paymentBox{border:1px solid #cbd5df!important;border-radius:0!important;padding:2mm!important;margin:3mm 0 2mm!important;background:#fff!important;break-inside:avoid!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .paymentBox>b{font-size:10px!important;color:#063a67!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .paymentBox>span{font-size:11px!important;display:block!important;margin:1mm 0!important;color:#111!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .paymentBox p{font-size:10px!important;line-height:1.3!important;margin:.6mm 0!important;color:#222!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) #commercialDocumentInfo{display:block!important;margin-top:2mm!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialFacts{display:block!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialFacts>div,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialNotes,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialTerms,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialApproval{border:1px solid #cbd5df!important;border-left:1mm solid #20c568!important;padding:2mm 3mm!important;background:#fff!important;break-inside:avoid!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialFacts b,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialNotes>b,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialTerms>b,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialApproval>b{display:block!important;font-size:10px!important;margin-bottom:1mm!important;letter-spacing:.04em!important;color:#063a67!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialFacts span,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialNotes p,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialTerms p,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialApproval p{display:block!important;margin:0!important;font-size:9.5px!important;line-height:1.35!important;color:#222!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialNotes,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialTerms,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialApproval{margin-top:2mm!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialNotes.hidden{display:none!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .commercialApproval{border-left-color:#078fe7!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .approvalLines{display:flex!important;gap:5mm!important;margin-top:5mm!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .approvalLines span{flex:1;border-top:1px solid #718096!important;padding-top:1mm!important;text-align:center!important;font-size:8.5px!important;color:#444!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .approvalLines span:first-child{flex:1.4}:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .approvalLines span:nth-child(2){flex:.55}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .nonFiscalNotice{font-size:8px!important;text-align:center!important;margin:2mm 0!important;color:#555!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .validity{position:static!important;display:block!important;break-inside:avoid!important;text-align:center!important;font-size:9px!important;line-height:1.3!important;margin:2mm 0 0!important;padding:0!important;color:#333!important}
:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .pdfFooter,:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) .presentationControls{display:none!important}
@media print{@page orcupCommercial{size:A4;margin:5mm 10mm!important}#quote .summary .panel.preview.commercialPrintDocument{page:orcupCommercial}:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument){position:static!important;top:auto!important;min-height:0!important;height:auto!important}:is(.pdfExportClone,#quote .summary .panel.preview.commercialPrintDocument) *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* 13-10-2026: correção isolada do cabeçalho PDF comercial.
   Não altera tabela, formulários, recibos ou relatórios. */
.pdfExportClone{width:190mm!important;min-width:190mm!important;max-width:190mm!important;box-sizing:border-box!important;}
.pdfExportClone .pdfHead,.pdfExportClone .pdfCompany{flex-direction:row!important;flex-wrap:nowrap!important;text-align:left!important;}
.pdfExportClone .pdfOrder{margin-left:auto!important;text-align:right!important;}
.pdfExportClone .issuerBlock .pdfHead{padding-top:2mm!important;}
@media print{
  @page orcupCommercial{size:A4 portrait;margin:10mm 10mm 9mm;}
  body:not(.printingReceipt):not(.printingMonthlyReport) main{padding-top:0!important;margin-top:0!important;}
  body:not(.printingReceipt):not(.printingMonthlyReport) #quote .summary .panel.preview.commercialPrintDocument{width:190mm!important;min-width:190mm!important;max-width:190mm!important;margin:0!important;}
  body:not(.printingReceipt):not(.printingMonthlyReport) #quote .summary .panel.preview .pdfHead{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;text-align:left!important;padding-top:2mm!important;}
  body:not(.printingReceipt):not(.printingMonthlyReport) #quote .summary .panel.preview .pdfCompany{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;text-align:left!important;}
  body:not(.printingReceipt):not(.printingMonthlyReport) #quote .summary .panel.preview .pdfOrder{margin-left:auto!important;text-align:right!important;}
}

/* Edição de clientes: ação visível, leve e compatível com a lista responsiva. */
#clientList .clientListHeader{padding-right:48px}
#clientList .clientRow{position:relative;padding:10px 48px 10px 14px;min-height:48px}
#clientList .clientEditButton{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:#125680;box-shadow:none;cursor:pointer}
#clientList .clientEditButton svg{display:block;flex-shrink:0;pointer-events:none}
#clientList .clientEditButton:hover{background:#e3f1fb}
.clientEditButton:focus-visible{outline:2px solid #1688c9;outline-offset:2px}
.clientFormActions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#clientEditStatus{color:#365970;font-size:13px;font-weight:400}

/* Lista de clientes com tipografia compacta. */
#clientList .clientListHeader{font-size:11px;line-height:1.3}
#clientList .clientRow{font-size:12px;line-height:1.35}
#clientList .clientNameCell b{font-size:12px;font-weight:600}
#clientList .clientCell,#clientList .clientTypeTag{font-size:12px;line-height:1.35}

/* Bloco 3 (06/11/2026) — colaborador sem "visualizar custos": lucro e margem dos Relatórios ficam ocultos em vez de errados. */
body.collabNoCosts #reports article:has(#reportProfit),body.collabNoCosts #reports article:has(#reportMargin){display:none!important}
/* Bloco 2 (06/11/2026): cadastros inativos (cliente, produto, fornecedor). */
.inactiveToggle{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;color:#4b5563;cursor:pointer}
.inactiveToggle input{width:auto!important;margin:0}
.inactiveTag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:#eef0f3;color:#5b6472;font-size:11px;font-weight:600;vertical-align:middle}
.isInactive{opacity:.62}
.clientStateButton{justify-self:end;width:auto!important;min-height:30px;padding:4px 10px!important;border:1px solid #d6dae1!important;border-radius:7px!important;background:#fff!important;color:#374151!important;font-size:12px!important;cursor:pointer}
.clientStateButton:hover{background:#f3f4f6!important}
/* Saldo de Crédito do Cliente (06/11/2026). */
.clientCreditBox{margin:14px 0;border:1px solid #e3e6eb;border-radius:12px;background:#fff;padding:0 16px}
.clientCreditBox>summary{cursor:pointer;padding:14px 0;font-weight:600;display:flex;align-items:center;gap:8px;list-style:none}
.clientCreditBox>summary::-webkit-details-marker{display:none}
.creditSummaryValue{margin-left:auto;color:#0a7a3d}
.creditHint{color:#5b6472;font-size:13px;margin:6px 0}
.creditBalance{background:#f4f5f7;border-radius:10px;padding:12px 14px;margin:8px 0}
.creditBalance span{display:block;color:#5b6472;font-size:13px}.creditBalance strong{font-size:28px;color:#0a7a3d}
.creditActions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.creditActions button{width:auto!important}
.creditHistory{overflow-x:auto;margin:8px 0 14px}.creditHistory table{width:100%;border-collapse:collapse;font-size:13px}
.creditHistory th,.creditHistory td{text-align:left;padding:6px 8px;border-bottom:1px solid #eef0f3;white-space:nowrap}
.creditIn{color:#0a7a3d;font-weight:600}.creditOut{color:#b4232d;font-weight:600}
.creditReceipt{width:auto!important;padding:2px 8px!important;font-size:12px!important;min-height:0!important}
.creditTag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:#e7f6ec;color:#0a7a3d;font-size:11px;font-weight:600}
.clientCreditDialog{border:0;border-radius:12px;padding:20px;max-width:440px;width:92vw}
.clientCreditDialog form{display:grid;gap:10px}.clientCreditDialog h2{margin:0;font-size:18px}
.creditDialogActions{display:flex;justify-content:flex-end;gap:8px}.creditDialogActions button{width:auto!important}
.creditError{color:#b4232d;font-size:13px;min-height:1em;margin:0}
/* Saldo de Crédito Parte 2: quadro no orçamento/pedido (só na tela) e linha prevista no resumo. */
.orderCreditBox{margin:12px 0;border:1px solid #cfe9d8;background:#f3fbf6;border-radius:10px;padding:10px 12px;font-size:13px}
.orderCreditBox b{color:#0a7a3d}.orderCreditBox p{margin:4px 0}.orderCreditBox button{width:auto!important;margin:6px 8px 0 0}
#plannedCreditPreview{display:flex;justify-content:space-between;color:#0a7a3d}
