/* Estimate worksheets: readable cards at every container width. */
#new-estimate-page .estimate-builder-main,#new-estimate-page .create-form-card{min-width:0}
#new-estimate-page .labor-items-head,#new-estimate-page .material-items-head{display:none}
#new-estimate-page .labor-item-row,#new-estimate-page .material-item-row{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 14px;padding:20px;margin:14px 0;border:1px solid var(--brand-line);border-radius:16px;background:var(--brand-surface);outline:none;min-width:0;box-shadow:0 2px 5px rgba(0, 0, 0, 0.025)}
#new-estimate-page .material-item-row{grid-template-columns:repeat(5,minmax(0,1fr))}
#new-estimate-page .labor-item-row::after,#new-estimate-page .material-item-row::after{display:none}
#new-estimate-page .estimate-line-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-weight:600}
#new-estimate-page .estimate-line-description{grid-column:1/-1;padding-right:38px}
#new-estimate-page .estimate-field-label{font-size:14px;line-height:1.4;color:var(--brand-muted);letter-spacing:.01em}
#new-estimate-page .estimate-line-field input,#new-estimate-page .estimate-line-field select{display:block;width:100%;min-width:0;max-width:100%;height:46px;box-sizing:border-box;border:1px solid var(--brand-line);border-radius:9px;padding:10px 12px;background:var(--brand-gold-soft);color:var(--brand-text);font:600 14px/1.4 system-ui,-apple-system,sans-serif;box-shadow:none;transition:border-color .15s,box-shadow .15s}
#new-estimate-page .estimate-line-description input{background:var(--brand-surface);font-size:15px;font-weight:500}
#new-estimate-page .estimate-line-field input:focus,#new-estimate-page .estimate-line-field select:focus{outline:none;border-color:var(--brand-gold);box-shadow:0 0 0 3px rgba(0, 0, 0, 1.000);background:var(--brand-surface)}
#new-estimate-page .line-total{display:flex;flex-direction:column;justify-content:center;align-self:stretch;gap:9px;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:right;font-size:18px;color:var(--brand-text);font-variant-numeric:tabular-nums}
#new-estimate-page .line-total::before{content:attr(data-label);font-size:14px;font-weight:600;color:var(--brand-muted)}
#new-estimate-page .estimate-remove{position:absolute;top:18px;right:16px;width:32px;height:32px;border:0;border-radius:8px;background:var(--brand-gold-soft);color:var(--brand-muted);font-size:22px;line-height:1;cursor:pointer}
#new-estimate-page .estimate-remove:hover{background:var(--brand-gold-soft);color:var(--brand-error)}
#new-estimate-page .estimate-remove:focus-visible{outline:3px solid var(--brand-line);outline-offset:2px}
#new-estimate-page .labor-item-row .dev58-pricing,#new-estimate-page .material-item-row .dev58-pricing{display:flex;align-items:center;flex-wrap:wrap;gap:10px;grid-column:1/-1;min-width:0;padding:12px 14px;margin:0;border-radius:9px;background:var(--brand-gold-soft);color:var(--brand-muted);font-size:14px;line-height:1.5}
#new-estimate-page .dev58-pricing[data-source=ai-budget]{background:var(--brand-gold-soft);color:var(--brand-warning)}
#new-estimate-page .labor-item-row .dev58-pricing>span,#new-estimate-page .material-item-row .dev58-pricing>span{flex:1 1 200px;min-width:0}
#new-estimate-page .dev58-pricing button{margin:0;border:1px solid var(--brand-line);border-radius:8px;background:var(--brand-surface);color:var(--brand-text);min-height:36px;padding:8px 12px;font:600 12px/1.4 system-ui;cursor:pointer}
#new-estimate-page .dev58-quotes{width:100%;min-width:0}
#new-estimate-page .dev32-inline-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:310px}
#new-estimate-page .create-section-head{flex-wrap:wrap;gap:14px}
#new-estimate-page .create-section-head>div:not(.dev32-inline-actions){flex:1 1 240px;min-width:0}
#new-estimate-page .dev32-inline-actions button{margin:0;min-height:40px;font-size:14px;padding:9px 13px}
@media(max-width:1200px){#new-estimate-page .material-item-row{grid-template-columns:repeat(4,minmax(0,1fr))}#new-estimate-page .material-item-row .line-total{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid var(--brand-line);padding-top:12px}}
@media(max-width:760px){#new-estimate-page .labor-item-row,#new-estimate-page .material-item-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px 12px}#new-estimate-page .estimate-line-description{grid-column:1/-1}#new-estimate-page .line-total{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid var(--brand-line);padding-top:12px}#new-estimate-page .dev32-inline-actions{justify-content:flex-start;max-width:none;width:100%}#new-estimate-page .estimate-remove{right:12px;top:14px}}

#new-estimate-page .dev58-pricing button:disabled{cursor:default;color:var(--brand-muted);border-color:var(--brand-line);background:var(--brand-gold-soft);opacity:.8}
