/* ObraGestão 8.6.3.38 — HOTFIX layout Orçamentos */
.budget-page-8637{display:flex;flex-direction:column;gap:14px}
.budget-page-head{align-items:center;margin-bottom:0}
.budget-head-actions{display:flex;gap:10px;align-items:center}
.budget-tabs{display:flex;gap:4px;border-bottom:1px solid #d8e3f1;padding-left:0}
.budget-tab{min-width:174px;border:1px solid #d8e3f1;border-bottom:0;background:#edf3fb;color:#17345d;padding:13px 20px;border-radius:10px 10px 0 0;font:700 14px/1 Manrope,system-ui;cursor:pointer}
.budget-tab.active{background:#fff;color:#0d62df;border-color:#0d62df;box-shadow:inset 0 2px 0 #0d62df}
.budget-list-panel{padding:0;overflow:hidden}
.budget-filter-grid{display:grid;grid-template-columns:minmax(300px,2fr) minmax(170px,.75fr) minmax(180px,.85fr) minmax(145px,.65fr);gap:10px;padding:14px;border-bottom:1px solid #e2eaf4;align-items:center}
.budget-filter-grid select,.budget-filter-grid input{height:44px;border:1px solid #cfdced;border-radius:9px;background:#fff;padding:0 13px;color:#1e385d;font:500 13px/1.2 Manrope,system-ui}
.budget-ai-link{white-space:nowrap;border-color:#d3e0f1;background:#f8fbff;color:#0d4b9a}
.budget-main-table{min-width:1120px}
.budget-main-table th{font-size:12px;color:#39506f;background:#fbfdff;white-space:nowrap}
.budget-main-table td{vertical-align:middle}
.budget-category-pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:#eef3ff;color:#315d9a;font-size:12px;font-weight:700}
.budget-status-chip{display:inline-flex;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.budget-status-chip.open{background:#e8f2ff;color:#1165d9}.budget-status-chip.contracted{background:#def7e7;color:#128443}.budget-status-chip.rejected{background:#ffe7e6;color:#b8342f}
.budget-row-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}
.budget-row-actions .btn{height:34px;padding:0 11px;font-size:12px}
.budget-compare-btn{border:1px solid #acd0ff;background:#f6faff;color:#0d62df}.budget-compare-btn.selected{background:#e6f1ff}
.budget-formalize-btn{border:0;background:#078c45;color:#fff}.budget-formalize-btn:hover{background:#06793c}
.budget-compare-card{background:#fff;border:1px solid #d7e2ef;border-radius:14px;padding:18px;box-shadow:0 2px 8px rgba(23,49,85,.04);scroll-margin-top:90px}
.budget-compare-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}.budget-compare-head h3{margin:0;color:#0b2e61;font-size:20px}.budget-compare-head p{margin:4px 0 0;color:#6f819b;font-size:13px}
.budget-compare-tools{display:flex;gap:14px;align-items:flex-end}.budget-compare-tools label{display:grid;gap:4px;color:#71829a;font-size:11px}.budget-compare-tools select{min-width:200px;height:40px;border:1px solid #cfdced;border-radius:8px;padding:0 10px;background:#fff;color:#18365f}
.budget-compare-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(300px,1fr);gap:14px}.budget-compare-table-wrap{border:1px solid #dbe5f0;border-radius:10px;overflow:auto}
.budget-compare-table{width:100%;border-collapse:collapse;min-width:760px}.budget-compare-table th,.budget-compare-table td{padding:9px 12px;border-right:1px solid #e2e9f2;border-bottom:1px solid #e2e9f2;text-align:left;font-size:12px}.budget-compare-table thead th{background:#f9fbfe;color:#163760;font-size:13px}.budget-compare-table tbody th{background:#fbfdff;color:#34506f;font-weight:700;width:190px}.budget-compare-table .best-col{background:#f2fbf5}.budget-compare-table .best-cell{background:#ebf9ef;color:#0d7c38}.compare-good{background:#daf5df;color:#147738;padding:3px 8px;border-radius:6px;font-weight:700}.supplier-cost-rating{font-weight:700;color:#735a16}.proposal-rating{display:inline-flex;padding:4px 10px;border-radius:8px;background:#fff1dc;color:#a86100;font-weight:700}.proposal-rating.best{background:#daf6e4;color:#117a3a}
.budget-compare-insights{display:flex;flex-direction:column;gap:10px;position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;width:auto!important;min-width:0!important;height:auto!important;transform:none!important;visibility:visible!important;z-index:auto!important;padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}.best-proposal-card{display:flex;gap:12px;border:1px solid #b9e8c8;background:linear-gradient(135deg,#f3fff6,#eaf9ee);padding:14px;border-radius:10px;color:#1d5f35}.best-proposal-card .best-trophy{width:38px;height:38px;display:grid;place-items:center;background:#0d8a43;color:#fff;border-radius:50%;font-size:20px}.best-proposal-card b{display:block;color:#147b3c;font-size:14px}.best-proposal-card strong{display:block;color:#173c2a;margin:3px 0}.best-proposal-card p{margin:0;font-size:12px;line-height:1.4;color:#51725f}
.budget-insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.budget-insight{border:1px solid #dfe7f1;border-radius:9px;padding:10px;background:#fff;min-height:74px}.budget-insight small{display:block;color:#708198;font-size:10px}.budget-insight b{display:block;color:#083b7a;margin:3px 0;font-size:13px}.budget-insight span{font-size:11px;color:#4d607a}.budget-formalize-best{height:44px;border:0;background:#073d86;color:#fff;font-weight:800}.budget-formalize-best:hover{background:#062f68}.budget-compare-empty{padding:26px;text-align:center;color:#71829b;background:#f8fbff;border-radius:10px}.budget-compare-selector{display:grid;gap:8px}.budget-compare-selector>label{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid #dae5f1;border-radius:9px}.budget-compare-selector label span{display:grid}.budget-compare-selector small{color:#73849b}.budget-reject-note{border:1px solid #ffd1cd;background:#fff7f6;padding:12px;border-radius:9px;margin-top:12px}.budget-reject-note p{margin:5px 0 0;color:#80514d}
.budget-extra-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.og-receipt-field{margin-top:4px}.og-receipt-shell{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:10px;border:1px solid #d5e1ef;background:#f9fbfe;border-radius:10px;padding:10px}.og-receipt-current{display:flex;align-items:center;gap:10px;min-height:58px}.og-receipt-current>div:nth-child(2){display:grid;min-width:0}.og-receipt-current b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#18375f}.og-receipt-current small{color:#71819a}.og-receipt-icon{width:38px;height:38px;border-radius:9px;background:#e9f2ff;color:#0d62df;display:grid;place-items:center;font-size:19px}.og-receipt-actions{margin-left:auto;display:flex;gap:6px}.og-receipt-picker{border:1px dashed #9abce6;border-radius:9px;background:#fff;color:#0b4c9b;display:grid;place-items:center;align-content:center;cursor:pointer;font-family:Manrope,system-ui}.og-receipt-picker small{color:#7890ad;margin-top:2px}.contract-detail .receipt-mini{display:inline-flex;gap:4px}
@media(max-width:1050px){.budget-filter-grid{grid-template-columns:1fr 1fr}.budget-filter-grid .searchbox{grid-column:1/-1}.budget-compare-layout{grid-template-columns:1fr}.budget-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.budget-head-actions{flex-wrap:wrap}.budget-tabs{overflow:auto}.budget-tab{min-width:150px}}
@media(max-width:700px){.budget-filter-grid{grid-template-columns:1fr}.budget-filter-grid .searchbox{grid-column:auto}.budget-compare-head{flex-direction:column}.budget-compare-tools{width:100%;flex-wrap:wrap}.budget-compare-tools select{min-width:0;width:100%}.budget-insight-grid{grid-template-columns:1fr}.budget-extra-grid{grid-template-columns:1fr!important}.og-receipt-shell{grid-template-columns:1fr}.budget-tab{min-width:135px;padding:11px 12px}.budget-page-head{align-items:flex-start}.budget-head-actions{width:100%}.budget-head-actions .btn{flex:1}}


/* 8.6.3.38 — isolamento defensivo do comparativo */
.budget-page-8637,.budget-list-panel,.budget-compare-card,.budget-compare-layout{min-width:0}
.budget-compare-card{position:relative;isolation:isolate;overflow:visible}
.budget-compare-layout>.budget-compare-table-wrap,.budget-compare-layout>.budget-compare-insights{min-width:0}
.budget-list-panel>.table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden}
@media(max-width:1180px){.budget-compare-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.42fr)}}
@media(max-width:1020px){.budget-compare-layout{grid-template-columns:1fr}.budget-compare-insights{width:100%!important}.budget-insight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.budget-insight-grid{grid-template-columns:1fr}.budget-compare-table-wrap{max-width:100%;overflow-x:auto}.budget-compare-table{min-width:760px}}
