:root{--bg:#eef7ef;--panel:#fff;--text:#1f2937;--muted:#64748b;--border:#cfe3d1;--primary:#2fa84f;--primary-dark:#127236;--accent:#1f9d49;--warning:#b45309;--danger:#b91c1c}*{box-sizing:border-box}body{color:var(--text);background:radial-gradient(circle at 0 0,#f8fff8 0,#eef7ef 38%,#e7f2ea 100%);margin:0;font-family:Segoe UI,Arial,sans-serif;font-size:15px;line-height:1.45;overflow-x:hidden}a{color:inherit;text-decoration:none}.shell{grid-template-columns:240px 1fr;min-height:100vh;transition:grid-template-columns .18s;display:grid}.shell.sidebar-collapsed{grid-template-columns:72px 1fr}.sidebar{color:#fff;background:linear-gradient(#0f5f2d,#0b3f23);padding:20px;transition:padding .18s;box-shadow:5px 0 18px #0d50262e}.sidebar-top{justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px;display:flex}.brand{letter-spacing:.08em;color:#eaffea;text-shadow:0 1px #00000026;white-space:nowrap;text-overflow:clip;min-width:0;font-size:20px;font-weight:900;overflow:hidden}.sidebar-toggle{color:#fff;width:32px;height:32px;min-height:32px;box-shadow:none;background:#ffffff1f;border:1px solid #ffffff2e;border-radius:6px;flex:none;padding:0;font-size:20px;line-height:1}.sidebar-toggle:hover{background:#ffffff38}.role-card{background:#ffffff0f;border:1px solid #ffffff29;border-radius:8px;gap:4px;margin-bottom:18px;padding:12px;display:grid}.role-card span{color:#94a3b8;font-size:12px}.role-card strong{color:#fff}.sidebar nav{gap:8px;display:grid}.sidebar a{color:#e8ffe9;border-radius:6px;align-items:center;gap:9px;padding:10px 12px;display:flex}.sidebar a:hover,.sidebar a.active{background:#ffffff29}.sidebar-logout{background:#254f2c;width:100%;margin-top:18px}.sidebar-collapsed .sidebar{padding:14px 10px}.sidebar-collapsed .sidebar-top{justify-content:center}.sidebar-collapsed .brand,.sidebar-collapsed .role-card,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed .sidebar a,.sidebar-collapsed .sidebar-logout{justify-content:center;padding:11px 0}.sidebar-collapsed .sidebar a span:first-child,.sidebar-collapsed .sidebar-logout span:first-child{font-size:18px}.sidebar-collapsed .sidebar-toggle{width:42px}.main{min-width:0;padding:22px 28px 28px}.app-footer{color:var(--muted);text-align:center;padding:24px 0 4px;font-size:13px}.app-header{background:linear-gradient(90deg,#fff,#f2fff3);border:1px solid #bee2c4;border-radius:10px;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px;padding:14px 18px;display:flex;box-shadow:0 10px 24px #12723614}.app-header-brand{align-items:center;gap:14px;min-width:0;display:flex}.app-header-brand img{object-fit:contain;flex:none;width:86px;height:54px}.app-company{color:#0f5f2d;letter-spacing:.02em;font-size:19px;font-weight:900}.app-subtitle{color:#64748b;font-size:13px;font-weight:600}.app-user{color:#174822;text-align:right;background:#e8f7eb;border-radius:8px;gap:2px;min-width:160px;padding:9px 12px;display:grid}.app-user span{color:#475569;font-size:12px;font-weight:700}.app-user strong{font-size:14px}.page-head{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.page-title{color:#164421;letter-spacing:0;margin:0;font-size:26px}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;font-size:12px;font-weight:800}.grid{gap:16px;display:grid}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1.4fr 1fr;margin-top:16px}.panel{overflow-wrap:anywhere;background:var(--panel);border:1px solid var(--border);border-radius:10px;min-width:0;max-width:100%;padding:18px;box-shadow:0 10px 26px #12723614}.grid-3 .panel{border-top:4px solid var(--primary)}.stat-card{min-height:116px;position:relative;overflow:hidden}.stat-card .stat-icon{width:38px;height:38px;color:var(--primary-dark);background:#e8f7eb;border-radius:10px;place-items:center;font-size:20px;display:grid;position:absolute;top:14px;right:16px}.factory-header{border:1px solid #bee2c4;border-left:6px solid var(--primary);background:linear-gradient(90deg,#fff,#f2fff3);border-radius:10px;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px;padding:18px;display:flex;box-shadow:0 10px 24px #12723614}.factory-header h1{color:var(--primary);margin:0 0 6px;font-size:24px}.factory-header p{color:var(--muted);margin:0}.factory-status{text-align:right;color:var(--danger);gap:6px;display:grid}.factory-status span{color:var(--accent);font-weight:700}.workbar{border-left:5px solid var(--primary);background:#e7f7e9;border-radius:8px;align-items:end;gap:14px;margin-bottom:16px;padding:14px;display:flex}.workbar label{min-width:180px}.workbar-note{color:#475569;padding-bottom:9px;font-size:14px}.panel h2{color:#174822;margin:0 0 14px;font-size:18px}.section-title{align-items:center;gap:8px;display:flex}.stat{color:var(--primary-dark);margin-top:8px;font-size:34px;font-weight:900}.muted{color:var(--muted)}.table{border-collapse:collapse;border:1px solid var(--border);background:#fff;width:100%}.table th,.table td{border-bottom:1px solid var(--border);text-align:left;padding:10px;line-height:1.35}.table th{color:#174822;background:#e8f7eb;font-size:13px;font-weight:900}.table.compact td{padding:8px 10px}.table th,.table td{-webkit-user-select:none;user-select:none}.table input,.table select,.table textarea,.table button,.table a{-webkit-user-select:text;user-select:text}.spreadsheet-cell-selected{box-shadow:inset 0 0 0 1px #38bdf8;background:#dff4ff!important}.spreadsheet-cell-anchor{box-shadow:inset 0 0 0 2px #0284c7}.spreadsheet-copy-toast{z-index:9999;color:#fff;pointer-events:none;background:#0f5f2d;border-radius:8px;padding:10px 14px;font-weight:800;position:fixed;bottom:22px;right:22px;box-shadow:0 12px 28px #0f5f2d38}.history-table{border-collapse:separate;border-spacing:0}.history-table th,.history-table td{border-bottom:1px solid #16653424;border-right:1px solid #16653424}.history-table th:last-child,.history-table td:last-child{border-right:0}.date-group-row td,.date-group-card{color:var(--green-900);background:#eef8f0;border-top:1px solid #bfe6c7;border-bottom:1px solid #bfe6c7;font-weight:800}.date-group-card{border-radius:8px;margin:12px 0 6px;padding:8px 12px}.table-scroll{border:1px solid var(--border);border-radius:8px;width:100%;max-width:100%;overflow-x:auto}.table-scroll .table{border:0}.supply-transaction-scroll{max-height:calc(100vh - 140px);overflow:auto}.supply-transaction-table{min-width:1180px}.supply-transaction-table th{z-index:6;vertical-align:middle;position:sticky;top:0;box-shadow:0 1px #86efac}.supply-transaction-table td{vertical-align:middle}.finished-goods-history-top-scroll{background:#f0fbf2;border:1px solid #b7dfbe;border-radius:6px;width:100%;height:18px;margin:8px 0 6px;overflow:auto hidden}.finished-goods-history-scroll-track{width:2060px;height:1px}.finished-goods-history-scroll-track.history-in-track{width:1760px}.finished-goods-history-scroll-track.history-out-track{width:2060px}.finished-goods-history-scroll{max-height:calc(100vh - 300px);padding-bottom:6px;overflow:auto}.finished-goods-history-table{table-layout:fixed;width:2060px;min-width:2060px}.finished-goods-history-table.history-in-table{width:1760px;min-width:1760px}.finished-goods-history-table.history-out-table{width:2060px;min-width:2060px}.finished-goods-history-table th,.finished-goods-history-table td{vertical-align:middle;word-break:normal;overflow-wrap:normal;padding:10px 12px}.finished-goods-history-table th{z-index:5;white-space:normal;text-align:center;background:#e8f7eb;line-height:1.2;position:sticky;top:0;box-shadow:0 1px #86efac}.finished-goods-history-table td{white-space:nowrap;text-overflow:ellipsis;background:#fff;overflow:hidden}.finished-goods-history-table th:first-child,.finished-goods-history-table td:first-child{width:105px}.finished-goods-history-table th:nth-child(2),.finished-goods-history-table td:nth-child(2){width:150px}.finished-goods-history-table th:nth-child(3),.finished-goods-history-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere;width:220px;display:table-cell}.finished-goods-history-table th:nth-child(4),.finished-goods-history-table td:nth-child(4){white-space:normal;overflow-wrap:anywhere;width:280px;display:table-cell}.finished-goods-history-table th:nth-child(5),.finished-goods-history-table td:nth-child(5){width:135px}.finished-goods-history-table th:nth-child(6),.finished-goods-history-table td:nth-child(6){text-align:center;width:72px}.finished-goods-history-table th:nth-child(7),.finished-goods-history-table td:nth-child(7){width:105px}.finished-goods-history-table th:nth-child(8),.finished-goods-history-table td:nth-child(8){width:155px}.finished-goods-history-table th:nth-child(9),.finished-goods-history-table td:nth-child(9),.finished-goods-history-table th:nth-child(10),.finished-goods-history-table td:nth-child(10){width:92px}.finished-goods-history-table th:nth-child(11),.finished-goods-history-table td:nth-child(11){width:118px}.finished-goods-history-table th:nth-child(12),.finished-goods-history-table td:nth-child(12){white-space:normal;overflow-wrap:anywhere;width:280px}.finished-goods-history-table th:nth-child(13),.finished-goods-history-table td:nth-child(13){white-space:normal;overflow-wrap:anywhere;width:150px}.finished-goods-history-table th:nth-child(14),.finished-goods-history-table td:nth-child(14){width:115px}.finished-goods-history-table.history-in-table th:nth-child(3),.finished-goods-history-table.history-in-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere;width:300px}.finished-goods-history-table.history-in-table th:nth-child(4),.finished-goods-history-table.history-in-table td:nth-child(4){white-space:nowrap;width:145px}.finished-goods-history-table.history-in-table th:nth-child(5),.finished-goods-history-table.history-in-table td:nth-child(5){text-align:center;width:72px}.finished-goods-history-table.history-in-table th:nth-child(6),.finished-goods-history-table.history-in-table td:nth-child(6){width:105px}.finished-goods-history-table.history-in-table th:nth-child(7),.finished-goods-history-table.history-in-table td:nth-child(7){width:155px}.finished-goods-history-table.history-in-table th:nth-child(8),.finished-goods-history-table.history-in-table td:nth-child(8),.finished-goods-history-table.history-in-table th:nth-child(9),.finished-goods-history-table.history-in-table td:nth-child(9){width:92px}.finished-goods-history-table.history-in-table th:nth-child(10),.finished-goods-history-table.history-in-table td:nth-child(10){width:118px}.finished-goods-history-table.history-in-table th:nth-child(11),.finished-goods-history-table.history-in-table td:nth-child(11){white-space:normal;overflow-wrap:anywhere;width:280px}.finished-goods-history-table.history-in-table th:nth-child(12),.finished-goods-history-table.history-in-table td:nth-child(12){white-space:normal;overflow-wrap:anywhere;width:150px}.finished-goods-history-table .table-note-clip{text-overflow:ellipsis;white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-width:none;max-height:54px;display:-webkit-box;overflow:hidden}.planning-table{min-width:1680px}.planning-table th{white-space:normal;vertical-align:middle}.planning-table td{vertical-align:middle}.planning-table .number-cell{text-align:right;white-space:nowrap;font-weight:800}.planning-ok-row td{background:#fbfffc}.planning-shortage-row td{background:#fff7ed}.planning-shortage-row td:first-child{border-left:4px solid var(--warning)}.planning-input-table{table-layout:fixed;min-width:1780px}.planning-input-table th:first-child,.planning-input-table td:first-child{text-align:center;width:64px}.planning-input-table th:nth-child(2),.planning-input-table td:nth-child(2){width:220px}.planning-input-table th:nth-child(3),.planning-input-table td:nth-child(3){width:520px}.planning-input-table th:nth-child(4),.planning-input-table td:nth-child(4),.planning-input-table th:nth-child(5),.planning-input-table td:nth-child(5){width:160px}.planning-input-table th:nth-child(6),.planning-input-table td:nth-child(6){width:280px}.planning-input-table th:nth-child(7),.planning-input-table td:nth-child(7){width:150px}.planning-input-table th:nth-child(8),.planning-input-table td:nth-child(8){width:220px}.planning-input-table th:nth-child(9),.planning-input-table td:nth-child(9){text-align:center;width:76px}.planning-input-table .searchable-menu{min-width:520px;max-height:330px}.mapping-editor{grid-template-columns:minmax(240px,1fr) auto;align-items:center;gap:8px;min-width:430px;margin-top:8px;display:grid}.mapping-editor .searchable-menu{min-width:360px;max-height:280px}.warehouse-packaging-scroll{cursor:grab;overscroll-behavior-x:contain;padding-bottom:6px}.warehouse-packaging-scroll.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.warehouse-packaging-table{table-layout:fixed;min-width:1380px}.warehouse-packaging-table th,.warehouse-packaging-table td{vertical-align:middle;overflow-wrap:normal;word-break:normal}.warehouse-packaging-table .product-code-cell{width:210px}.warehouse-packaging-table .product-name-cell{width:340px}.warehouse-packaging-table .quantity-cell{white-space:nowrap;width:120px}.warehouse-packaging-table .packaging-cell{width:300px}.warehouse-packaging-table .jb-quantity-cell{white-space:nowrap;width:130px}.warehouse-packaging-table td:nth-child(2){min-width:340px}.warehouse-packaging-table td:nth-child(3),.warehouse-packaging-table td:nth-child(6){white-space:nowrap}.excel-entry-scroll{padding-bottom:280px}.excel-entry-table{table-layout:fixed;min-width:1880px}.excel-entry-table th,.excel-entry-table td{vertical-align:middle}.excel-entry-table th{white-space:normal;padding:12px 10px;line-height:1.25}.excel-entry-table td{white-space:nowrap;padding:9px 10px}.excel-entry-table th:first-child,.excel-entry-table td:first-child{width:140px}.excel-entry-table th:nth-child(2),.excel-entry-table td:nth-child(2){width:150px}.excel-entry-table th:nth-child(3),.excel-entry-table td:nth-child(3){width:260px}.excel-entry-table th:nth-child(4),.excel-entry-table td:nth-child(4){width:520px}.excel-entry-table th:nth-child(5),.excel-entry-table td:nth-child(5){width:190px}.excel-entry-table th:nth-child(6),.excel-entry-table td:nth-child(6){text-align:center;width:130px}.excel-entry-table th:nth-child(7),.excel-entry-table td:nth-child(7){width:190px}.excel-entry-table th:nth-child(8),.excel-entry-table td:nth-child(8),.excel-entry-table th:nth-child(9),.excel-entry-table td:nth-child(9){width:150px}.excel-entry-table th:nth-child(10),.excel-entry-table td:nth-child(10){width:360px}.excel-entry-table input,.excel-entry-table select{width:100%;min-height:42px;padding:8px 10px}.excel-entry-table .number-input{text-align:right}.excel-entry-table .excel-product-cell .searchable-select{min-width:500px}.excel-entry-table .searchable-menu{min-width:520px;max-height:340px}.excel-entry-table .row-actions-cell{width:170px}.subpanel{border:1px solid var(--border);background:#f8fff8;border-radius:8px;margin-top:18px;padding:14px}.section-row{justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px;display:flex}.section-row .section-title{margin-bottom:4px}.segmented-control{border:1px solid var(--border);background:#f8fff8;border-radius:8px;gap:6px;padding:4px;display:inline-flex}.segmented-control button{color:#174822;min-height:36px;box-shadow:none;background:0 0;padding:8px 12px}.segmented-control button.active{background:var(--accent);color:#fff;box-shadow:0 5px 12px #1f9d492e}.warning-row td{background:#fff7ed}.pill{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:3px 9px;font-size:12px;font-weight:900;display:inline-flex}.pill.success{color:#166534;background:#dcfce7}.pill.warning{color:#92400e;background:#fef3c7}.empty-cell{color:var(--muted);font-weight:800;text-align:center!important}.compact-label{min-width:180px;max-width:220px}.transaction-edit-table{table-layout:fixed;min-width:1420px}.transaction-edit-table th:nth-child(3),.transaction-edit-table td:nth-child(3){width:360px}.transaction-edit-table .fg-note-cell{min-width:320px}.excel-entry-table .fg-note-cell{min-width:360px}.table-note-clip{text-overflow:ellipsis;white-space:nowrap;max-width:360px;display:block;overflow:hidden}.payroll-note-cell{white-space:normal;color:#24403a;min-width:280px;max-width:460px;line-height:1.35}.payroll-note-cell.has-note{background:#f6fff8;border-left:3px solid #16a34a59}.payroll-note-tags{flex-wrap:wrap;gap:6px;margin-bottom:4px;display:flex}.payroll-note-tags span{color:#166534;background:#dcfce7;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:800;display:inline-flex}.voucher-separator-row td{color:#064e3b;background:#eef8ef;border-top:2px solid #86efac;font-weight:800;padding:8px 12px!important}.transaction-edit-table input,.transaction-edit-table select{min-height:38px;padding:7px 8px}.transaction-edit-table .searchable-menu{min-width:480px;max-height:320px}.kcs-preview-table{table-layout:fixed;min-width:1450px}.kcs-preview-table th,.kcs-preview-table td{vertical-align:middle;text-align:center;padding:7px}.kcs-preview-table th:first-child{width:52px}.kcs-preview-table th:nth-child(2){width:220px}.kcs-preview-table th:nth-child(3){width:180px}.kcs-preview-table th:nth-child(4),.kcs-preview-table th:nth-child(5){width:100px}.kcs-preview-table th:nth-child(6){width:210px}.kcs-preview-table th:nth-child(7){width:150px}.kcs-preview-table th:nth-child(11),.kcs-preview-table td:nth-child(11){text-align:left;width:330px;min-width:330px}.kcs-preview-table input,.kcs-preview-table select{min-height:36px;padding:6px 7px;font-size:13px}.kcs-preview-table .searchable-menu{text-align:left}.quality-test-table{min-width:1680px}.quality-test-table .quality-machine-column{width:180px;min-width:180px}.quality-test-table .quality-product-column{width:420px;min-width:420px}.quality-test-table .quality-product-column .searchable-select{min-width:400px}.quality-test-table .quality-machine-column .searchable-select{min-width:160px}.quality-product-check-table{min-width:1120px}.quality-product-check-table .quality-product-check-product{min-width:360px}.quality-product-check-table input[type=checkbox]{width:18px;height:18px;padding:0}.quality-product-check-table textarea{resize:vertical;min-height:126px}.preview-note-stack{gap:6px;min-width:300px;display:grid}.preview-note-stack input{width:100%}.preview-note-stack .mini-button{width:max-content}.modal-backdrop{z-index:80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f172a6b;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal-card{background:#fff;border:1px solid #2fa84f3d;border-radius:12px;gap:14px;width:min(720px,100%);max-height:calc(100vh - 36px);padding:20px;display:grid;overflow:auto;box-shadow:0 24px 70px #0f172a4d}.modal-card.wide{width:min(980px,100%)}.modal-head{z-index:2;border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:flex-start;gap:14px;margin:-20px -20px 0;padding:18px 20px 14px;display:flex;position:sticky;top:-20px}.modal-head h2{color:var(--ink);margin:0 0 4px;font-size:22px}.modal-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.daily-work-card{background:#fff;border:1px solid #2fa84f47;border-radius:14px;gap:14px;width:min(520px,100%);padding:22px;display:grid;box-shadow:0 24px 70px #0f172a47}.daily-work-card h3{color:var(--ink);margin:2px 0 4px;font-size:22px}.daily-work-card textarea{resize:vertical;min-height:88px}.transfer-inline-panel{background:#fffbeb;border:1px solid #d977064d;border-radius:8px;gap:12px;margin-bottom:18px;padding:14px;display:grid}.transfer-inline-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.transfer-inline-head .section-title{margin:2px 0 0}.flash-backdrop{z-index:110}.flash-card{background:#fff;border:1px solid #2fa84f3d;border-radius:14px;grid-template-columns:56px 1fr;gap:16px;width:min(520px,100%);padding:22px;display:grid;position:relative;box-shadow:0 24px 70px #0f172a4d}.flash-close{color:#334155;width:30px;height:30px;box-shadow:none;background:#f1f5f9;border:0;border-radius:999px;place-items:center;font-size:22px;font-weight:900;line-height:1;display:grid;position:absolute;top:10px;left:10px}.flash-close:hover{color:#0f172a;box-shadow:none;background:#e2e8f0;transform:none}.flash-card h3{color:var(--ink);margin:2px 0 6px;font-size:22px;line-height:1.2}.flash-card p{margin:0;line-height:1.5}.flash-card .actions{margin-top:16px}.flash-icon{width:48px;height:48px;color:var(--primary);background:#e7f7ec;border-radius:999px;place-items:center;font-size:26px;font-weight:900;display:grid}.flash-card.success{border-color:#16a34a52}.flash-card.error{border-color:#dc262647}.flash-card.error .flash-icon{color:var(--danger);background:#fef2f2}.flash-card.warning{border-color:#d9770652}.flash-card.warning .flash-icon{color:var(--warning);background:#fffbeb}.flash-card.info .flash-icon{color:#2563eb;background:#eff6ff}.flash-form{gap:12px;margin-top:14px;display:grid}.flash-form textarea{resize:vertical;min-height:110px}.daily-work-preview{color:#174822;background:#eefaf0;border:1px dashed #2fa84f75;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:800}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.kcs-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.form-wide{grid-column:span 2}.checkbox-field{align-items:center;gap:10px;min-height:44px;display:flex}.checkbox-field input{flex:none;width:18px;height:18px;padding:0}.checkbox-field input:focus{outline-offset:2px}label{color:#475569;gap:6px;font-size:13px;font-weight:700;display:grid}input,select,textarea{border:1px solid var(--border);color:#111827;width:100%;font:inherit;background:#fff;border-radius:6px;padding:10px}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:2px solid #2fa84f38}.searchable-select{width:100%;position:relative}.searchable-menu{z-index:20;border:1px solid var(--border);background:#fff;border-radius:8px;max-height:260px;padding:6px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 14px 30px #0f172a24}.searchable-menu-portal{z-index:10000;position:fixed;right:auto}.searchable-option{color:#111827;text-align:left;width:100%;min-height:0;box-shadow:none;background:0 0;border-radius:6px;padding:9px 10px;font-weight:700;display:block}.searchable-option:hover,.searchable-option:focus{color:#174822;background:#e8f7eb}.searchable-empty{color:var(--muted);padding:10px;font-size:13px;font-weight:700}.password-field{gap:8px;width:100%;display:grid}.show-password{color:#475569;cursor:pointer;align-items:center;gap:8px;width:max-content;font-size:13px;font-weight:700;display:inline-flex}.show-password input{width:16px;height:16px;accent-color:var(--primary);cursor:pointer;padding:0}button,.button{color:#fff;background:var(--accent);cursor:pointer;border:0;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:10px 14px;font-weight:800;display:inline-flex;box-shadow:0 5px 12px #1f9d492e}button:disabled{opacity:.55;cursor:not-allowed}.button-danger{background:var(--danger)}.button-warning{background:var(--warning)}.button-dark{background:#1f2937}.button-secondary{background:#0f766e}.mini-button{background:var(--warning);white-space:nowrap;border-radius:4px;padding:5px 8px;font-size:12px}.actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.stone-inventory-page .page-title{align-items:flex-start;gap:16px}.stone-header-actions{justify-content:flex-end;min-width:120px;display:flex}.stone-tabs{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 16px;display:flex}.stone-tabs button{margin:0}.stone-entry-scroll{cursor:grab;overscroll-behavior-x:contain;border-radius:8px;padding-bottom:6px}.stone-entry-scroll.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.stone-receipt-table{table-layout:fixed;min-width:1680px}.stone-receipt-table th,.stone-receipt-table td{vertical-align:middle;border-bottom:1px solid #16653424;border-right:1px solid #16653424}.stone-receipt-table th:last-child,.stone-receipt-table td:last-child{border-right:0}.stone-receipt-table th{white-space:normal;text-align:center;line-height:1.2}.stone-receipt-table th:first-child,.stone-receipt-table td:first-child{text-align:center;width:54px}.stone-receipt-table th:nth-child(2),.stone-receipt-table td:nth-child(2),.stone-receipt-table th:nth-child(3),.stone-receipt-table td:nth-child(3){width:140px}.stone-receipt-table th:nth-child(4),.stone-receipt-table td:nth-child(4){width:150px}.stone-receipt-table th:nth-child(5),.stone-receipt-table td:nth-child(5){text-align:center;width:80px}.stone-receipt-table th:nth-child(6),.stone-receipt-table td:nth-child(6){width:280px}.stone-receipt-table th:nth-child(n+7):nth-child(-n+12),.stone-receipt-table td:nth-child(n+7):nth-child(-n+12){width:128px}.stone-receipt-table th:nth-child(13),.stone-receipt-table td:nth-child(13){width:260px}.stone-receipt-table input{min-height:38px;padding:7px 8px}.stone-receipt-table .number-input{text-align:right}.stone-receipt-display-table th:nth-child(6),.stone-receipt-display-table td:nth-child(6){width:190px}.stone-receipt-display-table th:nth-child(7),.stone-receipt-display-table td:nth-child(7){width:260px}.stone-receipt-display-table th:nth-child(n+8):nth-child(-n+13),.stone-receipt-display-table td:nth-child(n+8):nth-child(-n+13){width:128px}.stone-receipt-display-table th:nth-child(14),.stone-receipt-display-table td:nth-child(14){width:260px}.stone-receipt-display-table th:last-child,.stone-receipt-display-table td:last-child{white-space:nowrap;width:150px;min-width:150px}.stone-receipt-display-table td:last-child .actions{flex-wrap:nowrap;gap:6px;margin-top:0}.stone-receipt-display-table td:last-child button{white-space:nowrap}.stone-stock-table{table-layout:auto;min-width:1180px}.stone-stock-table th,.stone-stock-table td{vertical-align:middle;border-bottom:1px solid #16653424;border-right:1px solid #16653424}.stone-stock-table th:last-child,.stone-stock-table td:last-child{border-right:0}.stone-stock-table th{text-align:center;white-space:normal;line-height:1.2}.stone-stock-table th:first-child,.stone-stock-table td:first-child{text-align:center;width:56px}.stone-stock-table th:nth-child(2),.stone-stock-table td:nth-child(2),.stone-stock-table th:nth-child(3),.stone-stock-table td:nth-child(3){min-width:210px}.stone-stock-table .number-cell{min-width:88px}.stone-summary-strip{margin:0 0 14px}.stone-type-cell .searchable-menu{min-width:420px}.stone-inline-fields{grid-template-columns:1fr 1fr;gap:6px;margin-top:6px;display:grid}.inline-field{color:var(--text);align-items:center;gap:8px;font-weight:700;display:inline-flex}.inline-field input{max-width:170px;min-height:42px}.compact-actions{margin-top:12px}.status{color:#146b31;background:#dff4e3;border-radius:999px;align-items:center;gap:5px;padding:5px 9px;font-size:12px;font-weight:800;display:inline-flex}.status.warning{color:#92400e;background:#fef3c7}.status.success{color:#166534;background:#dcfce7}.status.muted{color:#475569;background:#eef2f7}.selection-summary{color:#475569;background:#f8fafc;border-radius:6px;flex-wrap:wrap;gap:10px;margin-top:14px;padding:10px;display:flex}.worker-picker{border-top:1px solid var(--border);grid-template-columns:2fr 1fr auto;align-items:end;gap:12px;margin-top:14px;padding-top:14px;display:grid}.worker-tags{flex-wrap:wrap;align-items:center;gap:8px;min-height:32px;margin-top:12px;display:flex}.worker-tag{color:#146b31;background:#dff4e3;border-radius:999px;align-items:center;gap:8px;padding:5px 8px;font-size:13px;font-weight:800;display:inline-flex}.worker-tag button{background:#1f9d49;border-radius:999px;min-width:22px;height:22px;padding:0 5px}.product-submit-actions{background:#f0fbf3;border:1px solid #bfe8c8;border-radius:8px;margin-top:14px;padding:12px}.shift-actions{border-top:1px solid var(--border);margin-top:16px;padding-top:14px}.kcs-calculator{max-width:420px;padding:12px}.calculator-display{grid-template-columns:1fr 58px;gap:8px;display:grid}.calculator-buttons{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px;display:grid}.calculator-buttons button{min-height:38px;box-shadow:none;padding:8px}.worker-quantity-list{gap:6px;min-width:240px;display:grid}.worker-quantity-item{grid-template-columns:minmax(120px,1fr) 92px;align-items:center;gap:8px;font-size:12px;display:grid}.worker-quantity-item input{text-align:right;min-height:34px;padding:6px 8px}.total-check-row td{color:#174822;background:#f8fafc;font-weight:800}.total-check-row.warning td{color:#92400e;background:#fffbeb}.sub-panel{border:1px solid var(--border);background:#f8fff8;border-radius:8px;margin-top:16px;padding:14px}.sub-panel h3{color:#174822;margin:0 0 6px;font-size:16px}.sub-panel p{margin:0 0 12px}.warehouse-grid{grid-template-columns:minmax(360px,.85fr) minmax(0,1.35fr)}.row-active td{background:#ecfdf5}.ticket-summary{color:#475569;flex-wrap:wrap;gap:12px;margin-bottom:12px;display:flex}.alert-inline{border-left:4px solid var(--warning);color:#92400e;background:#fffbeb;border-radius:6px;margin-bottom:12px;padding:10px 12px;font-weight:700}.alert-inline.success{border-left-color:var(--primary);color:#166534;background:#ecfdf5}.notice-dismiss{color:#fff;box-shadow:none;background:#166534;margin-left:12px}.dismissible-notice{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.dismissible-notice>div{min-width:0}.system-notice{border:1px solid #f0d399;border-left:6px solid var(--warning);color:#78350f;background:linear-gradient(90deg,#fff7ed,#fff);border-radius:10px;justify-content:space-between;align-items:flex-start;gap:16px;margin:-6px 0 18px;padding:14px 16px;display:flex;box-shadow:0 10px 24px #92400e14}.system-notice strong{color:#92400e;margin-bottom:4px;font-size:16px;display:block}.system-notice p{margin:0;font-weight:800;line-height:1.45}.system-notice span{color:#92400e;margin-top:6px;font-size:13px;font-weight:800;display:block}.publication-notice{border:1px solid #f0d399;border-left:6px solid var(--warning);background:linear-gradient(90deg,#fffaf0,#fff);border-radius:10px;grid-template-columns:58px 1fr;align-items:start;gap:16px;padding:18px;display:grid;position:relative;box-shadow:0 10px 24px #92400e14}.publication-notice-shell{position:relative}.publication-notice-shell .publication-notice{padding-right:96px}.notice-dismiss-float{position:absolute;top:12px;right:12px}.notice-icon{color:#92400e;background:#fef3c7;border-radius:999px;place-items:center;width:46px;height:46px;font-size:28px;font-weight:900;display:grid}.notice-content h2{color:#174822;margin:0 0 8px;font-size:20px}.notice-content p{margin:0 0 14px}.notice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.notice-grid div{background:#fff;border:1px solid #f0d399;border-radius:8px;padding:12px}.notice-grid span{color:var(--muted);text-transform:uppercase;margin-bottom:4px;font-size:12px;font-weight:800;display:block}.notice-grid strong{color:#174822}.empty-state{text-align:center;align-content:center;min-height:220px;display:grid}.login-page{background:linear-gradient(135deg,#f8fff8,#dff4e3);align-content:center;place-items:center;gap:18px;min-height:100vh;padding:24px;display:grid}.login-panel{border:1px solid var(--border);background:#fff;border-radius:10px;gap:24px;width:min(920px,100%);padding:28px;display:grid;box-shadow:0 18px 45px #0f172a1a}.login-panel h1{color:var(--primary);margin:0 0 8px}.login-panel-form{grid-template-columns:1.1fr .9fr;align-items:center}.login-copy{border-right:1px solid var(--border);padding-right:24px}.login-copy h1{font-size:34px}.login-form{gap:14px;padding:4px;display:grid}.login-form button{width:100%;padding:12px 14px}.login-error{border-left:4px solid var(--danger);color:var(--danger);background:#fef2f2;border-radius:6px;padding:10px 12px;font-weight:700}.login-footer{color:var(--muted);text-align:center;font-size:13px}.login-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.login-card{text-align:left;min-height:150px;color:var(--text);border:1px solid var(--border);background:#f8fafc;border-radius:8px;gap:8px;padding:16px;display:grid}.login-card:hover{border-color:var(--accent);background:#effdf1}.login-card span{color:var(--accent);text-transform:uppercase;font-size:12px;font-weight:800}.login-card strong{font-size:18px}.login-card small{color:var(--muted);line-height:1.4}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:#f8fafc;border-radius:999px;align-items:center;min-height:28px;padding:5px 9px;font-size:13px;display:inline-flex}.machine-list{flex-wrap:wrap;gap:8px;display:flex}.machine-pill{color:#065f46;background:#ecfdf5;border-radius:6px;padding:8px 10px;font-size:13px;font-weight:700;display:inline-flex}.admin-tabs{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.admin-tabs button{color:#174822;box-shadow:none;background:#e8f7eb}.admin-tabs button.active{background:var(--primary);color:#fff}.admin-block{gap:14px;display:grid}.admin-block h2{margin:0}.admin-table-wrap{border:1px solid var(--border);border-radius:8px;max-height:520px;overflow:auto}.admin-table-wrap .table{border:0}.admin-table-wrap .table th{z-index:1;position:sticky;top:0}.admin-row-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.audit-tools{border:1px solid var(--border);background:#f8fafc;border-radius:8px;grid-template-columns:180px 180px auto;align-items:end;gap:12px;padding:12px;display:grid}.inventory-toolbar{grid-template-columns:minmax(220px,1.2fr) minmax(180px,.8fr) auto;align-items:end;gap:12px;display:grid}.period-badge{color:#315346;background:#f0fbf4;border:1px solid #b7dfc2;border-radius:8px;flex-direction:column;justify-content:center;align-self:stretch;gap:3px;min-height:52px;padding:10px 14px;font-weight:700;display:flex}.period-badge strong{color:#0d4f2a;font-size:1.05rem}.inventory-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.history-filters{border:1px solid var(--border);background:#f8fafc;border-radius:8px;grid-template-columns:180px 180px auto;align-items:end;gap:12px;margin:0 0 14px;padding:12px;display:grid}.form-inline-action{align-items:end;display:flex}.form-inline-action button{width:100%;min-height:44px}.line-queue{border:1px solid var(--border);background:#f8fafc;border-radius:8px;margin:14px 0;padding:12px}.line-queue-head{color:var(--primary);justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.number-cell{font-variant-numeric:tabular-nums;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;text-align:right!important}.center-number-cell{text-align:center!important}.stock-table{border-collapse:separate;border-spacing:0;min-width:1080px}.stock-table th,.stock-table td{vertical-align:middle;overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none;border-bottom:1px solid #16653424;border-right:1px solid #16653424}.stock-table th:last-child,.stock-table td:last-child{border-right:0}.stock-table th{white-space:normal;text-align:center;padding:8px 7px;line-height:1.18}.table-scroll:has(.stock-table){max-height:calc(100vh - 230px);overflow:auto}.stock-table thead th{z-index:4;box-shadow:0 1px 0 var(--border);position:sticky;top:0}.stock-table .number-cell,.stock-table .compact-number-column{width:1%;min-width:62px;padding-left:5px;padding-right:5px}.stock-table .compact-number-column{text-align:center!important}.finished-goods-stock-table{table-layout:auto;min-width:1180px}.finished-goods-stock-table th,.finished-goods-stock-table td{white-space:nowrap}.finished-goods-stock-table th{white-space:normal}.finished-goods-stock-table th:first-child,.finished-goods-stock-table td:first-child{z-index:3;min-width:88px;box-shadow:1px 0 0 var(--border);background:#fff;position:sticky;left:0}.finished-goods-stock-table th:first-child{z-index:8;background:#e8f7eb}.finished-goods-stock-table th:nth-child(2),.finished-goods-stock-table td:nth-child(2){z-index:3;min-width:150px;max-width:190px;box-shadow:1px 0 0 var(--border);white-space:normal;overflow-wrap:anywhere;background:#fff;position:sticky;left:88px}.finished-goods-stock-table th:nth-child(2){z-index:8;background:#e8f7eb}.finished-goods-stock-table th:nth-child(3),.finished-goods-stock-table td:nth-child(3){white-space:normal;min-width:260px;max-width:360px}.finished-goods-stock-table .number-cell{min-width:62px}.finished-goods-stock-table th:last-child,.finished-goods-stock-table td:last-child{min-width:112px}.finished-goods-stock-table .total-row td:first-child,.finished-goods-stock-table .total-row td:nth-child(2){background:#ecfdf5}.materials-stock-table{table-layout:auto;min-width:980px}.materials-stock-table th{white-space:normal}.materials-stock-table td{white-space:nowrap}.materials-stock-table td:nth-child(2),.materials-stock-table td:nth-child(3){white-space:normal;min-width:210px;max-width:320px}.materials-stock-table .number-cell{min-width:62px}.materials-stock-table th:last-child,.materials-stock-table td:last-child{min-width:108px}.supply-stock-scroll{border-color:#1665342e}.supply-stock-table{table-layout:fixed;min-width:780px}.supply-stock-table th,.supply-stock-table td{border-bottom:1px solid #1665341f;border-right:1px solid #1665341f;padding:7px 8px}.supply-stock-table th{white-space:normal;line-height:1.2}.supply-stock-table td{white-space:normal}.supply-stock-table th:first-child,.supply-stock-table td:first-child{text-align:center;width:50px}.supply-stock-table[data-supply-kind=materials] th:nth-child(2),.supply-stock-table[data-supply-kind=materials] td:nth-child(2){overflow-wrap:anywhere;width:130px}.supply-stock-table[data-supply-kind=materials] th:nth-child(3),.supply-stock-table[data-supply-kind=materials] td:nth-child(3),.supply-stock-table[data-supply-kind=oils] th:nth-child(2),.supply-stock-table[data-supply-kind=oils] td:nth-child(2){overflow-wrap:anywhere;width:260px}.supply-stock-table[data-supply-kind=materials] th:nth-child(4),.supply-stock-table[data-supply-kind=materials] td:nth-child(4),.supply-stock-table[data-supply-kind=oils] th:nth-child(3),.supply-stock-table[data-supply-kind=oils] td:nth-child(3){text-align:center;white-space:nowrap;width:66px}.supply-stock-table .number-cell,.supply-stock-table[data-supply-kind=materials] th:nth-child(n+5),.supply-stock-table[data-supply-kind=oils] th:nth-child(n+4){width:86px;min-width:0;padding-left:6px;padding-right:6px}.supply-stock-table .total-row td{border-top:2px solid #22c55ed9;border-bottom:2px solid #22c55ed9}.excel-filter-header{justify-content:center;min-width:0;display:flex;position:relative}.excel-filter-trigger{width:100%;min-height:26px;color:inherit;font:inherit;box-shadow:none;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:6px;padding:3px 4px;font-weight:900;display:inline-flex}.excel-filter-icon{color:#475569;flex:none;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex;position:relative}.excel-filter-icon svg{fill:currentColor;width:14px;height:14px;display:block}.excel-filter-dot{background:#16a34a;border-radius:999px;width:5px;height:5px;position:absolute;top:0;right:0;box-shadow:0 0 0 1px #fff}.excel-filter-trigger:hover,.excel-filter-trigger.active,.excel-filter-trigger:hover .excel-filter-icon,.excel-filter-trigger.active .excel-filter-icon{color:#047857}.excel-filter-menu{z-index:30;color:#0f172a;text-align:left;background:#fff;border:1px solid #16653438;border-radius:8px;width:min(280px,80vw);padding:10px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 16px 30px #0f172a29}.excel-filter-menu input[type=text],.excel-filter-menu>input{border:1px solid #1665342e;border-radius:6px;width:100%;padding:8px 10px;font-size:13px}.excel-filter-actions{gap:8px;margin:8px 0;display:flex}.excel-filter-actions button{color:#166534;min-height:30px;box-shadow:none;background:#e8f7eb;border-radius:6px;flex:1;padding:5px 8px;font-size:12px}.excel-filter-options{gap:4px;max-height:240px;display:grid;overflow:auto}.excel-filter-options label{border-radius:5px;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;padding:5px 4px;font-size:13px;line-height:1.25;display:grid}.excel-filter-options label:hover{background:#f0fdf4}.excel-filter-options input{margin-top:1px}.excel-filter-options span{overflow-wrap:anywhere}.excel-filter-options p{color:#64748b;margin:8px 2px;font-size:13px}.duplicate-suggestion-list{gap:5px;min-width:220px;margin-top:6px;font-size:12px;display:grid}.duplicate-suggestion-list .mini-button{text-align:left;white-space:normal;justify-content:flex-start;width:100%;line-height:1.25}.table th.unit-cell,.table td.unit-cell{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;width:56px;min-width:56px;text-align:center!important}.table .total-row td{color:#064e3b;border-top:2px solid var(--primary);border-bottom:2px solid var(--primary);background:#ecfdf5;font-weight:900}.supply-transaction-table .total-row td{z-index:5;position:sticky;top:46px;box-shadow:0 1px #86efac}.threshold-editor{grid-template-columns:minmax(72px,1fr) auto;align-items:center;gap:6px;display:grid}.threshold-editor input{text-align:right;min-width:72px;padding:7px 8px}.danger-status{color:#991b1b;background:#fee2e2}.warning-status{color:#92400e;background:#fef3c7}.section-heading-row{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px;display:flex}.section-heading-row .section-title{margin-bottom:4px}.missing-rate-panel.has-warning{border-color:#f59e0b;box-shadow:0 10px 24px #f59e0b14}.missing-rate-panel td:nth-child(3),.missing-rate-panel td:nth-child(4),.missing-rate-panel td:nth-child(10),.missing-rate-panel td:nth-child(11){white-space:normal;overflow-wrap:anywhere;max-width:260px}.director-feedback-cell{min-width:260px;max-width:340px}.director-feedback-cell textarea{resize:vertical;width:100%;min-height:72px;font:inherit;background:#fff;border:1px solid #b7dfc2;border-radius:8px;padding:8px 10px;line-height:1.35}.director-feedback-cell textarea:disabled{color:#334155;background:#f8fafc}.director-feedback-cell .mini-button{margin-top:6px}.stock-row.warning td{background:#fffbeb}.stock-row.danger td{background:#fef2f2}.stock-badge{border-radius:999px;justify-content:center;min-width:76px;padding:5px 8px;font-size:12px;font-weight:900;display:inline-flex}.stock-badge.safe{color:#166534;background:#dcfce7}.stock-badge.warning{color:#92400e;background:#fef3c7}.stock-badge.danger{color:#991b1b;background:#fee2e2}.southern-packaging-page{gap:16px}.southern-packaging-page .factory-header{margin-bottom:0}.southern-control-panel{padding:14px}.southern-toolbar{grid-template-columns:repeat(3,auto) 110px 130px minmax(260px,1fr);align-items:end}.southern-toolbar>button{color:#174822;min-height:42px;box-shadow:none;background:#e8f7eb;border:1px solid #bee2c4}.southern-toolbar>button.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 5px 12px #1f9d492e}.southern-table{table-layout:auto;min-width:980px}.southern-table th,.southern-table td{vertical-align:middle;border-right:1px solid var(--border);padding:10px 12px}.southern-table th:last-child,.southern-table td:last-child{border-right:0}.southern-table th{text-align:center;white-space:nowrap}.southern-table td{background:#fff}.southern-table tbody tr:hover td{background:#f8fff8}.southern-table .mini-button+.mini-button{margin-left:6px}.kcs-input-tabs{border:1px solid var(--border);background:#f4fbf5;border-radius:8px;gap:6px;margin:0 0 14px;padding:5px;display:inline-flex}.kcs-input-tabs button{color:#174822;min-height:38px;box-shadow:none;background:0 0;border:1px solid #0000;border-radius:7px;padding:8px 14px}.kcs-input-tabs button.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 6px 14px #1f9d492e}.kcs-excel-panel .section-head{align-items:flex-start;gap:12px}.kcs-excel-scroll{max-width:100%;padding-bottom:8px;overflow:auto}.kcs-excel-table{table-layout:auto;border-collapse:collapse;min-width:1380px;margin-bottom:18px}.kcs-excel-table th,.kcs-excel-table td{vertical-align:middle;background:#fff;border:1px solid #12542b2e;padding:6px}.kcs-excel-table th{color:#063f23;text-align:center;background:#eaf8ef;font-weight:800}.kcs-excel-table .col-stt{width:48px}.kcs-excel-table .col-worker{min-width:210px}.kcs-excel-table .col-position{width:72px}.kcs-excel-table .col-machine{min-width:150px}.kcs-excel-table .col-product{min-width:300px}.kcs-excel-table .col-note{min-width:220px}.kcs-excel-table .col-action{width:82px}.kcs-excel-table input,.kcs-excel-table select{min-height:34px;padding:6px 8px}.kcs-excel-table .number-input{text-align:right;width:84px}.kcs-excel-group-tools td{background:#f8fff8}.kcs-excel-toolbar{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.kcs-excel-toolbar label{min-width:260px}.sheet-product-cell{grid-template-columns:minmax(180px,1fr) 86px;gap:6px;display:grid}.sheet-product-cell>:first-child,.sheet-product-cell>:last-child{grid-column:1/-1}.kcs-excel-total-row td{color:#064e3b;background:#f1fbf4;font-weight:800}.returned-admin-view{gap:16px;display:grid}.returned-ticket-table{min-width:1180px}.returned-detail-table{min-width:1280px}.returned-ticket-table th,.returned-detail-table th{white-space:nowrap}.returned-detail-table td{vertical-align:top;line-height:1.45}.returned-ticket-table tr.selected-row td{background:#e7f7ee;box-shadow:inset 0 1px #63d88e,inset 0 -1px #63d88e}.returned-diff-row td{background:#fff8e6}.quality-sieve-checkbox{width:18px;height:18px;accent-color:var(--primary);cursor:pointer;padding:0}.sheet-quantity-cell{align-items:center;gap:6px;display:flex}.sheet-quantity-cell .number-input{flex:auto;min-width:74px}.sheet-add-pair{border-radius:6px;flex:0 0 32px;width:32px;height:32px;padding:0;font-size:18px}.kcs-sheet-entry .section-head{margin-bottom:14px}.sheet-entry-layout{grid-template-columns:minmax(320px,.75fr) minmax(520px,1.25fr);align-items:start;gap:14px;display:grid}.sheet-entry-box{border:1px solid var(--border);background:#fff;border-radius:8px;padding:12px}.sheet-entry-box h3{color:#064e3b;margin:0 0 10px;font-size:16px}.sheet-product-grid{grid-template-columns:repeat(4,minmax(120px,1fr));align-items:end;gap:10px;display:grid}.sheet-product-grid label:nth-child(2){grid-column:span 2}.sheet-mini-table{min-width:100%;margin-top:12px}.sheet-mini-table th,.sheet-mini-table td{white-space:normal;vertical-align:middle}.center{text-align:center!important}@media (max-width:900px){body{font-size:14px}.shell,.shell.sidebar-collapsed{grid-template-columns:1fr}.sidebar{padding:14px;position:static}.sidebar-top{margin-bottom:12px}.sidebar-collapsed .sidebar{padding:10px 14px}.sidebar-collapsed .sidebar-top{justify-content:space-between}.sidebar-collapsed .brand{font-size:17px;display:block}.sidebar-collapsed .sidebar nav,.sidebar-collapsed .role-card,.sidebar-collapsed .sidebar-logout{display:none}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar a{min-height:44px;padding:10px}.main{padding:14px}.app-header{display:block}.app-header-brand{align-items:flex-start}.app-company{font-size:16px}.app-user{text-align:left;margin-top:12px}input,select,textarea{min-height:44px;font-size:16px}button,.button{min-height:44px}.actions button,.inventory-actions button{flex:160px}.table{min-width:760px}.panel{overflow-x:auto}.grid-3,.form-grid,.dashboard-grid,.login-grid,.kcs-grid,.worker-picker,.warehouse-grid,.inventory-toolbar,.southern-toolbar,.history-filters,.audit-tools,.publication-notice,.notice-grid,.sheet-entry-layout,.sheet-product-grid{grid-template-columns:1fr}.inventory-actions{justify-content:flex-start}.login-panel-form{grid-template-columns:1fr}.login-page{align-items:start;padding:14px}.login-panel{padding:18px}.login-copy h1{font-size:26px}.login-copy{border-right:0;border-bottom:1px solid var(--border);padding-bottom:18px;padding-right:0}.page-head{display:block}.form-wide{grid-column:span 1}.factory-header,.workbar{display:block}.factory-status{text-align:left;margin-top:12px}.panel:has(.stock-table){-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;overflow:auto visible}.stock-table{table-layout:auto;min-width:1180px}.stock-table th,.stock-table td{overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none}.stock-table th:first-child,.stock-table td:first-child{z-index:3;min-width:92px;box-shadow:1px 0 0 var(--border);background:#fff;position:sticky;left:0}.stock-table th:first-child{z-index:5;background:#e8f7eb}.stock-table th:nth-child(2),.stock-table td:nth-child(2){z-index:2;min-width:138px;max-width:190px;box-shadow:1px 0 0 var(--border);white-space:normal;background:#fff;position:sticky;left:92px}.stock-table th:nth-child(2){z-index:4;background:#e8f7eb}.stock-table .total-row td:nth-child(2),.stock-table .total-row td:first-child{background:#ecfdf5}.stock-table th:nth-child(3),.stock-table td:nth-child(3){white-space:normal;min-width:260px}.stock-table .number-cell,.stock-table .compact-number-column{white-space:nowrap;min-width:62px}.stock-table .unit-cell{white-space:nowrap;min-width:72px}.stock-table td:first-child:nth-last-child(n+9),.stock-table th:first-child:nth-last-child(n+9){white-space:normal}.southern-table{min-width:980px}.southern-table th,.southern-table td{overflow-wrap:normal;word-break:normal}.supply-stock-table{table-layout:fixed;min-width:780px}.supply-stock-table th:first-child,.supply-stock-table td:first-child{width:50px;min-width:0;box-shadow:none;position:static}.supply-stock-table[data-supply-kind=materials] th:nth-child(2),.supply-stock-table[data-supply-kind=materials] td:nth-child(2){width:130px;min-width:0;max-width:none;box-shadow:none;position:static}.supply-stock-table[data-supply-kind=materials] th:nth-child(3),.supply-stock-table[data-supply-kind=materials] td:nth-child(3),.supply-stock-table[data-supply-kind=oils] th:nth-child(2),.supply-stock-table[data-supply-kind=oils] td:nth-child(2){width:260px;min-width:0}.supply-stock-table .number-cell{width:86px;min-width:0}}
