@import url("/fonts.css");
:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  color: #183831;
  background: #f4f7f5;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 245px;
  background: #fff;
  border-right: 1px solid #dde7e1;
  padding: 32px 22px;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #167459;
  font-size: 27px;
  text-decoration: none;
  font-weight: 750;
}
.muted {
  color: #6c8a7b;
  font-weight: 400;
}
.portal {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 35px 12px 18px;
  color: #789083;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  background: none;
  color: #647a6f;
  border: 0;
  padding: 13px 15px;
  border-radius: 9px;
  font-weight: 550;
}
nav button.active {
  color: #126d53;
  background: #e9f4ee;
}
.aside-bottom {
  margin-top: auto;
  padding: 20px 10px;
  color: #36725b;
  font-size: 14px;
}
.aside-bottom small {
  font-size: 11px;
  color: #80968a;
}
main {
  margin-left: 245px;
  width: calc(100% - 245px);
  padding: 0 42px;
}
header {
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe8e2;
  color: #70877b;
  font-size: 13px;
}
#account {
  display: flex;
  align-items: center;
  gap: 15px;
}
#content {
  max-width: 1240px;
  margin: 38px auto 70px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 0 0 22px;
}
h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
p {
  line-height: 1.7;
}
.lead {
  color: #748a7e;
  margin-bottom: 30px;
}
.hero {
  background: #164f40;
  border-radius: 18px;
  padding: 34px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "✳";
  position: absolute;
  right: 35px;
  top: -35px;
  color: #ffffff12;
  font-size: 240px;
}
.hero p {
  color: #c1d9cd;
  max-width: 650px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #e0e8e2;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.card p {
  color: #6a8073;
  font-size: 14px;
}
.stat {
  font-size: 32px;
  margin: 15px 0 4px;
  color: #1b7054;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 12px;
}
button,
.button {
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 17px;
  background: #197657;
  color: white;
  display: inline-block;
  text-decoration: none;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button.secondary,
.button.secondary {
  background: #f1f6f2;
  color: #33644e;
  border-color: #dbe6de;
}
button.small {
  font-size: 12px;
  padding: 7px 10px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  color: #506b5b;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e3db;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: #203d30;
  font: inherit;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
form {
  display: grid;
  gap: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.5;
}
.badge {
  display: inline-block;
  background: #edf4ef;
  color: #42745b;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
}
.badge.pending {
  background: #fff3dd;
  color: #997326;
}
.detail {
  font-size: 13px;
  color: #809487;
}
.auth {
  max-width: 480px;
  margin: 50px auto;
}
.auth .card {
  padding: 34px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}
.tabs button {
  flex: 1;
}
.list-item {
  border-top: 1px solid #e7ede8;
  padding: 17px 0;
}
.list-item:first-of-type {
  border-top: 0;
}
#notice {
  padding: 14px 18px;
  background: #e0eee5;
  border-radius: 9px;
  margin-top: 20px;
}
#notice.error {
  background: #fae4df;
  color: #993b2e;
}
footer {
  color: #8b9c91;
  font-size: 11px;
  padding: 20px 0;
  border-top: 1px solid #e0e8e2;
}
.empty {
  text-align: center;
  padding: 35px;
  color: #87988c;
}
.clinical {
  white-space: pre-wrap;
  line-height: 1.7;
}
.chat {
  max-height: 300px;
  overflow: auto;
}
.chat p {
  padding: 10px;
  background: #f2f6f3;
  border-radius: 7px;
}
.ticket-response {
  padding: 12px;
  border-left: 3px solid #197657;
  background: #f4f8f5;
}
a {
  color: #167658;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid #e7ede8;
  padding: 12px;
  vertical-align: top;
}
.table-wrap {
  overflow-x: auto;
}
small {
  line-height: 1.6;
}
.warning {
  background: #fff4df;
  padding: 15px;
  border-radius: 8px;
  color: #8b6b31;
}
@media (max-width: 850px) {
  aside {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
  }
  body {
    display: block;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .portal {
    margin: 15px 0;
  }
  .aside-bottom {
    display: none;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 0 20px;
  }
  header {
    height: 70px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 26px;
  }
  #content {
    margin-top: 25px;
  }
  .hero {
    padding: 25px;
  }
}
@media print {
  aside,
  header,
  footer,
  button,
  form,
  #notice {
    display: none !important;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .card {
    break-inside: avoid;
    border: 0;
  }
}
