*{box-sizing:border-box}
body{margin:0;background:#f4f4f2;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Noto Sans JP","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}
a{color:#c8003c}a:hover{color:#8f002b}
button,input,select,textarea{font-family:inherit;font-size:14px}
h1{margin:0;font-size:26px}h2{margin:0 0 12px;font-size:16px}
.app{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:0 0 224px;min-width:224px;background:#231f20;color:#e7e5e4;padding:24px 16px;display:flex;flex-direction:column;gap:4px}
.brand{padding:0 8px 20px}.brand b{font-size:18px;font-weight:800;letter-spacing:.5px;color:#fff}.brand b span{color:#ff4d7d}.brand small{display:block;font-size:12px;color:#c9c5c3;margin-top:2px}
.side a.nav{display:block;padding:11px 12px;border-radius:6px;color:#e7e5e4;text-decoration:none}
.side a.nav:hover{background:#3a3536}
.side a.nav.on{background:#c8003c;color:#fff;font-weight:700}
.side .sync{margin-top:auto;padding:14px 8px 0;border-top:1px solid #4a4546;font-size:12px;color:#c9c5c3;line-height:1.7}
.side .me{padding:12px 8px 0;display:flex;justify-content:space-between;align-items:center;gap:8px}
.side .me b{display:block;color:#fff}.side .me small{color:#c9c5c3;font-size:12px}
.side .me a{font-size:13px;color:#ff8fb0}
.main{flex:999 1 560px;min-width:0;padding:28px 32px;display:flex;flex-direction:column;gap:18px}
.head{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-end}
.head .sub{margin-top:4px;color:#5f6368;font-size:13px}
.card{background:#fff;border:1px solid #e3e3df;border-radius:10px;padding:18px 20px}
.muted{color:#5f6368}.small{font-size:12px}
.btn{display:inline-block;padding:11px 18px;border-radius:8px;border:1px solid #c9c9c4;background:#fff;color:#1d1d1f;font-weight:700;text-decoration:none;cursor:pointer;min-height:44px;font-size:14px}
.btn:hover{background:#f7f7f5;color:#1d1d1f}
.btn.primary{background:#c8003c;border-color:#c8003c;color:#fff}.btn.primary:hover{background:#a80032;color:#fff}
.btn.dark{background:#231f20;border-color:#231f20;color:#fff}.btn.dark:hover{background:#3a3536;color:#fff}
.btn.sm{padding:7px 12px;min-height:36px;font-size:13px}
.btn.line{border-color:#c8003c;color:#c8003c}
.btns{display:flex;flex-wrap:wrap;gap:10px}
.flash{padding:12px 16px;border-radius:10px;font-size:14px}
.flash.ok{background:#e9f6ed;border:1px solid #b6dcc1;color:#14582a}
.flash.err{background:#fff1f3;border:1px solid #f0b3c1;color:#7a0021}
.alert{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:#fff1f3;border:1px solid #f0b3c1;border-radius:10px;padding:14px 16px;color:#7a0021}
.alert .t{flex:1 1 320px}
.tiles{display:flex;flex-wrap:wrap;gap:12px}
.tile{flex:1 1 170px;background:#fff;border:1px solid #e3e3df;border-radius:10px;padding:16px 18px;text-decoration:none;color:#1d1d1f;display:block}
.tile .l{font-size:13px;color:#5f6368}.tile .n{font-size:34px;font-weight:800;line-height:1.2}.tile .d{font-size:12px;color:#5f6368}
.tile.hot{border:2px solid #c8003c;padding:15px 17px}.tile.hot .l{color:#8f002b;font-weight:700}.tile.hot .n{color:#c8003c}
.bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill{padding:9px 14px;border-radius:20px;font-size:13px;font-weight:700;background:#fff;color:#1d1d1f;border:1px solid #c9c9c4;text-decoration:none;min-height:40px;display:inline-flex;align-items:center}
.pill.on{background:#231f20;color:#fff;border-color:#231f20}
input[type=text],input[type=search],input[type=password],input[type=number],input[type=date],select,textarea{padding:9px 10px;border:1px solid #c9c9c4;border-radius:8px;min-height:42px;background:#fff;max-width:100%}
textarea{width:100%;resize:vertical}
label.f{display:block;font-size:12px;color:#5f6368}
label.f input,label.f select,label.f textarea{display:block;width:100%;margin-top:3px;color:#1d1d1f}
input[readonly]{background:#f4f4f2}
.row{display:flex;flex-wrap:wrap;gap:12px}.row>*{flex:1 1 160px;min-width:0}
.tw{background:#fff;border:1px solid #e3e3df;border-radius:10px;overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th{background:#f7f7f5;text-align:left;color:#5f6368;font-size:12px;padding:11px 14px;border-bottom:1px solid #e3e3df;white-space:nowrap}
td{padding:12px 14px;border-bottom:1px solid #eeeeea;vertical-align:top}
tr:last-child td{border-bottom:0}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}
.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}
.b-pending{background:#fff1cc;color:#6b4400}.b-partial{background:#dcebff;color:#0a3f8c}.b-shipped{background:#dff3e4;color:#14582a}
.b-flag{background:#fff1f3;border:1px solid #f0b3c1;color:#8f002b;border-radius:6px;line-height:1.4;white-space:normal}
.b-woo{background:#231f20;color:#fff;border-radius:5px}.b-off{background:#fff;color:#231f20;border:1px solid #231f20;border-radius:5px}
.b-ai{background:#e8e0f7;color:#3d2a7a;border-radius:5px}.b-web{background:#eee;color:#222;border-radius:5px}.b-sys{background:#fff;color:#444;border:1px solid #c9c9c4;border-radius:5px}.b-xl{background:#dff3e4;color:#14582a;border-radius:5px}
.notrk{color:#c8003c;font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.chip{padding:3px 12px;border-radius:16px;font-size:14px;font-weight:700;border:2px solid #c8003c;color:#c8003c;background:#fff}
.chip.set{background:#333;border-color:#333;color:#fff}.chip.warn{background:#ff9800;border-color:#ff9800;color:#fff}
.ohead{background:#fff;border:3px solid #c8003c;border-radius:10px;padding:18px 20px}
.ohead h1{color:#c8003c}.total b{font-size:40px;line-height:1;color:#c8003c}
.ro{margin-top:12px;padding:9px 12px;background:#f4f4f2;border-radius:6px;font-size:13px;color:#4a4a4a}
.cols{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
.cols>.l{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:18px}
.cols>.r{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:18px}
.line-item{display:flex;gap:12px;padding:12px 0;border-top:1px solid #eeeeea}
.q{display:inline-block;min-width:44px;text-align:center;padding:3px 8px;border-radius:5px;font-weight:700;font-size:18px;background:#eee;color:#222;white-space:nowrap}
.q.set{background:#333;color:#fff}.q.hi{background:#c8003c;color:#fff}
.parts{margin-top:8px;padding-left:12px;border-left:3px solid #e5b3c1}
.parts .ph{font-size:13px;font-weight:700;color:#8f002b;margin-bottom:4px}
.part{display:flex;gap:8px;align-items:center;padding:3px 0;flex-wrap:wrap}
.part .q{font-size:15px;min-width:38px;padding:2px 6px}
.stk{font-size:12px;color:#5f6368}
.pkg{border:1px solid #e3e3df;border-radius:10px;padding:14px 16px;margin-bottom:12px}
.pkg.sent{border-color:#b6dcc1;background:#fbfefc}
.pkg .ph{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}
.shipbox{border-left:5px solid #333}
.shipbox .sa{font-size:18px;font-weight:700;line-height:1.65}
dl.kv{display:grid;grid-template-columns:96px minmax(0,1fr);row-gap:8px;margin:0;font-size:13px}
dl.kv dt{color:#5f6368}dl.kv dd{margin:0;word-break:break-word}
.tl{display:flex;flex-direction:column;gap:12px;font-size:13px;line-height:1.5}
.tl div{display:flex;gap:10px}.tl span:first-child{color:#5f6368;min-width:78px}
dialog{border:0;border-radius:12px;padding:24px 26px;width:min(480px,92vw);box-shadow:0 20px 60px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(35,31,32,.55)}
.dz{border:2px dashed #c9c9c4;border-radius:10px;padding:18px;text-align:center;color:#5f6368;font-size:13px}
.tpl{font-size:12px;color:#4a4a4a;background:#f4f4f2;border-radius:6px;padding:8px 10px;line-height:1.6}
.ok{color:#14582a;font-weight:700}.bad{color:#8f002b;font-weight:700}
.login{display:flex;flex-wrap:wrap;min-height:100vh}
.login .l{flex:1 1 420px;background:#231f20;color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;min-height:320px}
.login .r{flex:1 1 460px;display:flex;align-items:center;justify-content:center;padding:40px 24px}
.login form{width:100%;max-width:380px;background:#fff;border:1px solid #e3e3df;border-radius:12px;padding:32px 30px}
.login input{width:100%;min-height:48px;font-size:16px}
@media print{.side,.btns,.noprint{display:none!important}.main{padding:0}}
