body {
    font-family: 'Inter', sans-serif;
    display: grid;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

.row{
    display: flex;
    justify-content: center;
}

.is-invalid{
    border: 1px solid red;
}

#anuncios{
    position: absolute;
    top: 0;
    right: 20px;
    max-width: 70%;
}

.estado{
    cursor: pointer;
}

#loader{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    background-color: rgba(181, 181, 181, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegúrate de que el loader esté por encima de otros elementos */
}

table .nombre{
    word-break: break-word;
    font-size: clamp(14px, 1vw, 20px);
}

/* ------ TV ------ */

#contTv {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}
#contTv header {
    height: 80px;
}

.marquee {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    display: block;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s cubic-bezier(0, 0.3, 0.7, 0.5) infinite;
    padding: 0;
    will-change: transform;
    min-width: 0;
}

@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#logoBCV {
    height: 40px;
    align-self: center;
}

/*? ------- MAIN TV ------- */

#muestraTurnos{
    overflow: hidden;
    position: relative;
    border-radius: 25px;
    box-shadow: 5px 10px 5px rgba(0, 0, 0, 0.3);
}

#cuerpoTitulo{
    position: relative;
    z-index: 2 !important;
}

#pacientesLLamados{
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    z-index: 1;
}

@keyframes scrollText {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.imgCarrusel  {
    border-radius: 25px;
    box-shadow: 5px 10px 5px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* ------ FIN TV ------ */

/* ------ registro citas ------ */

/* Breakpoint Bootstrap 'md' (>=768px) */
@media (min-width: 768px) {
    .columnaPaciente {
        border-style: solid;
        border-color: #ccc;
        border-width: 0 2px 2px 2px; /* arriba, derecha, abajo, izquierda */
    }
}

/* Opcional: estilos específicos para < md (móvil) */
@media (max-width: 767.98px) {
    .columnaPaciente.nombrePaciente {
        border-style: solid;
        border-color: #ccc;
        border-width: 0 0 2px 0; /* arriba, derecha, abajo, izquierda */
    }
    .porVerificar {
        background: rgba(255, 255, 0, 0.253);
    }
    .verificada {
        background: rgba(0, 0, 255, 0.253);
    }
    .cancelada {
        background: rgba(255, 0, 0, 0.253);
    }
    .llamada {
        background: rgba(255, 165, 0, 0.253);
    }
    .atendida {
        background: rgba(0, 128, 0, 0.253);
    }
    .porConfirmarTurno {
        background: rgba(128, 0, 128, 0.253);
    }
}

@media print {
    #tablaCitasContainer {
        width: 100%;
        font-size: 12px !important;
    }
    #headerTablaCitas {
        display: flex !important;
    }
    .col-md-2 {
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
        display: flex !important;
    }
    .col-md-1 {
        flex: 0 0 8.333333% !important;
        max-width: 8.333333% !important;
    }
    span.d-md-none, div.d-md-none {
        display: none !important;
    }
    .columnaPaciente {
        border-style: solid;
        border-color: #ccc;
        border-width: 0 2px 2px 2px; /* arriba, derecha, abajo, izquierda */
    }
    .mb-2, .mt-2 {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    hr {
        display: block !important;
    }
    .masPequeña {
        font-size: 10px !important;
        padding: 2px !important;
    }
    button {
        display: none !important;
    }
        /* Ocultar barra de scroll en impresión */
    html, body {
        overflow: hidden !important;
        -webkit-overflow-scrolling: auto !important;
    }
    /* Oculta y pinta la barra de scroll de blanco en Webkit */
    ::-webkit-scrollbar {
        width: 16px !important;
        background: #fff !important;
    }
    ::-webkit-scrollbar-thumb {
        background: #fff !important;
        border: none !important;
    }
    
}

/* ------ fin registro citas ------ */

/* ------ imagenes ------ */

#btnSalirImagenes {
    cursor: pointer;
}

.estatusImagenes {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: solid 0.2rem #ffffff;
}

.imgConfiguraciones {
    cursor: pointer;
}

#btnAgregarImagen {
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0.2rem 0.3rem 1rem 0.2rem rgba(41,72,170,0.75);
    -webkit-box-shadow: 0.2rem 0.3rem 1rem 0.2rem rgba(41,72,170,0.75);
    -moz-box-shadow: 0.2rem 0.3rem 1rem 0.2rem rgba(41,72,170,0.75);
}

/* ----- MOSTRAR CITAS ------ */

.accionesTabla {
    width: 30%;
}

.accionesCitas {
    width: 45%;
}

/* ------- VISTA DOCTORES ------- */

.header-actions {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    background: white;
    overflow: hidden;
}

.date-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden; /* Contiene el scroll interno */
    position: relative;
}

.date-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    gap: 20px;
    padding: 5px 0 10px 0;
    /* Ocultar scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.header-actions button {
    flex-shrink: 0;
}

.date-container::-webkit-scrollbar {
    display: none;
}

.date-pill {
    flex: 0 0 auto; /* Evita que las fechas se compriman */
    min-width: 45px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    border-bottom: 3px solid transparent;
}

.date-pill.active {
    color: #198754;
    border-bottom: 3px solid #198754;
    font-weight: 700;
}

.date-pill .day-name {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.date-pill .month-name {
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    margin-bottom: 2px;
    color: black;
    font-weight: bold;
}

.date-pill .day-number {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Tarjetas de citas */
.appointment-card {
    border: none;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.time-slot {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
}

.patient-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.btn-confirm {
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
}

.status-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-pending { background-color: #edf2f7; color: #4a5568; }
.status-confirmed { background-color: #c6f6d5; color: #22543d; }

/* Tabs de Especialidades (Colas) */
.specialty-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    transition: all 0.2s;
    white-space: nowrap;
}

.specialty-tab.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.specialties-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.specialties-wrapper::-webkit-scrollbar {
    display: none;
}

.btn-next {
    border: 1px solid #198754;
    color: #198754;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
}