/* ======== ESTILO GENERAL ======== */
#schedule {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 14px;
  color: #222;
}

/* Contenedor de citas dentro del td */
.content-cita {
  position: relative;
  height: 90px;
  max-height: 90px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 4px 28px 4px; /* leave space at bottom for the + button */
  font-size: 0; /* elimina espacios entre elementos inline-block */
}

/* Botón de agregar cita */
.add-appointment {
    position: absolute;
    bottom: 3px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid green;
    border-radius: 50%;
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    color: green;
    transition: all 0.12s 
ease;
    z-index: 1;
    opacity: 0.95;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}

.content-cita:hover .add-appointment {
  opacity: 1;
}

.add-appointment:hover {
  background: #3182ce;
  color: #fff;
  transform: scale(1.08);
  opacity: 1;
}

/* ======== ENCABEZADO ======== */
#schedule thead th {
  position: sticky;
  top: 0;
  background: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: #2c3e50;
  border-bottom: 2px solid #e0e6eb;
  padding: 10px 4px;
  z-index: 5;
  white-space: nowrap;
}

/* ======== CELDAS ======== */
#schedule td {
  border-bottom: 1px solid #edf1f5;
  border-right: 1px solid #edf1f5;
  min-width: 150px;
  max-width: 200px;
  vertical-align: top;
  position: relative;
  padding: 0;
}

/* Scrollbar para el contenedor */
.content-cita::-webkit-scrollbar {
  width: 4px;
}

.content-cita::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.content-cita::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

/* Primera columna (hora) */
#schedule td:first-child {
  background: #94af8445;
  color: #000;
  font-weight: 500;
  font-size: 12px;
  text-align: right;
  border-right: 1px solid #e1e6ea;
  width: 70px;
  padding-right: 8px;
  position: sticky;
  left: 0;
  z-index: 4;
}

/* ======== FILAS ======== */
#schedule tbody tr:nth-child(even) {
  background: #e7eaed;
}

/* ======== BLOQUES DE CITAS ======== */
.cita {
  color: #576070;
  display: inline-block;
  width: 32%;
  height: 16px;
  padding: 1px 3px;
  margin: 1px;
  font-size: 0.65rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 32px;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

/* hover efecto */
.cita:hover {
  background: #dfeeff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Indicadores pequeños dentro del bloque */
.cita .indicador {
  display: inline-block;
  width: 6px;
  height: 6px;
   
  margin: 0 3px;
  vertical-align: middle;
}

/* ======== INTERACCIÓN ======== */
.selected-cell {
  background: rgba(0,98,235,0.08);
}

/* ======== RESPONSIVE ======== */
.table-responsive {
  overflow-x: auto;
  scrollbar-color: #d0d4da transparent;
  scrollbar-width: thin;
}
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #c8ccd2;
 
}

/* ======== DETALLES EXTRAS ======== */
/* Pequeña línea divisoria simulando "hora actual" */
tr[data-hour="09:00"] {
  border-top: 2px solid #ff4444;
}
