:root { color-scheme: light; font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif; color: #1c2938; background: #f4f6f9;
  --navy:#162639; --blue:#265db1; --line:#dce3ec; --muted:#566678; }
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
button,input,select,textarea { font:inherit; }
button,select { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
:focus-visible { outline:2px solid #669df5; outline-offset:2px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; white-space:nowrap; }
.brand span { display:grid; place-items:center; width:34px; height:34px; border-radius:8px; color:#fff; background:#3565a2; }
.signin { min-height:100dvh; display:grid; place-items:center; padding:25px; background:radial-gradient(ellipse at 70% 18%,#dce8f8,#f4f6f9 60%); }
.login-card { width:min(405px,100%); background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 17px 48px #15324b14; padding:34px; }
.login-card h1 { margin:26px 0 21px; font-size:27px; }
.login-card button { width:100%; }
label { display:grid; gap:6px; margin-bottom:12px; color:#344358; font-size:13px; font-weight:650; }
input:not([type=checkbox]),select,textarea { width:100%; min-height:38px; color:inherit; background:#fff; border:1px solid #cdd9e6; border-radius:7px; padding:8px 10px; }
textarea { resize:vertical; }
.primary,.secondary { border:1px solid transparent; min-height:37px; padding:7px 12px; border-radius:7px; font-weight:700; white-space:nowrap; }
.primary { background:var(--blue); color:#fff; }
.primary:hover { background:#1f4b8d; }
.secondary { color:#24496f; border-color:#d8e2ef; background:#f3f7fc; }
.secondary:hover { background:#e6effb; }
.layout { display:grid; grid-template-columns:216px minmax(0,1fr); min-height:100dvh; }
.sidebar { color:#e5edf6; background:var(--navy); padding:25px 18px; }
.sidebar .brand { margin-bottom:30px; }
.sidebar nav { display:grid; gap:6px; }
.sidebar button { min-height:43px; width:100%; border:0; border-radius:8px; background:transparent; color:#bccadc; text-align:left; padding:8px 13px; font-weight:650; }
.sidebar button:hover,.sidebar button[aria-pressed=true] { color:#fff; background:#263f5e; }
.work { padding:30px clamp(15px,3vw,45px) 42px; }
.workspace-header { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:20px; }
.workspace-header h1 { margin:0 0 5px; font-size:clamp(23px,4vw,31px); }
.workspace-header p,.muted { margin:0; color:var(--muted); font-size:13px; }
.profile { display:flex; align-items:center; gap:10px; font-size:13px; }
.profile span { overflow-wrap:anywhere; }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:16px; }
.metric { border:1px solid var(--line); border-radius:11px; padding:14px 17px; background:#fff; color:var(--muted); font-size:13px; }
.metric strong { display:block; margin-top:6px; color:#1b3f6c; font-size:25px; font-variant-numeric:tabular-nums; }
.panel { border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.toolbar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:13px; }
.toolbar label { margin:0; white-space:nowrap; }
.filters { display:flex; justify-content:start; align-items:center; gap:8px; }
.toolbar input { width:min(235px,100%); }
.toolbar select { width:auto; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
th,td { padding:10px 13px; border-top:1px solid var(--line); white-space:nowrap; }
th { background:#f8fafd; color:#465c73; }
td small { display:block; margin-top:4px; color:var(--muted); }
.support-id, .support-contact, .support-message { white-space: normal; overflow-wrap: anywhere; }
.support-id, .support-contact { min-width: 140px; max-width: 235px; }
.support-message { min-width: 190px; max-width: 460px; white-space: pre-wrap; }
.table-product { display:flex; align-items:center; gap:9px; }
.table-product img { width:43px; height:43px; object-fit:cover; border-radius:7px; background:#eff3f6; }
.badge { display:inline-block; padding:4px 7px; border-radius:6px; background:#eaf0f8; color:#30516d; }
.badge.ok { background:#e5f4eb; color:#246244; }
.badge.wait { background:#fff3dc; color:#79511d; }
.link-button { border:0; background:none; color:#215caa; font-weight:700; padding:5px; }
.link-button:hover { text-decoration:underline; }
.pager { display:flex; justify-content:flex-end; align-items:center; gap:7px; padding:11px 13px; font-size:13px; color:var(--muted); }
.empty { text-align:center; padding:23px; color:var(--muted); }
.error { color:#a52f35; margin:5px 0 9px; font-size:13px; }
.error:empty { display:none; }
dialog { width:min(680px,calc(100vw - 22px)); max-height:calc(100dvh - 22px); overflow:auto; margin:auto; color:#1c2938; padding:20px; border:1px solid var(--line); border-radius:14px; }
dialog::backdrop { background:#132438ad; }
.dialog-head { display:flex; justify-content:space-between; align-items:center; padding-bottom:9px; margin-bottom:13px; border-bottom:1px solid var(--line); }
.dialog-head h2 { margin:0; font-size:21px; }
.icon { border:0; border-radius:6px; width:30px; height:30px; background:#eef3fa; color:#203956; font-size:20px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.wide { grid-column:1 / -1; }
fieldset { margin:0 0 12px; padding:11px; border:1px solid var(--line); border-radius:8px; min-width:0; }
legend { padding:0 5px; color:#2b4665; font-size:14px; font-weight:700; }
.image-edit { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:11px; }
.image-edit img { object-fit:cover; border:1px solid var(--line); border-radius:8px; }
.check { display:flex; align-items:center; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
.toast { position:fixed; right:20px; bottom:20px; max-width:min(500px,calc(100vw - 40px)); padding:11px 16px; background:#193753; color:#fff; border-radius:9px; box-shadow:0 8px 30px #17293c33; }
.order-detail-list { color:var(--muted); overflow-wrap:anywhere; }
@media(max-width:750px) {
  .layout { display:block; }
  .sidebar { display:flex; flex-wrap:wrap; align-items:center; gap:9px; padding:10px; }
  .sidebar .brand { margin:0; font-size:15px; }
  .sidebar nav { display:flex; flex-wrap:wrap; }
  .sidebar button { width:auto; min-height:32px; padding:5px 8px; font-size:13px; }
  .work { padding-top:17px; }
  .metrics { gap:6px; }
  .metric { padding:9px; }
  .metric strong { font-size:19px; }
  .filters { flex-wrap:wrap; }
}
