/*
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
*/

/*@font-face {
    font-family: 'Muli';
    font-style: normal;
    font-weight: 400;
    src: local('Muli'), url(../fonts/muli.woff) format('woff');
}*/

/*
@font-face {
        font-family: 'Ubuntu';
        src: url('Ubuntu-R-webfont.eot');
        font-weight: normal;
        font-style: normal;
}
@font-face {
        font-family: 'Ubuntu';
        src: url('Ubuntu-I-webfont.eot');
        font-weight: normal;
        font-style: italic;
}
@font-face {
        font-family: 'Ubuntu';
        src: url('Ubuntu-B-webfont.eot');
        font-weight: bold;
        font-style: normal;
}
@font-face {
        font-family: 'Ubuntu';
        src: url('Ubuntu-BI-webfont.eot');
        font-weight: bold;
        font-style: italic;
}
*/

@import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700&subset=latin,latin-ext);

*{

    font-family: 'Quattrocento Sans', 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;
    z-index:-1;
}

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: #6d0019; /* Old browsers */
    background: -moz-linear-gradient(top,  #6d0019 0%, #8f0222 56%, #a90329 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6d0019), color-stop(56%,#8f0222), color-stop(100%,#a90329)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #6d0019 0%,#8f0222 56%,#a90329 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #6d0019 0%,#8f0222 56%,#a90329 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #6d0019 0%,#8f0222 56%,#a90329 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #6d0019 0%,#8f0222 56%,#a90329 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6d0019', endColorstr='#a90329',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;
}

/**********
* 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;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a90329+0,8f0222+44,6d0019+100 */
    background: #a90329; /* Old browsers */
    background: -moz-linear-gradient(top,  #a90329 0%, #8f0222 44%, #6d0019 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#a90329), color-stop(44%,#8f0222), color-stop(100%,#6d0019)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #a90329 0%,#8f0222 44%,#6d0019 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #a90329 0%,#8f0222 44%,#6d0019 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #a90329 0%,#8f0222 44%,#6d0019 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #a90329 0%,#8f0222 44%,#6d0019 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a90329', endColorstr='#6d0019',GradientType=0 ); /* IE6-9 */

    color:white;
    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: white;
    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;
}

.attachment{
    font-size: 1em;
    margin: 2px;
    background-color: #3276b1;
    border-color: #285e8e;
}

.attachment span{
    cursor: pointer;
}

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;
}

.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;
}

@media (min-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: 160px 15px 0;
    }

    .navbar-nav {
        float: right;
    }

    .navbar-nav{
        margin: 5px -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 20px 5px 20px;
        -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.9em;
        font-weight: bold;
        width: 75px;
        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 .input-group.with-checkbox .form-control-feedback{
    top: 0;
    /*left: -30px;*/
    right:95px;
    z-index: 999;
}

.has-feedback .input-group.date .form-control-feedback{
    top: 0;
    right: 40px;
    z-index: 999;
}



/**
* 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;
}