.toolbar-tray .toolbar-icon-nxweb-appointment-admin::before,
.toolbar-menu .toolbar-icon-nxweb-appointment-admin::before {
  mask-image: url(../assets/icon-calendar.svg) !important;
  background-image: url(../assets/icon-calendar.svg) !important;
}

.views-field-status span.marker {
  padding: 0;
  background-color: transparent;
}

.views-exposed-form #edit-date-wrapper {
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  border: none;
}

.views-exposed-form #edit-date-wrapper legend .fieldset__label {
  padding: 0;
  margin-bottom: 0.5rem;
}

.views-exposed-form #edit-date-wrapper .fieldset__wrapper {
  margin: 0;
}

.views-exposed-form #edit-date-wrapper .fieldset__wrapper .form-item {
  margin-bottom: 0;
}

.views-exposed-form #edit-date-wrapper .fieldset__wrapper .form-item label {
  display: none;
}

.appointment-status {
  background-color: #333;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
}

.appointment-status.status-pending {
  background-color: #6c757d;
}

.appointment-status.status-confirmed {
  background-color: #0d6efd;
}

.appointment-status.status-rescheduled {
  background-color: #c57a00;
}

.appointment-status.status-completed {
  background-color: #198754;
}

.appointment-status.status-canceled {
  background-color: #dc3545;
}

.appointment-status.status-missed {
  background-color: #6f42c1;
}

#nxweb-appointment-title[readonly] {
  background-color: #f0f0f0;
}

a.nxweb-appointment-calendar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

a.nxweb-appointment-calendar-action::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask-image: url(../assets/icon-calendar.svg);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

a.nxweb-appointment-list-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

a.nxweb-appointment-list-action::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask-image: url(../assets/icon-appointment-list.svg);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.local-actions,
.local-actions .action-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-item--clinic .chosen-container,
.form-item--doctor .chosen-container {
  min-width: 320px;
}

.nxweb-appointment-clinic-locked select {
  pointer-events: none;
}

.nxweb-appointment-clinic-locked .chosen-container {
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #f2f2f2;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #d6d6d6;
}

.nxweb-appointment-clinic-locked .chosen-container .chosen-single,
.nxweb-appointment-clinic-locked .chosen-container .chosen-choices {
  background-color: transparent;
}

.calendar-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 !important;
  flex-wrap: wrap;
}

.calendar-item .calendar-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
  min-width: 0;
}

.calendar-item .calendar-item-info .calendar-item-info-title {
  display: flex;
  gap: 0.5rem;
  font-weight: bold;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.calendar-item .calendar-item-links {
  display: flex;
  gap: 0.25rem;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.calendar-item .calendar-item-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  box-sizing: border-box;
  background-color: #ededed;
  color: #333333;
}

.calendar-item .calendar-item-links a:hover {
  background-color: #333333;
  color: #ffffff;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .calendar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .calendar-item .calendar-item-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    order: 2;
  }
  .calendar-item .calendar-item-links a {
    width: 100%;
  }
}

.nxweb-appointment {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nxweb-appointment__title {
  margin: 0 0 0.5rem;
}

.nxweb-appointment-time-card {
  background-color: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
}

.nxweb-appointment-time-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.nxweb-appointment-time-card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6a6a;
}

.nxweb-appointment-time-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.nxweb-appointment-time-card__column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nxweb-appointment-time-card__group {
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 0.75rem;
  background-color: #d4d4d8;
}

.nxweb-appointment-time-card__items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.card {
  background-color: #f7f7f7 !important;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e1e1e1;
}

.card-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.card-title {
  font-weight: 700;
  color: #4a4a4a;
}

.card-body {
  padding: 0.6rem 0.75rem 0.75rem;
}

.card-body--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.card-body__item {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}

.card-footer {
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid #e1e1e1;
  color: #6a6a6a;
  font-size: 0.85rem;
}

.card-body .field {
  margin: 0;
}

.card-body .field__label {
  margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
  .nxweb-appointment-time-card__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nxweb-appointment-time-card__items {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-body--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nxweb-appointment-time-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin-bottom: 0.25rem;
}

.nxweb-appointment-time-card__value {
  font-size: 1rem;
  font-weight: 600;
}

.nxweb-appointment__content {
  display: grid;
  gap: 1rem;
}
