#app{display:flex;height:100vh;width:100%}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,sans-serif;background:#eef2f6;height:100vh;overflow:hidden}.app-container{display:flex;height:100vh;width:100%}a{text-decoration:none}.sidebar{width:260px;background:linear-gradient(180deg,#0a0e27,#0f172a);color:#e2e8f0;display:flex;flex-direction:column;box-shadow:8px 0 32px rgba(0,0,0,.12);z-index:10}.logo-area{padding:24px 20px;border-bottom:1px solid hsla(0,0%,100%,.08);margin-bottom:20px}.logo{gap:12px}.logo,.logo-icon{display:flex;align-items:center}.logo-icon{background:linear-gradient(135deg,#3b82f6,#8b5cf6);width:40px;height:40px;border-radius:12px;justify-content:center;font-size:22px;color:#fff}.logo-text{font-weight:800;font-size:20px;color:#fff}.logo-sub{font-size:11px;color:#94a3b8;margin-top:4px}.nav-menu{flex:1;padding:0 16px}.nav-item{display:flex;align-items:center;gap:14px;padding:12px 18px;border-radius:14px;font-weight:500;font-size:14px;color:#94a3b8;transition:all .25s ease;cursor:pointer;margin-bottom:6px}.nav-item i{font-size:20px;width:26px;text-align:center}.nav-item.active,.nav-item:hover{background:linear-gradient(135deg,rgba(59,130,246,.2),rgba(139,92,246,.1));color:#fff;transform:translateX(4px)}.bottom-info{padding:20px;font-size:12px;color:#475569;border-top:1px solid hsla(0,0%,100%,.05);margin-top:auto;text-align:center}.main-content{flex:1;display:flex;flex-direction:column;overflow-y:auto;background:#f8fafc}.top-bar{background:#fff;padding:16px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:20}.page-title h2{font-size:22px;font-weight:700;color:#1e293b;margin:0}.page-title p{font-size:13px;color:#64748b;margin-top:4px}.avatar{width:44px;height:44px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);border-radius:30px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}.content-panel{padding:28px 32px 0 28px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:32px}.stat-card{background:#fff;border-radius:28px;padding:20px 24px;transition:all .3s;border:1px solid #e9edf2;box-shadow:0 4px 14px rgba(0,0,0,.02);cursor:pointer}.stat-card:hover{transform:translateY(-4px);box-shadow:0 20px 30px -12px rgba(0,0,0,.12);border-color:#cbd5e1}.stat-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.stat-title{font-size:14px;font-weight:500;color:#64748b}.stat-icon{width:48px;height:48px;border-radius:28px;display:flex;align-items:center;justify-content:center;background:rgba(59,130,246,.1);color:#3b82f6;font-size:26px}.stat-number{font-size:36px;font-weight:800;color:#0f172a;line-height:1.2;margin-bottom:8px}.stat-hint{font-size:13px;color:#94a3b8}.action-bar{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.btn-primary{background:#3b82f6;border:none;border-radius:40px;padding:8px 20px;font-weight:500;color:#fff;cursor:pointer;transition:.2s;font-size:13px}.btn-primary:hover{background:#2563eb}.btn-success{background:#10b981;border:none;border-radius:40px;padding:8px 20px;font-weight:500;color:#fff;cursor:pointer}.btn-success:hover{background:#059669}.btn-warning{background:#f59e0b;border:none;border-radius:40px;padding:8px 20px;font-weight:500;color:#fff;cursor:pointer}.btn-warning:hover{background:#d97706}.btn-danger{background:#ef4444;border:none;border-radius:40px;padding:8px 20px;font-weight:500;color:#fff;cursor:pointer}.btn-danger:hover{background:#dc2626}.table-card{background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.04);border:1px solid #edf2f7}.el-table th{background:#f9fafc!important;font-weight:600;color:#1e293b;border-bottom:1px solid #eef2ff}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:40px;font-size:12px;font-weight:600}.status-high{background:#dcfce7;color:#15803d}.status-medium{background:#fff3e3;color:#b45309}.status-low{background:#fee2e2;color:#b91c1c}.status-pending{background:#fef3c7;color:#92400e}.status-partial{background:#dbeafe;color:#1e40af}.status-completed{background:#dcfce7;color:#15803d}.status-abnormal{background:#fee2e2;color:#b91c1c}.action-icons{display:flex;gap:8px}.action-icon{width:32px;height:32px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#f8fafc;color:#64748b;transition:all .2s;cursor:pointer;border:1px solid #e2e8f0}.action-icon:hover{background:#3b82f6;color:#fff;border-color:#3b82f6}.batch-expand{padding:16px 24px;background:#f9fafb;border-radius:16px;margin-top:8px}.batch-table{width:100%;border-collapse:collapse;font-size:13px}.batch-table th{text-align:left;padding:10px 8px;background:#f1f5f9;border-radius:8px}.batch-table td{padding:8px;border-bottom:1px solid #e2e8f0}.category-tree .category-item{border:1px solid #edf2f7;border-radius:12px;margin-bottom:12px}.category-tree .category-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafbfc;border-radius:12px;cursor:pointer}.category-tree .category-children{margin-left:32px;padding:8px}.arrow-icon{transition:transform .2s}.arrow-rotate{transform:rotate(180deg)}.level-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:30px;font-size:12px;font-weight:600}.level-1{background:#e8f4ff;color:#06c}.level-2{background:#e8f8ef;color:#2e7d32}.level-3{background:#fff3e0;color:#ed6c02}.category-code{font-family:monospace;font-size:11px;background:#f1f5f9;padding:2px 8px;border-radius:20px}.inherit-badge{font-size:11px;background:#e8f4ff;padding:2px 6px;border-radius:12px;margin-left:8px}.el-dialog{border-radius:24px}.el-dialog__header{text-align:left}.el-dialog__title{font-weight:600;font-size:18px}.inherit-input-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inherit-prefix{background:#f5f7fa;padding:0 12px;border-radius:8px;font-family:monospace;font-size:13px;border:1px solid #e2e8f0}.purchase-dialog-content{display:flex;flex-direction:column;max-height:70vh}.purchase-fixed-header{flex-shrink:0}.template-selector{display:flex;gap:8px;margin-bottom:12px;align-items:center}.purchase-add-form{display:flex;align-items:center;gap:10px;margin-bottom:16px;background:#f8fafc;padding:12px 16px;border-radius:12px;flex-wrap:nowrap;overflow-x:auto}.purchase-add-form .el-button,.purchase-add-form .el-input,.purchase-add-form .el-select{flex-shrink:0}.purchase-items-table{flex:1;min-height:0;margin-bottom:12px}.purchase-items-table .el-table{border-radius:12px}.purchase-fixed-footer{flex-shrink:0}.purchase-summary{margin-top:12px;text-align:right;font-weight:600;padding:12px;background:#f8fafc;border-radius:12px}.duplicate-warning{color:#f56c6c;font-size:12px;margin-top:4px}.supplier-list{display:flex;flex-wrap:wrap;gap:8px}.supplier-item{background:#f3f4f6;padding:4px 12px;border-radius:16px;font-size:12px;cursor:pointer;transition:all .2s}.supplier-item:hover{background:#3b82f6;color:#fff}.inbound-dialog .el-dialog__body{padding:0 0 5px 0;display:flex;flex-direction:column;max-height:65vh;overflow:hidden}.inbound-dialog-content,.inbound-tabs{display:flex;flex-direction:column;height:100%;overflow:hidden}.inbound-tabs .el-tabs__header{flex-shrink:0;margin-bottom:12px}.inbound-tabs .el-tabs__content{flex:1;min-height:0;overflow:hidden}.inbound-tabs .el-tab-pane{height:100%;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.1);border-radius:5px}.inbound-list-scroll{flex:1;overflow-y:auto;max-height:500px}.inbound-confirm-item{border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin-bottom:16px;background:#fafbfc}.inbound-confirm-item-header{font-weight:600;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e2e8f0}.inbound-confirm-detail{display:flex;gap:24px;flex-wrap:wrap}.inbound-confirm-detail-item{flex:1;min-width:150px}.inbound-confirm-detail-label{font-size:12px;color:#64748b;margin-bottom:4px}.inbound-confirm-detail-value{font-size:16px;font-weight:600;color:#1e293b}.stock-stepper{display:inline-flex;align-items:center;gap:8px;width:100%}.stock-stepper .el-button{flex-shrink:0;padding:8px 12px;border-radius:8px}.stock-stepper .el-input{flex:1;min-width:80px}.stock-stepper .el-input input{text-align:center}.material-select-dialog .el-dialog__body{padding:20px 24px;max-height:70vh;display:flex;flex-direction:column}.material-list-scroll{max-height:450px;overflow-y:auto;padding-right:8px}.material-select-item{border:1px solid #e2e8f0;border-radius:16px;padding:16px 18px;margin-bottom:12px;cursor:pointer;transition:all .2s;background:#fff}.material-select-item:hover{border-color:#3b82f6;background:#f8fafc;box-shadow:0 4px 12px rgba(59,130,246,.08)}.material-select-item.selected{border-color:#3b82f6;background:#eff6ff;box-shadow:0 4px 12px rgba(59,130,246,.12)}.material-select-item.completed{background:#f9fafb;opacity:.65;cursor:not-allowed}.material-select-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.material-select-item-name{font-weight:600;font-size:15px;color:#1e293b}.material-select-item-detail{display:flex;gap:16px 24px;flex-wrap:wrap;font-size:13px;color:#64748b}.select-indicator{width:20px;height:20px;border:2px solid #cbd5e1;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;background:#fff}.select-indicator.checked{background:#3b82f6;border-color:#3b82f6;color:#fff}.inbound-qty-wrapper{margin-top:16px;padding-top:16px;border-top:1px dashed #cbd5e1}.short-warning{color:#f59e0b;font-size:12px;margin-top:8px;padding:6px 10px;background:#fffbeb;border-radius:8px}.logistics-timeline{padding:8px 0}.timeline-section{margin-bottom:24px}.timeline-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.timeline-badge{padding:4px 12px;border-radius:20px;font-size:13px;font-weight:600}.timeline-badge.waiting{background:#fef3c7;color:#92400e}.timeline-badge.shipping{background:#dbeafe;color:#1e40af}.timeline-badge.delivered{background:#dcfce7;color:#15803d}.logistics-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.logistics-card{background:#fff;border-radius:16px;padding:16px;border:1px solid #e2e8f0;transition:all .2s;cursor:pointer;position:relative}.logistics-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.08);transform:translateY(-2px)}.logistics-card.waiting{border-left:4px solid #f59e0b}.logistics-card.shipping{border-left:4px solid #3b82f6}.logistics-card.delivered{border-left:4px solid #10b981}.card-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:12px}.logistics-card.waiting .card-icon{background:#fef3c7;color:#d97706}.logistics-card.shipping .card-icon{background:#dbeafe;color:#3b82f6}.logistics-card.delivered .card-icon{background:#dcfce7;color:#10b981}.card-title{font-weight:600;font-size:15px;color:#1e293b}.card-sub{font-size:13px;color:#64748b;margin-top:2px}.logistics-tracking{margin:12px 0;padding:8px;background:#f8fafc;border-radius:8px}.tracking-company{font-size:12px;color:#64748b}.tracking-no{font-size:14px;font-weight:600;color:#1e293b;cursor:pointer}.tracking-no:hover{color:#3b82f6}.card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:12px;color:#94a3b8}.add-logistics-btn{color:#3b82f6;font-weight:500}.card-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:#e2e8f0}.progress-bar{height:100%;background:linear-gradient(90deg,#3b82f6,#10b981)}.order-info-card{background:linear-gradient(135deg,#667eea,#764ba2);padding:20px;border-radius:16px;margin-bottom:24px}.order-no{font-size:20px;font-weight:700}.order-supplier{font-size:14px;opacity:.9;margin-top:4px}.order-date{font-size:12px;opacity:.7;margin-top:8px}.express-icons{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.express-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 16px;background:#f8fafc;border-radius:12px;cursor:pointer;transition:all .2s;min-width:80px}.express-item:hover{background:#eff6ff}.express-item.active{background:#3b82f6;color:#fff}.express-item.custom{border:1px dashed #cbd5e1;background:#fff}.express-svg{width:40px;height:40px}.custom-express-input{margin-top:12px;width:100%}.scan-input{margin-top:12px}.scan-input .el-input__prefix{color:#3b82f6}.scan-input .el-input__suffix{cursor:pointer;color:#64748b}.detect-result{margin-top:8px;padding:6px 12px;background:#dcfce7;border-radius:8px;font-size:13px;color:#15803d;display:inline-flex;align-items:center;gap:6px}.logistics-switch{display:flex;gap:8px;margin-top:20px}.status-option{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;border-radius:12px;background:#f8fafc;cursor:pointer;transition:all .2s}.status-option:hover{background:#e2e8f0}.status-option.active{background:#3b82f6;color:#fff}.logistics-status-cell{display:flex;align-items:center;gap:8px}.logistics-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}.logistics-icon.waiting{background:#fef3c7;color:#d97706}.logistics-icon.shipping{background:#dbeafe;color:#3b82f6}.logistics-icon.delivered{background:#dcfce7;color:#10b981}.logistics-empty{display:flex;align-items:center;gap:6px;padding:4px 12px;background:#f8fafc;border-radius:20px;cursor:pointer;color:#94a3b8}.logistics-empty:hover{background:#eff6ff;color:#3b82f6}.empty-tip{padding:40px;text-align:center;color:#94a3b8}.batch-list-item{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8fafc;border-radius:8px;margin-bottom:8px}.remove-btn{color:#ef4444;cursor:pointer}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr);gap:16px}.sidebar{width:240px}}@media(max-width:700px){.stats-grid{grid-template-columns:1fr}.material-list-scroll{max-height:350px}}.el-input{position:relative;font-size:14px}.el-input__inner,.el-select--small .el-select__input{line-height:32px;height:32px}.el-table td.el-table__cell div.el-input__wrapper,.el-table td.el-table__cell div.el-select__selection{height:40px;padding:0 8px}.purchase-dialog-content .el-input div,.purchase-dialog-content .el-select>div{height:40px}