/* ======================================================
   UTILIDADES GENERALES
====================================================== */

.product-text-height {
    height: 80px;
    overflow: hidden;
}

/* ellipsis */

.text-ellipsis {
    width: 100px;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-75 {
    width: 75px;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-45 {
    width: 45px;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ======================================================
   FORM / INPUT WRAPPERS
====================================================== */

#divperfil,
#divauto,
#divautorizacion,
#divmediopago,
#divmonto,
#divticket,
#divcantidad {
    width: 100% !important;
}


/* ======================================================
   BOOTSTRAP OVERRIDES
====================================================== */

.dropdown-item[data-bs-toggle="modal"] {
    cursor: pointer;
}


/* ======================================================
   TABLAS / ESTADOS
====================================================== */

.background-tabla-alerta {
    background-color: #ead7d7;
}

.background-cabecera-alerta {
    background-color: #d9bcbc;
}

.background-tabla-ok {
    background-color: #dbe3da;
}

.background-cabecera-ok {
    background-color: #d2dbd0;
}

.background-tabla-neutra {
    background-color: #e1dad6;
}

.background-cabecera-neutra {
    background-color: #d7cdc8;
}


/* ======================================================
   COLORES PERSONALIZADOS
====================================================== */

.bg-blue {
    background-color: #4285F4 !important;
}

.text-green {
    color: #14710B;
}

.text-red {
    color: #A61526;
}

.border-purple {
    border-color: #a33d9d !important;
}

.text-purple {
    color: #a33d9d !important;
}


/* ======================================================
   ICONOS / TEXTO
====================================================== */

.estado-icono i {
    font-size: 10px;
}

.texto-xs-movil {
    font-size: 0.75rem;
}


/* ======================================================
   PWA TOAST
====================================================== */

.pwa-toast {
    min-width: 280px;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.pwa-toast .toast-body {
    font-weight: 500;
}

.bg-overlay {
    background: rgba(6, 42, 89, 0.539) !important;
}


/* ======================================================
   DASHBOARD INSTRUCTOR
====================================================== */

#dash-inst .badge {
    font-size: 13px;
    padding: 6px 10px;
}

/* card next */

#dash-inst .card-next-time {
    font-size: 46px;
    font-weight: 700;
}

#dash-inst .card-next-day {
    font-size: 18px;
    font-weight: 700;
}

#dash-inst .card-next-date {
    font-size: 14px;
    line-height: 1.1;
}

/* siguientes */

#dash-inst .next-item {
    padding: 4px 0;
}

#dash-inst .progress-dia {
    height: 4px;
}

#dash-inst .shadow-hover:hover {
    box-shadow: 0 .4rem .8rem rgba(0, 0, 0, .08);
}

#dash-inst .dash-count {
    font-size: 18px;
    font-weight: 700;
}


/* ======================================================
   DASHBOARD INSTRUCTOR - SHORTCUTS MOBILE
====================================================== */

#dash-inst .shortcut-mini {
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#dash-inst .shortcut-mini-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dash-inst .shortcut-mini-label {
    font-size: 0.60rem;
    color: #6c757d;
    margin-top: 2px;
    text-align: center;
}

#dash-inst .shortcut-mini:active {
    transform: scale(.92);
}


/* ======================================================
   DASHBOARD ASPIRANTE
====================================================== */

.icon-circle-md {
    width: 46px;
    height: 46px;
}

.icon-circle-sm {
    width: 42px;
    height: 42px;
}

.fecha-badge {
    min-width: 55px;
}

.fs-xxs {
    font-size: .7rem;
}

.mobile-action-icon {
    width: 44px;
    height: 44px;
}

.mobile-action-col {
    width: 60px;
}


/* ======================================================
   MINI STATS CARDS
====================================================== */

.mini-stat-card .card-body {
    padding: 12px;
}

.mini-stat-card .avatar {
    width: fit-content;
    margin: 0 auto;
}

.mini-stat-card .avatar-title {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-stat-card .avatar-title i {
    font-size: 20px;
}

.mini-stat-label {
    margin-top: 10px;
    margin-bottom: 2px;
    text-align: center;
}

.mini-stat-value {
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* tarjetas compactas */

.next-item {
    padding: 6px 0;
    border-radius: 6px;
}

.next-item:hover {
    background: rgba(0, 0, 0, 0.03);
}


/* ======================================================
   PROFILE HEADER
====================================================== */

.profile-user {
    padding: 35px 0;
}

.profile-content {
    margin-top: -40px;
}


/* ======================================================
   MOBILE OPTIMIZATIONS
====================================================== */

@media (max-width:768px) {

    .estado-icono i {
        font-size: 14px !important;
    }

    .mini-stat-card .card-body {
        padding: 8px;
    }

    .mini-stat-card .avatar-title {
        width: 36px;
        height: 36px;
    }

    .mini-stat-card .avatar-title i {
        font-size: 16px;
    }

    .mini-stat-label {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.1;
    }

    .mini-stat-value {
        font-size: 16px;
    }

    .profile-user {
        padding: 25px 0;
    }

    .profile-content {
        margin-top: -35px;
    }

    .page-content {
        padding-bottom: 15px !important;
    }

}


/* ======================================================
   MOBILE EXTRA SMALL
====================================================== */

@media (max-width:575.98px) {

    .texto-xs-movil {
        font-size: 0.75rem;
    }

}


/* ======================================================
   FULLCALENDAR CUSTOM
====================================================== */

/* truncar texto de eventos en vista week */

@media (max-width:768px) {

    .fc-timeGridWeek-view .fc-event-title {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
        font-size: 6px !important;
    }

}


/* ======================================================
   FULLCALENDAR MOBILE OPTIMIZATION
====================================================== */

@media (max-width:768px) {

    .fc .fc-timegrid-slot {
        height: 25px !important;
        line-height: 25px !important;
    }

    .fc .fc-timegrid-slot-lane {
        height: 25px !important;
    }

    .fc-timegrid-event {
        padding: 0px 12px !important;
        font-size: 11px !important;
    }

}

/* ======================================================
   FULLCALENDAR AGENDA INSTRUCTOR - ESTILOS ESPECÍFICOS
====================================================== */

#div-comentarios {
    width: 100% !important;
}