* {
  box-sizing: border-box;
}
:root {
  --ink: #18352e;
  --muted: #596e66;
  --line: #dce5df;
  --green: #12664f;
  --deep: #123f34;
  --paper: #f5f7f3;
  --mint: #e5f2e8;
  --amber: #905510;
  --cream: #fff1d7;
  --red: #a43637;
  --font:
    "DengXian", "等线", "Microsoft YaHei", "微软雅黑", "PingFang SC",
    "Hiragino Sans", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: weight;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #508673;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
}
.muted,
small,
.hint {
  color: var(--muted);
}
small,
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.num,
.metric strong,
.money {
  font-variant-numeric: tabular-nums;
}
.money {
  white-space: nowrap;
}
svg.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #b9e8c1;
  color: #164c3a;
  border-radius: 12px;
}
.brandmark:before {
  content: "";
  width: 23px;
  height: 23px;
  background: currentColor;
  clip-path: polygon(
    34% 0,
    66% 0,
    66% 34%,
    100% 34%,
    100% 66%,
    66% 66%,
    66% 100%,
    34% 100%,
    34% 66%,
    0 66%,
    0 34%,
    34% 34%
  );
}
.brand small {
  display: block;
  color: #bbd5c5;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 3px;
  font-weight: 400;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.rail {
  background: var(--deep);
  color: #f1fbf4;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 480px;
  padding: 28px 15px 17px;
}
.rail .brand {
  padding: 0 8px;
}
.rail nav {
  display: grid;
  gap: 6px;
  margin-top: 49px;
}
.rail nav button,
.railfoot button {
  width: 100%;
  border: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  background: transparent;
  color: #c5ded0;
  font-weight: 600;
  text-align: left;
  padding: 13px 14px;
  border-radius: 7px;
}
.rail nav button:hover,
.railfoot button:hover {
  background: #1c4d40;
  color: white;
}
.rail nav button.active {
  background: #2d6453;
  color: white;
  box-shadow: inset 3px 0 #a9dfb0;
}
.railfoot {
  margin-top: auto;
  border-top: 1px solid #386253;
  padding-top: 12px;
}
.railfoot small {
  color: #bbd5c5;
}
.workspace {
  min-width: 0;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(18px, 3.2vw, 48px);
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: #fcfdfb;
}
.crumb,
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.crumb span {
  color: #6d7c75;
}
.who {
  border: 0;
  background: none;
  padding: 4px;
}
.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #d9eade;
  color: var(--green);
  font-weight: 700;
}
.top .mobilemenu {
  display: none;
}
.content {
  max-width: 1560px;
  margin: auto;
  padding: 30px clamp(18px, 3.2vw, 48px) 65px;
}
.titleline,
.panelhead,
.actions,
.filters,
.pair,
.pageline,
.rowtop,
.modhead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.titleline,
.panelhead,
.pageline,
.rowtop,
.modhead {
  justify-content: space-between;
}
.titleline {
  margin-bottom: 21px;
}
.titleline p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
.primary,
.secondary,
.plain,
.iconbutton,
.danger,
.pillbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  min-height: 38px;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
}
.primary:hover {
  background: #0a4f3c;
}
.secondary,
.iconbutton {
  border: 1px solid #cbd8d0;
  background: white;
}
.secondary:hover,
.iconbutton:hover {
  background: #f1f6f1;
}
.plain,
.pillbtn {
  border: 0;
  background: transparent;
  color: var(--green);
}
.plain:hover {
  text-decoration: underline;
}
.iconbutton {
  min-width: 34px;
  min-height: 34px;
  padding: 6px;
}
.danger {
  background: #fff4f2;
  color: var(--red);
  border: 1px solid #e5c6c3;
}
.filters {
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter,
.datepick,
.searchbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfdbd3;
  background: #fff;
  border-radius: 7px;
  min-height: 38px;
  padding: 0 10px;
}
.filter select,
.datepick input,
.searchbox input {
  border: 0;
  background: transparent;
  padding: 7px 2px;
  min-height: 36px;
  color: var(--ink);
  outline-offset: 0;
}
.datepick {
  padding: 0 4px;
  gap: 0;
}
.datepick button {
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  width: 29px;
  height: 32px;
  color: var(--muted);
}
.datepick input {
  width: 132px;
  min-width: 0;
  font-size: 14px;
}
.filter select {
  font-weight: 600;
  max-width: 260px;
}
.datepick .ico {
  width: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 17px 16px;
  display: grid;
  align-content: space-between;
  min-height: 126px;
  gap: 10px;
}
.metric.featured {
  background: #e0eee2;
  border-color: #cbdfcf;
}
.metric.attention {
  background: #fff7e7;
  border-color: #edd9ad;
}
.metric .mtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #3b5649;
}
.metric .mtop .ico {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}
.metric strong {
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.metric.attention strong {
  color: var(--amber);
}
.metric .unit {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 5px;
  color: #596e66;
}
.metric small {
  font-size: 12px;
}
.tabs {
  display: flex;
  overflow: auto;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs button {
  background: none;
  border: 0;
  flex-shrink: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 2px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 16px;
}
.panelhead {
  padding: 17px 19px;
  flex-wrap: wrap;
  min-height: 62px;
}
.panelhead h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panelhead .tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.searchbox input {
  width: 148px;
  font-size: 13px;
}
.searchbox .ico {
  width: 15px;
}
.selectsmall {
  color: var(--ink);
  background: white;
  padding: 7px;
  border: 1px solid #cfdbd3;
  border-radius: 6px;
  font-size: 13px;
}
.scroll {
  overflow: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 12px 15px;
  border-bottom: 1px solid #e6ece6;
}
th {
  background: #f0f5ef;
  color: #52675b;
  font-size: 12px;
  font-weight: 600;
}
td.end,
th.end {
  text-align: right;
}
.rowlink {
  color: var(--green);
  background: none;
  border: 0;
  padding: 2px;
  font: inherit;
  font-weight: 600;
  text-align: left;
}
.rowlink:hover {
  text-decoration: underline;
}
.subtext {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  background: var(--mint);
  color: #275a42;
  white-space: nowrap;
}
.badge.warn {
  background: var(--cream);
  color: #865211;
}
.badge.neutral {
  background: #edf1f0;
  color: #546760;
}
.badge.red {
  background: #fae6e3;
  color: #963d37;
}
.pageline {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 18px;
}
.pageline .actions {
  gap: 7px;
}
.pageline .iconbutton {
  min-height: 28px;
  min-width: 30px;
}
.empty {
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}
.callout {
  padding: 12px 16px;
  background: #fff5df;
  border: 1px solid #ecdcb6;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 15px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #775315;
}
.callout .ico {
  margin-top: 2px;
}
.panelbody {
  padding: 0 20px 20px;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.formgrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #3c574b;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  appearance: auto;
  min-width: 0;
  width: 100%;
  min-height: 39px;
  border: 1px solid #cbd8d0;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 400;
}
.field textarea {
  min-height: 70px;
  resize: vertical;
}
.wide {
  grid-column: 1/-1;
}
.section {
  padding: 19px 21px;
  border-top: 1px solid var(--line);
}
.section:first-child {
  border-top: 0;
}
.section h2,
.section h3 {
  margin-bottom: 14px;
}
.section .rowtop h2 {
  margin: 0;
}
.editrows {
  display: grid;
  gap: 10px;
  margin-top: 11px;
}
.service-row,
.fee-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(85px, 0.4fr) auto;
  align-items: end;
  gap: 10px;
}
.fee-row {
  grid-template-columns: repeat(4, minmax(80px, 1fr)) auto;
}
.fee-row .field.wide {
  grid-column: 1/-1;
}
.formfooter {
  padding: 16px 21px;
  background: #f7f9f5;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.formfooter .sum {
  margin-right: auto;
}
.inset {
  max-width: 1000px;
}
.error {
  color: var(--red);
  font-size: 13px;
  white-space: normal;
}
.error:not(:empty) {
  padding: 10px 0;
}
.twocol {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 14px;
}
.stack {
  display: grid;
  gap: 12px;
}
.lineitem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e7ede7;
  font-size: 14px;
}
.lineitem:last-child {
  border: 0;
}
.note {
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.positive {
  color: #8a5415;
  font-weight: 700;
}
.loading {
  padding: 45px;
  color: var(--muted);
}
.hidden,
[hidden] {
  display: none !important;
}
dialog {
  width: min(650px, calc(100% - 26px));
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 22px 75px #122f2940;
}
dialog::backdrop {
  background: #0b201d66;
}
.modhead {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modalbody {
  padding: 16px 20px;
}
.modalbody details {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.modalbody summary {
  cursor: pointer;
  font-weight: 600;
}
.modalbody pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 12px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
#toast:not(:empty) {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--deep);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 15;
  box-shadow: 0 5px 22px #1b392633;
  font-size: 14px;
}
.loginpage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(350px, 0.9fr) minmax(380px, 1.1fr);
}
.loginart {
  background: var(--deep);
  color: #f2fcf3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 90px);
}
.loginart:before,
.loginart:after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid #89c9a358;
  border-radius: 50%;
  width: 34vw;
  height: 34vw;
  right: -11vw;
  top: 12%;
}
.loginart:after {
  width: 44vw;
  height: 44vw;
  right: -16vw;
  top: 3%;
}
.loginart h2 {
  position: relative;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.3;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.loginart p {
  position: relative;
  margin-top: 15px;
  color: #c0deca;
  font-size: 15px;
}
.loginarea {
  display: grid;
  place-items: center;
  padding: 30px;
}
.logincard {
  width: min(360px, 100%);
}
.logincard h1 {
  margin-bottom: 8px;
}
.logincard form {
  margin-top: 27px;
  display: grid;
  gap: 16px;
}
.logincard .primary {
  min-height: 43px;
}
.loginbrand {
  display: none;
}
.listgrid {
  display: grid;
  gap: 8px;
}
.itemcard {
  border: 1px solid #dce7df;
  border-radius: 7px;
  padding: 11px 14px;
}
.itemcard .hint {
  margin-top: 5px;
  display: block;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
}
@media (min-width: 1550px) {
  .content {
    padding-top: 40px;
  }
  .metric {
    min-height: 142px;
  }
  th,
  td {
    padding: 14px 18px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 178px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 10px;
  }
  .rail .brand {
    font-size: 17px;
    gap: 8px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 14px 12px;
    min-height: 113px;
  }
  .content {
    padding-inline: 21px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .fee-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }
  .fee-row .remove {
    grid-column: 3;
    grid-row: 1/3;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .rail {
    display: none;
    height: auto;
    min-height: 0;
    position: fixed;
    inset: 54px auto auto 0;
    width: 222px;
    z-index: 6;
    border-radius: 0 0 12px 0;
    box-shadow: 6px 12px 30px #16382b33;
  }
  .rail.open {
    display: flex;
  }
  .rail .brand {
    display: none;
  }
  .rail nav {
    margin-top: 5px;
  }
  .railfoot {
    margin-top: 10px;
  }
  .top {
    height: 54px;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .top .mobilemenu {
    display: inline-flex;
  }
  .crumb {
    gap: 7px;
  }
  .who {
    font-size: 12px;
  }
  .content {
    padding: 19px 12px 45px;
  }
  .titleline {
    margin-bottom: 14px;
    align-items: center;
  }
  .titleline p {
    font-size: 12px;
  }
  .titleline .primary {
    min-height: 35px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }
  .metric {
    min-height: 101px;
    gap: 6px;
  }
  .metric strong {
    font-size: 27px;
  }
  .metric small {
    font-size: 11px;
  }
  .filters {
    gap: 7px;
    margin-bottom: 13px;
  }
  .filter select {
    max-width: 160px;
  }
  .datepick input {
    width: 119px;
  }
  .tabs {
    gap: 14px;
    margin-bottom: 11px;
  }
  .tabs button {
    font-size: 13px;
  }
  .panelhead,
  .section,
  .modalbody,
  .modhead {
    padding: 13px;
  }
  .panelhead .tools {
    width: 100%;
  }
  .searchbox {
    flex: 1;
  }
  .searchbox input {
    width: 100%;
    min-width: 10px;
  }
  .panelbody {
    padding: 0 13px 13px;
  }
  .formgrid,
  .formgrid.three {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .formfooter {
    padding: 12px;
  }
  .formfooter .sum {
    width: 100%;
  }
  th,
  td {
    padding: 10px;
  }
  .loginpage {
    display: block;
  }
  .loginart {
    display: none;
  }
  .loginarea {
    min-height: 100dvh;
    padding: 23px;
  }
  .loginbrand {
    display: flex;
    color: var(--deep);
    margin-bottom: 35px;
  }
  .loginbrand small {
    color: var(--muted);
  }
  .twocol {
    gap: 0;
  }
  .service-row {
    grid-template-columns: minmax(0, 1fr) 72px auto;
  }
  .fee-row {
    border-top: 1px dashed var(--line);
    padding-top: 8px;
  }
  .filters .plain {
    padding: 4px 6px;
    min-height: 30px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .formfooter .primary,
  .formfooter .secondary {
    font-size: 13px;
  }
  .section .rowtop h2 {
    font-size: 17px;
  }
}
@media (max-width: 380px) {
  .formgrid,
  .formgrid.three {
    grid-template-columns: 1fr;
  }
  .filters .filter {
    width: 100%;
  }
  .metric .mtop {
    font-size: 13px;
  }
  .crumb span {
    display: none;
  }
}
