.team-schedule-page {
    max-width: 960px;
}

.ts-back {
    padding: 0;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.ts-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.5rem 0 0.15rem;
    color: #1a1a1a;
}

.ts-sub {
    color: #6c757d;
    margin: 0 0 1rem;
}

.ts-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: #f5f7fa;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    color: #495057;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.ts-note i {
    color: var(--primary-color);
    margin-top: 2px;
    flex: 0 0 auto;
}

.ts-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.ts-chip {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ts-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ts-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.ts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 576px) {
    .ts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts-card {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1rem 1.05rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

/* Resalte temporal cuando el modal se abre desde el avatar de un profesional. */
.ts-card--highlight {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.ts-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.ts-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.ts-name {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.ts-spec {
    margin: 0;
    font-size: 0.82rem;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.ts-windows {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.ts-pill {
    font-size: 0.8rem;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    background: #f1f3f5;
    color: #495057;
    white-space: nowrap;
}

/* Profesional que atiende en fechas puntuales: etiqueta + pills de fecha resaltadas. */
.ts-occasional {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ts-pill--date {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.ts-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.ts-reservar {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ts-reservar:hover {
    text-decoration: underline;
}

.ts-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.ts-empty i {
    font-size: 2rem;
    color: #ced4da;
    margin-bottom: 0.75rem;
    display: block;
}

/* Disparador del modal desde el booking (color de la empresa, no azul) */
.ts-trigger {
    color: var(--primary-color);
    font-weight: 600;
}

.ts-trigger:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.ts-trigger-icon {
    color: var(--primary-color);
}

/* Booking (≥992px): el cover queda como banner de alto fijo (el de booking.css,
   400px) y NO llena la columna. Con el hero (nombre/descripción) debajo del cover
   y la tira de profesionales en el sidebar, forzar que el cover iguale la altura
   del sidebar lo agrandaba muchísimo y tapaba el nombre. El sidebar crece a su
   propio contenido. Mobile no se toca. */
@media (min-width: 992px) {
    .company-info-card,
    .company-info-card .card {
        height: auto !important;
    }
}
