body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow-x: hidden; /* evita scroll horizontal */
}

/* Teléfono */
.phone-mockup {
    width: 320px;
    height: 600px;
    border-radius: 32px;
    background: #111;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 5px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
}

.phone-header {
    height: 60px;
    border-radius: 24px 24px 0 0;
    background: #075e54;
    padding-top: 20px;
}

.phone-body {
    background: #e5ddd5;
    height: calc(100% - 60px);
    border-radius: 0 0 24px 24px;
    overflow-y: auto;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bubble {
    background: #ffffff;
    border-radius: 16px 16px 16px 4px;
    padding: 5px 14px 8px;
    max-width: 230px;
    font-size: 0.9rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    white-space: pre-line; 
    line-height: 1.3;
    display: inline-block;
}

/* Espacio interno dentro del wrapper de DataTables */
#tablaHistorialLinks_wrapper .row:first-child {
    padding-top: 0.25rem;
}

/* Alinear label y campo */
#tablaHistorialLinks_wrapper .dataTables_length label,
#tablaHistorialLinks_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card {
    border-radius: 18px;
}
/* Contenedor principal del input de intl-tel-input */
.iti {
    width: 100% !important;
}

/* El input interno debe ocupar todo */
.iti input, 
.iti input[type=tel], 
#phone {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Ajustes del popup de Emoji Button */
.emoji-picker {
    position: fixed !important;  
    max-width: 260px;      /* tamaño razonable tipo popup */
    width: 100%;
    box-sizing: border-box !important;
    z-index: 99999999999999 !important;  /* asegura que quede por encima de los inputs */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    margin-left: -175px;
}

