/* Resetear estilos del modal container existente solo para custom modals */
#customModalContainer .modal-dialog {
    margin: 0 auto !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

#customModalContainer .modal-content {
    border: none !important;
    border-radius: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
    max-width: 1200px !important;
}

body .modal-body {
    padding: 0 !important;
}

body .modal {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.in {
    opacity: 0.25 !important;
}

/* Estilos de la modal personalizada */
.modal-content-custom {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 0 auto;
   
}

.modal-header-custom {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 24px;
    border-radius: 12px 12px 0 0;
    position: relative;
    flex-shrink: 0;
}

.modal-close-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close-btn:hover {
    color: #000;
}

.modal-title-main {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
    text-align: left;
}

.modal-title-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title-secondary {
    font-size: 20px;
    color: #333333;
    margin: 6px 0 -3px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.modal-title-secondary i {
    color: #333333;
    border-radius: 4px;
    margin-right: 12px;
    font-size: 16px;
}

.modal-project-title {
    font-size: 16px;
    color: #07496B;
    margin: 2px 25px 0;
    font-weight: 500;
}

.modal-body-custom {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    background: #fff;
    min-height: 0;
}

.info-alert-custom {
    background: #D9EDF7;
    border: 1px solid #D9EDF7;
    border-radius: 1px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #31708F;
    font-size: 13px;
    line-height: 1.4;
}

.section-title-custom {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title-custom:first-child {
    margin-top: 0;
}

.form-group-custom {
    margin-bottom: 16px;
}

.label-custom {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
}

.form-control-custom {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    background: transparent;
    transition: border-bottom-color 0.2s ease;
    box-sizing: border-box;
     line-height: 0px !important; /* Por defecto para Firefox */
}

/* Estilos específicos para Chrome/WebKit */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-control-custom[type="date"] {
        line-height: 10px !important;
    }
}

/* Método alternativo para Chrome usando webkit appearance */
.form-control-custom[type="date"]::-webkit-datetime-edit {
    line-height: 10px !important;
}

/* Estilos específicos para Firefox */
@-moz-document url-prefix() {
    .form-control-custom[type="date"] {
        line-height: 0px !important;
    }
}

/* Selector específico para Chrome */
@supports (-webkit-appearance: none) {
    .form-control-custom[type="date"] {
        line-height: 10px !important;
    }
}

.form-control-custom:focus {
    outline: none;
    border-bottom-color: #0066cc;
    box-shadow: none;
}

.form-control-custom::placeholder {
    color: #999;
}

.file-upload-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.file-upload-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
    gap: 12px;
}

.file-upload-icon {
    font-size: 20px;
    color: #999;
    margin-top: 8px;
    flex-shrink: 0;
}

.file-upload-text-container {
    flex: 1;
}

.file-upload-title {
    font-size: 14px;
    color: #333333;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: block;
}

.file-upload-text {
    font-size: 14px;
    color: #333;
    margin: 0;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    width: 100%;
    display: block;
    transition: border-bottom-color 0.2s ease;
}


.file-upload-button-container {
    flex-shrink: 0;
    margin-top: 8px;
}

.file-upload-btn {
    background: #0398E3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-upload-btn i {
    color: #fff !important;
}

.file-upload-btn:hover {
    background: #0398E3;
}

.modal-footer-custom {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    text-align: right;
    border-radius: 0 0 12px 12px;
    background: #fff;
    flex-shrink: 0;
}

.btn-custom {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s ease;
    font-family: Relaway, sans-serif !important;
}

.btn-cancel-custom {
    background: #FFFFFF;
    color: #0398E3;
    border: 1px solid #0398E3;
}

.btn-cancel-custom:hover {
    background: #FFFFFF;
    color: #0398E3;
}

.btn-submit-custom {
    background: #0398E3;
    color: #fff;
}

.btn-submit-custom i {
    color: #fff !important;
}

.btn-submit-custom .fa {
    margin-right: 5px;
}

.btn-submit-custom:hover {
    background: #0398E3;
}


.btn-filter-custom {
    background: #FFFFFF;
    color: #0398E3;
    border: 1px solid #0398E3 !important;
}

.btn-filter-custom i {
     background: #FFFFFF;
     color: #0398E3;
}

.btn-filter-custom:hover {
    background: #FFFFFF;
    color: #0398E3;
}


.row-custom {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.col-custom {
    padding: 0 8px;
    flex: 1;
    min-width: 200px;
}

.col-custom-half {
    padding: 0 8px;
    flex: 0 0 50%;
    min-width: 150px;
}

.col-custom-third {
    padding: 0 8px;
    flex: 0 0 33.333%;
    min-width: 120px;
}

.col-custom-quarter {
    padding: 0 8px;
    flex: 0 0 25%;
    min-width: 200px;
}

@media (max-width: 1200px) {
    .col-custom-quarter {
        flex: 0 0 50%;
        min-width: 250px;
    }
}

@media (max-width: 1024px) {
    .col-custom-quarter {
        flex: 0 0 50%;
        min-width: 200px;
    }
    
    .col-custom-third {
        flex: 0 0 50%;
    }
    
    .modal-content-custom {
        width: 98%;
        max-width: 950px;
    }
}

@media (max-width: 768px) {
    .modal-content-custom {
        width: 95%;
        max-height: 90vh;
    }
    
    .col-custom,
    .col-custom-half,
    .col-custom-third,
    .col-custom-quarter {
        flex: 0 0 100%;
        min-width: auto;
    }
    
    .modal-header-custom {
        padding: 12px 16px;
    }
    
    .modal-body-custom {
        padding: 16px;
    }
    
    .modal-footer-custom {
        padding: 12px 16px;
    }
    
    .section-title-custom {
        margin: 16px 0 8px;
    }
    
    .form-group-custom {
        margin-bottom: 12px;
    }
    
    .file-upload-section {
        margin: 12px 0;
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .file-upload-content {
        width: 100%;
    }
    
    .file-upload-button-container {
        margin-top: 0;
        align-self: flex-end;
    }
}

.inputfile {
    display: none;
}

/* Ocultar scroll de inputs number */
.hide-spinner::-webkit-outer-spin-button,
.hide-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hide-spinner[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== ESTILOS ESPECÍFICOS PARA MODAL DE VIDEO ===== */

/* Sobrescribir estilos del container para videos */
#customModalContainer .modal-dialog {
    margin: 0 auto !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 100000 !important;
    /*min-height: calc(100vh - 10vh) !important;*/
}

.modal-content-video {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    min-width: 600px;
    max-height: 85vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

.modal-body-video {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    background: #fff;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    overflow: hidden;
    min-height: 400px;
    max-width: 100%;
}

.video-container-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos responsive para la modal de video */
@media (max-width: 1024px) {
    .modal-content-video {
        width: 95%;
        max-width: 800px;
        min-width: 500px;
        max-height: 85vh;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .modal-content-video {
        width: 95%;
        max-width: 95vw;
        min-width: 400px;
        max-height: 90vh;
        min-height: 400px;
        margin: 5vh auto;
    }
    
    .modal-body-video {
        min-height: 300px;
        padding: 15px;
    }
    
    .video-container-responsive {
        min-height: 300px;
    }
    
    .modal-header-custom {
        padding: 12px 16px;
    }
    
    .modal-title-main {
        font-size: 14px;
        line-height: 1.3;
        padding-right: 30px;
    }
    
    .modal-footer-custom {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .modal-content-video {
        width: 98%;
        max-width: 98vw;
        min-width: 320px;
        max-height: 95vh;
        min-height: 350px;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .modal-body-video {
        min-height: 250px;
        padding: 10px;
    }
    
    .video-container-responsive {
        min-height: 250px;
    }
    
    .modal-header-custom {
        padding: 10px 12px;
    }
    
    .modal-title-main {
        font-size: 13px;
        line-height: 1.2;
        padding-right: 35px;
    }
    
    .modal-close-btn {
        font-size: 20px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    .modal-footer-custom {
        padding: 10px 12px;
    }
    
    .btn-custom {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Estilo específico para el botón de cerrar de la modal de video */
.modal-content-video .btn-cancel-custom {
    background: #0398E3 !important;
    color: #fff !important;
    border: 1px solid #0398E3 !important;
}

.modal-content-video .btn-cancel-custom:hover {
    background: #0099ee !important;
    color: #fff !important;
    border: 1px solid #0099ee !important;
}

/* Sobrescribir estilos del container para fotos */
#customModalContainer:has(.modal-content-photo) .modal-dialog {
    margin: 0 auto !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 100000 !important;
    min-height: 100vh !important;
}

.modal-content-photo {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    min-width: 600px;
    max-height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

.modal-content-history {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1000px;
    min-width: 800px;
    max-height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

.modal-content-all-informes {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1000px;
    min-width: 700px;
    max-height: 90vh;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: auto;
    position: relative;
    align-self: center;
}

/* Modal Resumen Cuenta */
.modal-content-resumen-cuenta {
    max-width: 95%;
    width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.contenedorResumenCuenta {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    min-height: 200px;
    max-height: calc(90vh - 120px); /* Reservar espacio para header y footer */
}

/* Estilos específicos para contenedor de informes con scroll */
.contenedorAllinformes {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    min-height: 200px;
    max-height: calc(90vh - 120px); /* Reservar espacio para header y footer */
}

/* Estilos para enlaces dentro del contenedor de informes */
.contenedorAllinformes a {
    text-decoration: none !important;
    color: #039AE5 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
}

.contenedorAllinformes a:hover {
    text-decoration: none !important;
    color: #039AE5 !important;
}

.contenedorAllinformes a:visited {
    text-decoration: none !important;
    color: #039AE5 !important;
}

.contenedorAllinformes a:focus {
    text-decoration: none !important;
    color: #039AE5 !important;
    outline: none !important;
}

.contenedorAllinformes a:active {
    text-decoration: none !important;
    color: #039AE5 !important;
}

/* Estilos para texto normal dentro del contenido expandido */
.contenedorAllinformes .panel-body {
    padding: 15px 20px 0px !important;
    background: #fff !important;
    border: none !important;
    margin-bottom: 0px !important;
    color: #333333 !important; /* Color base para texto normal */
}

.contenedorAllinformes .panel-body .flexContainer {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.contenedorAllinformes .panel-body .flexContainer:last-child {
    border-bottom: none !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow {
    flex: 1 !important;
    margin-right: 15px !important;
}

/* Títulos principales en azul */
.contenedorAllinformes .panel-body .flexContainer .flexGrow b {
    color: #039AE5 !important; /* Títulos principales en azul */
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
    display: block !important;
    margin-bottom: 5px !important;
}

/* Descripciones en gris */
.contenedorAllinformes .panel-body .flexContainer .flexGrow span {
    color: #666666 !important; /* Color gris para descripciones */
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: Relaway, sans-serif !important;
    line-height: 1.4 !important;
}

/* Enlaces de descarga en azul */
.contenedorAllinformes .panel-body .flexContainer .flexGrow a {
    color: #039AE5 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow a:hover {
    color: #0288d1 !important;
    text-decoration: none !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow a i {
    color: #039AE5 !important;
    font-size: 14px !important;
}

/* Texto de descarga en verde */
.contenedorAllinformes .panel-body .flexContainer .flexGrow.col-xs-12.col-lg-2 .informeDescarga {
    color: #02B875 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-family: Relaway, sans-serif !important;
    display: block !important;
    margin-top: 5px !important;
    align-self: end !important;
}

.contenedorInformes:nth-child(2n) {
    background-color: #FFFFFF !important;
}

/* Estilo para texto "Descargar" con clase específica - Mayor especificidad */
/*.contenedorAllinformes .panel-body .flexContainer .flexGrow .styleInformeDescargado,
.contenedorAllinformes .panel-body .flexContainer .flexGrow b.styleInformeDescargado,
.contenedorAllinformes .panel-body .flexContainer .flexGrow a b.styleInformeDescargado,
.contenedorAllinformes .flexGrow a b.styleInformeDescargado,
.contenedorAllinformes a b.styleInformeDescargado,
.contenedorAllinformes b.styleInformeDescargado {
    color: #039AE5 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
}*/

/* Estilo para texto "Descargar" con margin-right inline - Mayor especificidad */
/*.contenedorAllinformes .panel-body .flexContainer .flexGrow b[style*="margin-right"],
.contenedorAllinformes .panel-body .flexContainer .flexGrow b[style*="margin-right: 30px"],
.contenedorAllinformes .flexGrow b[style*="margin-right"],
.contenedorAllinformes b[style*="margin-right"] {
    color: #039AE5 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
}*/

/* Contenedor de descarga alineado a la izquierda y centrado */
.contenedorAllinformes .flexGrow.col-xs-12.col-lg-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
}

/* Enlaces dentro del contenedor de descarga */
.contenedorAllinformes .flexGrow.col-xs-12.col-lg-2 a {
    display: flex !important;
    align-self: end !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
}

/* Imagen de descarga */
.contenedorAllinformes .styleImgInformeDescargado {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

/* Selectores específicos para títulos de preguntas - Máxima especificidad */
/*.contenedorAllinformes h1,
.contenedorAllinformes h2,
.contenedorAllinformes h3,
.contenedorAllinformes h4,
.contenedorAllinformes h5,
.contenedorAllinformes h6 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
}*/

.contenedorAllinformes .panel-title,
.contenedorAllinformes .panel-title a,
.contenedorAllinformes .panel-heading h1,
.contenedorAllinformes .panel-heading h2,
.contenedorAllinformes .panel-heading h3,
.contenedorAllinformes .panel-heading h4,
.contenedorAllinformes .panel-heading h5,
.contenedorAllinformes .panel-heading h6 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
}

.contenedorAllinformes .panel-heading h4 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Títulos de las preguntas principales */
.contenedorAllinformes .collapsableDefault .panel-title,
.contenedorAllinformes .collapsableDefault .panel-title a,
.contenedorAllinformes .collapsableDefault .panel-heading a {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
}

.contenedorAllinformes .collapsableDefault .panel-title a:hover,
.contenedorAllinformes .collapsableDefault .panel-heading a:hover {
    color: #039AE5 !important;
    text-decoration: none !important;
}



/*.modal-content-all-informes .contenedorAllinformes a[data-toggle="collapse"],
.modal-content-all-informes .contenedorAllinformes .panel-heading a,
.modal-content-all-informes .contenedorAllinformes .panel-title,
.modal-content-all-informes .contenedorAllinformes .panel-title a,
.modal-content-all-informes .contenedorAllinformes .panel-default .panel-heading a,
.modal-content-all-informes .contenedorAllinformes [role="button"],
.modal-content-all-informes .contenedorAllinformes .collapsed,
.modal-content-all-informes .contenedorAllinformes .panel-heading {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
}*/

/* Forzar color azul en todos los textos de enlace de preguntas */
/*.modal-content-all-informes .contenedorAllinformes a:not(.btn):not([class*="style"]) {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
}*/

/* Selectores específicos basados en la estructura HTML real */
/*.contenedorAllinformes a[data-toggle="collapse"] {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
}*/

.contenedorAllinformes .panel-default .panel-heading a {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    text-decoration: none !important;
}

.contenedorAllinformes .flexGrow.col-xs-12.col-lg-6 b,
.contenedorAllinformes .flexContainer .flexGrow b {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    font-weight: 700 !important;
}

/* Títulos de preguntas en elementos b dentro de flexGrow */
.contenedorAllinformes .panel-body .flexContainer .flexGrow.col-xs-12.col-lg-6 b {
    color: #333333 !important;
}

.contenedorAllinformes .panel-body .flexContainer .flexGrow.col-xs-12.col-lg-2 b {
    color: #039AE5 !important;
}

.contenedorAllinformes .panel-body .panel-heading .panel-title h4 {
    color: #039AE5 !important;
    font-family: Relaway, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
/* Botón de descarga */
.contenedorAllinformes .panel-body .flexContainer .btn {
    background: #039AE5 !important;
    color: #fff !important;
    border: 1px solid #039AE5 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.contenedorAllinformes .panel-body .flexContainer .btn:hover {
    background: #0288d1 !important;
    border-color: #0288d1 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.contenedorAllinformes .panel-body .flexContainer .btn i {
    color: #fff !important;
    font-size: 12px !important;
}

/* Asegurar que el modal mantenga estructura flex */
.modal-content-all-informes .modal-header-custom {
    flex-shrink: 0;
}

.modal-content-all-informes .modal-footer-custom {
    flex-shrink: 0;
}

.modal-body-photo {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.photo-container-responsive {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container-responsive img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Estilos responsive para la modal de foto */
@media (max-width: 1024px) {
    .modal-content-photo {
        width: 95%;
        max-width: 800px;
        min-width: 500px;
        max-height: 85vh;
        min-height: 450px;
    }
    
    .photo-container-responsive {
        max-height: 65vh;
        min-height: 350px;
    }
    
    .photo-container-responsive img {
        max-height: 65vh;
    }
}

@media (max-width: 768px) {
    .modal-content-photo {
        width: 95%;
        max-width: 95vw;
        min-width: 400px;
        max-height: 90vh;
        min-height: 400px;
        margin: 5vh auto;
    }
    
    .modal-body-photo {
        padding: 15px;
        min-height: 300px;
    }
    
    .photo-container-responsive {
        max-height: 60vh;
        min-height: 300px;
    }
    
    .photo-container-responsive img {
        max-height: 60vh;
        border-radius: 6px;
    }
    
    .modal-header-custom {
        padding: 12px 16px;
    }
    
    .modal-title-main {
        font-size: 14px;
        line-height: 1.3;
        padding-right: 30px;
    }
    
    .modal-footer-custom {
        padding: 12px 16px;
    }
    
    /* Responsive para modal de informes */
    .modal-content-all-informes {
        width: 95%;
        min-width: 300px;
        max-height: 95vh;
    }
    
    .contenedorAllinformes {
        padding: 15px;
        max-height: calc(95vh - 100px);
    }
    
    /* Responsive para contenido expandido de informes */
    .contenedorAllinformes .panel-body .flexContainer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow {
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow b {
        color: #039AE5 !important;
        font-size: 15px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow span {
        font-size: 13px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow a {
        font-size: 15px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .btn {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }
}

@media (max-width: 480px) {
    .modal-content-photo {
        width: 98%;
        max-width: 98vw;
        min-width: 320px;
        max-height: 95vh;
        min-height: 350px;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .modal-body-photo {
        padding: 10px;
        min-height: 250px;
    }
    
    .photo-container-responsive {
        max-height: 55vh;
        min-height: 250px;
    }
    
    .photo-container-responsive img {
        max-height: 55vh;
        border-radius: 4px;
    }
    
    .modal-header-custom {
        padding: 10px 12px;
    }
    
    .modal-title-main {
        font-size: 13px;
        line-height: 1.2;
        padding-right: 35px;
    }
    
    .modal-close-btn {
        font-size: 20px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    .modal-footer-custom {
        padding: 10px 12px;
    }
    
    .btn-custom {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Responsive para modal de informes en pantallas pequeñas */
    .modal-content-all-informes {
        width: 98%;
        min-width: 280px;
        max-height: 98vh;
        margin: 1vh auto;
        border-radius: 8px;
    }
    
    .contenedorAllinformes {
        padding: 10px;
        max-height: calc(98vh - 80px);
    }
    
    /* Responsive para contenido expandido en pantallas pequeñas */
    .contenedorAllinformes .panel-body {
        padding: 10px 15px !important;
        margin-bottom: 8px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer {
        padding: 8px 0 !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow b {
        color: #039AE5 !important;
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow span {
        font-size: 12px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow a {
        font-size: 14px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

/* Estilo específico para el botón de cerrar de la modal de fotos */
.modal-content-photo .btn-cancel-custom {
    background: #0398E3 !important;
    color: #fff !important;
    border: 1px solid #0398E3 !important;
}

.modal-content-photo .btn-cancel-custom:hover {
    background: #0099ee !important;
    color: #fff !important;
    border: 1px solid #0099ee !important;
}

/* ===== ESTILOS PARA SISTEMA DE MODALES PERSONALIZADAS ===== */
/* Container principal de la modal personalizada */
#customModalContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Override completo para modal-dialog en custom container */
#customModalContainer .modal-dialog {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 95vw !important;
    height: auto !important;
    max-height: 95vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Override completo para modal-content en custom container */
#customModalContainer .modal-content {
    position: relative !important;
    border: none !important;
    border-radius: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    width: auto !important;
    max-width: 1200px !important;
    min-width: 300px !important;
    min-height: 200px !important;
}

#customModalContainer .modal-body {
    padding: 0 !important;
    min-width: 300px !important;
    min-height: 200px !important;
}

/* Forzar centrado para contenido de videos */
#customModalContainer .modal-content-video {
    position: relative !important;
    margin: 0 auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Forzar centrado para contenido de fotos */
#customModalContainer .modal-content-photo {
    position: relative !important;
    margin: 0 auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Override de cualquier estilo de Bootstrap que interfiera */
#customModalContainer.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    outline: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

#customModalContainer.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Estilos para pantalla de carga */
#customModalContainer .modal-loading {
    margin-top: 50px;
    color: white;
    text-align: center;
}

#customModalContainer .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #0398E3;
    animation: spin 1s ease-in-out infinite;
}

/* Animación de rotación para spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Override de estilos Bootstrap para evitar conflictos */
#customModalContainer.modal.fade {
    opacity: 1 !important;
}

#customModalContainer.modal.fade.show {
    opacity: 1 !important;
}

/* Estado oculto */
#customModalContainer.modal.fade:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ===== ESTILOS FINALES DE MÁXIMA PRIORIDAD ===== */
/* Estos estilos van al final para asegurar que sobrescriban cualquier conflicto */

/* Centrado absoluto del container */
div#customModalContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Centrado del dialog */
div#customModalContainer .modal-dialog {
    position: relative !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
}

/* Centrado del contenido */
div#customModalContainer .modal-content {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

/* Centrado específico para videos y fotos */
div#customModalContainer .modal-content-video,
div#customModalContainer .modal-content-photo {
    position: relative !important;
    margin: 0 auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}


 .panel
 {
    margin: 5px 20px 5px 20px !important;
    padding: 15px !important;
    gap: 23px !important;
    border: 1px solid !important;
    background: #ffffff !important;
    border-color: #b8b8b8 !important;
}

.panel-body .flexContainer .flexGrow b {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;
    color: #333333 !important;
}

.panel-body .flexContainer .flexGrow a {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: Relaway, sans-serif !important;

}

/* Estilos principales del resumen de cuenta */
.contenedorResumenCuenta {
    padding: 20px;
}

/* Sidebar derecho */
.sidebar-resumen {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* Sección saldo total */
.saldo-total-section {
    text-align: center;
    margin-bottom: 20px;
    /*padding: 15px 0;*/
}

.saldo-amount {
    font-size: 24px;
    font-weight: 700;
    color: #74B963;
    font-family: Opensans, sans-serif;
    margin-bottom: 5px;
}

.saldo-label {
    font-size: 18px;
    color: #333333;
    font-weight: 500;
    font-family: Relaway, sans-serif;
}

/* Contenido principal izquierdo */
.contenido-principal {
    padding-right: 15px;
}

/* Header del proyecto */
.proyecto-header {
    margin-bottom: 20px;
}

.proyecto-nombre {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    font-family: Relaway, sans-serif;
    margin-bottom: 5px;
}

.proyecto-nombre i {
    color: #039AE5;
    margin-right: 8px;
}

.proyecto-ubicacion {
    color: #666;
    font-size: 16px;
    font-family: Relaway, sans-serif;
}

/* Sección de filtros */
.filtros-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
}


.filtros-section .btn {
    background: #FFFFFF;
    border-color: #039AE5;
    color: #039AE5;
    font-weight: 600;
    font-family: Relaway, sans-serif;
}

.filtros-section .btn:hover {
    background: #FFFFFF;
    border-color: #039AE5;
}

/* Tabla de movimientos */
.tabla-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tabla-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    font-family: Relaway, sans-serif;
    margin-bottom: 15px;
    border-bottom: 2px solid #039AE5;
    padding-bottom: 8px;
    display: inline-block;
}

.movimientos-table {
    margin-bottom: 0;
}

.movimientos-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-family: Relaway, sans-serif;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
}

.movimientos-table td {
    padding: 10px 8px;
    font-family: Relaway, sans-serif;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.movimientos-table tbody tr:hover {
    background: #f8f9fa;
}

/* QR Download Link */
.qr-download {
    text-align: center;
    margin-top: 10px;
}

.qr-download a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2196F3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: Relaway, sans-serif;
}

.qr-download a:hover {
    background-color: #f0f8ff;
    color: #1976D2;
    text-decoration: none;
}

.qr-download a i {
    font-size: 14px;
}

/* Estilos existentes para cliente datos y QR */
.resumen-cuenta-cliente-info {
    background: #f8f9fa;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cliente-datos {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    line-height: 1.0 !important;
}

.cliente-datos h4 {
    color: #666666;
    font-size: 14px;
    font-weight: 700;
    font-family: Relaway, sans-serif;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.datos-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    margin-bottom: 8px;
    text-align: center;
}

.datos-item:last-child {
    margin-bottom: 0;
}

.dato-label {
    font-weight: normal;
    color: #666;
    font-family: Relaway, sans-serif;
    font-size: 12px;
    margin-right: 5px;
}

.dato-valor {
    font-weight: 600;
    color: #333;
    font-family: Relaway, sans-serif;
    font-size: 12px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 20px;
    margin-bottom: 20px;
}

.qr-container {
    width: 180px;
    height: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.qr-code {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

#qr-code-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-code-container canvas {
    max-width: 120px;
    max-height: 120px;
}

.qr-info {
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    font-family: Relaway, sans-serif;
}

.qr-info small {
    color: #333333;
    font-size: 12px;
    font-family: Relaway, sans-serif;
    line-height: 1.4;
    font-weight: 500;
}

.btn-descargar-qr {
    background: #039AE5;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: Relaway, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-descargar-qr:hover {
    background: #0288d1;
    color: white;
    text-decoration: none !important;
}

.btn-descargar-qr:active,
.btn-descargar-qr:focus {
    background: #0288d1;
    color: white;
    text-decoration: none !important;
    outline: none;
}

.btn-descargar-qr i {
    font-size: 12px;
    color: white;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .contenedorResumenCuenta {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
    }
    
    /* Eliminar estructura de rows y cols completamente */
    .contenedorResumenCuenta .row {
        display: contents !important;
    }
    
    .contenedorResumenCuenta .col-md-9,
    .contenedorResumenCuenta .col-md-3 {
        display: contents !important;
    }
    
    .contenedorResumenCuenta .contenido-principal {
        display: contents !important;
    }
    
    /* AHORA SÍ APLICAR ORDER A LOS ELEMENTOS DIRECTOS */
    
    /* 1. Header del proyecto PRIMERO */
    .contenedorResumenCuenta .proyecto-header {
        order: 1 !important;
        padding: 15px;
        border-radius: 8px;
        margin: 0 0 20px 0;
    }
    
    /* 2. Sidebar SEGUNDO */
    .contenedorResumenCuenta .sidebar-resumen {
        order: 2 !important;
        border-radius: 8px;
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 0 20px 0;
    }
    
    /* 3. Filtros TERCERO */
    .contenedorResumenCuenta .filtros-section {
        order: 3 !important;
        padding: 15px;
        margin: 0 0 20px 0;
        margin-bottom: 20px;
    }
    
    /* 4. Tablas de movimientos CUARTO */
    .contenedorResumenCuenta .tabla-section:not(.tabla-pagos-section) {
        order: 4 !important;
        padding: 10px;
        margin: 0 0 20px 0;
    }
    
    /* 5. Saldo pendiente QUINTO */
    .contenedorResumenCuenta .seccion-saldo-pendiente {
        order: 5 !important;
        margin: -20px 0 60px 0;
    }
    
    /* 6. Tabla de pagos SEXTO */
    .contenedorResumenCuenta .tabla-pagos-section {
        order: 6 !important;
        padding: 10px;
        /*margin: 0 0 20px 0;*/
    }
    
    /* 7. Medios de pago SÉPTIMO */
    .contenedorResumenCuenta .col-md-9:has(span.fontPortales) {
        order: 7 !important;
        display: contents !important;
    }
    
    .contenedorResumenCuenta span.fontPortales {
        order: 7 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin: 0 !important;
    }
    
    
    /* Ajustar saldo en mobile */
    .contenedorResumenCuenta .saldo-total-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contenedorResumenCuenta .saldo-amount {
        font-size: 24px !important;
        font-weight: bold;
        color: #28a745;
    }
    
    .contenedorResumenCuenta .saldo-label {
        font-size: 14px;
        color: #666;
        margin-top: 5px;
    }
    
    /* QR responsive */
    .contenedorResumenCuenta .qr-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contenedorResumenCuenta .qr-container {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .contenedorResumenCuenta .qr-container img {
        max-width: 150px;
        height: auto;
    }
    
    /* Datos del cliente responsive */
    .contenedorResumenCuenta .cliente-datos {
        width: 100%;
    }
    
    .contenedorResumenCuenta .cliente-datos h4 {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
    }
    
    .contenedorResumenCuenta .datos-item {
        display: flex;
        flex-direction: inherit;
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .contenedorResumenCuenta .datos-item:last-child {
        border-bottom: none;
    }
    
    .contenedorResumenCuenta .dato-label {
        font-size: 12px;
        color: #666;
        font-weight: 600;
        margin-bottom: 3px;
    }
    
    .contenedorResumenCuenta .dato-valor {
        font-size: 12px;
        color: #333;
        word-break: break-word;
    }
    
    /* Select de moneda responsive */
    .contenedorResumenCuenta .datos-item select {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-top: 5px;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    
    .contenedorResumenCuenta .proyecto-nombre {
        font-size: 18px !important;
        margin-bottom: 8px;
    }
    
    .contenedorResumenCuenta .proyecto-ubicacion {
        font-size: 14px;
        color: #666;
        padding-left: 15px !important;
    }
    
    .contenedorResumenCuenta .tabla-section {
        margin-bottom: 20px;
        padding: 10px;
    }
    
    .contenedorResumenCuenta .tabla-section h3 {
        font-size: 16px !important;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
    }
    
    /* ===== MEDIOS DE PAGO ===== */
    .contenedorResumenCuenta .col-md-9 span.fontPortales {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Asegurar que las tablas sean responsive */
    .contenedorResumenCuenta .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 5px !important;
    }

    
    /* Ajustar botones en mobile */
    .contenedorResumenCuenta .btn-custom {
        width: 100%;
        margin-left: 0px !important;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Ajustar inputs en filtros */
    .contenedorResumenCuenta .form-control-custom {
        font-size: 14px;
        padding: 10px 5px;
    }
    
    /* Ajustar labels */
    .contenedorResumenCuenta .label-custom {
        font-size: 12px;
        margin-bottom: 5px;
    }

      .modal-content-photo {
        width: 95%;
        max-width: 95vw;
        min-width: 400px;
        max-height: 90vh;
        min-height: 400px;
        margin: 5vh auto;
    }
    
    .modal-body-photo {
        padding: 15px;
        min-height: 300px;
    }
    
    .photo-container-responsive {
        max-height: 60vh;
        min-height: 300px;
    }
    
    .photo-container-responsive img {
        max-height: 60vh;
        border-radius: 6px;
    }
    
    .modal-title-main {
        font-size: 14px;
        line-height: 1.3;
        padding-right: 30px;
    }
    
    /* Responsive para modal de informes */
    .modal-content-all-informes {
        width: 95%;
        min-width: 300px;
        max-height: 95vh;
    }
    
    .contenedorAllinformes {
        padding: 15px;
        max-height: calc(95vh - 100px);
    }
    
    /* Responsive para contenido expandido de informes */
    .contenedorAllinformes .panel-body .flexContainer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow {
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow b {
        color: #039AE5 !important;
        font-size: 15px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow span {
        font-size: 13px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow a {
        font-size: 15px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .btn {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

     .contenedorResumenCuenta {
        padding: 10px;
    }
    
    .contenido-principal {
        padding-left: 0;
        margin-top: 20px;
    }
    
    .sidebar-resumen {
        margin-bottom: 20px;
    }
    
    .saldo-amount {
        font-size: 20px;
    }
    
    .proyecto-nombre {
        font-size: 18px;
    }
    
    .filtros-section {
        padding: 15px;
    }
    
    .tabla-section {
        padding: 15px;
    }
    
    .movimientos-table {
        font-size: 12px;
    }
    
    .movimientos-table th,
    .movimientos-table td {
        padding: 8px 4px;
    }
    
    .resumen-cuenta-cliente-info {
        padding: 15px;
        margin-top: 20px;
    }
    
    .cliente-datos {
        margin-bottom: 20px;
    }
    
    .cliente-datos h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .qr-container {
        width: 100px;
        height: 100px;
    }
    
    .qr-code,
    #qr-code-container {
        width: 80px;
        height: 80px;
    }
    
    #qr-code-container canvas {
        max-width: 80px;
        max-height: 80px;
    }
    
    .datos-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }
    
    .dato-label,
    .dato-valor {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-content-video {
        width: 98%;
        max-width: 98vw;
        min-width: 320px;
        max-height: 95vh;
        min-height: 350px;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .modal-body-video {
        min-height: 250px;
        padding: 10px;
    }
    
    .video-container-responsive {
        min-height: 250px;
    }
    
    .modal-header-custom {
        padding: 10px 12px;
    }
    
    .modal-title-main {
        font-size: 13px;
        line-height: 1.2;
        padding-right: 35px;
    }
    
    .modal-close-btn {
        font-size: 20px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    .modal-footer-custom {
        padding: 10px 12px;
    }
    
    .btn-custom {
        padding: 8px 16px;
        font-size: 13px;
    }

    .modal-content-photo {
        width: 98%;
        max-width: 98vw;
        min-width: 320px;
        max-height: 95vh;
        min-height: 350px;
        margin: 2.5vh auto;
        border-radius: 8px;
    }
    
    .modal-body-photo {
        padding: 10px;
        min-height: 250px;
    }
    
    .photo-container-responsive {
        max-height: 55vh;
        min-height: 250px;
    }
    
    .photo-container-responsive img {
        max-height: 55vh;
        border-radius: 4px;
    }
    
    .modal-title-main {
        font-size: 13px;
        line-height: 1.2;
        padding-right: 35px;
    }
    
    .modal-close-btn {
        font-size: 20px;
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .modal-content-all-informes {
        width: 98%;
        min-width: 280px;
        max-height: 98vh;
        margin: 1vh auto;
        border-radius: 8px;
    }
    
    .contenedorAllinformes {
        padding: 10px;
        max-height: calc(98vh - 80px);
    }
    
    .contenedorAllinformes .panel-body {
        padding: 10px 15px !important;
        margin-bottom: 8px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer {
        padding: 8px 0 !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow b {
        color: #039AE5 !important;
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow span {
        font-size: 12px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .flexGrow a {
        font-size: 14px !important;
    }
    
    .contenedorAllinformes .panel-body .flexContainer .btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

/* Responsive para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .resumen-cuenta-cliente-info {
        padding: 20px;
    }
    
    .qr-container {
        width: 110px;
        height: 110px;
    }
    
    .qr-code,
    #qr-code-container {
        width: 90px;
        height: 90px;
    }
    
    #qr-code-container canvas {
        max-width: 90px;
        max-height: 90px;
    }
}