/* Smartisan OS console adaptation. Original kit: Paix Chan, CC BY 4.0. */
:root{--accent-blue:#1672e8;--accent-blue-bottom:#1267df;--accent-blue-pressed:#0d5fd3;--accent-blue-text:#1464d2}
:root{color-scheme:light;--bg:#f5f5f5;--panel:#fff;--ink:#333;--muted:#7f7f7f;--line:#e2e2e2;--green:var(--accent-blue);--soft:#edf5ff;--surface:#f7f7f7;--sidebar:#f4f4f4;--hover:#eee;--button:var(--accent-blue);--on-button:#fff;--shadow:0 10px 16px #0000000a}
body.smartisan-console{color:var(--ink);font-family:var(--s-font),"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;background-color:#f5f5f5;background-image:repeating-linear-gradient(90deg,#f4f4f4 0 2px,#f2f2f2 2px 4px)}
.smartisan-console .sidebar{top:48px;width:184px;padding:24px 12px 18px;background:linear-gradient(90deg,#f5f5f5,#efefef);border-right:.8px solid #d9d9d9;box-shadow:inset -1px 0 #fff}
.smartisan-console .brand{font-size:15px;letter-spacing:0;white-space:nowrap;gap:9px;padding:0 0 18px;margin-bottom:18px;border-bottom:.8px solid #ddd;text-shadow:0 1px #fff}
.smartisan-console .brand-icon{width:34px;height:34px;flex-basis:34px;border-radius:8px;background:linear-gradient(#fafafa,#e5e5e5);border:.8px solid #cfcfcf;box-shadow:inset 0 1px #fff,0 1px 2px #00000012;color:#636363;font-size:23px}
.smartisan-console nav{gap:6px}.smartisan-console nav a{border-radius:6px;padding:11px 12px;color:#636363;font-size:14px;border:.8px solid transparent;text-shadow:0 1px #fff}
.smartisan-console nav a svg{color:#929292;width:19px;height:19px}.smartisan-console nav a:hover{background:#e8e8e8}
.smartisan-console svg.smartisan-kit-icon{stroke:none;fill:currentColor}
.smartisan-console .sidebar nav a.is-pressed{color:#fff;background:var(--accent-blue);text-shadow:none}.smartisan-console .sidebar nav a.is-pressed svg{color:#fff}
body.smartisan-console input{color-scheme:light}
.smartisan-console nav a.active{color:#fff;background:linear-gradient(var(--accent-blue),var(--accent-blue-bottom));border-color:#0e61d1;box-shadow:inset 0 1px #ffffff38,0 2px 4px #1672e81a;text-shadow:0 1px #0002}
.smartisan-console nav a.active svg{color:#fff}.smartisan-console .nav-caption{font-size:12px;font-weight:600;letter-spacing:0;color:#7f7f7f}
.smartisan-console .shell{margin-left:184px;padding-top:48px}
.smartisan-console .topbar{height:48px;padding:0 24px;background:linear-gradient(#fafafa,#eaeaea);box-shadow:0 4px 14px #00000016,inset 0 1px #fff;border-bottom:.8px solid #d3d3d3;color:#636363}
.smartisan-console .topbar :is(.breadcrumb,.breadcrumb strong,.breadcrumb span,.topbar-right,.local-label,.manage-link){color:#636363}
.smartisan-console .topbar .dot{background:#759a70}.smartisan-console .top-separator{border-color:#ccc}
.smartisan-console .topbar #account-logout{color:#636363;background:linear-gradient(#fff,#f3f3f3);border:.8px solid #ccc;border-radius:6px;box-shadow:0 1px 2px #0000000a;padding:4px 9px}
.smartisan-console .topbar #account-logout:hover{color:var(--accent-blue-text);background:#fff;border-color:#8db7ee}
.smartisan-console main{padding:24px;min-width:0}
body.smartisan-console h1{font-size:24px;font-weight:600;color:#636363;letter-spacing:0;text-shadow:0 1px #fff}
.smartisan-console .page-heading{margin-bottom:12px;gap:12px}.smartisan-console .eyebrow{display:none}
.smartisan-console .filterbar{margin-bottom:12px;padding:6px 0 12px;gap:12px}
body.smartisan-console :is(.panel,.stat-card){background:#fff;border:.8px solid #e2e2e2;border-radius:10px;box-shadow:0 10px 16px #0000000a}
.smartisan-console .panel-head{padding:16px 18px;background:linear-gradient(#fff,#fcfcfc);border-bottom:.8px solid #eee;border-radius:10px 10px 0 0;align-items:center}
body.smartisan-console .panel h2{font-size:16px;color:#636363;font-weight:600;letter-spacing:0}
.smartisan-console .panel-head p{font-size:12px;margin-top:4px}.smartisan-console .panel-foot{padding:12px 18px;background:#fafafa;border-top:.8px solid #eee;border-radius:0 0 10px 10px;font-size:12px}
.smartisan-console .stats{gap:12px;margin-bottom:18px}.smartisan-console .stat-card{padding:18px}
.smartisan-console .stat-top{color:#7f7f7f}.smartisan-console .stat-icon{border-radius:6px;background:#f1f3f7;color:#518ce0}
.smartisan-console .stat-value{color:#636363;font-variant-numeric:tabular-nums}.smartisan-console .stat-note{color:#7f7f7f}
body.smartisan-console :is(.button,.icon-button){min-height:34px;border-radius:6px;border:.8px solid #d6d6d6;background:linear-gradient(#fff,#fcfcfc);box-shadow:inset 0 1px #fff,0 2px 3px #00000008;color:#636363;font-size:13px;font-weight:600;transition:none}
body.smartisan-console .button.primary{background:linear-gradient(var(--accent-blue),var(--accent-blue-bottom));color:#fff;border-color:#0e61d1;box-shadow:inset 0 1px #ffffff30,0 3px 4px #1672e81a;text-shadow:0 1px #0002}
body.smartisan-console .button:not(.primary):is(:active,.is-pressed){background:linear-gradient(#e8e8e8,#f7f7f7);box-shadow:inset 0 1px 3px #00000014}
body.smartisan-console .button.primary:is(:active,.is-pressed){background:var(--accent-blue-pressed);border-color:#0a54bd;box-shadow:inset 0 1px 3px #0002}
body.smartisan-console button:disabled{opacity:.4;cursor:not-allowed}
body.smartisan-console :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-family:inherit;color:#333;background:#fdfdfd;border:.8px solid #d9d9d9;border-radius:6px;box-shadow:inset 0 1px 3px #00000008;font-size:14px;font-weight:400;max-width:100%;min-width:0}
body.smartisan-console :is(input,select,textarea):focus{outline:2px solid #1672e844;outline-offset:1px;border-color:#7cacf0}
body.smartisan-console :is(input[type=checkbox],input[type=radio]){accent-color:var(--accent-blue);box-shadow:none}
body.smartisan-console input::placeholder{color:#9d9d9d}.smartisan-console :is(.query-field,.field)>span{color:#7f7f7f;font-size:12px}
body.smartisan-console :is(.query-form,.sales-query-form,#entity-matching-query,.bill-query-form){gap:12px;padding:16px 18px;align-items:end}
body.smartisan-console :is(.sales-query-form,.query-form,#entity-matching-query) :is(input:not([type=checkbox]),select),body.smartisan-console #matching-shop-picker>summary{height:38px;min-height:38px;border-radius:6px;padding:7px 10px;font-size:14px}
body.smartisan-console :is(.sales-query-form,#entity-matching-query)>button{height:38px;min-height:38px}
.smartisan-console :is(.matching-tabs,.overview-courier-time){display:flex;gap:0;padding:3px;border:.8px solid #d8d8d8;border-radius:6px;background:linear-gradient(#ededed,#f6f6f6);box-shadow:inset 0 1px 2px #00000009;flex-wrap:wrap;width:fit-content;max-width:100%;margin:12px 18px}
body.smartisan-console :is(.matching-tabs,.overview-courier-time)>.button{border:0;border-radius:4px;box-shadow:none;background:transparent;min-height:32px;text-shadow:0 1px #fff;padding:6px 12px}
body.smartisan-console :is(.matching-tabs,.overview-courier-time)>.button.primary{background:linear-gradient(#929292,#a0a0a0);box-shadow:inset 0 1px 3px #0003;color:#fff;text-shadow:0 1px #0002}
.smartisan-console .overview-courier-time{margin:0}
body.smartisan-console table th{background:linear-gradient(#fafafa,#f3f3f3);color:#7f7f7f;font-size:12px;font-weight:600;border-color:#e9e9e9}
body.smartisan-console table td{border-color:#f0f0f0;font-size:13px;color:#333}
.smartisan-console tbody tr:hover td{background:#f8faff}.smartisan-console .mono{font-variant-numeric:tabular-nums}
.smartisan-console .overview-summary-group{border-radius:6px;border-color:#dedede}
.smartisan-console .overview-summary-group>summary{background:linear-gradient(#fafafa,#f1f1f1);color:#636363;box-shadow:inset 0 1px #fff}
.smartisan-console .overview-shipping-progress progress{height:8px;box-shadow:inset 0 1px 2px #0001}
.smartisan-console .overview-shipping-progress progress::-webkit-progress-value{background:linear-gradient(#3789f4,var(--accent-blue))}
body.smartisan-console .overview-metric-value{min-height:0;border:0;border-radius:0;box-shadow:none;background:none;color:inherit;padding:0;font:inherit}
.smartisan-console :is(.matching-shop-options,.overview-courier-options,.inventory-query-warehouse-options){border:.8px solid #d6d6d6;border-radius:6px;background:#fff;box-shadow:0 6px 16px #00000018;padding:12px;max-width:calc(100vw - 36px)}
.smartisan-console details[id$=picker]>summary{background:linear-gradient(#fff,#fcfcfc);border:.8px solid #d9d9d9;border-radius:6px;min-height:36px;color:#636363}
.smartisan-console details[id$=picker][open]>summary{box-shadow:inset 0 1px 3px #00000010;border-color:#7cacf0}
.smartisan-console details[id$=picker] label{border-radius:4px}.smartisan-console details[id$=picker] label:hover{background:#f1f4fa}
.smartisan-console .page-information{box-shadow:none;background:#f9f9f9}.smartisan-console .page-information>summary{padding:12px 18px;font-size:13px;color:#7f7f7f}
.smartisan-console .account-form{padding:18px;gap:12px}.smartisan-console .account-form fieldset{border:.8px solid #e2e2e2;border-radius:6px;background:#fafafa}.smartisan-console .account-form legend{color:#7f7f7f;font-size:13px}
.smartisan-console dialog{width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 36px);padding:0;border:.8px solid #c8c8c8;border-radius:12px;background:#fff;color:#333;box-shadow:0 12px 40px #0003;overflow:auto}
.smartisan-console dialog[open]{animation:smartisan-dialog-in 120ms ease-out}.smartisan-console dialog::backdrop{background:#0009}
body.smartisan-console .dialog-heading{position:relative;justify-content:center;align-items:center;text-align:center;background:linear-gradient(#fafafa,#ececec);padding:18px 48px;border-bottom:.8px solid #d9d9d9;border-radius:12px 12px 0 0;margin:0}
body.smartisan-console .dialog-heading h2{font-size:18px;color:#636363;text-align:center;margin:0}.smartisan-console .dialog-heading p{font-size:12px;color:#7f7f7f;margin:6px 0 0}
.smartisan-console .dialog-heading>.icon-button{position:absolute;right:12px;top:12px;width:30px;min-height:30px;padding:0;font-size:21px}
.smartisan-console dialog>form{padding:18px;margin:0}.smartisan-console dialog .dialog-footer{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;border-top:.8px solid #eee;padding-top:16px;margin-top:18px}
.smartisan-console dialog .field{margin:12px 0}.smartisan-console dialog :is(input,select,textarea){width:100%}.smartisan-console dialog input[type=checkbox]{width:auto}
.smartisan-console .toast{background:#fcf6e6;color:#ad8a67;border:.8px solid #eadfc6;border-radius:6px;box-shadow:0 4px 12px #0001}
.smartisan-console :focus-visible{outline:2px solid var(--accent-blue);outline-offset:3px}.smartisan-console footer{font-size:12px;color:#9d9d9d}
.smartisan-login{min-height:100dvh;display:grid;place-items:center;padding:24px}.smartisan-login main{width:min(408px,100%);margin:0;padding:30px;background:#fff;border:.8px solid #e2e2e2;border-radius:12px;box-shadow:0 10px 16px #0000000a}
.smartisan-login .brand{justify-content:center;text-align:center;color:#636363}.smartisan-login h1{text-align:center;font-size:22px}.smartisan-login main>p{font-size:13px}.smartisan-login label{color:#636363;font-size:14px}.smartisan-login input{min-height:42px}.smartisan-login button[type=submit]{min-height:44px;width:100%;border:.8px solid #0e61d1;border-radius:6px;background:linear-gradient(var(--accent-blue),var(--accent-blue-bottom));color:#fff;font:600 15px var(--s-font);box-shadow:0 3px 4px #0000000d}
@keyframes smartisan-dialog-in{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
.smartisan-console .dialog-head{position:relative;display:flex;align-items:center;justify-content:center;min-height:60px;padding:16px 72px;background:linear-gradient(#fafafa,#ececec);border-bottom:.8px solid #d9d9d9;text-align:center;border-radius:12px 12px 0 0}
.smartisan-console .dialog-head h2{font-size:18px;font-weight:600;color:#636363;margin:0}
.smartisan-console .dialog-head>button{position:absolute;right:12px;top:12px}
.smartisan-console #batch-pack-form{padding:0}.smartisan-console #batch-pack-form>:not(.dialog-head){margin:16px 18px;max-width:calc(100% - 36px)}
.smartisan-console #pack-import-dialog>:not(.dialog-head){margin:16px 18px;max-width:calc(100% - 36px)}
.smartisan-console dialog::backdrop{backdrop-filter:none}
.smartisan-console .account-layout{align-items:start}.smartisan-console .account-form>label.field{margin:0}.smartisan-console .account-form{gap:12px}
.smartisan-console dialog>:is(.field,.hint,#sales-import-preview,.dialog-footer){margin:16px 18px;max-width:calc(100% - 36px)}
.smartisan-console :is(.inventory-card-options,.inventory-query-warehouse-options){background:#fff;border:.8px solid #d6d6d6;border-radius:6px;box-shadow:0 6px 16px #00000018}
.smartisan-console :is([data-card-picker],#inventory-warehouse-filter)>summary{background:linear-gradient(#fff,#fcfcfc);border:.8px solid #d9d9d9;border-radius:6px;color:#636363}
@media(min-width:651px) and (max-width:900px){.smartisan-console .sidebar .brand>span:last-child{display:block}.smartisan-console .sidebar .nav-caption{display:block}.smartisan-console .sidebar nav a{font-size:13px;gap:9px;justify-content:flex-start}.smartisan-console .sidebar nav{margin-top:12px}}
@media(max-width:1100px){.smartisan-console main{padding:18px}.smartisan-console .sidebar{width:184px}.smartisan-console .shell{margin-left:184px}.smartisan-console .brand{font-size:15px}}
@media(max-width:900px) and (min-width:651px){.smartisan-console .sidebar{width:184px}.smartisan-console .shell{margin-left:184px}.smartisan-console .brand{font-size:14px}.smartisan-console .brand-icon{display:none}}
@media(max-width:650px){
 .smartisan-console .shell{margin-left:0;padding-top:48px}.smartisan-console main{padding:18px 12px 90px}.smartisan-console .sidebar{top:auto;bottom:0;width:100%;padding:0;background:linear-gradient(#fafafa,#eee);border-top:.8px solid #d6d6d6;border-right:0;box-shadow:0 -2px 8px #0000000a}
 .smartisan-console .sidebar nav a{border:0;border-radius:0;padding:8px 2px;min-height:58px;font-size:10px;gap:4px}.smartisan-console .sidebar nav a.active{background:transparent;color:var(--accent-blue-text);box-shadow:inset 0 2px var(--accent-blue);text-shadow:none}.smartisan-console .sidebar nav a.active svg{color:var(--accent-blue)}
 .smartisan-console .topbar{padding:0 12px;gap:6px}.smartisan-console .topbar .breadcrumb{font-size:12px;min-width:0}.smartisan-console .topbar-right{gap:6px}.smartisan-console .topbar .manage-link{padding:4px}.smartisan-console .account-profile{gap:4px;font-size:12px;min-width:0}.smartisan-console .account-profile>span{max-width:66px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.smartisan-console .topbar #account-logout{font-size:11px;padding:4px 6px}
 .smartisan-console .panel-head{padding:14px 12px}.smartisan-console :is(.query-form,.sales-query-form,#entity-matching-query,.bill-query-form){padding:12px;gap:10px}.smartisan-console .matching-tabs{margin:12px}.smartisan-console .page-heading{align-items:flex-start}body.smartisan-console h1{font-size:22px}.smartisan-console .heading-actions{gap:6px}.smartisan-console .heading-actions .button{padding:6px 8px;font-size:12px}
 .smartisan-console .dialog-heading{padding:16px 44px}.smartisan-console dialog>form{padding:12px}.smartisan-console dialog .dialog-footer .button{flex:1}.smartisan-login main{padding:24px}.smartisan-console .topbar .local-label,.smartisan-console .topbar .timezone,.smartisan-console .top-separator{display:none}
}
@media(max-width:380px){.smartisan-console .topbar .breadcrumb{display:none}.smartisan-console .topbar-right{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.smartisan-console *, .smartisan-console *::before,.smartisan-console *::after{animation:none!important;transition:none!important}}
.sales-multi-field{min-width:0}.sales-multi-picker{position:relative;min-width:0}
.smartisan-console .sales-multi-picker>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:8px 11px;font-size:14px;cursor:pointer;list-style:none}
.sales-multi-picker>summary::after{content:'⌄';margin-left:8px}.sales-multi-picker>summary::-webkit-details-marker{display:none}
.smartisan-console .sales-multi-options{position:absolute;top:calc(100% + 6px);left:0;width:340px;max-width:min(340px,calc(100vw - 48px));z-index:30;background:#fff;border:1px solid #d6d6d6;border-radius:6px;padding:12px;box-shadow:0 6px 16px #00000018}
.smartisan-console .sales-multi-options>input{width:100%;min-width:0}.sales-multi-options>button{margin:8px 0}
.sales-multi-list{max-height:260px;overflow:auto}.sales-multi-list label{display:flex;align-items:center;gap:8px;padding:7px 4px;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.sales-multi-list label[hidden]{display:none}.sales-multi-list input[type=checkbox]{flex:none;width:16px;height:16px;min-height:0;margin:0}
.sales-multi-picker[open]{z-index:31}
@media(min-width:1151px){.sales-multi-field:last-of-type .sales-multi-options{left:auto;right:0}}
.smartisan-symbols {position:absolute;width:0;height:0;overflow:hidden;}
