/* The work selection and its computed receipt share one compact creation flow. */
.wizard-steps{display:flex;gap:28px;list-style:none;padding:0 0 20px;margin:0 0 24px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.wizard-steps li{display:flex;gap:8px;align-items:center}.wizard-steps li>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;font-size:12px}.wizard-steps .current{color:var(--ink);font-weight:600}.wizard-steps .current>span,.wizard-steps .done>span{background:var(--ink);border-color:var(--ink);color:var(--bg,#fff)}
.wizard-selects{display:grid;grid-template-columns:1fr 1fr;gap:20px}.wizard-product-context{padding:24px 0 12px}.wizard-product-context h3{font-size:21px;margin:16px 0 8px}.wizard-product-context p{color:var(--muted);font-size:13px}
.wizard-name-preview{margin-bottom:26px;display:grid;gap:7px;overflow-wrap:anywhere}.wizard-name-preview>span,.wizard-name-preview small{font-size:12px;color:var(--muted)}.wizard-name-preview strong{font-size:17px;font-weight:600;line-height:1.5}
.wizard-work-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1.05fr);gap:32px;align-items:start}.wizard-work h3,.wizard-receipt h3,.wizard-note h3{font-size:14px;font-weight:600;margin:0 0 16px}.wizard-types{display:grid;grid-template-columns:1fr 1fr;gap:9px}.wizard-type{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px;cursor:pointer}.wizard-type input{width:15px;height:15px;min-height:0;margin:0;accent-color:var(--ink);flex:none}.wizard-type.selected{border-color:var(--ink);background:var(--bg,#f8f8f9)}.wizard-variations{margin-top:20px;display:grid;gap:14px}.wizard-variations textarea{min-height:76px;font-size:13px}
.wizard-receipt{background:var(--bg,#f8f8f9);border:1px solid var(--line);border-radius:10px;padding:20px;min-width:0}.wizard-receipt h3{display:flex;justify-content:space-between}.wizard-receipt h3 span{font-size:11px;color:var(--muted);font-weight:400}.receipt-head,.receipt-line{display:grid;grid-template-columns:minmax(90px,1fr) 44px 68px 72px;align-items:center;gap:8px}.receipt-head{font-size:10px;color:var(--muted);padding:0 0 10px;border-bottom:1px solid var(--line)}.receipt-head span:not(:first-child){text-align:right}.receipt-line{font-size:12px;padding:12px 0;border-bottom:1px dashed var(--line)}.receipt-line input{min-width:0;width:100%;padding:6px 4px;min-height:32px;font-size:12px;text-align:right;background:var(--field,#fff)}.receipt-line strong{font-size:12px;font-weight:500;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.receipt-qty{text-align:right;padding-right:4px}.receipt-subtotal,.receipt-adjustment,.receipt-total{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding-top:14px;font-variant-numeric:tabular-nums}.receipt-total{margin-top:14px;padding:16px 0;border-top:1px solid var(--line);font-size:14px}.receipt-total strong{font-size:22px;letter-spacing:-.5px}.receipt-custom{border:0;border-top:1px dashed var(--line);border-radius:0;padding-top:12px}.receipt-custom summary{font-size:11px;color:var(--muted);cursor:pointer}.receipt-custom .check-label{font-size:12px;display:flex;align-items:center;gap:8px;margin:14px 0}.receipt-custom .check-label input{width:15px;min-height:0}.receipt-custom .field{margin-top:12px;font-size:12px}.wizard-receipt .hint{font-size:11px;margin-bottom:0;line-height:1.6}
.wizard-note{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.wizard-note h3{display:flex;align-items:center;gap:12px}.wizard-note h3 span{font-size:11px;color:var(--muted);font-weight:400}.wizard-note textarea{min-height:90px;font-size:13px}.wizard-note>button{font-size:12px;display:inline-flex;align-items:center;gap:7px;min-height:34px}.wizard-note>button svg{width:15px;height:15px}.wizard-files{list-style:none;padding:0;margin:12px 0;display:grid;gap:7px}.wizard-files li,.removed-request{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 12px;background:var(--bg,#f8f8f9);border:1px solid var(--line);border-radius:8px;font-size:12px}.wizard-files li>span{overflow-wrap:anywhere;min-width:0}.wizard-files small,.removed-request small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.wizard-files button{padding:4px;min-height:26px;line-height:0;background:transparent;border:0}.wizard-files button svg{width:16px;height:16px}.removed-request{margin-top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dark .wizard-receipt,.dark .wizard-type.selected,.dark .wizard-files li,.dark .removed-request{background:var(--field)}.dark .receipt-line input{background:var(--surface);color:var(--ink)}.dark .wizard-steps .current>span,.dark .wizard-steps .done>span{color:var(--bg)}
@media(max-width:760px){.wizard-work-grid{grid-template-columns:1fr;gap:24px}.wizard-selects{grid-template-columns:1fr;gap:16px}.wizard-steps{gap:18px;font-size:12px}.wizard-receipt{padding:16px}.wizard-note h3{flex-wrap:wrap;gap:6px}.receipt-head,.receipt-line{grid-template-columns:minmax(84px,1fr) 40px 62px 66px;gap:6px}}
.wizard-reference{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.wizard-reference textarea{font-size:13px;min-height:78px}.wizard-reference .hint{font-size:11px}.task-reference{padding:18px 0;border-top:1px solid var(--line);margin-top:22px}.task-reference-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.task-reference h3{font-size:13px;margin:0}.task-reference-heading button{display:inline-flex;align-items:center;gap:5px}.task-reference-heading svg{width:13px;height:13px}.milestone-reference-text{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.milestone-ref-link{font:inherit;padding:0;border:0;background:none;color:var(--accent,#b95412);text-decoration:underline;min-height:0;display:inline;cursor:pointer}.product-history-list{max-height:380px;overflow:auto}.product-history-entry{padding:15px 0;border-bottom:1px solid var(--line)}.product-history-entry:last-child{border:0}.product-history-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.product-history-heading>button{text-align:left;padding:0;min-height:0;border:0;background:none;font-size:13px;font-weight:600;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}.product-history-heading>button:hover{text-decoration:underline}.product-history-heading .pill{flex-shrink:0}.product-history-note{margin-top:10px;padding-left:12px;border-left:2px solid var(--line)}.product-history-note p{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 7px}.product-task-history .hint{line-height:1.6}.product-task-history strong{font-size:11px;color:var(--muted);font-weight:500}
@media(max-width:600px){.product-history-heading{display:block}.product-history-heading .pill{margin-top:7px}.task-reference-heading{flex-wrap:wrap}}
.model-rows-heading{font-size:13px;font-weight:600;margin:0}.wizard-variations>.hint{font-size:11px;line-height:1.65;margin:8px 0 14px}.model-rows{display:grid;gap:12px}.model-row{padding:13px;border:1px solid var(--line);border-radius:8px}.model-row-caption{display:flex;align-items:center;justify-content:space-between;min-height:22px;margin-bottom:9px;color:var(--muted);font-size:11px}.model-row-caption button{display:flex;align-items:center;justify-content:center;min-height:22px;width:22px;padding:3px;background:none;border:0;color:var(--muted)}.model-row-caption svg{width:14px;height:14px}.model-row-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.model-row-fields .field{font-size:10px;gap:6px}.model-row-fields input{width:100%;min-width:0;font-size:12px;padding:9px 10px;min-height:36px}.add-model-button{display:inline-flex;align-items:center;gap:7px;font-size:12px;min-height:34px;margin-top:12px}.add-model-button svg{width:14px;height:14px}.model-count-summary{font-weight:500}.auto-quantity{font-variant-numeric:tabular-nums}.variant-saved-receipt{margin:16px 0}.variant-saved-receipt .receipt-head,.variant-saved-receipt .receipt-line{grid-template-columns:minmax(100px,1fr) 40px 70px 86px}.dark .model-row{background:var(--field)}.dark .model-row input{background:var(--surface)}
@media(max-width:420px){.model-row-fields{grid-template-columns:1fr}.variant-saved-receipt .receipt-head,.variant-saved-receipt .receipt-line{grid-template-columns:minmax(80px,1fr) 30px 60px 72px;gap:5px}}
@media(min-width:761px){.wizard-work-grid>.wizard-receipt{position:sticky;top:16px}}
