/*
 Defini��es css para o componente de sele��o de pontos de bloqueio (lockspot)
*/

/* Cursor do input que exibe o ponto de bloqueio selecionado (o padr�o do bootstrap � "not-allowed" para campos readonly) */
.lockspotselect .form-control.inputDisplay[readonly]
{
    cursor: pointer;
}

/* Altura m�nima da p�gina, para evitar deforma��es muito grandes*/
.lockspotselect .modal-content
{
    min-height: 600px;
}


.btn-toggle-tree
{
    width: 150px;
}
/******************************************************************************************
Telas bem pequenas - exibir apenas o �cone do bot�o
*/
@media screen and (max-width: 600px)
{
    .btn-toggle-tree
    {
        width: 50px;
    }

    .btn-toggle-tree .button-caption
    {
        display: none;
    }
}


.lockspotselect
{
    width: 100%;
    height: 100%;
    float: none;
}

.lockspotselect-container
{
    width: 100%;
    height: 80%;
    display: flex;
}

.lockspotselect-tree .tree
{
    overflow: auto;
}



/******************************************************************************************
* Telas pequenas e m�dias (celulares e tablets) - n�o precisa de media query, pois � o default se nenhum outro media query for ativado
*/

.lockspotselect-tree-container
{
    min-width: 400px;
    height: 100%;
    display:  none;

    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.lockspotselect-tree
{
    height: 100%;
}

.tree-visible .lockspotselect-tree-container
{
    display: block;
    min-width: 400px;
    height: 100%;
    opacity: 1;
}


.lockspotselect-synoptic-container
{
    width: 100%;
    height: 100%;
    -webkit-transition: visibility 0s linear,opacity 0.5s linear;
    -moz-transition: visibility 0s linear,opacity 0.5s linear;
    -o-transition: visibility 0s linear,opacity 0.5s linear;
    transition: visibility 0s linear,opacity 0.5s linear;
}

.lockspotselect-synoptic-container {
    display: block;
}

.tree-visible .lockspotselect-synoptic-container {
    display: none;
}

.tree-search
{
    /* 	margin-bottom: 10px; */
}

/* .synoptic-visible .tree-search */
/* { */
/*   	opacity: 0; */
/*   	visibility: hidden; */

/* 	-webkit-transition: visibility 0s linear,opacity 0.5s linear; */
/*     -moz-transition: visibility 0s linear,opacity 0.5s linear; */
/*     -o-transition: visibility 0s linear,opacity 0.5s linear; */
/*     transition: visibility 0s linear,opacity 0.5s linear; */
/* } */


.lockspotselect-synoptic
{
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.tree-visible .tree-search
{
    opacity: 1;
    visibility: visible;
}

.synoptic-visible .tree-search
{

    -webkit-transition: visibility 0s linear,opacity 0.5s linear;
    -moz-transition: visibility 0s linear,opacity 0.5s linear;
    -o-transition: visibility 0s linear,opacity 0.5s linear;
    transition: visibility 0s linear,opacity 0.5s linear;
}

@media screen and (min-width: 992px)
{
    .tree-visible .lockspotselect-tree-container
    {
        flex-grow: 1;
    }

    .synoptic-visible .lockspotselect-synoptic-container {
        opacity: 1;
        visibility: visible;
        padding: 10px;
    }

    .tree-visible .lockspotselect-synoptic-container
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
}

/******************************************************************************************
Telas bem grandes (j� d� pr� exibir a �rvore e o sin�tico juntos)
*/
@media screen and (min-width: 1200px)
{
    body
    {
        /*background-color: lightblue;*/
    }

    .lockspotselect-tree-container
    {
        width: 0;
        height: 100%;
        float: left;
        display: block;
        opacity: 0;

        -webkit-transition: width 0.5s ease, opacity 0.5s ease;
        -moz-transition: width 0.5s ease, opacity 0.5s ease;
        -o-transition: width 0.5s ease, opacity 0.5s ease;
        transition: width 0.5s ease, opacity 0.5s ease;
    }

    .synoptic-visible .lockspotselect-tree-container
    {
        display: block;
    }

    .lockspotselect-tree
    {
        height: 100%;
    }

    .lockspotselect-synoptic-container
    {
        height: 100%;
        float: left;
        padding-left: 10px;
        opacity: 1;
        visibility: visible;

        -webkit-transition: width 0.5s ease;
        -moz-transition: width 0.5s ease;
        -o-transition: width 0.5s ease;
        transition: width 0.5s ease;
    }

    .tree-search
    {
        opacity: 0;
        visibility: hidden;
    }

    .tree-visible  .tree-search
    {
        opacity: 1;
        visibility: visible;
    }




}

.btn-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    cursor: pointer;
    background-color: rgb(0, 126, 122);
    border: 2px solid rgb(0, 126, 122);
    border-radius: 40px;
    margin-left: 20px;

}

.btn-switch-circle {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border-radius: 40px;
}
.btn-switch-circle--on {
    left: auto;
    right: 0;
}
.btn-switch--on {
    background-color: #80CDBE;
    border: 2px solid #80CDBE;
}

.text-switch {
    vertical-align: middle;
    margin-left: 10px;
    margin-top: 5px;
    display: inline-block;
}

.text-only-dependecy {
    text-decoration: line-through;
}
