/* Daily workspace: compact navigation, clear queues and responsive order intake. */
.main{max-width:1600px;margin:0 auto}.page-heading h1{font-size:28px}.page-heading .eyebrow{margin-bottom:4px}.branch-note{display:none}.nav-label{margin-bottom:10px}.brand{padding-bottom:24px}.sidebar .nav-item{min-height:44px}.more-navigation{margin-top:16px;color:#c5d9d8}.more-navigation>summary{display:flex;align-items:center;gap:12px;padding:12px;cursor:pointer;list-style:none}.more-navigation>summary:after{content:'+';margin-left:auto}.more-navigation[open]>summary:after{content:'−'}.more-navigation .nav-item{font-size:13px}.mobile-bottom{display:none}.daily-search{display:flex;gap:10px;margin-bottom:20px;max-width:650px}.daily-search .search{flex:1;min-width:0}.queue-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.queue-tab{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;min-height:44px;padding:10px 14px;cursor:pointer;font:inherit}.queue-tab strong{font-variant-numeric:tabular-nums}.queue-tab.selected{background:#193e40;color:white;border-color:#193e40}.today-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.today-layout>*{min-width:0}.today-agenda{display:grid;gap:18px}.action-row{padding:18px 20px;display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:14px;align-items:center;border-top:1px solid var(--line)}.action-row p,.collection-row p{font-size:13px;color:var(--muted);margin:4px 0;overflow-wrap:anywhere}.action-row .order-link{font-size:14px}.action-owner{font-size:12px!important}.action-reason{align-self:start}.action-reason .badge{margin-bottom:2px}.action-row .btn{max-width:160px}.collection-row{padding:12px 0;border-bottom:1px solid var(--line)}.collection-row:last-child{border-bottom:0}.collection-row a{font-weight:600}.quiet-empty{padding:16px 0;color:var(--muted);font-size:14px}.production-summary{margin-top:22px;border-top:1px solid var(--line);padding:18px 0}.production-summary-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.production-summary-head h2{margin:0;font-size:16px;font-weight:650}.production-summary-head h2 span{color:var(--muted);font-weight:500}.production-summary-head a{display:inline-flex;align-items:center;gap:4px;font-weight:600;white-space:nowrap}.production-summary-head a svg{width:16px;height:16px}.production-summary .pipeline{margin:0}.order-overview-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:20px 0}.order-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 20px;border-bottom:1px solid var(--line)}.order-tabs a{padding:12px 14px;color:var(--muted);border-bottom:3px solid transparent}.order-tabs a[aria-current]{color:#205f55;border-color:#287567;font-weight:600}.workspace-order-body{padding:24px}.next-action{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eff6f3;padding:20px;border-radius:10px;margin:24px 0}.next-action small{color:var(--muted)}.intake-extra summary{cursor:pointer;padding:12px 0;font-weight:600}.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.section-title p{color:var(--muted);margin-top:6px}.order-task-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.order-task-list .job{border:1px solid var(--line)}.job-visible-actions{display:flex;flex-wrap:wrap;gap:7px}.job-visible-actions .btn{margin-top:8px;flex:1}.job .job-meta{font-size:12px}.job h3{font-size:14px}.job .badge{font-size:12px}.block-reason{color:#8c3c32;font-size:13px}.work-details>summary{cursor:pointer;font-weight:600}.work-list .work-card{padding:20px}.intake-steps{list-style:none;display:flex;gap:24px;padding:20px 24px;border-bottom:1px solid var(--line);margin:0}.intake-steps li{display:flex;align-items:center;gap:8px;color:var(--muted)}.intake-steps li span{display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:#edf1f0}.intake-steps li[aria-current]{color:#205f55;font-weight:700}.intake-steps li[aria-current] span{background:#205f55;color:white}.intake-body{padding:24px;max-width:900px;margin:auto}.intake-body h2{font-size:20px;margin-bottom:20px}.intake-body h3{margin:18px 0 12px}.intake-body .field{margin-bottom:16px}.intake-body .form-grid{gap:0 20px}.intake-body textarea{width:100%}.intake-body input,.intake-body select{min-height:44px}.intake-extra{border-top:1px solid var(--line);margin:14px 0}.intake-extra[open] summary{margin-bottom:10px}.intake-footer{position:sticky;bottom:0;z-index:5;background:white;border-top:1px solid var(--line)}.measurement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}.intake-drawing{max-width:640px}.intake-drawing canvas{display:block;width:100%;height:auto;border:1px dashed #9cb5b0;background:white;touch-action:none}.intake-check{display:flex;gap:10px;align-items:center;margin:16px 0}.intake-check input{min-height:0}.customer-lookup{max-width:600px}.customer-match{display:flex;justify-content:space-between;gap:12px;width:100%;padding:12px;border:0;border-bottom:1px solid var(--line);background:#f2f7f5;text-align:left;cursor:pointer;font:inherit}.customer-match span{color:var(--muted)}#customer-matches:not(:empty){margin-bottom:20px}#intake-review{margin-bottom:22px}#form-error:empty{display:none}#form-error{color:#a33a30;margin-bottom:14px}.workflow-totals{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:20px;color:var(--muted)}.workflow-totals strong{color:var(--ink)}.workflow-totals span{display:flex;gap:6px}.job-owner{margin:8px 0;color:var(--muted);font-size:12px}.work-batch>details{margin-top:14px}.work-batch>details>summary{padding:10px 0;cursor:pointer}.transfer-flow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 18px;color:var(--muted)}.transfer-flow strong{color:var(--ink)}
@media(min-width:761px){.sidebar-collapsed .more-navigation>summary{justify-content:center;padding:12px 0}.sidebar-collapsed .more-navigation>summary:after{display:none}}
@media(max-width:1200px){.today-layout{grid-template-columns:minmax(0,1fr)}.today-agenda{grid-template-columns:1fr 1fr}.action-row{grid-template-columns:minmax(0,1fr) 130px auto}}
@media(max-width:760px){.main{padding:18px 16px 96px}.page-heading{gap:12px;margin-bottom:16px;flex-direction:row;align-items:center}.page-heading h1{font-size:25px}.page-heading .subtitle{font-size:12px}.page-heading .eyebrow{display:none}.page-heading .actions{width:auto}.page-heading .btn{width:auto;white-space:nowrap}.daily-search{margin-bottom:16px}.daily-search .search{width:auto}.queue-tabs{gap:6px}.queue-tab{flex:1 1 40%;justify-content:space-between;padding:10px 12px}.today-agenda{grid-template-columns:1fr}.action-row{grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:10px}.action-row>.btn{grid-column:1/-1;max-width:none;justify-self:start;min-height:44px}.action-reason{max-width:115px}.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:6px 8px max(6px,env(safe-area-inset-bottom));z-index:30;justify-content:space-around}.mobile-bottom a,.mobile-bottom button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;padding:4px;border:0;background:transparent;font:inherit;font-size:11px;color:#4c6466;max-width:110px;border-radius:8px;text-align:center}.mobile-bottom [aria-current]{background:#e8f2ee;color:#205f55;font-weight:700}.mobile-bottom .icon{width:20px;height:20px}.sidebar.open{z-index:40}.intake-steps{padding:16px;gap:12px;justify-content:space-between;font-size:12px}.intake-steps li{gap:5px}.intake-steps li span{width:24px;height:24px;flex-shrink:0}.intake-body{padding:18px 16px}.intake-body .form-grid{grid-template-columns:1fr}.measurement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.intake-footer{bottom:64px;display:flex;flex-wrap:wrap;gap:8px;padding:12px}.intake-footer .btn{flex:1 1 auto;min-height:44px}.workspace-order-body{padding:18px}.order-tabs{gap:0}.order-tabs a{padding:10px;font-size:12px}.order-overview-head h1{font-size:24px}.next-action,.section-title{align-items:flex-start;flex-direction:column}.workspace-order-body .detail-grid{grid-template-columns:1fr 1fr}.work-card-head{flex-wrap:wrap}#toast{bottom:80px}.intake-body input,.intake-body select,.daily-search input{font-size:16px}.today-layout .card-head{padding:16px}.customer-match{flex-direction:column;gap:4px}}
@media(max-width:380px){.page-heading{flex-wrap:wrap}.intake-steps{gap:7px;font-size:11px}.intake-steps li span{width:20px;height:20px}.workspace-order-body .detail-grid{grid-template-columns:1fr}.action-row{grid-template-columns:1fr}.action-reason{max-width:none}}
@media(max-width:760px){.page-heading>.actions:not(:empty){width:auto;flex:0 0 auto}.page-heading>.actions>.btn{flex:0 0 auto}.page-heading>div:first-child{flex:1;min-width:0}.page-heading .subtitle{white-space:normal}}

/* Task cards have their own spacing; legacy batch cards pad their inner button. */
.production-board{grid-template-columns:repeat(var(--workflow-columns),minmax(280px,1fr));gap:16px;padding-bottom:16px;align-items:start}
.production-board .lane{padding:14px;min-width:0}
.production-board .lane-head{padding:4px 2px 16px;align-items:center;line-height:1.4}
.order-task-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));align-items:start;gap:16px}
.job.task-job{display:flex;flex-direction:column;gap:12px;padding:16px;margin:0 0 12px;min-width:0;border-radius:12px;overflow:visible}
.order-task-list .task-job{margin:0}
.task-job .job-card-top{flex-wrap:wrap;gap:8px;min-height:20px}
.task-job .job-order{font-size:12px;font-weight:600;text-decoration:none;color:#426e66;line-height:1.4}
.task-job .job-order:hover{text-decoration:underline}
.task-job h3{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere;letter-spacing:0}
.task-job .job-summary-meta{justify-content:flex-start;align-items:center;gap:8px 12px}
.task-job .job-summary-meta .job-meta{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.task-job .job-owner{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.task-job .block-reason{margin:0;background:#fff3ef;border-radius:6px;padding:8px 10px;font-size:12px;line-height:1.5;color:#8c3c32}
.task-job .job-disclosure{border-top:1px solid var(--line);margin:0;padding-top:4px;min-width:0}
.task-job .job-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;min-height:36px;font-size:12px;font-weight:600;color:#4d6b65;border-radius:4px}
.task-job .job-summary>.icon{width:16px;height:16px;transition:transform .15s ease}
.task-job .job-disclosure[open] .job-summary>.icon{transform:rotate(180deg)}
.task-job .job-details{padding:4px 0 8px;border:0}
.task-job .job-details p{font-size:12px;line-height:1.6;margin:0 0 10px;overflow-wrap:anywhere}
.task-job .job-details .btn{width:auto;margin:0;min-height:36px;padding:7px 12px}
.task-job .job-visible-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.task-job .job-visible-actions:empty{display:none}
.task-job .job-visible-actions>.btn{flex:1 1 104px;width:auto;margin:0;padding:9px 10px;min-height:40px;font-size:12px;line-height:1.4;overflow-wrap:normal;white-space:normal}
.task-job .job-visible-actions>.btn:first-child{background:#edf6f2;border-color:#c8e1d7;color:#206755}
.task-job .job-visible-actions>.btn:first-child:hover{background:#e1f0e9}
.task-job .job-visible-actions>.note{width:100%;margin:0!important}
@media(max-width:760px){.production-board{grid-template-columns:repeat(var(--workflow-columns),minmax(280px,85vw));gap:12px}.production-board .lane{padding:12px}.job.task-job{padding:16px}.task-job .job-visible-actions>.btn,.task-job .job-summary{min-height:44px}}
/* Stage headers stay visible while their order lists scroll independently. */
.production-board{align-items:stretch;height:clamp(360px,calc(100dvh - 340px),720px);min-height:0;overflow-y:hidden}
.production-board .lane{display:flex;flex-direction:column;min-height:0;height:100%;padding:14px 10px 10px 14px;overflow:hidden}
.production-board .lane-head{flex:0 0 auto;padding:0 4px 12px 0;min-height:44px}
.production-board .lane-head>span:first-child{flex:1}
.lane-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.lane-count{font-variant-numeric:tabular-nums;font-size:13px}
.lane-search-toggle{width:32px;height:32px;padding:6px;background:transparent;border-color:transparent;color:#597670}
.lane-search-toggle:hover,.lane-search-toggle[aria-expanded=true]{background:white;border-color:#d6e3de;color:#147563}
.lane-search-toggle .icon{width:17px;height:17px}
.lane-search{display:flex;align-items:center;gap:6px;flex:0 0 auto;background:white;border:1px solid #cbded7;border-radius:8px;margin:0 4px 12px 0;padding:4px 5px 4px 10px}
.lane-search[hidden]{display:none}.lane-search>.icon{width:15px;height:15px;color:#78948b}
.lane-search input{width:100%;min-width:0;flex:1;font-size:12px;padding:6px 0;border:0;background:transparent;outline-offset:2px;color:var(--ink)}
.lane-search input::-webkit-search-cancel-button{display:none}.lane-search>.icon-btn{border:0;padding:4px;background:transparent;width:28px;height:28px;flex-shrink:0}.lane-search>.icon-btn>.icon{width:14px;height:14px}
.lane-cards{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:3px 3px 3px 0;scrollbar-width:thin;scrollbar-color:#adc2bb transparent;border-radius:8px}
.lane-cards:focus-visible{outline:2px solid #53b5ac;outline-offset:1px}.lane-cards>[hidden]{display:none!important}
.lane-cards>.job:last-of-type{margin-bottom:0}.lane-empty{padding:32px 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}
@media(max-width:760px){.production-board{height:clamp(340px,calc(100dvh - 280px),650px)}.production-board .lane{padding:12px 8px 8px 12px}.lane-search-toggle{width:40px;height:40px}.lane-search input{font-size:16px}.lane-search>.icon-btn{width:36px;height:36px}}
.lane-search:focus-within{border-color:#288873;box-shadow:0 0 0 2px #28887322}.lane-search input:focus-visible{outline:none}

.task-job .job-details>.job-visible-actions{margin-top:12px}.task-job .job-details{padding-bottom:0}

.daily-search+.production-summary{margin:0 0 20px;padding:16px 0;border-bottom:1px solid var(--line)}
/* Order lifecycle: handover record, customer messages, approvals and checks */
.handover-proof,.customer-messages{margin-top:20px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}.handover-proof h3,.customer-messages h3{margin-bottom:10px}.handover-proof .due-order-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0}.handover-proof dt{font-size:12px;color:var(--muted)}.handover-proof dd{margin:2px 0 0;font-weight:600}
.customer-messages details.activity summary{cursor:pointer;list-style:none}.customer-messages details.activity summary::-webkit-details-marker{display:none}.message-text{white-space:pre-line;color:var(--muted);margin-top:6px}
.notify-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff6e6;margin-bottom:10px}.approval-notice{margin-bottom:16px}.payment-warning{background:#fff3e8}.batch-balance{margin:0 0 16px}
.checkbox-field{flex-direction:row;align-items:center;gap:10px}.checkbox-field input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.returning-customer{margin:0 0 14px;max-width:420px}.inspection-reference{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px}.inspection-reference summary{font-weight:650;cursor:pointer;margin-bottom:6px}
.collection-table .actions{flex-wrap:nowrap}
@media(max-width:760px){.btn,.icon-btn,.tab,.order-tabs a,.text-btn,.nav-item{min-height:44px}.icon-btn{min-width:44px}.order-tabs{width:100%;flex-wrap:wrap}.order-tabs a{flex:1 1 auto;text-align:center}.collection-table .actions{flex-wrap:wrap}.handover-proof .due-order-details{grid-template-columns:1fr 1fr}}

.production-summary .stage:nth-child(2){background:#f4f7f7;color:inherit}.production-summary .stage{background:#e7f2ee}.production-summary .stage strong{color:#126f60}.production-summary .stage.is-empty{background:#f4f7f7}.production-summary .stage.is-empty strong{color:var(--muted)}
.production-summary .stage:not(.is-empty){background:#e7f2ee}
@media(max-width:760px){.production-summary .stage{min-width:108px}.production-summary-head{margin-bottom:10px}}

/* Manager/supervisor floor status pills */
.status-mark{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:6px 12px;font:650 12px 'DM Sans',sans-serif;line-height:1.3;white-space:nowrap;min-height:28px}
.status-mark.is-editable{cursor:pointer;box-shadow:inset 0 0 0 2px transparent}
.status-mark.is-editable:hover,.status-mark.is-editable:focus-visible{box-shadow:inset 0 0 0 2px #215e58}
.status-mark.is-current{outline:2px solid #215e58;outline-offset:2px}
.status-mark-menu{display:grid;gap:8px;max-width:280px}
.status-mark-menu .status-mark{width:100%;justify-content:flex-start}
.status-mark.mark-measure{background:#c8f3f0;color:#0f3f3c}
.status-mark.mark-idle{background:#e8ecee;color:#3d4a4e}
.status-mark.mark-cut{background:#d7e8fb;color:#1d4a7a}
.status-mark.mark-ready-sew{background:#e6dff8;color:#4a2f86}
.status-mark.mark-sew{background:#f5ecd4;color:#6a4a12}
.status-mark.mark-qc{background:#d9f0df;color:#1f5b34}
.status-mark.mark-fit{background:#f8d9d9;color:#8a2f2f}
.status-mark.mark-ready{background:#d4efe6;color:#1f4f3f}
.status-mark.mark-delivered{background:#f3c89a;color:#5c3208}
.status-mark.mark-pending{background:#e5e8ea;color:#2f3a3e}
.status-mark.mark-cancel{background:#b3261e;color:#fff}

/* Backup sync (Google Sheets) */
.sync-backup-actions{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
.sync-backup-meta{font-size:13px;color:var(--muted, #5b6b6e);max-width:min(420px,100%)}
.page-heading .sync-backup-actions .btn[aria-busy="true"]{opacity:.75}

.sync-backup-result{display:inline-flex;flex-direction:column;gap:4px;align-items:flex-start;max-width:min(520px,100%)}
.sync-backup-links{font-size:13px;line-height:1.4}
.sync-backup-link{color:var(--teal,#0f766e);text-decoration:underline;text-underline-offset:2px}
.sync-backup-link:hover{color:var(--ink,#112f35)}
