.ghrc-opd-schedule-section {
  margin-top: clamp(-1rem, -1.5vw, -0.25rem);
}

.ghrc-opd-schedule-shell {
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}

.ghrc-opd-schedule-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: clamp(1.1rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(14, 143, 197, 0.12);
}

.ghrc-opd-schedule-head p {
  max-width: 58rem;
  margin: 0.75rem 0 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.ghrc-opd-schedule-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  color: var(--ghrc-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ghrc-opd-schedule-note {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(14, 143, 197, 0.16);
  border-radius: 999px;
  background: rgba(14, 143, 197, 0.08);
  color: var(--ghrc-navy);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
}

.ghrc-opd-schedule-note svg {
  color: var(--ghrc-blue);
}

.ghrc-opd-controls {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) minmax(16rem, 1fr) auto auto;
  gap: 0.8rem;
  align-items: end;
  margin-top: clamp(1.1rem, 2vw, 1.5rem);
}

.ghrc-opd-field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.ghrc-opd-field span {
  color: var(--ghrc-navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.ghrc-opd-field select,
.ghrc-opd-field input {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(14, 143, 197, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ghrc-navy);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  padding: 0.8rem 0.95rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.ghrc-opd-field select:focus,
.ghrc-opd-field input:focus {
  border-color: rgba(14, 143, 197, 0.52);
  box-shadow: 0 0 0 4px rgba(14, 143, 197, 0.1);
}

.ghrc-opd-search,
.ghrc-opd-reset {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  font-weight: 800;
  padding: 0.75rem 1rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.ghrc-opd-search {
  border: 1px solid var(--ghrc-red);
  background: var(--ghrc-red);
  color: #fff;
  box-shadow: 0 14px 24px -18px rgba(239, 63, 78, 0.72);
}

.ghrc-opd-reset {
  border: 1px solid rgba(14, 143, 197, 0.16);
  background: rgba(41, 168, 143, 0.1);
  color: var(--ghrc-navy);
}

.ghrc-opd-search:hover,
.ghrc-opd-search:focus-visible,
.ghrc-opd-reset:hover,
.ghrc-opd-reset:focus-visible {
  border-color: var(--ghrc-navy);
  background: var(--ghrc-navy);
  color: #fff;
  transform: translateY(-1px);
}

.ghrc-opd-results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(14, 143, 197, 0.08),
    rgba(41, 168, 143, 0.08)
  );
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
}

.ghrc-opd-results-bar strong {
  color: var(--ghrc-blue);
}

.ghrc-opd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.15rem);
  margin-top: clamp(1rem, 2vw, 1.35rem);
}

#primary .ghrc-opd-grid .ghrc-doctor-card {
  min-height: 100%;
}

#primary .ghrc-opd-doctor-card .ghrc-doctor-card__media {
  min-height: 250px;
}

#primary .ghrc-opd-doctor-card .ghrc-doctor-card__body {
  align-content: start;
}

#primary .ghrc-opd-doctor-card .ghrc-doctor-card__body p {
  min-height: 2.35rem;
}

.ghrc-opd-doctor-card__meta {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.1rem;
  color: #5f6e85;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.38;
}

.ghrc-opd-doctor-card__meta span {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}

.ghrc-opd-doctor-card__meta svg {
  color: var(--ghrc-teal);
  transform: translateY(0.1rem);
}

#primary .ghrc-opd-doctor-card .ghrc-doctor-card__actions {
  margin-top: 0.45rem;
}

#primary .ghrc-opd-doctor-card .ghrc-doctor-card__status {
  max-width: 100%;
  line-height: 1.2;
  white-space: normal;
}

#primary .ghrc-opd-doctor-card .ghrc-doctor-card__book {
  min-width: 7.5rem;
  min-height: 2.55rem;
  font-size: 0.86rem;
}

.ghrc-opd-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(14, 143, 197, 0.28);
  border-radius: 8px;
  background: rgba(14, 143, 197, 0.06);
  color: hsl(var(--muted-foreground));
  padding: 1.25rem;
  text-align: center;
}

@media (max-width: 1280px) {
  .ghrc-opd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .ghrc-opd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ghrc-opd-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ghrc-opd-search,
  .ghrc-opd-reset {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .ghrc-opd-schedule-head {
    grid-template-columns: 1fr;
  }

  .ghrc-opd-schedule-note {
    width: fit-content;
    white-space: normal;
  }

  .ghrc-opd-controls,
  .ghrc-opd-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ghrc-opd-schedule-shell {
    padding: 1rem;
  }
}
