:root {
  --green: #147a52;
  --ink: #1b3029;
  --muted: #788780;
  --line: #e3ebe6;
  --bg: #f4f7f5;
  --amber: #a26515;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ghost {
  background: #eaf2ed;
  color: var(--green);
}
.danger {
  background: #fff0ec;
  color: #b34836;
}
a {
  color: var(--green);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dce5df;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  margin-top: 7px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b7dfc8;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: block;
  color: #53635a;
  margin: 15px 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 8px 0;
}
h2 {
  font-size: 19px;
  margin: 0;
}
p {
  color: var(--muted);
}
small {
  color: var(--muted);
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #e5f3e8 0%, #f4f7f5 70%);
}
.login-card {
  width: 480px;
  max-width: 90vw;
  padding: 45px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px #193b2110;
}
.login h1 {
  font-size: 34px;
  margin: 20px 0;
}
.login button {
  width: 100%;
}
.login small {
  display: block;
  margin-top: 20px;
  font-size: 11px;
}
aside {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #102e23;
  color: #fff;
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  padding: 0 10px 30px;
}
.brand span {
  display: block;
  color: #a2b7aa;
  font-weight: 400;
  font-size: 11px;
  margin-top: 5px;
  letter-spacing: 2px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #b7c9bf;
  padding: 13px 16px;
  font-weight: 400;
}
nav button.active {
  background: #285440;
  color: white;
  font-weight: 650;
}
.aside-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  color: #b7c9bf;
  font-size: 12px;
}
.aside-bottom strong {
  display: block;
  font-size: 23px;
  color: white;
}
.aside-bottom small {
  display: block;
  color: #789887;
  margin-bottom: 20px;
}
.aside-bottom button {
  background: #254536;
  color: #c8dacd;
}
main {
  margin-left: 230px;
  padding: 36px 42px;
  max-width: 1900px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.stats {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  flex: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 24px;
}
.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.toolbar input {
  margin: 0;
  max-width: 350px;
}
.toolbar select {
  margin: 0;
  width: 160px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #fafcfb;
  padding: 13px 18px;
  white-space: nowrap;
}
td {
  padding: 18px;
  border-top: 1px solid #edf1ee;
  vertical-align: middle;
}
td.title {
  max-width: 370px;
  min-width: 230px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 6px;
}
td button {
  padding: 7px 11px;
  font-size: 12px;
  margin: 3px;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 11px;
  background: #e9f4ed;
  color: #26734f;
  padding: 3px 10px;
  border-radius: 30px;
  white-space: nowrap;
}
.badge.pending,
.badge.draft,
.badge.running {
  background: #fff3df;
  color: #96671d;
}
.badge.rejected,
.badge.failed {
  background: #ffede7;
  color: #ae4d37;
}
.badge.transferred,
.badge.withdrawn {
  background: #edf0f2;
  color: #76838a;
}
.notice {
  padding: 16px 20px;
  border-radius: 9px;
  background: #e6f2e9;
  margin: 0 0 20px;
  color: #466a53;
  font-size: 13px;
}
.empty {
  padding: 65px;
  text-align: center;
  color: var(--muted);
}
.row {
  display: flex;
  gap: 16px;
}
.row > * {
  flex: 1;
}
.metric {
  font-size: 18px;
  color: var(--green);
  font-weight: 650;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  width: 650px;
  max-width: 92vw;
  max-height: 88vh;
  box-shadow: 0 25px 80px #001c2925;
}
dialog::backdrop {
  background: #10281b66;
}
.dialog-head,
.dialog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-foot {
  margin-top: 24px;
}
.error {
  color: #b24d37;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #19392b;
  color: white;
  border-radius: 9px;
  padding: 12px 22px;
  display: none;
  z-index: 20;
}
.attachment {
  margin: 6px;
  max-width: 100%;
  max-height: 350px;
  display: block;
}
.file-link {
  padding: 7px;
  background: #e8f1eb;
  color: #26734f;
  margin: 4px;
}
.subtle {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-line;
}
.preference {
  border-left: 3px solid #a5c8b2;
  padding: 10px 15px;
  margin: 10px 0;
  background: #f6f9f7;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
@media (max-width: 900px) {
  aside {
    width: 170px;
    padding: 22px 12px;
  }
  main {
    margin-left: 170px;
    padding: 24px 18px;
  }
  .brand {
    font-size: 20px;
  }
  .stats {
    flex-wrap: wrap;
  }
  .stat {
    min-width: 120px;
  }
  header {
    align-items: flex-start;
  }
  .row {
    display: block;
  }
}
@media (max-width: 600px) {
  aside {
    position: static;
    width: 100%;
    padding: 18px;
  }
  .brand {
    padding-bottom: 12px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 8px;
  }
  .aside-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 22px;
  }
  header {
    gap: 12px;
  }
  h1 {
    font-size: 24px;
  }
}
[hidden] {
  display: none !important;
}
