* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f7fa;
  color: #25354a;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Microsoft YaHei',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  background: #0aa8ac;
  color: white;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select,
textarea {
  border: 1px solid #dbe4ec;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  color: #25354a;
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a4e0df;
}
textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
  margin-bottom: 4px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
.muted,
small {
  color: #8391a2;
}
.tiny {
  font-size: 12px;
}
.pill {
  display: inline-block;
  background: #e6f6f2;
  color: #138571;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
}
.pill.pending,
.pill.booked {
  color: #b67b12;
  background: #fff4da;
}
.pill.cancelled,
.pill.rejected {
  color: #8c96a0;
  background: #edf0f4;
}
.pill.checked {
  color: #347fc4;
  background: #e8f2ff;
}
.pill.low,
.pill.high {
  color: #cb6655;
  background: #fff0eb;
}
.ghost {
  background: #f0f5f8;
  color: #52677a;
}
.danger {
  background: #fff0ed;
  color: #c15f51;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  padding: 10vh 7vw;
  background: linear-gradient(145deg, #004d61, #008c97 70%, #31bab0);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: '';
  width: 500px;
  height: 500px;
  border: 80px solid #ffffff0b;
  border-radius: 50%;
  position: absolute;
  bottom: -250px;
  right: -200px;
}
.login-art img {
  width: 88px;
  border-radius: 20px;
  margin-bottom: 55px;
}
.login-art h1 {
  font-size: 42px;
  line-height: 1.4;
}
.login-art p {
  opacity: 0.7;
  max-width: 420px;
}
.login-art .steps {
  margin-top: 65px;
  display: grid;
  gap: 20px;
}
.login-art .steps span {
  color: #6fe7d5;
  margin-right: 15px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: white;
}
.login-form {
  width: 360px;
}
.login-form h2 {
  font-size: 26px;
}
.login-form input {
  width: 100%;
}
.login-form button[type='submit'] {
  width: 100%;
  margin: 20px 0;
}
.demo-accounts {
  background: #f6f9fb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}
.demo-accounts button {
  font-size: 12px;
  padding: 6px 10px;
  margin: 4px;
}
.error {
  color: #cd5d51;
  min-height: 23px;
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e6edf2;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 0 9px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 17px;
  color: #07566a;
}
.brand small {
  font-size: 11px;
  letter-spacing: 2px;
}
.nav {
  display: grid;
  gap: 8px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: #6d7d90;
  font-weight: 400;
  padding: 13px 18px;
}
.nav button.active {
  background: #e5f6f5;
  color: #009e9f;
  font-weight: 600;
}
.nav .symbol {
  margin-right: 13px;
  font-size: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #edf1f5;
  padding-top: 18px;
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcf4ef;
  color: #159d91;
  font-weight: 700;
}
.main {
  margin-left: 230px;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.online {
  width: 7px;
  height: 7px;
  background: #21b495;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.content {
  padding: 30px 34px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat,
.panel {
  background: white;
  border: 1px solid #e7edf3;
  border-radius: 12px;
}
.stat {
  padding: 20px 22px;
  position: relative;
}
.stat .value {
  font-size: 30px;
  color: #163a50;
  font-weight: 650;
  margin: 8px 0;
}
.stat .mark {
  position: absolute;
  right: 20px;
  top: 23px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f7f4;
  color: #08a2a2;
}
.stat small {
  font-size: 11px;
}
.panel {
  padding: 23px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 0;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar input[type='search'] {
  min-width: 240px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  color: #8b98a8;
  background: #f8fafc;
  text-align: left;
  font-weight: 500;
}
th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid #edf1f5;
  white-space: nowrap;
}
td .name {
  font-weight: 600;
  color: #33465a;
}
.table-wrap {
  overflow: auto;
}
.text-btn {
  padding: 4px 7px;
  background: transparent;
  color: #0ba5a5;
  font-size: 13px;
}
.list-item {
  padding: 15px 0;
  border-bottom: 1px solid #edf1f5;
}
.list-item:last-child {
  border: 0;
}
.list-item p {
  margin: 7px 0;
}
.chart {
  display: flex;
  height: 190px;
  align-items: flex-end;
  gap: 8px;
  padding-top: 22px;
  border-bottom: 1px solid #dae6ed;
}
.chart-col {
  flex: 1;
  max-width: 42px;
  position: relative;
  border-radius: 5px 5px 0 0;
  background: #33b7b2;
  min-width: 6px;
}
.chart-col.warn {
  background: #efa376;
}
.chart-col span {
  position: absolute;
  top: -23px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #8391a2;
}
.chart-note {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: #8796a7;
}
.empty {
  text-align: center;
  color: #98a4b2;
  padding: 48px 15px;
}
.doctor-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #effaf9;
  border-radius: 10px;
  padding: 22px;
}
.doctor-hero img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.detail-grid strong {
  display: block;
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.thread {
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
  margin: 12px 0;
}
.thread.staff {
  background: #eaf8f5;
}
.status-line {
  font-size: 12px;
  padding: 10px;
  background: #eef8f7;
  border-radius: 6px;
}
.content-editor {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
}
.editor-list button {
  display: block;
  text-align: left;
  width: 100%;
  background: #f3f8fa;
  color: #586f83;
  margin-bottom: 8px;
  font-size: 12px;
}
.editor-list button.active {
  background: #e1f4f0;
  color: #098c87;
}
.article-body {
  white-space: pre-wrap;
  line-height: 2;
}
.notice {
  padding: 12px 16px;
  background: #fff7e8;
  border: 1px solid #f8e6bd;
  color: #a77a36;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  background: #183c4d;
  color: white;
  border-radius: 8px;
  padding: 12px 24px;
  z-index: 50;
  display: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17374755;
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 25px;
}
.modal {
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 15px;
  padding: 28px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tabs button {
  background: #edf4f7;
  color: #647689;
}
.tabs .active {
  background: #0aa8ac;
  color: white;
}
.loading {
  padding: 100px;
  text-align: center;
  color: #7e94a6;
}
a {
  color: #0a9fa2;
  text-decoration: none;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 185px;
  }
  .main {
    margin-left: 185px;
  }
  .content {
    padding: 24px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .content-editor {
    grid-template-columns: 180px 1fr;
  }
}
@media (max-width: 750px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .sidebar {
    width: 70px;
    padding: 20px 5px;
  }
  .brand {
    padding: 0;
  }
  .brand div,
  .nav .label,
  .sidebar-bottom .info {
    display: none;
  }
  .nav button {
    padding: 13px;
    text-align: center;
  }
  .nav .symbol {
    margin: 0;
  }
  .main {
    margin-left: 70px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .content {
    padding: 18px 12px;
  }
  .topbar {
    padding: 0 15px;
  }
  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-editor {
    grid-template-columns: 1fr;
  }
  .page-intro {
    align-items: flex-start;
  }
  .page-intro .muted {
    font-size: 12px;
  }
}
