/* AI reply import and human cost review only. Loaded after the main workspace styles. */
.ai-cost-comparison,.cost-import-records{min-width:0;margin-top:24px}
.ai-cost-heading,.cost-import-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px}
.ai-cost-heading h4,.cost-import-heading h3{margin:0;font-size:18px}.ai-cost-heading>span,.cost-import-heading>span{font-size:12px;color:var(--muted)}
.ai-cost-reply-group{padding:18px 0;border-bottom:1px solid var(--line)}.ai-cost-reply-group h5{font-size:15px;margin:0}.ai-cost-reply-group>p{margin:4px 0 12px;font-size:13px;overflow-wrap:anywhere}
.ai-cost-reply{padding:12px 0;min-width:0}.ai-cost-reply+.ai-cost-reply{border-top:1px dashed var(--line)}
.ai-cost-reply-price{display:flex;gap:8px 20px;justify-content:space-between;flex-wrap:wrap}.ai-cost-reply-price strong{font-size:18px;font-variant-numeric:tabular-nums}.ai-cost-reply-price span{font-size:13px}
.ai-cost-reply>p{font-size:13px;line-height:1.6;margin:8px 0}.ai-cost-reply details,.cost-draft-provenance{margin:12px 0;font-size:13px}
.ai-cost-reply summary,.cost-draft-provenance summary{cursor:pointer;min-height:36px;padding:7px 0;color:var(--accent,#3e6540)}
.ai-cost-reply dl,.cost-draft-provenance dl{display:grid;grid-template-columns:minmax(95px,.25fr) minmax(0,1fr);gap:8px 16px;margin:10px 0}.ai-cost-reply dt,.cost-draft-provenance dt{color:var(--muted)}.ai-cost-reply dd,.cost-draft-provenance dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.ai-cost-import-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.6;font-size:13px}.ai-cost-import-consent input{width:18px;height:18px;flex:none;margin-top:3px}.ai-cost-imported{padding:10px 12px;background:var(--surface-soft,#eff3ed)}
.cost-import-record{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(180px,1fr) auto;gap:10px 18px;padding:18px 0;border-bottom:1px solid var(--line)}
.cost-import-record>button{grid-column:3;grid-row:1/span 2;justify-self:end}
.cost-import-record>.cost-import-terms{grid-column:1/3}
.cost-import-material h4{font-size:15px;margin:0}.cost-import-material p{font-size:13px;margin:3px 0;overflow-wrap:anywhere}.cost-import-material>span{font-size:12px;color:var(--muted)}
.cost-import-price{display:flex;flex-direction:column;gap:3px}.cost-import-price small,.cost-import-price>span{font-size:12px;color:var(--muted)}.cost-import-price strong{font-size:18px;font-variant-numeric:tabular-nums}.cost-import-record>button{align-self:center;min-height:44px}
.cost-import-terms,.cost-import-record>.cost-draft-provenance,.cost-import-confirmed{grid-column:1/-1;margin:0;font-size:13px;line-height:1.6}.cost-import-record>.cost-draft-provenance{margin:0}
.cost-draft-workspace{min-width:0}.cost-draft-intro{display:flex;justify-content:space-between;gap:16px}.cost-draft-intro h3{margin:0;font-size:18px}.cost-draft-intro p{margin:6px 0 16px;font-size:13px;line-height:1.65}
.cost-draft-material{padding:12px 0;border-block:1px solid var(--line);margin-bottom:12px}.cost-draft-material strong{font-size:16px}.cost-draft-material p{margin:4px 0;overflow-wrap:anywhere}.cost-draft-material span{font-size:13px;color:var(--muted)}
.cost-draft-original{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:13px;line-height:1.6}.cost-draft-original strong{font-variant-numeric:tabular-nums}.cost-draft-raw-terms{overflow-wrap:anywhere;white-space:pre-wrap}
.cost-draft-workspace>h3{font-size:16px;margin:20px 0 14px}.cost-draft-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cost-draft-fields .field{min-width:0}.cost-draft-fields input,.cost-draft-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:44px}
.cost-draft-originals{margin:18px 0}.cost-draft-originals .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cost-draft-originals input{width:100%;box-sizing:border-box}
.cost-draft-ack .check{display:flex;gap:10px;align-items:flex-start;line-height:1.6;margin-top:18px}.cost-draft-ack input{width:18px!important;height:18px;min-height:18px!important;flex:none;margin-top:4px}
@media(max-width:700px){.cost-draft-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-import-record{grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}.cost-import-record>button{grid-column:1/-1;justify-self:start}.cost-import-price{align-items:flex-end;text-align:right}.cost-draft-fields>.field:has([name=expiry]){grid-column:1/-1}.cost-draft-originals .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.ai-cost-heading h4,.cost-import-heading h3{font-size:16px}.ai-cost-reply-group{padding:14px 0}.ai-cost-reply-price strong{font-size:17px}.ai-cost-import-consent{font-size:12px}.ai-cost-reply button{min-height:44px;max-width:100%}.cost-import-record{gap:8px 12px}.cost-import-price strong{font-size:16px}.cost-import-record button{width:100%}.cost-import-material p{font-size:12px}.cost-draft-fields{gap:12px}.cost-draft-fields .field>span{font-size:12px}.cost-draft-fields input,.cost-draft-fields select,.cost-draft-workspace textarea{font-size:16px}.cost-draft-fields>.field:has([name=supplierId]),.cost-draft-fields>.field:has([name=priceBasis]),.cost-draft-fields>.field:has([name=freightAmount]),.cost-draft-fields>.field:has([name=delivery]),.cost-draft-fields>.field:has([name=expiry]){grid-column:1/-1}.cost-draft-original{flex-direction:column;gap:5px}.cost-draft-provenance dl,.ai-cost-reply dl{grid-template-columns:minmax(75px,.35fr) minmax(0,1fr);gap:7px 10px}}
@media(max-width:700px){.cost-import-record>button{grid-row:auto}.cost-import-record>.cost-import-terms{grid-column:1/-1}}
