/******************************/
/* ESTILOS DA PAGINA INICIAL */
/******************************/

html{
    height:100%;
}

body{
    font-family: GothamLight; 
    color: #67737A;
    font-size: 20px;
    height: 100%;
    width: 100%;
    padding-top: 0 !important;
}

.GothamBook{
    font-family: GothamBook;
}

.GothamBold{
    font-family: GothamBold;
}

#page_container, #view_container{
    height:100%;
    position: relative;
}

/* Backdrop cinzenta */
.sw_grey_backdrop{
    position: relative;
    height: 100%;
    background-color: #FAFAFA;
}

/* Header com barra da smartwatt */
.sw_header{
    position: fixed;
    height: 50px;
    line-height: 50px;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px; 
    z-index: 100;
    background-color: #FFFFFF;
}

.sw_header_title{
    font-size: 40px;
    /* width: auto; */
    /* float: left; */
}

.sw_button{
    outline:none;
    border:0;
    background-color: #FFFFFF;
    height:60px;
    line-height: 60px;
    width: 150px;
    transition: background-color 0.5s ease;
}

.sw_button:hover{
    background-color: #637378;
    color: white;
    /* padding: 0 !important; */
}

/* div de login */
.sw_login{
    font-size: 26px;
    position: absolute;
    right: 10px;
    top: 0;
}

/* Conteudo da pagina que aparece a seguir a barra de header */
.sw_content{
    position: absolute;
    /* height: calc(100% - 115px); */
    width: 100%;
    background-color: #F2F2F2;
    padding: 0px 40px 0px 40px; 
    /* margin-top: 60px; */
    top: 60px;
}

.sw_app{
    position: relative;
    margin-top: 40px;
    /* border: 1px solid rgb(224, 224, 224); */
}

.sw_app_header{
    position: relative;
    height: 40px;
    line-height: 40px;
    font-family: GothamBold;
    /* margin-left: 10px; */
    padding-left: 10px;
    font-size: 14px;
    /* background-color: rgb(250,250,250); */
    background-color: rgb(234, 234, 234);
    text-align: left;
}

.sw_app_content{
    position: relative;
    background-color: white;
    padding: 15px;
    text-align: center;
}


/******************************/
/* ESTILOS DA PAGINA LOGIN    */
/******************************/
.login-content-wrapper{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#login_sw_image_container{
    position: relative;
    text-align: center;
}

#sw_areas_container{
    position: relative;
    text-align: center;
    /* height: 200px; */
}

#login_container{
    position: relative;
    text-align: center;
    height: 306px;
    margin: 20px 0 20px 0;
}

#login_outer_box{
    position: absolute;  
    width: 500px;
    border: 2px solid rgb(219, 219, 219);
    height: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.3);
}

#login_inner_box{

    padding: 50px 50px 50px 50px;
    position: relative;

}

#password_input_group{
    margin-top: 20px;
}

#login_error_msg_container{
    text-align: center;
    margin-top: 10px;
}

#login_error_msg{
    /* position: absolute; */ 
    color: #FF0500;
}

/* Redefinir cores de erro do bootstrap */
.has-error .input-group-addon{
    background-color: #f2dede !important;
    border-color: #FF0500 !important;
}

/* Redefinir cores de erro do bootstrap */
.has-error .form-control{
    border-color: #FF0500 !important;
}

#submit_login_container{
    margin-top: 30px;
    text-align: right;
}

#submit_login_btn{
    font-size: 30px;   
    width: 100%;
    outline: none;
    border: 0;

    background-color: #EEEEEE;  
    height: 60px;
    line-height: 60px;
    transition: background-color 0.5s ease;
}

#submit_login_btn:hover{
    background-color: #637378;
    color: white;
}

/**********************************/
/* ESTILOS DA PAGINA DASHBOARD   */
/*********************************/

.sw_logged_box{
    position: absolute;
    right: 10px;
    top: 0;
    padding: 0px;
    height: 100%;
    /* display: inline; */
}

.sw_logged_box_content_left{
    position: relative;
    float: left;
}

.sw_logged_box_content_right{
    position: relative;
    float: right;
    font-size: 25px;
    line-height: 50px;
    margin-left: 8px;
}

.sw_username{
    line-height: 30px;

    font-size: 18px;
    line-height: 1.4;
    text-align: right;
}

.sw_logout{
    /* line-height: 30px; */

    font-size: 16px;   line-height: 1.4;
    text-align: right;
    cursor: pointer;
}

.sw_mobile_logout{
    display: none !important;
}

.sw_navbar{
    position: fixed;
    width: 100%;
    height: 50px;
    /* display: inline-block; */
    /* margin-top: 60px; */
    margin-bottom: 0px;
    /* top: 60px; */
    border:0px !important;

    background-color: #fff;

    -webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.30); 
    -moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.30);
    box-shadow: 0px 1px 3px rgba(0,0,0,0.30); 
}

.sw_navbar .navbar-brand{
    padding-top: 10px;
    padding-left: 13px;
    padding-right: 13px;
}

.sw_navbar_logo{
    height: 30px;  
}

/* cursor style for anchors with ng-click attribute  */
a[ng-click]{
    cursor: pointer;
}

/* Conteudo dos dashboards que aparecem a seguir a barra de header */
.sw_dashboard_content{
    position: absolute;
    height: calc(100% - 60px);
    width: 100%;
    max-width: 1260px;
    background-color: #FAFAFA;
    padding: 0px 40px 0px 40px;
    /* margin-top: 60px; */
    top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    overflow-y: auto;
}

/*ajustar o tamanho da margem dos titulos (h1) para nao aparecer scroll em portateis de 15.6''*/
.sw_dashboard_content h1{
    margin-top: 15px;
}

/*loading do conteudo*/
.sw_dashboard_content_loading{
    position:absolute;
    top: 100px;
    left: 0;
    right: 0;
    text-align: center;
    /* bottom: 0; */
    margin:auto;
}

/* Other animations */
.loading_rotate{
    -webkit-animation: spin 4s infinite linear;
    -moz-animation: spin 4s infinite linear;
    -o-animation: spin 4s infinite linear;
    animation: spin 4s infinite linear;
}

.loading_rotate.ng-animate { 
    -webkit-animation: none 0s;
    -moz-animation: none 0s;
    -o-animation: none 0s;
    animation: none 0s;
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(359deg);
    }
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
    }
}
@-o-keyframes spin {
    0% {
        -o-transform: rotate(0deg);
    }
    100% {
        -o-transform: rotate(359deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}




/* CSS DO CRIS */
.panel-title{
    font-family: GothamLight;
    font-weight: bolder;
}

.panel {
    /*border-radius: 0px !important;*/
    -webkit-transition: box-shadow .1s ease;
    -moz-transition: box-shadow .1s ease;
    -o-transition: box-shadow .1s ease;
    transition: box-shadow .1s ease;
    -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.25);
    -moz-box-shadow: 0 0 3px rgba(0,0,0,0.25);
    box-shadow: 0 0 3px rgba(0,0,0,0.25);
    border: 0px !important;
}

.panel-title{
    line-height: 20px !important;
    color: #67737A;
}

.panel-heading{
    background-color: #FAFAFA !important;
    border-bottom: 0px dashed #EEEEEE;
    padding: 5px !important;
    border-radius: 0px !important;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    font-family: GothamBold !important;
    /* height: 40px; */
    /* line-height: 40px; */
}
/* FIM DE CSS DO CRIS */


/**********************************/
/*     ESTILOS DO DATEPICKER     */
/*********************************/

.sw_datepicker th{
    font-family: GothamBold;
}

/* overwrite css dos datepickers para a cor de fundo dos dias */
[date-range] [date-picker] .after.before {
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    background-color: #499dcd;
    background-image: -moz-linear-gradient(top,#AEB2B5,#67737A);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#AEB2B5),to(#67737A));
    background-image: -webkit-linear-gradient(top,#AEB2B5,#67737A);
    background-image: -o-linear-gradient(top,#AEB2B5,#67737A);
    background-image: linear-gradient(to bottom,#AEB2B5,#67737A);
    background-repeat: repeat-x;
    border-color: #2f6ab4 #2f6ab4 #1f4677;
    border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f6ab4', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

/* overwrite css dos datepickers para os dias desativos, isto e, dias do mes seguinte e do mes anterior que aparecem no mes atual na dropdown */
[date-picker] .disabled{
    color: rgb(192, 192, 192) !important;
}

/* overwrite do css dos dias da semana no picker */
[date-picker] th {
    font-family: GothamBold;   
}


/**********************************/
/*        ANIMACAO DE ESTADO      */
/*********************************/
[ui-view].ng-enter, [ui-view].ng-leave {
    position: absolute;
    left: 0;
    right: 0;
    -webkit-transition:all .5s ease-in-out;
    -moz-transition:all .5s ease-in-out;
    -o-transition:all .5s ease-in-out;
    transition:all .5s ease-in-out;
}

[ui-view].ng-enter {
    opacity: 0;
    -webkit-transform:scale3d(0.5, 0.5, 0.5);
    -moz-transform:scale3d(0.5, 0.5, 0.5);
    transform:scale3d(0.5, 0.5, 0.5);
}

[ui-view].ng-enter-active {
    opacity: 1;
    -webkit-transform:scale3d(1, 1, 1);
    -moz-transform:scale3d(1, 1, 1);
    transform:scale3d(1, 1, 1);
}

[ui-view].ng-leave {
    opacity: 1; 
    -webkit-transform:translate3d(0, 0, 0);
    -moz-transform:translate3d(0, 0, 0);
    transform:translate3d(0, 0, 0);
}

[ui-view].ng-leave-active {
    opacity: 0;
    -webkit-transform:translate3d(100px, 0, 0);
    -moz-transform:translate3d(100px, 0, 0);
    transform:translate3d(100px, 0, 0);
}