* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    13px/1.55 "Microsoft YaHei",
    Arial,
    sans-serif;
  color: #222d40;
  background: #f4f6f9;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: white;
  border: 1px solid #dce1e9;
  border-radius: 5px;
  min-height: 32px;
  padding: 4px 12px;
}
button:hover {
  border-color: #9db8ed;
  color: #245fcf;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2e6be6;
  outline-offset: 2px;
}
.primary,
.primary:hover {
  background: #2e6be6;
  color: white;
  border-color: #2e6be6;
}
.link {
  border: 0;
  background: transparent;
  color: #2867d6;
  padding: 2px 5px;
  min-height: 26px;
}
.icon {
  border: 0;
  background: transparent;
  padding: 2px 7px;
  font-size: 18px;
  line-height: 1;
}
input,
select,
textarea {
  border: 1px solid #dce1e9;
  border-radius: 5px;
  min-height: 32px;
  background: #fff;
  color: inherit;
  padding: 5px 9px;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d0dfff;
  border-color: #75a0f7;
}
input[type="checkbox"] {
  min-height: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: #79869a;
}
svg.sym {
  width: 17px;
  height: 17px;
  flex: none;
  vertical-align: middle;
}
button svg {
  pointer-events: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
  color: #172d50;
  letter-spacing: 0.06em;
}
.mark {
  display: inline-grid;
  place-items: center;
  background: #286ae5;
  color: white;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  flex: none;
}
.mark svg {
  width: 25px;
  height: 25px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eff3f8;
  padding: 25px;
}
.authbox {
  background: white;
  border: 1px solid #e2e7ef;
  box-shadow: 0 10px 35px #26395010;
  width: min(445px, 96vw);
  border-radius: 12px;
  padding: 32px 36px;
}
.authbox .logo {
  font-size: 26px;
}
.authbox .badge {
  font-weight: 500;
  letter-spacing: 0;
}
.authbox form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}
.authbox input {
  width: 100%;
  height: 40px;
}
.authbox .primary {
  height: 40px;
}
.authbox > footer {
  text-align: center;
  margin-top: 14px;
}
.authphotos {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #edf0f5;
  padding: 14px 0;
  color: #58667a;
}
.authphotos span {
  margin-right: auto;
}
.authphotos img {
  width: 38px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
}
.formerr {
  color: #b83935;
  white-space: pre-line;
}
.authbox details {
  margin-top: 14px;
  color: #66748b;
  font-size: 12px;
}
.shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: 56px 36px minmax(0, 1fr);
}
.shell.fold {
  grid-template-columns: 64px minmax(0, 1fr);
}
aside {
  grid-row: 1/4;
  background: white;
  border-right: 1px solid #e2e7ee;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brandbox {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #edf0f4;
  flex: none;
}
.side {
  overflow: auto;
  min-height: 0;
  flex: 1;
  padding: 8px;
  scrollbar-width: thin;
}
.navgroup {
  font-size: 11px;
  color: #8591a3;
  padding: 13px 12px 5px;
  letter-spacing: 0.12em;
}
.side button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 7px 11px;
  border: 0;
  white-space: nowrap;
  color: #46566d;
  min-height: 35px;
}
.side button.on {
  background: #2e6be6;
  color: white;
}
.sidefoot {
  padding: 9px;
  border-top: 1px solid #e8ebf2;
}
.sidefoot button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.fold .logo b,
.fold .side button span,
.fold .sidefoot span,
.fold .navgroup {
  display: none;
}
.fold .side button {
  justify-content: center;
}
.top,
.tabs {
  background: #fff;
  border-bottom: 1px solid #e8ebf2;
  display: flex;
  align-items: center;
  padding: 0 17px;
  gap: 10px;
  min-width: 0;
}
.top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e8efff;
  color: #2867d6;
  font-weight: bold;
}
.env,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  background: #edf3ff;
  color: #315cb0;
  white-space: nowrap;
}
.env {
  background: #f4f6f9;
  color: #65738b;
}
.tabs {
  padding: 0 8px;
  gap: 4px;
}
.tabs > .icon {
  width: 25px;
  min-height: 24px;
}
.tabrail {
  flex: 1;
  display: flex;
  overflow: auto;
  scrollbar-width: none;
  gap: 5px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  border: 1px solid #e3e7ef;
  border-radius: 4px;
  padding: 0 4px;
}
.tab button {
  border: 0;
  background: none;
  min-height: 23px;
  padding: 1px 5px;
  color: inherit;
  font-size: 12px;
}
.tab.active {
  background: #2e6be6;
  border-color: #2e6be6;
  color: white;
}
.work {
  padding: 16px;
  overflow: auto;
  min-width: 0;
}
.pagehead,
.cardhead,
.rowtools,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagehead {
  justify-content: space-between;
  margin-bottom: 12px;
}
.card {
  border: 1px solid #e3e8ef;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px #17283b05;
  margin-bottom: 14px;
  min-width: 0;
}
.cardhead {
  padding: 12px 17px;
  border-bottom: 1px solid #edf0f4;
  justify-content: space-between;
}
.pad {
  padding: 16px;
}
.counters,
.metrics {
  display: grid;
  gap: 12px;
}
.counters {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 16px;
}
.counter {
  display: grid;
  text-align: left;
  gap: 6px;
  background: #f3f7ff;
  border: 1px solid #dce7ff;
  padding: 10px 13px;
  color: #425470;
}
.counter b {
  font-size: 23px;
  color: #2e63cc;
  line-height: 1.3;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.filters label,
.field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #5f6c80;
}
.filters label input {
  width: 200px;
}
.filters .actions {
  margin-left: auto;
}
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}
.metric {
  background: white;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  padding: 13px 17px;
  position: relative;
  overflow: hidden;
}
.metric strong {
  display: block;
  font-size: 25px;
  color: #1d304b;
  margin: 4px 0;
}
.metric small {
  font-size: 11px;
}
.metric svg {
  position: absolute;
  right: 13px;
  bottom: 17px;
  width: 66px;
  height: 20px;
}
.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 14px;
}
.chart {
  display: block;
  width: 100%;
  height: 165px;
}
.legend {
  font-size: 12px;
  display: flex;
  gap: 16px;
  color: #66748a;
}
.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.barrow {
  display: grid;
  grid-template-columns: 65px 1fr 45px;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.bar {
  height: 8px;
  background: #edf1f7;
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.tablebox {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 10px 13px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}
th {
  background: #f7f9fc;
  color: #56647a;
  font-size: 12px;
  white-space: nowrap;
}
td {
  font-size: 13px;
}
tr:hover td {
  background: #fafcff;
}
.prod {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 160px;
}
.prod img,
.thumb {
  width: 40px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #f1f3f7;
}
.prod b {
  display: block;
  max-width: 260px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod small {
  display: block;
}
.good {
  color: #117851;
  background: #e5f5ee;
}
.warn {
  color: #946009;
  background: #fff3dd;
}
.bad {
  color: #bd3f3c;
  background: #ffece9;
}
.calm {
  color: #546278;
  background: #eff2f6;
}
.ops {
  white-space: nowrap;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  color: #697789;
}
.blank {
  text-align: center;
  padding: 38px;
  color: #7a879a;
}
.subtabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #dde4ee;
}
.subtabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 8px 2px;
}
.subtabs button.on {
  border-bottom: 2px solid #2e6be6;
  color: #2867d6;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gallery img {
  width: 70px;
  height: 76px;
  object-fit: cover;
  border: 1px solid #e3e8ef;
  border-radius: 5px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0e6ee;
  border-radius: 7px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
  margin: 8px 0;
}
.choice b {
  flex: 1;
}
.choice img {
  width: 49px;
  height: 55px;
  object-fit: cover;
}
.choice:hover {
  background: #f6f9ff;
}
dialog {
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  padding: 0;
  width: min(760px, 94vw);
  max-height: 88vh;
  box-shadow: 0 16px 70px #18263e30;
  color: inherit;
}
dialog::backdrop {
  background: #16223768;
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: 87vh;
}
dialog header,
dialog footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid #e6eaf1;
}
dialog header {
  justify-content: space-between;
}
dialog footer {
  justify-content: flex-end;
  border-bottom: 0;
  border-top: 1px solid #e6eaf1;
}
dialog footer .formerr {
  margin-right: auto;
}
#panelBody {
  overflow: auto;
  padding: 17px 20px;
  min-height: 0;
}
.formgrid,
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.facts {
  gap: 0;
  border-top: 1px solid #e5eaf0;
  border-left: 1px solid #e5eaf0;
}
.fact {
  display: grid;
  grid-template-columns: minmax(80px, 35%) 1fr;
  border-bottom: 1px solid #e5eaf0;
  border-right: 1px solid #e5eaf0;
  overflow-wrap: anywhere;
}
.fact span,
.fact b {
  padding: 8px;
}
.fact span {
  background: #f7f9fc;
  color: #5e697a;
}
.fact b {
  font-weight: 450;
}
.sectionname {
  border-left: 3px solid #3876ed;
  padding-left: 8px;
  margin: 14px 0 9px;
}
.sectionname:first-child {
  margin-top: 0;
}
.wide {
  grid-column: 1/-1;
}
.field input,
.field select {
  width: 100%;
}
.help {
  background: #f4f7fc;
  color: #596a81;
  padding: 10px 13px;
  border-radius: 5px;
  margin-bottom: 13px;
}
.danger {
  color: #b6443d;
}
.sku-scroll {
  max-height: 240px;
  overflow: auto;
}
#notice {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #253953;
  color: #fff;
  padding: 9px 18px;
  border-radius: 7px;
  z-index: 20;
}
#notice.show {
  display: block;
}
[hidden] {
  display: none !important;
}
.bigphoto {
  width: 100%;
  object-fit: contain;
  max-height: 65vh;
}
.previewmain {
  height: 120px;
  width: 120px;
  object-fit: cover;
  border-radius: 6px;
}
.field em {
  color: #bd3f3c;
  font-style: normal;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 174px minmax(0, 1fr);
  }
  .counters {
    gap: 6px;
  }
  .counter {
    padding: 8px;
  }
  .twocol {
    grid-template-columns: 1.35fr 1fr;
  }
  .prod b {
    max-width: 170px;
  }
}
@media print {
  body .shell,
  dialog header,
  dialog footer,
  #notice {
    display: none !important;
  }
  dialog[open] {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    width: 100%;
    max-height: none;
  }
  dialog::backdrop {
    background: white;
  }
  #panelBody {
    overflow: visible;
  }
}
dialog.publication {
  width: min(960px, 94vw);
}
.facts > .fact:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  grid-template-columns: 17.5% 1fr;
}
.metric .mini {
  width: 72px;
  height: 24px;
  bottom: 18px;
}
.actions {
  flex-wrap: wrap;
}
