/**
 * Kikkert Tweewielers
 * Main style definitions
 *
 * Copyright 2013 DriVerWebs
 * http://driverwebs.nl/
**/

/* ==========================================================================
   Layout
   ========================================================================== */
body {
    background-attachment: fixed;
    background-image: url('/img/logo-bicycle.jpg');
    background-position: -120px bottom;
    background-repeat: no-repeat;
}
header div.navbar {
    margin-bottom: 10px;
}
header div.navbar-inner {
    padding: 0 4%;
}
header .dropdown-menu li > a {
    padding: 8px 22px;
}
/* Receipts */
#twitterbootstrapmenu-logistics + ul li:nth-child(4) {
    border-top: 1px solid #e5e5e5;
}
/* Stolen objects, object types */
#twitterbootstrapmenu-objects + ul li:nth-child(2), #twitterbootstrapmenu-objects + ul li:nth-child(4) {
    border-top: 1px solid #e5e5e5;
}
/* Users */
#twitterbootstrapmenu-administration + ul li:nth-child(2) {
    border-top: 1px solid #e5e5e5;
}
div#content {
    background-color: #fff;
    margin: 0 4%;
    overflow: auto;
    /*padding: 0 7px 7px 7px;*/
}
div#page-header {
    overflow: auto;
}
h1 {
    line-height: normal;
    margin: 0;
}
h1 a {
    color: inherit;
}
h1 a:hover {
    text-decoration: none;
}
h2 {
    margin: 0;
}
h2.legend {
    font-size: 21px;
    margin: 0 0 0 15px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.navbar-inner {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}
.navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus, .navbar-inverse .nav li.dropdown.open > .dropdown-toggle {
    background-color: transparent !important;
}
.navbar-inner {
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}
.navbar .brand {
    margin-right: 10px;
    padding: 6px 20px;
}
.navbar .brand img {
    height: 40px;
    padding-left: 7px;
    width: 236px;
}
ul.nav li {
    line-height: 32px;
}
.user-menu {
    font-size: 11px;
    line-height: initial;
    margin: 2px 0 0 0;
    padding-right: 7px;
    text-align: right;
}
.user-menu a {
    color: #999;
}
.user-menu a:hover {
    color: #fff;
    text-decoration: none;
}
span#version {
    font-size: 10px;
    margin-right: 4%;
    padding-right: 7px;
    position: absolute;
    top: 39px;
    right: 0;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    clear: both;
    margin: 15px 30px 15px 50px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
textarea {
    resize: none;
}
.box, fieldset {
    border: 1px solid #ddd;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 10px 15px;
}
fieldset {
    margin-top: 40px;    
}
.fieldset-medium {
    width: 460px;
}

fieldset legend {
    border: 0;
    font-weight: bold;
    margin: -50px 0 0 0;
    position: absolute;
    width: auto;
}
legend + .control-group {
    margin-top: 0;
}
form .control-group {
    margin-bottom: 7px !important;
}
form .control-group:last-child {
    margin-bottom: 0 !important;
}
form .required label {
    background-image: url('/img/required.png');
    background-position: right 4px;
    background-repeat: no-repeat;
    padding-right: 8px;
}
form .help-block {
    font-size: 11px;
    margin-top: 0 !important;
}
label.control-label {
    width: auto !important;
}
/* Errors */
form .no-error {
    border-color: #ccc !important;
    color: #555 !important;
}
form .no-error:focus {
    border-color: rgba(82, 168, 236, 0.8) !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6) !important;
}
form .control-group.error .help-block {
    color: #595959 !important;
}
form .control-group.error .input-prepend .add-on {
    border-radius: 4px 0 0 4px;
    -moz-border-radius: 4px 0 0 4px;
    -webkit-border-radius: 4px 0 0 4px;
}
form .control-group.error .input-append .add-on {
    border-radius: 0 4px 4px 0;
    -moz-border-radius: 0 4px 4px 0;
    -webkit-border-radius: 0 4px 4px 0;
}
form .controls ul {
    background-color: #333;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    color: #fff;
    display: none;
    font-size: 12px;
    padding: 3px 10px;
    position: absolute;
    margin: 5px 0 0 0;
    list-style: none;
    z-index: 100;
}
/* Show arrow for errors */
form .controls ul:after
{
    border-right: 5px transparent solid;
    border-bottom: 5px #333 solid;
    border-left: 5px transparent solid;
    color: #f00;
    content: '';
    height: 0;
    position: absolute;
    left: 25px;
    top: -5px;
    width: 0;
}
/* Display errors on hover (only immediate errors) */
form .controls input:hover + ul, form .controls select:hover + ul, form .controls textarea:hover + ul {
    display: block;
}
form .controls input.no-error:hover + ul, form .controls select.no-error:hover + ul, form .controls textarea.no-error:hover + ul {
    display: none;
}
/* Display errors on hover for input-prepend & input-append (non-immediate errors) */
form .controls .input-prepend input:hover ~ ul, form .controls .input-prepend select:hover ~ ul, form .controls .input-prepend textarea:hover ~ ul,
form .controls .input-append input:hover ~ ul, form .controls .input-append select:hover ~ ul, form .controls .input-append textarea:hover ~ ul {
    display: block;
}
/* Login */
.form-login {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
    margin: 0 auto 20px;
    max-width: 300px;
    padding: 19px 29px 29px;
}
.form-login h2 {
    margin-bottom: 5px;
}
.form-login .alert {
    margin-bottom: 10px;
}
.form-login input#remember-me {
    float: left;
    margin-right: 5px;
}

/* ==========================================================================
   Tables
   ========================================================================== */
div.dataTables_processing {
    background-image: url('/img/loading.gif');
    background-repeat: no-repeat;
    clear: both;
    font-size: 0.8em;
    line-height: 16px;
    padding-left: 21px;
}
table.dataTable {
    border-bottom: 1px solid #ddd;
    clear: both;
    margin-bottom: 0 !important;
}
table.dataTable tr.filters th {
    vertical-align: top;
}
table.dataTable tr.small-filters label {
    clear: left;
    float: left;
    padding-top: 2px;
    margin-bottom: 0;
    margin-right: 5px;
}
table.dataTable tr.small-filters .input-append {
    margin-bottom: 0;
}
table.dataTable tr.small-filters input, table.dataTable tr.small-filters select {
    padding-bottom: 1px;
    padding-top: 1px;
}
table.dataTable tr.filters input, table.dataTable tr.filters select {
    margin-bottom: 2px;
}
table.dataTable tr.small-filters select {
    height: 24px;
    line-height: 24px;
}
table.dataTable tr.small-filters .add-on {
    padding-bottom: 1px;
    padding-top: 1px;
}
table.has-icons tr.filters th:last-child {
    text-align: right;
    vertical-align: top;
}
table.has-icons tr td:last-child {
    text-align: right;
}
table.has-icons tr td:last-child i {
    margin-left: 4px;
}
table.dataTable td.dataTables_empty {
    text-align: left !important;
}
table.datatable td.amount, table .amount {
    text-align: right;
}
table.dataTable td.placeholder {
    text-align: left !important;
}
table.dataTable input[type=checkbox] {
    margin-top: 3px;
}
div.dataTables_info {
    float: left;
    font-size: small;
    margin-top: 3px;
}
div.dataTables_paginate {
    float: right;
    margin: 7px 0 0 0;
}

/* Sorting */
table.table thead .sorting,
table.table thead .sorting_asc,
table.table thead .sorting_desc,
table.table thead .sorting_asc_disabled,
table.table thead .sorting_desc_disabled {
    cursor: pointer;
    padding-left: 19px;
}

table.table thead .sorting { background: url('/img/tables/sort-both.png') no-repeat center left; }
table.table thead .sorting_asc { background: url('/img/tables/sort-asc.png') no-repeat center left; }
table.table thead .sorting_desc { background: url('/img/tables/sort-desc.png') no-repeat center left; }

table.table thead .sorting_asc_disabled { background: url('/img/tables/sort-asc-disabled.png') no-repeat center right; }
table.table thead .sorting_desc_disabled { background: url('/img/tables/sort-desc-disabled.png') no-repeat center right; }

.table tbody tr.choosed-earlier:hover, .table tbody tr.choosed-earlier , table tbody tr.choosed-earlier td{
    background-color: #fbae9c !important;

}

.table tbody tr.clicked{
    background: rgba(0, 221, 0, 0.4);
}
.table tbody tr.clicked > td{
    background: rgba(0, 221, 0, 0.4);
}
.table tbody tr.clicked:hover{
    background: rgba(0, 221, 0, 0.6);
}

/* ==========================================================================
   Datepicker
   ========================================================================== */
div.date .add-on i {
    display: inline-block !important;
}
div.date input {
    width: 75px;
}
.datepicker table {
    height: 224px;
    width: 264px;
}
.datepicker td.day {
    width: 25px !important;
}
div.date + i.reset-date {
    cursor: pointer;
    margin: 2px 0 0 3px;
}

/* ==========================================================================
   Helpers
   ========================================================================== */
.close[disabled] {
    display: none;
}
.clickable {
    cursor: pointer;
}
img.loading {
    height: 16px;
    width: 16px;
}
.margin-bottom-20{
    margin-bottom: 20px;
}
.margin-bottom-10{
    margin-bottom: 10px;
}
.margin-top-20{
    margin-top: 20px;
}
.margin-top-10{
    margin-top: 10px;
}
/*DO not use important !!!!!!!!!!!!! IT's will broke all modals */
.hide{
    /*display: none !important;*/
}
.hide-modal{
    display: none;
}
/* ==========================================================================
   Buttons
   ========================================================================== */
.dropdown-menu-align-right {
    right: 0;
    left: auto; 
}

.boldOption{
    font-weight:bold;
}
.toggle-vis.unselected{
    color: #aaaaaa;
}
.btn-wide{
    width:100%;
}
/* ==========================================================================
   Modals
   ========================================================================== */
#commentModal textarea{
    width:100%;
    padding: 0;
}

/* ==========================================================================
   Double scroll hack
   ========================================================================== */
.routeselector div#content{
    overflow: hidden;
}
.routeselector div#content.double-scroll1{
    margin: 0;
    overflow: auto;
}
.routeselector .div-placeholder{
    width: 1300px;
    height: 20px;
}
.routeselector div#content.double-scroll1.wrapper2{
    min-height: 500px;
}
/* ==========================================================================
    Iframe
   ========================================================================== */
#map-iframe{
    overflow: hidden;
}

/* 
 * Revenues
 */

.revenue-table th {
    vertical-align: bottom;
}

.revenue-table th form {
    margin: 20px 0 0 0;
}

/*
 * Route planner
 */

ul.plan_route_explanation {
    list-style-type: none;
    text-align: right;
    margin: 20px;
}

ul.plan_route_explanation li {
    display: inline-block;
    margin-right: 10px;
}

ul.plan_route_explanation li span {
    padding: 2px 5px;
    text-decoration: none;
    background-color: #efcb01;
    color: #000;
    margin-right: 5px;
}

i.icon{
    cursor:pointer
}

.weekNumberSelector {
    margin-bottom: 0;
}

/* MAC HACK */
.depot-form .input-append .add-on,
.depot-form input {
    min-height: 30px;
}

.modal-body {
    max-height: 500px;
}