﻿:root {
    --brand-blue: #0056b3;
}



.container-input {
    display: flex;
    flex-direction: column;
}

.form-response {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}




.article-modal {
    position: relative;
}

.btn-form {
    padding: 10px;
    background-color: #1975C5;
    color: white;
    border: transparent;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-form:hover {
        background-color: #1f7fd3;
    }

.lbl-form {
    font-size: 12px;
    margin-bottom: 5px;
}

span.inpt-form {
    display: flex;
    flex-direction: row;
    padding: 2px;
    font-size: 12px;
    justify-content: start;
    align-items: center;
}

.inpt-form {
    height: 35px;
    padding: 2px;
    box-sizing: border-box;
    background-color: #F0F6FB;
    border: 1px solid transparent;
    outline: none;
    width: 100%;
}

    .inpt-form:focus {
        border-bottom: 2px solid #1975C5;
    }

.inpt-form-file {
    display: none;
}

.footer-card-custom {
    display: flex;
    justify-content: center;
}

.label-file-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.container-file-input {
    display: flex;
    flex-direction: column;
    background-color: #1975C5;
    color: white;
    justify-content: center;
    align-items: center;
    height: 90px;
    width: 90px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 50px;
    box-sizing: border-box;
}

.file-selected {
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    max-width: 250px;
    text-align: center;
    font-size: 12px;
}


.validate-summary {
    box-sizing: border-box;
    padding-left: 30px;
    width: 100%;
    font-size: 12px;
}

.container-label {
    display: flex;
    flex-direction: row;
}


.annotation-alert {
    color: red;
    font-size: 11px;
    padding-left: 5px;
}



.swith {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    margin: 5px;
}

    .swith input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dddcdc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider::before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.swith input:checked + .slider {
    background-color: #4e46e5;
}

.swith input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

.swith input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.validation-msg {
    font-size: 0.7rem;
    margin-top: 4px;
    font-weight: 600;
    display: none;
}

    .validation-msg.error {
        color: #ef4444;
        display: block;
    }

/* Asitente de IA */
.containerIA {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
}

.btn-IA {
    position: absolute;
    top: -130px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #1975C5;
    color: white;
    border: solid 1px transparent;
    cursor: pointer;
    z-index: 3;
}

.title-ia {
    position: absolute;
    top: -117px;
    right: 50px;
    opacity: 0;
    font-size: 14px;
    transition: opacity .3s ease-out;
    z-index: 1;
}

.btn-IA:hover + .title-ia {
    opacity: 1;
}

.loading-form {
    position: fixed;
    top: 65px;
    left: 0;
    z-index: 100;
    border-radius: 0px 0px 5px 5px;
    height: calc( 100% - 65px);
    width: 100%;
    background-color: rgba(255, 255, 255, 0.774);
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

    .loading-form.show {
        display: flex;
    }

.input-search {
    display: flex;
    flex-direction: row;
    gap: 3px;
}

.btn-add {
    width: 40px;
    border-radius: 100%;
    border: transparent;
    cursor: pointer;
}

    .btn-add:hover {
        background-color: #f7f7f7;
    }

    .btn-add:active {
        background-color: #e0e0e0;
    }

.section-selection {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ced4da;
}

.label-selection {
    width: 150px;
    font-weight: bold;
    text-align: left;
}

.input-range {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.value-range {
    width: 30px;
    text-align: center;
    font-size: 14px;
    color: #00589C;
}

.input-range input[type="range"] {
    width: 100%;
}


.search-box {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: end;
}

.btn-search {
    width: 300px;
    height: 40px;
    padding: 3px;
    box-sizing: border-box;
    background-color: #F0F6FB;
    border: 1px solid #cccccc;
    outline: none;
}

    .btn-search:focus {
        border-bottom: 2px solid #1975C5;
    }

#file-card-xlsx {
    display: none;
}


.container-group-form {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
}

    .container-group-form .container-input.row3 {
        width: 32.5%;
    }

    .container-group-form .container-input.row2 {
        width: 49.3%;
    }

    .container-group-form .container-input.w15 {
        width: 14.5%;
    }


    .container-group-form .container-input.w75 {
        width: 84.5%;
    }

    .container-group-form .container-input.w100 {
        width: 100%;
    }

.row-input{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
}

.title-article {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #25241A;
}

    .title-article .label-title-article {
        color: #25241A;
        font-size: 14px;
    }

    .title-article hr {
        border: none;
        border-top: 1px solid #E2E2E2;
    }

.txt-tarea {
    height: 100px;
    min-height: 100px;
    max-width: 100%;
    min-width: 100%;
}

.footer-modal {
    height: auto;
    padding: 5px 20px 20px 20px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 10px;
}


.footer-card {
    display: flex;
    flex-direction: row;
    padding: 10px;
    width: 100%;
    justify-content: end;
    align-items: center;
    box-sizing: border-box;
}


.img-custom-form {
    width: 100%;
    box-sizing: border-box;
    object-fit: contain;
    height: 400px;
}

.img-custom-form-final {
    width: 100%;
    box-sizing: border-box;
    object-fit: contain;
    height: 400px;
}

.file-image-alert {
    display: none;
}

.content-empty {
    width: 100%;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    font-size: 20px;

}


/*ACTUALIZACION FORMULARIOS*/

.container-form {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.label-annotations{
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: start;
}

.title-segment-form {
}
    .title-segment-form h2 {
        font-size: 1.1rem;
        border-left: solid 4px var(--brand-blue);
        padding: 5px 0px 5px 10px
    }


    .title-segment-form .title-segment-label {
        font-size: 25px;
    }

.content-header-options {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.content-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width:100%;
}



.text-result-form {
    line-height: 1.2;
    color: #444;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-line;
    box-sizing: border-box;
}

    .text-result-form.succes-message {
        border-color: #28a745;
        background-color: #fafffa;
    }

    .text-result-form.danger-message {
        border-color: #991B1B;
        background-color: #FEE2E2;
        color: #991B1B;
    }

/* Grid de Metadatos */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: var(--gray-100);
    padding: 20px;
    border-radius: 8px;
    align-content: start;
    width: 100%;
    box-sizing: border-box;
}


/* Cada item */
.meta-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .meta-item label {
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #6c757d;
        font-weight: 600;
        margin-bottom: 2px;
        letter-spacing: 0.03em;
    }

    .meta-item span {
        font-size: 0.9rem;
        font-weight: 500;
        color: #212529;
        word-break: break-word;
    }

/* --- NUEVA SECCIÓN DE IMÁGENES --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;

}

    .image-card img {
        width: 100%;
        height: 300px;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
        box-sizing: border-box;
    }

        .image-card img:hover {
            transform: scale(1.05);
            cursor: pointer;
        }

.image-caption {
    padding: 10px;
    font-size: 0.85rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
    text-align: justify;
    line-height: 1.5;
}

.document-reference {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
}

.field-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .field-group label {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #495057;
        font-weight: 700;
        margin-top: 8px;

    }

    .field-group.response {
        padding-right: 30px;
    }

.field-group.reject {
    padding-left: 30px;
}

.section-field-row{
    display:flex;
    gap: 5px;
}

.message-response {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.message-response-client {
    display: flex;
    flex-direction: row;
    gap: 5px;
    font-size: .9rem;
}

.container-button-response{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.list-items-doc {
    width: 100%;
    box-sizing: border-box;
    color: #444;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    white-space: pre-line;
    border-left: 4px solid #FF6C37;
    font-size: .8rem;
}

.contiener-document-adjunto{
    display: none;
}

    .contiener-document-adjunto.show-doc {
        display: block;
    }


.profile-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.avatar-circle {
    width: 72px;
    height: 72px;
    background-color: #0066cc; /* Azul del icono original */
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-header h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}




@media (max-width:800px) {

    .container-group-form {
        flex-direction: column;
    }

        .container-group-form .container-input.row3 {
            width: 100%;
        }

        .container-group-form .container-input.row2 {
            width: 100%;
        }

        .container-group-form .container-input.w15 {
            width: 100%;
        }


        .container-group-form .container-input.w75 {
            width: 100%;
        }
}

