.bg-diPa {
    background-image: url('../images/home-login.jpg');
}

.bg-TQ {
    background-image: url('../images/back.a35746e4.png');
}


.tour-tmkTour {
    left: 224px !important;
}

/* HU 403649 -- modal "Gestionar clasificación potencial": 20% más ancho que
   modal-lg (798px medidos -> ~958px) para que la tabla de exclusiones respire.
   Solo aplica desde el breakpoint lg (>=992px) -- en mobile/tablet sigue el
   ancho responsive normal de Bootstrap, sin cambios. */
@media (min-width: 992px) {
    .manage-ictq-modal-wide {
        max-width: 958px;
    }
}

@media (max-width: 600px) {
    .responsive-columns {
        flex: 100% !important;
        max-width: 100% !important;
    }
}

.card-responsive-dynamic {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
}

/* ═══════════════════════════════════════════════ */
/* TMK Script — Guión de Llamada                  */
/* ═══════════════════════════════════════════════ */

.tmk-script-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 20px;
}

.script-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0A4EB0;
    padding: 0 0.5rem;
}

.script-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.tmk-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tmk-question-item {
    display: flex;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border-left: 4px solid #0056D2;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.tmk-question-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tmk-question-item.answered {
    border-left-color: #74B842;
}

.tmk-question-item.final-question {
    border-left-color: #74B842;
    background: #f8fafc;
}

.question-number {
    background: #0056D2;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.question-number.success-badge {
    background: #74B842;
}

.question-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
    min-width: 0;
}

.question-content > p {
    font-size: 1.05rem;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

.question-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-outline-tmk {
    background: transparent;
    border: 1px solid #0056D2;
    color: #0056D2;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-tmk:hover {
    background: #0056D2;
    color: white;
}

/* Panel Survey Monkey dentro de la card */
.tmk-surveymonkey-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    width: 280px;
    flex-shrink: 0;
}

.tmk-sm-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00BF6F;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tmk-sm-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tmk-sm-question {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.3;
    margin: 0;
}

.tmk-sm-answer {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    margin: 0;
}

@media (max-width: 768px) {
    .card.tmk-question-item {
        flex-direction: column;
    }

    .tmk-surveymonkey-panel {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════ */
/* TMK Contact Panel — Panel de lista izquierdo   */
/* ═══════════════════════════════════════════════ */

.tmk-contact-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e2e8f0;
}

.tmk-contact-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tmk-contact-panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0056D2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tmk-contact-filter {
    padding: 0.5rem 1.25rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tmk-contact-pagination {
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tmk-contact-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.tmk-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.tmk-contact-item:hover {
    background: #eff6ff;
}

.tmk-contact-item:last-child {
    border-bottom: none;
}

.tmk-contact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0056D2;
    flex-shrink: 0;
}

.tmk-contact-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.tmk-contact-empty {
    padding: 2rem 1.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════ */
/* TMK Appointment Card — Citación de Reclutado   */
/* ═══════════════════════════════════════════════ */

.tmk-appointment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.tmk-appointment-datebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 8px;
    background: #0056D2;
    color: #fff;
    line-height: 1.1;
}

.tmk-appointment-month {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tmk-appointment-day {
    font-size: 1.4rem;
    font-weight: 700;
}

.tmk-appointment-info {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}

.tmk-appointment-type-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.26rem 0.65rem;
    border-radius: 999px;
}

.tmk-appointment-type-badge.virtual {
    background: #e0ecff;
    color: #0056D2;
}

.tmk-appointment-type-badge.presencial {
    background: #e3f9e5;
    color: #1e7e34;
}

.tmk-appointment-time {
    font-size: 1.05rem;
    color: #64748b;
}

/* ═══════════════════════════════════════════════ */
/* Genesys Softphone — panel flotante (iframe)     */
/* ═══════════════════════════════════════════════ */

/* .col-md-4 se estira por flexbox (align-items: stretch del .row) para igualar
   la altura de la columna del guión, pero ese estiramiento no baja solo al div
   hijo -- sin esto, #genesys-softphone-dock queda con height:auto (~600px, lo
   mismo que el panel), y el sticky del panel no tiene espacio real dentro de su
   propio contenedor para quedarse pegado al hacer scroll. */
#genesys-softphone-dock {
    height: 100%;
}

#genesys-softphone-wrapper {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 360px;
    height: 520px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    background: #fff;
    overflow: hidden;
}

#genesys-softphone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    background: #0056D2;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

#genesys-softphone-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

#genesys-softphone-toggle,
#genesys-softphone-pin {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.35rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#genesys-softphone-pin.genesys-pin-active {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

/* Modo "fijado" -- el panel deja de ser overlay flotante y ocupa el contenedor
   #genesys-softphone-dock (ver PhoneScript.razor) junto al guión de la llamada.
   position: sticky (no static) para que se mantenga visible mientras se hace
   scroll del guión -- con static, al ser la columna del guión más alta que la
   del softphone, el panel quedaba arriba de su columna y salía de pantalla al
   bajar. Sticky lo ancla al viewport mientras su columna siga en vista, sin
   volver a ser overlay flotante sobre toda la página (comportamiento anterior
   ya descartado a propósito). */
#genesys-softphone-wrapper.docked {
    position: sticky;
    top: 1rem;
    width: 100%;
    height: 600px;
    bottom: auto;
    right: auto;
    box-shadow: none;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #genesys-softphone-wrapper.docked {
        height: 480px;
    }
}

#genesys-softphone {
    flex: 1;
    width: 100%;
    border: 0;
}

#genesys-softphone-wrapper.minimized {
    height: auto;
    width: 160px;
}

#genesys-softphone-wrapper.minimized #genesys-softphone {
    display: none;
}

/* ═══════════════════════════════════════════════ */
/* TMK Profile Card — Tarjeta de Contacto         */
/* ═══════════════════════════════════════════════ */

.tmk-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
}

.tmk-profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
}

.tmk-profile-info {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-shrink: 0;
}

.tmk-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.tmk-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.tmk-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #74B842;
    border-radius: 50%;
    border: 2px solid #fff;
}

.tmk-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.tmk-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.tmk-name-link {
    color: #0056D2;
    text-decoration: none;
}

.tmk-name-link:hover {
    text-decoration: underline;
}

.tmk-call-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tmk-btn-call {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid #0056D2;
    color: #0056D2;
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
}

.tmk-action-section {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-start;
    margin-left: auto;
    flex-shrink: 0;
}

.tmk-action-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: max-content;
    align-items: stretch;
}

.btn-outline-update {
    background: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
    box-shadow: none;
    padding: calc(0.375rem - 2px) 1.25rem;
}

.btn-outline-update:hover {
    background: #6366f1;
    color: white;
}

.btn.animate-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.animate-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .tmk-profile-layout {
        flex-direction: column;
        overflow-x: visible;
    }

    .tmk-action-section {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }
}

/* ── Fix bootstrap-notify: el botón "x" (float: right) se superpone con
   mensajes largos porque el span de mensaje no reserva espacio para él ── */
[data-notify="message"] {
    display: inline-block;
    padding-right: 25px;
}

/* ── Genesys Cloud Embeddable Framework — contenedor del widget ── */
#genesys-widget-container {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 2000;
}
