:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #1e293b;
  background: #f5f7fb;
  font-size: 14px;
  font-synthesis: none;
  --blue: #3559e0;
  --muted: #7a869b;
  --line: #e8edf4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9aafff;
  outline-offset: 3px;
}
.boot {
  padding: 50px;
  color: var(--muted);
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #121d33;
  color: #b5bfd2;
  padding: 29px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 1px;
  padding: 0 10px 35px;
}
.brand-mark {
  width: 33px;
  height: 33px;
  background: #5677ff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 21px;
  box-shadow: 0 5px 18px #0003;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #73819b;
  padding: 8px 13px 15px;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  color: #b5bfd2;
  padding: 13px 15px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 8px;
}
.nav.active {
  background: #2d436c;
  color: #fff;
}
.nav:hover {
  background: #253650;
}
.nav-icon {
  font-size: 19px;
  width: 22px;
}
.sidebar-note {
  margin-top: auto;
  border-top: 1px solid #29354a;
  padding: 20px 12px 0;
  font-size: 12px;
  line-height: 1.8;
  color: #8593ac;
}
.sidebar-note b {
  color: #c2cce0;
  display: block;
  margin-bottom: 4px;
}
.main {
  margin-left: 232px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 12px;
}
.crumb {
  font-size: 13px;
  color: #8c96a9;
}
.crumb b {
  color: #354159;
  font-weight: 500;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.role {
  font-size: 11px;
  color: var(--blue);
  background: #edf1ff;
  padding: 3px 7px;
  border-radius: 4px;
}
.content {
  padding: 34px 38px;
  max-width: 1550px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
h1 {
  font-size: 25px;
  letter-spacing: 0.3px;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  line-height: 1.7;
}
.sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.primary,
.secondary,
.danger {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 13px;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 3px 7px #3559e018;
}
.primary:hover {
  background: #294bcc;
}
.secondary {
  background: white;
  border-color: #dce3ed;
  color: #46546d;
}
.danger {
  background: #fff0f0;
  color: #c94f57;
  border-color: #f5d8da;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 5px 7px;
  font-size: 13px;
}
.text-btn.muted {
  color: #8894a7;
}
.text-btn.red {
  color: #c9515c;
}
.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  color: #7b879a;
  font-size: 12px;
  margin-bottom: 10px;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #243451;
}
.stat-icon {
  background: #f0f3ff;
  color: #6280dc;
  border-radius: 11px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  font-size: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.toolbar {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  width: 270px;
}
.field,
input,
select,
textarea {
  border: 1px solid #dfe5ef;
  background: #fff;
  color: #354159;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7290ff;
  box-shadow: 0 0 0 3px #3559e00c;
}
input::placeholder,
textarea::placeholder {
  color: #a1aaba;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-weight: 500;
  color: #7b879a;
  background: #fafbfd;
  padding: 14px 22px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 19px 22px;
  border-bottom: 1px solid #f0f3f8;
  font-size: 13px;
}
tbody tr:hover {
  background: #fafcff;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.person .avatar {
  border-radius: 9px;
  width: 36px;
  height: 36px;
}
.primary-text {
  font-weight: 550;
  color: #2d3e58;
  margin-bottom: 5px;
}
.tiny {
  font-size: 11px;
  color: #929db0;
}
.badge {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecf9f2;
  color: #279567;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.off {
  background: #f1f3f7;
  color: #8b96a8;
}
.pagination {
  padding: 17px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a96a9;
  font-size: 12px;
}
.pages {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pages button {
  background: #fff;
  border: 1px solid #e0e6f0;
  padding: 6px 11px;
  border-radius: 5px;
  color: #536079;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #93a0b3;
  line-height: 2;
}
.preview {
  background: #edf2ff;
  color: #5971a8;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 7px;
  margin-bottom: 22px;
}
.back {
  padding: 0;
  border: 0;
  background: none;
  color: #6b7a93;
  margin-bottom: 17px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.info {
  padding: 23px;
}
.info-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 13px 0;
  line-height: 1.7;
}
.info-row span:first-child {
  color: #8a96a9;
  min-width: 68px;
}
.info-row span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.description {
  white-space: pre-wrap;
  line-height: 1.8;
  color: #6b7890;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-note {
  color: #9ca6b7;
  font-size: 11px;
  text-align: center;
  margin-top: 28px;
  line-height: 1.8;
}
.error-block {
  color: #b14550;
  background: #fff2f2;
  border: 1px solid #f6d9db;
  padding: 20px;
  border-radius: 7px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-art {
  background: #15213a;
  padding: 70px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  width: 440px;
  height: 440px;
  border: 1px solid #34486d;
  border-radius: 70px;
  transform: rotate(30deg);
  position: absolute;
  right: -220px;
  bottom: -100px;
}
.login-art .brand {
  padding: 0 0 65px;
}
.login-art h1 {
  font-size: 39px;
  line-height: 1.55;
  letter-spacing: 2px;
}
.login-art p {
  color: #9cacc9;
  max-width: 320px;
  font-size: 14px;
}
.login-caption {
  font-size: 11px;
  letter-spacing: 3px;
  color: #7085aa;
  margin-top: 70px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 355px;
}
.login-box h1 {
  font-size: 26px;
}
.login-box .sub {
  margin-bottom: 30px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 12px;
  color: #52617a;
  margin-bottom: 9px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
}
.form-field textarea {
  resize: vertical;
  min-height: 85px;
}
.form-field small {
  display: block;
  font-size: 11px;
  color: #8794a9;
  line-height: 1.7;
  margin-top: 7px;
}
.wide {
  width: 100%;
  margin-top: 5px;
  padding: 12px;
}
.demo-box {
  margin-top: 30px;
  padding: 17px;
  background: #f6f8fe;
  border: 1px solid #e6ebf9;
  border-radius: 8px;
  font-size: 12px;
  color: #657694;
  line-height: 1.8;
}
.demo-accounts {
  display: flex;
  gap: 7px;
  margin: 10px 0;
}
.demo-accounts button {
  background: white;
  border: 1px solid #dfe6fa;
  border-radius: 5px;
  padding: 6px 9px;
  color: #506dab;
  font-size: 11px;
}
dialog {
  border: 0;
  border-radius: 13px;
  padding: 0;
  width: 480px;
  max-width: calc(100vw - 30px);
  box-shadow: 0 20px 80px #13233c38;
  color: #243451;
}
dialog::backdrop {
  background: #15213a65;
  backdrop-filter: blur(2px);
}
.modal-head {
  padding: 23px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body {
  padding: 24px 25px 7px;
}
.modal-footer {
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.close {
  border: 0;
  background: none;
  font-size: 23px;
  color: #8b97aa;
}
.inline-error {
  font-size: 12px;
  color: #c54453;
  margin: 0 0 15px;
  line-height: 1.7;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 15px 0;
}
.check input {
  width: auto;
}
.hint {
  font-size: 12px;
  color: #76859e;
  background: #f5f7fc;
  border-radius: 7px;
  padding: 12px 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #173f32;
  color: white;
  box-shadow: 0 5px 25px #0002;
  border-radius: 7px;
  z-index: 10;
  display: none;
  font-size: 13px;
}
#toast.error {
  background: #8c3440;
}
.loading-row {
  padding: 65px;
  text-align: center;
  color: #93a0b3;
}
@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .sidebar {
    width: 200px;
  }
  .main {
    margin-left: 200px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 68px;
    padding: 23px 8px;
  }
  .brand {
    padding: 0 8px 30px;
  }
  .brand span:last-child,
  .nav-label,
  .nav span:last-child,
  .sidebar-note {
    display: none;
  }
  .nav {
    padding: 13px;
  }
  .main {
    margin-left: 68px;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
  }
  .crumb {
    display: none;
  }
  .account {
    width: 100%;
    justify-content: flex-end;
    font-size: 11px;
    gap: 6px;
  }
  .content {
    padding: 22px 16px;
  }
  .heading {
    gap: 10px;
  }
  h1 {
    font-size: 22px;
  }
  .overview {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: 24px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .toolbar {
    padding: 16px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-main {
    padding: 28px;
  }
  .pagination {
    padding: 15px;
  }
  .primary,
  .secondary {
    padding: 9px 12px;
  }
  .role {
    display: none;
  }
}
