body{background:#eef2f7;margin:0;font-family:Arial,sans-serif;overflow-x:hidden}.layout{min-height:100vh;display:flex}.sidebar{color:#fff;box-sizing:border-box;z-index:1000;background:linear-gradient(#0f172a 0%,#111827 100%);width:260px;height:100vh;padding:24px 18px;transition:all .3s;position:fixed;top:0;left:0;box-shadow:4px 0 20px #0000001f}.sidebar-closed .sidebar{width:0;padding:0;overflow:hidden}.logo-box{align-items:center;gap:12px;margin-bottom:40px;display:flex}.view-bill-btn{color:#fff;background:#2563eb;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:600;text-decoration:none;transition:all .3s;display:inline-block}.view-bill-btn:hover{color:#fff;background:#1d4ed8}.pallet-type-dropdown{color:#0f172a;background-color:#fff;border:1px solid #cfd6df;border-radius:12px;outline:none;width:100%;height:46px;padding:0 14px;font-size:14px}.pallet-type-dropdown:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.logo{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:52px;height:52px;font-size:18px;font-weight:700;display:flex}.logo-box h3{color:#fff;margin:0;font-size:20px}.logo-box span{color:#cbd5e1;font-size:14px}.menu-list{flex-direction:column;gap:10px;display:flex}.menu-list a{color:#cbd5e1;border-radius:14px;align-items:center;gap:12px;padding:14px 16px;font-size:15px;font-weight:600;text-decoration:none;display:flex}.menu-list a:hover,.menu-list a.active{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8)}.content-area{flex-direction:column;width:calc(100% - 260px);height:100vh;margin-left:260px;transition:all .3s;display:flex}.sidebar-closed .content-area{width:100%;margin-left:0}.topbar{box-sizing:border-box;background:#fff;border-bottom:1px solid #e5e7eb;flex-shrink:0;justify-content:space-between;align-items:center;height:68px;padding:0 24px;display:flex;box-shadow:0 4px 16px #0f172a0f}.topbar-left{align-items:center;gap:16px;display:flex}.topbar-left h3{color:#111827;margin:0;font-size:22px}.topbar-right{align-items:center;gap:16px;display:flex}.user-info{background:#f8fafc;border-radius:14px;align-items:center;gap:10px;padding:8px 14px;display:flex}.user-avatar{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;display:flex}.user-name{color:#111827;font-size:14px;font-weight:700;display:block}.user-info small{color:#6b7280;font-size:12px}.logout-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#dc2626,#b91c1c);border:none;border-radius:12px;height:42px;padding:0 18px;font-weight:700;transition:all .2s}.logout-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px #dc262640}.toggle-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:12px;width:42px;height:42px;font-size:22px}.main-content{box-sizing:border-box;flex:1;padding:30px;overflow:auto}.login-page{box-sizing:border-box;background:linear-gradient(135deg,#0f172a,#1d4ed8);justify-content:center;align-items:center;width:100%;min-height:100vh;padding:20px;display:flex}.login-card{text-align:center;background:#fff;border-radius:26px;width:100%;max-width:420px;padding:38px;box-shadow:0 24px 60px #00000047}.login-logo{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border-radius:50%;justify-content:center;align-items:center;width:70px;height:70px;margin:0 auto 20px;font-size:24px;font-weight:700;display:flex}.login-card h2{color:#111827;margin:0;font-size:32px}.login-card p{color:#6b7280;margin:8px 0 28px}.login-card input{box-sizing:border-box;border:1px solid #d1d5db;border-radius:14px;outline:none;width:100%;height:52px;margin-bottom:16px;padding:0 16px;font-size:15px}.login-card input:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb24}.password-field{margin-bottom:16px;position:relative}.password-field input{padding-right:55px;margin-bottom:0!important}.password-field .show-password-btn{cursor:pointer;position:absolute;top:50%;right:14px;transform:translateY(-50%);color:#2563eb!important;width:34px!important;height:34px!important;box-shadow:none!important;background:0 0!important;border:none!important;margin:0!important;padding:0!important;font-size:18px!important}.login-card>button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:14px;width:100%;height:54px;font-size:16px;font-weight:700}.login-error{color:#dc2626;margin-top:16px;font-weight:700}.login-logo{background:#fff;border-radius:5%;justify-content:center;align-items:center;width:300px;height:100px;margin:0 auto 20px;display:flex;overflow:hidden;box-shadow:0 10px 24px #0000002e}.login-logo img{object-fit:cover;width:100%;height:100%}.top-toast{color:#fff;z-index:99999;text-align:center;border-radius:14px;max-width:90%;padding:14px 24px;font-weight:700;animation:.3s toastSlideDown;position:fixed;top:18px;left:50%;transform:translate(-50%);box-shadow:0 12px 30px #00000038}.top-toast.success{background:#16a34a}.top-toast.error{background:#dc2626}@keyframes toastSlideDown{0%{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%)}}.form-card,.empty-card,.list-card{background:#fff;border-radius:24px;padding:30px;box-shadow:0 16px 40px #0f172a1f}.form-card{max-width:950px;margin:0 auto}.form-card h2{text-align:center}.dynamic-row,.WoodenBlock-section{align-items:center;gap:12px;margin-bottom:16px;display:flex}.dynamic-row input,.dynamic-row select,.WoodenBlock-section input{box-sizing:border-box;border:1px solid #d1d5db;border-radius:14px;outline:none;flex:1;height:50px;padding:0 16px;font-size:14px}.disabled-input{color:#374151;cursor:not-allowed;background:#f3f4f6!important}.action-buttons{gap:6px;display:flex}.add-icon-btn,.remove-btn{color:#fff;cursor:pointer;border:none;border-radius:12px;width:44px;height:44px;font-size:22px;font-weight:700}.add-icon-btn{background:#16a34a}.remove-btn{background:#dc2626}.supplier-dropdown{box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:14px;outline:none;width:100%;height:52px;padding:0 16px;font-size:14px;transition:all .2s}.supplier-dropdown:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.submit-btn,.refresh-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:14px;height:54px;font-weight:700}.submit-btn{width:100%;margin-top:26px}.list-header,.list-actions{justify-content:space-between;align-items:center;gap:20px;display:flex}.search-box{background:#f8fafc;border:1px solid #dbe3ee;border-radius:14px;align-items:center;gap:10px;width:360px;height:50px;padding:0 16px;display:flex}.search-box input{background:0 0;border:none;outline:none;width:100%}.modern-table-wrapper{border:1px solid #e5e7eb;border-radius:20px;overflow-x:auto}.modern-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1150px}.modern-table thead th{color:#fff;text-align:left;background:#111827;padding:18px;font-size:13px}.modern-table tbody td{border-bottom:1px solid #eef2f7;padding:18px}.qty-badge,.user-pill,.fanti-chip{border-radius:999px;padding:8px 12px;font-weight:700;display:inline-flex}.qty-badge{color:#166534;background:#dcfce7}.qty-badge.blue{color:#1d4ed8;background:#dbeafe}.fanti-chip{color:#3730a3;background:#eef2ff}.user-pill{color:#374151;background:#f3f4f6}.fanti-chip-list{flex-wrap:wrap;gap:8px;display:flex}@media (width<=1024px){.sidebar{width:240px}.content-area{width:calc(100% - 240px);margin-left:240px}.topbar-left h3{font-size:20px}.form-card,.empty-card,.list-card{padding:24px}}@media (width<=768px){body{overflow-x:hidden}.layout{min-height:100vh;display:block}.sidebar{width:260px;height:100vh;padding:22px 16px;overflow-y:auto;transform:translate(0)}.sidebar-closed .sidebar{width:260px;padding:22px 16px;overflow-y:auto;transform:translate(-100%)}.logo-box{margin-bottom:24px}.logo{width:44px;height:44px;font-size:16px}.logo-box h3{font-size:17px}.logo-box span{font-size:12px}.menu-list a{padding:12px 14px;font-size:14px}.content-area,.sidebar-closed .content-area{width:100%;height:auto;min-height:100vh;margin-left:0}.topbar{gap:10px;height:auto;min-height:64px;padding:10px 12px}.topbar-left{gap:10px;min-width:0;padding-left:50px}.topbar-left h3{white-space:nowrap;text-overflow:ellipsis;max-width:145px;font-size:17px;overflow:hidden}.topbar-right{gap:8px}.toggle-btn{z-index:2005;border-radius:10px;flex-shrink:0;width:38px;height:38px;font-size:20px;position:fixed;top:13px;left:276px;box-shadow:0 8px 22px #0f172a40}.sidebar-closed .toggle-btn{left:12px}.user-info{display:none}.logout-btn{border-radius:10px;height:38px;padding:0 12px;font-size:13px}.main-content{padding:14px;overflow:visible}.login-page{align-items:flex-start;padding:18px 12px}.login-card{border-radius:20px;max-width:100%;margin-top:28px;padding:24px 18px}.login-logo{width:220px;max-width:100%;height:76px}.login-card h2{font-size:25px}.login-card p{margin-bottom:20px;font-size:14px}.login-card input,.login-card>button{border-radius:12px;height:48px}.top-toast{border-radius:12px;width:calc(100% - 28px);max-width:calc(100% - 28px);padding:12px 14px;font-size:13px;top:12px}.form-card,.empty-card,.list-card{border-radius:18px;padding:18px 14px;box-shadow:0 10px 24px #0f172a1a}.form-card h2,.list-card h2,.empty-card h2{margin-top:0;font-size:20px}.dynamic-row,.WoodenBlock-section,.list-header,.list-actions{flex-direction:column;align-items:stretch;gap:10px}.dynamic-row input,.dynamic-row select,.WoodenBlock-section input,.supplier-dropdown,.pallet-type-dropdown{flex:unset;border-radius:12px;width:100%;height:48px;font-size:14px}.action-buttons{gap:10px;width:100%}.add-icon-btn,.remove-btn{border-radius:12px;flex:1;width:100%;height:44px}.submit-btn,.refresh-btn{border-radius:12px;width:100%;height:50px}.submit-btn{margin-top:18px}.search-box{box-sizing:border-box;width:100%;height:46px}.modern-table-wrapper{-webkit-overflow-scrolling:touch;border-radius:14px;width:100%;overflow-x:auto}.modern-table{min-width:950px}.modern-table thead th,.modern-table tbody td{white-space:nowrap;padding:12px;font-size:12px}.qty-badge,.user-pill,.fanti-chip{padding:6px 10px;font-size:12px}.view-bill-btn{text-align:center;box-sizing:border-box;width:100%}}@media (width<=480px){.sidebar,.sidebar-closed .sidebar{width:235px}.toggle-btn{left:249px}.sidebar-closed .toggle-btn{left:10px}.topbar-left h3{max-width:110px;font-size:16px}.logout-btn{padding:0 10px;font-size:12px}.main-content{padding:10px}.form-card,.empty-card,.list-card{border-radius:16px;padding:16px 12px}.login-card{padding:22px 14px}.login-logo{width:190px;height:66px}.login-card h2{font-size:22px}.modern-table{min-width:850px}}.material-test-card{max-width:1180px}.invoice-search-row{align-items:center}.invoice-search-row .refresh-btn{min-width:160px;margin-top:0}.field-error{color:#dc2626;margin-top:4px;font-size:12px;font-weight:600}.invoice-summary-box{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;margin-top:24px;padding:16px}.invoice-chip-row{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.invoice-chip{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:999px;padding:9px 14px;font-weight:700}.invoice-chip.active{color:#fff;background:#2563eb;border-color:#2563eb}.test-section{margin-top:22px}.test-section-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.test-section-header h3{margin-bottom:4px}.test-section-header p{color:#475569;margin:0;font-weight:600}.test-section-header span{color:#075985;white-space:nowrap;background:#e0f2fe;border-radius:999px;padding:8px 12px;font-weight:800}.test-table input{border:1px solid #cfd6df;border-radius:10px;outline:none;width:120px;min-height:38px;padding:0 10px}.test-table input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.test-table input.input-error{background:#fff5f5;border-color:#dc2626}.test-action-row{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.small-submit-btn,.secondary-btn{width:auto;min-width:150px;margin-top:0}.secondary-btn{background:#64748b}.secondary-btn:disabled,.submit-btn:disabled,.refresh-btn:disabled{opacity:.65;cursor:not-allowed}@media (width<=768px){.test-section-header,.test-action-row{flex-direction:column;align-items:stretch}.small-submit-btn,.secondary-btn,.invoice-search-row .refresh-btn{width:100%}}.pallet-stock-table{min-width:600px}.pallet-stock-table th,.pallet-stock-table td{width:50%}.pallet-type-chip{color:#3730a3;background:#eef2ff;border-radius:999px;padding:8px 14px;font-weight:700;display:inline-flex}@media (width<=768px){.pallet-stock-table{min-width:500px}}.listing-full-page .content-area{height:100vh}.listing-full-page .main-content{padding:10px;overflow:auto}.listing-full-page .list-card{box-sizing:border-box;border-radius:14px;min-height:calc(100vh - 20px);padding:14px;box-shadow:0 6px 18px #0f172a14}.listing-full-page .list-card h2{margin-top:0;margin-bottom:10px;font-size:21px}.listing-full-page .list-header,.listing-full-page .list-actions{gap:10px}.listing-full-page .search-box{height:42px}.listing-full-page .modern-table-wrapper{border-radius:12px}.listing-full-page .modern-table thead th{white-space:nowrap;padding:10px 9px;font-size:12px}.listing-full-page .modern-table tbody td{vertical-align:middle;padding:9px;font-size:12px}.listing-full-page .qty-badge,.listing-full-page .user-pill,.listing-full-page .fanti-chip{padding:5px 8px;font-size:11px}.listing-toggle-btn{z-index:2100;border-radius:10px;width:38px;height:38px;position:fixed;top:10px;left:270px;box-shadow:0 6px 18px #0f172a33}.sidebar-closed .listing-toggle-btn{left:10px}@media (width<=768px){.listing-full-page .main-content{padding:6px}.listing-full-page .list-card{border-radius:12px;min-height:calc(100vh - 12px);padding:12px 8px}.listing-full-page .list-card h2{align-items:center;min-height:38px;padding-left:46px;font-size:18px;display:flex}.listing-toggle-btn{top:10px;left:276px}.sidebar-closed .listing-toggle-btn{left:10px}}.listing-table,table{border-collapse:collapse}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.listing-table th,.listing-table td,table th,table td{border:1px solid #d9dee7}
