/* Compact source-backed worksheet; no calculation or approval rules live in CSS. */
.estimate-workspace{min-width:0;color:var(--ui-text);--ew-item:88px;--ew-description:270px}.estimate-workspace [hidden]{display:none!important}.ew-dock{position:sticky;top:0;z-index:15;background:var(--ui-canvas);padding:5px 0 0}.ew-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 7px}.ew-heading h2{font-size:16px;display:flex;align-items:center;gap:8px}.ew-heading p{font-size:10px;color:var(--ui-muted);margin-top:2px}.ew-context{display:none}.bids-hub .ew-heading button{min-height:29px;font-size:11px;padding:5px 9px;border-radius:5px}.ew-summary{display:flex;align-items:center;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:5px;box-shadow:0 2px 4px #00000006;margin-bottom:6px;min-height:42px}.ew-summary>div{display:flex;align-items:baseline;gap:10px;padding:9px 14px;border-right:1px solid var(--ui-border);flex:1;white-space:nowrap}.ew-summary span{font-size:10px;color:var(--ui-muted)}.ew-summary strong{font-size:15px;letter-spacing:-.2px;font-variant-numeric:tabular-nums}.ew-summary strong .ew-unavailable{font-size:15px}.ew-summary>small{font-size:10px;padding:8px 12px;color:var(--ui-muted);max-width:170px}.ew-incomplete,.ew-policy{font-size:11px;margin:5px 0 7px;color:var(--ui-muted);border-left:2px solid #bf943f;padding:4px 9px;background:var(--ui-soft)}.ew-policy{border-left-color:var(--ui-primary)}.ew-incomplete summary,.ew-policy summary{cursor:pointer;line-height:1.5}.ew-incomplete strong{font-weight:550;color:var(--ui-text)}.ew-incomplete ul{max-height:150px;overflow:auto;margin:7px 0}.ew-incomplete p,.ew-policy p{margin:7px 0;line-height:1.6}.ew-views{display:flex;gap:4px;align-items:center;border-bottom:1px solid var(--ui-border);margin-bottom:6px;flex-wrap:wrap}.bids-hub .ew-views button{background:transparent;border:0;border-radius:0;min-height:33px;font-size:11px;padding:7px 9px;color:var(--ui-muted)}.bids-hub .ew-views button[aria-selected=true]{color:var(--ui-primary);box-shadow:inset 0 -2px var(--ui-primary)}.ew-view-actions{display:flex;gap:15px;margin-left:auto;font-size:11px}.bids-hub .ew-view-actions a{color:var(--ui-primary);padding:4px 0;font-weight:500}.ew-grid-tools{display:flex;gap:12px;align-items:center;color:var(--ui-muted);font-size:10px;margin:6px 0}.ew-grid-tools>label:last-child{margin-left:auto}.bids-hub .ew-grid-tools select{font-size:11px;min-height:27px;padding:3px 6px}.ew-grid{max-height:66vh;min-height:245px;overflow:auto;border:1px solid var(--ui-border);border-radius:4px;scrollbar-width:thin;background:var(--ui-surface)}.ew-grid table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1280px;font-size:12px;line-height:1.35}.ew-grid th,.ew-grid td{padding:4px 6px;border-bottom:1px solid var(--ui-border);border-right:1px solid var(--ui-border);vertical-align:middle;text-align:left;font-size:12px;height:34px}.ew-grid thead th{position:sticky;top:0;z-index:4;background:var(--ui-soft);height:31px;font-size:10px;text-transform:uppercase;letter-spacing:.25px;font-weight:600}.ew-grid thead th:first-child,.ew-grid tr:not(.ew-group):not(.ew-subtotal)>th:first-child{position:sticky;left:0;z-index:3;background:var(--ui-surface);width:var(--ew-item);min-width:var(--ew-item);max-width:var(--ew-item);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ew-grid th:nth-child(2),.ew-grid .ew-description{width:var(--ew-description);min-width:var(--ew-description);max-width:var(--ew-description);position:sticky;left:var(--ew-item);z-index:2;background:var(--ui-surface)}.ew-grid table thead tr:not(.ew-group):not(.ew-subtotal)>th:first-child{z-index:7;background:var(--ui-soft)}.ew-grid table thead th:nth-child(2){z-index:6;background:var(--ui-soft)}.ew-grid th:nth-child(3){width:84px}.ew-grid th:nth-child(4){width:44px}.ew-grid th:nth-child(9){width:145px}.ew-grid .ew-group th{background:var(--ui-soft);font-size:10px;font-weight:600;height:25px;padding:4px 7px}.ew-group small{margin-left:8px;color:var(--ui-muted);font-size:9px;font-weight:400}.ew-line-title{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}.ew-line-title>strong{font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ew-status{display:inline;font-size:9px;font-weight:500;color:var(--ui-warning);white-space:nowrap}.ew-status.is-verified{color:var(--ui-primary)}.ew-row-details{font-size:10px;color:var(--ui-muted)}.ew-row-details summary{cursor:pointer;white-space:nowrap;font-size:10px}.ew-row-details[open]{grid-column:1/-1}.ew-row-details[open] summary{color:var(--ui-primary)}.ew-row-detail-body{padding:8px 0;font-size:11px;line-height:1.6}.ew-row-detail-body p{margin:6px 0;max-height:140px;overflow:auto;white-space:normal}.ew-row-detail-body label{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:6px 0}.ew-row-detail-body a{font-size:11px}.bids-hub .ew-grid input{width:100%;max-width:82px;min-width:35px;min-height:25px;height:25px;margin:0;padding:2px 5px;border:1px solid var(--ui-border);border-radius:3px;font-size:12px;line-height:1.3;text-align:right;font-variant-numeric:tabular-nums;background:var(--ui-surface);color:var(--ui-text)}.bids-hub .ew-grid input[readonly]{border-color:transparent;background:transparent}.bids-hub .ew-grid input.ew-dirty,.bids-hub .ew-settings input.ew-dirty{border-color:var(--ui-primary);background:var(--ui-soft)}.ew-grid .ew-quantity{text-align:right}.ew-quantity a.ew-quantity-value{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.ew-grid .ew-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.ew-accessory-inputs{display:flex;gap:5px}.ew-rate-label{display:flex;align-items:center;gap:3px;color:var(--ui-muted);font-size:9px}.bids-hub .ew-accessory-inputs input{width:50px;max-width:50px}.ew-missing{color:var(--ui-muted)}.ew-grid .ew-subtotal{background:var(--ui-soft);font-weight:600}.ew-grid .ew-subtotal th{text-align:right;height:25px;font-size:10px}.ew-grid .ew-subtotal td{text-align:right;height:25px;font-size:11px;font-variant-numeric:tabular-nums}.ew-settings{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:8px 0;font-size:10px;color:var(--ui-muted)}.ew-settings label{display:flex;align-items:center;gap:6px;font-size:10px}.bids-hub .ew-settings input{width:62px;min-height:26px;height:26px;padding:3px 5px;font-size:11px;text-align:right}.ew-edit-bar{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--ui-border)}.ew-edit-bar>span{flex:1;font-size:10px;color:var(--ui-muted);line-height:1.5}.bids-hub .ew-edit-bar button{min-height:30px;padding:5px 9px;font-size:11px}.ew-error{font-size:12px;color:var(--ui-danger);border-left:2px solid var(--ui-danger);padding:8px;background:var(--ui-soft)}.ew-impact,.ew-approval{padding:14px 0;border-top:1px solid var(--ui-border);margin-top:10px}.ew-impact h3,.ew-approval h3{font-size:14px;margin-bottom:9px}.ew-impact table,.ew-approval table{border-collapse:collapse;width:min(100%,700px);font-size:12px;font-variant-numeric:tabular-nums}.ew-impact th,.ew-impact td,.ew-approval th,.ew-approval td{padding:6px;border-bottom:1px solid var(--ui-border);text-align:right}.ew-impact th:first-child,.ew-approval th:first-child{text-align:left}.ew-impact p,.ew-approval p{font-size:11px;line-height:1.6;color:var(--ui-muted);margin:9px 0}.ew-approval p strong{color:var(--ui-text)}.ew-approval button{margin:8px}.ew-workbook{width:100%;height:76vh;min-height:430px;border:1px solid var(--ui-border);border-radius:4px;background:var(--ui-surface)}.ew-history{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.ew-history a{padding:9px 12px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:4px}.ew-history span{display:block;color:var(--ui-muted);font-size:10px;margin-top:3px}.ew-note{font-size:11px;color:var(--ui-muted);padding:6px 0}
.bid-workspace:has(.estimate-workspace) .bids-heading h1{font-size:21px}.bid-workspace:has(.estimate-workspace) .bids-heading{margin-bottom:10px}.bid-workspace:has(.estimate-workspace) .bids-heading p{font-size:11px;margin-top:4px}.bid-workspace:has(.estimate-workspace) .bids-breadcrumb{margin-bottom:10px}.bid-workspace:has(.estimate-workspace) .bids-tabs{margin-bottom:10px}.bid-workspace:has(.estimate-workspace) .bids-tabs a{padding:9px 0}
/* Focus mode retains the bid tabs and existing construction navigation. */
body:has(.ew-expanded) .topbar,body:has(.ew-expanded) .bid-workspace>.bids-breadcrumb,body:has(.ew-expanded) .bid-workspace>.bids-heading,body:has(.ew-expanded) .legal-note{display:none}body:has(.ew-expanded) .workspace-body>main{padding:10px 12px}.bid-workspace:has(.ew-expanded) .bids-tabs{margin-bottom:4px}.ew-expanded .ew-context{display:block;color:var(--ui-primary);font-size:10px;max-width:280px}.ew-context span{display:block;font-size:10px;color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ew-expanded .ew-heading>div:first-of-type{flex:1}.ew-expanded .ew-grid{height:calc(100dvh - 290px);max-height:none;min-height:240px}.ew-expanded .ew-workbook{height:calc(100dvh - 215px)}
@media(max-width:1100px){.ew-summary>div{gap:5px;padding:8px}.ew-summary>small{display:none}.ew-summary span{font-size:9px}.ew-summary strong{font-size:14px}.ew-grid-tools>span{display:none}.ew-heading{flex-wrap:wrap}}
@media(max-width:800px){.estimate-workspace{--ew-item:76px;--ew-description:240px}.ew-heading h2{font-size:15px}.ew-heading .bids-actions{gap:5px}.ew-heading p{font-size:10px}.ew-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:47px}.ew-summary>div{display:block;padding:5px 7px}.ew-summary span{display:block;font-size:9px}.ew-summary strong{font-size:13px}.ew-summary strong .ew-unavailable{font-size:13px}.ew-dock{padding-top:4px}.ew-views{gap:0}.bids-hub .ew-views button{font-size:10px;padding:7px 6px}.ew-view-actions{width:100%;margin:2px 0 5px;gap:14px;font-size:10px}.ew-grid{max-height:62vh;min-height:250px}.ew-grid .ew-description,.ew-grid table thead th:nth-child(2){position:static}.ew-grid .ew-description{max-width:240px}.ew-settings{gap:9px}.ew-edit-bar{flex-wrap:wrap;padding-bottom:48px}.ew-edit-bar>span{flex-basis:100%}.ew-approval button{margin-left:0}.ew-impact table{font-size:11px}.ew-incomplete,.ew-policy{font-size:10px}.ew-expanded .ew-context{max-width:none;width:100%;line-height:1.4}.ew-expanded .ew-context span{display:inline;margin-left:8px}.ew-expanded .ew-heading{gap:4px}.ew-expanded .ew-heading p{display:none}.ew-expanded .ew-grid{height:calc(100dvh - 265px);min-height:240px}.ew-expanded .ew-workbook{height:calc(100dvh - 230px)}body:has(.ew-expanded) .sidebar{display:none}body:has(.ew-expanded) .workspace-body>main{padding:6px 8px}.bid-workspace:has(.ew-expanded) .bids-tabs{gap:15px}.bid-workspace:has(.estimate-workspace) .bids-heading h1{font-size:18px}}
.ew-grid .ew-rate-label{margin:0;flex-direction:row;min-height:0;line-height:1;font-weight:400}.ew-accessory-inputs{align-items:center}
@media(max-width:800px){.bids-hub .ew-grid input{font-size:16px;height:30px;min-height:30px}}

/* The sticky Ask Command control provides one-click access without covering cells. */
body:has([data-estimate-workspace]) #ui-ai-launcher{display:none}

.ew-grid input[aria-invalid=true],.ew-settings input[aria-invalid=true]{outline:2px solid #b54343;background:var(--ui-soft)}.ew-status{max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ew-edit-bar [data-ew-save]{white-space:nowrap}

.ew-edit-bar{padding:5px 0;margin:0 0 5px}.ew-edit-bar>span{font-size:11px}.ew-expanded .ew-grid{height:calc(100dvh - 430px)}@media(max-width:800px){.ew-edit-bar{padding:5px 0}.ew-edit-bar>span{font-size:10px}.ew-expanded .ew-grid{height:calc(100dvh - 380px)}}
