*{box-sizing:border-box} :root{--ink:#151515;--muted:#777;--line:#e7e7e3;--soft:#f5f5f2;--paper:#fff;--good:#1d6b4f;--bad:#a33c32}html,body{margin:0;min-height:100%;overflow-x:hidden}body{background:#f7f7f5;color:var(--ink);font:14px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{display:block;min-height:100vh}.sidebar{position:fixed;z-index:10;left:0;top:0;bottom:0;width:238px;background:#eeeeeb;padding:22px 16px;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}.brand{display:block;flex:0 0 auto;padding:0 8px 24px}.brand-logo{display:block;width:190px;max-width:100%;height:42px;object-fit:contain;object-position:left center;filter:invert(1)}.sidebar nav{display:flex;flex-direction:column;gap:3px;flex:0 0 auto}.nav{width:100%;background:transparent;border:0;color:#666;text-align:left;border-radius:6px;padding:10px 12px;cursor:pointer;font:inherit}.nav:hover,.nav.active{background:#dcdcd7;color:#151515}.offline{margin-top:auto;border-top:1px solid #d4d4cf;padding:14px 8px 0;color:#555;font-size:12px;line-height:1.7}.offline i{display:inline-block;width:7px;height:7px;background:#6fa98c;border-radius:50%;margin-right:5px}.main{display:block;margin:0 0 0 238px;width:calc(100% - 238px);min-height:100vh;padding:38px clamp(24px,5vw,72px) 60px;overflow:visible}header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:34px}h1,h2,h3,p{margin-top:0}h1{font:400 32px Georgia,serif;margin-bottom:4px}h2{font:400 30px Georgia,serif;margin-bottom:10px}.eyebrow{color:#898989;text-transform:uppercase;letter-spacing:.15em;font-size:10px;margin-bottom:8px}.date{font-size:12px;color:#888}.header-actions{display:flex;gap:14px;align-items:center}.ghost{background:none;border:1px solid var(--line);padding:9px 12px;border-radius:5px;color:#666;cursor:pointer}.view{display:none}.view.active{display:block}.hero{background:#e4e4df;display:flex;justify-content:space-between;align-items:center;padding:34px 38px;border-radius:9px;margin-bottom:24px}.primary{border:0;background:#151515;color:#fff;padding:11px 16px;border-radius:5px;cursor:pointer;font-weight:600}.full{width:100%;margin-top:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:22px}.metric,.panel{background:var(--paper);border:1px solid var(--line);border-radius:8px}.metric{padding:20px}.metric .label,.label{display:block;color:#888;text-transform:uppercase;letter-spacing:.1em;font-size:10px;margin-bottom:11px}.metric strong{font-size:23px;font-weight:500}.metric small{display:block;margin-top:8px;color:#888}.grid-2,.cash-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.panel{padding:24px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-head span{font-size:11px;color:#aaa}.bars{display:grid;gap:14px}.bar-row{display:grid;grid-template-columns:125px minmax(0,1fr) 75px;gap:10px;align-items:center;font-size:12px}.bar-track,.goal-track{height:8px;background:#eee;border-radius:10px;overflow:hidden}.bar-fill,.goal-fill{height:100%;background:#252525}.health-item{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0}.health-item span{color:#777}.parameter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.parameter{background:var(--soft);padding:15px;border-radius:6px}.parameter span{display:block;color:#888;font-size:11px;margin-bottom:6px}.section-intro{margin:10px 0 25px}.section-intro p:last-child{color:#777;max-width:700px}.calc-layout,.package-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px}.form-panel{display:grid;align-content:start;gap:15px}label{display:grid;gap:7px;color:#555;font-size:12px}input,select{width:100%;min-width:0;padding:11px;border:1px solid #ddd;border-radius:5px;background:#fff;font:inherit;color:#222}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.result-item{padding:13px 0;border-bottom:1px solid var(--line)}.result-item span{display:block;color:#888;font-size:11px;margin-bottom:5px}.big-result,.parameter,.formula-list p{background:var(--soft);padding:18px;border-radius:6px}.big-result strong{font:400 31px Georgia,serif}.check-list{display:grid;gap:9px;margin-top:20px}.check{display:flex;align-items:center;gap:11px;background:var(--soft);padding:13px}.check span{flex:1}.summary-line{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:10px;color:#888;text-transform:uppercase;letter-spacing:.1em}.table-wrap{max-width:100%;overflow-x:auto}.table-wrap table{min-width:720px}.remove{border:0;background:#eee;color:#777;border-radius:4px;padding:5px 7px;cursor:pointer;font-size:11px}.cash-summary{display:grid}.negative{color:var(--bad)!important}.formula{margin-top:22px;border-left:3px solid #ddd;padding:12px 14px;color:#777;font-size:12px;line-height:1.6}.goal{margin:18px 0}.goal-head{display:flex;justify-content:space-between;margin-bottom:7px}.asset{padding:14px 0;border-bottom:1px solid var(--line)}.asset-head{display:flex;justify-content:space-between}.asset small{color:#888}.button-row{display:flex;gap:10px;margin:20px 0}.upload{background:#222;color:#fff;padding:11px 16px;border-radius:5px;cursor:pointer}.upload input{display:none}pre{background:#171717;color:#ddd;padding:16px;border-radius:5px;overflow:auto;font-size:11px;min-height:80px}@media(max-width:1150px){.main{padding-left:28px;padding-right:28px}.four{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.sidebar{width:190px}.main{margin-left:190px;width:calc(100% - 190px);padding:26px 22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.parameter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-layout,.package-layout{grid-template-columns:minmax(0,1fr)}.four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.sidebar{position:relative;width:100%;height:auto;min-height:0;overflow:visible;padding:15px}.brand{padding:0 5px 16px}.brand-logo{width:190px;height:38px}.sidebar nav{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding-bottom:3px}.nav{width:auto;flex:0 0 auto;white-space:nowrap;padding:9px}.offline{display:none}.main{margin:0;width:100%;padding:22px 15px}.header-actions{display:none}.grid-2,.cash-layout,.calc-layout,.package-layout,.two,.result-grid{grid-template-columns:1fr}.hero{display:block;padding:25px}.hero .primary{margin-top:15px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.parameter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.four{grid-template-columns:1fr}.table-wrap table{min-width:680px}}

/* Shell estrutural definitivo: menu e painel são colunas independentes */
@media(min-width:651px){.app-shell{display:grid!important;grid-template-columns:238px minmax(0,1fr)!important;align-items:start!important}.sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:238px!important;height:100vh!important;z-index:20!important}.main{grid-column:2!important;grid-row:1!important;margin:0!important;width:auto!important;min-width:0!important;max-width:none!important;padding:38px clamp(24px,5vw,72px) 60px!important;overflow:visible!important}}@media(min-width:651px) and (max-width:900px){.app-shell{grid-template-columns:190px minmax(0,1fr)!important}.sidebar{width:190px!important}.main{padding:26px 22px!important}}@media(max-width:650px){.app-shell{display:block!important}.sidebar{position:relative!important;width:100%!important;height:auto!important;min-height:0!important}.main{display:block!important;width:100%!important;margin:0!important;padding:22px 15px!important}}

.chat-log{max-height:430px;overflow-y:auto;display:grid;gap:10px;margin:18px 0}.chat-message{max-width:88%;padding:12px 14px;border-radius:8px;line-height:1.55}.chat-message.user{justify-self:end;background:#151515;color:#fff}.chat-message.assistant{justify-self:start;background:var(--soft);border:1px solid var(--line)}.chat-message span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;opacity:.65;margin-bottom:5px}.chat-message p{margin:0}.chat-hint{font-size:11px;color:#888;margin-top:12px}

.cash-chart-panel{margin-top:18px}.cash-chart-panel .bar-row{grid-template-columns:minmax(150px,1fr) minmax(120px,2fr) auto}

.asset-summary{margin:1rem 0}.asset-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:1rem;margin-top:1rem}.asset-card{background:var(--panel,#fff);border:1px solid var(--line,#ddd);border-radius:14px;padding:1rem;box-shadow:0 8px 24px rgba(0,0,0,.05)}.asset-card .asset-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.asset-card h3{margin:.1rem 0}.asset-card p{line-height:1.5}.asset-card .metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin:1rem 0}.asset-card .metric-grid div{background:rgba(0,0,0,.035);border-radius:8px;padding:.55rem}.asset-card .metric-grid span{display:block;font-size:.75rem;opacity:.7}.asset-card .metric-grid b{display:block;margin-top:.2rem}.linked-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line,#ddd);padding:.5rem 0;gap:1rem}.muted{opacity:.7;font-size:.9rem}.asset-card textarea,textarea{width:100%;min-height:70px;margin:.7rem 0;padding:.7rem;border:1px solid var(--line,#ddd);border-radius:8px;font:inherit}@media(max-width:700px){.asset-list{grid-template-columns:1fr}.asset-card .metric-grid{grid-template-columns:1fr 1fr}}
.asset-values{display:grid;gap:.1rem;text-align:right}.asset-values small{opacity:.65}.asset-values b{font-size:.9rem}.asset-values strong{font-size:1.15rem}.result-item{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--line,#ddd)}.result-item:last-child{border-bottom:0}.muted{opacity:.7}


/* Documento comercial independente */
#proposal-preview{display:none;position:fixed;inset:0;z-index:100;background:#eef0ef;overflow:auto;padding:76px 20px 40px}
#proposal-preview.open{display:block}.proposal-toolbar{position:fixed;z-index:2;inset:0 0 auto;background:#151515;padding:14px 22px;display:flex;justify-content:flex-end;gap:10px}.proposal-toolbar button{border:1px solid #555;background:#292929;color:#fff;border-radius:5px;padding:10px 15px;cursor:pointer}.proposal-toolbar .primary{background:#fff;color:#151515;border-color:#fff}.proposal-document{width:210mm;min-height:297mm;margin:0 auto;background:#fff;color:#171717;padding:18mm 17mm 15mm;box-shadow:0 8px 30px rgba(0,0,0,.12);font-family:Arial,Helvetica,sans-serif;position:relative}.proposal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.proposal-logo{width:54mm;height:auto;max-height:17mm;object-fit:contain;object-position:left center}.proposal-company{display:grid;gap:3px;margin-top:7px;color:#777;font-size:9px;line-height:1.3}.proposal-company strong{font-size:12px;color:#171717}.proposal-mark{text-align:right;font-size:14px;letter-spacing:.16em;font-weight:700;color:#222;line-height:1.5}.proposal-mark small{font-size:8px;color:#8a8a85;letter-spacing:.24em}.proposal-rule{border-top:1px solid #202020;margin:9mm 0 10mm}.proposal-meta{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;border-bottom:1px solid #deded9;padding-bottom:8mm}.proposal-meta span{display:block;color:#888;font-size:8px;letter-spacing:.12em;margin-bottom:5px}.proposal-meta strong{display:block;font-size:11px;line-height:1.35}.proposal-lead{font-size:10.5px;line-height:1.65;color:#555;margin:9mm 0}.proposal-document h2{font-size:10px;letter-spacing:.15em;margin:9mm 0 4mm;border-bottom:1px solid #222;padding-bottom:3mm}.proposal-service-group{page-break-inside:avoid;margin-bottom:7mm}.proposal-service-group h3{font-size:9px;letter-spacing:.12em;color:#777;margin:6mm 0 3mm}.proposal-document table{width:100%;border-collapse:collapse;font-size:9.5px}.proposal-document th{background:#f1f1ee;color:#666;font-size:8px;padding:8px 7px;letter-spacing:.08em;border-bottom:1px solid #ccc}.proposal-document td{padding:8px 7px;border-bottom:1px solid #e3e3df;white-space:normal}.proposal-document .num{text-align:right;white-space:nowrap}.proposal-finance{margin:8mm 0;page-break-inside:avoid;border-top:1px solid #222}.proposal-total{display:flex;justify-content:space-between;align-items:baseline;padding:4mm 5mm;border-bottom:1px solid #e3e3df}.proposal-total span{font-size:9px;letter-spacing:.12em;color:#666}.proposal-total strong{font-size:14px}.proposal-total.highlight{background:#171717;color:#fff;margin-top:3mm;border:0}.proposal-total.highlight span{color:#bbb}.proposal-total.highlight strong{font-size:20px}.proposal-discount{display:grid;grid-template-columns:1fr auto;gap:7px 20px;margin-top:5mm;padding:4mm;background:#f6f6f3;font-size:9px;color:#666}.proposal-discount b{text-align:right;color:#222}.proposal-columns{display:grid;grid-template-columns:1fr 1fr;gap:12mm;page-break-inside:avoid}.proposal-columns h2{margin-top:4mm}.proposal-document p{font-size:10px;line-height:1.6}.proposal-notes{page-break-inside:avoid}.proposal-acceptance{display:flex;justify-content:space-between;gap:25mm;margin-top:16mm;page-break-inside:avoid;font-size:10px;line-height:1.8}.proposal-acceptance span{color:#555}.proposal-footer{display:flex;align-items:center;gap:8px;border-top:1px solid #ddd;margin-top:18mm;padding-top:4mm;color:#888;font-size:8px}.proposal-footer img{width:25mm;height:auto;max-height:7mm;object-fit:contain}.proposal-footer span:last-child{margin-left:auto}.proposal-controls{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.proposal-controls h3{margin-bottom:14px}.proposal-controls label{margin-bottom:10px}.proposal-controls textarea{min-height:58px;resize:vertical}.check-option{display:flex;display:flex;align-items:center;grid-template-columns:none;gap:8px}.check-option input{width:auto}.qty-input{width:58px!important;padding:7px!important}.company-settings{border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:20px}.company-settings h3{margin-bottom:8px}.company-settings label{display:flex;align-items:center;gap:8px;margin:12px 0}.company-settings label input{width:auto}
@media(max-width:760px){#proposal-preview{padding:72px 8px 20px}.proposal-document{transform-origin:top center;width:210mm;box-shadow:none;margin:0 auto}.proposal-toolbar{padding:10px;justify-content:center}.proposal-toolbar button{font-size:12px}.proposal-meta{grid-template-columns:1fr 1fr}.proposal-columns{grid-template-columns:1fr}}
@page{size:A4;margin:0}@media print{html,body{background:#fff!important}.app-shell{display:none!important}#proposal-preview{display:block!important;position:static!important;padding:0!important;overflow:visible!important;background:#fff!important}.proposal-toolbar{display:none!important}.proposal-document{box-shadow:none!important;margin:0!important;width:210mm!important;min-height:297mm!important;padding:18mm 17mm 15mm!important}.proposal-service-group{break-inside:avoid}.proposal-document tr{break-inside:avoid;page-break-inside:avoid}.proposal-document thead{display:table-header-group}.proposal-document h2,.proposal-document h3{break-after:avoid}}

/* Correção PDF comercial v18: composição A4 estável, sem alterar o design global. */
.proposal-document,.proposal-document *{box-sizing:border-box}.proposal-document{width:210mm;min-height:297mm;margin:0 auto;padding:13mm 14mm 11mm;overflow:hidden}.proposal-header{min-height:22mm;align-items:center;gap:12mm}.proposal-header>div:first-child{display:flex;align-items:center;gap:7mm;min-width:0;flex:1}.proposal-logo{display:block;width:43mm;height:auto;max-height:13mm;flex:0 0 auto;object-fit:contain;object-position:left center;filter:invert(1)!important}.proposal-company{min-width:0;max-width:82mm;margin-top:0;font-size:7.5px;line-height:1.25;overflow-wrap:anywhere}.proposal-company span{display:block}.proposal-mark{flex:0 0 34mm;font-size:13px;line-height:1.25;white-space:nowrap}.proposal-rule{margin:5mm 0 6mm}.proposal-meta{grid-template-columns:minmax(0,2.1fr) repeat(3,minmax(0,1fr));gap:7mm;padding-bottom:5mm}.proposal-meta span{font-size:7px;margin-bottom:2mm}.proposal-meta strong{font-size:9px;overflow-wrap:anywhere}.proposal-lead{font-size:8.5px;line-height:1.45;margin:5mm 0}.proposal-document h2{font-size:8.5px;margin:5mm 0 2.5mm;padding-bottom:2mm}.proposal-service-group{margin-bottom:4mm}.proposal-service-group h3{font-size:7.5px;margin:3mm 0 2mm}.proposal-document table{table-layout:fixed;font-size:8px}.proposal-document th{font-size:7px;padding:5px;line-height:1.2}.proposal-document td{padding:5px;line-height:1.25;overflow-wrap:anywhere}.proposal-document th:nth-child(1),.proposal-document td:nth-child(1){width:40%}.proposal-document th:nth-child(2),.proposal-document td:nth-child(2){width:18%}.proposal-document th:nth-child(3),.proposal-document td:nth-child(3){width:9%}.proposal-document th:nth-child(4),.proposal-document td:nth-child(4){width:18%}.proposal-document th:nth-child(5),.proposal-document td:nth-child(5){width:15%}.proposal-document .num{white-space:nowrap}.proposal-finance{margin:5mm 0}.proposal-total{padding:2.5mm 3.5mm}.proposal-total span{font-size:7.5px}.proposal-total strong{font-size:11px;white-space:nowrap}.proposal-total.highlight{margin-top:2mm}.proposal-total.highlight strong{font-size:15px}.proposal-discount{gap:4px 12px;margin-top:3mm;padding:2.5mm 3.5mm;font-size:7.5px}.proposal-columns{gap:8mm}.proposal-columns h2{margin-top:2mm}.proposal-document p{font-size:8px;line-height:1.4;margin-top:2mm}.proposal-acceptance{gap:18mm;margin-top:9mm;font-size:8px}.proposal-footer{gap:5px;margin-top:8mm;padding-top:2.5mm;font-size:7px}.proposal-footer img{width:22mm;max-height:5mm;filter:invert(1)!important}
@media print{html,body{width:210mm;min-width:210mm;background:#fff!important}#proposal-preview{width:210mm!important;padding:0!important;overflow:visible!important}.proposal-document{width:210mm!important;height:auto;min-height:297mm!important;margin:0!important;padding:13mm 14mm 11mm!important;overflow:hidden!important;box-shadow:none!important}.proposal-header,.proposal-meta,.proposal-service-group,.proposal-finance,.proposal-columns,.proposal-notes,.proposal-acceptance,.proposal-footer{break-inside:avoid;page-break-inside:avoid}.proposal-document table{width:100%!important}.proposal-document img{break-inside:avoid;page-break-inside:avoid}}
@media(max-width:760px){.proposal-header>div:first-child{gap:4mm}.proposal-logo{width:36mm}.proposal-mark{flex-basis:29mm;font-size:11px}}

.proposal-history{display:grid;gap:10px}.proposal-history-card{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:18px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:15px}.proposal-history-card h4{margin:5px 0 4px;font-size:15px;font-weight:500}.proposal-history-card small,.proposal-history-card span{color:#888;font-size:11px}.proposal-history-number{font-size:10px!important;letter-spacing:.1em;text-transform:uppercase}.proposal-history-value{text-align:right;display:grid;gap:4px}.proposal-history-value strong{font-size:16px}.proposal-history-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.proposal-history-actions button{white-space:nowrap}@media(max-width:760px){.proposal-history-card{grid-template-columns:1fr}.proposal-history-value{text-align:left}.proposal-history-actions{justify-content:flex-start}}

/* A logo original é clara; no documento branco ela precisa manter contraste sem alterar o arquivo. */
.proposal-logo,.proposal-footer img{filter:invert(1)}

/* Tribune OS — camada integrada */
.os-panels{align-items:start}.os-list{display:grid;gap:8px}.os-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e5e5e5}.os-row:last-child{border-bottom:0}.os-row span{display:flex;flex-direction:column;gap:3px;min-width:0}.os-row small{color:#777;font-size:.76rem}.os-row b{white-space:nowrap}.os-row .negative,.negative{color:#9a2d2d}.small-button{border:1px solid #bbb;background:#fff;padding:5px 8px;font-size:.75rem;cursor:pointer}.os-calendar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.os-day{display:flex;flex-direction:column;gap:6px;background:#f5f5f3;padding:12px;min-height:74px}.os-day span{font-size:.82rem}.os-ranges{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.os-ranges div{display:flex;justify-content:space-between;background:#f5f5f3;padding:12px}.decision-box{margin-top:12px;padding:13px;background:#f5f5f3;border-left:3px solid #222}@media(max-width:760px){.os-ranges{grid-template-columns:1fr}.os-row{align-items:flex-start;flex-wrap:wrap}}
/* Catálogo comercial evoluído */
.catalog-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.catalog-tabs button{border:1px solid #d8dee9;background:#fff;border-radius:8px;padding:9px 14px;cursor:pointer}.catalog-tabs button.active{background:#172033;color:#fff}.catalog-dashboard{padding:12px 16px;background:#f7f8fa;border:1px solid #e6e9ef;border-radius:10px;margin-bottom:16px}.cc-form{margin:16px 0;padding:16px;background:#f8fafc;border:1px solid #dfe5ee;border-radius:12px}.cc-form h4{margin-top:0}.cc-form textarea{width:100%;min-height:64px;margin:10px 0;padding:10px;box-sizing:border-box}.cc-item{display:grid;grid-template-columns:minmax(180px,2fr) 90px 120px auto auto;gap:8px;align-items:center;margin:8px 0}.cc-item input,.cc-item select{min-width:0}.cc-item label{font-size:12px}.cc-form button,.table-wrap button{cursor:pointer}.table-wrap td button{margin:2px;padding:5px 7px;font-size:12px}@media(max-width:760px){.cc-item{grid-template-columns:1fr 1fr}.cc-item select{grid-column:1/-1}}
/* O catálogo mestre substitui a tabela legada de serviços; parâmetros financeiros continuam visíveis. */
.catalog-legacy-services{display:none!important}
/* Cada módulo usa o título da sua própria section-intro, sem repetir o cabeçalho global. */
header > div:first-child{display:none!important}
header{justify-content:flex-end}
.catalog-original-intro{display:none!important}.catalog-master-intro{margin:0 0 18px}.catalog-master-intro h2{margin:4px 0 6px}.catalog-master-intro p:last-child{margin:0;color:#667085}.catalog-legacy-services{display:none!important}
.catalog-commercial .table-wrap{max-height:none;overflow:auto}.catalog-commercial table thead th{position:sticky;top:0;background:#fff;z-index:1}

.catalog-department{margin:12px 0;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}.catalog-department summary{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#f7f9fc;cursor:pointer;list-style:none}.catalog-department summary::-webkit-details-marker{display:none}.catalog-department summary:before{content:"▸";margin-right:9px}.catalog-department[open] summary:before{content:"▾"}.catalog-department summary span{color:#667085;font-size:12px}.catalog-department .table-wrap{border-top:1px solid #e2e8f0}


/* O cabeçalho global do painel oculta seu primeiro bloco; no documento comercial ele deve permanecer visível. */
.proposal-document .proposal-header>div:first-child{display:flex!important;align-items:center;gap:7mm;min-width:0;flex:1}
.proposal-document .proposal-header .proposal-logo{display:block!important;visibility:visible!important;opacity:1!important;filter:invert(1)!important}
@media print{.proposal-document .proposal-header>div:first-child{display:flex!important}.proposal-document .proposal-header .proposal-logo{display:block!important}}


/* Impressão física: legibilidade reforçada e paginação natural em A4. */
@media print{
  html,body{height:auto!important;min-height:0!important;max-height:none!important;color:#1c1c1c!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #proposal-preview{height:auto!important;min-height:0!important;max-height:none!important;display:block!important}
  #proposal-preview-content{height:auto!important;min-height:0!important;max-height:none!important}
  .proposal-document{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12mm 14mm 9mm!important}
  .proposal-header{min-height:20mm!important}
  .proposal-logo{width:45mm!important;max-height:14mm!important}
  .proposal-company{font-size:8.5px!important;color:#3e3e3e!important;line-height:1.35!important}
  .proposal-mark{font-size:13px!important;color:#202020!important}
  .proposal-mark small{font-size:8px!important;color:#555!important}
  .proposal-meta span,.proposal-service-group h3,.proposal-total span{font-size:8px!important;color:#444!important}
  .proposal-meta strong{font-size:10px!important;color:#181818!important}
  .proposal-lead{font-size:9.5px!important;line-height:1.5!important;color:#333!important}
  .proposal-document h2{font-size:9.5px!important;color:#202020!important;letter-spacing:.13em!important}
  .proposal-document table{font-size:9px!important}
  .proposal-document th{font-size:8px!important;color:#333!important;padding:5.5px 5px!important;background:#ededeb!important}
  .proposal-document td{font-size:9px!important;color:#222!important;padding:5.5px 5px!important}
  .proposal-total strong{font-size:12px!important;color:#151515!important}
  .proposal-total.highlight strong{font-size:16px!important;color:#fff!important}
  .proposal-total.highlight span{color:#e4e4e4!important}
  .proposal-document p{font-size:9px!important;line-height:1.5!important;color:#333!important}
  .proposal-columns{gap:9mm!important}
  .proposal-footer{margin-top:7mm!important;font-size:8px!important;color:#555!important}
  .proposal-footer img{width:24mm!important;max-height:6mm!important}
}


/* Freelancers — cadastro integrado ao Montador de pacote. */
.freelancer-panel{margin-bottom:18px}.freelancer-form-grid{margin:14px 0}.freelancer-panel textarea{width:100%;min-height:62px;box-sizing:border-box;margin:0 0 4px;padding:11px;border:1px solid #ddd;border-radius:5px;font:inherit;resize:vertical}.freelancer-actions{margin:8px 0 18px}.freelancer-actions button{margin:0}.freelancer-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}.freelancer-card{background:var(--soft);border:1px solid var(--line);border-radius:7px;padding:13px;min-width:0}.freelancer-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.freelancer-card-head strong{display:block;font-size:14px}.freelancer-card-head small{display:block;color:#777;margin-top:4px}.freelancer-card-head b{white-space:nowrap}.freelancer-card-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#666;font-size:11px;margin-top:10px}.freelancer-card p{font-size:12px;line-height:1.45;color:#666;margin:10px 0 0}.freelancer-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.freelancer-card-actions button{font-size:11px}.freelancer-panel .panel-head>span{white-space:nowrap}@media(max-width:760px){.freelancer-form-grid{grid-template-columns:1fr}.freelancer-card-head{flex-direction:column;gap:6px}.freelancer-card-meta{display:grid;gap:4px}}


/* Montador: alinhamento exclusivo das linhas de serviços selecionados. */
#package-items .check{display:grid;grid-template-columns:minmax(0,1fr) 74px 42px auto;align-items:center;gap:8px;width:100%;min-width:0;padding:10px 10px 10px 12px}
#package-items .check span{display:block;min-width:0;flex:none;text-align:left;line-height:1.2;overflow-wrap:anywhere}
#package-items .check select{width:74px;min-width:0;padding:7px 4px}
#package-items .check .qty-input{width:42px!important;min-width:0;padding:7px 4px!important;text-align:center}
#package-items .check .remove{justify-self:end;white-space:nowrap;padding:5px 7px}
@media(max-width:650px){#package-items .check{grid-template-columns:minmax(0,1fr) 70px 38px auto;gap:6px;padding-left:10px;padding-right:8px}#package-items .check select{width:70px}#package-items .check .qty-input{width:38px!important}}
