:root {
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: #1e293b;
  background: #f4f7fb;
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 70px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
}
header strong {
  font-size: 19px;
}
header .actions {
  flex-wrap: nowrap;
}
aside {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  position: fixed;
  top: 70px;
  bottom: 0;
  padding: 24px 14px;
}
aside a {
  display: block;
  padding: 12px 20px;
  border-radius: 7px;
  color: #475569;
  text-decoration: none;
  margin-bottom: 6px;
}
aside a.active {
  background: #eaf1ff;
  color: #2563eb;
  font-weight: 600;
}
.brand {
  background: #2563eb;
  color: white;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
main {
  margin-left: 220px;
  padding: 26px;
  max-width: 1800px;
}
h1 {
  font-size: 25px;
  margin: 0 0 20px;
}
h3 {
  font-size: 17px;
  margin: 0 0 18px;
}
p {
  margin: 10px 0;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 7px 13px;
  line-height: 1.5;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: white;
  color: #334155;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  min-height: 35px;
}
button:hover,
.button:hover {
  background: #f1f5fd;
  border-color: #8faee3;
}
button.primary,
.button.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
select,
textarea {
  border: 1px solid #ccd7e5;
  border-radius: 6px;
  font: inherit;
  padding: 8px 10px;
  background: white;
  color: #1e293b;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bfdbfe;
  border-color: #3b82f6;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  flex-shrink: 0;
}
input[type="search"] {
  min-width: 220px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}
label:has(input[type="checkbox"]) input {
  order: -1;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form label:has(textarea),
.form fieldset,
.form .form-error,
.form > .actions,
.form label:has(input[type="file"]),
.form .drop-zone {
  grid-column: 1/-1;
}
.form .actions {
  justify-content: flex-end;
}
.form-error {
  color: #b91c1c;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 2px 5px #1e293b03;
}
.toolbar,
.actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar {
  margin-bottom: 18px;
  gap: 12px;
}
.actions button,
.actions .button {
  font-size: 13px;
}
.tabs {
  margin-bottom: 22px;
  border-bottom: 1px solid #dce4ef;
  padding-bottom: 12px;
}
.tabs .active {
  color: #2563eb;
  border-color: #2563eb;
  background: #edf3ff;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  background: #f7f9fc;
  color: #64748b;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf4;
}
td .actions {
  min-width: 160px;
}
td {
  max-width: 330px;
  overflow-wrap: anywhere;
}
tr:hover td {
  background: #fafcff;
}
.sort {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 20px;
  font-size: 13px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  color: #64748b;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: #eaf0f7;
  white-space: nowrap;
  color: #475569;
  font-size: 12px;
}
.approved,
.active {
  background: #e7f8ef;
  color: #15803d;
}
.rejected,
.disabled,
.urgent {
  background: #feecec;
  color: #b91c1c;
}
.submitted {
  background: #e8f0ff;
  color: #2563eb;
}
.reviewing,
.supplement,
.high {
  background: #fff4df;
  color: #a16207;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}
.stat span {
  color: #64748b;
  display: block;
}
.stat strong {
  font-size: 30px;
  display: block;
  color: #1d4ed8;
  margin-top: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
meter {
  width: 100%;
  height: 20px;
  accent-color: #2563eb;
}
.muted,
.hint,
small {
  color: #64748b;
}
.hint {
  font-size: 12px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: #94a3b8;
}
dialog {
  padding: 25px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 20px 100px #0f172a40;
  width: min(850px, 94vw);
  max-height: 90vh;
  overflow: auto;
  color: #1e293b;
}
dialog::backdrop {
  background: #0f172a66;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-head h3 {
  margin: 0;
}
dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
}
dt {
  color: #64748b;
}
dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
fieldset {
  border: 1px solid #dce4ef;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.notice {
  padding: 15px 0;
  border-bottom: 1px solid #e2e8f0;
}
.folder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}
.file-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0;
}
.drop-zone {
  padding: 22px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  text-align: center;
}
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: grid;
  gap: 10px;
}
.toast {
  padding: 12px 22px;
  background: #166534;
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px #0002;
  max-width: 480px;
}
.toast.error {
  background: #b91c1c;
}
.login main {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #dceaff, #f4f7fb 65%);
}
.login #page-title {
  display: none;
}
.login #content {
  width: 100%;
}
.login-card {
  max-width: 480px;
  margin: auto;
  background: white;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 18px 60px #284d9015;
}
.login-card h1 {
  font-size: 22px;
  margin: 18px 0 10px;
}
.login-card .form {
  grid-template-columns: 1fr;
  margin: 25px 0;
}
.login-card .form .actions button {
  width: 100%;
}
.login-card > .button,
.login-card > button {
  width: 100%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  aside {
    width: 170px;
  }
  main {
    margin-left: 170px;
    padding: 18px;
  }
  .stats {
    gap: 10px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  header strong {
    font-size: 15px;
  }
}
@media (max-width: 700px) {
  header {
    padding: 10px 14px;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
  }
  header strong {
    font-size: 14px;
  }
  aside {
    position: static;
    width: auto;
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
  }
  aside nav {
    display: flex;
    overflow: auto;
  }
  aside a {
    white-space: nowrap;
    padding: 8px 12px;
    margin: 0;
  }
  main {
    margin: 0;
    padding: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 15px;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  dl {
    grid-template-columns: 110px 1fr;
  }
  dialog {
    padding: 18px;
  }
  .login-card {
    padding: 25px;
  }
}
