﻿/* #region Ingresa*/

@media (max-width: 768px) {

    .hide-on-mobile {
        display: none !important;
    }

    #gvTicket thead {
        display: none;
    }

    #gvTicket, #gvTicket tbody, #gvTicket tr, #gvTicket td {
        display: block;
        width: 100%;
    }

        #gvTicket tr {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 10px;
        }

        #gvTicket td {
            text-align: right;
            padding-left: 20%;
            position: relative;
            border: none;
            margin-bottom: 5px;
        }

            #gvTicket td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: calc(50% - 20px);
                text-align: left;
                font-weight: bold;
                white-space: nowrap;
            }

        #gvTicket tr:first-child {
            display: none;
        }

        #gvTicket tr[style*="background-color"] {
            display: block;
        }

}

.calificacion-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .calificacion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.calificacion-grid input[type="radio"] {
    display: none;
}

.calificacion-grid label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

    .calificacion-grid label:hover {
        border-color: #007bff;
        transform: scale(1.05);
    }

.calificacion-grid input[type="radio"]:checked + label {
    border-color: #28a745;
    background-color: #e9f5ec;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.calificacion-grid .imgCalificacion {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}



/*#endregion*/

/*#region Registro Prospecto*/

#formRegistro .form-control {
    border: 0 !important;
    border-radius: .375rem !important;
    box-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02) !important;
}

    #formRegistro .form-control:focus {
        border: 0 !important;
        box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08) !important;
    }

#formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 {
    margin-top: 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

    #formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 > .col-6:first-child {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }

    #formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 > .col-6:last-child {
        display: none !important;
    }

@media (max-width: 858.98px) {

    #formRegistro .topCardBody {
        padding-bottom: 0 !important;
    }

        #formRegistro .topCardBody > .row {
            justify-content: center !important;
        }

            #formRegistro .topCardBody > .row > .col-lg-8 {
                margin-left: auto !important;
                margin-right: auto !important;
            }

    #formRegistro .card-body {
        padding-top: 20px !important;
        padding-bottom: 18px !important;
    }

        #formRegistro .card-body:first-child h2 {
            font-size: 18px;
            margin-bottom: 0;
        }

    #formRegistro .form-group {
        margin-bottom: 15px;
    }

        #formRegistro .form-group input {
            border-radius: 20px !important;
        }

    #formRegistro #resultado {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: break-word;
    }

    #formRegistro .card > .card-body:nth-child(2) > .text-center {
        width: 100%;
        text-align: center;
    }

    #formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 {
        width: 100% !important;
        margin: 10px 0 0 !important;
    }
}

@media (max-width: 576px) {

    #formRegistro .topCardBody {
        padding-bottom: 30px !important;
    }

        #formRegistro .topCardBody > .row {
            justify-content: center !important;
        }

            #formRegistro .topCardBody > .row > .col-lg-8 {
                width: 100% !important;
                max-width: 100% !important;
            }

    #formRegistro .card-body {
        padding-top: 18px !important;
        padding-bottom: 15px !important;
    }

        #formRegistro .card-body:first-child h2 {
            font-size: 18px;
            margin-bottom: 0;
        }

    #formRegistro .card > .card-body:nth-child(2) {
        margin-top: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

        #formRegistro .card > .card-body:nth-child(2) > .row {
            margin-left: -15px;
            margin-right: -15px;
        }

            #formRegistro .card > .card-body:nth-child(2) > .row > .col-lg-12,
            #formRegistro .card > .card-body:nth-child(2) > .row > .col-lg-6 {
                flex: 0 0 100% !important;
                width: 100% !important;
                max-width: 100% !important;
                padding-left: 15px;
                padding-right: 15px;
            }

    #formRegistro .form-group {
        width: 100%;
        margin-bottom: 13px;
    }

        #formRegistro .form-group input {
            width: 100% !important;
            max-width: 100% !important;
            border-radius: 20px !important;
        }

    #formRegistro #resultado {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    #formRegistro .card > .card-body:nth-child(2) > .text-center {
        width: 100%;
        text-align: center;
    }

    #formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 {
        display: flex !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        justify-content: center !important;
    }

        #formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 > .col-6:first-child {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
            text-align: center !important;
        }

        #formRegistro .topCardBody > .row > .col-lg-8 > .row.mt-3 > .col-6:last-child {
            display: none !important;
        }
}

@media (max-width: 375px) {

    #formRegistro .topCardBody {
        padding-bottom: 30px !important;
    }
    #formRegistro .card-body {
        padding-top: 14px !important;
        padding-bottom: 12px !important;
    }

        #formRegistro .card-body:first-child h2 {
            font-size: 17px;
        }

    #formRegistro .card > .card-body:nth-child(2) {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #formRegistro .form-group {
        margin-bottom: 10px;
    }

    #formRegistro .form-control {
        font-size: 13px;
    }

    #formRegistro .form-group input {
        border-radius: 20px !important;
    }
}

/*#endregion*/


/*#region Validar Cliente*/

#fIngresar:has(#rfcRegistro) .topCardBody > .row {
    justify-content: center;
}

    #fIngresar:has(#rfcRegistro) .topCardBody > .row > .col-lg-5 {
        margin-left: auto;
        margin-right: auto;
    }

#fIngresar:has(#rfcRegistro) #resultado {
    width: 100%;
    white-space: normal;
}

#fIngresar:has(#rfcRegistro) #rblCorreos,
#fIngresar:has(#rfcRegistro) #rblTelefonosObtenidos {
    width: 100%;
}

@media (max-width: 858.98px) {

    #fIngresar:has(#rfcRegistro) .topCardBody {
        padding-bottom: 0 !important;
    }

        #fIngresar:has(#rfcRegistro) .topCardBody > .row {
            justify-content: center !important;
        }

            #fIngresar:has(#rfcRegistro) .topCardBody > .row > .col-lg-5 {
                margin-left: auto !important;
                margin-right: auto !important;
            }

    #fIngresar:has(#rfcRegistro) .card.bg-secondary {
        min-height: 230px !important;
    }

    #fIngresar:has(#rfcRegistro) .card-body {
        min-height: 230px !important;
        padding-top: 20px !important;
        padding-bottom: 30px !important;
    }

    #fIngresar:has(#rfcRegistro) #rfcRegistro h2 {
        margin-bottom: 0;
    }

    #fIngresar:has(#rfcRegistro) #rfcRegistro .text-muted.mb-4 {
        margin-bottom: 16px !important;
    }

    #fIngresar:has(#rfcRegistro) .form-group {
        margin-bottom: 15px;
    }

    #fIngresar:has(#rfcRegistro) .input-group-alternative {
        width: 100%;
        border-radius: 20px !important;
    }

    #fIngresar:has(#rfcRegistro) .input-group-prepend {
        display: flex;
        border-radius: 20px 0 0 20px !important;
    }

        #fIngresar:has(#rfcRegistro) .input-group-prepend .input-group-text {
            border-radius: 20px !important;
        }

    #fIngresar:has(#rfcRegistro) .input-group-alternative .form-control {
        min-width: 0;
        border-radius: 20px !important;
    }

    #fIngresar:has(#rfcRegistro) #resultado {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }

    #fIngresar:has(#rfcRegistro) #listadoCorreos,
    #fIngresar:has(#rfcRegistro) #dvClaseTelefonoWhatsApp {
        width: 100%;
        max-width: 100%;
    }

    #fIngresar:has(#rfcRegistro) #rblCorreos,
    #fIngresar:has(#rfcRegistro) #rblTelefonosObtenidos {
        width: 100%;
        max-width: 100%;
    }

        #fIngresar:has(#rfcRegistro) #rblCorreos tbody,
        #fIngresar:has(#rfcRegistro) #rblTelefonosObtenidos tbody,
        #fIngresar:has(#rfcRegistro) #rblCorreos tr,
        #fIngresar:has(#rfcRegistro) #rblTelefonosObtenidos tr,
        #fIngresar:has(#rfcRegistro) #rblCorreos td,
        #fIngresar:has(#rfcRegistro) #rblTelefonosObtenidos td {
            width: 100%;
            max-width: 100%;
        }

    #fIngresar:has(#rfcRegistro) #dBtnValidar,
    #fIngresar:has(#rfcRegistro) #listadoCorreos > .text-center {
        width: 100%;
        text-align: center;
    }

    #fIngresar:has(#rfcRegistro) .recupera {
        width: 100%;
        margin-top: 12px !important;
    }
}

@media (max-width: 576px) {

    #fIngresar:has(#rfcRegistro) .topCardBody {
        padding-bottom: 0 !important;
    }

    #fIngresar:has(#rfcRegistro) .card.bg-secondary {
        min-height: 240px !important;
    }

    #fIngresar:has(#rfcRegistro) .card-body {
        min-height: 240px !important;
        padding-top: 18px !important;
        padding-bottom: 35px !important;
    }

    #fIngresar:has(#rfcRegistro) #rfcRegistro h2 {
        margin-bottom: 0;
    }

    #fIngresar:has(#rfcRegistro) #rfcRegistro .text-muted.mb-4 {
        margin-bottom: 16px !important;
    }

    #fIngresar:has(#rfcRegistro) .form-group {
        margin-bottom: 13px;
    }

    #fIngresar:has(#rfcRegistro) .input-group-alternative {
        width: 100% !important;
        border-radius: 20px !important;
    }

    #fIngresar:has(#rfcRegistro) .input-group-prepend {
        display: flex !important;
        border-radius: 20px 0 0 20px !important;
    }

        #fIngresar:has(#rfcRegistro) .input-group-prepend .input-group-text {
            border-radius: 20px !important;
        }

    #fIngresar:has(#rfcRegistro) .input-group-alternative .form-control {
        width: 1% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        border-radius: 20px !important;
    }

    #fIngresar:has(#rfcRegistro) #resultado {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
    }

    #fIngresar:has(#rfcRegistro) #listadoCorreos,
    #fIngresar:has(#rfcRegistro) #dvClaseTelefonoWhatsApp {
        width: 100% !important;
        max-width: 100% !important;
    }

        #fIngresar:has(#rfcRegistro) #listadoCorreos .text-muted.mb-4 {
            margin-bottom: 16px !important;
        }

        #fIngresar:has(#rfcRegistro) #listadoCorreos .row {
            margin-left: -15px;
            margin-right: -15px;
        }

        #fIngresar:has(#rfcRegistro) #listadoCorreos .col-lg-12 {
            width: 100%;
            max-width: 100%;
        }

        #fIngresar:has(#rfcRegistro) #dBtnValidar,
        #fIngresar:has(#rfcRegistro) #listadoCorreos > .text-center {
            width: 100%;
            text-align: center;
        }

    #fIngresar:has(#rfcRegistro) .recupera {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        margin-top: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: flex-start !important;
    }

        #fIngresar:has(#rfcRegistro) .recupera > .col-4 {
            flex: 0 0 40% !important;
            width: 40% !important;
            max-width: 40% !important;
            padding-left: 0 !important;
            padding-right: 5px !important;
            text-align: left !important;
        }

        #fIngresar:has(#rfcRegistro) .recupera > .col-8 {
            flex: 0 0 60% !important;
            width: 60% !important;
            max-width: 60% !important;
            padding-left: 5px !important;
            padding-right: 0 !important;
            text-align: right !important;
        }

        #fIngresar:has(#rfcRegistro) .recupera a {
            display: block !important;
            width: 100% !important;
            white-space: normal !important;
        }

        #fIngresar:has(#rfcRegistro) .recupera small {
            line-height: 1.35;
        }
}

@media (max-width: 375px) {

    #fIngresar:has(#rfcRegistro) .card.bg-secondary {
        min-height: 235px !important;
    }

    #fIngresar:has(#rfcRegistro) .card-body {
        min-height: 235px !important;
        padding-top: 14px !important;
        padding-bottom: 32px !important;
    }

    #fIngresar:has(#rfcRegistro) #rfcRegistro h2 {
        font-size: 20px;
    }

    #fIngresar:has(#rfcRegistro) #rfcRegistro .text-muted.mb-4 {
        margin-bottom: 12px !important;
    }

    #fIngresar:has(#rfcRegistro) .form-group {
        margin-bottom: 10px;
    }

    #fIngresar:has(#rfcRegistro) .form-control {
        font-size: 13px;
    }

    #fIngresar:has(#rfcRegistro) .input-group-alternative,
    #fIngresar:has(#rfcRegistro) .input-group-prepend,
    #fIngresar:has(#rfcRegistro) .input-group-prepend .input-group-text,
    #fIngresar:has(#rfcRegistro) .input-group-alternative .form-control {
        border-radius: 20px !important;
    }

    #fIngresar:has(#rfcRegistro) .recupera {
        margin-top: 10px !important;
    }

        #fIngresar:has(#rfcRegistro) .recupera > .col-4 {
            flex: 0 0 38% !important;
            width: 38% !important;
            max-width: 38% !important;
        }

        #fIngresar:has(#rfcRegistro) .recupera > .col-8 {
            flex: 0 0 62% !important;
            width: 62% !important;
            max-width: 62% !important;
        }
}

/*#endregion*/



