/*BARA DE PROGRESO*/

.barra-progreso{
    width: 100%;
    height: 15px;
    margin: 10px 0;
    background: linear-gradient(
        90deg,
        #1f4e8c 0%,
        #1fa0d8 100%
    );
}


/*BOTON DE GENERAR SALIDA*/
.btn-generar-salida{
    background-color: #3bae2a !important;
    border: 2px solid #3bae2a !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all .2s ease;
    box-shadow: none !important;
}
.btn-actualizar{
    background-color: #3c96ca !important;
    border: 2px solid #3c96ca !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all .2s ease;
    box-shadow: none !important;
}

.btn-actualizar:hover{
    background-color: #237cb2 !important;
    border-color: #237cb2 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-actualizar:focus,
.btn-actualizar:active{
    background-color: #237cb2 !important;
    border-color: #237cb2 !important;
    box-shadow: 0 0 0 0.2rem rgba(60,150,202,.25) !important;
}


/*BOTONES DE LA TABLA*/
.btn-nav-custom{
    background: #ffffff;
    color: #154289;
    border: 2px solid #154289;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    box-shadow: none !important;
}

.btn-nav-custom.active{
    background: #154289;
    color: #fff;
}

.btn-nav-custom:hover{
    background: #3c96ca;
    border-color: #3c96ca;
    color: #fff;
}

/*MODIFICACIONES DE LAS TABLAS*/
.thead-perso{
       background: linear-gradient(
        90deg,
        #1f4e8c 0%,
        #1fa0d8 100%
    );
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    vertical-align: middle;
}

table.dataTable tbody.tbodyperso tr{
    transition: all .2s ease;
}

table.dataTable tbody.tbodyperso td{
    color: #34495e !important;
    font-size: 14px;
    vertical-align: middle;
    border-color: #eef2f7 !important;
    padding: 12px !important;
}

table.dataTable tbody.tbodyperso tr:hover{
    background: rgba(31,160,216,.05) !important;
}

table.dataTable tbody.tbodyperso tr:nth-child(odd){
    background: #fafcff !important;
}

.badge-pendiente,
.badge-aprobado,
.badge-danger,
.badge-devuelto,
.badge-salio{
    color:#fff;
    border-radius:30px;
    padding:6px 14px;
    font-size:12px;
    font-weight:600;
    border:none;
    display:inline-block;
}

.badge-pendiente{
    background: linear-gradient(
        135deg,
        #3c96ca,
        #237cb2
    );
    box-shadow: 0 2px 6px rgba(35,124,178,.25);
}
.badge-danger{
  
    box-shadow: 0 2px 6px rgba(35,124,178,.25);

}
.badge-devuelto{
    background: linear-gradient(
        135deg,
        #f39c12,
        #d68910
    );
    
    box-shadow:0 2px 6px rgba(243,156,18,.25);
}
.badge-aprobado{
    background: linear-gradient(
        135deg,
        #4ac43a,
        #3bae2a
    );
    
    box-shadow: 0 2px 6px rgba(59,174,42,.25);
}
.badge-salio{
    background: linear-gradient(
        135deg,
        #154289,
        #0e2f63
    );
    
    box-shadow:0 2px 6px rgba(21,66,137,.25);
}



.btn-editar{
    background: #1fa0d8;
    border: 1px solid #1fa0d8;
    color: #fff;
    border-radius: 8px;
    transition: .2s;
}

.btn-editar:hover{
    background: #1f4e8c;
    border-color: #1f4e8c;
    color: #fff;
}

.btn-ver{
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #eef5fb;
    color: #154289;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s;
}

.btn-ver i{
    font-size: 14px; 
}

.btn-ver:hover{
    background: #dcecf8;
    color: #0069a7;
}
/*-----------------------------*/
/*-----------------------------*/
/*----------MODAL DE SOLICITUDES DE DETALLE------------*/
/*-----------------------------*/
/* --- VARIABLES DE COLOR CORPORATIVAS --- */
:root {
    --color-primary: #154289;    /* Azul Oscuro Principal */
    --color-secondary: #0069a7;  /* Azul Corporativo Medio */
    --color-accent: #3c96ca;     /* Azul Claro / Enfoques */
    --color-success: #3bae2a;    /* Verde Oficial */
    --color-success-hover: #2f9421;
    --color-danger: #dc3545;
    --color-bg-light: #f8fafc;   /* Gris moderno azulado */
    --color-text-dark: #1e293b;  /* Slate oscuro para legibilidad */
    --color-text-muted: #64748b;
}

/* --- MODAL PRINCIPAL --- */
.modal-solicitud .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
    overflow: hidden;
}

/* HEADER ESTILIZADO */
.modal-solicitud .modal-header {
    background-color:rgb(0, 105, 167);
    color: #fff;
    border-bottom: none;
    padding: 1.25rem 1.75rem;
}

.modal-solicitud .modal-title {
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    color:#ffff;
}

.modal-solicitud .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    transition: opacity 0.2s ease;
    font-size: 1.75rem;
    line-height: 1;
}
.modal-solicitud .close:hover {
    opacity: 1;
}

/* BODY */
.modal-solicitud .modal-body {
    padding: 2rem 1.75rem;
    color: var(--color-text-dark);
}

/* --- CABECERA DE DATOS (GRID DE TARJETAS INFOMATIVAS) --- */
.info-solicitud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-info-item {
    background: var(--color-bg-light);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--color-secondary);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-info-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.card-info-item span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    word-break: break-word;
}

/* --- SECCIONES Y SUBTÍTULOS --- */
.titulo-seccion {
    background: rgba(21, 66, 137, 0.06);
    color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 4px solid var(--color-accent);
    display: flex;
    align-items: center;
}

hr {
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

/* --- TABLAS MODERNAS --- */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.table-modern thead {
    background: var(--color-secondary);
    color: #ffffff;
}

.table-modern th {
    font-weight: 500;
    padding: 10px 14px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
}

.table-modern td {
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    background-color: #fff;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover td {
    background-color: rgba(60, 150, 202, 0.04);
}

/* --- BADGES (ETIQUETAS) --- */
.badge-custom {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
}

.badge-oea {
    background-color: rgba(59, 174, 42, 0.15);
    color: var(--color-success);
}

.badge-nooea {
    background-color: rgba(220, 53, 69, 0.15);
    color: var(--color-danger);
}

/* --- BOTONES --- */
.btn-descargar {
    background: var(--color-success);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-descargar:hover {
    background: var(--color-success-hover);
    color: white;
    transform: translateY(-1px);
}

.sin-adjuntos {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
    background: var(--color-bg-light);
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}


/*SPAN DEL MODAL DETALLE DE LA SOLICITUD CREADA POR EL USUARIO OPERADOR*/
/* Base común para las etiquetas rectangulares */
span.badge-pendiente-rect,
span.badge-aprobado-rect,
span.badge-danger-rect,
span.badge-devuelto-rect,
span.badge-salio-rect,
span.badge-desconocido-rect {
    color: #fff; /* Ahora sí entra limpio sin !important */
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    border: none;
}


.badge-pendiente-rect {
    background: linear-gradient(135deg, #3c96ca, #237cb2);
    box-shadow: 0 2px 4px rgba(35, 124, 178, 0.2);
}

.badge-aprobado-rect {
    background: linear-gradient(135deg, #4ac43a, #3bae2a);
    box-shadow: 0 2px 4px rgba(59, 174, 42, 0.2);
}

.badge-danger-rect {
    background: linear-gradient(135deg, #ec4a4a, #c0392b);
    box-shadow: 0 2px 4px rgba(192, 57, 43, 0.2);
}

.badge-devuelto-rect {
    background: linear-gradient(135deg, #f39c12, #d68910);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.2);
}

.badge-salio-rect {
    background: linear-gradient(135deg, #154289, #0e2f63);
    box-shadow: 0 2px 4px rgba(21, 66, 137, 0.2);
}

.badge-desconocido-rect {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    box-shadow: 0 2px 4px rgba(127, 140, 141, 0.2);
}
/*--------------------------------*/
/*--------------------------------*/
/*--------------------------------*/
/*-----------------SEGUNDA VISTA COORDINADOR---------------*/

/* --- Personalización del Contenedor del Acordeón --- */
#accordionAyuda .accordion-item {
    border: none;
    border-radius: 12px !important; /* Bordes más suaves */
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(21, 66, 137, 0.08) !important; /* Sombra sutil usando tu azul oscuro */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover en la tarjeta para dar dinamismo */
#accordionAyuda .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 66, 137, 0.12) !important;
}

/* --- Botón del Acordeón (Encabezado) --- */
#accordionAyuda .accordion-button {
    background-color: #ffffff;
    color: #154289; /* Tu azul principal */
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 1.25rem !important;
    border: none;
    transition: all 0.3s ease;
}

/* Icono FontAwesome que pusiste al lado del texto */
#accordionAyuda .accordion-button i {
    color: #3c96ca; /* Azul claro para el ícono */
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* --- Estado Abierto / Activo --- */
#accordionAyuda .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #154289 0%, #0069a7 100%); /* Degradado con tus dos azules */
    color: #ffffff;
    box-shadow: none;
}

/* Cambiar el color del ícono a verde cuando esté abierto */
#accordionAyuda .accordion-button:not(.collapsed) i {
    color: #3bae2a; /* Tu verde brillante */
    transform: scale(1.1);
}


#accordionAyuda .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23154289'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease, filter 0.3s ease;
}


#accordionAyuda .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


#accordionAyuda .accordion-body {
    background-color: #f8fbc010; /* Un fondo sutilmente gris/azul claro si lo deseas, o déjalo blanco */
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 2px solid #3c96ca; /* Línea divisoria superior con tu azul medio */
    padding: 1.25rem !important;
}
.persotabs{
    
    padding: 8px;
    border-radius: 12px;
    border: none;
}

.persotabs .nav-link{
    border: none !important;
    color: #154289;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 18px;
    margin-right: 0.5rem;
}

.persotabs .nav-link.active{
    background: linear-gradient(
        135deg,
        #154289,
        #0069a7
    );
    color: white !important;
}

.nav-tabs {
    border-bottom: 0!important;
}

/*image preview*/
#previewAdjunto{
    display:none;
    position:fixed;
    width:450px;
    height:350px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 35px rgba(0,0,0,.25);
    overflow:hidden;
    z-index:999999999;
    pointer-events:none;
    border:1px solid #e9ecef;
}

#previewAdjunto img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.actions-container{
    display:flex;
    gap:16px;
}
/* Botones */
.btn-action{
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    transition: all .25s ease;
    cursor: pointer;
    min-width: 140px;
}

/* Aprobar */
.btn-approve{
    background: linear-gradient(135deg, #3bae2a, #2f991f);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 174, 42, .25);
}

.btn-approve:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 174, 42, .35);
}

/* Rechazar */
.btn-reject{
    background: #fff;
    color: #154289;
    border: 2px solid #154289;
}

.btn-reject:hover{
    background: #154289;
    color: #fff;
    transform: translateY(-2px);
}

/*MODAL PARA APROBAR Y RECHAZAR*/
/* ===========================
   MODAL
=========================== */

.custom-modal {
    border: none;
    border-radius: 10px;
    padding: 0;
    width: 90%;
    max-width: 430px;
    overflow: hidden;
    background: #fff;
    color: #154289;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

/* Fondo */

.custom-modal::backdrop{
    background: rgba(21,66,137,.45);
    backdrop-filter: blur(3px);
}


/* ===========================
   HEADER
=========================== */

.custom-modal-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:16px 22px;

    background:#28a745;
}

.custom-modal-title{

    margin:0;

    font-size:20px;
    font-weight:700;
    color:#fff;

}

.custom-btn-close{

    border:none;
    background:none;

    color:#fff;

    font-size:28px;
    line-height:1;

    cursor:pointer;

    transition:.2s;
}

.custom-btn-close:hover{

    transform:scale(1.15);

}


/* ===========================
   BODY
=========================== */

.custom-modal-body{

    padding:24px;

}

.custom-modal-text{

    margin:0;

    color:#444;

    font-size:15px;
    line-height:1.6;

}

.custom-observacion{

    margin-top:20px;
    display:none;

}

.custom-modal-label{

    display:block;

    margin-bottom:8px;

    color:#6c757d;

    font-size:13px;
    font-weight:600;

}

.custom-modal-textarea{

    width:100%;

    resize:none;

    padding:10px 12px;

    border:1px solid #ced4da;
    border-radius:6px;

    outline:none;

    transition:.2s;

    font-size:14px;

}

.custom-modal-textarea:focus{

    border-color:#154289;

    box-shadow:0 0 0 3px rgba(21,66,137,.15);

}


/* ===========================
   FOOTER
=========================== */

.custom-modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:10px;

    padding:18px 22px;

    border-top:1px solid #ececec;

}


/* ===========================
   BOTONES
=========================== */

.custom-btn{

    border:none;

    border-radius:6px;

    padding:10px 18px;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.custom-btn:hover{

    transform:translateY(-1px);

}

.custom-btn-cancelar{

    background:#e9ecef;
    color:#495057;

}

.custom-btn-cancelar:hover{

    background:#d8dde2;

}

.custom-btn-confirmar{

    background:#154289;
    color:#fff;

}

.custom-btn-confirmar:hover{

    background:#0d2f63;

}


/* BASCULA */
/* Botones personalizados */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-secondary {
    background-color: #f1f3f5;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-primary {
    background-color: #0069a7; /* Tu azul principal */
    color: white;
}

.btn-primary:hover {
    background-color: #154289; /* Oscurece a tu azul marino al pasar el cursor */
}

/*BOTONES BASCULA*/
.btn-control{
    height:48px;
    border-radius:10px;
    font-weight:600;
}
#btnCapturarPeso{
    background:#154289;
    border-color:#154289;
    color:#FFF;
}

#btnCapturarPeso:hover{
    background:#10366f;
    border-color:#10366f;
    
}

#btnReanudarPeso{
    background:#3c96ca;
    border-color:#3c96ca;
    color:#FFF;
}

#btnReanudarPeso:hover{
    background:#2d86ba;
    border-color:#2d86ba;
}

.input-group-text{
    background:#EEF5FC;
    border-color:#dbe8f5;
    color:#154289;
}

.form-control{
    border-color:#dbe8f5;
    height:48px;
}

.form-control:focus{
    border-color:#3c96ca;
    box-shadow:0 0 0 .15rem rgba(60,150,202,.15);
}

/* Cuando es una Placa (6 caracteres) */
.badge-placa-simple {
    background-color: #f0f4f8; /* Un gris/azul muy limpio */
    color: #154289; /* Tu azul oscuro principal */
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid #3c96ca; /* Tu azul claro */
    letter-spacing: 1px;
    display: inline-block;
}

/* Cuando es una Cédula o ID largo */
.badge-documento-simple {
    background-color: #eef9ee; /* Un fondo verde súper sutil */
    color: #3bae2a; /* Tu verde para diferenciarlo de la placa */
    font-family: system-ui, -apple-system, sans-serif; /* Tipografía normal de sistema */
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid #3bae2a;
    display: inline-block;
}
.text-value.peso-capturado{
    background-color: #3bae2a;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 4px 10px;
    transition: all .3s ease;
}

/*SEMAFORO*/
.led{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#bdbdbd;
    transition:.3s;
    border:1px solid #777;
}

#ledRojo.led-activo{
    background:#dc3545;
    box-shadow:0 0 8px #dc3545;
}

#ledAmarillo.led-activo{
    background:#ffc107;
    box-shadow:0 0 8px #ffc107;
}

#ledVerde.led-activo{
    background:#28a745;
    box-shadow:0 0 8px #28a745;
}
#indicadorCaptura .led{
    margin: 0 10px;
}

/*BOTONES DE GESTION DE SALIDA*/
.btn-gestion{
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    color: #fff;
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.btn-gestion:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

.btn-gestion:active{
    transform: scale(.98);
}

.btn-guardar{
    background:#3c96ca;
}

.btn-guardar:hover{
    background:#0069a7;
}

.btn-salida{
    background:#3bae2a;
}

.btn-salida:hover{
    background:#2f9822;
}

.btn-devolver{
    background:#154289;
}

.btn-devolver:hover{
    background:#0f3269;
}

.btn-gestion:disabled,
.btn-gestion.disabled{
    background:#d5d9dd !important;
    color:#7a7a7a !important;
    cursor:not-allowed;
    opacity:.7;
    box-shadow:none;
}
.btn-gestion:disabled:hover{
    transform:none;
    box-shadow:none;
}
/* --- COMPONENTE DE CAPTURA COMPACTA LPR --- */

/* Ajustes generales del contenedor */
.lpr-captura-compacta {
    background-color: #ffffff;
    border-left: 4px solid #154289 !important; /* Detalle elegante con tu azul oscuro */
}

/* Etiqueta con el azul #0069a7 */
.lpr-captura-compacta .lpr-lbl-cam {
    color: #0069a7 !important;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* El input donde cae la placa destacado con tu azul principal #154289 */
.lpr-captura-compacta .lpr-input-placa {
    color: #154289 !important;
    font-size: 1rem;
    letter-spacing: 1px;
    background-color: #f8f9fa !important;
    border-color: rgba(60, 150, 202, 0.25);
}

/* Icono del carro con el azul claro #3c96ca */
.lpr-captura-compacta .placa-icono {
    border-color: rgba(60, 150, 202, 0.25);
    color: #3c96ca !important;
    margin-left:10px
}

/* Botón corporativo usando tu verde oficial #3bae2a */
.lpr-captura-compacta .lpr-btn-captura {
    background-color: #3bae2a !important;
    border-color: #3bae2a !important;
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Efecto Hover sutil para el botón */
.lpr-captura-compacta .lpr-btn-captura:hover {
    background-color: #319421 !important; /* Verde un toque más oscuro al pasar el mouse */
    border-color: #319421 !important;
    transform: translateY(-1px);
}


/* =====================================================
   WIDGET RHX
===================================================== */

.rhx-widget {
    position: fixed;
    right: 1rem;
    bottom: 150px;
    z-index: 99999;
    font-family: Arial, Helvetica, sans-serif;
}

/* Burbuja principal */

.rhx-bubble {
    min-width: 62px;
    height: 62px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        #1d4ed8,
        #2563eb
    );
    color: #ffffff;
    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rhx-bubble:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 34px rgba(37, 99, 235, 0.42),
        0 5px 12px rgba(0, 0, 0, 0.15);
}

.rhx-bubble:active {
    transform: scale(0.96);
}

.rhx-bubble svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.rhx-bubble-label {
    font-size: 14px;
    font-weight: 700;
}

/* Panel */

.rhx-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 370px;
    max-height: min(600px, calc(100vh - 130px));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.22),
        0 8px 20px rgba(15, 23, 42, 0.10);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.97);
    transform-origin: bottom right;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.rhx-panel.rhx-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Cabecera */

.rhx-header {
    padding: 17px;
    background: linear-gradient(
        135deg,
        #1e3a8a,
        #2563eb
    );
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rhx-header-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.rhx-header-text {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.rhx-header-text strong {
    font-size: 15px;
}

.rhx-header-text span {
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
}

.rhx-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.rhx-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Estado */

.rhx-status {
    display: none;
    margin: 12px 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.rhx-status.rhx-status-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.rhx-status.rhx-status-success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Lista */

.rhx-message-list {
    max-height: 410px;
    padding: 13px;
    overflow-y: auto;
    background: #f8fafc;
}

.rhx-loading,
.rhx-empty {
    padding: 28px 15px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.rhx-message-button {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
    padding: 13px 14px;
    margin-bottom: 9px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.rhx-message-button:last-child {
    margin-bottom: 0;
}

.rhx-message-button:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.10);
}

.rhx-message-button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.rhx-message-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 11px;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.rhx-message-content {
    min-width: 0;
    flex: 1;
}

.rhx-message-name {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.rhx-message-description {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.rhx-message-arrow {
    color: #94a3b8;
    font-size: 18px;
}

.rhx-message-button.rhx-sent {
    border-color: #86efac;
    background: #f0fdf4;
}

/* Pie */

.rhx-footer {
    padding: 10px 15px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.rhx-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px #dcfce7;
}

/* Notificación */

.rhx-toast {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: 320px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
    font-size: 12px;
    line-height: 1.45;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.rhx-toast.rhx-toast-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rhx-toast.rhx-toast-error {
    background: #991b1b;
}
/* =====================================================
   PERSONALIZACIÓN RHX - COLORES ZFP
===================================================== */

:root {
    --rhx-azul-oscuro: #154289;
    --rhx-azul-claro: #3c96ca;
    --rhx-verde: #3bae2a;
    --rhx-azul-medio: #0069a7;

    --rhx-fondo-claro: #f4f9fc;
    --rhx-borde: #d5e5ef;
    --rhx-texto: #17324d;
    --rhx-texto-secundario: #607d91;
}

/* Burbuja */

.rhx-bubble {
    background: linear-gradient(
        135deg,
        var(--rhx-azul-oscuro),
        var(--rhx-azul-medio)
    );

    box-shadow:
        0 12px 30px rgba(21, 66, 137, 0.32),
        0 4px 10px rgba(0, 0, 0, 0.12);
}

.rhx-bubble:hover {
    box-shadow:
        0 16px 34px rgba(0, 105, 167, 0.40),
        0 5px 12px rgba(0, 0, 0, 0.14);
}

/* Panel */

.rhx-panel {
    border-color: var(--rhx-borde);
}

/* Cabecera */

.rhx-header {
    background: linear-gradient(
        135deg,
        var(--rhx-azul-oscuro),
        var(--rhx-azul-medio)
    );
}

/* Herramientas */

.rhx-tools {
    padding: 12px 13px 10px;
    background: #ffffff;
    border-bottom: 1px solid var(--rhx-borde);
}

.rhx-search-wrapper {
    position: relative;
}

.rhx-search-wrapper svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: #7a9aad;
    transform: translateY(-50%);
    pointer-events: none;
}

.rhx-search {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 39px;
    border: 1px solid var(--rhx-borde);
    border-radius: 11px;
    outline: none;
    background: var(--rhx-fondo-claro);
    color: var(--rhx-texto);
    font-size: 12px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.rhx-search::placeholder {
    color: #8aa2b2;
}

.rhx-search:focus {
    border-color: var(--rhx-azul-claro);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(60, 150, 202, 0.16);
}

/* Contador de bloqueo */

.rhx-cooldown {
    display: none;
    margin-top: 8px;
    min-height: 16px;
    color: var(--rhx-azul-oscuro);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.rhx-cooldown.rhx-cooldown-active {
    display: block;
}

/* Lista limitada */

.rhx-message-list {
    /*
     * El panel nunca crecerá indefinidamente.
     * Después aparecerá scroll interno.
     */
    max-height: 380px;
    min-height: 100px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--rhx-fondo-claro);

    scrollbar-width: thin;
    scrollbar-color:
        var(--rhx-azul-claro)
        #e7f0f5;
}

.rhx-message-list::-webkit-scrollbar {
    width: 7px;
}

.rhx-message-list::-webkit-scrollbar-track {
    background: #e7f0f5;
    border-radius: 10px;
}

.rhx-message-list::-webkit-scrollbar-thumb {
    background: var(--rhx-azul-claro);
    border-radius: 10px;
}

/* Mensajes */

.rhx-message-button {
    border-color: var(--rhx-borde);
}

.rhx-message-button:hover:not(:disabled) {
    border-color: var(--rhx-azul-claro);

    box-shadow:
        0 6px 15px
        rgba(0, 105, 167, 0.12);
}

.rhx-message-icon {
    background: rgba(60, 150, 202, 0.14);
    color: var(--rhx-azul-medio);
}

.rhx-message-name {
    color: var(--rhx-texto);
}

.rhx-message-description {
    color: var(--rhx-texto-secundario);
}

.rhx-message-arrow {
    color: var(--rhx-azul-claro);
}

/* Bloqueo global */

.rhx-message-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.rhx-message-button.rhx-locked {
    filter: grayscale(0.25);
}

.rhx-message-button.rhx-sending {
    border-color: var(--rhx-azul-claro);
    background: #edf7fc;
}

.rhx-message-button.rhx-sent {
    border-color: var(--rhx-verde);
    background: #f1faef;
}

.rhx-message-button.rhx-sent .rhx-message-icon {
    background: rgba(59, 174, 42, 0.15);
    color: var(--rhx-verde);
}

/* Botón mostrar más */

.rhx-load-more {
    width: 100%;
    height: 40px;
    margin-top: 4px;
    border: 1px dashed var(--rhx-azul-claro);
    border-radius: 11px;
    background: #ffffff;
    color: var(--rhx-azul-oscuro);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.rhx-load-more:hover {
    border-color: var(--rhx-azul-medio);
    background: rgba(60, 150, 202, 0.09);
}

/* Reintentar */

.rhx-retry-button {
    margin-top: 12px;
    padding: 9px 15px;
    border: 0;
    border-radius: 9px;
    background: var(--rhx-azul-medio);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rhx-retry-button:hover {
    background: var(--rhx-azul-oscuro);
}

/* Estados */

.rhx-status.rhx-status-success {
    background: #f1faef;
    border-color: rgba(59, 174, 42, 0.35);
    color: #247319;
}

.rhx-status.rhx-status-error {
    background: #fff4f4;
    border-color: #f3bbbb;
    color: #9b2424;
}

/* Pie */

.rhx-footer {
    border-color: var(--rhx-borde);
    color: var(--rhx-texto-secundario);
}

.rhx-online-dot {
    background: var(--rhx-verde);
    box-shadow:
        0 0 0 3px
        rgba(59, 174, 42, 0.17);
}

/* Toast */

.rhx-toast {
    background: var(--rhx-azul-oscuro);
}

/* Cargando */

.rhx-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.rhx-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(60, 150, 202, 0.25);
    border-top-color: var(--rhx-azul-medio);
    border-radius: 50%;
    animation: rhx-spin 0.7s linear infinite;
}

.rhx-empty-icon {
    margin-bottom: 7px;
    font-size: 23px;
}

@keyframes rhx-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Móvil */

@media (max-width: 600px) {
    .rhx-widget {
        right: 14px;
        bottom: 14px;
    }

    .rhx-bubble {
        min-width: 58px;
        height: 58px;
        padding: 0;
    }

    .rhx-bubble-label {
        display: none;
    }

    .rhx-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 84px;
        width: auto;
        max-height: calc(100vh - 105px);
    }

    .rhx-message-list {
        max-height: calc(100vh - 270px);
    }

    .rhx-toast {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 86px;
        width: auto;
    }
    
}