.work-costs{gap:var(--bb-space-4);margin-bottom:var(--bb-space-5);min-width:0;display:grid}.work-cost-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.work-cost-summary article{background:var(--bb-surface);border:1px solid var(--bb-border);border-top:3px solid var(--bb-blue);border-radius:var(--bb-radius-md);min-width:0;padding:14px}.work-cost-summary small,.work-cost-summary span{color:var(--bb-muted);font-size:12px;line-height:1.5;display:block}.work-cost-summary strong{color:var(--bb-navy);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:8px 0;font-size:clamp(18px,1.7vw,25px);line-height:1.3;display:block}.work-cost-summary .is-positive{border-top-color:var(--bb-success-chart)}.work-cost-summary .is-negative{border-top-color:var(--bb-danger)}.work-cost-summary .is-warning{border-top-color:var(--bb-orange);background:var(--bb-warning-surface)}.work-costs .is-positive strong,.work-costs b.is-positive{color:var(--bb-success)}.work-costs .is-negative strong,.work-costs b.is-negative{color:var(--bb-danger)}.work-costs .is-warning strong{color:var(--bb-orange-text)}.work-cost-quick{z-index:4;border:1px solid var(--bb-border);border-top:3px solid var(--bb-orange);border-radius:var(--bb-radius-md);background:var(--bb-surface);box-shadow:var(--bb-shadow);padding:14px;position:sticky;top:88px}.sheet .work-cost-quick{top:0}.work-cost-quick-heading,.work-cost-paste header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.work-cost-quick-heading>b{color:var(--bb-navy);font-size:15px}.work-cost-paste-button,.work-cost-paste header button{color:var(--bb-blue);background:0 0;border:0;align-items:center;gap:6px;min-height:40px;padding:5px 8px;font-size:12px;display:inline-flex}.work-cost-paste-button svg{width:16px}.work-cost-chips{flex-wrap:wrap;gap:7px;margin-bottom:10px;display:flex}.work-cost-chips button{border:1px solid var(--bb-border);border-left:3px solid var(--category-color);background:var(--bb-surface);color:var(--bb-text);border-radius:var(--bb-radius-sm);min-height:44px;padding:8px 12px;font-size:13px;font-weight:700}.work-cost-chips button.selected{background:var(--bb-navy);color:var(--bb-surface);border-color:var(--bb-navy);border-left-color:var(--category-color)}.category-subcontractor{--category-color:var(--bb-purple)}.category-material{--category-color:var(--bb-blue)}.category-labor{--category-color:var(--bb-navy)}.category-equipment{--category-color:var(--bb-orange-text)}.category-other{--category-color:var(--bb-muted)}.work-cost-quick-fields{grid-template-columns:minmax(0,1fr) 165px auto;align-items:end;gap:10px;display:grid}.work-costs label{color:var(--bb-muted);gap:5px;font-size:12px;display:grid}.work-costs input,.work-costs select,.work-costs textarea{border:1px solid var(--bb-input-border);border-radius:var(--bb-radius-sm);width:100%;min-width:0;min-height:44px;color:var(--bb-text);background:var(--bb-surface);padding:10px;font-size:14px}.work-cost-quick-fields input{font-size:16px}.work-cost-input-note,.work-cost-filter-note{color:var(--bb-muted);margin:7px 0 0;font-size:12px}.work-cost-error,.work-cost-undo{border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px;font-size:13px;display:flex}.work-cost-error{background:var(--bb-danger-surface);color:var(--bb-danger);border-color:var(--bb-danger)}.work-cost-undo{background:var(--bb-surface-alt);color:var(--bb-navy)}.work-cost-undo button,.work-cost-error button,.work-costs .empty button{border:1px solid var(--bb-border);border-radius:var(--bb-radius-sm);background:var(--bb-surface);min-height:44px;color:var(--bb-blue);justify-content:center;align-items:center;gap:7px;padding:8px 12px;font-size:13px;font-weight:700;display:inline-flex}.work-cost-undo svg{width:16px}.work-cost-notice{color:var(--bb-success);margin:0;font-size:13px}.work-cost-paste{border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);background:var(--bb-surface-alt);gap:12px;padding:16px;display:grid}.work-cost-paste p{color:var(--bb-muted);margin:0;font-size:13px}.work-cost-paste textarea{resize:vertical;min-height:130px}.work-cost-paste ol{max-height:200px;margin:0;font-size:13px;overflow:auto}.work-cost-paste p[role=alert]{color:var(--bb-danger)}.work-cost-filters{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.work-cost-filters>label{flex:1;min-width:120px}.work-cost-filters .work-cost-search{border:1px solid var(--bb-input-border);border-radius:var(--bb-radius-sm);flex:2;align-items:center;gap:7px;min-width:210px;padding:0 10px;display:flex}.work-cost-search svg{flex:none;width:17px}.work-cost-search input{border:0;padding-inline:0}.work-cost-group{border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);background:var(--bb-surface);min-width:0}.work-cost-group>summary{background:var(--bb-surface-alt);border-radius:var(--bb-radius-md);cursor:pointer;color:var(--bb-muted);align-items:center;gap:12px;padding:12px 14px;font-size:12px;list-style:none;display:flex}.work-cost-group>summary:before{content:"▸";color:var(--bb-navy)}.work-cost-group[open]>summary:before{content:"▾"}.work-cost-group>summary>b{color:var(--bb-navy);white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto;font-size:15px}.work-cost-category{color:var(--category-color);border:1px solid var(--bb-border);border-left:3px solid var(--category-color);border-radius:var(--bb-radius-sm);background:var(--bb-surface);padding:4px 8px;font-size:13px;font-weight:750}.work-cost-budget{color:var(--bb-muted);border-bottom:1px solid var(--bb-border);flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 14px;font-size:12px;display:flex}.work-cost-budget small{flex-basis:100%;font-size:12px}.work-cost-budget progress{border-radius:var(--bb-radius-sm);width:130px;height:8px;accent-color:var(--bb-blue);border:0;overflow:hidden}.work-cost-budget progress::-webkit-progress-bar{background:var(--bb-border)}.work-cost-budget progress::-webkit-progress-value{background:var(--bb-blue)}.work-cost-budget progress::-moz-progress-bar{background:var(--bb-blue)}.work-cost-budget progress.is-negative{accent-color:var(--bb-danger)}.work-cost-budget progress.is-negative::-webkit-progress-value{background:var(--bb-danger)}.work-cost-budget progress.is-negative::-moz-progress-bar{background:var(--bb-danger)}.work-cost-budget progress.is-warning{accent-color:var(--bb-orange)}.work-cost-budget progress.is-warning::-webkit-progress-value{background:var(--bb-orange)}.work-cost-budget progress.is-warning::-moz-progress-bar{background:var(--bb-orange)}.work-cost-table-scroll{overflow-x:auto}.work-costs table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:790px;font-size:13px}.work-costs th,.work-costs td{border-bottom:1px solid var(--bb-border);text-align:left;vertical-align:middle;padding:7px 9px}.work-costs th:first-child{width:125px}.work-costs th:nth-child(2){width:155px}.work-costs th:nth-child(4){width:85px}.work-costs th:nth-child(5){width:135px}.work-costs th:nth-child(6){width:50px}.work-costs th button{color:var(--bb-muted);background:0 0;border:0;min-height:36px;padding:3px 0;font-size:12px;font-weight:750}.work-costs td input{border-radius:var(--bb-radius-sm);border-color:#0000;min-height:36px;padding:7px;font-size:13px}.work-costs td input:hover{border-color:var(--bb-border)}.work-costs td input:focus{border-color:var(--bb-blue);background:var(--bb-surface)}.work-costs td small{color:var(--bb-muted);padding-inline:7px;font-size:12px;display:block}.work-costs td.work-cost-money input,.work-costs td.work-cost-money,.work-costs th:nth-child(5),.work-costs tfoot td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums;font-weight:750}.work-costs td input:disabled{background:var(--bb-surface-alt);opacity:1;color:var(--bb-muted)}.work-costs tfoot td{background:var(--bb-surface-alt);padding:12px;font-weight:750}.work-cost-row-menu{position:relative}.work-cost-row-menu summary{cursor:pointer;border-radius:var(--bb-radius-sm);min-width:36px;min-height:44px;color:var(--bb-muted);place-items:center;list-style:none;display:grid}.work-cost-row-menu svg{width:18px}.work-cost-row-menu details[open]>div{z-index:8;border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);width:210px;box-shadow:var(--bb-shadow);background:var(--bb-surface);max-height:320px;padding:6px;position:absolute;right:8px;overflow-y:auto}.work-cost-row-menu button{background:var(--bb-surface);text-align:left;width:100%;min-height:40px;color:var(--bb-text);border:0;align-items:center;gap:7px;padding:8px;font-size:13px;display:flex}.work-cost-row-menu button:hover{background:var(--bb-surface-alt)}.work-cost-row-menu div>span{color:var(--bb-muted);border-top:1px solid var(--bb-border);padding:8px;font-size:12px;display:block}.work-cost-row-menu button.work-cost-delete{color:var(--bb-danger);border-top:1px solid var(--bb-border)}.work-cost-totals{background:var(--bb-surface-alt);border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);padding:16px}.work-cost-totals>div{justify-content:space-between;align-items:center;gap:16px;padding:7px 0;font-size:13px;display:flex}.work-cost-totals b{font-variant-numeric:tabular-nums;white-space:nowrap}.work-cost-totals .work-cost-total{border-top:1px solid var(--bb-border);color:var(--bb-navy);font-size:17px;font-weight:750}.work-cost-vat select{width:auto}.work-cost-vat label{align-items:center;gap:10px;display:flex}.work-cost-totals p{color:var(--bb-muted);margin:10px 0 0;font-size:12px}.work-cost-documents{border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);background:var(--bb-surface);margin:12px 0}.work-cost-documents>summary{cursor:pointer;color:var(--bb-blue);min-height:44px;padding:12px 14px;font-size:14px;font-weight:700}@media (max-width:1150px){.work-cost-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.work-cost-summary{grid-template-columns:1fr 1fr;gap:8px}.work-cost-summary article{padding:12px}.work-cost-summary article:last-child{grid-column:1/-1}.work-cost-quick{padding:12px;top:76px}.work-cost-quick-heading{align-items:start}.work-cost-chips{flex-wrap:nowrap;padding-bottom:3px;overflow-x:auto}.work-cost-chips button{flex:none;padding:8px 10px}.work-cost-quick-fields{grid-template-columns:1fr 1fr}.work-cost-quick-fields>label:first-child{grid-column:1/-1}.work-cost-quick-fields .primary{width:100%}.work-costs input,.work-costs select,.work-costs td input{min-height:44px;font-size:16px}.work-cost-input-note{line-height:1.4}.work-cost-filters>label{min-width:calc(50% - 10px)}.work-cost-filters .work-cost-search{flex-basis:100%}.work-costs table{min-width:0;display:block}.work-costs thead{padding:8px;display:block}.work-costs thead tr{flex-wrap:wrap;gap:7px;display:flex}.work-costs th,.work-costs th:nth-child(n){border:0;width:auto;padding:0;display:block}.work-costs th:last-child{display:none}.work-costs th button{border:1px solid var(--bb-border);border-radius:var(--bb-radius-sm);padding:5px 8px}.work-costs tbody{gap:10px;padding:10px;display:grid}.work-costs tbody tr{border:1px solid var(--bb-border);border-radius:var(--bb-radius-md);background:var(--bb-surface);grid-template-columns:1fr 1fr;padding:8px;display:grid}.work-costs td{border:0;min-width:0;padding:5px;display:block}.work-costs td[data-label]:before{content:attr(data-label);color:var(--bb-muted);margin-bottom:3px;font-size:12px;display:block}.work-costs td.work-cost-description{grid-column:1/-1}.work-costs td.work-cost-row-menu{border-top:1px solid var(--bb-border);grid-column:1/-1;justify-content:flex-end;display:flex}.work-costs tfoot{display:block}.work-costs tfoot tr{background:var(--bb-surface-alt);justify-content:space-between;padding:8px;display:flex}.work-costs tfoot td{border:0;padding:4px}.work-cost-table-scroll{overflow:visible}.work-cost-group>summary{flex-wrap:wrap;gap:7px}.work-cost-row-menu details[open]>div{bottom:48px}}@media (max-height:600px){.work-cost-quick{position:static}}
