/* =============================================
   DEFAULT - Estilos Específicos
   Vistas de CSI/TurnosBundle/Resources/views/Default
   Complementa a tramite-previsional.css
   ============================================= */

/* ===================
   1. INGRESAR / CONSULTAR CUIL (cuilbeneficiario)
   =================== */
.caja-ingreso {
    width: 95%;
    max-width: 500px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.botones-accion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-moderno {
    width: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media only screen and (min-width: 600px) {
    .botones-accion {
        flex-direction: row-reverse;
        justify-content: center;
    }
    .btn-moderno {
        width: auto;
        min-width: 180px;
        padding: 0 30px;
    }
}

/* ===================
   2. LISTADO MIS TURNOS / SOLICITUDES (verTurnos)
   =================== */
.wrapper-turnos {
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
}

.titulo {
    color: #0c6ddf;
    font-weight: bold;
    margin-bottom: 25px;
}

.search-box {
    background: white;
    padding: 10px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
}
.search-box .input-field {
    margin: 0;
    width: 100%;
}

.dataTables_wrapper .dataTables_filter { display: none; }
.dataTables_wrapper .dataTables_length select {
    display: inline-block;
    width: auto;
    height: 35px;
    padding: 0 10px;
    border-radius: 6px;
}

/* Tabla Custom Cards */
.table-custom-cards {
    border-collapse: separate !important;
    border-spacing: 0 15px !important;
    width: 100% !important;
    margin-top: -10px !important;
}
.table-custom-cards thead tr { background-color: transparent !important; }
.table-custom-cards thead th {
    border: none !important;
    color: #555 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 15px !important;
    border-bottom: 2px solid #0c6ddf !important;
    text-align: left;
}
.table-custom-cards.collapsed thead th:first-child { padding-left: 45px !important; }
.table-custom-cards thead th.center-align { text-align: center !important; }

.table-custom-cards tbody tr { background-color: #fff; }
.table-custom-cards tbody tr:hover td { background-color: #fcfcfc !important; }

.table-custom-cards tbody td {
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 18px 15px !important;
    vertical-align: middle !important;
    text-align: left;
    font-size: 0.95rem;
}
.table-custom-cards tbody td.center-align { text-align: center !important; }

.table-custom-cards tbody td:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
.table-custom-cards tbody td:last-child {
    border-right: 1px solid #e0e0e0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Colores por estado */
.table-custom-cards tbody tr.fila-nuevo,
.table-custom-cards tbody tr.fila-nuevo td {
    background-color: #f1f8e9 !important;
    border-color: #c8e6c9 !important;
}

.table-custom-cards tbody tr.border-espontaneo td:first-child { border-left: 6px solid #2196f3 !important; }
.table-custom-cards tbody tr.border-virtual td:first-child { border-left: 6px solid #fbc02d !important; }
.table-custom-cards tbody tr.border-personal td:first-child { border-left: 6px solid #ff9800 !important; }

/* Botón (+) Expandir */
.table-custom-cards.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child {
    padding-left: 45px !important;
    position: relative;
}
.table-custom-cards.dataTable.dtr-inline.collapsed > tbody > tr:not(.child) > td:first-child::before {
    left: 15px !important;
    top: 28px !important;
    transform: translateY(-50%) !important;
    background-color: #26c6da !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: none !important;
    height: 20px !important;
    width: 20px !important;
    line-height: 22px !important;
}
.table-custom-cards.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child::before {
    background-color: #f44336 !important;
}

.table-custom-cards tbody tr.parent td { border-bottom: none !important; }
.table-custom-cards tbody tr.parent td:first-child { border-bottom-left-radius: 0 !important; }
.table-custom-cards tbody tr.parent td:last-child { border-bottom-right-radius: 0 !important; }

.table-custom-cards tbody tr.child > td.child {
    display: table-cell !important;
    position: relative !important;
    top: -15px !important;
    background-color: #ffffff !important;
    border-radius: 0 0 8px 8px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    border-top: 1px dashed rgba(0,0,0,0.08) !important;
    padding: 15px 25px 20px 45px !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08) !important;
    z-index: 2 !important;
}
.table-custom-cards tbody tr.fila-nuevo + tr.child > td.child {
    background-color: #f1f8e9 !important;
    border-right-color: #c8e6c9 !important;
    border-bottom-color: #c8e6c9 !important;
}
.table-custom-cards tbody tr.border-espontaneo + tr.child > td.child { border-left: 6px solid #2196f3 !important; }
.table-custom-cards tbody tr.border-virtual + tr.child > td.child { border-left: 6px solid #fbc02d !important; }
.table-custom-cards tbody tr.border-personal + tr.child > td.child { border-left: 6px solid #ff9800 !important; }

.table-custom-cards tbody tr.child ul.dtr-details {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.badge-tipo {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 6px;
    letter-spacing: 0.5px;
}
.badge-tipo i { font-size: 1rem; margin-right: 4px; }
.badge-espontaneo { background-color: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.badge-personal { background-color: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.badge-virtual { background-color: #fff9c4; color: #f57f17; border: 1px solid #fff59d; }

.contenedor-acciones {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-accion-tabla {
    margin: 0 !important;
    border-radius: 6px;
    padding: 8px 16px !important;
    font-size: 0.85rem;
    font-weight: 600;
    height: auto !important;
    line-height: 1.3 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.btn-accion-tabla:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-accion-tabla i.left {
    margin-right: 6px !important;
    font-size: 1.2rem !important;
}

/* ===================
   3. VER TICKET (verTicket)
   =================== */
.info-top-bar {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 10px;
}
.info-top-bar div {
    display: flex;
    align-items: center;
}
.info-top-bar b {
    color: #0c6ddf;
    margin-left: 5px;
}

.badge-tipo-tramite {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    text-transform: uppercase;
}

.panel-fecha-hora {
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}
.titulo-panel {
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.4rem;
    opacity: 0.95;
}

.caja-resaltada {
    background: #ffffff;
    color: #111111;
    padding: 15px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.caja-resaltada i {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #0c6ddf; 
}
.caja-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666666; 
    margin-bottom: 2px;
    font-weight: bold;
}
.caja-valor {
    font-size: 1.6rem;
    font-weight: 900; 
    line-height: 1.2;
    color: #000000; 
}

.contenedor-qr-datos {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
}
.caja-qr {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
}
.caja-datos {
    flex: 1;
    min-width: 0;
}

/* ===================
   4. CANCELACIÓN & TOKEN (token, preguntarCancelarTurno)
   =================== */
.token-wrapper,
.cancelar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.token-card,
.cancelar-card {
    background: white;
    border-radius: 12px;
    padding: 35px 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border-top: 6px solid #fb8c00;
}

.token-card {
    border-top-color: #e53935;
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.15);
}
.cancelar-card {
    box-shadow: 0 8px 25px rgba(251, 140, 0, 0.15);
}

.token-icon,
.cancelar-icon {
    font-size: 4.5rem;
    margin-bottom: 10px;
}
.token-icon { color: #e53935; }
.cancelar-icon { color: #fb8c00; }

.token-titulo,
.cancelar-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.token-texto,
.cancelar-texto {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-codigo-container {
    margin: 0 auto 30px auto;
    max-width: 250px;
}
.input-codigo-container input {
    text-align: center !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
    letter-spacing: 3px;
    color: #d32f2f !important;
    border-bottom: 2px solid #9e9e9e !important;
    transition: border-color 0.3s;
}
.input-codigo-container input:focus {
    border-bottom: 2px solid #e53935 !important;
    box-shadow: 0 1px 0 0 #e53935 !important;
}

#error-validacion {
    display: none; 
    color: #e53935; 
    font-size: 0.9rem; 
    font-weight: 600; 
    margin-top: 8px; 
    align-items: center; 
    justify-content: center;
    animation: fadeInAnim 0.3s ease-out;
}

.modal-confirmacion {
    border-radius: 12px !important;
    max-width: 450px !important;
    width: 90% !important;
    text-align: center;
    height: auto !important;
    max-height: 85% !important;
    overflow-y: auto !important;
}
.modal-confirmacion .modal-content {
    padding: 35px 25px 35px 25px !important;
}
.modal-botones {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
.btn-modal {
    font-weight: bold;
    border-radius: 6px;
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.ticket-reference-card {
    background: transparent;
    padding: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto 50px auto;
    border: none;
}
.ticket-reference-header {
    text-align: center;
    color: #78909c;
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================
   5. EMAIL CONFIRMACIÓN (emailConfirmacion)
   =================== */
.confirmacion-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 0 15px;
}

.confirmacion-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    text-align: center;
    border-top: 6px solid #26c6da;
    transition: all 0.3s ease;
}
.confirmacion-card.border-success {
    border-top-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.confirmacion-icon {
    font-size: 4.5rem;
    color: #26c6da;
    margin-bottom: 15px;
}
.confirmacion-icon.icon-success {
    color: #4caf50;
}

.confirmacion-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.confirmacion-texto {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-destacado {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
    border: 1px solid #bbdefb;
    word-break: break-all;
}

/* ===================
   6. CONFIGURACIÓN (configuracion)
   =================== */
.tabs .tab a {
    color: white;
}
.tabs .tab a:hover,
.tabs .tab a.active {
    background-color: transparent;
    color: white;
    -webkit-text-stroke: 1px black;
}

/* ===================
   7. RESPONSIVE BREAKPOINTS
   =================== */
@media (max-width: 600px) {
    .table-custom-cards tbody tr.child ul.dtr-details li {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }
    .table-custom-cards tbody tr.child span.dtr-title {
        width: 100%;
        margin-bottom: 4px;
    }
    .contenedor-acciones {
        flex-direction: column;
        align-items: flex-end;
    }
    .btn-accion-tabla {
        width: 100%;
        max-width: 250px;
    }
    .caja-qr {
        flex: 0 0 110px; 
        padding: 5px;
    }
    .modal-botones {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .btn-modal {
        width: 100%;
    }
}

/* ===================
   8. DASHBOARD Y LOGIN INTERNO (login.html.twig)
   =================== */
.dashboard-container {
    margin-top: 15px;
}
.reporte-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 15px;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.reporte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    border-color: #00bcd4;
}
.reporte-card i.icono-principal {
    font-size: 3.5rem;
    margin-bottom: 15px;
}
.reporte-card .titulo-reporte {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.2;
}
.reporte-card .desc-reporte {
    font-size: 0.85rem;
    color: #757575;
    line-height: 1.3;
}
.enlace-tarjeta {
    display: block;
    color: inherit;
    height: 100%;
}
.enlace-tarjeta:hover {
    color: inherit;
}

