﻿
/* ------------------------------------------------------------------------------------- Colores Spherag
    #004E92 - AZUL OSCURO
    #fa5c7c - ROJO
    #757575 - GRIS
*/
/* ------------------------------------------------------------------------------------- Mapa
*/
    .mapSpherag {
        width: 100%;
        min-height: 500px;
        max-height: 800px;
        z-index: 0;
    }
    .legendMap {
        position: absolute;
        right: 0;
        z-index: 9999;
        pointer-events: none;
    }
    .imgLegend {
        height: 150px;
        border-radius: 1%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3), 0 3px 3px rgba(0,0,0,0.3);
    }
    .blinking {
        animation: fade 1s infinite alternate;
    }

/* ------------------------------------------------------------------------------------- Tarjetas (info modal)
*/
.card-counter {
    box-shadow: 2px 2px 10px #DADADA;
    border-radius: 5px;
    transition: .3s linear all;
    background-image: -webkit-linear-gradient(270deg, #004e92, #303031);
    background-image: linear-gradient(180deg, #004e92, #303031);
    color: #FFF;
}

    .card-counter:hover {
        box-shadow: 6px 6px 30px #DADADA;
        transition: .1s linear all;
    }

    .card-counter i {
        font-size: 4em;
        opacity: 0.5;
    }

    .card-counter .card-count-info {
        font-size: 2em;
        font-weight: bold;
        opacity: 0.9;
    }

    .card-counter .card-count-name-info {
        font-size: 1em;
        opacity: 0.7;
    }

/* ------------------------------------------------------------------------------------- Switch (tiempo-caudal) 
*/
.switch-field {
    display: flex;
    overflow: hidden;
}

    .switch-field input {
        position: absolute !important;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        width: 1px;
        border: 0;
        overflow: hidden;
    }

    .switch-field label {
        background-color: #e4e4e4;
        color: rgba(0, 0, 0, 0.6);
        font-size: small;
        line-height: 1;
        text-align: center;
        padding: 6px 12px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
        transition: all 0.1s ease-in-out;
    }

        .switch-field label:hover {
            cursor: pointer;
        }

    .switch-field input:checked + label {
        background-color: #004e92;
        color: #ffffff;
        box-shadow: none;
    }

    .switch-field label:first-of-type {
        border-radius: 2px 0 0 2px;
    }

    .switch-field label:last-of-type {
        border-radius: 0 2px 2px 0;
    }

/* ------------------------------------------------------------------------------------- Calculadora (tiempo-caudal)
*/
.coverage-excellent {
    background-color: #48ea8b !important;
    color: black
}

.coverage-good {
    background-color: #68b24a !important;
    color: white
}

.coverage-poor {
    background-color: #f3d310 !important;
    color: black
}

.coverage-marginal {
    background-color: #fa8b04 !important;
    color: white
}

.coverage-without {
    background-color: #fa5c7c !important;
    color: white
}

/* ------------------------------------------------------------------------------------- Highcharts 
*/
.highcharts-series-label {
    display: none;
}

/* ------------------------------------------------------------------------------------- SweetAlert 
*/
.sweetAlertConfirm {
    background-color: #004e92 !important;
}

/* ------------------------------------------------------------------------------------- Stepper crear dispositivo 
*/
:root {
    --circle-size: clamp(1.5rem, 5vw, 3rem);
    --spacing: clamp(0.25rem, 2vw, 0.5rem);
}

.sp-circle {
    height: 40px;
    width: 40px;
    background-color: #596066 !important;
    border-radius: 50%;
    display: inline-block;
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    display: inline-flex;
}

.active .sp-circle {
    height: 40px;
    width: 40px;
    background-color: #004E92 !important;
    border-radius: 50%;
    display: inline-block;
    color: #fff;
    text-align: center;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    display: inline-flex;
    /*border: 4px solid #62c5ff;*/
}

.imgValve {
    max-width: 50%;
}

.fade {
    opacity: 1 !important;
}

.sph-stepper {
    display: flex;
}

.sph-stepper-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

    .sph-stepper-item:before {
        --size: 3rem;
        content: "";
        display: block;
        width: var(--circle-size);
        height: var(--circle-size);
        border-radius: 50%;
        background-color: #596066;
        opacity: 0.5;
        margin: 0 auto 1rem;
    }

    .sph-stepper-item:not(:last-child):after {
        content: "";
        position: relative;
        top: calc(var(--circle-size) / 2);
        width: calc(100% - var(--circle-size) - calc(var(--spacing) * 2));
        left: calc(50% + calc(var(--circle-size) / 2 + var(--spacing)));
        height: 2px;
        background-color: #e0e0e0;
        order: -1;
    }

.sph-stepper-active-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

    .sph-stepper-active-item:before {
        --size: 3rem;
        content: "";
        display: block;
        width: var(--circle-size);
        height: var(--circle-size);
        border-radius: 50%;
        background-color: #004E92;
        margin: 0 auto 1rem;
    }

    .sph-stepper-active-item:not(:last-child):after {
        content: "";
        position: relative;
        top: calc(var(--circle-size) / 2);
        width: calc(100% - var(--circle-size) - calc(var(--spacing) * 2));
        left: calc(50% + calc(var(--circle-size) / 2 + var(--spacing)));
        height: 2px;
        background-color: #004E92;
        opacity: 0.5;
        order: -1;
    }

.sph-stepper-title {
    font-size: clamp(1rem, 4vw, 1rem);
    margin-bottom: 0.5rem;
}


/* ------------------------------------------------------------------------------------- Programa inteligente 
*/
.spm-condition .card {
    padding: 5px;
    border: 2px solid #004E92;
}

/* ------------------------------------------------------------------------------------- Gráficos
*/
.highcharts-title {
    color: #004e92;
}

/* ------------------------------------------------------------------------------------- 
*/
.custom-shape-divider-top-1598885657 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .custom-shape-divider-top-1598885657 svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 144px;
        transform: rotateY(180deg);
    }

    .custom-shape-divider-top-1598885657 .shape-fill {
        fill: #004E9280;
    }

.gmnoprint a, .gmnoprint span, .gm-style-cc {
    display: none;
}

.minSize {
    min-height: 550px;
}

/* ------------------------------------------------------------------------------------- Bloquear scroll en el body
*/
.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

/*Covierte el menu lateral en cuadro con scroll*/
.myLateralMenu {
    overflow: auto;
    display: inline-block;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE and Edge */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none; /* Firefox */
}

/* ------------------------------------------------------------------------------------- DataTables*/

/*table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    background-color: #596066;
    top: 14px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    border: 0;
    font-weight: bold;
    box-shadow: none;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
    background-color: #596066;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td.dtr-control::before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th.dtr-control::before {
    margin-top: 0px;
}*/

/* ------------------------------------------------------------------------------------- Flowmeters*/



/*---------------------------- Lista dropdowns-------------------------------------*/
.treeSubprogramsId {
    margin: 0;
    padding: 0;
}

.caret {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .caret::before {
        content: "\25B6";
        color: black;
        display: inline-block;
        margin-right: 6px;
    }

.caret-down::before {
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.nested {
    display: none;
}

.active {
    display: block;
}

/* ------------------------------------------------------------------------------------- Stepper crear dispositivo 
*/



/*---------------------------- Actuators-------------------------------------*/

.moreFertilizersSpan {
    height: 24px;
    padding: 0px 10px;
    justify-content: center;
    border-radius: 8px;
    background-color: #004e92 !important;
    color: #FFF;
    text-align: center;
    font-family: Nunito;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.componentProduct {
    height: 24px;
    padding: 0px 10px;
    justify-content: center;
    border-radius: 8px;
    background: var(--warning-200, #FBF2CB);
    color: var(--warning-700, #C8811A);
    text-align: center;
    font-family: Nunito;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.create_actuator {
    text-align: center;
    font-family: Nunito;
    font-size: 12px;
    font-style: normal;
}

.create_user {
    text-align: center;
    font-family: Nunito;
    font-size: 12px;
    font-style: normal;
}

.exit_without_saving_product {
    height: 32px;
    padding: 0 16px;
    color: var(--White, #283370);
    text-align: center;
    font-family: Nunito;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    vertical-align: middle;
    font-size: 12px;
    border: 0px;
    background-color: white;
}

.save_product {
    height: 32px;
    padding: 0 16px;
    border-radius: 7px;
    border: 1px solid var(--grey-200, #E5E7EA);
    background: var(--harvest-night-500, #283370);
    color: var(--White, #FFF);
    text-align: center;
    font-family: Nunito;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.botonAbono {
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid var(--grey-200, #E5E7EA);
    background: var(--harvest-night-500, #283370);
    color: var(--White, #FFF);
    text-align: center;
    font-family: Nunito;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}


@media (max-width: 767.98px) {

    #productsCards {
        display: block !important;
    }

    #showProducts {
        display: none !important;
    }
}

@media (min-width: 768.00px) {

    #productsCards {
        display: none;
    }

    #showProducts {
        display: block;
    }
}

/*---------------------------- Employee View -------------------------------------*/

.employeeNavbar {
    left: 0px !important;
}

.employeeContent {
    margin-left: 70px;
    margin-right: 70px;
    margin-top: 50px;
    
}

@media (max-width: 767.98px) {

    .employeeButton {
        height: 50px;
        padding: 0 16px;
        border-radius: 4px;
        border: 1px solid var(--grey-200, #E5E7EA);
        background: var(--harvest-night-500, #283370);
        color: var(--White, #FFF);
        text-align: center;
        font-family: Nunito;
        font-size: 11px;
        font-style: normal;
        font-weight: 500;
        line-height: 16px;
    }

    .employeeContent {
        margin-right: 0px !important;
        margin-top: 10px !important;
    }

    #employeeCards {
        display:block !important;
    }

    #showProducts {
        display: none !important;
    }

    #usersCards {
        display: block !important;
    }

    #showUsers {
        display: none !important;
    }

  /*  #showActivities {
        display: none !important;
    }*/

    #productsCards {
        display: block !important;
    }

    #showProducts {
        display: none !important;
    }
}

@media (min-width: 768.00px) {

    .employeeContent {
        margin-right: 0px !important;
        margin-top: 10px !important;
    }

    #employeeCards {
        display: none;
    }

    #showProducts {
        display: block;
    }

    #showUsers {
        display: block !important;
    }

    #showActivities {
        display: block;
    }

    #productsCards {
        display: none;
    }

    #usersCards {
        display: none !important;
    }

    #showProducts {
        display: block;
    }

    .employeeButton {
        height: 50px;
        padding: 0 16px;
        border-radius: 4px;
        border: 1px solid var(--grey-200, #E5E7EA);
        background: var(--harvest-night-500, #283370);
        color: var(--White, #FFF);
        text-align: center;
        font-family: Nunito;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 16px;
    }
}

.logoEmployee {
    position: absolute;
    padding-top: 0;
    width: 70px;
    z-index: 5;
    padding-top: 70px;
}

.pointerCards {
    cursor: pointer;
}

#unitsEmployee {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    padding: .45rem .9rem;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border-radius: .25rem;
    background-color: #F4F5F8;
    border-radius: 4px;
    border-color: #CFCFCF;
    color: #74767E;
}