#schCONV {
  padding: 10px;
}

/* Change DevExtreme  */

#schSFT .dx-scheduler-work-space { 
  height: calc(100vh - 180px) !important; /* ajusta el offset a tu layout */
  overflow-y: auto !important; /* Habilita scroll vertical */
}

#schSFT .dx-scheduler-timeline .dx-scheduler-header-panel-cell:not(.dx-scheduler-header-panel-week-cell),
.dx-scheduler-timeline .dx-scheduler-date-table-cell {
    width: 80px;
}

/* Sincronizar altura de filas de datos y grupos */
#schSFT .dx-scheduler-date-table-row {
  height: 48px !important;
}

#schSFT .dx-scheduler-date-table-cell {
  height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* CLAVE: Sincronizar altura del panel de grupos con las filas de datos */
#schSFT .dx-scheduler-group-row {
  height: 48px !important;
}

#schSFT .dx-scheduler-group-header {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding: 0 8px !important;
}

#schSFT .dx-scheduler-group-header-content {
  height: 100% !important;
  line-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

#schSFT .dx-scheduler-group-header-content .dx-template-wrapper {
  height: 100% !important;
  line-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#schSFT .dx-scheduler-group-header-content * {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Asegurar que el contenedor de grupos tenga scroll sincronizado */
#schSFT .dx-scheduler-sidebar-scrollable {
  overflow-y: hidden !important; /* El scroll lo maneja el work-space */
}

#schSFT .dx-scheduler-date-table-scrollable {
  overflow-y: hidden !important; /* El scroll lo maneja el work-space */
}

#schSFT .user-cell {
  display: flex;
  align-items: center;
  height: 48px;
  line-height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Altura y padding de la cita */
#schSFT .dx-scheduler-appointment {
    height: 18px !important;
    min-height: 18px !important;
    margin-top: -9px !important;
    margin-bottom: 1px !important;
}

#schSFT .dx-scheduler-appointment .dx-scheduler-appointment-content {
    padding: 0 4px !important;
    line-height: 18px !important;
    font-size: 11px;
}

#schSFT .dx-scheduler-appointment-collector {
    height: 18px !important;
    line-height: 18px !important;
}

.shift-preview {
    width: 100%;
    height: 5px;
}

/* Forzar sincronización de alturas entre paneles */
#schSFT .dx-scheduler-timeline .dx-scheduler-group-table,
#schSFT .dx-scheduler-timeline .dx-scheduler-date-table {
  table-layout: fixed !important;
}

#schSFT .dx-scheduler-timeline .dx-scheduler-group-table tr,
#schSFT .dx-scheduler-timeline .dx-scheduler-date-table tr {
  height: 48px !important;
}