.source-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #17283e;
  background: #f3f6fa;
  font-size: 14px;
  --blue: #2375f5;
  --muted: #7a889c;
  --line: #e5eaf1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  color: #26374c;
  padding: 9px 14px;
  transition: 0.15s;
}
button:hover {
  border-color: #8ab8ff;
  background: #f4f8ff;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
button.danger {
  color: #dc4054;
}
.small {
  font-size: 12px;
  padding: 6px 10px;
}
input,
select,
textarea {
  border: 1px solid #dce3ed;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  max-width: 100%;
  color: #21364f;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b4d4ff;
}
textarea {
  width: 100%;
  min-height: 90px;
}
label {
  display: grid;
  gap: 8px;
  color: #62738b;
  font-size: 13px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.7;
}
a {
  color: var(--blue);
  text-decoration: none;
}
.muted {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0a192c;
  color: #a4b4c9;
  padding: 28px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 35px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.brandmark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2986ff, #32c5b2);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #8cabc9;
  letter-spacing: 1.6px;
  margin-top: 5px;
}
.navlabel {
  font-size: 10px;
  letter-spacing: 2px;
  color: #617c9b;
  padding: 18px 16px 10px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  background: transparent;
  color: #aebcd0;
  border: none;
  text-align: left;
  padding: 13px 17px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.sidebar nav button.active {
  background: #2375f5;
  color: white;
  box-shadow: 0 6px 20px #0065ee30;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #203047;
  padding: 22px 10px 0;
  font-size: 12px;
  line-height: 2;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #f3b84d;
  border-radius: 50%;
  margin-right: 7px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 15px;
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #eaf2ff;
  color: #286ad4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: 700;
}
.content {
  padding: 30px 32px;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.banner {
  padding: 11px 16px;
  background: #fff7e8;
  border: 1px solid #f4e0b9;
  border-radius: 8px;
  color: #96702d;
  font-size: 12px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px #1b335804;
}
.stat small {
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 13px 0 7px;
}
.stat em {
  font-style: normal;
  font-size: 11px;
  color: #91a0b2;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 6px 22px #243a5810;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.filters input {
  width: 220px;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panelhead h2 {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  padding: 12px;
  background: none;
  color: #8490a1;
}
.tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-weight: 500;
  color: #7c8ca2;
  background: #f8fafc;
  font-size: 12px;
  padding: 13px 14px;
}
td {
  font-size: 12px;
  padding: 17px 14px;
  border-bottom: 1px solid #edf1f6;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 6px;
  color: #97a3b2;
  font-size: 11px;
}
tr:last-child td {
  border-bottom: 0;
}
.tag {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  background: #edf3ff;
  color: #3374cf;
}
.tag.green {
  background: #e9f8f0;
  color: #289564;
}
.tag.orange {
  background: #fff3df;
  color: #b58023;
}
.tag.red {
  background: #fff0f0;
  color: #cd5361;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  color: #8793a4;
  font-size: 12px;
}
.pager div {
  display: flex;
  gap: 8px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #8998aa;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.checkgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.checkgrid label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkgrid input {
  width: auto;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.loginart {
  background: #0b1c33;
  padding: 12vw 8vw;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.loginart h1 {
  font-size: 40px;
  line-height: 1.4;
}
.loginart p {
  color: #9ab0cc;
  font-size: 15px;
}
.loginform {
  display: grid;
  place-items: center;
  padding: 40px;
}
.loginform form {
  width: 360px;
  max-width: 100%;
}
.loginform h1 {
  margin-bottom: 12px;
}
.loginform label {
  margin: 20px 0;
}
.loginform button {
  width: 100%;
  margin-top: 8px;
}
.loginform small {
  display: block;
  margin-top: 18px;
  color: #8a99ac;
  font-size: 12px;
  line-height: 1.8;
}
dialog {
  position: fixed;
  border: 0;
  border-radius: 13px;
  padding: 28px;
  max-height: 90vh;
  width: 760px;
  max-width: 94vw;
  box-shadow: 0 20px 100px #0004;
  color: #17283e;
}
dialog::backdrop {
  background: #0a192c88;
  backdrop-filter: blur(3px);
}
.dialogtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialogtop h2 {
  margin: 0;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.details div {
  padding: 15px;
  background: #f7f9fc;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.details small {
  display: block;
  color: #8091a7;
  margin-bottom: 8px;
}
.detailmoney {
  font-size: 24px;
  font-weight: 700;
}
.timeline {
  border-left: 2px solid #e8eef6;
  padding-left: 18px;
  margin: 22px 7px;
}
.timeline p {
  font-size: 12px;
  margin: 0 0 16px;
}
.timeline small {
  display: block;
  color: #8d9caf;
}
.proofs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.proofs img {
  height: 110px;
  max-width: 180px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.accountmenu {
  position: absolute;
  right: 30px;
  top: 66px;
  z-index: 4;
  background: white;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 9px;
  box-shadow: 0 8px 25px #18344c20;
  display: grid;
  min-width: 170px;
}
.accountmenu button {
  border: 0;
  text-align: left;
}
#toast {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #19304c;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  z-index: 99;
  max-width: 90vw;
}
.mobilecards {
  display: none;
}
.mobilecard {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin-bottom: 14px;
}
.mobilecard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mobilecard p {
  color: #8391a4;
  font-size: 12px;
}
.mobilecard .amount {
  font-size: 23px;
  font-weight: 700;
  margin: 15px 0;
}
.mobilecard footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.code {
  font-family: monospace;
  overflow-wrap: anywhere;
}
.meter {
  height: 6px;
  background: #ebf0f7;
  border-radius: 5px;
  margin-top: 15px;
}
.meter span {
  display: block;
  width: 60%;
  height: 100%;
  background: #347ff0;
  border-radius: 5px;
}
.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.inline-error {
  color: #c14e54;
  font-size: 12px;
}
.notification {
  background: #f3f7fc;
  padding: 15px;
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1700px) {
  .content {
    padding: 40px 45px;
  }
  .sidebar {
    width: 240px;
  }
  .shell {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 185px;
  }
  .shell {
    grid-template-columns: 185px 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 24px 20px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
    padding-bottom: 74px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 65px;
    padding: 5px 8px;
    z-index: 10;
    background: white;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar .navlabel,
  .sidefoot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    justify-content: space-around;
    gap: 0;
  }
  .sidebar nav button {
    padding: 8px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 56px;
    white-space: nowrap;
    color: #7c8ca2;
  }
  .sidebar nav button.active {
    color: #2876ed;
    background: #eef5ff;
    box-shadow: none;
  }
  .sidebar nav button span {
    font-size: 18px;
  }
  .main {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
    font-size: 12px;
  }
  .topbar .right {
    gap: 6px;
  }
  .topbar .right .muted {
    display: none;
  }
  .content {
    padding: 22px 15px;
  }
  .heading {
    align-items: start;
  }
  .heading h1 {
    font-size: 23px;
  }
  .heading p {
    font-size: 11px;
  }
  .heading .actions {
    justify-content: end;
  }
  .stats {
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 23px;
  }
  .panel {
    padding: 16px;
  }
  .filters {
    gap: 8px;
  }
  .filters input {
    width: 100%;
  }
  .filters label {
    flex: 1;
    min-width: 130px;
  }
  .tablewrap.orders-table {
    display: none;
  }
  .mobilecards {
    display: block;
  }
  .banner {
    font-size: 11px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .details div {
    padding: 12px;
  }
  .login {
    display: block;
  }
  .loginart {
    display: none;
  }
  .loginform {
    min-height: 100vh;
    padding: 28px;
  }
  .checkgrid {
    grid-template-columns: 1fr;
  }
  .pager {
    gap: 10px;
  }
  .pager div {
    gap: 4px;
  }
  dialog {
    padding: 20px;
  }
  .accountmenu {
    right: 12px;
  }
  .filters input[type="date"] {
    width: 140px;
  }
  .panelhead {
    align-items: start;
  }
  .grid2 {
    gap: 0;
  }
}
