#shift-sheet{border-bottom:1px solid var(--border,#d9e4df);padding-bottom:24px;margin-bottom:24px}
.sw-heading,.sw-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.sw-heading h2{font-size:1.18rem;margin:4px 0}.sw-eyebrow{color:#52786b;font-size:.8rem;margin:0}.sw-status{background:#f8efda;color:#6b521b;border-radius:24px;padding:8px 16px;font-size:.85rem}.sw-posted{background:#e3f1e8;color:#21583b}.sw-guidance{line-height:1.9}.sw-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:18px 0}.sw-actions button{text-align:right;background:#f2f6f1;color:#234d44;border:1px solid #d7e3da;min-height:78px;padding:14px}.sw-actions button:hover{border-color:#7b9b88;background:#e7efe3}.sw-actions strong,.sw-actions small{display:block}.sw-actions small{font-weight:400;font-size:.8rem;opacity:.8;margin-top:5px}.sw-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.sw-totals>div{background:#f5f7f4;border:1px solid #e0e7df;border-radius:12px;padding:14px}.sw-totals strong{display:block;font-size:1.15rem;margin-top:8px;color:#204f45}.sw-totals small{font-size:.75rem}.sw-review{background:#eef6f0;border:1px solid #9abda8;padding:18px;border-radius:14px;margin-top:18px}.sw-change{padding:16px;border:1px solid #ddd;border-radius:12px;margin:12px 0}#sw-form table{min-width:800px}#sw-form td{min-width:110px;vertical-align:top}#sw-form td:first-child{min-width:190px}#sw-form input[type=datetime-local]{min-width:220px}#sw-form input,#sw-form select{width:100%}#sw-form small{display:block;margin:8px 0}#sw-form details{min-width:190px}#sw-form details[open]{min-width:290px}#sw-form .sw-checkbox input{width:auto}.sw-checkbox{display:flex;align-items:center;gap:8px;font-size:.8rem;margin:10px 0}.sw-ingredient{padding:10px;margin:8px 0;background:#f1f5ef;border-radius:8px}.sw-editor-footer{position:sticky;bottom:0;background:white;padding:14px 0;border-top:1px solid #ddd;z-index:2}#sw-message:not([hidden]){padding:12px;border-radius:8px;background:#eef6f1}#sw-message.error{background:#fff0e7;color:#842f19}.sw-enabled #manual-attendance-box,.sw-enabled #review-form,.sw-enabled #fault-form,.sw-enabled #count-form{display:none!important}.sw-enabled #overview>.toolbar h2{font-size:1rem}.sw-enabled #overview>.ui-quick-links{display:none}.sw-enabled #move-form select[name=kind] option:not([value=opening]){display:none}
@media(max-width:700px){.sw-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-editor-footer{bottom:64px;position:static}.sw-heading h2{font-size:1rem}.sw-actions button{padding:10px}.sw-status{font-size:.75rem}}

.sw-enabled #handover-form{display:none!important}
#sw-form .sw-editor-footer{position:static}
#sw-form.sw-production-form table{table-layout:fixed;width:100%;min-width:940px}
#sw-form.sw-production-form td{min-width:0;padding:8px}
#sw-form.sw-production-form th:nth-child(1){width:19%}
#sw-form.sw-production-form th:nth-child(2){width:8%}
#sw-form.sw-production-form th:nth-child(3){width:12%}
#sw-form.sw-production-form th:nth-child(4){width:13%}
#sw-form.sw-production-form th:nth-child(5){width:24%}
#sw-form.sw-production-form th:nth-child(6){width:17%}
#sw-form.sw-production-form th:nth-child(7){width:7%}
#sw-form.sw-production-form input[type=datetime-local]{min-width:0;width:100%;padding:8px 3px;font-size:.82rem}
#sw-form.sw-production-form details,#sw-form.sw-production-form details[open]{min-width:0}
#sw-form.sw-production-form td:last-child button{padding:8px 5px;font-size:.75rem}

.sw-preparer{display:block;margin-top:5px;color:#687e75;font-size:.75rem}

/* Production: a short batch row followed by ingredients across the available width. */
#sw-form.sw-production-form table{min-width:760px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#sw-form.sw-production-form th:nth-child(1){width:24%}
#sw-form.sw-production-form th:nth-child(2){width:9%}
#sw-form.sw-production-form th:nth-child(3){width:16%}
#sw-form.sw-production-form th:nth-child(4){width:19%}
#sw-form.sw-production-form th:nth-child(5){width:24%}
#sw-form.sw-production-form th:nth-child(6){width:8%}
#sw-form .sw-production-main td{padding:10px;vertical-align:top}
#sw-form .sw-production-materials>td{padding:0 10px 12px;border-bottom:3px solid #c9dcd0}
#sw-form .sw-material-details,#sw-form .sw-material-details[open]{min-width:0;width:100%;padding:0}
#sw-form .sw-material-details>summary{font-weight:600;color:#305b4c;cursor:pointer}
.sw-ingredients-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.sw-ingredients-grid .sw-ingredient{margin:0;min-width:0}
.sw-production-note{display:block;margin:9px 0}
.sw-owner-name{white-space:normal;overflow-wrap:anywhere}
.sw-mobile-label{display:none}
@media(max-width:700px){
 #sw-form.sw-production-form .sw-production-wrap{overflow:visible;border:0}
 #sw-form.sw-production-form table{display:block;min-width:0;width:100%;table-layout:auto}
 #sw-form.sw-production-form thead{display:none}
 #sw-form .sw-production-batch{display:block;border:1px solid #c9dcd0;border-radius:10px;margin:10px 0;padding:10px;min-width:0}
 #sw-form .sw-production-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #sw-form.sw-production-form .sw-production-main>td{display:block;min-width:0;padding:0;border:0}
 #sw-form .sw-production-main>td:nth-child(1),#sw-form .sw-production-main>td:nth-child(4),#sw-form .sw-production-main>td:nth-child(5){grid-column:1/-1}
 #sw-form .sw-production-main>td:last-child{grid-column:1/-1;justify-self:end}
 #sw-form .sw-production-materials{display:block}
 #sw-form.sw-production-form .sw-production-materials>td{display:block;padding:10px 0 0;border:0;min-width:0}
 .sw-production-main .sw-mobile-label{display:block;font-size:13px;font-weight:600;color:#38534b;margin-bottom:4px}
 .sw-production-main>td:last-child .sw-mobile-label{display:none}
 #sw-form.sw-production-form input[type=datetime-local]{font-size:15px;padding:8px;width:100%;min-width:0}
 .sw-ingredients-grid{grid-template-columns:minmax(0,1fr)}
}

.sw-summary-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0}
.sw-summary-toolbar h3{margin:0}.sw-summary-toolbar p{font-size:12px;margin:3px 0;color:#586f63}
.sw-summary-toolbar .actions{margin:0;align-items:center}.sw-approval-hint{font-size:12px;color:#5a7065}
.sw-summary-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.sw-summary-group{min-width:0;border:1px solid #d9e5da;border-radius:8px;padding:5px 10px!important;background:#f7faf5}
.sw-summary-group[open]{grid-column:1/-1;background:#fff}
.sw-summary-group summary{cursor:pointer;font-weight:600;font-size:13px}
.sw-summary-group summary span{font-size:12px;color:#5a7065;margin-inline-start:8px}
.sw-no-movements{font-size:13px;padding:8px 0}
@media(max-width:700px){.sw-summary-toolbar{align-items:stretch;flex-direction:column;gap:6px}.sw-summary-toolbar .actions{display:flex;flex-wrap:wrap}.sw-summary-toolbar #sw-review-top{flex:1}.sw-summary-groups{grid-template-columns:minmax(0,1fr)}}

#sw-form .sw-date-error{color:#9a3424;font-size:12px}#sw-form [aria-invalid=true]{border-color:#ad4939}

/* Actual-time checkpoints stay readable on narrow screens. */
#sw-form.sw-count-form td:nth-child(2){min-width:245px}
#sw-form.sw-count-form [data-field=count_mode]{margin-bottom:7px}
.interim-checkpoints{border-inline-start:3px solid #b1cab8;padding-inline-start:12px;background:#f3f7f1}
.interim-checkpoints button{margin-inline-start:8px}
@media(max-width:700px){
 #sw-form.sw-count-form .table-wrap{overflow:visible}
 #sw-form.sw-count-form table,#sw-form.sw-count-form tbody{display:block;min-width:0;width:100%}
 #sw-form.sw-count-form thead{display:none}
 #sw-form.sw-count-form tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #c9dcd0;border-radius:10px;padding:10px;margin:10px 0}
 #sw-form.sw-count-form td{display:block;min-width:0;padding:0;border:0}
 #sw-form.sw-count-form td:nth-child(1),#sw-form.sw-count-form td:nth-child(2),#sw-form.sw-count-form td:nth-child(5){grid-column:1/-1;min-width:0}
 #sw-form.sw-count-form td:last-child{grid-column:1/-1;justify-self:end}
 #sw-form.sw-count-form input[type=datetime-local]{min-width:0;font-size:15px;padding:8px}
 #sw-form.sw-count-form .sw-mobile-label{display:block;font-size:13px;font-weight:600;margin-bottom:4px}
 #sw-form.sw-count-form td:last-child .sw-mobile-label{display:none}
}
