﻿/* Colors */
:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --lightdanger: #dc354555;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #ebf6fe;
    --dark: #343a40;
    --lightborder: #cbcbcb;
    --darkborder: #686868;
    --original: #4099ff;
    --infoOriginal: #2ed8b6;
    --disabled: #e9ecef;
    --filterlabelcolor: #6495ED;
    --treeBranch: #f6f6f6;
}

/* General Styles */
.HideTarget {
    display: none !important;
}

.RequiredTarget {
    position: relative;
}

    .RequiredTarget::after {
        content: '*';
        color: red;
        margin-left: 5px;
        display: inline-block;
    }

button {
    outline: unset !important;
}

/* Loading View */
.loading-view {
    background: #00000050;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fast Modal */
.fast-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 5px;
    color: white;
    width: 200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 2000;
}

    .fast-modal div {
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.fast-modal-message {
    grid-column: 2/5;
}

/* Modal Total */
.modal-total-background {
    background: #000000ab;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-total-container {
    width: calc(100% - 50px);
    max-height: calc(100% - 50px);
    background: white;
    border-radius: 5px;
    display: flex;
    margin-top: 15px;
    flex-direction: column;
}

    .modal-total-container label {
        margin: 0;
        font-weight: 600;
    }

/* Modal Position */
.modal-position-background {
    background: transparent;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-position-container {
    width: 500px;
    background: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 2100;
    box-shadow: 0 0 21px 1px silver;
}

    .modal-position-container label {
        margin-bottom: unset;
    }

.modal-position-header, .modal-position-footer {
    background: var(--light);
    padding: 3px;
    font-weight: 100;
    font-size: 8px;
    position: relative;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.modal-position-body {
    padding: 15px;
    font-size: 13px;
    overflow: auto;
}

/* Modal Center */
.modal-center-background {
    background: #000000ab;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-center-container {
    width: 500px;
    max-height: calc(100% - 30px);
    background: white;
    border-radius: 5px;
    display: flex;
    margin-top: 15px;
    flex-direction: column;
}

    .modal-center-container label {
        margin: 0;
        font-weight: 600;
        width: inherit;
    }

.modal-center-header {
    background: var(--light);
    padding: 15px;
    font-weight: 100;
    font-size: 20px;
    position: relative;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.modal-center-header-close {
    width: min-content;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.modal-center-body {
    padding: 15px;
    font-size: 13px;
    overflow: auto;
}

    .modal-center-body iframe {
        border: unset;
        width: 100vw;
        height: 100vh;
    }

.modal-center-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
}

    .modal-center-footer button {
        margin: 0 10px 0 10px;
        border: unset;
        padding: 5px 10px;
        border-radius: 3px;
        color: white;
        font-size: inherit;
        cursor: pointer;
    }

.modal-center-btn-left {
    background: var(--primary);
}

.modal-center-btn-right {
    background: var(--danger);
}

/* Modal Confirm */
.modal-confirm-background {
    background: #000000ab;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-confirm-container {
    width: 500px;
    max-height: calc(100% - 30px);
    background: white;
    border-radius: 5px;
    display: flex;
    margin-top: 15px;
    flex-direction: column;
}

    .modal-confirm-container label {
        margin: 0;
        font-weight: 600;
        width: inherit;
    }

.modal-confirm-header {
    background: var(--primary);
    padding: 15px;
    font-weight: 100;
    font-size: 20px;
    position: relative;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    color: white;
}

.modal-confirm-body {
    padding: 35px;
    font-size: 18px;
    overflow: auto;
    text-align: center;
}

.modal-confirm-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
}

    .modal-confirm-footer button {
        margin: 0 10px 0 10px;
        border: unset;
        padding: 5px 10px;
        border-radius: 3px;
        color: white;
        font-size: inherit;
        cursor: pointer;
    }

.modal-confirm-btn-left {
    background: var(--primary);
}

.modal-confirm-btn-right {
    background: var(--danger);
}

/* Filter */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 25px;
    font-size: 12px;
    padding: 10px;
    background: var(--disabled);
    border: 1px solid var(--lightborder);
    border-radius: 3px;
}

.filter-group {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
}

    .filter-group label {
        color: var(--filterlabelcolor);
        font-weight: 600;
        font-size: inherit;
        margin: 0;
    }

    .filter-group input, .filter-group select {
        border: 1px solid var(--lightborder);
        border-radius: 3px;
        background: white;
        padding: 5px 10px;
        font-size: inherit;
        font-weight: 500;
        margin: 0;
    }

    .filter-group button {
        background: var(--original);
        border: unset;
        padding: 7px 10px;
        color: white;
        border-radius: 3px;
        cursor: pointer;
        margin: 0;
    }

/* Inputs, Select, FieldSets */
.general-fieldset {
    margin-top: 15px;
    border: 1px dashed var(--original);
    border-radius: 5px;
    padding: 10px;
    font-size: inherit;
}

    .general-fieldset legend {
        color: var(--original);
        width: max-content;
        font-size: inherit;
        font-weight: 600;
        border: unset;
        padding: 0 10px;
        margin: 0;
        background: white;
        border-radius: 5px;
    }

.general-field-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .general-field-group label {
        font-size: inherit;
    }

    .general-field-group input, .general-field-group select, .general-field-group textarea {
        outline: unset;
        border: 1px solid var(--lightborder);
        padding: 5px 10px;
        border-radius: 3px;
        width: 100%;
        font-weight: 600;
        font-size: inherit;
        resize: unset;
    }

        .general-field-group input:disabled, .general-field-group select:disabled, .general-field-group textarea:disabled {
            color: var(--dark);
            background: var(--disabled);
            opacity: 0.75;
        }

.general-field-group-radio {
    display: flex;
    align-items: center;
}

    .general-field-group-radio label {
        white-space: nowrap;
        font-weight: 100;
        margin: 0;
        font-size: inherit;
    }

    .general-field-group-radio input {
        margin: 0;
        outline: unset;
    }

.general-field-group-checkbox {
    flex-direction: row;
    align-items: center;
    column-gap: 15px;
}

    .general-field-group-checkbox label {
        margin: 0;
    }

    .general-field-group-checkbox input {
        width: unset;
        margin: 0;
        outline: unset;
    }

.general-file-group {
    display: flex;
    align-items: center;
}

    .general-file-group button {
        background: var(--infoOriginal);
        border: unset;
        outline: unset;
        color: white;
        padding: 5px 10px;
    }

    .general-file-group span {
        border: 1px dashed var(--infoOriginal);
        font-size: 10px;
        font-weight: 600;
        padding: 7px;
        color: var(--darkborder);
        width: 100%;
    }

    .general-file-group a {
        padding: 5px 10px;
        background: var(--info);
        color: white;
        border-radius: 3px;
        margin-left: 10px;
    }

/* DataTable */
.dataTable_Container {
}

    .dataTable_Container .dataTables_length, .dataTable_Container .dataTables_filter {
        display: none !important;
    }

    .dataTable_Container .table > thead > tr > th {
        border-top: 1px solid var(--original);
        border-bottom-color: var(--original);
        color: var(--original);
        text-align: center;
        font-size: 13px;
    }

    .dataTable_Container .dataTables_info, .dataTable_Container .dataTables_paginate ul li a {
        font-size: 12px;
    }

    .dataTable_Container .table > tbody > tr > td {
        font-size: 12px;
        vertical-align: inherit;
    }

        .dataTable_Container .table > tbody > tr > td > p {
            width: 250px;
            white-space: break-spaces;
            font-size: inherit;
        }

.dataTable_Options {
    text-align: right;
}

.dataTable_filter_input {
    display: block;
    width: 100%;
    min-width: 50px;
    font-size: 11px;
    border: unset;
    border-bottom: 1px solid var(--original);
    padding: 10px 0 2px 0;
    color: black;
    text-align: center;
}

    .dataTable_filter_input::placeholder {
        color: #d6d6d6;
    }

/* DataTable actions */
.dataTable-action-view {
    border: unset;
    color: white;
    background: var(--primary);
    border-radius: 3px;
    width: 20px;
    height: 25px;
    cursor: pointer;
    outline: unset !important;
}

/* DataTable Inputs */
.table-container .dalba-datatable-content input[type=checkbox] {
    opacity: 1 !important;
    position: inherit !important;
    width: inherit;
    height: inherit;
    vertical-align: middle;
    margin: auto;
    display: block;
}

/* Tab General */
.tab-container {
    padding: 10px;
}

.tab-header {
    margin: unset;
    display: flex;
    gap: 10px;
}

.tab-header-item {
    padding: 10px;
    background: var(--filterlabelcolor);
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    color: white;
}

.tab-body-item {
    padding: 15px;
    border: 1px solid var(--filterlabelcolor);
    border-radius: 0 5px 5px 5px;
}

.tab-header-item-selected {
    padding: 10px;
    background: var(--danger);
    border-radius: 10px 10px 0 0;
    color: white;
    margin-bottom: -1px !important;
}

/* Table General */
.table-general {
    width: 100%;
}

    .table-general th {
        border: 2px solid white;
        background: var(--filterlabelcolor);
        padding: 10px 15px;
        text-align: center;
        color: white;
    }

    .table-general td {
        padding: 10px 15px;
        border: 2px solid white;
        background: aliceblue;
    }

/* Agregar / Quitar Columnas dataTable */
.add-remove-column-datatable-box {
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px;
    background: #6c50ff;
    color: white;
    margin-bottom: -8px !important;
    border-radius: 3px;
    cursor: pointer;
    /*border-bottom: 2px solid var(--dark)*/
}

.add-remove-column-datatable-box-hide {
    background: #a3a3a3;
}

/* Auditoria Float Box */
.auditoria-float-box {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px;
    border-radius: 4px;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 1s;
    width: max-content;
    z-index: 1000;
    box-shadow: 0 0 8px 1px silver;
}

    .auditoria-float-box > div {
        width: 300px;
        margin-left: 40px;
    }

        .auditoria-float-box > div .auditoria-float-button {
            margin-bottom: 10px;
            width: auto;
            background: #ffebd1;
            border-bottom: 1px solid silver;
        }

.auditoria-float-box-span {
    cursor: pointer;
    font-size: 10px;
    color: #6e6e6e;
    font-weight: 600;
    padding: 5px 8px;
}

.auditoria-float-button {
    padding: 6px 12px 0 12px;
    border: unset;
    color: black;
    font-weight: 600;
    font-size: 10px;
    outline: unset;
    text-align: left;
    cursor: pointer;
    margin-left: 15px;
    display: none;
    background: #cae5ff;
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 5px 10px;
    width: max-content;
    border-bottom: 1px solid silver;
}

.auditoria-float-sub-button {
    display: block;
    margin-left: 60px;
    color: white;
    background: unset;
    border: unset;
    font-size: 10px;
    font-style: italic;
    display: none;
    outline: unset;
    text-align: justify;
    border-bottom: 1px solid white;
}

/* Tree Horizontal */
.tree-container {
    background: white;
    display: flex;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 15px;
    /* box-shadow: 0 0 5px 0px black; */
    border: 1px solid silver;
    overflow: auto;
    border: solid 1px #11a9cc;
    border-left: 5px solid #11a9cc;
}

.tree-default-box {
    display: block;
    margin: auto;
    padding: 10px 15px;
    background: var(--treeBranch);
    border-radius: 5px;
    color: var(--dark);
    cursor: pointer;
    font-size: 11px;
    border: 1px solid silver;
    box-shadow: 0 0 5px -2px black;
}

.tree-box-focused {
    border-left: 2px solid var(--info) !important;
    background: linear-gradient(90deg, var(--info) -371%, white 97%, var(--info) 115%) !important;
}

    .tree-box-focused::before {
        content: '';
        position: absolute;
        left: -15px;
        width: 0;
        height: 0;
        border-right: 15px solid var(--info) !important;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent
    }

.tree-familiar-box {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 10px 15px;
    border-radius: 20px;
    position: relative;
    margin-left: 14px;
}

.tree-with-children {
    border-left: 2px solid silver;
}

    .tree-with-children::before {
        content: '';
        position: absolute;
        left: -15px;
        width: 0;
        height: 0;
        border-right: 15px solid silver;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent
    }

.tree-box-group {
    display: flex;
    align-items: center;
}

    .tree-box-group::before {
        content: '';
        width: 0;
        height: 0;
        border-right: 15px solid silver;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent
    }

.tree-box-container {
    display: flex;
    padding: 10px;
    background: var(--treeBranch);
    border-radius: 15px 0;
    font-size: 10px;
    color: var(--dark);
    gap: 15px;
    border: 1px solid silver;
    box-shadow: 0 0 5px -2px black;
}

.tree-box-text-group {
    display: flex;
    justify-content: start;
    align-items: center;
}

    .tree-box-text-group p {
        margin: 0;
        font-size: 14px;
        max-width: 200px;
        min-width: 90px;
    }

.tree-box-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .tree-box-actions i {
        padding: unset;
    }

.tree-box-actions-add {
    background: var(--success);
    border: unset;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.tree-box-actions-remove {
    background: var(--danger);
    border: unset;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

/* Branch Horizontal */
.branch-container {
    background: white;
    display: flex;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 15px;
    /* box-shadow: 0 0 5px 0px black; */
    border: 1px solid silver;
    border: solid 1px #11a9cc;
    border-left: 5px solid #11a9cc;
}

.branch-default-box {
    display: block;
    margin: auto;
    padding: 10px 15px;
    background: var(--treeBranch);
    border-radius: 5px;
    color: var(--dark);
    cursor: pointer;
    font-size: 11px;
    border: 1px solid silver;
    box-shadow: 0 0 5px -2px black;
}

.branch-box-focused {
    border-left: 2px solid var(--info) !important;
    background: linear-gradient(90deg, var(--info) -371%, white 97%, var(--info) 115%) !important;
}

    .branch-box-focused::before {
        content: '';
        position: absolute;
        left: -15px;
        width: 0;
        height: 0;
        border-right: 15px solid var(--info) !important;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent
    }

.branch-familiar-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 0px 0 0px 50px;
    border-radius: 20px;
    position: relative;
    width: 100%;
}

.branch-box-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.branch-box-shadow {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    transition: all 1s;
    margin-bottom: 20px;
}

    .branch-box-shadow::before {
        content: '';
        position: absolute;
        bottom: -14px;
        left: 45px;
        width: 0;
        height: 0;
        border-top: 15px solid silver;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
    }

.branch-box-shadow-hidden {
    height: 0px;
    overflow: hidden;
    position: absolute;
    top: 0;
}

.branch-box-container {
    display: flex;
    padding: 15px 15px 15px 35px;
    background: var(--treeBranch);
    border-radius: 8px;
    font-size: 10px;
    color: var(--dark);
    gap: 15px;
    width: 100%;
    border: 1px solid silver;
    box-shadow: 0 0 5px -2px black;
    position: relative;
}

.branch-box-numeration {
    background: #929292;
    color: white;
    position: absolute;
    left: 0;
    width: 25px;
    text-align: center;
    height: 100%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    font-weight: 800;
}

.branch-box-text-group {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
}

    .branch-box-text-group p {
        margin: 0;
        font-size: 14px;
        width: 100%
    }

.branch-box-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .branch-box-actions i {
        padding: unset;
    }

.branch-box-actions-add {
    background: var(--success);
    border: unset;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.branch-box-actions-remove {
    background: var(--danger);
    border: unset;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.branch-box-actions-minimize {
    background: var(--dark);
    border: unset;
    width: 25px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

/* REGISTRO INFORME AUDITORIA */
.table-informe-auditoria {
    background: white;
    display: block;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 14px 3px silver;
}

.table-informe-auditoria-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

    .table-informe-auditoria-group label {
        font-size: 11px;
        margin-bottom: unset;
        cursor: pointer;
        white-space: nowrap;
        width: 100%;
    }

    .table-informe-auditoria-group input[type=checkbox] {
        opacity: 1;
        position: inherit;
    }

.table-informe-registro-auditoria {
    width: 100%;
}

    .table-informe-registro-auditoria table {
        width: 100% !important;
    }

    .table-informe-registro-auditoria th {
        padding: 5px;
        font-size: 12px;
    }

    .table-informe-registro-auditoria td {
        font-size: 12px;
        white-space: break-spaces;
    }

/* AUTOCOMPLETE */
.autocomplete-container {
    position: relative;
    box-shadow: 0 0 10px 0px silver;
    padding: 10px;
    border-radius: 5px;
}

.autocomplete-input-group {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.autocomplete-input-label {
    font-size: 12px;
}

.autocomplete-input {
    border: 1px solid silver;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 12px;
}

.autocomplete-list {
    display: flex;
    flex-direction: column;
    max-height: 200px;
    overflow: auto;
    position: absolute;
    width: 100%;
}

.autocomplete-label {
    background: #dedede;
    padding: 3px 10px !important;
    width: 100%;
    display: block;
    white-space: nowrap;
    margin: unset;
    font-size: 11px;
    cursor: pointer;
}

    .autocomplete-label:hover {
        background: silver;
    }

.autocomplete-result {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.autocomplete-span-group {
    display: inline-flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
    background: orange;
    padding: 4px;
    width: fit-content;
    border-radius: 4px;
}

.autocomplete-span {
    font-size: 10px;
    color: white;
}

.autocomplete-span-remove {
    color: white;
    cursor: pointer;
    background: unset;
    border: unset;
}
.select2-container{
    z-index: 3000;
}