@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Outfit:wght@400;500;600;700;800&display=swap";:root{--accent: #0d9488;--accent-strong: #0f766e;--accent-soft: #ccfbf1;--sidebar-bg: #1f2937;--sidebar-bg-strong: #111827;--bg-main: #f3f6f7;--bg-panel: #ffffff;--bg-elevated: #f8fbfc;--text-main: #18212b;--text-muted: #607284;--text-inverse: #f8fafc;--border-color: #d9e2e8;--border-strong: #bdccd6;--success: #0e9f6e;--danger: #dc2626;--warning: #c97814;--radius-sm: 10px;--radius: 14px;--radius-lg: 20px;--shadow-sm: 0 2px 6px rgb(22 37 53 / .06);--shadow-md: 0 12px 26px -12px rgb(18 44 65 / .28);--shadow-lg: 0 26px 50px -22px rgb(17 50 77 / .35);font-family:Outfit,Noto Sans SC,PingFang SC,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}*,*:before,*:after{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;color:var(--text-main);line-height:1.45;background:radial-gradient(circle at 8% 10%,rgb(12 148 136 / .15),transparent 26%),radial-gradient(circle at 92% 8%,rgb(249 115 22 / .12),transparent 25%),linear-gradient(175deg,#eef4f6,#f8fbfc 48%,#edf3f7)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:28px 18px 24px;color:var(--text-inverse);background:radial-gradient(circle at -20% 20%,rgb(20 184 166 / .2),transparent 50%),linear-gradient(165deg,var(--sidebar-bg) 0%,var(--sidebar-bg-strong) 100%);box-shadow:3px 0 26px #070d1652;overflow:auto}.brand-block{display:flex;flex-direction:column;gap:6px;margin-bottom:24px;padding:2px 8px 20px;border-bottom:1px solid rgb(226 232 240 / .18)}.brand-block strong{font-size:25px;letter-spacing:.4px;font-weight:800}.brand-block span{font-size:12px;color:#cbd5e1d9;letter-spacing:.7px;text-transform:uppercase}.nav-list{display:flex;flex-direction:column;gap:8px}.nav-link{display:flex;align-items:center;min-height:44px;padding:11px 14px;border-radius:12px;border:1px solid transparent;color:#e2e8f0d1;font-size:15px;font-weight:600;transition:background .18s ease,color .18s ease,transform .18s ease,border-color .18s ease}.nav-link:hover{background:#ffffff14;color:#fff;border-color:#ffffff1f}.nav-link.active{color:#052e2b;background:linear-gradient(120deg,#2dd4bf,#f0fdfa);border-color:#ccfbf1b3;box-shadow:0 8px 16px #0d94883d}.main-shell{min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px clamp(16px,2.4vw,32px);background:#ffffffc7;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgb(217 226 232 / .8)}.topbar-left{display:flex;flex-direction:column;gap:1px}.topbar-title{font-size:20px;font-weight:700;letter-spacing:.2px}.topbar-subtitle{color:var(--text-muted);font-size:13px;font-weight:500}.topbar-actions{display:flex;align-items:center;gap:10px}.warehouse-switcher{display:flex;align-items:center;gap:10px;border:1px solid var(--border-color);background:var(--bg-panel);border-radius:999px;padding:7px 10px 7px 14px}.warehouse-switcher>span{font-size:13px;color:var(--text-muted);font-weight:600}.warehouse-switcher select{min-width:150px;border:0;background:transparent;color:var(--text-main);font-weight:600;outline:none}.page-shell{padding:24px clamp(14px,2.5vw,34px) 34px;display:flex;flex-direction:column;gap:16px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.page-header h1{margin:0;font-size:clamp(24px,2.5vw,30px);line-height:1.15;letter-spacing:.25px}.page-header p{margin:8px 0 0;color:var(--text-muted);font-size:14px}.page-header-actions{display:flex;align-items:center;gap:8px}.card{background:linear-gradient(175deg,#fff,#fdfefe);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm);animation:slide-up .24s ease-out both}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:7px;min-height:124px}.stat-card:after{content:"";position:absolute;inset:auto -42px -46px auto;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,rgb(13 148 136 / .15),transparent 70%)}.stat-card>span:first-child{color:var(--text-muted);font-size:13px;font-weight:600}.stat-card strong{font-size:clamp(24px,2.2vw,31px);line-height:1;letter-spacing:.25px}.stat-card>span:last-child{margin-top:auto;color:#738596;font-size:12px}.content-grid{display:grid;gap:14px}.content-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;align-items:end;margin-bottom:16px}.toolbar-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field span{color:#334155;font-size:13px;font-weight:700}.field em{margin-left:4px;color:var(--danger);font-style:normal}.field input,.field select,.field textarea{width:100%;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--bg-elevated);color:var(--text-main);padding:10px 12px;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.field input::placeholder,.field textarea::placeholder{color:#97a8b8}.field textarea{resize:vertical;min-height:92px}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:#0d9488ad;background:#fff;box-shadow:0 0 0 4px #14b8a624}.field input:disabled,.field select:disabled,.field textarea:disabled{opacity:.72;cursor:not-allowed}.field-row{display:flex;align-items:center}.checkbox-field{display:inline-flex;align-items:center;gap:9px;font-size:14px;color:#334155;font-weight:600}.checkbox-field input{width:16px;height:16px;accent-color:var(--accent)}.primary-button,.secondary-button,.ghost-button{border-radius:11px;padding:10px 14px;min-height:40px;border:1px solid transparent;cursor:pointer;font-weight:700;letter-spacing:.2px;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,color .15s ease,border-color .15s ease}.primary-button{color:#fff;background:linear-gradient(125deg,var(--accent) 0%,var(--accent-strong) 100%);box-shadow:0 10px 20px -12px #0d9488a6}.primary-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 16px 22px -16px #0d9488bf}.secondary-button{color:#0f172a;background:#fff;border-color:var(--border-color)}.secondary-button:hover:not(:disabled){background:#f4f8fa;border-color:var(--border-strong)}.ghost-button{color:#4b5f72;background:transparent;border-color:transparent}.ghost-button:hover:not(:disabled){color:var(--accent-strong);background:#14b8a61f}.danger-button{color:var(--danger)}.danger-button:hover:not(:disabled){color:#b91c1c;background:#ef444421}.primary-button:disabled,.secondary-button:disabled,.ghost-button:disabled{opacity:.56;cursor:not-allowed;transform:none;box-shadow:none}.table-shell{margin-top:8px;border:1px solid var(--border-color);border-radius:16px;background:#fff;overflow:auto}.data-table{width:100%;min-width:760px;border-collapse:collapse}.data-table th,.data-table td{padding:13px 14px;border-bottom:1px solid #e7edf1;text-align:left;font-size:14px}.data-table th{position:sticky;top:0;z-index:1;background:#f7fbfd;color:#607284;text-transform:uppercase;letter-spacing:.3px;font-size:12px;font-weight:700}.data-table tbody tr:nth-child(2n) td{background:#fbfdff}.data-table tbody tr:hover td{background:#eef9f8}.data-table tr:last-child td{border-bottom:0}.align-right{text-align:right!important}.align-center{text-align:center!important}.table-empty{padding:30px 14px!important;text-align:center;color:#7890a5;font-weight:500}.badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:12px;line-height:1;font-weight:700}.badge-success{color:#0f5132;background:#d1fae5}.badge-danger{color:#7f1d1d;background:#fee2e2}.badge-warning{color:#7c2d12;background:#ffedd5}.pagination{margin-top:14px;display:flex;align-items:center;justify-content:flex-end;gap:10px;color:var(--text-muted);font-weight:600;font-size:13px}.notice{margin-bottom:12px;padding:11px 12px;border-radius:12px;border:1px solid transparent;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;animation:fade-in .22s ease-out both}.notice-success{color:#0f5132;background:#e8fff3;border-color:#b7f0d2}.notice-error{color:#7f1d1d;background:#fff1f2;border-color:#fecdd3}.notice-warning{color:#78350f;background:#fff7ed;border-color:#fed7aa}.icon-button{width:30px;height:30px;border-radius:999px;border:1px solid transparent;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1;cursor:pointer;transition:background-color .18s ease,border-color .18s ease}.icon-button:hover{border-color:#94a3b859;background:#94a3b824}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;background:#030a1880;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);padding:24px;overflow:auto}.modal-content{margin:0 auto;width:min(100%,1120px);border-radius:24px;border:1px solid rgb(226 232 240 / .85);background:#fff;box-shadow:var(--shadow-lg);animation:modal-pop .22s ease-out both}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid #e6edf2}.modal-header h2{margin:0;font-size:21px;line-height:1.2}.modal-body{padding:22px 24px}.modal-footer{margin-top:20px;display:flex;justify-content:flex-end;gap:10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.action-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.upload-box{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:6px}.upload-button{border-radius:10px;padding:10px 14px;border:1px dashed rgb(13 148 136 / .7);color:var(--accent-strong);background:var(--accent-soft);font-weight:700;cursor:pointer}.upload-button input{display:none}.image-preview{width:126px;height:126px;border-radius:14px;border:1px dashed var(--border-strong);overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}.image-preview img{width:100%;height:100%;object-fit:cover}.detail-stack{display:flex;flex-direction:column;gap:12px}.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.detail-item{border-radius:12px;border:1px solid #e2ebf0;padding:11px 12px;display:flex;flex-direction:column;gap:6px;min-height:76px;background:#f9fcfd}.detail-item span{font-size:12px;color:#698194;text-transform:uppercase;letter-spacing:.3px;font-weight:700}.detail-item strong{font-size:17px;line-height:1.2}.order-items{display:flex;flex-direction:column;gap:10px}.order-item-row{display:grid;grid-template-columns:minmax(220px,1fr) 120px 140px 124px auto;gap:10px;align-items:end;padding:12px;border-radius:14px;border:1px solid #e0e9ef;background:#f8fbfd}.small-field input,.small-field select{text-align:right}.subtotal-box{border:1px solid #d5e5ee;border-radius:12px;min-height:86px;padding:8px 10px;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:2px}.subtotal-box span{color:#6b8193;font-size:12px;font-weight:600}.subtotal-box strong{font-size:17px}.tree-view{margin:0;padding-left:14px;list-style:none}.tree-view ul{margin:7px 0 0;padding-left:18px;list-style:none;border-left:1px dashed #bfd0dc}.tree-view li{margin:7px 0;position:relative}.tree-view li>span{display:inline-flex;align-items:center;min-height:30px;padding:3px 9px;border-radius:10px;background:#f4f9fb;border:1px solid #dde8ef;font-size:13px;font-weight:600}.empty-inline{color:#7890a5;font-weight:500;padding:6px 0}.screen-center{min-height:100vh;display:grid;place-items:center;font-size:16px;color:#577184}.login-shell{min-height:100vh;padding:24px;display:grid;place-items:center;background:radial-gradient(circle at 17% 15%,rgb(45 212 191 / .2),transparent 30%),radial-gradient(circle at 83% 85%,rgb(251 146 60 / .2),transparent 34%),linear-gradient(160deg,#f5fbfc,#eef5f9)}.login-card{width:min(100%,430px);padding:30px 28px;border-radius:22px;border:1px solid rgb(217 226 232 / .9);background:#ffffffeb;box-shadow:var(--shadow-md);display:flex;flex-direction:column;gap:12px;animation:slide-up .28s ease both}.login-card h1{margin:0;font-size:30px;line-height:1.05}.login-card p{margin:0 0 4px;color:var(--text-muted);font-size:14px}.login-card .primary-button{width:100%}@keyframes slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-pop{0%{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1220px){.app-shell{grid-template-columns:236px minmax(0,1fr)}.topbar{gap:10px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{height:auto;position:sticky;z-index:35;padding:14px 14px 12px}.brand-block{padding:2px 8px 12px;margin-bottom:10px}.brand-block strong{font-size:22px}.nav-list{flex-direction:row;overflow:auto;padding-bottom:4px}.nav-list::-webkit-scrollbar{height:6px}.nav-list::-webkit-scrollbar-thumb{border-radius:999px;background:#94a3b873}.nav-link{white-space:nowrap;min-height:38px;padding:8px 12px;font-size:13px}.topbar{flex-direction:column;align-items:flex-start}.topbar-actions{width:100%;justify-content:space-between;flex-wrap:wrap}.warehouse-switcher{flex:1 1 240px;justify-content:space-between}.toolbar{grid-template-columns:1fr 1fr}.toolbar-actions{justify-content:flex-start}.content-grid.two-columns,.detail-grid,.order-item-row{grid-template-columns:1fr}.subtotal-box{min-height:auto}}@media(max-width:680px){.page-shell{padding:16px 12px 20px;gap:12px}.card{border-radius:16px;padding:14px}.page-header{flex-direction:column;align-items:flex-start}.stats-grid,.toolbar,.form-grid{grid-template-columns:1fr}.data-table{min-width:620px}.pagination{justify-content:center}.modal-overlay{padding:10px}.modal-header,.modal-body{padding:14px}.modal-footer{justify-content:stretch;flex-direction:column-reverse}.modal-footer .primary-button,.modal-footer .secondary-button{width:100%}.login-shell{padding:16px}.login-card{padding:24px 18px}.login-card h1{font-size:26px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
