﻿/*Container somente para o input e o label, necess�rio em cada campo para funcionamento*/
.floating-label-container {
    position: relative;
    display: flex;
    flex-flow: column-reverse;
}

    /*Efeito de transi��o*/
    .floating-label-container > label, .floating-label-container > input, .floating-label-container > select {
        transition: all 0.2s;
        touch-action: manipulation;
    }

    /*Estilo dos input*/
    .floating-label-container > input {
        font-size: 1.5rem;
        background-color: transparent;
        border: 0;
        border-bottom: 1px solid #ccc;
        width: 100%;
        font-family: inherit;
        border-radius: 0;
        padding: 0;
        cursor: text;
    }

        .floating-label-container > input[type=checkbox] {
            background: white;
            content: "";
            display: inline-block;
            margin: 0 .5em 0 0;
            padding: 0;
            vertical-align: middle;
            width: 2em;
            height: 2em;
            -webkit-backface-visibility: hidden;
        }

        /*Estilo do campo depois de preenchido*/
        .floating-label-container > input:not(:placeholder-shown) {
            /*substituicoes*/
            border-style: solid !important;
            border-radius: 0 !important;
            border-top-left-radius: 0 !important;
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
            border-top-color: transparent !important;
            border-right-color: transparent !important;
            border-left-color: transparent !important;
            border-width: thin;
            padding: 0;
            background: transparent !important;
            height: 20px !important;
            /*fim substituicoes*/
            border-bottom: 1px solid #355d98;
        }

            /*Estilo da label depois que o campo � preenchido*/
            .floating-label-container > input:not(:placeholder-shown) + label {
                color: #9e9e9e;
            }

/******************************************************CAMPOS NUMBER*****************************************************/

/*input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  
}*/
/* display: none; <- Crashes Chrome on hover */
/* <-- Apparently some margin are still there even though it's hidden */
/******************************************************CAMPOS NUMBER FIM*****************************************************/

/*Estilo da label quando o campo � selecionado*/
.floating-label-container > input:focus + label {
    color: #355d98;
}

/*Estilo do campo não selecionado*/
.floating-label-container > input:placeholder-shown {
    /*substituicoes*/
    border-style: solid !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-left-color: transparent !important;
    border-width: thin;
    /*fim substituicoes*/
    font-size: 1.5rem;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #ccc;
    width: 100%;
    height: 20px !important;
    font-family: inherit;
    border-radius: 0;
    padding: 0;
    cursor: text;
    border-bottom: 1px solid #ccc;
}

/*Borda com o campo selecionado*/
.floating-label-container > input:focus {
    outline: 0;
    border-bottom: 1px solid #355d98;
}

/*Deixa a label em cima do campo quando criada*/
.floating-label-container > input:placeholder-shown + label {
    cursor: text;
    max-width: 66.67%;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    top: 25px;
    pointer-events: none;
    user-select: none;
    /*color: #9e9e9e;*/
}

/*Deixa a label em cima do campo type datetime quando criada*/
.floating-label-container > input[type=datetime]:placeholder-shown + label {
    cursor: text;
    max-width: 66.66%;
    background: transparent;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
}

/*Posi��o quando a label � clicada*/
.floating-label-container input:not(:placeholder-shown) + label,
.floating-label-container input:focus + label {
    top: 0px;
    cursor: text;
}

/*Esconde o placeholder no Chrome, Safari*/
.floating-label-container > input::-webkit-input-placeholder {
    opacity: 0;
    transition: inherit;
}

/*Esconde o placeholder no Internet Explorer*/
.floating-label-container > input:-ms-input-placeholder {
    opacity: 0;
    transition: inherit;
}

/*Esconde o placeholder no Firefox*/
.floating-label-container > input::-moz-placeholder {
    opacity: 0;
    transition: inherit;
}

/*Esconde o placeholder no Opera*/
.floating-label-container > input::-o-placeholder {
    opacity: 0;
    transition: inherit;
}

/*Esconde o placeholder quando o campo � selecinado*/
.floating-label-container > input:focus::-webkit-input-placeholder {
    opacity: 0;
    transition: inherit;
}

/*********************************************************************************SELECT*********************************************************************************/

/*Estilo do select*/
.floating-label-container > select {
    font-size: 1.5rem !important;
    /*background: #f8f8f8;*/
    border: 0;
    border-radius: 0 !important;
    border-bottom: 1px solid #ccc;
    width: 100%;
    /*height: 20px !important;*/
    font-family: inherit;
    border-radius: 0;
    padding: 0;
    /*-webkit-appearance: none;*/
    -moz-appearance: none;
    cursor: pointer;
}

    /*Estilo do select quando focado*/
    .floating-label-container > select:focus {
        outline: 0;
        border-bottom: 1px solid #355d98;
    }

    /*Posi��o inicial quando a label � criada*/
    .floating-label-container > select + label {
        max-width: 66.66%;
        white-space: nowrap;
        color: #9e9e9e;
    }

/*Posi��o inicial quando a label � criada*/
.floating-label-container > label {
    max-width: 66.66%;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    color: #9e9e9e;
}

.select-multiple-label {
    color: #333333;
    display: block;
}

.select-error {
    border-bottom: 1px solid red !important;
}

.select-label-error {
    color: red !important;
}


/*Cor da label quando algum option � selecionado*/
.floating-label-select-label-onChange {
    color: #355d98;
}
/*borda do select depois que algum option � selecionado*/
.floating-label-select-afterChange {
    border-bottom: 1px solid #355d98 !important;
}

/**********************************************************CHECK BOX**********************************************************/
.floating-label-container > input[type=checkbox] ~ label {
    cursor: pointer;
    color: #333333;
    user-select: none;
}

.floating-label-container > input[type=checkbox]:not(:placeholder-shown) {
    border: 0;
    outline: 0;
    cursor: pointer;
}
