/* BAKE v2.6: shared production-day board */
.sw-main-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px;background:#edf1ea;padding:5px;border-radius:15px}
.sw-main-nav button{min-height:46px;border:0;background:transparent;color:#627063;border-radius:11px;font-size:14px;font-weight:850}
.sw-main-nav button.on{background:#fff;color:#284a33;box-shadow:0 1px 6px #27332918}
.sw-root{padding-bottom:20px}
.sw-day-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0 12px}
.sw-day{border:1px solid #dce6dc;text-align:left;background:#fff;border-radius:17px;padding:14px 12px;min-height:119px;display:flex;flex-direction:column;gap:4px;color:#344639}
.sw-day.on{background:#294835;color:white;border-color:#294835}
.sw-day .sw-day-name{font-size:16px;font-weight:900;letter-spacing:-.04em}
.sw-day .sw-day-date{font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}
.sw-day .sw-day-desc{font-size:11px;color:#829082;line-height:1.4}
.sw-day.on .sw-day-desc{color:#c7d9cd}
.sw-day .sw-day-rate{font-size:12px;margin-top:auto;font-weight:780;color:#497454}
.sw-day.on .sw-day-rate{color:#d8eadc}
.sw-connection{font-size:12px;padding:10px 13px;border-radius:12px;background:#eef4ee;color:#416f4e;margin:10px 0 14px;line-height:1.5}
.sw-connection.warning{background:#fff0df;color:#915b35}
.sw-connection.loading{background:#eff1ee;color:#738273}
.sw-summary{padding:17px;background:white;border:1px solid #e3e9e1;border-radius:18px;margin:0 0 12px}
.sw-summary-line{display:flex;justify-content:space-between;gap:9px;align-items:flex-end}
.sw-summary h1{font-size:21px;margin:1px 0 4px;letter-spacing:-.055em}
.sw-summary small{font-size:12px;color:#788878}
.sw-summary b{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sw-meter{height:7px;border-radius:999px;overflow:hidden;background:#e9ede7;margin:13px 0 3px}
.sw-meter > div{width:0;height:100%;background:#567b5e;border-radius:999px;transition:width .15s}
.sw-chip-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:14px 0 8px}
.sw-chip-head strong{font-size:14px}
.sw-chip-head button{font-size:12px;border:0;background:none;color:#476d54;font-weight:800;min-height:42px;padding:7px}
.sw-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.sw-chip{border:1px solid #dce5db;background:#fff;border-radius:12px;min-width:90px;min-height:52px;padding:9px 12px;font-size:13px;text-align:left;font-weight:820;color:#526553;display:flex;flex-direction:column;gap:3px}
.sw-chip small{color:#879587;font-size:10px;font-weight:680}
.sw-chip.on{background:#2f503c;color:white;border-color:#2f503c}
.sw-chip.on small{color:#ddeadd}
.sw-chip.complete:not(.on){background:#eff6ef;color:#466f4d}
.sw-chip.unplanned{border-style:dashed;opacity:.76}
.sw-detail{background:#fff;border:1px solid #e0e8df;border-radius:19px;padding:15px;margin-top:10px}
.sw-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:7px;margin-bottom:12px}
.sw-detail h2{font-size:21px;margin:0 0 4px;letter-spacing:-.05em}
.sw-detail small{display:block;font-size:12px;color:#788678;line-height:1.5}
.sw-small-btn{border:1px solid #dfe7dc;background:#f8faf6;color:#426249;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:810;min-height:43px;flex:none}
.sw-batch-info{background:#f0f4ee;padding:13px;border-radius:13px;display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:9px 0}
.sw-batch-info strong{font-size:24px;font-variant-numeric:tabular-nums;color:#284e36}
.sw-batch-info span{font-size:12px;color:#647a69;line-height:1.45}
.sw-stages{display:flex;flex-direction:column;gap:9px;margin-top:11px}
.sw-stage{border:1px solid #e4e9e2;border-radius:13px;overflow:hidden}
.sw-stage.p1{background:#fcf1f0;border-color:#f2dfdc}
.sw-stage.p2{background:#fef7e5;border-color:#eee3c6}
.sw-stage.p3{background:#fff}
.sw-stage-head{padding:12px;display:flex;align-items:center;gap:9px;justify-content:space-between}
.sw-stage-title{flex:1;min-width:0}
.sw-stage-title b{display:block;font-size:15px}
.sw-stage-title small{font-size:11px;color:#788177;margin-top:4px}
.sw-stage-collapse{min-height:40px;min-width:35px;background:transparent;color:#425e49;border:0;text-align:left;padding:5px;font-size:15px;font-weight:800}
.sw-checkall{min-height:41px;border:1px solid #d6ded4;color:#426849;background:#ffffffcd;border-radius:9px;padding:8px 9px;font-size:12px;font-weight:850;white-space:nowrap}
.sw-stage.p1 .sw-stage-collapse{color:#7d4d4b}.sw-stage.p2 .sw-stage-collapse{color:#75622c}
.sw-item{width:100%;min-height:70px;border:0;border-top:1px solid #0000000a;padding:11px 14px;display:flex;gap:12px;align-items:center;text-align:left;background:transparent;color:#2d3b31}
.sw-item.done{background:#e3ece147}
.sw-item.done .sw-item-name{text-decoration:line-through;color:#8a978b}
.sw-tick{height:27px;width:27px;border:2px solid #bfcdbf;border-radius:8px;flex:none;display:grid;place-items:center;color:transparent;font-size:17px;font-weight:900;background:white}
.sw-item.done .sw-tick{background:#4d7557;color:white;border-color:#4d7557}
.sw-item-name{flex:1;min-width:0;font-size:15px;font-weight:750;word-break:keep-all;overflow-wrap:anywhere}
.sw-weight{font-size:23px;font-weight:870;color:#213d2a;white-space:nowrap;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.sw-weight em{font-size:12px;color:#7e8c80;font-style:normal;margin-left:4px}
.sw-done-group{padding:4px 13px 12px;font-size:12px;color:#5c8064}
.sw-stage.done .sw-stage-head{padding-bottom:10px}
.sw-warn{background:#fff3e2;padding:12px;border-radius:12px;color:#88572e;font-size:12px;line-height:1.65;margin-bottom:10px}
.sw-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 2px}
.sw-actions button{flex:1;min-height:45px;border:1px solid #dde6da;color:#3d6848;background:#fff;border-radius:11px;padding:10px 12px;font-size:13px;font-weight:820}
.sw-actions .sw-primary{background:#2d4e38;color:white;border-color:#2d4e38}
.sw-empty{padding:22px 15px;text-align:center;color:#7c8a7c;font-size:13px;line-height:1.7}
.sw-hint{font-size:12px;color:#879388;line-height:1.6;margin:12px 2px}
.sw-flash{margin-top:9px;min-height:16px;font-size:12px;font-weight:740;color:#4d7856;line-height:1.55}
.sw-flash.error{color:#a04c3f}
.sw-dialog{position:fixed;inset:0;background:#1d2d21a8;display:none;align-items:flex-end;justify-content:center;z-index:110}
.sw-dialog.open{display:flex}
.sw-sheet{width:min(100%,560px);max-height:92dvh;overflow-y:auto;background:#fafbf8;border-radius:22px 22px 0 0;padding:19px 19px max(25px,env(safe-area-inset-bottom))}
.sw-sheet-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:17px}
.sw-sheet-head h2{font-size:21px;margin:0}
.sw-sheet-head button{min-width:44px;min-height:44px;background:#eef1ed;border:0;border-radius:12px;font-size:24px;color:#56705a}
.sw-label{display:block;font-size:13px;font-weight:850;margin:13px 0 7px}
.sw-input,.sw-select{height:51px;border-radius:12px;background:#fff;color:#243827;width:100%;border:1px solid #d6e2d3;padding:10px 12px;font-size:17px;min-width:0}
.sw-input:focus-visible,.sw-select:focus-visible{outline:3px solid #8bae94}
.sw-editbuttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.sw-editbuttons button{height:47px;border:1px solid #dce8da;background:#f2f5f0;border-radius:11px;color:#3b6043;font-size:14px;font-weight:850}
.sw-batch-adjust{display:grid;grid-template-columns:1fr 1.3fr 1fr;align-items:center;gap:8px;margin:12px 0}
.sw-batch-adjust button{height:50px;border:0;background:#e8f0e6;border-radius:12px;color:#3d6246;font-size:16px;font-weight:850}
.sw-batch-adjust strong{font-size:28px;text-align:center;color:#2f4e36}
.sw-batch-note{font-size:12px;color:#708075;line-height:1.6}
.sw-save{width:100%;min-height:53px;border:0;border-radius:13px;background:#2c4d38;color:#fff;font-size:15px;font-weight:880;margin-top:12px}
.sw-save:disabled{opacity:.45}
.sw-divider{height:1px;background:#e1e6df;margin:16px 0}
.sw-compact-status{display:flex;gap:5px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.sw-note{font-size:12px;color:#748273;line-height:1.65;margin:12px 0 0}
@media(min-width:640px){.sw-dialog{align-items:center}.sw-sheet{border-radius:19px;max-height:85vh}}
@media(max-width:360px){.sw-detail{padding:11px}.sw-chip{min-width:79px;padding:8px}.sw-weight{font-size:20px}.sw-day{padding:12px 10px}.sw-day .sw-day-name{font-size:15px}.sw-stage-head{padding:9px}}
.sw-warn:empty{display:none}

/* v2.6.1 — production-date scope in the edit sheet */
.sw-plan-date{display:flex;flex-direction:column;gap:5px;padding:12px 13px;border-radius:12px;background:#edf3eb;margin:10px 0 16px;color:#31563c}
.sw-plan-date strong{font-size:16px;letter-spacing:-.02em}
.sw-plan-date span{font-size:12px;color:#56705b;line-height:1.45}

/* v2.7: 작업 중심 · 생산일별 일괄 편집 */
.sw-pre-alert{border:1px solid #f1d2b7;background:#fff5e9;color:#82532f;padding:13px;border-radius:14px;margin:0 0 12px;line-height:1.5}
.sw-pre-alert strong{font-size:14px}.sw-pre-alert p{font-size:12px;margin:5px 0 9px}
.sw-pre-list{display:flex;gap:7px;flex-wrap:wrap}.sw-pre-chip{background:#fff;border:1px solid #eac7a7;color:#965c31;border-radius:10px;min-height:42px;padding:8px 10px;font-size:12px;font-weight:800}
.sw-planner{background:transparent;margin:4px 0 0;padding-bottom:10px}
.sw-planner-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 15px}
.sw-planner-title small{font-size:13px;color:#69806c;font-weight:800}.sw-planner-title h2{font-size:21px;margin:3px 0 6px;letter-spacing:-.045em}.sw-planner-title p{font-size:12px;color:#7e8c80;line-height:1.6;margin:0}
.sw-planner-title button{flex:none;min-height:44px;padding:9px 12px;border-radius:12px;border:1px solid #dce5db;background:#fff;font-size:13px;font-weight:800;color:#48664f}
.sw-planner-edit{background:white;border:1px solid #e3e9e0;border-radius:19px;padding:15px 16px}
.sw-plan-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.sw-plan-line h3{font-size:21px;margin:0;letter-spacing:-.05em}.sw-plan-line small{font-size:12px;color:#849080}
.sw-bulk-input{margin:0 0 11px}.sw-bulk-input input{font-size:30px;font-weight:850;text-align:center;font-variant-numeric:tabular-nums;height:60px}
.sw-editbuttons .sw-mini-step{border:1px solid #e2e9df;border-radius:10px;background:#f2f6f1;color:#49694f;min-height:45px;font-size:13px;font-weight:850}
.sw-bulk-batch{border-top:1px solid #e7ece4;padding-top:13px;margin-top:13px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.sw-bulk-batch>span{font-size:13px;font-weight:820;color:#546b59}.sw-bulk-controls{display:flex;align-items:center;gap:7px;flex:1;justify-content:flex-end}.sw-bulk-controls strong{font-size:21px;font-variant-numeric:tabular-nums;min-width:82px;text-align:center;white-space:nowrap}
.sw-bulk-controls button{border:1px solid #dce7da;background:#ecf3eb;color:#416a4a;min-width:54px;min-height:44px;border-radius:10px;font-size:13px;font-weight:800}
.sw-bulk-batch>button{border:0;background:none;min-height:40px;padding:7px 8px;color:#5c7b61;font-size:12px;font-weight:850}
.sw-bulk-result{font-size:13px;background:#f1f5ef;border-radius:11px;padding:12px;color:#41614a;margin-top:10px;font-weight:800}
.sw-plan-check-notice{font-size:12px;color:#996137;line-height:1.6;margin:9px 0 0}
.sw-plan-stale{font-size:12px;background:#fff1e7;border-radius:10px;padding:10px;color:#9b5437;line-height:1.55}
.sw-planner-notice{color:#aa553c;font-size:12px;line-height:1.5;margin:9px 3px}
.sw-planner-footer{position:sticky;bottom:0;z-index:7;display:flex;align-items:center;gap:9px;justify-content:space-between;padding:11px 10px;background:#f7f7f3ef;backdrop-filter:blur(8px);border-radius:15px;margin:8px -5px}
.sw-planner-footer>span{font-size:12px;color:#5b765f;font-weight:800}.sw-planner-footer button{width:auto;flex:1;max-width:290px;margin:0;min-height:51px;padding:10px;font-size:14px}
.sw-chip.sw-dirty:not(.on){border-color:#93b39b;background:#f0f7f0}
.sw-pending{font-size:11px;color:#fff;background:#54735c;padding:2px 5px;border-radius:6px;margin-left:4px}
@media(max-width:350px){.sw-planner-title h2{font-size:18px}.sw-bulk-controls strong{font-size:18px;min-width:70px}.sw-bulk-controls button{min-width:47px}.sw-planner-footer>span{font-size:11px}}

.legacy-local-note{font-size:12px;font-weight:750;color:#657e6b;padding:2px 1px 6px;line-height:1.5}
/* v2.9: one dough, multiple finished products */
.sw-variant-list{display:flex;flex-direction:column;gap:8px;margin:9px 0 13px}
.sw-variant-row{display:grid;grid-template-columns:minmax(0,1fr) 108px;align-items:center;gap:8px;background:#f4f8f3;padding:9px 11px;border-radius:12px}
.sw-variant-row b{font-size:14px;display:block}.sw-variant-row small{font-size:11px;display:block;color:#798878;margin-top:3px}
.sw-variant-row input{font-weight:860;text-align:center;font-size:19px;min-width:0}
.sw-old-box{background:#faf8e9;padding:12px;border-radius:13px;margin:12px 0}
.sw-old-box small{font-size:12px;color:#877d51;display:block;margin-top:6px;line-height:1.5}
.sw-stage.p4{background:#eef5ef;border-color:#d1e5d4}
.sw-stage.p4 .sw-stage-collapse{color:#395b42}
@media(max-width:340px){.sw-variant-row{grid-template-columns:minmax(0,1fr) 86px;gap:5px;padding:7px}}

.sw-breakdown{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}
.sw-breakdown span{background:#edf2ec;border:1px solid #dce7d9;border-radius:9px;padding:8px 10px;font-size:12px;font-weight:800;color:#405d46}
