/* Workflow layout adds disclosure without replacing module routes or controls. */
.workflowRail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;list-style:none;padding:0;margin:12px 0 18px}
.workflowRail li{min-width:0;font-size:12px;line-height:1.35;padding:8px 4px;border-bottom:3px solid #536174;overflow-wrap:anywhere;color:#c5cfdd}
.workflowRail li span{display:block;font-weight:800;font-size:16px;margin-bottom:4px}
.workflowRail [aria-current=step]{border-color:#ffc66b;color:#fff}
.workflowEstimateCard p,.workflowQuote p{overflow-wrap:anywhere}
.workflowQuote>.btn,.workflowProposalAction>.btn,.jobsModePrimary>.btn{min-height:48px;width:100%;margin-bottom:10px}
.workflowQuote .metricGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.workflowQuote .quoteLineTop{gap:12px;flex-wrap:wrap}
.workflowQuote .quoteLineTop strong,.workflowQuote .quoteLineTop b{min-width:0;overflow-wrap:anywhere}
.workflowCapture>summary,.workflowQuote summary,.workflowMore>summary{cursor:pointer;min-height:44px;padding:12px 8px}
.workflowMore{width:100%}
.workflowMore>div{display:flex;flex-wrap:wrap;gap:8px}
.workflowMore button{min-height:44px}
@media(max-width:430px){
 .workflowRail{gap:4px}.workflowRail li{font-size:11px}
 .workflowQuote .row{display:flex;flex-direction:column}
 .workflowQuote .field{min-width:0;width:100%}
 .workflowQuote input,.workflowQuote textarea{max-width:100%;box-sizing:border-box;font-size:16px}
 .workflowQuote .quoteLineActions{display:flex;flex-wrap:wrap}
 .workflowQuote .quoteLineActions button{min-height:44px}
 .tww-footer{position:sticky;bottom:0;z-index:3;background:#111b29;padding:12px 0 max(12px,env(safe-area-inset-bottom));display:flex;gap:8px;flex-wrap:wrap}
 .tww-footer button{min-height:48px;white-space:normal;flex:1 1 120px}
}
@media print{.workflowRail,.workflowProposalAction,[data-guided-scope-recovery]{display:none!important}}
#nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
#nav .workflowMore{position:relative;width:auto;min-width:0}
#nav .workflowMore>summary{height:100%;display:flex;align-items:center;justify-content:center;padding:4px;min-height:48px;font-size:11px;font-weight:800;list-style:none}
#nav .workflowMore>div{position:absolute;bottom:calc(100% + 10px);right:0;width:min(320px,calc(100vw - 16px));padding:12px;background:#141b28;border:1px solid #65738a;border-radius:12px;box-shadow:0 -8px 30px #0008}
#nav .workflowMore>div button{flex:1 1 120px}
@media(max-width:430px){.tww-footer{bottom:calc(var(--navH) + env(safe-area-inset-bottom) + 8px)}.workflowRunNext>.btn{min-height:48px;width:100%}}

.workflowMessagePreview{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.5;text-align:left}
@media(max-width:430px){
 /* Keep the price action out of the way while entering or applying corrections. */
 .tww.tww-editing .tww-footer{position:static}
 .tww-followup{scroll-margin-block-end:180px}
}
/* One active job, with operational tools disclosed below its next action. */
.jobOperations{min-width:0}.jobOperations h1,.jobOperations p,.jobOperations li{overflow-wrap:anywhere}
.jobOperations .jobNext{width:100%;min-height:52px;margin:8px 0 18px;white-space:normal}
.jobFacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 20px}
.jobFacts>div{min-width:0;padding:12px;background:#101722;border:1px solid #344052;border-radius:10px}
.jobFacts span,.jobFacts b{display:block;overflow-wrap:anywhere}.jobFacts span{font-size:12px;color:#bec9d7}.jobFacts b{font-size:17px;margin-top:6px}
.jobOperations details,.jobDelivery{margin:16px 0}.jobOperations summary,.jobAllTools>summary{min-height:48px;padding:12px 0;cursor:pointer}
.jobOperations label{display:block;margin:12px 0 8px}.jobOperations textarea{box-sizing:border-box;width:100%;min-height:100px;font-size:16px}
.jobTools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.jobTools .btn,.jobDelivery .btn{min-height:48px;white-space:normal;overflow-wrap:anywhere}
.jobPaymentNotice{font-size:13px;color:#bec9d7}.jobOperations .btn:focus-visible{outline:3px solid #7fc7ff;outline-offset:3px}
@media(max-width:430px){.jobOperations{padding:16px}.jobOperations h1{font-size:25px}.jobOperations h2{font-size:21px}.jobDelivery .btn{width:100%;margin:6px 0}.jobAllTools{max-width:100%}}
@media print{.jobOperations,.jobDelivery,.jobAllTools{display:none!important}}
