﻿

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }



    100% {
        transform: rotate(360deg);
    }
}


@keyframes menu {
    0% {
        opacity: 0;
        left: -50px;
    }



    100% {
        opacity: 1;
        left: 0px;
    }
}





html > body {
    padding-top: 80px;
}

body {
    min-height: 86vh;
    font-size: 12px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

.disabled {
    pointer-events: none;
    /* for "disabled" effect */
    opacity: 0.5;
    background: #CCC;
    display:none;
}

.enabled {
    
}

.btn {
    font-size: 1.2em;
}

.nav-link {
    font-size: 1.2em;
    position:relative;
}

.dropdown-menu {
    font-size: 1em;
    border-radius:0;
}


.form-label {
    font-weight: 600;
}


.containerScreen {
    width:96%;
    max-width:none !important
}


.mat-tree {
    font-size: 1.2em;
}

.hide, .hidden {
    display: none !important;
}

[hidden] {
    display: none !important;
}



.loadWrapper {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99999;
}



.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3d3e3f; /* gray */
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}






a, button {
    transition: all .3s ease;
}






footer {
    display: flex;
    padding: 1rem 0.5rem 0;
    background: #eee;
}

:root {
    --bs-primary-rgb: 0, 168, 227;
    --bs-light-rgb: 238, 238, 238;
}



.btn-primary,
.btn-dark:hover {
    background-color: #00a2e3;
    border-color: #00a2e3;
}

    .btn-primary:hover {
        background-color: #111;
        border-color: #111;
    }

.form-control,
.btn,
.input-group-text,
.modal-content {
    border-radius: 0;
}


.form-control {
    font-size: .9rem;
     line-height: 1.2;
}


.bi::before {
    display: inline-block;
    vertical-align: -.125em;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}


.modal-header h5:after {
    content: "";
    height: 60px;
    width: 60px;
    background: url(./images/Icons/user.svg) center no-repeat #eee;
    background-size: 25px;
    display: flex;
    border-radius: 50px;
    position: absolute;
    right: 30px;
    top: -12px;
    font-size: 1.5em;
    justify-content: center;
    align-items: center;
}


#loginModal {
    z-index: 2;
}

#loginModal:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: url(./images/background.jpg) no-repeat;
    background-size: cover;
}

    #loginModal:before {
        content: "";
        display: block;
        width: 100%;
        height: 80px;
        background: url(./images/logoComprame.svg) no-repeat 1.25rem center;
        background-size: 120px;
        background-color: #fff;
    }

a {
    cursor:pointer;
}




.dropdown-menu.show {
    animation: menu .3s linear;
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color:transparent;
}


.nav-link.text-light:before,
.dropdown-item .nav-link:before {
    content: "";
    width: 100%;
    height: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #00a2e3;
    border: 0;
    margin: 0;
    z-index: -1;
    transition: all .3s ease;
}

.nav-link.text-light:hover:before,
.nav-link.text-light[aria-expanded="true"]:before {
    height: 100%;
}


.dropdown-item .nav-link:before {
    width: 0%;
    height: 100%;
    background-color: #111;
}

.dropdown-item .nav-link:hover:before {
    width: 100%;
}



.table {
    margin: 20px 0;
    font-size:1.2em;
}


.table img {
    max-width: 200px;
}

thead, tbody, tfoot, tr, td, th {
    vertical-align: middle;
    /*border: 0;*/
    border: 1px solid #ffffff;
}

.table thead {
    background: #00a2e3;
}

.table thead th {
    background: #00a2e3;
    color: #fff;
    border-left: 1px solid;
    cursor:pointer;
}

.table thead th:first-of-type {
    border-left: 0;
}

.table tbody:not(:first-child) {
    border: 0;
    outline: none;
}

body .example-list.cdk-drop-list,
.scrollVertical{
    min-height: 200px;
    max-height: 400px;
    overflow: visible;
    overflow-x: auto;
}


.productTreeView.scrollVertical {
    max-height: 600px;
}





.productTreeView label {
    display: inline-block;
    font-size: 14px;
    width: 100%;
    text-indent: 0;
    font-weight: 600;
    padding: 5px 5px 5px 30px;
    background: #f6f6f6;
}


.productTreeView label {
    display: inline-block;
    font-size: 14px;
    width: 100%;
    text-indent: 0;
    font-weight: 600;
    padding: 5px 5px 5px 30px;
}


.productTreeView .mat-tree-node:hover label {
    background: #efefef;
}


.productTreeView .mat-mdc-icon-button {
    text-align: left;
    width: auto;
    padding: 0;
    max-width: 300px;
    text-indent: 0;
}


    .productTreeView .mat-mdc-icon-button .mat-mdc-button-touch-target {
        position: absolute;
        top: 0;
        height: 100%;
        left: 0;
        width: 100%;
        transform: none;
        border-radius:0;
    }


.productTreeView .mat-tree-node:hover {
    background:none;
}


@media (min-width: 576px) {
    .modal-dialog {
        max-width: 800px;
    }

    #loginModal.modal-dialog {
        max-width: 500px;
    }

}

.productTreeView .mat-tree-node{
    margin: 10px 0;
}

.bi {
    position: relative;
    height: 25px;
    width: 25px;
    display: inline-block;
    vertical-align: middle;
    border:0;
    background-color:transparent;
    margin:0 1px;
}


    .bi:disabled {
        pointer-events:none;
        opacity:.4;
    }



.bi-check-circle-fill {
    background: url(./images/Icons/check-circle.svg) center no-repeat;
    background-size: 90%;
    cursor: pointer;
}

.bi-eye-fill {
    background: url(./images/Icons/eye.svg) center no-repeat;
    background-size: 90%;
    cursor: pointer;
}

.bi-eye-slash-fill {
    background: url(./images/Icons/eye-slash.svg) center no-repeat;
    background-size: 90%;
    cursor: pointer;
}

.bi-pencil-fill {
    background: url(./images/Icons/edit.svg) center no-repeat;
    background-size: 90%;
}

.bi-copy {
    background: url(./images/Icons/clipboard.svg) center no-repeat;
    background-size: 90%;
}

.bi-search {
    background: url(./images/Icons/details.svg) center no-repeat;
    background-size: 90%;
}

.bi-tijeras-linprod {
    background: url(./images/Icons/scissors.svg) center no-repeat;
    background-size: 90%;
}

.bi-tijeras-marlinmod {
    background: url(./images/Icons/scissors.svg) center no-repeat;
    background-size: 90%;
}

.bi-tijeras-categoria {
    background: url(./images/Icons/scissors.svg) center no-repeat;
    background-size: 90%;
}

.bi-search-fill {
    background: url(./images/Icons/search.svg) center no-repeat;
    background-size: 90%;
}

.bi-search-fill-b {
    background: url(./images/Icons/search-b.svg) center no-repeat;
    background-size: 80%;
}

.bi-clear-fill {
    background: url(./images/Icons/x-circle-fill.svg) center no-repeat;
    background-size: 90%;
}

.bi-x-circle-fill {
    background: url(./images/Icons/circle-x.svg) center no-repeat;
    background-size: 90%;
}

.bi-x-circle-fill-b {
    background: url(./images/Icons/circle-x-b.svg) center no-repeat;
    background-size: 80%;
}

.bi-plus-circle-fill {
    background: url(./images/Icons/circle-plus.svg) center no-repeat;
    background-size: 90%;
}


.bi-cancel {
    background: url(./images/Icons/cancel.svg) center no-repeat;
    background-size: 90%;
}

.bi-important-small {
    position: relative;
    background: url(./images/Icons/important.svg) right no-repeat;
    background-size: 50%;
}

.bi:after {
    content: "";
    position: absolute;
    pointer-events: none;
    background: #fff;
    font-size: 11px;
    color:#000;
    text-transform: uppercase;
    top: 0;
    right: 50%;
    box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, .5);
    opacity: 0;
    z-index: 2;
    transition: all .3s ease;
}


.mat-expansion-panel-body .bi:after {
    right: auto;
    left: 50%;
}

    .bi:hover:after {
        right: 60%;
        opacity: 1;
    }


.mat-expansion-panel-body .bi:hover:after {
    right: auto;
    left: 60%;
}

.bi-pencil-fill:after {
    padding: 3px 3px 1px;
    content: "Editar"
}

.bi-copy:after {
    padding: 3px 3px 1px;
    content: "Copiar"
}

.bi-check-circle-fill:after {
    padding: 3px 3px 1px;
    content: "Aprobar"
}

.bi-search:after {
    padding: 3px 3px 1px;
    content: "Detalle"
}

.bi-x-circle-fill:after {
    padding: 3px 3px 1px;
    content: "Eliminar"
}

.bi-x-circle-fill-b:after {
    padding: 3px 3px 1px;
    content: "Borrar"
}

.bi-tijeras-linprod:after {
    padding: 3px 3px 1px;
    content: "Cambiar Lin/Prod";
}

.bi-tijeras-marlinmod:after {
    padding: 3px 3px 1px;
    content: "Cambiar Mar/Lin/Mod";
}

.bi-tijeras-categoria:after {
    padding: 3px 3px 1px;
    content: "Cambiar Categoria";
}

.bi-plus-circle-fill:after {
    padding: 3px 3px 1px;
    content: "Nuevo"
}

.bi-search-fill:after {
    padding: 3px 3px 1px;
    content: "Buscar"
}

.bi-search-fill-b:after {
    padding: 3px 3px 1px;
    content: "Buscar"
}

.bi-clear-fill:after {
    padding: 3px 3px 1px;
    content: "Limpiar"
}

.bi-cancel:after {
    padding: 3px 3px 1px;
    content: "Cancelar"
}

.bi-important-small:after {
    padding: 3px 3px 1px;
    content: "Obligatorio"
}

.mat-tree-node,
.mat-button-wrapper {
    line-height: .9em;
    font-size: .9em;
    font-weight: 600;
    max-height: 30px;
}

.mat-tree-node:hover {
    background:#efefef;
}

.mat-button-wrapper {
    text-indent: 40px;
    display: inline-block;
    font-size: 1em;
}


    .mat-tree-node[aria-level="1"] {
        font-size: 1.1em;
    }

    .mat-focus-indicator.mat-icon-button.mat-button-base {
        position: relative;
        background: none;
    }


mat-tree-node {
    position: relative;
}

    mat-tree-node[aria-expanded="false"]::before,
    mat-tree-node[aria-expanded="true"]::before {
        content: "+";
        height: 100%;
        width: 40px;
        background: none;
        display: flex;
        position: absolute;
        left: 0;
        top: -1px;
        font-size: 1.8em;
        justify-content: center;
        align-items: center;
        font-weight: 600;
        pointer-events: none;
        z-index:2;
    }



    mat-tree-node[aria-expanded="true"]::before {
        content: "-";
    }

    mat-tree-node[aria-level="2"]::before {
        left: 40px;
    }

    mat-tree-node[aria-level="3"]::before {
        left: 80px;
    }

    mat-tree-node[aria-level="4"]::before {
        left: 120px;
    }





.treeForm {
    position: absolute;
    top: 128px;
    left: 3%;
    width: 24%;
    font-size: 12px;
}

    .treeForm .bi {
        height: 30.5px;
    }

        .treeForm .bi:hover {
            background-color: #00a2e3 !important;
        }

    .treeForm .col-12 {
       display: flex;
       flex-wrap:wrap;
        justify-content: flex-start;
        align-items: center;
    }



.col-9 .table,
.modal-dialog .table {
    font-size: 1.1em;
    margin:10px 0;
}


.modal-dialog .table {
    margin: 15px 2%;
    max-width: 96%;
}

.table > :not(caption) > * > * {
    padding: 0.2rem 0.5rem;
}

.table .form-control {
    padding: 0.2rem 0.5rem;
}

.table tr th:last-of-type,
.table tr td:last-of-type {
    text-align: right;
    min-width:120px;
}
.col-md-4 td.text-end.p-1 {
    cursor: pointer;
}

td.selected {
    background-color: #00a2e3;
    border-color: #00a2e3;
    color: #fff !important;
}


.contentScrollY {
    display: block;
    width: 100%;
    max-height: 200px;
    min-height:60px;
    overflow: visible;
    overflow-y: auto;
    margin:10px 0;
}


    .contentScrollY table, .modal-dialog .contentScrollY table {
        margin: 0;
        width: 99%;
        max-width:none;
    }

.danger {
    color: #a94442 !important;
}

.modal-header {
    background: #00a2e3;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    padding: 10px;
    border-radius: 0;
}


.modal-header h4 {
    font-size: 1.5em;
    margin: 0;
    color: #fff;
}

.modal-header h5 {
    color: #666;
}

.modal-header .close {
    position: relative;
    display:block;
    height: 25px;
    width: 25px;
    background: url(./images/Icons/circle-x-white.svg) center no-repeat;
    background-size: 90%;
    background-color: transparent;
    border: 0;
}


.modal-header .close span{
    display:none;
}





.mat-progress-bar {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .2%);
    border: 1px solid #ccc;
}



.progress {
    height: 1.5rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .15);
    overflow: visible;
    border-radius:0;
}

.progress-bar {
    background-color: #00a2e3;
    overflow: visible;
    position: relative;
    min-width: 25px;
}

    .progress-bar:after {
        content: "";
        width: 0;
        height: 0;
        border-right: 10px solid transparent;
        border-top: 10px solid transparent;
        border-left: 10px solid transparent;
        border-bottom: 10px solid #333;
        top: 17px;
        left: inherit;
        right: -10px;
        position: absolute;
    }


.progress + span {
    text-align: center;
    width: 50%;
    font-size: 12px;
    border: 1px solid #333;
    background: #333;
    padding: 5px;
    line-height: 15px;
    color: #fff;
    border-radius: 5px;
    margin: 12px 0 20px;
    float: left;
}

    .progress + span label {
      color: #00a2e3;
}



body .mat-accordion .mat-expansion-panel:last-of-type {
    border-radius: 0;
    padding: 0;
    margin: 0;
}

body .mat-accordion .mat-expansion-panel:last-of-type {
    border-radius: 0;
    border: 0;
    width: 100%;
    padding: 0;
}

body .mat-expansion-panel-header {
    cursor: pointer;
    border-radius: 0;
    width: 100%;
    padding: 0;
    background: url(./images/Icons/down.svg) 98% no-repeat #00a2e3;
    background-size: 30px;
}

    body .mat-expansion-panel-header:hover {
        background: url(./images/Icons/down.svg) 98% no-repeat #999;
        background-size: 30px;
    }

    body .mat-expansion-panel-header.mat-expanded,
    body .mat-expansion-panel-header.mat-expanded:focus,
    body .mat-expansion-panel-header.mat-expanded:hover {
        background: url(./images/Icons/up.svg) 98% no-repeat #999;
        background-size: 30px;
    }


     


body .mat-expansion-panel-header-title,
body .mat-expansion-panel-header-description {
    width: 100%;
    flex-grow: 1;
    margin: 0;
    padding: 5px 0;
    color: #fff;
    font-size: 1.3em;
    text-indent: 10px;
}


body .mat-expansion-panel-body {
    padding: 5px;
    width: 100%;
}


.btn-secondary {
    background-color: #444;
    border-color: #444;
}

.obligatorio {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings', arial;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
    .obligatorio:after {
        content: "\e101";
        color: #00a2e3;
        margin: 0 0 0 3px;
        font-size: 14px;
    }

