*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#eef2f6;color:#1f2933}#root{width:100%;height:100%}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.55}.screen-center,.login-page{min-height:100vh;display:grid;place-items:center}.mobile-block{display:none}.login-panel{width:360px;display:grid;gap:14px;padding:24px;border:1px solid #d0d8e2;border-radius:8px;background:#fff;box-shadow:0 18px 45px #0f172a1f}.login-panel h1,.topbar h1{margin:0;font-size:20px;letter-spacing:0}.login-panel input,.search input,.dispatch-panel input,.dispatch-panel select,.wide-input,.stepper input{border:1px solid #c5cfda;border-radius:6px;padding:7px 9px;background:#fff}.login-panel button,.state-button,.icon-button{border:1px solid #1f5f7a;border-radius:6px;padding:7px 10px;background:#1f5f7a;color:#fff}.app-shell{width:100%;height:100vh;display:grid;grid-template-columns:228px minmax(0,1fr);overflow:hidden}.sidebar{height:100vh;display:flex;flex-direction:column;border-right:1px solid #d2dbe4;background:#fbfcfe;padding:14px 10px;overflow:hidden}.brand{padding:2px 10px 14px;border-bottom:1px solid #d2dbe4}.brand h1{margin:0;font-size:18px;letter-spacing:0}.brand span{display:block;margin-top:3px;color:#596b7c;font-size:12px}.side-tabs{display:grid;gap:4px;padding:12px 0}.side-tabs button,.side-section,.side-action{min-height:36px;width:100%;display:flex;align-items:center;gap:9px;border:0;border-radius:6px;padding:0 10px;background:transparent;color:#354656;text-align:left}.side-section{cursor:default;-webkit-user-select:none;user-select:none}.side-tabs button.active,.side-section.active{border-left:3px solid #1f5f7a;background:#e7f0f6;color:#173f54;font-weight:700}.side-subtabs{display:grid;gap:3px;margin:-1px 0 6px;padding-left:18px}.side-subtabs button{min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-left:2px solid transparent;border-radius:5px;padding:0 8px;background:transparent;color:#596b7c;font-size:12px;font-weight:700}.side-subtabs button.active{border-left-color:#1f5f7a;background:#edf5fa;color:#173f54}.side-subtabs b{min-width:22px;border-radius:999px;padding:2px 6px;background:#e1e7ee;color:#354656;font-size:11px;text-align:center}.side-subtabs button.active b{background:#1f5f7a;color:#fff}.sidebar-footer{display:grid;gap:7px;margin-top:auto}.side-action{border:1px solid #1f5f7a;background:#1f5f7a;color:#fff}.side-action.secondary{border-color:#aebbc8;background:#fff;color:#354656}.app{min-width:0;height:100vh;display:flex;flex-direction:column;padding:14px;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px;padding:10px 12px;border:1px solid #d0d8e2;border-radius:8px;background:#fff;box-shadow:0 1px 2px #0f172a0a}.topbar p{margin:3px 0 0;color:#596b7c;font-size:12px}.icon-button{width:38px;height:38px;display:inline-grid;place-items:center;padding:0}.metric-row,.summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-bottom:10px}.metric-row>div,.summary-card{border:1px solid #d0d8e2;border-radius:8px;background:#fff;box-shadow:0 1px 2px #0f172a0a}.metric-row>div{min-height:62px;padding:10px 12px}.metric-row b{display:block;font-size:24px;line-height:1}.metric-row span{display:block;margin-top:5px;color:#596b7c;font-size:12px}.summary-card{min-height:80px;display:flex;justify-content:space-between;gap:12px;padding:12px}.summary-card strong,td strong{display:block;font-size:13px}.summary-card span,td span,td small{display:block;margin-top:3px;color:#596b7c;font-size:11px}.summary-numbers{min-width:68px;text-align:right}.summary-numbers b{display:block;font-size:24px}.search{width:min(420px,100%);height:36px;display:flex;align-items:center;gap:8px;padding:0 9px;border:1px solid #c5cfda;border-radius:8px;background:#fff}.search input{width:100%;border:0;outline:0;padding:0}.view-title{display:flex;align-items:center;justify-content:space-between;margin:8px 0;padding:7px 2px;border-bottom:1px solid #d0d8e2}.view-title h2{margin:0;font-size:15px;letter-spacing:0}.view-title span{display:block;margin-top:3px;color:#596b7c;font-size:12px}.table-wrap{flex:1;min-height:0;overflow:auto;border:1px solid #c5cfda;border-radius:8px;background:#fff;box-shadow:0 1px 2px #0f172a0a}.dashboard-panel{flex:1;min-height:0;overflow:auto}.orders-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.orders-content{min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px}.orders-card-list{flex:1;min-height:0;overflow:auto;border:1px solid #c5cfda;border-radius:8px;background:#fff}.order-card{border-bottom:1px solid #dfe6ed}.order-card:last-child{border-bottom:0}.order-card-main{width:100%;min-height:64px;display:grid;grid-template-columns:28px minmax(170px,1.1fr) 96px 150px minmax(220px,1.3fr);gap:12px;align-items:center;border:0;padding:9px 12px;background:#fff;color:#1f2933;text-align:left}.order-card-main:hover{background:#edf5fa}.order-card.open .order-card-main{background:#f4f7fa}.order-toggle{width:26px;height:26px;display:inline-grid;place-items:center;border:1px solid #aebbc8;border-radius:6px;background:#fff;color:#354656}.order-identity,.order-shipping,.order-receiver{min-width:0;display:grid;gap:3px}.order-identity strong,.order-receiver strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.order-identity em,.order-shipping em{color:#b42318;font-size:11px;font-style:normal;font-weight:800}.order-quantity b{display:block;font-size:22px;line-height:1}.order-quantity small,.order-shipping small,.order-receiver small{display:block;overflow:hidden;color:#596b7c;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.order-card-detail{padding:10px 12px 12px 52px;border-top:1px solid #dfe6ed;background:#f4f7fa}.orders-search{height:38px;width:min(460px,100%);display:flex;align-items:center;gap:8px;padding:0 9px;border:1px solid #c5cfda;border-radius:8px;background:#fff}.orders-search input{width:100%;border:0;outline:0;padding:0}.production-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}.materials-layout,.recipes-layout{flex:1;min-height:0;display:flex;flex-direction:column}.materials-panel,.material-detail-page{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;border:1px solid #c5cfda;border-radius:8px;background:#fff;overflow:auto}.materials-panel table,.material-detail-page table{min-width:0}.materials-panel .table-wrap{border:0;border-top:1px solid #dfe6ed;border-radius:0;box-shadow:none}.materials-toolbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px}.toolbar-actions{display:flex;gap:8px}.material-row{cursor:pointer}.material-row:hover td{background:#edf5fa}.stock-number{color:#173f54;font-size:18px}.state-button.danger{border-color:#b42318;background:#b42318;color:#fff}.detail-page-head{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #dfe6ed;background:#f8fafc}.detail-page-head h2{margin:1px 0;font-size:20px;letter-spacing:0}.detail-page-head span,.detail-page-head p{margin:0;color:#596b7c;font-size:12px}.stock-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}.stock-summary article{border:1px solid #d0d8e2;border-radius:8px;padding:10px;background:#fff}.stock-summary span{display:block;color:#596b7c;font-size:12px;font-weight:700}.stock-summary b{display:block;margin-top:5px;font-size:24px;line-height:1}.detail-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 10px 10px}.work-panel{display:grid;gap:8px;border:1px solid #d0d8e2;border-radius:8px;padding:10px;background:#fff}.work-panel h3,.history-page-panel h3{margin:0;font-size:14px;letter-spacing:0}.work-panel input,.material-modal input,.recipe-modal input,.recipe-modal select{min-width:0;border:1px solid #c5cfda;border-radius:6px;padding:7px 9px;background:#fff}.history-page-panel{flex:1;min-height:0;margin:0 10px 10px;border:1px solid #d0d8e2;border-radius:8px;background:#fff;overflow:auto}.history-page-panel h3{padding:10px;border-bottom:1px solid #dfe6ed;background:#f2f6fa}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;background:#0f172a52}.material-modal,.recipe-modal{width:420px;display:grid;gap:10px;border:1px solid #c5cfda;border-radius:8px;padding:14px;background:#fff;box-shadow:0 18px 45px #0f172a33}.recipe-modal{width:min(760px,calc(100vw - 48px))}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head h2{margin:1px 0 0;font-size:18px}.modal-head span,.material-modal label,.recipe-modal label{color:#596b7c;font-size:12px;font-weight:700}.material-modal label,.recipe-modal label{display:grid;gap:5px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:2px}.recipe-list{flex:1;min-height:0;overflow:auto;border-top:1px solid #dfe6ed}.recipe-card{display:grid;gap:8px;padding:11px 12px;border-bottom:1px solid #dfe6ed;background:#fff}.recipe-card:hover{background:#edf5fa}.recipe-main{display:flex;align-items:center;justify-content:space-between;gap:12px}.recipe-main strong{display:block;font-size:14px}.recipe-main span,.recipe-card p{margin:3px 0 0;color:#596b7c;font-size:11px}.recipe-items{display:flex;flex-wrap:wrap;gap:6px}.recipe-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d8e2;border-radius:999px;padding:4px 8px;background:#f8fafc;color:#354656;font-size:12px}.recipe-chip b{color:#173f54}.recipe-chip em{color:#596b7c;font-style:normal;font-weight:800}.recipe-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-select-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:6px}.selected-product-card{display:grid;gap:4px;border:1px solid #d0d8e2;border-radius:8px;padding:9px 10px;background:#f8fafc}.selected-product-card span{color:#596b7c;font-size:11px;font-weight:800}.selected-product-card strong{color:#1f2933;font-size:14px}.selected-product-card em{color:#173f54;font-size:13px;font-style:normal;font-weight:800}.recipe-item-editor{display:grid;gap:8px;border:1px solid #d0d8e2;border-radius:8px;padding:10px;background:#f8fafc}.recipe-item-editor-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.recipe-item-row{display:grid;grid-template-columns:96px minmax(180px,1fr) 74px 74px auto;gap:6px}.panel-heading{flex:0 0 auto;height:42px;display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid #dfe6ed;background:#f2f6fa;position:sticky;top:0;z-index:2}.panel-heading h2{margin:0;font-size:14px;letter-spacing:0}.compact-table{min-width:0;font-size:12px}.compact-table th,.compact-table td{padding:8px 10px}.compact-table td span{display:block;margin-top:3px;color:#596b7c;font-size:11px}.needed-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;padding-bottom:4px}.needed-card{min-height:118px;display:flex;align-items:stretch;justify-content:space-between;gap:14px;border:1px solid #d0d8e2;border-radius:10px;background:#fff;box-shadow:0 1px 2px #0f172a0a}.needed-card-main{min-width:0;display:flex;flex-direction:column;gap:7px;padding:14px}.needed-card-main strong{font-size:15px}.needed-card-main span:last-child{color:#596b7c;font-size:12px}.needed-count{width:92px;display:grid;place-items:center;align-content:center;border-left:1px solid #e1e7ee;background:#f7fafc}.needed-count b{color:#b42318;font-size:34px;line-height:1}.needed-count span{margin-top:6px;color:#596b7c;font-size:12px}table{width:100%;min-width:1120px;border-collapse:collapse}th,td{padding:7px 9px;border-bottom:1px solid #dfe6ed;text-align:left;vertical-align:middle}th{position:sticky;top:0;z-index:1;border-bottom-color:#c4ced8;background:#f2f6fa;color:#354656;font-size:11px;font-weight:700}tbody tr:nth-child(2n){background:#fafcfd}tbody tr:hover{background:#edf5fa}.order-row{cursor:default}.order-row td{background:#fff}.order-row:hover td{background:#edf5fa}.expand-cell{width:34px}.expand-button{width:26px;height:26px;display:inline-grid;place-items:center;border:1px solid #aebbc8;border-radius:6px;background:#fff;color:#354656;padding:0}.detail-row>td{background:#f4f7fa;padding-top:8px;padding-bottom:8px}.detail-table{min-width:900px;border:1px solid #d0d8e2;border-radius:6px;background:#fff}.detail-table th{position:static}.detail-table tr:last-child td{border-bottom:0}.packing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.packing-card{min-height:94px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;gap:8px 10px;align-items:start;border:1px solid #c5cfda;border-radius:8px;padding:12px;background:#fff;color:#1f2933;text-align:left}.packing-card:hover{border-color:#1f5f7a;background:#eef7fb}.packing-card.packed{border-color:#16835f;background:#e9f7f1}.packing-card-title{min-width:0;grid-column:1;overflow-wrap:anywhere;font-size:18px;font-weight:800;line-height:1.35}.packing-card-product{grid-column:1 / -1;min-width:0;overflow:hidden;color:#596b7c;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.packing-card-count{grid-column:2;grid-row:2;min-width:58px;justify-self:end;border-radius:6px;padding:5px 8px;background:#1f5f7a;color:#fff;font-size:16px;font-weight:800;line-height:1}.packing-card.packed .packing-card-count{background:#16835f}.packing-card-status{grid-column:1 / -1;display:inline-flex;align-items:center;gap:5px;color:#596b7c;font-size:12px;font-weight:700}.packing-card.packed .packing-card-status{color:#126d50}.packing-card-reason{grid-column:1 / -1;color:#b42318;font-size:12px}.claim-badge{justify-self:start;border:1px solid #d99231;border-radius:999px;padding:3px 7px;background:#fff8e6;color:#8a5a00;font-size:12px;font-weight:800}.claim-badge.done{border-color:#9aa8b5;background:#eef2f6;color:#596b7c}.claim-action{grid-column:1 / -1;justify-self:start;border:1px solid #b42318;border-radius:6px;padding:6px 9px;background:#b42318;color:#fff;font-size:12px;font-weight:800}.claim-text{color:#b42318;font-weight:700}.dispatch-panel{min-height:52px;display:flex;align-items:center;gap:8px;margin-top:8px;padding:8px;border:1px solid #d0d8e2;border-radius:6px;background:#f8fafc}.dispatch-panel input{width:180px}.dispatch-panel select{width:150px}.dispatch-panel>div{min-width:220px}.dispatch-panel>span,.dispatch-panel small{color:#596b7c;font-size:12px}.dispatch-panel small{color:#b42318}.qty{font-size:18px;font-weight:700}.qty.muted{color:#596b7c}.qty.danger{color:#b42318}.qty.done-text{color:#16835f}.stepper{display:flex;align-items:center;gap:6px}.stepper input{width:62px}.state-button{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;background:#fff;color:#1f5f7a}.state-button.done{border-color:#16835f;background:#16835f;color:#fff}.pill{min-width:74px;display:inline-flex;justify-content:center;border:1px solid #aebbc8;border-radius:999px;padding:4px 8px;color:#354656;font-size:12px}.pill.done{border-color:#16835f;background:#e9f7f1;color:#126d50}.pill.shipping{border-color:#1f5f7a;background:#e7f0f6;color:#173f54}.pill.cancel{border-color:#9aa8b5;background:#eef2f6;color:#596b7c}.category-badge{display:inline-flex;min-width:54px;justify-content:center;border:1px solid #9fb0bf;border-radius:999px;padding:3px 7px;background:#f3f6f8;color:#354656;font-size:12px;font-weight:700}.wide-input{width:100%;min-width:180px}.alert,.notice,.error{color:#b42318}.alert,.notice{margin-bottom:10px;padding:8px 10px;border:1px solid #e6a8a2;border-radius:6px;background:#fff1ef;font-size:12px}.notice{border-color:#e2c573;background:#fff8e6;color:#806000}.empty{padding:24px;color:#596b7c;text-align:center}@media (max-width: 899px){.desktop-only{display:none!important}.mobile-block{width:100%;height:100vh;display:grid;place-items:center;padding:24px;background:#e8edf2;color:#1f2933;font-size:18px;font-weight:700;text-align:center}}
