/*
Copyright (C) 2014 zRed Comunicaciones y Automatización S.L.
See the file "LICENSE" for the full license governing this code.
*/
/*
    Created on : 25-mar-2014, 18:07:50
    Author     : Pedro Sánchez Alguacil
*/


@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic);

*{

    font-family: 'Lato', sans-serif;
}

html {
    position: relative;
    min-height: 100%;
}
body {
    /* Margin bottom by footer height */
    margin-bottom: 80px;
}
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}

body > .container {
    padding: 100px 15px 0;
}
.container .text-muted {
    margin: 20px 0;
}

footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

code {
    font-size: 80%;
}

.navbar{
    background: rgb(153,255,148); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(153,255,148,1) 0%, rgba(201,255,176,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(153,255,148,1)), color-stop(100%,rgba(201,255,176,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(153,255,148,1) 0%,rgba(201,255,176,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(153,255,148,1) 0%,rgba(201,255,176,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(153,255,148,1) 0%,rgba(201,255,176,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(153,255,148,1) 0%,rgba(201,255,176,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99ff94', endColorstr='#c9ffb0',GradientType=0 ); /* IE6-9 */


    min-height: 50px;

    -webkit-box-shadow: 0px 0px 5px 0px #000000;
    -moz-box-shadow: 0px 0px 5px 0px #000000;
    box-shadow: 0px 0px 5px 0px #000000;
    border:none;
}

.navbar-brand{
    margin: 5px 15px !important;
    padding: 0px;
    height: auto;
    max-height: 40px;
}


.navbar img{
    max-height:inherit;
}


.navbar-nav img{
    height: 24px;
}

.change-alert{
    position: absolute;
    width: 100%;
    text-align:center;
    padding: 4px 0px;
    display:none;
}
/**********
* USER BAR
***********/
div.user_bar {
    background: #ececec; /* Old browsers */
    background: -moz-linear-gradient(top, #ececec 0%, #d8d8d8 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ececec), color-stop(100%,#d8d8d8)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* Opera11.10+ */
    background: -ms-linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* IE10+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ececec', endColorstr='#d8d8d8',GradientType=0 ); /* IE6-9 */
    background: linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* W3C */

    padding:5px 0px;
    display: block;
    -webkit-box-shadow: 0px 0px 5px 0px #000000;
    -moz-box-shadow: 0px 0px 5px 0px #000000;
    box-shadow: 0px 0px 5px 0px #000000;
    overflow: hidden;
    width:100%;
}

div#user_info_container {
    text-align:right;
    display: block;
    margin: 0 auto;
    position: relative;
}

div#user_info_container table{
    float: right;
    border-collapse: collapse;
    border-spacing: 0px;
}

div#user_info_container td{
    padding: 0px 10px;
    border-right: solid 1px gray;
}

div#user_info_container td:last-child{
    border-right: none;
    padding: 0px 0px 0px 10px;
}

div.user_bar a{
    text-decoration: none;
}

/**********
* FOOTER
***********/

footer{
    border-top: 1px solid darkgray;
    background: rgb(201,255,176); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(201,255,176,1) 0%, rgba(153,255,148,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(201,255,176,1)), color-stop(100%,rgba(153,255,148,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(201,255,176,1) 0%,rgba(153,255,148,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(201,255,176,1) 0%,rgba(153,255,148,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(201,255,176,1) 0%,rgba(153,255,148,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(201,255,176,1) 0%,rgba(153,255,148,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9ffb0', endColorstr='#99ff94',GradientType=0 ); /* IE6-9 */

    color: #009900;
    text-shadow: 1px 1px 1px #757575;
    filter: dropshadow(color=#757575, offx=1, offy=1);
    padding: 20px 0px;
    clear:both;
    -webkit-box-shadow: 0px -1px 8px 0px #000000;
    -moz-box-shadow: 0px -1px 8px 0px #000000;
    box-shadow: 0px -1px 8px 0px #000000;
    font-size:12px;
}

div.footer_content{
    margin: auto;
}

footer img{
    height:20px;
}

footer a,footer a:visited{
    color: #009900;
    text-decoration: none;
}

.navbar-default .navbar-toggle {
    border-color: gray;
    background-color: #ddd;
}

.navbar-default .navbar-toggle:hover {
    border-color: gray;
    background-color: #bbb;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color:gray;
}

.navbar-nav {
    margin: 0px -15px;
    background-color:#ddd;
}

.navbar-nav li{
    border-bottom: 1px solid gray;
}

.navbar-nav {
    margin: 0px -15px;
}

.content_window{
    padding: 20px;
    background: rgb(238,238,238);
    background: -moz-linear-gradient(top,  rgba(238,238,238,1) 0%, rgba(204,204,204,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(238,238,238,1)), color-stop(100%,rgba(204,204,204,1)));
    background: -webkit-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%);
    background: -o-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%);
    background: -ms-linear-gradient(top,  rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%);
    background: linear-gradient(to bottom,  rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 );

    -webkit-box-shadow: 0px 1px 5px 0px black;
    -moz-box-shadow: 0px 1px 5px 0px #000000;
    box-shadow: 0px 1px 5px 0px black;

    border-radius: 10px;
}

h1{
    margin:0px 0px 15px;
}

h1 > img.inline{
    max-height:1.5em;
}


img.inline{
    max-height:1em;
}

table img.inline{
    max-height:1.5em;
}

.position_helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

button, html input {
    transition: opacity 0.5s ease-in-out, background 0.5s ease-in-out;
}

button[disabled], html input[disabled] {
    opacity: 0.5;
}

.button_bar{
    text-align: right;
}

a{
    cursor: pointer;
}

pre{
    word-break: normal;
    word-wrap: normal;
    white-space: pre-wrap;
    overflow-x: hidden;
}


legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: bold;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid darkgray;
}

.section-title {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    border: 0;
    border-bottom: 1px solid darkgreen;
}

.scroll_text{
    max-height: 100px;
    overflow-y:auto;
    overflow-x: hidden;
}

.scroll_text.large{
    max-height: 250px;
}

textarea {
    resize: vertical;
}

.work_img {
    display: inline-block;
    text-align: center;
    padding:3px;
    border:1px solid darkgray;
    -webkit-box-shadow: 0px 1px 5px 0px black;
    -moz-box-shadow: 0px 1px 5px 0px #000000;
    box-shadow: 0px 1px 5px 0px black;
    background-color:white;
    border-radius: px;

}
.work_img img{
    max-width:100%;
    max-height:150px;
}

.assignedWorker{
    max-height: 50px;
    max-width: 50px;
    margin:3px;
    border:1px solid darkgray;
    -webkit-box-shadow: 0px 1px 5px 0px black;
    -moz-box-shadow: 0px 1px 5px 0px #000000;
    box-shadow: 0px 1px 5px 0px black;
    background-color:white;
    transition: opacity 0.5s ease-in-out, border 0.4s ease-in-out;
}

.assignedWorker.past{
    opacity:0.5;
}

.assignedWorker.notes{
    border:2px solid yellow;
}

.assignedWorker.active{
    border:1px solid red;
}


table .assignedWorker{
    max-height: 30px;
    max-width: 30px;
}

span.risk_1,span.risk_2,span.risk_3,span.risk_4,span.risk_5{
    font-weight: bold;
}

span.risk_1{
    color: red;
}

span.risk_2{
    color: #FF6666;
}

span.risk_4{
    color: darkseagreen
}

span.risk_5{
    color:#009900;
}

.btn:active, .btn.active {
    -webkit-box-shadow: inset 0px 0px 20px rgba(0,0,0,.4);
    box-shadow: inset 0px 0px 20px rgba(0,0,0,.4);
}



big span{
    font-size:1.7em;
}

.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 1200px){

    .modal-lg.modal-extrabig {
        width: 1200px;
    }

    .container {
        width: 90%;
    }
}
@media (min-width: 768px) {

    .ui-tooltip, .qtip{
        min-width:400px !important;
    }

    .navbar{
        min-height: 90px;
    }
    .navbar-brand{
        margin: 10px 15px !important;
        max-height:80px;
    }
    body > .container {
        padding: 190px 15px 0;
    }

    .navbar-nav {
        float: right;
    }

    .navbar-nav{
        margin: 13px -15px;
        background: #ececec; /* Old browsers */
        background: -moz-linear-gradient(top, #ececec 0%, #d8d8d8 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ececec), color-stop(100%,#d8d8d8)); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* Opera11.10+ */
        background: -ms-linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* IE10+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ececec', endColorstr='#d8d8d8',GradientType=0 ); /* IE6-9 */
        background: linear-gradient(top, #ececec 0%,#d8d8d8 100%); /* W3C */

        padding: 5px 10px 5px 10px;
        -webkit-box-shadow: 1px 1px 5px 1px #222222;
        -moz-box-shadow: 1px 1px 5px 1px #222222;
        box-shadow: 1px 1px 5px 1px #222222;
        overflow: hidden;

        border-bottom-right-radius: 30px 50%;
        border-top-right-radius: 30px 50%;

        border-bottom-left-radius: 30px 50%;
        border-top-left-radius: 30px 50%;
        text-align:center;
    }

    .navbar-nav img{
        height: 40px;
        display: block;
        margin: 0 auto 2px;
    }

    .navbar-nav li{
        font-size:0.8em;
        font-weight: bold;
        width: 70px;
        padding: 3px !important;
    }

    .navbar-nav li > a{
        color: blue !important;
        padding: 0px !important;
        line-height: normal;
    }

    body {
        /* Margin bottom by footer height */
        margin-bottom: 120px;
    }
    footer {
        height: 100px;
    }

    footer img{
        height:auto;
    }

    .navbar-nav li{
        border-bottom: none;
        transition: transform 0.2s linear;
        -moz-transition: -moz-transform 0.2s linear;
        -o-transition: -o-transform 0.2s linear;
        -webkit-transition: -webkit-transform 0.2s linear;
    }

    .navbar-nav li:hover{
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);
    }

}

div.has-feedback[class^="col-"] >  .form-control-feedback {
    position: absolute;
    top: 25px;
    right: 15px;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
}

.has-feedback.form-group.with-checkbox .form-control-feedback{
    top: 0;
    /*left: -30px;*/
    right:95px;
    z-index: 999;
}

.has-feedback.form-group.with-span .form-control-feedback{
    top: 25px;
    right: 40px;
    z-index: 999;
}

.panel-title{
    font-size:18px;
}

.label-as-badge {
    border-radius: 1em;
    cursor: default;
}

td.quarter{
    width:5%;
    min-width: 50px;
}

/**
* BUTTON GROUP IN TABLE HACK
**/

td .btn-group > .btn, .btn-group-vertical > .btn {
    float: none;
    position: relative;
}

td .btn-group .btn + .btn {
    margin-left: -3px;
}

/**
* ALERT IN TABLE
***/
td > .alert{
    margin-bottom:0px;
    padding:3px;
}
/**
* BLINK EFFECT
**/
.blink{
    animation:myfirst 2s;
    -moz-animation:myfirst 2s infinite; /* Firefox */
    -webkit-animation:myfirst 2s infinite; /* Safari and Chrome */
}


@-moz-keyframes myfirst /* Firefox */
{
    50%  {background:#bce8f1;}
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
    50%  {background: #bce8f1;}
}

.blink-red{
    animation:myfirstred 2s;
    -moz-animation:myfirstred 2s infinite; /* Firefox */
    -webkit-animation:myfirstred 2s infinite; /* Safari and Chrome */
}

form{
    overflow: visible !important;
}

@-moz-keyframes myfirstred /* Firefox */
{
    50%  {background: darkred;}
}

@-webkit-keyframes myfirstred /* Safari and Chrome */
{
    50%  {background: darkred;}
}

.modal-body {
    max-height: calc(100vh - 212px);
    overflow-y: auto;
}

.visibility.bootstrap-select>.dropdown-toggle{
    padding-right: 12px !important;
}
.visibility.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: auto !important;
}
.visibility button{
    color:#333 !important;
}

.visibility .glyphicon, .visibility .bs-caret{
    display:none !important;
}
.visibility .dropdown-menu>.selected>a, .visibility .dropdown-menu>.selected>a:hover, .visibility .dropdown-menu>.selected>a:focus {
    color: #fff;
    text-decoration: none;
    background-color: #428bca;
    outline: 0;
}
