.doctor-dashboard {
  --doctor-bg: #f6f7fb;
  --doctor-surface: #ffffff;
  --doctor-border: #e8edf6;
  --doctor-text: #344967;
  --doctor-muted: #71849f;
  --doctor-violet: #6d4df6;
  --doctor-blue: #3367dc;
  --doctor-green: #2fac47;
  --doctor-orange: #fa7921;
  --doctor-red: #ff3d3d;
  color: var(--doctor-text);
  --color-first: #005ca2;
  --color-orange: #fa7921;
}

h2 {
  font-size: 26px;
}

h5 {
  font-size: 22px;
}

.table th {
  font-size: 13px;
}

.table td {
  font-size: 14px;
}

.dd-item .dd-handle {
  height: 50px;
}

.dd-spam-url {
  font-weight: normal;
  font-size: 10px;
  padding: 0px 10px;
}

.items_action {
  position: relative;
  z-index: 10;
  right: 10px;
  float: right;
  top: -45px;
}

.items_action_children {
  position: relative;
  z-index: 10;
  right: -45px;
  float: right;
  top: 5px;
}

.dd-item .dd-imagen {
  height: auto;
}

.dd-imagen img {
  width: 500px;
  height: 100px;
  object-fit: cover;
}

.img-slider {
  width: 100%;
  max-height: 80px;
  object-fit: cover;
}

.card-body .galery-notes img,
.card-body .galery-obra img,
.card-body .galery-post img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
}

.shownote-container-swiper {
  float: right;
  margin-left: 20px;
  width: 350px;
}

.img-perfil img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.th-span {
  font-size: 10px;
}

/* Checkbox */
.checkbox-wrapper-34 {
  --blue: #0d7eff;
  --g08: #e1e5eb;
  --g04: #848ea1;
}

.checkbox-wrapper-34 .tgl {
  display: none;
}
.checkbox-wrapper-34 .tgl,
.checkbox-wrapper-34 .tgl:after,
.checkbox-wrapper-34 .tgl:before,
.checkbox-wrapper-34 .tgl *,
.checkbox-wrapper-34 .tgl *:after,
.checkbox-wrapper-34 .tgl *:before,
.checkbox-wrapper-34 .tgl + .tgl-btn {
  box-sizing: border-box;
}
.checkbox-wrapper-34 .tgl::selection,
.checkbox-wrapper-34 .tgl:after::selection,
.checkbox-wrapper-34 .tgl:before::selection,
.checkbox-wrapper-34 .tgl *::selection,
.checkbox-wrapper-34 .tgl *:after::selection,
.checkbox-wrapper-34 .tgl *:before::selection,
.checkbox-wrapper-34 .tgl + .tgl-btn::selection {
  background: none;
}
.checkbox-wrapper-34 .tgl + .tgl-btn {
  outline: 0;
  display: block;
  width: 125px; /* Incrementado el ancho */
  height: 35px; /* Incrementado la altura */
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 14px; /* Incrementado el tamaño de la fuente */
  font-weight: 400;
  color: #fff;
}
.checkbox-wrapper-34 .tgl + .tgl-btn:after,
.checkbox-wrapper-34 .tgl + .tgl-btn:before {
  position: relative;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
}
.checkbox-wrapper-34 .tgl + .tgl-btn:after {
  left: 0;
}
.checkbox-wrapper-34 .tgl + .tgl-btn:before {
  display: inline;
  position: absolute;
  top: 7px; /* Ajustado para centrar verticalmente */
}
.checkbox-wrapper-34 .tgl:checked + .tgl-btn:after {
  left: 67.5%;
}

.checkbox-wrapper-34 .tgl-ios + .tgl-btn {
  background: var(--g08);
  border-radius: 20rem;
  padding: 3px; /* Incrementado el padding */
  transition: all 0.4s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:after {
  width: 32%;
  border-radius: 2em;
  background: #fff;
  transition:
    left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    padding 0.3s ease,
    margin 0.3s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:before {
  content: "Desactivo";
  left: 45px; /* Ajustado para la nueva anchura */
  color: var(--g04);
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:active {
  box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);
}
.checkbox-wrapper-34 .tgl-ios + .tgl-btn:active:after {
  padding-right: 0.4em;
}
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn {
  background: #005ca2;
}
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn:active {
  box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);
}
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn:active:after {
  margin-left: -0.4em;
}
.checkbox-wrapper-34 .tgl-ios:checked + .tgl-btn:before {
  content: "Activo";
  left: 12px; /* Ajustado para la nueva anchura */
  color: #fff;
}

/* EndCheckbox */

.setting-spam {
  font-size: 12px !important;
  text-transform: none;
}

.setting-spam {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 650px;
  white-space: normal;
  display: inline-block;
}

.app-brand-logo img {
  width: 40px;
}

.col-color {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  margin: 0px 10px;
}

.img_settings_container img {
  max-width: 200px;
  height: auto;
  padding: 2px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.permission-checkbox {
  width: 15px;
  height: 15px;
}

.col-link {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-category {
  color: #566a7f;
}

.icon-home span {
  font-size: 48px;
}

@media (min-width: 768px) {
  .w-md-50 {
    width: 50% !important;
  }
}

@media (min-width: 992px) {
  .w-lg-25 {
    width: 25% !important;
  }
}

/* Appointments calendar */
.appointments-page {
  color: #243854;
}
/* 
.appointments-page-title {
  color: #243854;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0;
} */

.appointments-filter-card,
.appointments-calendar-card,
.appointments-list-card {
  border: 1px solid #e8edf6;
  border-radius: 8px;
  scroll-margin-top: 90px;
  box-shadow: 0 8px 26px rgba(39, 54, 88, 0.09);
}

.appointments-filter-card {
  overflow: hidden;
}

.appointments-filter-card .card-body {
  padding: 1.1rem 1.35rem;
}

.appointments-filter-card .form-label {
  color: #60718b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.appointments-filter-card .form-control,
.appointments-filter-card .form-select {
  border-color: #dce4f0;
  border-radius: 5px;
  color: #62738f;
  min-height: 42px;
}

/* .appointments-filter-actions {
  min-height: 66px;
} */

.appointments-calendar-card .card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.appointments-card-title {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem 0;
}

.appointments-card-title-icon {
  align-items: center;
  background: #edf3ff;
  border-radius: 8px;
  color: #005ca2;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.appointments-card-title-icon i {
  font-size: 1.45rem;
}

.appointments-card-title strong {
  color: #243854;
  font-size: 1.05rem;
  font-weight: 700;
}

.appointments-calendar-card .fc {
  color: #344967;
  font-size: 0.9rem;
}

.appointments-calendar-card .fc .fc-toolbar {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  margin: 0.4rem 0 0.75rem;
}

.appointments-calendar-card .fc .fc-toolbar-title {
  color: #243854;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: capitalize;
}

.appointments-calendar-card .fc .fc-toolbar-chunk:nth-child(1) {
  justify-self: start;
}

.appointments-calendar-card .fc .fc-toolbar-chunk:nth-child(2) {
  justify-self: center;
}

.appointments-calendar-card .fc .fc-toolbar-chunk:nth-child(3) {
  display: contents;
}

.appointments-calendar-card
  .fc
  .fc-toolbar-chunk:nth-child(3)
  > .fc-today-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.appointments-calendar-card
  .fc
  .fc-toolbar-chunk:nth-child(3)
  > .fc-button-group {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

.appointments-calendar-card .fc .fc-button {
  background: #fff;
  border: 1px solid #d8e1f0;
  border-radius: 5px;
  box-shadow: none;
  color: #596b85;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
}

.appointments-calendar-card
  .fc
  .fc-button-primary:not(:disabled).fc-button-active,
.appointments-calendar-card .fc .fc-button-primary:not(:disabled):active {
  background: #6554f2;
  border-color: #6554f2;
  box-shadow: 0 6px 12px rgba(101, 84, 242, 0.22);
  color: #fff;
}

.appointments-calendar-card .fc .fc-today-button {
  color: #6554f2;
}

.appointments-calendar-card .fc-theme-standard td,
.appointments-calendar-card .fc-theme-standard th,
.appointments-calendar-card .fc-theme-standard .fc-scrollgrid {
  border-color: #e4e9f2;
}

.appointments-calendar-card .fc-col-header-cell {
  background: #fbfcff;
  color: #243854;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0;
  text-transform: lowercase;
}

.appointments-calendar-card .fc-daygrid-day-number {
  color: #344967;
  font-size: 0.82rem;
  padding: 0.35rem 0.45rem;
}

.appointments-calendar-card .fc-daygrid-day.fc-day-today {
  background: transparent;
}

.appointments-calendar-card
  .fc-daygrid-day.fc-day-today
  .fc-daygrid-day-number {
  align-items: center;
  background: var(--doctor-orange);
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(101, 84, 242, 0.25);
  color: #fff;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  margin: 0.2rem;
  width: 30px;
}

.appointments-calendar-card .fc-daygrid-day.appointments-calendar-day-has-turns,
.appointments-calendar-card .fc-timegrid-col.appointments-calendar-day-has-turns {
  background-color: #e4f5e6;
}

.appointments-calendar-card .fc-daygrid-event:not(.appointments-calendar-turn-count-event) {
  background: #58c878;
  border: 0;
  border-radius: 999px;
  height: 6px;
  margin: 1px auto;
  overflow: hidden;
  width: 6px;
}

.appointments-calendar-card
  .fc-daygrid-event:not(.appointments-calendar-turn-count-event)
  .fc-event-title,
.appointments-calendar-card
  .fc-daygrid-event:not(.appointments-calendar-turn-count-event)
  .fc-event-time {
  display: none;
}

.appointments-calendar-card .fc-daygrid-event.appointments-calendar-turn-count-event {
  align-items: center;
  background: #005ca2;
  border: 1px solid #005ca2;
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(0, 92, 162, 0.18);
  color: #fff;
  display: inline-flex;
  font-size: 0.6rem;
  font-weight: 700;
  height: auto;
  justify-content: center;
  line-height: 1;
  margin: 0.15rem auto;
  /* max-width: calc(100% - 0.7rem); */
  min-height: 22px;
  padding: 0.28rem 0.28rem;
  white-space: normal;
  width: auto;
}

.appointments-calendar-card
  .fc-daygrid-event.appointments-calendar-turn-count-event
  .fc-event-main {
  color: inherit;
}

.appointments-calendar-card
  .fc-daygrid-event.appointments-calendar-turn-count-event
  .fc-event-title {
  display: inline;
}

.appointments-list-card .card-header {
  background: #fff;
  border-bottom-color: #e8edf6;
}

.appointments-list-card {
  border-color: #e8ecf5;
  box-shadow: 0 8px 24px rgba(34, 48, 74, 0.06);
  overflow: hidden;
}

.appointments-agenda-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e8ecf5;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem 1.5rem 1.1rem;
}

.appointments-agenda-title {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  min-width: 0;
}

.appointments-agenda-icon {
  align-items: center;
  background: #edf3ff;
  border-radius: 8px;
  color: #005ca2;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 1.35rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.appointments-agenda-copy strong {
  color: #253858;
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.appointments-agenda-copy span {
  color: #718096;
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0.2rem;
  white-space: normal;
}

.appointments-count-badge {
  align-items: center;
  background: #f8f9ff;
  border: 1px solid #ccd6ff;
  border-radius: 8px;
  color: #253858;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

.appointments-list-card .card-body {
  background: #fff;
}

.appointments-agenda-table {
  color: #253858;
}

.appointments-agenda-table thead th {
  background: #fff;
  border-bottom: 1px solid #e8ecf5;
  border-top: 0;
  color: #53627c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.95rem 1.5rem;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.appointments-agenda-table tbody td {
  border-color: #eef2f7;
  padding: 0.95rem 1.5rem;
  vertical-align: middle;
}

.appointments-back-calendar-btn {
  align-items: center;
  background: #005ca2;
  border: 0;
  border-radius: 50%;
  bottom: 1.25rem;
  box-shadow: 0 10px 22px rgba(0, 92, 162, 0.28);
  color: #fff;
  display: none;
  height: 48px;
  justify-content: center;
  left: auto;
  position: fixed;
  right: 1.25rem !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 48px;
  z-index: 1080;
}

.appointments-back-calendar-btn i {
  font-size: 1.8rem;
  line-height: 1;
}

.appointments-back-calendar-btn:hover {
  background: #004f8b;
  color: #fff;
  transform: translateY(-2px);
}

.appointments-calendar-day-selected {
    background-color: #fa78214b !important;
}

#createAppointmentModal .appointment-create-form {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  min-height: 0;
}

#createAppointmentModal .modal-header,
#createAppointmentModal .modal-footer {
  flex-shrink: 0;
}

#createAppointmentModal .modal-body {
  min-height: 0;
  overflow-y: auto;
}

#createAppointmentModal .modal-footer {
  background: #fff;
  border-top: 1px solid #e8edf6;
  bottom: 0;
  position: sticky;
  z-index: 3;
}

.appointment-date-calendar {
  background: #fff;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  padding: 0.9rem;
}

.appointment-date-calendar__header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.appointment-date-calendar__header strong {
  color: #243854;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: capitalize;
}

.appointment-date-calendar__nav {
  align-items: center;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.appointment-date-calendar__weekdays,
.appointment-date-calendar__grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.appointment-date-calendar__weekdays {
  color: #60718b;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-align: center;
  text-transform: uppercase;
}

.appointment-date-calendar__day {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid #e1e8f2;
  border-radius: 6px;
  color: #8793a8;
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  justify-content: center;
  min-height: 54px;
  padding: 0.28rem;
  text-align: center;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  width: 100%;
}

.appointment-date-calendar__day--empty {
  background: transparent;
  border: 0;
  min-height: 54px;
}

.appointment-date-calendar__day--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.appointment-date-calendar__day--available {
  background: #eaf7ee;
  border-color: #bde8c8;
  color: #1f6f3d;
  cursor: pointer;
  font-weight: 700;
}

.appointment-date-calendar__day--available:hover,
.appointment-date-calendar__day--available:focus {
  background: #d9f1e0;
  border-color: #58c878;
  box-shadow: 0 6px 14px rgba(88, 200, 120, 0.18);
  outline: 0;
  transform: translateY(-1px);
}

.appointment-date-calendar__day.is-selected {
  background: #005ca2;
  border-color: #005ca2;
  box-shadow: 0 8px 16px rgba(0, 92, 162, 0.22);
  color: #fff;
}

.appointment-date-calendar__day-number {
  font-size: 0.9rem;
  line-height: 1;
}

.appointment-date-calendar__day-slots {
  font-size: 0.58rem;
  line-height: 1.1;
}

.appointment-date-calendar__status {
  color: #60718b;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.65rem;
  min-height: 1.1rem;
}

.schedule-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* background: #ffab00;
  border: 1px solid #edf0f6;
  transition: 0.25s; */
  font-size: 20px;
}

.schedule-action-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.schedule-action-edit {
  color: #fff;
}

.schedule-action-delete {
  background: #ff3e1d;
  color: #fff;
}

.schedule-action-delete:hover {
  color: #fff;
}

@media (max-width: 1199.98px) {
  .appointments-back-calendar-btn.is-visible {
    display: inline-flex;
  }
}

@media (min-width: 1200px) {
  .appointments-back-calendar-btn,
  .appointments-back-calendar-btn.is-visible {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .appointments-filter-card .card-body,
  .appointments-calendar-card .card-body {
    padding: 0.9rem;
  }

  /* .appointments-calendar-card .fc .fc-toolbar {
    grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
  } */

  .appointments-calendar-card .fc .fc-toolbar-chunk:nth-child(1) {
    justify-self: start;
  }

  .appointments-calendar-card .fc .fc-toolbar-chunk:nth-child(2) {
    justify-self: center;
  }
}

@media (max-width: 575.98px) {
  .appointment-date-calendar {
    padding: 0.75rem;
  }

  .appointment-date-calendar__weekdays,
  .appointment-date-calendar__grid {
    gap: 0.25rem;
  }

  .appointment-date-calendar__day,
  .appointment-date-calendar__day--empty {
    min-height: 48px;
  }

  .appointment-date-calendar__day-slots {
    font-size: 0.52rem;
  }

  .appointments-agenda-header {
    align-items: flex-start;
    padding: 1rem;
  }

  .appointments-agenda-icon {
    flex-basis: 38px;
    font-size: 1.15rem;
    height: 38px;
    width: 38px;
  }

  .appointments-count-badge {
    font-size: 0.8rem;
    min-height: 30px;
    padding: 0.28rem 0.65rem;
  }

  .appointments-agenda-table thead th,
  .appointments-agenda-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.fc-daygrid-event-harness {
  display: flex;
  justify-content: center;
}
