:root{--bg:#0f1419;--surface:#1a2332;--surface-2:#243044;--border:#2d3f56;--text:#e8edf4;--text-muted:#8b9cb3;--primary:#3b82f6;--primary-hover:#2563eb;--accent:#06b6d4;--success:#22c55e;--warning:#f59e0b;--danger:#ef4444;--radius:12px;--shadow:0 8px 32px #00000059;--font:"PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-text-size-adjust:100%;font-size:14px}body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;line-height:1.5}.login-page{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{-webkit-backdrop-filter:blur(10px);border-radius:var(--radius);color:#1a2332;background:#fffc;border:1px solid #ffffff47;width:100%;max-width:400px;padding:40px 32px;box-shadow:0 8px 32px #0000001a}.login-card .login-logo h1{color:#11304e}.login-logo .brand-row{justify-content:center;align-items:center;gap:14px;margin-bottom:8px;display:flex}.login-logo .brand-logo{object-fit:contain;flex-shrink:0;width:auto;height:52px}.login-card .form-group label,.login-card .remember-label{color:#5c6b7f}.login-card .form-group input{color:#1a2332;background:#f5f7fa;border-color:#d8dee6}.login-logo{text-align:center;margin-bottom:32px}.login-logo h1{letter-spacing:.04em;color:#11304e;margin:18px 0 0;font-size:1.875rem;font-weight:700;line-height:52px}.login-logo .brand-slogan{letter-spacing:.12em;color:#f4ba46;margin:0;font-size:1rem;font-weight:600}.form-group{margin-bottom:20px}.form-group label{color:var(--text-muted);margin-bottom:8px;font-size:.8125rem;display:block}.form-group input{background:var(--bg);border:1px solid var(--border);width:100%;color:var(--text);border-radius:8px;padding:12px 14px;font-size:1rem;transition:border-color .2s,box-shadow .2s}.form-group input:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #3b82f633}.form-row{justify-content:space-between;align-items:center;margin-bottom:24px;font-size:.8125rem;display:flex}.remember-label{color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;display:flex}.remember-label input{width:16px;height:16px;accent-color:var(--primary)}.link-btn{color:var(--accent);cursor:pointer;font-size:inherit;background:0 0;border:none;padding:0}.link-btn:hover{text-decoration:underline}.btn-primary{background:linear-gradient(135deg, var(--primary), #2563eb);color:#fff;cursor:pointer;border:none;border-radius:8px;width:100%;padding:14px;font-size:1rem;font-weight:600;transition:transform .15s,opacity .15s}.btn-primary:hover:not(:disabled){transform:translateY(-1px)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.form-error{color:var(--danger);min-height:1.25em;margin-bottom:16px;font-size:.8125rem}.modal-overlay{z-index:1000;opacity:0;visibility:hidden;background:#0009;justify-content:center;align-items:center;padding:24px;transition:opacity .2s,visibility .2s;display:flex;position:fixed;inset:0}.modal-overlay.active{opacity:1;visibility:visible}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:400px;box-shadow:var(--shadow);padding:28px}.modal h2{margin-bottom:16px;font-size:1.125rem}.modal p{color:var(--text-muted);margin-bottom:20px;font-size:.875rem}.modal-actions{justify-content:flex-end;gap:12px;display:flex}.btn-secondary{background:var(--surface-2);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:8px;padding:10px 18px;font-size:.875rem}.btn-secondary:hover{background:var(--border)}.dashboard-page{color:#1e293b;background:#f4f6f9}.dashboard-page .dashboard{flex-direction:column;min-height:100vh;display:flex}.dashboard-page .dashboard-header{z-index:100;background:#fff;border-bottom:1px solid #e8ecf1;padding:16px 24px;position:sticky;top:0;box-shadow:0 1px 3px #0f172a0a}.dashboard-page .header-top{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.dashboard-page .header-top h1{color:#11304e;letter-spacing:.02em;font-size:1.25rem;font-weight:700}.dashboard-page .header-left{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.dashboard-page .header-row{flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;display:flex}.dashboard-page .header-row--title{width:100%}.dashboard-page .greeting{color:#11304e;word-break:keep-all;font-size:1rem;font-weight:600;line-height:1.4}.dashboard-page .client-label{color:#1e5a8a;text-overflow:ellipsis;white-space:nowrap;background:#e8f1fb;border-radius:999px;max-width:100%;padding:2px 10px;font-size:.8125rem;font-weight:500;overflow:hidden}.dashboard-page .client-switch{flex:0 auto;align-items:center;gap:6px;min-width:0;display:flex}.dashboard-page .client-switch-label{color:#64748b;flex-shrink:0;font-size:.8125rem}.dashboard-page .client-select{color:#1e5a8a;background:#fff;border:1px solid #cbd5e1;border-radius:6px;min-width:160px;max-width:280px;padding:6px 8px;font-size:.8125rem}.dashboard-page .last-update{color:#64748b;white-space:nowrap;flex-shrink:0;font-size:.8125rem;line-height:1.4}.dashboard-page .header-actions{flex-shrink:0;gap:8px;display:flex}.dashboard-page .btn-sm{color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 14px;font-size:.8125rem;transition:background .15s,border-color .15s}.dashboard-page .btn-sm:hover{background:#f8fafc;border-color:#cbd5e1}.dashboard-page .btn-sm.danger{color:#dc2626;background:#fff;border-color:#fecaca}.dashboard-page .btn-sm.danger:hover{background:#fef2f2}.dashboard-page .toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.dashboard-page .search-box{flex:1;min-width:200px;max-width:320px}.dashboard-page .search-box input{color:#1e293b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;width:100%;padding:9px 12px 9px 36px;font-size:.875rem}.dashboard-page .search-box input:focus{background:#fff;border-color:#11304e;outline:none;box-shadow:0 0 0 3px #11304e14}.dashboard-page .search-wrap{position:relative}.dashboard-page .search-wrap:before{content:"";pointer-events:none;opacity:.55;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 50%/contain no-repeat;width:16px;height:16px;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.dashboard-page .filter-section{flex-direction:column;gap:10px;margin-top:12px;display:flex}.dashboard-page .biz-type-tabs{border-bottom:2px solid #e8ecf1;flex-wrap:wrap;gap:0;display:flex}.dashboard-page .biz-tab{color:#64748b;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-2px;padding:10px 20px;font-size:.875rem;font-weight:500;transition:color .15s,border-color .15s}.dashboard-page .biz-tab:hover{color:#334155}.dashboard-page .biz-tab.active{color:#11304e;border-bottom-color:#11304e}.dashboard-page .status-tabs{flex-wrap:wrap;gap:8px;padding-top:2px;display:flex}.dashboard-page .status-tab{color:#64748b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:6px;padding:6px 12px;font-size:.75rem;transition:all .15s;display:inline-flex}.dashboard-page .status-tab:hover{color:#334155;border-color:#cbd5e1}.dashboard-page .status-tab.active{color:#11304e;background:#11304e0f;border-color:#11304e}.dashboard-page .status-tab-count{color:#64748b;background:#f1f5f9;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.6875rem;font-weight:600;line-height:1;display:inline-flex}.dashboard-page .status-tab.active .status-tab-count{color:#fff;background:#11304e}.dashboard-page .filter-chip{color:#64748b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:6px 14px;font-size:.75rem;transition:all .15s}.dashboard-page .filter-chip:hover{color:#334155;border-color:#cbd5e1}.dashboard-page .filter-chip.active{color:#11304e;background:#11304e0f;border-color:#11304e}.dashboard-page .dashboard-main{flex:1;padding:20px 24px;overflow:hidden}.dashboard-page .table-wrap{background:#fff;border:1px solid #e8ecf1;border-radius:10px;max-height:calc(100vh - 280px);overflow:auto;box-shadow:0 1px 4px #0f172a0a}.dashboard-page .data-table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:.8125rem}.dashboard-page .data-table th,.dashboard-page .data-table td{text-align:left;color:#334155;border-bottom:1px solid #f1f5f9;padding:12px 14px}.dashboard-page .data-table thead{z-index:10;background:#f8fafc;position:sticky;top:0}.dashboard-page .data-table th{color:#64748b;cursor:default;-webkit-user-select:none;user-select:none;text-transform:none;letter-spacing:.02em;padding:0;font-size:.75rem;font-weight:600;transition:color .15s,background .15s}.dashboard-page .data-table th .th-inner{cursor:grab;justify-content:space-between;align-items:center;gap:8px;min-width:80px;padding:12px 14px;display:flex}.dashboard-page .data-table th.dragging .th-inner{cursor:grabbing}.dashboard-page .data-table th .th-label{cursor:pointer;flex:1;align-items:center;gap:4px;min-width:0;display:inline-flex}.dashboard-page .data-table th .th-label:hover,.dashboard-page .data-table th.sorted .th-label{color:#11304e}.dashboard-page .data-table th.dragging{opacity:.45}.dashboard-page .data-table th.drag-over .th-inner{outline-offset:-2px;background:#11304e14;border-radius:6px;outline:2px dashed #11304e}.dashboard-page .data-table th .sort-icon{opacity:.4;flex-shrink:0;font-size:.7em}.dashboard-page .data-table th.sorted .sort-icon{opacity:1}.dashboard-page .col-filter-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;padding:0;transition:color .15s,background .15s;display:inline-flex}.dashboard-page .col-filter-btn:hover{color:#11304e;background:#11304e14}.dashboard-page .col-filter-btn.active{color:#11304e;background:#11304e1f}.dashboard-page .col-filter-btn svg{display:block}.dashboard-page .col-filter-popover{z-index:200;background:#fff;border:1px solid #e2e8f0;border-radius:10px;min-width:200px;max-width:280px;padding:10px;position:fixed;box-shadow:0 10px 40px #0f172a1f}.dashboard-page .col-filter-popover-header{color:#334155;border-bottom:1px solid #f1f5f9;margin-bottom:8px;padding-bottom:8px;font-size:.75rem;font-weight:600}.dashboard-page .col-filter-search{color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;width:100%;margin-bottom:8px;padding:7px 10px;font-size:.75rem}.dashboard-page .col-filter-search:focus{background:#fff;border-color:#11304e;outline:none}.dashboard-page .col-filter-bulk{gap:8px;margin-bottom:8px;display:flex}.dashboard-page .col-filter-bulk button{color:#64748b;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;flex:1;padding:5px 8px;font-size:.6875rem}.dashboard-page .col-filter-bulk button:hover{color:#334155;background:#fff;border-color:#cbd5e1}.dashboard-page .col-filter-list{max-height:220px;margin-bottom:8px;overflow-y:auto}.dashboard-page .col-filter-item{color:#475569;cursor:pointer;border-radius:4px;align-items:center;gap:8px;padding:6px 4px;font-size:.75rem;display:flex}.dashboard-page .col-filter-item:hover{background:#f8fafc}.dashboard-page .col-filter-item input{accent-color:#11304e;flex-shrink:0}.dashboard-page .col-filter-item span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dashboard-page .col-filter-actions{border-top:1px solid #f1f5f9;justify-content:space-between;gap:8px;padding-top:8px;display:flex}.dashboard-page .col-filter-actions button{color:#64748b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:6px;flex:1;padding:6px 10px;font-size:.75rem}.dashboard-page .col-filter-actions button:hover{color:#334155;border-color:#cbd5e1}.dashboard-page .col-filter-actions button.primary{color:#fff;background:#11304e;border-color:#11304e}.dashboard-page .col-filter-empty{color:#94a3b8;text-align:center;padding:12px 4px;font-size:.75rem}.dashboard-page .cell-actions{white-space:nowrap}.dashboard-page .row-link-btn{color:#2563eb;cursor:pointer;background:0 0;border:none;margin-right:10px;padding:0;font-size:.75rem;text-decoration:none}.dashboard-page .row-link-btn:hover{color:#11304e;text-decoration:underline}.dashboard-page .row-link-btn:last-child{margin-right:0}.dashboard-page .dashboard-modal{background:#0f172a73}.dashboard-page .dashboard-modal .detail-modal{color:#334155;background:#fff;border:1px solid #e2e8f0;max-width:480px;box-shadow:0 16px 48px #0f172a1f}.dashboard-page .dashboard-modal .detail-modal h2{color:#11304e;margin-bottom:16px;font-size:1rem}.dashboard-page .detail-modal-body{flex-direction:column;gap:10px;max-height:50vh;display:flex;overflow-y:auto}.dashboard-page .dashboard-modal .detail-modal.billing-modal{max-width:720px}.dashboard-page .dashboard-modal .detail-modal.track-modal{max-width:420px}.dashboard-page .track-meta{color:#64748b;margin-bottom:16px;font-size:.8125rem}.dashboard-page .track-meta strong{color:#11304e;font-weight:600}.dashboard-page .track-timeline{flex-direction:column;padding:4px 0;display:flex}.dashboard-page .track-item{gap:14px;min-height:72px;display:flex}.dashboard-page .track-item:last-child{min-height:auto}.dashboard-page .track-axis{flex-direction:column;flex-shrink:0;align-items:center;width:14px;display:flex}.dashboard-page .track-dot{background:#cbd5e1;border:2px solid #fff;border-radius:50%;flex-shrink:0;width:10px;height:10px;margin-top:4px;box-shadow:0 0 0 2px #e2e8f0}.dashboard-page .track-item.is-current .track-dot{background:#11304e;box-shadow:0 0 0 2px #11304e33}.dashboard-page .track-line{background:linear-gradient(#cbd5e1 0%,#e8ecf1 100%);flex:1;width:2px;min-height:48px;margin:4px 0}.dashboard-page .track-content{flex:1;padding-bottom:20px}.dashboard-page .track-item:last-child .track-content{padding-bottom:0}.dashboard-page .track-time{color:#94a3b8;margin-bottom:4px;font-size:.75rem}.dashboard-page .track-status{color:#334155;margin-bottom:4px;font-size:.875rem;font-weight:600}.dashboard-page .track-item.is-current .track-status{color:#11304e}.dashboard-page .track-desc{color:#64748b;font-size:.8125rem;line-height:1.5}.dashboard-page .cell-status{white-space:nowrap}.dashboard-page .data-table th.col-cargoStatus .th-inner,.dashboard-page .data-table td.col-cargoStatus{width:154px;min-width:154px}.dashboard-page .data-table td.col-cargoStatus.has-new-trace-cell{vertical-align:middle;padding-top:20px;position:relative}.dashboard-page .status-cell-inner{grid-template-columns:var(--status-label-slot-width) 24px;--status-label-slot-width:6.5em;justify-content:start;align-items:center;column-gap:8px;display:grid}.dashboard-page .trace-new-badge{z-index:1;box-shadow:none;letter-spacing:.14em;text-transform:uppercase;background:linear-gradient(120deg,#34d399 0%,#10b981 50%,#047857 100%);-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 .35px #05966959);pointer-events:none;-webkit-background-clip:text;background-clip:text;border:none;margin:0;padding:0;font-family:inherit;font-size:8px;font-weight:700;line-height:1;animation:2.6s ease-in-out infinite trace-new-text-pulse;display:block;position:absolute;top:5px;left:14px}@keyframes trace-new-text-pulse{0%,to{opacity:.72;filter:drop-shadow(0 0 #10b98100)}50%{opacity:1;filter:drop-shadow(0 0 4px #34d39973)}}@media (prefers-reduced-motion:reduce){.dashboard-page .trace-new-badge{opacity:1;animation:none}}.dashboard-page .status-badge-slot{min-width:var(--status-label-slot-width);max-width:var(--status-label-slot-width);justify-content:flex-start;align-items:center;display:flex;overflow:hidden}.dashboard-page .status-badge-slot .status-badge{text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;max-width:100%;overflow:hidden}.dashboard-page .status-detail-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;transition:color .15s,background .15s;display:inline-flex}.dashboard-page .status-detail-btn:hover{color:#11304e;background:#11304e14}.dashboard-page .billing-meta{color:#64748b;margin-bottom:12px;font-size:.8125rem}.dashboard-page .billing-table-wrap{border:1px solid #e8ecf1;border-radius:8px;margin-bottom:16px;overflow-x:auto}.dashboard-page .billing-table{border-collapse:collapse;width:100%;font-size:.8125rem}.dashboard-page .billing-table th,.dashboard-page .billing-table td{text-align:left;color:#334155;border-bottom:1px solid #f1f5f9;padding:10px 12px}.dashboard-page .billing-table thead th{color:#64748b;white-space:nowrap;background:#f8fafc;font-size:.75rem;font-weight:600}.dashboard-page .billing-table tbody tr:last-child td{border-bottom:none}.dashboard-page .billing-table td.num{text-align:right;font-variant-numeric:tabular-nums}.dashboard-page .billing-totals{background:#f8fafc;border:1px solid #e8ecf1;border-radius:8px;padding:14px 16px}.dashboard-page .billing-totals-title{color:#11304e;margin-bottom:10px;font-size:.875rem;font-weight:600}.dashboard-page .billing-totals-list{flex-wrap:wrap;gap:12px 24px;display:flex}.dashboard-page .billing-total-item{align-items:baseline;gap:8px;display:flex}.dashboard-page .billing-total-currency{color:#64748b;font-size:.75rem;font-weight:500}.dashboard-page .billing-total-amount{color:#11304e;font-variant-numeric:tabular-nums;font-size:1rem;font-weight:700}.dashboard-page .detail-row{border-bottom:1px solid #f1f5f9;grid-template-columns:96px 1fr;gap:12px;padding-bottom:10px;font-size:.8125rem;display:grid}.dashboard-page .detail-row:last-child{border-bottom:none;padding-bottom:0}.dashboard-page .detail-label{color:#64748b;flex-shrink:0}.dashboard-page .detail-value{color:#334155;word-break:break-word}.dashboard-page .dashboard-modal .btn-secondary{color:#475569;background:#f8fafc;border-color:#e2e8f0}.dashboard-page .data-table tbody tr:nth-child(2n){background:#fafbfc}.dashboard-page .data-table tbody tr:hover{background:#f0f7ff}.dashboard-page .data-table tbody tr.updated-flash{animation:1.5s rowFlashLight}.dashboard-page .data-table .cell-ellipsis{text-overflow:ellipsis;max-width:180px;overflow:hidden}@keyframes rowFlashLight{0%{background:#dbeafe}to{background:0 0}}.dashboard-page .status-badge{border-radius:6px;padding:3px 10px;font-size:.75rem;font-weight:500;display:inline-block}.dashboard-page .status-badge.transit{color:#2563eb;background:#eff6ff}.dashboard-page .status-badge.customs{color:#d97706;background:#fffbeb}.dashboard-page .status-badge.done{color:#16a34a;background:#f0fdf4}.dashboard-page .status-badge.pending{color:#64748b;background:#f1f5f9}.dashboard-page .empty-state{text-align:center;color:#94a3b8;padding:48px 24px}.dashboard-page .table-footer{color:#94a3b8;background:#fafbfc;border-top:1px solid #f1f5f9;border-radius:0 0 10px 10px;padding:12px 16px;font-size:.8125rem}@media (width>=769px){.dashboard-page .header-top{align-items:center}.dashboard-page .header-left{flex-flow:wrap;align-items:center;gap:12px 20px}.dashboard-page .header-row--title,.dashboard-page .header-row--meta{width:auto}.dashboard-page .header-row--meta{flex-wrap:nowrap;gap:16px}.dashboard-page .header-actions{align-self:center}}@media (width<=768px){.login-card{padding:28px 20px}.dashboard-page .dashboard-header{padding:12px 16px}.dashboard-page .header-top{flex-wrap:wrap;gap:10px}.dashboard-page .header-left{flex:calc(100% - 140px);min-width:0}.dashboard-page .header-actions{flex:none;align-self:flex-start}.dashboard-page .header-row--meta{flex-direction:column;align-items:stretch;gap:8px}.dashboard-page .client-switch{flex:100%;width:100%;max-width:none}.dashboard-page .client-select{flex:1;width:100%;min-width:0;max-width:none}.dashboard-page .client-label{align-self:flex-start;max-width:100%}.dashboard-page .last-update{white-space:normal;word-break:break-all;width:100%;font-size:.75rem}.dashboard-page .load-error{width:100%;font-size:.75rem}.dashboard-page .greeting{font-size:.9375rem}.dashboard-page .toolbar{width:100%}.dashboard-page .search-box{flex:100%;width:100%;min-width:0;max-width:none}.dashboard-page .dashboard-main{padding:12px}.dashboard-page .table-wrap{max-height:calc(100vh - 320px)}}
