@import url("/static/vendor/bootstrap.min.css");
:root {
  --ink: #1d2939;
  --muted: #7a8695;
  --line: #e8edf1;
  --green: #187c62;
  --pale: #eaf5ef;
  --bg: #f5f7f9;
  --red: #c85448;
  --orange: #c18427;
  --sidebar: 230px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #132d29;
  color: #c4d4ce;
  padding: 30px 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 19px;
  font-weight: 650;
  padding: 0 8px 37px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: #c9e6c3;
  color: #204d3a;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  font-weight: 800;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 400;
  color: #91ada3;
  margin-top: 2px;
}
.nav-caption {
  font-size: 11px;
  letter-spacing: 2px;
  color: #719087;
  padding: 0 15px 12px;
}
.nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 5px 0;
  color: #a8c0b6;
}
.nav-item:hover {
  background: #1c3b34;
  color: white;
}
.nav-item.active {
  background: #d0e9cb;
  color: #14372b;
  font-weight: 650;
}
.nav-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #8ca99c;
  padding: 15px 8px 0;
  border-top: 1px solid #2a443b;
}
.online-dot {
  width: 6px;
  height: 6px;
  background: #91c493;
  border-radius: 50%;
}
.local-badge {
  margin-left: auto;
  font-size: 10px;
  border: 1px solid #486354;
  padding: 0 5px;
  border-radius: 4px;
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #c0c8cd;
}
.breadcrumb strong {
  font-weight: 500;
  color: #374754;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.account small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7efe8;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 6px 10px;
}
.text-button:hover {
  color: var(--green);
}
#content {
  padding: 34px 36px;
  min-height: calc(100vh - 140px);
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
  font-weight: 700;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
}
p {
  margin: 0 0 12px;
}
.muted {
  color: var(--muted);
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid #dce3e6;
  background: #fff;
  color: #3b4a53;
  border-radius: 7px;
  padding: 9px 15px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 36px;
}
.button:hover {
  background: #eef3ef;
  border-color: #bed0c4;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #12664f;
}
.button.small {
  padding: 5px 10px;
  min-height: 28px;
  font-size: 11px;
}
.button.danger {
  color: var(--red);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px 23px;
  position: relative;
}
.stat-label {
  font-size: 12px;
  color: #75858e;
}
.stat-number {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 13px 0 8px;
  font-weight: 650;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
}
.stat-symbol {
  position: absolute;
  right: 20px;
  top: 20px;
  border-radius: 9px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--green);
}
.stat.alert .stat-symbol {
  background: #fff1e2;
  color: var(--orange);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.panel-body {
  padding: 20px 22px;
}
.grid-2 .panel {
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  margin: 2px 4px 2px 0;
  background: #f0f3f5;
  color: #62727c;
  white-space: nowrap;
}
.pill.green {
  background: #eaf5ed;
  color: #3a8060;
}
.pill.orange {
  background: #fff4df;
  color: #b07826;
}
.pill.red {
  background: #fff0ec;
  color: #c25c4c;
}
.pill.blue {
  background: #edf2fa;
  color: #5b7da8;
}
.alert-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #efdfc1;
  background: #fffbf2;
  padding: 13px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  color: #9a6e2b;
  font-size: 12px;
}
.alert-strip .text-button {
  margin-left: auto;
  color: #967128;
}
.toolbar {
  padding: 17px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.toolbar input,
.toolbar select {
  border: 1px solid #e0e6e9;
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  max-width: 210px;
  font-size: 12px;
  min-height: 36px;
}
.toolbar input[type="search"] {
  min-width: 220px;
}
.toolbar select {
  max-width: 155px;
}
.toolbar .spacer {
  flex: 1;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  background: #fafbfc;
  color: #7c8993;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f3f5;
  color: #465662;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfb;
}
.cell-title {
  font-weight: 600;
  color: #283b41;
}
.cell-sub {
  font-size: 10px;
  color: #8e9ba5;
  margin-top: 3px;
}
.number {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #304b40;
}
.table-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 550;
}
.table-link:hover {
  text-decoration: underline;
}
.table-foot {
  padding: 12px 20px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #9aa6ad;
  font-size: 12px;
}
.empty strong {
  display: block;
  color: #637d70;
  font-size: 15px;
  margin-bottom: 7px;
}
.rank {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f0f4f1;
  color: #748879;
  font-size: 11px;
}
.rank.top {
  background: #e6f2e2;
  color: #48754b;
  font-weight: 700;
}
.meter {
  height: 4px;
  background: #eef3ef;
  border-radius: 5px;
  min-width: 80px;
  margin-top: 6px;
}
.meter span {
  display: block;
  height: 100%;
  background: #8fbb8d;
  border-radius: 5px;
}
.notice {
  padding: 12px 15px;
  background: #f4f7f5;
  border-radius: 7px;
  font-size: 12px;
  color: #657b6a;
  margin-bottom: 16px;
}
.error {
  color: var(--red);
  background: #fff3f0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
}
.error:empty {
  display: none;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a0aab0;
  padding: 16px 36px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 0;
  border-radius: 13px;
  padding: 0;
  max-width: 850px;
  width: calc(100% - 40px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 100px #142b2940;
}
dialog::backdrop {
  background: #102c285c;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.dialog-head .eyebrow {
  margin-bottom: 3px;
}
.icon-button {
  border: 0;
  background: none;
  color: #74847b;
  font-size: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.dialog-body {
  padding: 23px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 20px;
}
label {
  display: block;
  font-size: 12px;
  color: #65757d;
}
label .required {
  color: var(--red);
  margin-left: 3px;
}
label input:not([type="checkbox"]),
label select,
label textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce4e7;
  border-radius: 6px;
  padding: 9px 11px;
  margin-top: 6px;
  background: white;
  color: #2b3c43;
  min-height: 39px;
}
label input:focus,
label select:focus,
label textarea:focus {
  outline: 2px solid #c6e5d7;
  outline-offset: 1px;
}
.full {
  grid-column: 1/-1;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.detail-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-item strong {
  font-size: 13px;
  word-break: break-all;
  font-weight: 500;
}
.detail-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0 0;
  padding-bottom: 12px;
}
.check-list {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.check-list label {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list label:last-child {
  border: 0;
}
.check-list input {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.field-help {
  font-size: 10px;
  color: #9aa7ae;
  display: block;
  margin-top: 4px;
}
.secret {
  font-family: monospace;
}
.inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline input {
  flex: 1;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 10%, #dce9dc, transparent 50%), #f3f6f2;
}
.login-card {
  background: #fff;
  padding: 42px 44px;
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #e1e8df;
  border-radius: 18px;
  box-shadow: 0 18px 80px #25492c0c;
}
.login-card .brand-mark {
  margin-bottom: 25px;
}
.login-card h1 {
  font-size: 26px;
}
.login-card label {
  margin-top: 20px;
}
.login-card button {
  margin-top: 25px;
  width: 100%;
}
.login-note {
  font-size: 10px;
  color: #9aa79d;
  margin: 28px 0 0;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  background: #1d4438;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #1232;
  z-index: 100;
  display: none;
  max-width: 80vw;
  font-size: 12px;
}
.mobile-menu {
  display: none;
}
.section-label {
  font-size: 12px;
  color: #617868;
  margin: 22px 0 12px;
  border-left: 3px solid #7da88a;
  padding-left: 9px;
}
.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.checkbox-label input {
  accent-color: var(--green);
}
pre {
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  max-width: 450px;
}
.mini-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  padding: 14px 0;
}
.mini-summary strong {
  color: var(--green);
  margin-left: 5px;
}
.panel-body.mini-summary {
  padding: 14px 22px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1600px) {
  #content {
    max-width: 1600px;
    margin: auto;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 195px;
  }
  #content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 27px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .menu-open .sidebar {
    transform: none;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 70px;
    padding: 0 18px;
  }
  .breadcrumb {
    margin-right: auto;
    margin-left: 10px;
  }
  .breadcrumb > span {
    margin: 0 5px;
  }
  .account small,
  .account form {
    display: none;
  }
  #content {
    padding: 23px 16px;
  }
  .page-head {
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-number {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .full {
    grid-column: auto;
  }
  .toolbar {
    padding: 14px;
  }
  .toolbar input[type="search"] {
    min-width: 180px;
    width: 100%;
  }
  .toolbar select {
    max-width: none;
    width: calc(50% - 8px);
  }
  footer {
    padding: 16px;
  }
  footer span {
    display: none;
  }
  .dialog-body,
  .dialog-head {
    padding: 18px;
  }
  .account {
    gap: 6px;
  }
  .stat-symbol {
    display: none;
  }
  #toast {
    left: 50%;
  }
  h1 {
    font-size: 24px;
  }
}
