/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 18/05/2016, 11:48:10
    Author     : Muneratto
*/

$cDefault: #4977BC;
$cDefaultBorder: #e93f94;

.cGreen{ color: #428d36; }
.cYellow{ color: #E7B035; }
.cRed{ color: #FF0000; }
.cBlue{ color: #4977BC; }
.cGray{ color: #555; }
.cClose{ color: #FF0000; float: right;}

.none{ display: none !important; }

//***************** CSS ******************/

*{
    padding: 0px;
    margin: 0px;
    
}

html{
    padding: 0px;
    margin: 0px;
}

body{
    position: static;
}

.form-control{
    z-index: 0 !important;
}

nav{
    .ballNotification{
        height: 12px;
        width: 12px;
        background: #C00;
        display: block;
        position: absolute;
        border-radius: 100%;
        font-size: 8px !important;
        text-align: center;
        line-height: 12px;
        color: #FFF;
        background: #238C00;
        top: 5px;
        &.ballRed{
            background: #F00;
        }
    }
}

.dashboard{ 
    font-size: 12px;
    .vBox{
        margin-bottom: 20px;
        color: #FFF;
        padding: 5px;
        height: 100px;
        i{ 
            font-size: 50px !important;
            padding: 20px;
            border-right: 1px #FFF solid;
            margin-right: 15px;
            float: left;
        }
        b{
            font-size: 28px !important;
        }
    }
    .grafico{
        margin-bottom: 20px;
        height: 380px;
        overflow: hidden;
    }
    
    .carrossel{
        margin-bottom: 20px;
        .item{
            border: 2px transparent solid;
            padding: 5px;       
            &:hover{
                border: 2px #CCC solid;
                .link{
                    opacity: 1;
                }
            }
            .oferta{
                background: $cDefault;
                color: #FFF;
                width:30px;
                height: 30px;
                line-height: 30px;
                border-radius: 100%;
                text-align: center;
                position: absolute;
                right: 5px;
                top: 5px;
                z-index: 100;
                font-size: 10px;
            }
            .thumb{
                display: block;
                padding: 5px;
                text-align: center;
            }
            .frete{
                position: absolute;
                bottom: -5px;
                text-align: -webkit-center;
                padding: 5px 0px;
                z-index: 100;
                left: 0px;
                width: 20% !important;
                img{
                    width: 100%;
                }
            }

            .link{
                background: $cDefault;
                padding: 15px 0px;
                display: block;
                text-align: center;
                margin-top: 5px;
                text-decoration: none;
                color: #FFF;
                opacity: 0;   
                 -webkit-transition: 1s; /* Safari */
                transition: 1s;
            }
        }
        .thumb{
            position: relative !important;
            border: 1px #F1F1F1 solid !important;
            .oferta{
                display: none;
            }
            .owl-item{
                .active{
                    img{
                       border: 1px #000 solid; 
                    }                    
                }
                img{border: 1px #CCC solid};
            }
            .indisponivel{
                display: none;
            }
            .frete{
                position: absolute;
                bottom: -5px;
                text-align: -webkit-center;
                padding: 5px 0px;
                z-index: 100;
                left: 0px;
                width: 30%;
            }
        }        
        
        strong{ display: block; height: 40px;}
        .ref{ font-size: 10px; color: #888; margin: 0;}
        .texto{ color: #404040; }  
        .preco{
            .de{
                color: #888;
                font-size: 12px;
                margin: 0;
                span {text-decoration: line-through; }
            }
            .por{
                color: #888;
                span{ color: #F00; font-size: 20px;}
            }
            .promocional{
                color: #3E8577; font-size: 20px; margin-top: 12px;
            }
        }
    }
}

//***************** PADRÃO ******************/

.blur{
    filter: blur(4px);
    -moz-filter: blur(4px);
    -webkit-filter: blur(4px);
    transition: all linear 500ms;
}

.select{ padding: 0 10px; }
.alert{ margin-bottom: 10px; }
.display-none{ display: none; }
.clear{ clear: both; }
.uppercase{ text-transform: uppercase; }
.lowercase{ text-transform: lowercase; }
.capitalize{ text-transform: capitalize; }
.font-negrito{ font-weight: bold; }
.titleLabel{
    background: #EEE;
    line-height: 25px;
    color: #666;
}

h2{
    background: #4977BC;
    padding: 5px 10px;
    color: #FFF;
    font-size: 15px !important;
    width: 100%;
    clear: both;
    margin-top: 20px;
}

.required{
    background-color: #FDF4C9;
    border-color: #E8C77A;  
    &:focus {
        border-color: #E8C77A;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(232,199,122,.6);
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(232,199,122,.6);
    }
}

.form-radio{
    padding-bottom: 10px;
    .radio-inline{
        padding-top: 5px;
    }
}

.tab-content{
    padding-top: 25px;
    border-left: 1px #CCC solid;
    border-bottom: 1px #CCC solid;
    border-right: 1px #CCC solid;
}

fieldset{
    border: 1px #EEE solid;
    padding: 15px;
    background: #FBFBFB;
    legend{
        border: none;
        font-size: 14px;
        font-weight: bold;
        margin: 0;
        padding: 0px 10px;
        width: initial;
        margin-left: -10px;
    }
}

.box{
    height: 230px;
    overflow-y: scroll;
    padding: 5px;
    border: 1px #CCC solid;
    margin: 0px;
    margin-bottom: 15px;
    ul{
        padding: 0px;
        li{
            list-style: none;
            &.active{
                background: #337ab7;
                display: block;
                a{
                    color: #FFF;
                }                
            }
            a{
                display: block;
                text-decoration: none;
                padding-left: 5px;
                &:hover{
                    background: #EEE;
                }                
            }
            
        }
    }
}

.newmodal {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4 !important;
    .jconfirm-box{
        background: #FFF;
        border: 1px #CCC solid;
        border-radius: 0px;
        padding: 0px 0px;
        overflow: hidden;
        .title{
            background: #4977BC;
            padding: 5px 10px;
            color: #FFF;
            font-size: 15px !important;
        }
    }
    .closeIcon {
        background: #FF0000;
        color: #FFF;
        position: absolute !important;
        right: 5px !important;
        top: 5px !important;
        line-height: 20px !important;
        font-size: 15px !important;
        opacity: 1 !important;
        &:hover{
            opacity: 0.8 !important;
        }
    }
    .content{
        padding: 10px;
        form{
            width: 100% !important;
        }
    }
    .buttons{
        border-top: 1px #EEE solid;
        padding: 0px;
        width: 100%;
        padding: 0;
        padding-right: 10px;
        padding-top: 10px;
        button{
            float: right;
            margin-left: 10px;
            margin-bottom: 10px;
            border-radius: 0px;
            &.btn-cancel{ color: #F00; }
        }
    }
}

.sortable{
    .thumb:first-child{
        a{
            border: 1px #FF0000 solid;
            .selecacao{
                border-color: transparent #FF0000 transparent transparent;
                display: block;
            }
        }        
    }
    a.thumbnail{
        position: relative;
        overflow: hidden;
        .selecacao{
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 30px 40px 0;       
            z-index: 100;
            position: absolute;
            right: 0px;
            top: 0px;
            display: none;
        }
        &.active{
            border: 1px #4977bc solid;
            .selecacao{   
                 border-color: transparent #4977bc transparent transparent;
                 display: block;
            }
        }
           
    }    
}

//css - login
#loading{
    /*&.close{
        display: none;
    }*/
    z-index: 1000000000 !important;
    position: fixed;
    width: 100%;
    height: 100%;
    display: block;
    
    background: rgba(255, 255, 255, 0.6);
    .carregando{
        position: absolute;
        left: 50%;
        margin-left: -77px;
        top: 50%;
        margin-top: -21px;
    }
}

//css - tela de login  
#login{
    .background{
        background: url('../img/background.jpg') no-repeat center top;
        width: 110%;
        height: 110%;
        top: -5%;
        left: -5%;
        position: fixed; 
    }
    form{
        background: #FFF;
        border: 1px #CCC solid;
        left: 50%;
        padding: 15px;
        position: absolute;        
        width: 300px;        
        margin-left: -150px;
        top:32%;
        h3{
            padding: 0px;
            margin: 0px;
            clear: both;
            font-size: 18px;
        }
        hr{
            margin: 10px 0;
            border-bottom: 1px #CCC solid;
        }
    }
}

#menu-left{
    background: url(../img/logo_menu.png) no-repeat $cDefault;
    border-right: 1px solid #2A528E;
    position: fixed;
    top: 0px;
    width: 60px;
    height: 100%;
}

.table-pedido{
    td{
        line-height: 30px !important;
    }
}

#main{
    margin-left: 60px;
    padding-left: 1px;
    margin-bottom: 0px !important;    
    nav{
        background: #f1f1f1;
        min-height: 20px;
        border-bottom: 1px solid #d3d3d3;
        border-radius: 0px !important;
        margin: 0px;
        position: fixed;
        width: 100%;
        z-index: 1;
        ul{
            li{
                padding: 0px 5px;
                a{
                    color: #666;
                    display: block;
                    padding: 5px 10px;
                    text-decoration: none;
                    &:hover{
                        background: #AEAEAE;
                        color: #FFF;
                    }
                }                
            }        
        }

        .dropdown-submenu{
            position:relative;
            &>.dropdown-menu{
                top:0;
                left:100%;
                margin-top:-6px;
                margin-left:-1px;
                -webkit-border-radius:0 6px 6px 6px;
                -moz-border-radius:0 6px 6px 6px;
                border-radius:0 6px 6px 6px;
            }
            &>a:after{
                display:block;
                content:" ";
                float:right;
                width:0;
                height:0;
                border-color:transparent;
                border-style:solid;
                border-width:5px 0 5px 5px;
                border-left-color:#cccccc;
                margin-top:5px;
                margin-right:0px;
            }
            &:hover>a:after{
                border-left-color:#555;
            }
            &.pull-left{
                float:none;
            }
            &.pull-left>&{
                left:-100%;
                margin-left:10px;
                -webkit-border-radius:6px 0 6px 6px;
                -moz-border-radius:6px 0 6px 6px;
                border-radius:6px 0 6px 6px;
            }

        }
    }
    
    /*
    nav{
        background: #f1f1f1;
        min-height: 20px;
        border-bottom: 1px solid #d3d3d3;
        border-radius: 0px !important;
        margin: 0px;
        position: fixed;
        width: 100%;
        z-index: 100;

        ul{
            li{
                padding: 0px 5px;
                a{
                    color: #666;
                    display: block;
                    padding: 5px 10px;
                    text-decoration: none;
                }
            }        
        }

        .dropdown-submenu{
            position:relative;
            &>.dropdown-menu{
                top:0;
                left:100%;
                margin-top:-6px;
                margin-left:-1px;
                -webkit-border-radius:0 6px 6px 6px;
                -moz-border-radius:0 6px 6px 6px;
                border-radius:0 6px 6px 6px;
            }
            &>a:after{
                display:block;
                content:" ";
                float:right;
                width:0;
                height:0;
                border-color:transparent;
                border-style:solid;
                border-width:5px 0 5px 5px;
                border-left-color:#cccccc;
                margin-top:5px;
                margin-right:0px;
            }
            &:hover>a:after{
                border-left-color:#555;
            }
            &.pull-left{
                float:none;
            }
            &.pull-left>&{
                left:-100%;
                margin-left:10px;
                -webkit-border-radius:6px 0 6px 6px;
                -moz-border-radius:6px 0 6px 6px;
                border-radius:6px 0 6px 6px;
            }
        }
    }*/
    
    
    
    
    .conteudo{
        padding-top: 33px;
        overflow-x: hidden;
        padding-bottom: 20px;
        section{
            background: #f1f1f1;
            border-bottom: 1px solid #d3d3d3;
            padding: 10px;
            min-height: 55px;
            z-index: 100;
            .btn{
                margin-right: 5px;
            }
            .form-group{
                padding: 0px;
            }
        }
        .scroll{
            position: fixed;
            top: 90px;
            bottom: 50px;
            left: 60px;
            overflow-y: auto;
            table{
                margin-bottom: 0;
                thead{
                    color: #666;
                    font-size: 12px;
                    background: #FFF;
                }
                tbody {
                    font-size: 12px;
                    .active>td{
                        background: #F6FC9D !important;
                    }
                    tr{
                        &:nth-child(2n+0){
                            background: #FAFAFA;
                        }
                        &:hover{
                            cursor: pointer;
                            background: #FDFFDF;
                        }
                    }
                }
            }            
        }
        .paginacao{
            width: 100%;
            height: 30px;
            position: fixed;
            line-height: 20px;
            bottom: 20px;
            border-top: 1px solid #ccc;
            overflow: hidden;
            white-space: nowrap;
            background-color: #FFF;
            font-size: 11px;
            .button{
                clear: both;
                margin-bottom: 30px;
            }
            .btn{
                float: left;
                width: 20px;
                height: 24px;
                padding: 0px;
                margin: 2px 10px 0px 10px;
                font-size: 14px;
                line-height: 24px;
                color: #999;
                &:hover, &:focus{
                    box-shadow: none;
                    border: none;
                }
            }
            .select{
                width: 67px;
                height: 24px;
                margin-top: 2px;
                margin-left: 2px;
                float: left;
                font-size: 12px;
                padding: 0px 5px;
            }
            .numpage{
                width: 75px;
                height: 24px;
                margin-top: 2px;
                float: left;
                padding: 0px;
                text-align: center;
                font-size: 12px;
                padding: 0px 5px;
            }
            .spage{
                margin: 4px 10px;
            }
        }
    }
}







//css do rodapé
footer{
    background: #F1F1F1;
    color: #666;
    font-size: 11px;
    height: 20px;
    position: fixed;
    bottom: 0px;
    width: 100%;
    line-height: 20px;
    padding-left: 5px;
    border-top: 1px #d3d3d3 solid;
}



.table-pedido{
    td{
        line-height: 30px;
    }
}


/*CSS para impressão*/
@media print {
    #main{
        margin-left: 0px;
    }
    #grid{
        display: none;
    }
    #menu-left{
        display: none;
    }
    .navbar{
        display: none;
    }
}