.es-stage-service{margin:0;padding:16px;border:1px solid #cfe0c4;border-radius:10px;background:#fbfdf9;min-width:0}.es-stage-service legend{padding:0 6px;color:#4e6d44;font-size:12px;font-weight:800}.es-stage-service>p{margin:1px 0 14px;color:var(--muted);font-size:11px;line-height:1.65}.es-toggle{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}.es-toggle input{width:17px!important;height:17px;min-height:17px!important;margin:1px 0 0!important;accent-color:#648f4e;flex:none}.es-toggle span{display:grid;gap:3px;min-width:0}.es-toggle b{font-size:12px}.es-toggle small{font-size:10px;color:var(--muted);line-height:1.45}.es-stage-template{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}.es-stage-template[hidden]{display:none!important}.es-stage-empty{padding:14px;border:1px dashed #c6d8ba;border-radius:8px;background:#fff;font-size:11px;line-height:1.55}.es-stage-empty b{display:block;color:#557447}.es-stage-empty p{margin:5px 0 10px;color:var(--muted)}.es-stage-placeholders{padding:12px;border-radius:8px;background:#eff5eb;border:1px solid #d9e7d1;font-size:10px;color:#566752;line-height:1.6}.es-stage-placeholders b{display:block;font-size:11px;color:#48613d;margin-bottom:7px}.es-stage-placeholders div{display:flex;flex-wrap:wrap;gap:5px}.es-stage-placeholders code{padding:2px 5px;border-radius:4px;background:#fff;color:#536c48;overflow-wrap:anywhere}.es-stage-placeholders small{display:block;margin-top:7px}.es-stage-warning{margin-top:10px;padding:9px 10px;border-left:3px solid #c48a44;border-radius:0 6px 6px 0;background:#fff8ed;color:#895e2b;font-size:10px;line-height:1.55}.es-stage-library-link{margin-top:10px}.es-template-loading{display:block;margin-top:10px;color:var(--muted);font-size:10px}.es-panel{margin-top:18px}.es-panel .panel-head{align-items:flex-start}.es-panel .eyebrow{display:block;margin-bottom:5px}.es-panel h2{margin-top:0}.es-lede{margin:0 0 18px;max-width:720px;color:var(--muted);font-size:12px;line-height:1.7}.es-table{min-width:710px}.es-table th{white-space:nowrap}.es-table td{vertical-align:middle}.es-table input{width:100%;min-width:80px;padding:8px 9px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit;font-size:11px;color:var(--ink)}.es-table td:first-child{min-width:210px}.es-table td:nth-child(2){width:92px}.es-table td:nth-child(3){width:86px}.es-table td:nth-child(4){width:135px}.es-table td:nth-child(5){min-width:118px;text-align:right;font-weight:700;white-space:nowrap}.es-table td:last-child{width:40px}.es-remove-line{width:29px;height:29px;padding:5px;color:#a2605a}.es-remove-line svg{width:15px;height:15px}.es-line-actions{margin:11px 0 18px}.es-totals{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfcfa}.es-totals>label{display:grid;gap:6px;min-width:150px;font-size:11px;font-weight:700}.es-totals select{padding:9px;border:1px solid var(--line);border-radius:7px;background:white;font:inherit;font-size:11px}.es-totals dl{display:grid;grid-template-columns:repeat(3,minmax(115px,1fr));gap:14px;margin:0}.es-totals dl>div{display:grid;gap:4px;text-align:right}.es-totals dt{color:var(--muted);font-size:10px}.es-totals dd{margin:0;font-size:13px;font-weight:700;white-space:nowrap}.es-totals .total dd{font-size:17px;color:#46643c}.es-policy-note,.es-saved-note{margin:13px 0 0;color:var(--muted);font-size:10px;line-height:1.55}.es-policy-note{padding:9px 10px;border-radius:6px;background:#f4f6f2}.es-saved-note{color:#5d7752}.es-loading{padding:24px;text-align:center;color:var(--muted);font-size:12px}.es-overview{margin-top:18px}.es-overview .panel-head{align-items:flex-start}.es-overview-total{display:grid;gap:4px}.es-overview-total span,.es-overview-total small{font-size:11px;color:var(--muted)}.es-overview-total b{font-size:22px;color:#46643c}@media(max-width:720px){.es-panel .panel-head{flex-direction:column;gap:12px}.es-panel .panel-head>.row{width:100%}.es-panel .panel-head .btn{flex:1;justify-content:center}.es-totals{align-items:stretch;flex-direction:column;gap:14px}.es-totals>label{min-width:0}.es-totals dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.es-totals dd{font-size:11px}.es-totals .total dd{font-size:14px}}@media(max-width:480px){.es-stage-service{padding:13px}.es-stage-placeholders{padding:10px}.es-totals dl{grid-template-columns:1fr}.es-totals dl>div{text-align:left;display:flex;justify-content:space-between;align-items:baseline}.es-totals .total{padding-top:8px;border-top:1px solid var(--line)}}

/* Grouped Estimate and Budget. The compact group headers keep a long tender
   calculation skimmable while individual rows remain familiar spreadsheet UI. */
.bs-stage-service{margin:0;padding:16px;border:1px solid #bfd8dd;border-radius:10px;background:#f8fcfc;min-width:0}.bs-stage-service legend{padding:0 6px;color:#396a73;font-size:12px;font-weight:800}.bs-stage-service>p{margin:1px 0 14px;color:var(--muted);font-size:11px;line-height:1.65}.bs-toggle input{accent-color:#4d858d!important}.bs-stage-placement{margin-top:10px}.bs-stage-placement[hidden]{display:none!important}.bs-stage-note,.bs-stage-warning{padding:10px 11px;border-radius:7px;font-size:10px;line-height:1.55}.bs-stage-note{border:1px solid #d7e8ea;background:#eff8f8;color:#4a6e74}.bs-stage-warning{border-left:3px solid #c48a44;background:#fff8ed;color:#895e2b}.bs-stage-warning b{display:block;margin-bottom:2px}.es-groups,.bs-groups{display:grid;gap:13px}.es-groups-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px;padding:12px 13px;border:1px solid #dce8d6;border-radius:8px;background:#f8fbf6}.es-groups-toolbar>div{display:grid;gap:3px}.es-groups-toolbar b{font-size:12px;color:#48613d}.es-groups-toolbar small{color:var(--muted);font-size:10px;line-height:1.45}.es-group,.bs-group{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.es-group-head,.bs-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line);background:#fbfcfb}.es-group-title,.bs-group-title{display:grid;gap:4px;min-width:0;flex:1}.es-group-title span,.bs-group-title span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.es-group-title input,.bs-group-title input{width:100%;min-width:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--ink);font:700 12px/1.3 inherit}.es-group-title input:focus,.bs-group-title input:focus{outline:0;border-bottom:1px solid #78996a}.bs-group-title input:focus{border-bottom-color:#5f9299}.es-group-title input:disabled,.bs-group-title input:disabled{cursor:default;color:var(--ink);opacity:1}.es-group-actions,.bs-group-actions{display:flex;align-items:center;gap:7px;flex:none}.es-group-actions output,.bs-group-actions output{padding:4px 6px;border-radius:5px;background:#eff5eb;color:#557447;font-size:10px;font-weight:800;white-space:nowrap}.bs-group-actions output{background:#eaf4f5;color:#456f76}.es-remove-group,.bs-remove-group{width:29px;height:29px;padding:5px;color:#a2605a}.es-remove-group svg,.bs-remove-group svg{width:15px;height:15px}.es-group .es-table-wrap,.bs-group .bs-table-wrap{border:0;border-radius:0}.es-group .es-table{margin:0}.bs-panel{margin-top:18px}.bs-panel .panel-head{align-items:flex-start}.bs-panel h2{margin-top:0}.bs-panel .eyebrow{display:block;margin-bottom:5px}.bs-panel .panel-head>div>small{display:block;max-width:690px;line-height:1.55}.bs-mode{align-self:flex-start;padding:5px 7px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}.bs-mode.linked{background:#edf5e7;color:#557548}.bs-mode.standalone{background:#eaf4f5;color:#466f76}.bs-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}.bs-stat{display:grid;gap:4px;padding:12px;border:1px solid #dae7e8;border-radius:8px;background:#fbfdfd}.bs-stat span{color:var(--muted);font-size:9px}.bs-stat b{color:#426b72;font-size:17px;white-space:nowrap}.bs-stat[data-bs-stat="income"] b{color:#4e7140}.bs-stat[data-bs-stat="profit"] b{color:#456b48}.bs-stat.negative b{color:#a1625b}.bs-section{display:grid;gap:12px;margin-top:20px}.bs-section+.bs-section{padding-top:20px;border-top:1px solid var(--line)}.bs-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.bs-section-head>div{display:grid;gap:4px}.bs-section h3{margin:0;font-size:14px}.bs-section p{margin:0;max-width:650px;color:var(--muted);font-size:10px;line-height:1.5}.bs-derived-notice{padding:10px 11px;border-left:3px solid #719a56;border-radius:0 7px 7px 0;background:#f1f7ed;color:#557548;font-size:10px;line-height:1.55}.bs-table{min-width:500px;width:100%;border-collapse:collapse}.bs-table th,.bs-table td{padding:9px 10px;border-bottom:1px solid #eef2f2;text-align:left;font-size:11px}.bs-table thead th{background:#fafcfc;color:#667479;font-size:9px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.bs-table tbody tr:last-child td{border-bottom:0}.bs-table input{width:100%;min-width:100px;padding:8px 9px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:11px}.bs-table input:disabled{border-color:transparent;background:transparent;color:var(--ink);opacity:1;padding-left:0}.bs-table td:first-child{min-width:245px}.bs-table td:nth-child(2){width:150px}.bs-table td:nth-child(3){min-width:120px;text-align:right;font-weight:700;white-space:nowrap}.bs-table td:last-child{width:38px}.bs-line-total{color:#466f76}.bs-overview{margin-top:18px}.bs-overview .panel-head{align-items:flex-start}.bs-overview-totals{display:grid;gap:4px}.bs-overview-totals span,.bs-overview-totals small{font-size:11px;color:var(--muted)}.bs-overview-totals b{font-size:22px;color:#456b48}

@media(max-width:860px){.bs-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.es-groups-toolbar,.es-group-head,.bs-group-head,.bs-section-head,.bs-panel .panel-head{flex-direction:column;align-items:stretch}.es-groups-toolbar .btn,.bs-section-head .btn,.es-group-actions .btn,.bs-group-actions .btn{justify-content:center}.es-group-actions,.bs-group-actions{justify-content:space-between}.bs-panel .panel-head>.row{width:100%}.bs-panel .panel-head .btn{flex:1;justify-content:center}}@media(max-width:480px){.bs-stage-service{padding:13px}.es-groups-toolbar,.es-group-head,.bs-group-head{padding:10px}.bs-stat-grid{grid-template-columns:1fr}.bs-stat b{font-size:16px}.bs-mode{white-space:normal;text-align:center}.bs-section{margin-top:16px}.bs-table{min-width:460px}}
