:root {
  color-scheme: light;
  --ink: #242528;
  --muted: #74777f;
  --green: #cb1423;
  --green-dark: #aa101d;
  --soft: #fcf0f1;
  --line: #e5e6e9;
  --surface: #f6f7f9;
  --orange: #a47325;
  --red: #bc2033;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d8dfd9;
  background: #fff;
  color: var(--ink);
  border-radius: 5px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
button:hover {
  background: #f2f6f2;
}
button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
button.primary:hover {
  background: var(--green-dark);
}
button.danger {
  color: var(--red);
}
button.text-button {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 7px;
  color: var(--green);
}
.icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7b8982;
}
.icon-button:hover {
  color: var(--green);
  background: #e8f1ea;
}
svg.lucide {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  flex-shrink: 0;
}
:focus-visible {
  outline: 3px solid #84b4a5;
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid #d8e0d9;
  border-radius: 4px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #9da59f;
}
input:not([type="checkbox"]):not([type="file"]),
select {
  height: 39px;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}
.primary,
.green {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
h2 {
  font-size: 18px;
  font-weight: 600;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
}
.brand-symbol {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 27px 23px 34px;
  white-space: nowrap;
}
.brand strong {
  font-size: 16px;
}
.sidebar {
  width: 222px;
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.nav-label {
  font-size: 11px;
  color: #9aa49d;
  margin: 0 25px 13px;
}
nav {
  padding: 0 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #647269;
  border-radius: 5px;
  font-size: 13px;
}
nav a.active {
  color: var(--green);
  background: #eaf3ed;
  font-weight: 600;
}
nav a:hover {
  background: #f0f5f1;
}
nav .nav-separator {
  height: 1px;
  background: var(--line);
  margin: 17px 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 32px;
  height: 32px;
  background: #eaf1ed;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 12px;
}
.identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.identity strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity span {
  font-size: 10px;
  color: #94a095;
}
.sidebar-bottom .icon-button {
  min-width: 25px;
  width: 25px;
}
.workspace {
  margin-left: 222px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 67px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 12px;
  color: #78867c;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #679478;
  border-radius: 50%;
}
#content {
  padding: 32px 36px 40px;
  flex: 1;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 36px;
  font-size: 10px;
  color: #9ba49d;
  border-top: 1px solid var(--line);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.overline {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}
.metrics {
  display: flex;
  gap: 0;
  margin: 0 0 27px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.metric {
  min-width: 150px;
  padding-right: 35px;
  margin-right: 35px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 11px;
}
.metric strong {
  font-size: 27px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.metric em {
  font-style: normal;
  font-size: 12px;
  color: #9aa69c;
  margin-left: 6px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.search {
  position: relative;
}
.search input {
  width: 210px;
  padding-left: 34px;
  background: #fff;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 12px;
  color: #8d9d91;
  width: 15px;
  height: 15px;
}
.date-input {
  width: 137px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  height: 45px;
  background: #f3f6f3;
  color: #6d7c70;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 15px;
  border-bottom: 1px solid #eef1ed;
  height: 61px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfa;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.batch-title {
  font-weight: 500;
  color: #2c4537;
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.batch-code {
  font-size: 10px;
  color: #a0aaa2;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: #edf2ef;
  color: #6b7b70;
}
.badge.green {
  background: #e9f3eb;
  color: #4f8660;
}
.badge.orange {
  background: #fcf2e3;
  color: #ac7e3a;
}
.badge.gray {
  background: #f0f1ef;
  color: #859086;
}
.badge.red {
  color: var(--red);
  background: #faeded;
}
.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.empty {
  text-align: center;
  padding: 64px 20px 72px;
  background: #fff;
}
.empty > svg {
  width: 38px;
  height: 38px;
  color: #9db5a5;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  color: #87988b;
  margin-bottom: 20px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 1px;
  font-size: 12px;
  color: #8b988d;
  gap: 12px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination button {
  height: 30px;
  min-width: 32px;
  padding: 0 8px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}
.section-top h2 {
  font-size: 15px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8b988b;
  margin-bottom: 15px;
}
.back svg {
  width: 14px;
  height: 14px;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #dfe7df;
  margin-bottom: 16px;
}
.tabs button {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 44px;
  padding: 0 0 12px;
  color: #8b978a;
  position: relative;
}
.tabs button.active {
  color: var(--green);
  font-weight: 600;
}
.tabs button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}
.tabs .count {
  font-size: 10px;
  border-radius: 3px;
  background: #e8efea;
  padding: 2px 5px;
  margin-left: 0;
}
.filename {
  max-width: 250px;
  min-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.file-reason {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  color: #b58b50;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-wrap .price-input {
  width: 100px;
  text-align: right;
  height: 33px !important;
  padding: 5px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.info-band {
  padding: 13px 16px;
  background: #edf4ef;
  color: #587664;
  border-left: 3px solid #8bad96;
  font-size: 12px;
  margin-bottom: 20px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.7;
}
.info-band.warn {
  background: #fcf5e9;
  border-color: #d4b47d;
  color: #a1824d;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8b978b;
  margin-top: 9px;
}
.detail-meta .badge {
  margin-right: 6px;
}
.summary-footer {
  background: #f1f6f1;
  border-top: 1px solid #dfe7df;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 17px;
  font-size: 12px;
  align-items: center;
}
.summary-footer strong {
  font-size: 20px;
  color: var(--green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.notice-row {
  padding: 12px 0;
  margin-top: 12px;
  color: #8b978b;
  font-size: 12px;
}
.revision {
  margin-top: 24px;
}
.revision summary {
  font-size: 12px;
  color: #87988b;
  cursor: pointer;
}
.revision-list {
  margin-top: 12px;
}
.revision-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.revision-list time {
  color: #94a194;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.error-surface {
  padding: 50px 20px;
  color: var(--red);
  text-align: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  width: 520px;
  max-width: calc(100vw - 28px);
  max-height: 90svh;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 80px #15372926;
}
dialog::backdrop {
  background: #182d275c;
  backdrop-filter: blur(2px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 17px;
}
#modal-content {
  padding: 22px 23px 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
.modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 25px;
  flex-wrap: wrap;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  min-height: 20px;
  margin-top: 12px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.field-note {
  font-size: 11px;
  color: #8e9c90;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.password-field {
  display: flex;
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 43px;
}
.password-field .icon-button {
  position: absolute;
  right: 3px;
  top: 3px;
}
.login-brand {
  padding: 35px 6%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.login-main {
  width: min(100% - 80px, 1000px);
  margin: 55px auto 75px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 100px;
  align-items: center;
}
.login-copy h1 {
  font-size: 46px;
  line-height: 1.5;
  font-weight: 600;
  margin-top: 17px;
}
.login-form {
  background: #fff;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.section-mark {
  font-size: 10px;
  color: #8b9d8e;
}
.login-form h2 {
  font-size: 22px;
  margin: 10px 0 28px;
}
.login-form label {
  margin-bottom: 20px;
}
.login-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 5px;
  height: 43px;
}
.login-note {
  font-size: 11px;
  color: #a0aca1;
  text-align: center;
  margin-top: 18px;
  line-height: 1.8;
}
.login-footer {
  display: flex;
  justify-content: space-between;
  margin: 0 6%;
  padding: 20px 0;
  color: #9aa89c;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.login-scene {
  position: relative;
  height: 195px;
  margin-top: 50px;
  width: 300px;
}
.paper {
  position: absolute;
  width: 142px;
  height: 165px;
  top: 0;
  border-radius: 3px;
  background: #bed2c2;
  transform: rotate(-14deg);
  left: 23px;
}
.paper-two {
  background: #e6bf9f;
  left: 96px;
  top: 4px;
  transform: rotate(8deg);
}
.paper-three {
  background: #f9fbf6;
  left: 66px;
  top: -10px;
  transform: rotate(-2deg);
  border: 1px solid #d7e3d5;
  box-shadow: 0 7px 12px #3c61490a;
}
.paper-three::before {
  content: "";
  position: absolute;
  inset: 20px 20px 55px;
  background: repeating-linear-gradient(
    to bottom,
    #e8efe5 0,
    #e8efe5 4px,
    transparent 4px,
    transparent 17px
  );
}
.paper-label {
  position: absolute;
  bottom: 0;
  left: 64px;
  background: var(--green);
  padding: 13px 17px;
  border-radius: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  transform: rotate(-2deg);
}
#toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  background: #203e31;
  color: #fff;
  box-shadow: 0 5px 20px #243f3620;
  padding: 14px 22px;
  border-radius: 6px;
  z-index: 100;
  font-size: 13px;
  max-width: 90vw;
  overflow-wrap: anywhere;
}
#busy {
  position: fixed;
  inset: 0;
  background: #f8fbf4ba;
  z-index: 110;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 13px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #c9dbcd;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.role-info {
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
}
.small-table {
  max-width: 1150px;
}
.table-note {
  margin-bottom: 14px;
  font-size: 12px;
  color: #8b988d;
}
.name-cell {
  min-width: 130px;
}
.w-date {
  white-space: nowrap;
}
.active-mark {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--green);
}
.active-mark.off {
  color: #9a9f99;
}
.login-copy .overline {
  color: #76917b;
}
.dirty-label {
  color: #b28141 !important;
}
.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.separator-dot {
  color: #bbc5ba;
}
.file-count {
  color: var(--green);
  font-size: 12px;
  margin-top: 10px;
}
.role-tag {
  font-size: 11px;
  color: #8e9c90;
}
@media (min-width: 1550px) {
  #content {
    padding-top: 40px;
  }
  .login-main {
    margin-top: 100px;
    margin-bottom: 110px;
  }
  .table-wrap td {
    padding-top: 17px;
    padding-bottom: 17px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
  }
  .workspace {
    margin-left: 195px;
  }
  .brand {
    padding-left: 17px;
    gap: 8px;
  }
  .brand strong {
    font-size: 14px;
  }
  #content {
    padding: 26px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .metric {
    min-width: 120px;
    padding-right: 23px;
    margin-right: 23px;
  }
  .filename {
    max-width: 190px;
  }
  .login-main {
    gap: 50px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 16px 20px;
  }
  .nav-label {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    padding: 0 12px 12px;
    gap: 5px;
  }
  nav a {
    padding: 10px;
    white-space: nowrap;
    font-size: 12px;
    gap: 6px;
  }
  nav .nav-separator {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    right: 13px;
    top: 11px;
    border: 0;
    padding: 0;
    gap: 4px;
  }
  .identity {
    display: none;
  }
  .sidebar-bottom .icon-button {
    height: 37px;
    min-width: 30px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .workspace {
    margin-left: 0;
    min-height: calc(100svh - 120px);
  }
  .topbar {
    height: 45px;
    padding: 0 20px;
  }
  .topbar-right {
    font-size: 10px;
  }
  #content {
    padding: 23px 18px 30px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    gap: 7px;
  }
  .metric {
    min-width: 0;
    flex: 1;
    padding-right: 15px;
    margin-right: 15px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric span {
    font-size: 11px;
  }
  .metric:last-child {
    padding: 0;
    margin: 0;
  }
  .metrics {
    padding-bottom: 21px;
    margin-bottom: 22px;
  }
  .filters {
    gap: 7px;
    width: 100%;
  }
  .search {
    flex: 1;
    min-width: 140px;
  }
  .search input {
    width: 100%;
  }
  .filters select {
    max-width: 130px;
  }
  .date-input {
    width: 125px;
  }
  .toolbar {
    gap: 10px;
  }
  table {
    min-width: 780px;
  }
  table.catalog-table {
    min-width: 850px;
  }
  .workspace-footer {
    padding: 15px 18px;
  }
  .login-main {
    display: block;
    width: min(100% - 40px, 400px);
    margin: 40px auto 60px;
  }
  .login-copy {
    display: none;
  }
  .login-brand {
    padding: 25px 22px;
  }
  .login-form {
    padding: 28px;
  }
  .login-footer {
    font-size: 10px;
    gap: 15px;
  }
  .tabs {
    gap: 20px;
  }
  .modal-header {
    padding: 17px 18px;
  }
  #modal-content {
    padding: 18px;
  }
  .form-grid {
    gap: 15px;
  }
  .detail-meta {
    font-size: 11px;
    gap: 8px;
  }
  .page-heading .heading-actions {
    width: 100%;
  }
  .detail-heading h1 {
    font-size: 21px;
    overflow-wrap: anywhere;
  }
  .pagination {
    font-size: 11px;
  }
  .pagination > div {
    gap: 6px;
  }
  .table-note {
    font-size: 11px;
  }
  .info-band {
    font-size: 11px;
  }
  .filename {
    max-width: 210px;
  }
  .topbar #breadcrumb {
    font-size: 11px;
  }
}
.login-main {
  display: flex;
  justify-content: center;
  margin-top: 45px;
  margin-bottom: 75px;
  min-height: 480px;
}
.login-form {
  width: 380px;
}
.login-brand {
  justify-content: center;
  padding-top: 45px;
}
.login-form h2 {
  font-size: 23px;
}
.login-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.login-form {
  box-shadow: 0 6px 30px #24413404;
}
@media (max-width: 760px) {
  .login-main {
    margin-top: 12px;
    margin-bottom: 30px;
    min-height: 430px;
  }
  .login-brand {
    padding-top: 30px;
  }
  .login-form {
    width: 100%;
  }
  .login-footer {
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
