/* v4.1 — fluxo principal e mesa comparativa */
.navigation-shell.workflow-prominent{margin:18px 0 22px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#17365d,#214f82);box-shadow:0 16px 34px rgba(23,54,93,.18)}
.workflow-prominent .nav-section-label{display:none}
.workflow-emphasis-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:14px;color:#fff}
.workflow-emphasis-head>div:first-child span{display:block;font-size:10px;font-weight:900;letter-spacing:.15em;opacity:.72}
.workflow-emphasis-head>div:first-child strong{display:block;font-size:24px;line-height:1.1;margin-top:2px}
.workflow-focus-capital{text-align:right;padding-left:18px;border-left:1px solid rgba(255,255,255,.3)}
.workflow-focus-capital span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.12em;opacity:.7}
.workflow-focus-capital strong{display:block;font-size:22px;line-height:1.1;margin-top:2px}
.workflow-prominent .workflow-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.workflow-prominent .workflow-step{min-height:96px;padding:15px;background:rgba(255,255,255,.96);border:2px solid transparent;box-shadow:none}
.workflow-prominent .workflow-step.active{background:#fff;border-color:#84b2e3;box-shadow:0 0 0 3px rgba(132,178,227,.2)}
.workflow-prominent .step-number{width:38px;height:38px;flex-basis:38px;font-size:15px}
.workflow-prominent .step-copy strong{font-size:17px}
.workflow-prominent .step-copy small{font-size:11px;margin-top:3px;line-height:1.25}
.workflow-prominent .utility-nav{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.2)}
.workflow-prominent .utility-label,.workflow-prominent .utility-tab{color:rgba(255,255,255,.78)}
.workflow-prominent .utility-tab:hover,.workflow-prominent .utility-tab.active{background:rgba(255,255,255,.12);color:#fff}
.cmp-utility-count{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:999px;background:rgba(255,255,255,.16);font-size:9px}

.cmp-dock{position:fixed;left:50%;bottom:16px;z-index:1200;transform:translate(-50%,140%);opacity:0;width:min(1180px,calc(100vw - 28px));display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 13px;background:#172d49;color:#fff;border-radius:14px;box-shadow:0 18px 45px rgba(5,20,40,.28);transition:.22s ease}
.cmp-dock.visible{transform:translate(-50%,0);opacity:1}
.cmp-dock-copy strong{display:block;font-size:12px}.cmp-dock-copy span{display:block;font-size:9px;opacity:.7}
.cmp-dock-chips{display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}.cmp-dock-chips::-webkit-scrollbar{display:none}
.cmp-chip{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;max-width:230px;padding:5px 7px;border-radius:8px;background:rgba(255,255,255,.11);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp-chip.new{border-left:3px solid #7cc4ff}.cmp-chip.contract{border-left:3px solid #75c99c}.cmp-chip.market{border-left:3px solid #f2b666}
.cmp-chip button{border:0;background:transparent;color:#fff;cursor:pointer;font-size:14px;line-height:1}
.cmp-open{background:#fff!important;color:#17365d!important}
.cmp-native.selected{background:#17365d!important;color:#fff!important}

.cmp-modal{position:fixed;inset:0;z-index:1500;display:none}.cmp-modal.open{display:block}.cmp-backdrop{position:absolute;inset:0;background:rgba(10,23,39,.62);backdrop-filter:blur(2px)}
.cmp-dialog{position:absolute;inset:4vh 3vw;display:flex;flex-direction:column;overflow:hidden;background:#f5f8fc;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.32)}
.cmp-dialog-head{display:flex;justify-content:space-between;gap:20px;padding:18px 20px;background:#fff;border-bottom:1px solid #dfe6f1}.cmp-dialog-head h2{margin:2px 0 0;font-size:25px;color:#17365d}.cmp-dialog-head p{margin:2px 0 0;color:#69748f;font-size:11px}.cmp-kicker{font-size:9px;font-weight:900;letter-spacing:.13em;color:#74879e}.cmp-close{border:0;background:#eef2f7;color:#17365d;border-radius:50%;width:36px;height:36px;font-size:22px;cursor:pointer}
.cmp-addbar{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(280px,2fr) auto auto;gap:8px;align-items:end;padding:12px 20px;background:#fff;border-bottom:1px solid #e2e8f0}.cmp-addbar label{min-width:0;font-size:9px;text-transform:uppercase;font-weight:850;color:#69748f}.cmp-addbar label span{display:block;margin-bottom:3px}.cmp-addbar select{width:100%;min-width:0;margin:0}.cmp-addbar .grow{min-width:0}
#cmpCompatibility{padding:10px 20px 0}.cmp-info{padding:9px 11px;border-radius:9px;font-size:10px}.cmp-info.ok{background:#e7f6ee;color:#155e42}.cmp-info.warn{background:#fff4d8;color:#6b4c00}.cmp-info.neutral{background:#eef2f7;color:#546178}
.cmp-table-wrap{flex:1;min-height:0;overflow:auto;padding:10px 20px 20px}.cmp-empty{padding:40px;text-align:center;color:#69748f;background:#fff;border:1px dashed #cbd5e1;border-radius:12px}
.cmp-table{width:max-content;min-width:100%;table-layout:auto;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #dfe6f1;border-radius:12px;overflow:hidden}
.cmp-table th,.cmp-table td{padding:9px 11px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.cmp-table thead th{position:sticky;top:0;z-index:3;background:#f2f5f9}.cmp-table th:first-child{position:sticky;left:0;z-index:2;width:150px;min-width:150px;max-width:190px;background:#f7f9fc}
.cmp-table thead th:first-child{z-index:5}.cmp-option-head{width:clamp(210px,22vw,330px);min-width:210px;max-width:330px;text-transform:none!important;letter-spacing:0!important}.cmp-option-head strong{display:block;margin-top:5px;font-size:12px;color:#172033}.cmp-option-head small{display:block;margin-top:2px;color:#69748f;font-size:9px}.cmp-option-head button{margin-top:6px;border:0;background:transparent;color:#8a3340;font-size:9px;font-weight:800;cursor:pointer;padding:0}
.cmp-source{display:inline-block;border-radius:999px;padding:3px 6px;font-size:8px;font-weight:900;text-transform:uppercase}.cmp-source.new{background:#e4f3ff;color:#176398}.cmp-source.contract{background:#e6f6ed;color:#176a47}.cmp-source.market{background:#fff1dc;color:#8b5800}.cmp-table tr.price td{background:#fbfdff}.cmp-table tr.price strong{font-size:12px;color:#17365d}.cmp-note{display:block;min-width:180px;max-width:300px;font-size:9px;color:#59657d}
body.cmp-modal-open{overflow:hidden}
.cmp-toast{position:fixed;left:50%;bottom:90px;z-index:1700;transform:translate(-50%,15px);opacity:0;background:#172033;color:#fff;padding:9px 12px;border-radius:9px;font-size:10px;transition:.18s}.cmp-toast.show{transform:translate(-50%,0);opacity:1}

/* tabelas: largura proporcional ao conteúdo, sem esticar artificialmente todas as colunas */
.market-contract-table,.market-offers-table,.sim-compare-table,#overviewTable,#contractsTable,#scheduleTable,#consumingOpsTable{width:max-content;min-width:100%;table-layout:auto}
.market-contract-table th,.market-contract-table td,.market-offers-table th,.market-offers-table td{white-space:normal}
.market-contract-table th:nth-child(1),.market-contract-table td:nth-child(1){width:92px;min-width:92px}.market-contract-table th:nth-child(2),.market-contract-table td:nth-child(2){width:120px;min-width:110px}.market-contract-table th:nth-child(3),.market-contract-table td:nth-child(3){width:180px;min-width:150px;max-width:230px}.market-contract-table th:nth-child(4),.market-contract-table td:nth-child(4){width:115px;min-width:105px}.market-contract-table th:nth-child(5),.market-contract-table td:nth-child(5){width:250px;min-width:210px;max-width:320px}.market-contract-table th:nth-child(6),.market-contract-table td:nth-child(6){width:105px}.market-contract-table th:nth-child(7),.market-contract-table td:nth-child(7),.market-contract-table th:nth-child(8),.market-contract-table td:nth-child(8){width:115px}.market-contract-table th:nth-child(9),.market-contract-table td:nth-child(9){width:95px}.market-contract-table th:nth-child(10),.market-contract-table td:nth-child(10){width:155px;max-width:210px}.market-contract-table th:nth-child(11),.market-contract-table td:nth-child(11){width:130px}
.market-offers-table th:nth-child(1){width:46px}.market-offers-table th:nth-child(2){width:170px}.market-offers-table th:nth-child(3){width:100px}.market-offers-table th:nth-child(4){width:190px}.market-offers-table th:nth-child(5){width:90px}.market-offers-table th:nth-child(6){width:280px}.market-offers-table th:nth-child(7){width:150px}

@media(max-width:900px){.workflow-prominent .workflow-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.workflow-prominent .workflow-step{min-height:86px}.workflow-emphasis-head{align-items:flex-start}.cmp-addbar{grid-template-columns:1fr 1.4fr}.cmp-addbar .btn{width:100%}.cmp-dialog{inset:2vh 2vw}.cmp-dock{grid-template-columns:1fr auto}.cmp-dock-chips{grid-column:1/-1;grid-row:2}.cmp-dock-copy{min-width:0}}
@media(max-width:560px){.navigation-shell.workflow-prominent{padding:13px;margin-top:12px}.workflow-emphasis-head{display:block}.workflow-emphasis-head>div:first-child strong{font-size:20px}.workflow-focus-capital{text-align:left;border-left:0;border-top:1px solid rgba(255,255,255,.25);padding:8px 0 0;margin-top:8px}.workflow-focus-capital strong{font-size:19px}.workflow-prominent .workflow-nav{grid-template-columns:1fr 1fr;gap:7px}.workflow-prominent .workflow-step{min-height:94px;padding:10px}.workflow-prominent .step-copy strong{font-size:14px}.workflow-prominent .step-copy small{font-size:9px}.workflow-prominent .step-number{width:31px;height:31px;flex-basis:31px}.cmp-dialog{inset:0;border-radius:0}.cmp-dialog-head{padding:13px}.cmp-addbar{grid-template-columns:1fr;padding:10px 13px}.cmp-table-wrap{padding:8px 10px 14px}.cmp-dock{bottom:8px;width:calc(100vw - 16px);padding:9px}.cmp-dock-copy strong{font-size:10px}.cmp-open{padding:8px 9px;font-size:10px}.cmp-chip{max-width:170px}}
