#stockSheetDialog{width:calc(100vw - 32px);max-width:1800px;max-height:94vh;padding:0;border-radius:6px}
.sheet-body{padding:20px;min-width:0}.sheet-scroll{max-height:65vh;overflow:auto}.sheet-scroll table{min-width:1900px;border-collapse:separate;border-spacing:0}.sheet-scroll th{position:sticky;top:0;z-index:2;background:#e5eeea}.sheet-scroll td{vertical-align:top;padding:8px}.sheet-scroll td input[data-size]{width:70px;padding:8px}.sheet-scroll td:nth-child(2){min-width:180px}.sheet-scroll select{min-width:110px}.sheet-scroll input[name=color]{width:100px}.sheet-scroll textarea{width:150px}.sheet-scroll td:last-child{min-width:160px;position:sticky;right:0;background:#fff;box-shadow:-2px 0 4px #ddd;white-space:normal}.sheet-image{width:100px;height:100px;display:grid;place-items:center;background:#f1f4f2}.sheet-image .thumb{width:100%;height:100%;object-fit:contain}.sheet-upload{font-size:12px}.sheet-upload input{width:130px;font-size:11px;padding:4px}.sheet-state{font-size:12px;max-width:150px;overflow-wrap:anywhere}.sheet-scroll input[name=style_no],.sheet-scroll input[name=style_name]{margin-top:6px}.sheet-total{font-weight:bold}.sheet-body>label{max-width:360px}
#stockSheetDialog .sheet-image img{width:100px;height:100px;min-height:0;max-height:100px;object-fit:contain}
#stockGridDialog{width:calc(100vw - 24px);max-width:1900px;height:94vh;max-height:94vh;padding:16px;border-radius:6px;overflow:hidden}
#stockGridDialog[open]{display:flex;flex-direction:column;gap:12px}.grid-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.grid-toolbar h2{margin:0 auto 0 0}.stock-zoom{display:flex;align-items:center;gap:5px}.stock-zoom select{width:90px;padding:7px}.stock-zoom button{padding:7px 10px}.grid-message{min-height:22px;color:#465149;overflow-wrap:anywhere}.grid-viewport{overflow:auto;flex:1;min-height:0;border:1px solid #cbd5ce;background:#fff}.grid-content{min-width:900px;padding:12px}.grid-content .matrix-scroll{overflow:visible}.grid-content .matrix-actions{display:none}.grid-content .stock-matrix{margin-bottom:20px}.grid-content .grid-qty{width:90px;min-width:70px;border:1px solid transparent;border-radius:0;background:transparent;text-align:center;padding:7px;color:#17211b}.grid-content .grid-qty:hover{border-color:#80968a}.grid-content .grid-qty:focus{outline:2px solid #00a3a3;background:#fff}.grid-content .grid-edited{background:#fff!important;box-shadow:inset 0 -3px #00a3a3}.grid-content .platform-temu{background:#fff0a8}.grid-content .platform-shein{background:#bce9fb}.grid-content .matrix-wip{background:#f1f4f5}.grid-content td,.grid-content th{border:1px solid #a2afa7}.grid-content .matrix-slow{background:#ffe081}.grid-content input::-webkit-inner-spin-button{appearance:none}.sheet-scroll td{border-right:1px solid #dce4de;border-bottom:1px solid #dce4de}.sheet-scroll td input,.sheet-scroll td select,.sheet-scroll td textarea{border-radius:2px}
@media(max-width:700px){#stockSheetDialog{width:calc(100vw - 12px)}.sheet-body{padding:10px}.sheet-scroll td:last-child{position:static}.sheet-scroll{max-height:60vh}}
#stockGridDialog{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;gap:8px;background:#f7f8fa}
.grid-formula{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.grid-address{min-width:64px;text-align:center;padding:7px;border:1px solid #d7dce2;background:#fff}.grid-search{max-width:300px;padding:7px;border-radius:2px}.grid-formula .grid-message{font-size:12px;flex:1;min-width:220px}.grid-tabs{display:flex;gap:0;overflow:auto;flex-shrink:0;background:#eef0f3;border-top:1px solid #d2d7df}.grid-tabs button{white-space:nowrap;border-radius:0;background:transparent;color:#394451;font-size:13px;padding:10px 18px;border-right:1px solid #d2d7df}.grid-tabs button[aria-selected=true]{background:#fff;color:#146d4c;box-shadow:inset 0 -3px #146d4c}.grid-viewport{border-color:#d7dce2}.grid-content{padding:0;min-width:0;width:max-content;min-height:100%}.workbook-table{table-layout:fixed;width:2318px;border-collapse:separate;border-spacing:0;font-size:13px}.workbook-table col{width:110px}.workbook-table .col-row{width:44px}.workbook-table .col-image{width:90px}.workbook-table .col-code{width:140px}.workbook-table .col-name{width:170px}.workbook-table .col-platform{width:160px}.workbook-table .col-qty{width:84px}.workbook-table .col-note{width:260px}
.grid-content .workbook-table td,.grid-content .workbook-table th{border:0;border-right:1px solid #dfe3e8;border-bottom:1px solid #dfe3e8;padding:0 8px;overflow-wrap:anywhere;font-weight:400;height:34px;background:#fff;text-align:center}.workbook-table thead{position:sticky;top:0;z-index:5}.grid-content .workbook-table thead th{background:#f0f2f5;color:#46505d;height:28px}.grid-content .workbook-table .grid-headings th{background:#e8eeeb;height:38px;font-weight:600}.grid-content .workbook-table .grid-row-number{position:sticky;left:0;z-index:3;background:#f0f2f5;color:#66717e}.grid-content .workbook-table .grid-picture{position:sticky;left:44px;z-index:3;background:#fff}.grid-content .workbook-table .grid-code{position:sticky;left:134px;z-index:3;background:#fff;border-right:2px solid #a8b6c4;font-weight:600}.workbook-table .grid-picture img.thumb{width:64px;height:64px;object-fit:contain;display:block;margin:4px auto}.grid-content .workbook-table .grid-qty,.grid-content .workbook-table .grid-note{width:100%;height:100%;min-width:0;border:0;border-radius:0;padding:8px 2px;font-size:13px;background:transparent}.grid-content .workbook-table .grid-note{text-align:left}.grid-content .workbook-table td:has(input){padding:0}.workbook-table input:focus{outline:2px solid #00a3a3;outline-offset:-2px}.grid-content .workbook-table .grid-row-total{font-weight:600}.grid-content .workbook-table .grid-readonly{background:#f1f4f7;color:#536575}.grid-content .workbook-table .grid-temu{background:#fff0a8}.grid-content .workbook-table .grid-shein{background:#bce9fb}.workbook-table small{display:block;font-size:11px}.grid-blank td{height:34px}.grid-toolbar h2{font-size:18px}.grid-toolbar button{border-radius:4px}
@media(max-width:700px){#stockGridDialog{padding:8px}.grid-formula .grid-message{flex-basis:100%}.grid-search{flex:1;min-width:0}.grid-toolbar{gap:6px}.grid-content .workbook-table .grid-code,.grid-content .workbook-table .grid-picture{position:static}}
.grid-content .workbook-table{width:2060px}.grid-content .workbook-table thead th:nth-child(1){position:sticky;left:0;z-index:7}.grid-content .workbook-table thead th:nth-child(2){position:sticky;left:44px;z-index:7}.grid-content .workbook-table thead th:nth-child(3){position:sticky;left:134px;z-index:7;border-right:2px solid #a8b6c4}.grid-pending-only input{border:0;background:transparent;width:100%;text-align:center}
@media(max-width:700px){.grid-content .workbook-table thead th:nth-child(2),.grid-content .workbook-table thead th:nth-child(3){position:static}}
