/* =====================
   UNIVERSIDADES
===================== */
/* CONTENEDOR DE TABLA */
#leads-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

/* TABLA */
#leads-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* ENCABEZADOS */
#leads-table th,
#leads-table td {
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 100px;
  position: relative;
}

/* Encabezado */
#leads-table th {
  background-color: #f0f0f0;
  color: #333;
  font-weight: 600;
  user-select: none;
}

/* Resizer (separador de columna) */
.resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 1;
}

/* FILAS */
#leads-table tbody tr {
  height: 40px;
  max-height: 40px;
}

#leads-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

#leads-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* =====================
   FILTROS
===================== */
.filters-flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  background-color: #eee;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  min-width: 100px;
  margin-right: 10px;
}

.filter-item label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.filter-item input,
.filter-item select {
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* RESPONSIVE FILTROS */
@media (max-width: 600px) {
  .filters-flex {
    flex-wrap: wrap;
  }
  .filter-item {
    min-width: auto;
  }
}

/* =====================
   Scorecard simple y claro
===================== */
.mdo-airtable-container {
  padding: 2rem;
  background-color: #fff;
  margin-bottom: 10px;
}

.scorecardsContainer {
  display: flex;
  flex-wrap: wrap;
}

.university-card {
  padding: 12px;
  background: #f9fafb;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  margin-right: 12px;
  margin-bottom: 12px;
}

.university-card h3 {
  color: #00215B;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  margin: 2px 0;
}

.university-card p {
  font-size: 0.9rem;
  line-height: 1;
  color: #334155;
  margin: 2px 0;
}

.university-card a {
  color: #046BD2;
  text-decoration: none;
  font-weight: 600;
}

.university-card a:hover {
  text-decoration: underline;
}

/*Progress bar*/
.progress-bar-container {
  background-color: #e2e8f0;
  border-radius: 4px;
  height: 10px;
  margin: 1px 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.progress-bar {
  height: 100%;
  transition: width 0.4s ease-in-out;
  border-radius: 4px;
}

.progress-bar.red {
  background-color: #dc2626;
}

.progress-bar.blue {
  background-color: #3b82f6;
}

.progress-bar.green {
  background-color: #16a34a;
}


/*Calendario */
/* Ajustar el ancho de cada celda o día */
.daterangepicker td.available, 
.daterangepicker td.in-range, 
.daterangepicker td.active, 
.daterangepicker td.week, 
.daterangepicker td.off {
  width: 30px !important; /* o el ancho que necesites */
  max-width: 30px !important;
  padding: 2px !important; /* reduce el padding si es necesario */
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap; /* evitar saltos */
}

/* Ajustar los spans con números dentro */
.daterangepicker td.available span,
.daterangepicker td.in-range span,
.daterangepicker td.active span {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ajustar el contenedor general para que se adapte */
.daterangepicker .drp-calendar {
  width: auto !important;
  min-width: 350px !important;
  padding: 5px;
}

/* Para mantener separación entre los dos calendarios */
.daterangepicker .drp-calendar:first-child {
  margin-right: 20px !important;
}

/* =====================
   RESULTADOS UNIVERSIDADES
===================== */

.mdo-university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mdo-university-card {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mdo-university-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mdo-university-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.mdo-university-details {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

.mdo-university-details li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.mdo-university-link {
    display: inline-block;
    color: #ed1d24;
    text-decoration: underline;
    margin-bottom: 8px;
}

.mdo-university-link:hover {
    text-decoration: underline;
}

.mdo-university-nolink {
    color: #999;
    font-style: italic;
    margin-bottom: 8px;
    display: block;
}

.mdo-university-source {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.mdo-warning {
    color: #d9534f;
    font-weight: bold;
}

.mdo-no-results {
    color: #777;
    font-style: italic;
}

.mdo-success {
    color: #2e7d32;
    font-weight: bold;
    margin-top: 1.5rem;
}