/* Workflow and project page layouts; shares the global neutral / semantic palette. */
.health-report{padding:0}.health-report-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid #E5E7EB}.health-range-control{display:flex;align-items:center;gap:12px;font-size:13px;white-space:nowrap}.health-range-control select{width:128px;height:36px;padding:6px 10px;font-size:13px}.health-report-toolbar .field{min-width:150px;max-width:180px;margin:0;display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.health-report-toolbar .field>span{font-size:12px}.health-report-toolbar .field input{min-width:130px;height:36px;padding:6px 8px;font-size:13px}.health-report-caption{padding:12px 20px;margin:0;font-size:12px;color:#6B7280}.health-report>.notice{margin:16px 20px}.health-report .workflow-table{min-width:1100px}.health-report .workflow-table td:not(:first-child),.health-report .workflow-table th{white-space:nowrap}.health-report .workflow-table td{max-width:260px}.health-report .table-overflow{border-radius:0 0 10px 10px}
@media(max-width:760px){.health-report-toolbar{gap:12px;padding:16px}.health-report-toolbar>.secondary{width:100%}.health-report-toolbar .field{max-width:none;flex:1 1 100%}.health-report-toolbar .field input{max-width:200px}.health-report-caption{padding:12px 16px}}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.module-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:3px 8px;border-radius:5px;font-size:12px;line-height:1.5;background:#F3F4F6;color:#6B7280}
.module-status i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.module-status.info{color:#2563EB;background:#EFF6FF}.module-status.success{color:#047857;background:#ECFDF5}.module-status.warning{color:#A16207;background:#FFFBEB}.module-status.danger{color:#DC2626;background:#FEF2F2}
.module-dashboard{min-width:0}.module-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.module-dashboard-heading p{margin:0;color:#6B7280;font-size:13px}
.module-compact-row{display:flex;align-items:center;gap:16px;min-height:56px;padding:8px 0;border-top:1px solid #E5E7EB}.module-compact-row>div{flex:1;min-width:0}.module-compact-row strong,.module-compact-row>div>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.module-compact-row strong{font-size:14px;font-weight:600;color:#111827}.module-compact-row>div>span{font-size:12px;color:#6B7280;margin-top:3px}.module-compact-row>.secondary{font-size:12px;white-space:nowrap}
.wf-list-card{padding:0;overflow:visible}.wf-toolbar{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid #E5E7EB;position:relative;flex-wrap:wrap}.wf-kind-tabs{display:flex;align-self:stretch;gap:16px;flex:none}.wf-kind-tab{display:flex;align-items:center;gap:6px;position:relative;border:0;background:transparent;color:#6B7280;font:inherit;font-size:14px;padding:9px 0;cursor:pointer;white-space:nowrap}.wf-kind-tab:after{content:"";position:absolute;bottom:-13px;left:0;right:0;height:2px;background:transparent}.wf-kind-tab.active{color:#111827;font-weight:600}.wf-kind-tab.active:after{background:#E8622C}.wf-kind-tab>span{min-width:19px;padding:1px 5px;border-radius:4px;background:#F3F4F6;font-size:12px;font-weight:400;color:#6B7280}
.wf-search{flex:1 1 210px;min-width:170px;max-width:330px;margin-left:auto}.wf-search input,.wf-toolbar-select select{height:36px;width:100%;border:1px solid #E5E7EB;border-radius:8px;background:#fff;color:#111827;padding:7px 10px;font-size:13px}.wf-toolbar-select{width:120px;flex:none}.wf-more-filters{flex:none;font-size:13px;color:#6B7280}.wf-more-filters>summary{cursor:pointer;white-space:nowrap;padding:8px 0}.wf-more-body{position:absolute;right:20px;top:calc(100% - 1px);z-index:8;width:260px;padding:16px;background:#fff;border:1px solid #E5E7EB;border-radius:10px;box-shadow:var(--work-shadow-popover);display:grid;gap:12px}.wf-more-body .field{margin:0}.wf-list-card>.table-overflow{border-radius:0 0 10px 10px}.wf-compact-table{width:100%;min-width:980px;table-layout:auto}.wf-compact-table th{white-space:nowrap}.wf-compact-table td{padding:12px 16px;vertical-align:middle;line-height:1.5;color:#111827}.wf-compact-table td:first-child{width:38%;max-width:480px}.wf-compact-table td:nth-child(2),.wf-compact-table td:nth-child(3){width:8%;white-space:nowrap}.wf-compact-table td:nth-child(4){width:17%;white-space:nowrap}.wf-compact-table td:nth-child(5){width:13%;white-space:nowrap}.wf-item-title{display:block;max-width:100%;border:0;padding:0;background:none;text-align:left;font:inherit;font-size:14px;font-weight:600;color:#111827;overflow-wrap:anywhere;cursor:pointer}.wf-item-title:hover,.project-title-button:hover{text-decoration:underline;text-underline-offset:3px}.wf-item-contact{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-top:4px;color:#6B7280;font-size:12px}.wf-item-contact .button{padding:0;min-height:0;font-size:12px;color:#6B7280;line-height:1.5}.wf-item-contact>span{overflow-wrap:anywhere}.wf-item-fact{display:block;color:#6B7280;font-size:13px;margin-top:3px}.wf-type-label,.wf-priority{font-size:13px;color:#6B7280}.wf-row-actions{white-space:nowrap;position:sticky;right:0;background:#fff;box-shadow:-1px 0 #E5E7EB}.wf-compact-table th:last-child{position:sticky;right:0;background:#F9FAFB;z-index:1}.wf-compact-table tbody tr:hover .wf-row-actions{background:#F9FAFB}.wf-row-actions .button{margin:0}.wf-row-actions .button+.button{margin-left:6px}.wf-detail-facts{display:grid;gap:12px}.wf-detail-facts p,.wf-detail-facts h3{margin:0}.wf-detail-facts h3{font-size:14px;margin-top:8px}
.project-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project-overview-card{padding:20px;display:flex;flex-direction:column;gap:0;min-width:0}.project-overview-card h2{margin:16px 0 4px;font-size:16px}.project-title-button{border:0;background:transparent;padding:0;text-align:left;font:inherit;font-weight:600;line-height:1.5;color:#111827;cursor:pointer;overflow-wrap:anywhere}.project-customer-name{margin:0;color:#6B7280;font-size:13px}.project-overview-card .project-products{margin:16px 0;color:#374151;font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px}.project-business-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.project-business-path span{position:relative;padding-top:12px;text-align:center;font-size:12px;color:#6B7280;white-space:nowrap}.project-business-path span:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:2px;background:#E5E7EB}.project-path-caption{font-size:12px;color:#9CA3AF;margin:8px 0 16px}.project-next-step{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;background:#F9FAFB;border:1px solid #F3F4F6;border-radius:8px;padding:12px;margin-bottom:12px}.project-next-step>span{font-size:12px;color:#6B7280;padding-top:1px}.project-next-step>strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.project-next-step>small{grid-column:2;color:#6B7280;font-size:12px}.project-overview-card .project-blocker{font-size:13px;color:#A16207;background:#FFFBEB;padding:8px 10px;border-radius:6px;margin:0 0 12px;overflow-wrap:anywhere}.project-card-meta{display:flex;flex-wrap:wrap;gap:4px 12px;color:#6B7280;font-size:12px;margin-top:auto}.project-card-footer{display:flex;justify-content:flex-end;margin-top:12px;padding-top:12px;border-top:1px solid #E5E7EB}.project-card-footer .button{min-height:32px}.project-onboarding{padding:48px 24px;text-align:center}.project-onboarding-illustration{display:flex;justify-content:center;align-items:center;color:#9CA3AF;margin-bottom:20px}.project-onboarding-illustration svg{width:48px;height:48px}.project-onboarding h2{font-size:20px;font-weight:600;color:#111827;margin:0 0 8px}.project-onboarding>p{font-size:14px;color:#6B7280;margin:0 0 24px}.project-onboarding-steps{display:flex;justify-content:center;gap:40px;list-style:none;padding:0;margin:32px auto;max-width:900px;text-align:left}.project-onboarding-steps li{display:flex;gap:12px;align-items:center;position:relative}.project-onboarding-steps li>span{display:grid;place-items:center;width:32px;height:32px;border:1px solid #E5E7EB;border-radius:50%;font-size:14px;color:#6B7280;flex:none}.project-onboarding-steps strong{display:block;font-size:14px;font-weight:600;color:#111827}.project-onboarding-steps small{display:block;font-size:12px;color:#6B7280;margin-top:4px}.project-onboarding-actions{display:flex;flex-direction:column;align-items:center;gap:8px}.project-onboarding-actions+.small-text{margin:16px 0 0}.project-onboarding .button.primary{min-height:40px;padding-left:20px;padding-right:20px}
@media(max-width:1200px){.project-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wf-toolbar{gap:10px}.wf-search{max-width:none}.project-onboarding-steps{gap:24px}.wf-kind-tabs{gap:12px}}
@media(max-width:760px){.project-overview-grid{grid-template-columns:1fr}.wf-toolbar{padding:12px 16px}.wf-kind-tabs{width:100%;border-bottom:1px solid #E5E7EB;margin-bottom:4px}.wf-kind-tab:after{bottom:-1px}.wf-search{flex-basis:100%;max-width:none;margin:0}.wf-toolbar-select{flex:1;min-width:110px}.wf-more-body{right:16px;max-width:calc(100% - 32px)}.wf-compact-table td{padding:10px 12px}.project-onboarding{padding:32px 20px}.project-onboarding-illustration svg{width:48px;height:48px}.project-onboarding h2{font-size:18px}.project-onboarding-steps{display:grid;justify-content:start;gap:20px;max-width:300px;margin:24px auto}.module-compact-row{gap:8px}.module-compact-row>.secondary{display:none}.module-dashboard-heading p{font-size:12px}}

/* Audit fixes reuse the existing business controls and emphasis. */
button.funnel-stage{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;border-radius:6px}
button.funnel-stage:hover{background:#f9fafb}
button.funnel-stage:focus-visible{outline:2px solid var(--primary,#ea580c);outline-offset:2px}
.master-filters label{display:flex;flex-direction:column;gap:6px;color:#667085;font-size:12px}
.master-filters input{min-width:240px}
.master-filters .button{align-self:flex-end}
.form-error:focus{outline:2px solid #b42318;outline-offset:4px}
@media(max-width:760px){.master-filters input{min-width:0;width:100%}}

/* Source-aware inventory: existing controls, no new business states. */
.history-inventory{padding:16px 20px}.history-inventory summary{cursor:pointer;font-weight:600}.history-inventory p{margin:10px 0}.history-inventory .quick-views{display:flex;flex-wrap:wrap;gap:8px}.inventory-status{line-height:1.6}.legacy-cell .inventory-status+.button{margin-top:4px}

/* Customer list: distinct identity, contact, priority and explicit actions. */
.main-content.customer-workspace{max-width:none;padding:24px 24px 32px}
.customer-workspace .customer-table-scroll .customer-list-v2{min-width:1320px;table-layout:fixed}
.customer-workspace .customer-table-scroll .customer-list-v2 col{min-width:0;max-width:none}
.customer-workspace .customer-list-v2 col.select-column{width:40px}
.customer-workspace .customer-list-v2 col.grade-column{width:104px}
.customer-workspace .customer-list-v2 col.identity-column{width:132px}
.customer-workspace .customer-list-v2 col.followup-contact-column{width:152px}
.customer-workspace .customer-list-v2 col.inquiry-date-column{width:108px}
.customer-workspace .customer-list-v2 col.product-column{width:188px}
.customer-workspace .customer-list-v2 col.stage-column{width:80px}
.customer-workspace .customer-list-v2 col.owner-column{width:64px}
.customer-workspace .customer-list-v2 col.next-column{width:140px}
.customer-workspace .customer-list-v2 col.legacy-cell{width:180px}
.customer-workspace .customer-list-v2 col.actions-column{width:132px}
.customer-workspace .customer-table-scroll .customer-list-v2 td:is(.grade-column,.identity-column,.inquiry-date-column){position:static;left:auto}
.customer-workspace .customer-table-scroll .customer-list-v2 th:is(.grade-column,.identity-column,.inquiry-date-column){left:auto;top:0}
.customer-workspace .customer-table-scroll .customer-list-v2 :is(th,td){min-width:0;padding:8px 12px;border-right:1px solid #edf0f3}
.customer-workspace .customer-table-scroll .customer-list-v2 :is(th,td):is(.followup-contact-column,.owner-column,.legacy-cell){border-right-color:#dce2e8}
.customer-workspace .customer-table-scroll .customer-list-v2 :is(th,td).actions-column{padding-inline:12px;border-right:0}
.customer-workspace .customer-table-scroll .customer-list-v2 :is(th,td).select-column{padding-inline:12px;border-right:0}
.customer-workspace .customer-table-scroll .customer-list-v2 :is(th,td):is(.grade-column,.stage-column,.owner-column){text-align:center}
.customer-workspace .customer-table-scroll .customer-list-v2 tbody td{height:64px;vertical-align:middle}
.customer-workspace .customer-list-v2 .followup-contact{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569}
.customer-workspace .customer-list-v2 .customer-persistent-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;position:static;opacity:1;visibility:visible;white-space:nowrap}
.customer-workspace .customer-list-v2 .customer-persistent-actions .button{min-height:32px;padding:5px 8px;margin:0;flex:0 0 auto}
.customer-workspace .customer-list-v2 .plan-link{display:block;min-height:24px;line-height:20px;padding:2px 0;margin-top:3px;font-size:12px}
.customer-workspace .customer-list-v2 .summary-detail{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer}
.customer-workspace .customer-list-v2 .summary-detail .legacy-preview{display:block;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-workspace .customer-list-v2 .summary-meta{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#64748b;white-space:normal}
.customer-workspace .customer-list-v2 .summary-detail:focus-visible{outline:2px solid #e66a2b;outline-offset:3px;border-radius:3px}
.customer-workspace .customer-list-v2 .inquiry-date-column time{color:#64748b;font-weight:400}
.customer-workspace .customer-list-v2 .next-step.overdue,.customer-workspace .customer-list-v2 .subline.overdue{color:#b42318}

/* One inquiry-scoped business chain; secondary controls use existing button tokens. */
.chain-overview .card-header p{font-size:13px;color:var(--muted,#68758d);margin-top:6px}
.chain-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border,#e5e9f1)}
.chain-metric{border:0;background:var(--surface,#fff);padding:20px;text-align:left;cursor:pointer;color:inherit;display:flex;flex-direction:column;gap:8px}
.chain-metric strong{font-size:25px;font-variant-numeric:tabular-nums}.chain-metric span{font-size:13px;color:var(--muted,#68758d)}
.chain-metric:hover{background:var(--surface-soft,#f6f8fb)}.chain-metric:focus-visible{outline:2px solid var(--accent,#d65b27);outline-offset:-3px}
.chain-brands{display:flex;flex-wrap:wrap;gap:8px}.chain-brief .business-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media(max-width:760px){.chain-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.chain-metric{padding:15px}}

/* Human salutation and source identity remain distinct; actions stay visible. */
.customer-list-v2 .identity-column { min-width:0; }
.customer-list-v2 .customer-note-preview { display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.customer-workspace .customer-list-v2 .identity-column .identity-edit { display:inline-flex;margin-top:2px;padding:0;min-height:24px;color:#64748b; }
.customer-list-v2 .inline-priority-select { cursor: pointer; max-width: 80px; min-height: 30px; padding: 3px 4px 3px 7px; }
.customer-list-v2 .inline-priority-select:disabled { cursor: default; opacity: .7; }

@media(max-width:760px){.main-content.customer-workspace{padding:16px 12px 24px}}

/* Daily work references share the existing inquiry and sample records. */
.plan-sample-link{display:block;margin-top:6px;max-width:100%}
.plan-sample-link .button{white-space:normal;text-align:left;max-width:100%;line-height:1.45}
.followup-card-footer{flex-wrap:wrap;gap:6px}
#wc-results .business-table td{vertical-align:top}

/* Customer -> brand -> sample rounds: shared inquiry identity and stage. */
.sp-customer-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border,#e2e8f0)}
.sp-customer-heading h2{margin:0 0 6px;font-size:17px}.sp-customer-heading h2 .button{padding:0;font-weight:700;font-size:inherit;max-width:520px;text-align:left;white-space:normal}
.sp-customer-note{margin:6px 0 0;color:var(--work-secondary);font-size:12px;max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-customer-stage{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.sp-brand-heading{display:flex;align-items:center;gap:12px;background:#f8fafc;padding:12px 20px;border-bottom:1px solid #e2e8f0}
.sp-brand-group+.sp-brand-group{border-top:1px solid #e2e8f0}.sp-products{min-width:1320px}.sp-products th,.sp-products td{vertical-align:top}.sp-products td{padding-top:14px;padding-bottom:14px}.sp-products .actions-cell{min-width:174px}
.sp-summary{display:block;max-width:190px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;margin-top:4px}.sp-rounds{display:grid;gap:8px;margin:12px 0 20px}.sp-rounds .knowledge-card{margin:0}.sp-rounds p{margin:6px 0}
@media(max-width:700px){.sp-customer-heading{flex-direction:column}.sp-customer-note{max-width:calc(100vw - 72px)}.sp-customer-heading h2 .button{max-width:calc(100vw - 72px)}}

/* Sampling workbench: current product tasks, with historical rounds kept below. */
.sp-workspace{max-width:1440px;margin-inline:auto;--sp-line:#e5e7eb;--sp-muted:#697386;--sp-soft:#f8f9fb}
.sp-workspace .page-heading{margin-bottom:18px}.sp-workspace .page-heading h1{font-size:24px;letter-spacing:-.4px}.sp-workspace .page-heading p{max-width:58ch}
.sp-workflow-guide{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:var(--sp-muted);font-size:12px;margin-bottom:20px}
.sp-workflow-guide>span+span:before{content:'→';margin-right:10px;color:#b4bac4}.sp-workflow-guide details{margin-left:auto;max-width:550px}.sp-workflow-guide summary{cursor:pointer}.sp-workflow-guide p{line-height:1.7}
.sp-workspace .sp-filters{background:#fff;border:1px solid var(--sp-line);border-radius:10px;padding:14px 16px;display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.sp-filters label:first-child{flex:1 1 200px}.sp-filters label:not(:first-child){flex:0 1 130px}.sp-filters input,.sp-filters select{width:100%;min-width:0}.sp-filters .button{flex:0 0 auto}
.sp-task-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:0 0 12px;border-bottom:1px solid var(--sp-line)}
.sp-task-tabs .button{gap:8px;padding:7px 11px;color:#64748b;background:transparent;border-color:transparent}.sp-task-tabs .button span{font-size:11px;min-width:18px;padding:1px 5px;background:#e9edf2;border-radius:4px;font-variant-numeric:tabular-nums}
.sp-task-tabs .button.active{background:#fff4ed;border-color:#efc1aa;color:#ad471e;font-weight:600}.sp-task-tabs .button.active span{background:#cfe3d7;color:var(--accent)}.sp-count{margin:12px 0;font-size:12px;color:var(--sp-muted)}
.sp-workspace .sp-customer-group{border:1px solid var(--sp-line);border-radius:12px;background:#fff;margin-bottom:22px;box-shadow:none}
.sp-workspace .sp-customer-heading{align-items:center;padding:14px 18px;gap:12px}.sp-workspace .sp-customer-heading h2{margin:0 0 3px;font-size:17px}.sp-workspace .sp-customer-heading h2 .button{color:#17223b;padding:0;min-height:24px;font-weight:650}
.sp-workspace .sp-customer-stage{gap:8px;flex-wrap:wrap;justify-content:flex-end}.sp-customer-stage select{min-height:34px;max-width:135px}.sp-meta{display:block;font-size:12px;color:#697386;line-height:1.65;overflow-wrap:anywhere}
.sp-workspace .sp-customer-note{margin:4px 0 0}.sp-workspace .sp-brand-heading{padding:10px 18px;background:#f8f9fb;gap:10px}.sp-brand-heading strong{font-size:13px}.sp-product-list{padding:14px;display:grid;gap:14px}
.sp-product-card{border:1px solid var(--sp-line);border-radius:9px;background:#fff;min-width:0}.sp-product-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #edf0f3}
.sp-product-heading h3{font-size:17px;line-height:1.45;margin:0 0 4px;color:#18243a;font-weight:650}.sp-phase{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.sp-phase>.badge{font-size:11px}
.sp-task-heading{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;min-width:0}.sp-task-heading>.button{min-height:34px;font-size:12px;padding:7px 12px;white-space:normal;text-align:center}.sp-product-heading>div:first-child{min-width:0}.sp-product-heading .sp-meta{overflow-wrap:anywhere}
@media(max-width:760px){.sp-product-heading{flex-wrap:wrap}.sp-task-heading{flex:1 1 100%;justify-content:space-between;gap:8px}.sp-task-heading .sp-phase{justify-content:flex-start}}
.sp-phase-badge{display:inline-flex;padding:5px 9px;border-radius:5px;font-size:12px;font-weight:600;background:#eef2f7;color:#526176}.sp-phase-badge[data-phase='待出样']{background:#fff4e7;color:#9a6228}.sp-phase-badge[data-phase='待客户反馈']{background:#eaf1fb;color:#356191}.sp-phase-badge[data-phase='待调整']{background:#fff0eb;color:#ab4c31}.sp-phase-badge[data-phase='已确认']{background:#eaf5ef;color:#36714b}
.sp-card-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.2fr) minmax(0,1fr)}.sp-card-grid>section{padding:16px;min-width:0}.sp-card-grid>section+section{border-left:1px solid #edf0f3}
.sp-card-grid h4{font-size:12px;font-weight:600;color:#697386;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.sp-card-grid h4 .button{font-weight:400;padding:0;min-height:24px;font-size:11px}
.sp-date-list,.sp-price-summary{margin:0;font-variant-numeric:tabular-nums}.sp-date-list>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;margin:0 0 8px;font-size:12px}.sp-date-list dt{color:#697386}.sp-date-list dd{margin:0;overflow-wrap:anywhere;white-space:normal;color:#34425a}
.sp-feedback-text{font-size:14px;line-height:1.7;color:#29374d;margin:0 0 7px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.sp-feedback-empty{margin:0 0 10px;font-size:13px;color:#697386}
.sp-next-plan{display:flex;flex-direction:column;gap:4px;background:#f8f9fb;border-left:2px solid #d5dbe5;padding:10px 12px;margin-top:12px;font-size:12px}.sp-next-plan time{font-size:12px;color:#697386}.sp-next-plan strong{font-weight:500;overflow-wrap:anywhere}
.sp-price-summary>div{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:start;gap:8px;margin-bottom:10px;font-size:12px}.sp-price-summary dt{color:#697386;padding-top:3px}.sp-price-summary dd{margin:0;overflow-wrap:anywhere;white-space:normal;font-weight:500}.sp-final-value dd{color:#94421f;font-weight:650}
.sp-price-edit{padding:0;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;text-align:left;line-height:1.5;display:block;width:100%}.sp-price-edit span{display:inline-block;margin-left:7px;font-size:11px;font-weight:400;color:#8b6f60;border-bottom:1px dotted #c2a18e}.sp-price-edit:hover span{color:#b45126}.sp-price-edit:focus-visible{outline:2px solid #c85d2d;outline-offset:3px;border-radius:3px}
.sp-rework-brief{display:flex;flex-direction:column;gap:4px;background:#fff8f0;border-left:3px solid #e0a77b;padding:10px 13px;margin:12px 16px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.sp-rework-brief strong{font-weight:600;color:#8f572e}
.sp-card-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 16px;border-top:1px solid #edf0f3;background:#fbfcfd;position:relative;border-radius:0 0 9px 9px}.sp-card-actions>div{display:flex;flex-wrap:wrap;gap:8px}.sp-card-actions .button{min-height:32px;padding:6px 10px;font-size:12px}.sp-more{position:relative;flex:0 0 auto;font-size:12px;color:#697386}.sp-more summary{cursor:pointer;list-style:none;padding:8px 6px;min-height:32px}.sp-more summary:after{content:' ⋯';font-weight:700}.sp-more[open] summary{color:#b45126}.sp-more-panel{position:absolute;right:0;top:100%;z-index:20;background:#fff;border:1px solid #dce1e8;border-radius:8px;padding:6px;box-shadow:var(--work-shadow-popover);display:grid;width:216px;max-width:calc(100vw - 56px);border-color:var(--work-divider)}.sp-more-panel .button{justify-content:flex-start;text-align:left;padding:8px 10px;color:#43516a}.sp-more-panel .button:hover{background:#f6f7f9}.sp-more-panel [data-action=sp-delete]{color:#ac493b;border-top:1px solid #edf0f3;margin-top:3px}
.sp-round-history{border-top:1px solid #edf0f3;font-size:12px}.sp-round-history>summary{padding:11px 16px;cursor:pointer;color:#667085}.sp-round-history>summary span{margin-left:12px;color:#697386;font-size:11px}.sp-history-items{padding:0 16px 12px}.sp-history-items article{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr) auto;gap:12px;border-top:1px solid #edf0f3;padding:12px 0}.sp-history-items p{margin:4px 0;overflow-wrap:anywhere}.sp-history-items article>.button{align-self:start}
.sp-requirements{margin-top:12px;font-size:12px;color:#697386}.sp-requirements summary{cursor:pointer}.sp-requirements p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.sp-form-layout{display:grid;gap:18px}.sp-form-section{min-width:0}.sp-form-section>header{display:flex;gap:9px;align-items:center;margin-bottom:14px}.sp-form-section>header>span{background:#f3f4f6;color:#7d8795;font-size:11px;font-variant-numeric:tabular-nums;padding:4px 6px;border-radius:4px}.sp-form-section h3{font-size:15px;margin:0;font-weight:600}.sp-form-section>.field{margin-bottom:13px}.sp-form-section+.sp-form-section{border-top:1px solid #e6e9ee;padding-top:18px}
.sp-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sp-context-grid>.sp-new-brand-field{grid-column:1/-1}.sp-new-brand-field[hidden]{display:none}
.sp-line-block{padding:16px;border:1px solid #dce2e9;border-radius:9px;margin-bottom:12px}.sp-line-block>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:14px}.sp-line-block .form-grid{align-items:start}.sp-application-price{border-top:1px solid #edf0f3;padding-top:12px;margin-top:14px}.sp-application-price h4{font-size:13px;margin:0 0 12px}.sp-application-price h4 span{font-size:11px;font-weight:400;color:#697386;margin-left:8px}.sp-application-price>.field{margin-top:14px}
.sp-money-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(90px,.7fr) minmax(90px,.8fr);gap:12px}.sp-money-fields .field{min-width:0}.sp-money-fields input,.sp-money-fields select{min-width:0;width:100%}
.sp-initial-quote{border:0;margin:14px 0 0;padding:14px 0 0;border-top:1px dashed #dce2e9;min-width:0}.sp-initial-quote[hidden]{display:none}.sp-initial-quote legend{font-size:13px;font-weight:600;padding:0 8px 0 0}.sp-initial-quote .form-grid{margin-top:12px}
.sp-final-fields{border:1px solid #e7d6c8;background:#fffaf5;padding:13px 15px;border-radius:8px;min-width:0}.sp-final-fields>summary{cursor:pointer;font-size:13px;font-weight:600}.sp-final-fields>summary span{font-size:11px;font-weight:400;color:#825d47;margin-left:8px}.sp-final-fields[open]>.sp-meta{margin:12px 0}.sp-final-fields .form-grid{margin-top:12px}
.sp-form-note,.sp-form-context{padding:12px 14px;border-radius:7px;background:#f6f8fa;color:#56627a;font-size:12px;line-height:1.7;margin:0}.sp-form-note p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.sp-form-note span{color:#7d8795}.sp-form-note strong{font-weight:600;color:#34425a}
.sp-reason-choices{display:flex;flex-wrap:wrap;gap:8px;padding:0;border:0;margin:0 0 14px;min-width:0}.sp-reason-choices legend{font-size:12px;color:#667085;margin-bottom:10px}.sp-reason-choices label{display:flex;align-items:center;gap:7px;cursor:pointer;padding:9px 12px;border:1px solid #dce2e9;border-radius:6px;font-size:13px}.sp-reason-choices input{width:15px;height:15px;accent-color:#c75e2d}.sp-reason-choices label:has(input:checked){background:#fff4ec;border-color:#e4ac8c;color:#9b4823}
.sp-commercial-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.sp-commercial-overview>section{background:#f7f8fa;padding:16px;border-radius:8px;border:1px solid #e6e9ee;min-width:0;display:flex;flex-direction:column}.sp-commercial-overview strong{font-size:16px;line-height:1.6;margin-top:7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.sp-commercial-overview p{font-size:12px;color:#697386;line-height:1.65;flex:1}.sp-commercial-overview .button{align-self:start}.sp-commercial-overview .sp-confirmed-price{background:#fff8f1;border-color:#ecd3bc}
.sp-detail-section{border-top:1px solid #e6e9ee;padding-top:16px;margin-top:18px;min-width:0}.sp-detail-section h3{font-size:14px;margin:0 0 14px}.sp-price-history{display:grid;gap:8px}.sp-price-history article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;background:#f8f9fb;padding:12px;border-radius:5px;font-size:12px}.sp-price-history article time{font-size:11px;color:#697386}.sp-price-history p{grid-column:1/-1;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#697386}
.sp-detail-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.sp-detail-header>div{display:flex;gap:7px;flex-wrap:wrap}.sp-detail-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:26px}.sp-detail-grid h4{font-size:12px;color:#697386}.sp-detail-commercial{background:#faf8f5;border:1px solid #eadfd3;border-radius:8px;padding:16px}.sp-detail-commercial .button{margin:6px 5px 0 0}.sp-long-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:13px}.sp-inline-actions{display:flex;flex-wrap:wrap;gap:8px}.sp-detail-rounds{display:grid;gap:10px}.sp-detail-rounds article{border-left:2px solid #dce2e9;padding:8px 12px;background:#f9fafb;font-size:12px}.sp-detail-rounds article.current{border-left-color:#cd6a37;background:#fff8f2}.sp-detail-rounds p{margin:6px 0;overflow-wrap:anywhere}.sp-detail-footer{border-top:1px solid #e6e9ee;display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:12px}.sp-detail-footer [data-action=sp-delete]{margin-left:auto;color:#ac493b}
@media(max-width:1100px){.sp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-card-grid>.sp-commercial-section{grid-column:1/-1;border-left:0;border-top:1px solid #edf0f3;padding-block:12px}.sp-commercial-section .sp-price-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sp-commercial-section .sp-price-summary>div{display:block;margin:0}.sp-commercial-section .sp-price-summary dt{margin-bottom:4px}}
@media(max-width:760px){.sp-workspace .page-heading h1{font-size:22px}.sp-workflow-guide>span{font-size:11px}.sp-workflow-guide details{margin-left:0}.sp-workspace .sp-filters{padding:12px;gap:10px}.sp-filters label:first-child{flex-basis:100%}.sp-filters label:not(:first-child){flex:1 1 130px}.sp-workspace .sp-customer-heading{flex-direction:column;align-items:stretch;padding:12px 14px}.sp-workspace .sp-customer-stage{justify-content:flex-start}.sp-product-list{padding:10px}.sp-product-heading{padding:12px;align-items:flex-start}.sp-product-heading h3{font-size:16px}.sp-phase{gap:5px}.sp-card-grid{display:block}.sp-card-grid>section{padding:13px}.sp-card-grid>section+section{border-left:0;border-top:1px solid #edf0f3}.sp-commercial-section .sp-price-summary{display:block}.sp-commercial-section .sp-price-summary>div{display:grid;grid-template-columns:95px minmax(0,1fr);margin-bottom:9px}.sp-card-actions{padding:10px 12px;align-items:flex-start;flex-wrap:wrap}.sp-card-actions>div{flex:1 1 220px}.sp-more{margin-left:auto}.sp-rework-brief{margin:10px 12px 0}.sp-history-items article{grid-template-columns:minmax(0,1fr)}.sp-round-history>summary span{display:block;margin:4px 0 0 16px}.sp-detail-grid{grid-template-columns:minmax(0,1fr);gap:0}.sp-commercial-overview{grid-template-columns:minmax(0,1fr)}.sp-money-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-money-fields>.field:first-child{grid-column:1/-1}.sp-line-block{padding:12px}.sp-price-history article{grid-template-columns:minmax(0,1fr)}.sp-price-history article time{grid-column:1}.sp-workflow-guide>span+span:before{margin-right:5px}.sp-workflow-guide{gap:5px}.sp-detail-footer [data-action=sp-delete]{margin-left:0}}
@media(prefers-reduced-motion:reduce){.sp-workspace .button,.sp-price-edit{transition:none}}
@media(max-width:600px){.sp-context-grid{grid-template-columns:minmax(0,1fr)}}

.sp-plan-warning{font-size:11px;color:var(--orange,#a54b22);line-height:1.5;}
/* Unsaved business input remains in place until a deliberate choice. */
.modal-draft-confirm{margin-top:1rem;padding:1rem;border:1px solid #efc894;border-radius:.5rem;background:#fff8ed;color:#513914;}
.modal-draft-confirm p{margin:.5rem 0 .75rem;line-height:1.6;}

/* Order detail facts share space without changing their status or available actions. */
.filing-order-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;min-width:0}
.filing-order-summary>div{display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid #e6e9ee;border-radius:7px;background:#f8f9fb}
.filing-order-summary>.filing-order-summary-wide{grid-column:1/-1}
.filing-order-summary dt{font-size:12px;line-height:1.5;color:#626e7e;overflow-wrap:anywhere}
.filing-order-summary dd{margin:0;min-width:0;font-size:14px;line-height:1.55;font-weight:600;color:#1f2937;overflow-wrap:anywhere}
@media(max-width:600px){.filing-order-summary{grid-template-columns:minmax(0,1fr);gap:8px}.filing-order-summary>div{grid-template-columns:88px minmax(0,1fr);align-items:start;gap:8px;padding:10px}.filing-order-summary>.filing-order-summary-wide{grid-column:auto}}
.filing-receipts-scroll{min-width:0;max-width:100%;overflow-x:auto}
.filing-receipts-table{width:100%;min-width:760px;table-layout:auto}
.filing-receipts-table :is(th,td):nth-child(2),.filing-receipts-table :is(th,td):nth-child(3){white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
.filing-receipts-table :is(th,td):nth-child(2){min-width:104px}
.filing-receipts-table :is(th,td):nth-child(3){min-width:72px}
.filing-receipts-table :is(th,td):nth-child(5){min-width:220px}
.filing-receipts-scroll:focus-visible{outline:2px solid var(--accent,#c75e2d);outline-offset:2px}
.filing-receipts-table :is(th,td):last-child{position:sticky;right:0;z-index:1;width:80px;min-width:80px;padding-inline:10px;background:#fff;box-shadow:-1px 0 #e6e9ee}
.filing-receipts-table th:last-child{z-index:2;background:#f9fafb}
@media(min-width:1000px){.modal.wide:has(.filing-order-summary){width:min(960px,100%)}}
