@font-face {
  font-family: Nunito;
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
.eq-body,
.eq-login {
  background: #f4f8fc;
  min-height: 100vh;
}
.eq-header {
  height: auto;
  min-height: 67px;
  background: #fff;
  border-bottom: 1px solid #dfebf4;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 10px clamp(14px, 3vw, 35px);
  box-shadow: 0 2px 10px #0b5fa50b;
  position: sticky;
  top: 0;
  z-index: 5;
}
.eq-header .logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--azul-escuro);
  min-width: 0;
  white-space: nowrap;
}
.eq-header .logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.eq-header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.eq-role {
  display: inline-flex;
  line-height: 1.3;
  font-size: 0.82rem;
  background: #e9f3fc;
  color: var(--azul);
  border-radius: 20px;
  padding: 5px 10px;
  font-weight: 800;
}
.eq-logo-sub {
  font-size: 0.72rem;
  color: #4c7184;
  display: block;
}
.eq-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: calc(100dvh - 67px);
}
.eq-side {
  background: linear-gradient(163deg, #073e6e, #0b5fa5 63%, #0a7888);
  color: white;
  padding: 19px 12px;
}
.eq-side nav {
  display: grid;
  gap: 4px;
}
.eq-side a,
.eq-side button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.91rem;
  font-weight: 750;
  color: #eff8ff;
  line-height: 1.4;
}
.eq-side a:hover,
.eq-side a.active {
  background: #ffffff26;
  color: white;
}
.eq-side small {
  color: #bfdfef;
  padding: 13px 8px 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 900;
}
.eq-main {
  padding: clamp(15px, 3vw, 34px);
  min-width: 0;
  max-width: 1450px;
  width: 100%;
  margin-inline: auto;
}
.eq-main h1 {
  font-size: clamp(1.55rem, 4vw, 2.12rem);
  margin-bottom: 4px;
}
.eq-main p {
  color: #4a6677;
}
.eq-main h2 {
  font-size: 1.19rem;
}
.eq-title-row {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.eq-title-row p {
  margin: 6px 0 0;
}
.eq-box,
.eq-stat {
  background: #fff;
  border: 1px solid #dce9f3;
  border-radius: 15px;
  padding: clamp(13px, 2vw, 24px);
  box-shadow: 0 6px 18px #0b5fa50a;
  min-width: 0;
}
.eq-box + .eq-box {
  margin-top: 14px;
}
.eq-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}
.eq-stat span {
  color: #4a6677;
  font-size: 0.9rem;
  font-weight: 800;
}
.eq-stat b {
  display: block;
  color: var(--azul-escuro);
  font-size: 2rem;
  line-height: 1.25;
}
.eq-stat:nth-child(2) {
  background: #eaf7fa;
}
.eq-stat:nth-child(3) {
  background: #e9f8f3;
}
.eq-tablewrap {
  overflow: auto;
  max-width: 100%;
}
.eq-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.4;
}
.eq-table th,
.eq-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e1edf5;
  vertical-align: middle;
}
.eq-table th {
  background: #eff6fc;
  color: #184766;
  white-space: nowrap;
}
.eq-table th:first-child {
  border-radius: 8px 0 0 8px;
}
.eq-table th:last-child {
  border-radius: 0 8px 8px 0;
}
.eq-table .tight {
  white-space: nowrap;
}
.eq-table form {
  display: inline;
}
.eq-table a,
.eq-linkbtn {
  font-weight: 850;
}
.eq-linkbtn {
  border: 0;
  background: none;
  color: #0b5fa5;
  padding: 0;
  margin-left: 5px;
}
.eq-linkbtn:hover {
  text-decoration: underline;
}
.eq-alert {
  border: 1px solid #b0e6d8;
  background: #e8f7f0;
  color: #0c5c4f;
  padding: 10px 13px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.eq-alert.bad {
  border-color: #f5b9bc;
  background: #fff0f0;
  color: #8b2131;
}
.eq-field,
label.eq-field,
.eq-auth label {
  display: grid;
  gap: 5px;
  font-weight: 800;
  font-size: 0.88rem;
  min-width: 0;
}
.eq-form input:not([type="checkbox"]),
.eq-form select,
.eq-form textarea,
.eq-auth input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cddfea;
  border-radius: 8px;
  background: #fbfdff;
  padding: 9px 10px;
  color: #183744;
}
.eq-form textarea {
  resize: vertical;
}
.eq-form {
  display: grid;
  gap: 13px;
  max-width: 920px;
}
.eq-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.eq-field.eq-full {
  grid-column: 1/-1;
}
.eq-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.eq-filter {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.eq-filter label input,
.eq-filter label select {
  min-width: 120px;
}
.eq-empty {
  padding: 17px;
  border-radius: 8px;
  background: #f0f7fc;
  color: #45697d;
}
.eq-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 22px;
  padding: 6px 11px;
  background: #eef6fc;
  font-size: 0.83rem;
  font-weight: 800;
  border: 1px solid #dbedf8;
}
.eq-tab.active {
  background: #0b5fa5;
  color: white;
}
.eq-badge {
  padding: 3px 7px;
  border-radius: 16px;
  background: #dff7f4;
  color: #116255;
  font-size: 0.75rem;
  font-weight: 850;
  display: inline-block;
  white-space: nowrap;
}
.eq-badge.cancelado {
  color: #842e3b;
  background: #fde8ea;
}
.eq-badge.concluido {
  color: #114f80;
  background: #e8f3fc;
}
.eq-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  gap: 5px;
  min-width: 560px;
}
.eq-day {
  min-height: 86px;
  border: 1px solid #e2edf4;
  border-radius: 7px;
  padding: 5px;
  background: #fff;
  font-size: 0.72rem;
  min-width: 0;
}
.eq-day.past {
  background: #f4f7f9;
  color: #638297;
}
.eq-day b {
  display: block;
  margin-bottom: 3px;
  color: #14436a;
}
.eq-day a {
  display: block;
  background: #e4f5f2;
  padding: 2px 4px;
  margin: 3px 0;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.eq-day a.cancelado {
  background: #f9e7eb;
}
.eq-calendar-head {
  text-align: center;
  color: #204661;
  font-size: 0.76rem;
  font-weight: 900;
}
.eq-panel-menu {
  display: none;
}
.eq-auth {
  width: min(100% - 29px, 465px);
  margin: 32px auto;
  background: #fff;
  border: 1px solid #dceaf4;
  border-radius: 24px;
  padding: clamp(19px, 4vw, 34px);
  box-shadow: 0 20px 64px #0758961f;
}
.eq-login {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at left top, #d8edf8, transparent 55%),
    linear-gradient(145deg, #ecf8ff, #e6f8f3);
}
.eq-auth h1 {
  font-size: 1.8rem;
  margin-top: 12px;
}
.eq-auth p {
  color: #506d7c;
  font-size: 0.94rem;
}
.eq-auth form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.eq-auth .eq-access {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.eq-auth .back {
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-block;
  margin-top: 16px;
}
.eq-auth .role-active {
  background: var(--azul);
  color: #fff;
}
.eq-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.eq-csv {
  white-space: normal;
}
.eq-no-overflow {
  overflow-wrap: anywhere;
}
.eq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.eq-split .eq-box {
  margin: 0;
}
.eq-hint {
  font-size: 0.82rem;
  color: #4e6d7e;
}
.eq-box[hidden] {
  display: none;
}
@media (max-width: 850px) {
  .eq-shell {
    grid-template-columns: 1fr;
  }
  .eq-side {
    display: none;
  }
  .eq-side.open {
    display: block;
  }
  .eq-side nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eq-side small {
    grid-column: 1/-1;
  }
  .eq-panel-menu {
    display: inline-flex;
  }
  .eq-header-right {
    gap: 6px;
  }
  .eq-header .btn--sm {
    font-size: 0.77rem;
    padding: 7px 9px;
  }
  .eq-role {
    font-size: 0.74rem;
    padding: 4px 7px;
  }
}
@media (max-width: 540px) {
  .eq-fields,
  .eq-split {
    grid-template-columns: 1fr;
  }
  .eq-stats {
    gap: 6px;
  }
  .eq-stat {
    padding: 8px;
  }
  .eq-stat span {
    font-size: 0.68rem;
  }
  .eq-stat b {
    font-size: 1.55rem;
  }
  .eq-table td,
  .eq-table th {
    padding: 9px 7px;
  }
  .eq-header .logo {
    font-size: 17px;
    gap: 5px;
  }
  .eq-header .logo img {
    width: 29px;
    height: 29px;
  }
  .eq-logo-sub {
    display: none;
  }
  .eq-header {
    gap: 4px;
    padding-inline: 9px;
  }
  .eq-header-right {
    gap: 4px;
  }
  .eq-header-right .btn--sm {
    font-size: 0.69rem;
    padding-inline: 6px;
  }
  .eq-role {
    font-size: 0.68rem;
    padding-inline: 5px;
  }
}
.eq-shell {
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas: "side header" "side main";
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  align-content: start;
}
.eq-header {
  grid-area: header;
  min-height: 74px;
}
.eq-header-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--azul-escuro);
  font-size: 1.12rem;
}
.eq-account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 850;
}
.eq-account > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #def5ef;
  color: #0b7f72;
}
.eq-account small {
  display: block;
  color: #526f80;
  font-weight: 650;
  margin-top: 3px;
}
.eq-side {
  grid-area: side;
  padding: 0 12px 15px;
  background: linear-gradient(165deg, #0a304f, #0a4f82);
}
.eq-side .eq-sidebrand {
  min-height: 100px;
  padding: 14px;
  gap: 14px;
  border-radius: 0;
  border-bottom: 1px solid #ffffff24;
  margin-bottom: 10px;
}
.eq-sidebrand strong {
  font-size: 1.6rem;
  line-height: 1.22;
  color: #fff;
}
.eq-sidebrand span small {
  display: block;
  padding: 4px 0 0;
  font-weight: 600;
}
.eq-side a {
  font-weight: 650;
  padding: 10px 12px;
}
.eq-side a.active {
  background: linear-gradient(120deg, #1a82bd, #109d92);
}
.eq-main {
  grid-area: main;
}
.eq-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 19px;
}
.eq-stat,
.eq-stat:nth-child(n) {
  min-height: 115px;
  display: flex;
  gap: 11px;
  align-items: center;
  background: #fff;
}
.eq-stat i {
  background: #e5f1fb;
  color: #0b5fa5;
  border-radius: 11px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
}
.eq-stat:nth-child(2) i {
  background: #fff1c9;
  color: #96500f;
}
.eq-stat:nth-child(3) i {
  background: #dff7f4;
  color: #0b7f72;
}
.eq-stat:nth-child(4) i {
  background: #def8eb;
  color: #157b53;
}
.eq-stat b {
  font-size: 1.72rem;
  line-height: 1.14;
}
.eq-stat span {
  font-size: 0.69rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.eq-stat small {
  display: block;
  font-size: 0.75rem;
  color: #456579;
  line-height: 1.3;
  margin-top: 4px;
}
.eq-dash-split {
  margin-bottom: 15px;
}
.eq-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.eq-dash-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.eq-dash-head .btn {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.77rem;
}
.eq-dash-next .eq-empty {
  padding: 27px;
  text-align: center;
  background: white;
}
.eq-badge.pendente {
  background: #fff1c9;
  color: #96500f;
}
@media (max-width: 1050px) {
  .eq-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .eq-stat {
    padding: 11px;
  }
  .eq-stat i {
    width: 35px;
    height: 35px;
  }
  .eq-account > span:last-child {
    display: none;
  }
}
@media (max-width: 850px) {
  .eq-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "header" "side" "main";
    grid-template-rows: auto auto 1fr;
  }
  .eq-side .eq-sidebrand {
    display: none;
  }
  .eq-header {
    min-height: 59px;
  }
  .eq-shell:has(.eq-side.open) .eq-header {
    position: static;
  }
  .eq-side {
    padding-top: 9px;
  }
  .eq-header-label {
    gap: 5px;
  }
  .eq-header-label strong {
    font-size: 1rem;
  }
}
@media (max-width: 610px) {
  .eq-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .eq-stat,
  .eq-stat:nth-child(n) {
    min-height: 86px;
  }
  .eq-dash-head h2 {
    font-size: 1rem;
  }
  .eq-head-site,
  .eq-account,
  .eq-header-right > a.btn {
    display: none;
  }
  .eq-header-label strong {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }
}

/* EDIÇÃO — área individual de pacientes e profissionais. */
.vp-own-page { min-height: 100vh; background: #f0f7fc; color: #123858; }
.vp-own-wrap { width: min(100% - 2rem, 900px); margin-inline: auto; }
.vp-own-head { background: #fff; border-bottom: 1px solid #dbeaf3; }
.vp-own-head .vp-own-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.vp-own-brand { display: flex; gap: .65rem; align-items: center; font-size: 1.12rem; font-weight: 900; }
.vp-own-intro { padding-block: 2.2rem 1rem; }
.vp-own-intro h1 { margin: .45rem 0; font-size: clamp(1.6rem, 5vw, 2.5rem); }
.vp-own-list { padding: 0; list-style: none; }
.vp-own-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid #dceaf4; }
.vp-own-list li div { min-width: 0; }
.vp-own-list li div span { display: block; overflow-wrap: anywhere; }
.vp-own-page details { margin: 1rem 0 2rem; }
.vp-own-page details form { margin-top: 1rem; }
