/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
}

body.signin {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #eee;
    /* Move down content because we have a fixed navbar that is 50px tall */
    padding-top: 50px;
}

.loading {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    margin: auto;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hide-btn, .btn-group-vertical > .btn-group > .hide-btn, .btn-group > .hide-btn, .btn-group-vertical .hide-btn, .no-display {
    display: none;
}

.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.float-right {
    float: right;
}
.float-left {
    float: left;
}

.disabled-result{
    text-decoration: line-through;
}

.error-img{
    width: 80%;
    margin: 30px auto;
    display: block;
}

.inline{
    display: inline-block;
}
.block{
    display: block;
}

.legend table {
    border-collapse: initial;
}

.spacer {
    margin-top: 20px;
}


.nowrap{
    white-space: nowrap;
}

/*
*
* BOOTSTRAP CUSTOMIZATION
*
*/


#sidebar-toggle {

    float: left;
    margin-right: 0px;
    margin-left: 15px;
    color: white;

}

.col-fixed-40{
    width:40px;
    position:fixed;
    height:100%;
}

.col-fixed-150{
    width:150px;
    position:fixed;
    height:100%;
}

/*
* Clearfix hack
*/


/* table td widths */

.td-one-tenth{
    width: 10%;
}

.td-one-twenth{
    width: 5%;
}

.fullwidth{
    width: 100%;
}
.three-fifth {
    width: 70%;
}
.one-half {
    width: 50%;
}
.two-fifth {
    width: 40%;
}

.one-third {
    width: 33%;
}
.one-fifth {
    width: 20%;
}


/* table td alerts */

td.alert{
    white-space: nowrap;
}

td.alert span{
    margin: 0px 10%;
}

/*
 * Top navigation
 */

/* Hide default border to remove 1px line*/
.navbar-fixed-top {
    border: 0;
}

/* reduce top and bottom padding to increase image height*/
.navbar-brand{
    padding: 12px 15px;
}
/*increase brand image height*/
.navbar-brand > img{
    height: 120%;
}

.navbar-toggle {
    height: 40px;
    width: 45px;
}

.navbar-toggle .icon-bar {
    width: auto;
}


/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;

    width:150px;
    height:100%;
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
}

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }

    .sidebar-offset{
        padding-left:150px;
    }
}

/* Sidebar navigation */

.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
    font-weight: 1.5rem;
}
.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;

}

.nav-sidebar > .active > a {
    color: #fff;
    background-color: #428bca;
}

ul.nav li.active ul {
    display: inherit;
    padding: 0;
}

ul.nav ul{
    margin: 0;
    display: none;
}

ul.nav-sidebar li ul li a {

    padding: 10px 10px 10px 30px;
    display: block;
    background: #e3e3e3;
}

ul.nav li ul li a:hover,
ul.nav li ul li a:focus,
.nav-sidebar > li > a:hover,
.nav-sidebar > li > a:focus {
    background: rgba(66,139,202,0.8);
    color: #fff;
}

span.glyphicon{
    margin-right: 2px;
}

/*
*
*/

#calendar_form div.form-group {
    float: left;
}

#calendar_form select {
    width: 80%;
}

/*
* MODALS
*/

div.modal-confirm div.modal-footer {
    text-align: center;
}

div.modal-confirm div.modal-footer button {
    margin: 0 5px;
}

/*
 * Main content
 */

.main {
    padding: 20px;
}
@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}
.main .page-header {
    margin-top: 0;
}

/*
* Page Header
*/

.page-header {

    color: #636363;

}

.sparks {
    display: block;
    list-style: none;
    margin: 15px 0 0;
    padding: 0;
}

.sparks li:first-child, .sparks li.divider + li {
    border-left: none;
    padding-left: 0;
}
.sparks li {
    border-left: 1px dotted #c7c7c7;
    padding: 0 10px;
}
.sparks li {
    display: inline-block;
    max-height: 62px;
    overflow: hidden;
    text-align: left;
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}
.sparks-info {
    min-width: 70px;
}

.sparks li h5 {
    color: #555;
    float: left;
    font-size: 16px;
    font-weight: 400;
    margin: 0px 0 0 0;
    padding: 3px 0;
    border: none;
    text-transform: uppercase;
}

.sparks li span {
    display: block;
}
.sparks-info span {
    font-size: 20px;
    line-height: 24px;
    margin: 0;
    text-transform: none;
}

.sparks li span.glyphicon {
    text-align: center;
}

.info-box.sparks li span{
    text-align: center;
}

/* 
*Timsheet Table (Datatables)
*/

.dataTable-toolbar{
    float:left;
}

table.dataTable tbody td.selected {
    color: rgb(1, 108, 162);
    font-weight: 600;

}

#timesheet td, th {
    text-align: center;
    vertical-align: middle;
}

#timesheet th select, #timesheet .chosen-container {
    text-align: left;

}

th hr{
    margin: 5px 0px;
}

#timesheet tbody tr td:first-child {
    min-width: 110px;
}

#timesheet select, #timesheet input[type=number] {
    min-width: 100px;
    width: 95%;
}
#timesheet th.tot-hours, #timesheet th.day-travel-type {
    max-width: 60px;
    min-width: 50px;
}
#timesheet th.day-travel-site, #timesheet td.day-travel-site select {
    max-width: 90px;
    min-width: 80px;
}

#timesheet td.day-note {
    max-width: 140px;
    min-width: 110px;
}

#timesheet td.day-travel-site select,#timesheet td.day-travel-type select, #timesheet td.day-note {
    font-size: 1.2rem;
    font-weight: 400;
} 


#timesheet input[type=number]::-webkit-inner-spin-button, 
#timesheet input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

#timesheet input[type="number"] {
    -moz-appearance: textfield;
}

td.ts-status .navbar-text{
    margin: 2px 5px;
}

tr.day-off:not(.selected) td:not(.alert-danger):not(.selected), tr.day-off:not(.selected) td:not(.selected) input.form-control {

    font-style: italic;
    font-weight: 600;
    color: #a94442;
    background-image: linear-gradient(to bottom, #f8f0f0 0%, #ffecec 100%);
    background-color: #f2dede;
}

th.day-off {
    font-weight: 600;
    color: #a94442;
    background-image: linear-gradient(to bottom, #f8f0f0 0%, #ffecec 100%);
    background-color: #f2dede;
}

td.day-off {
    background-image: linear-gradient(to bottom, #f8f0f0 0%, #ffecec 100%);
    background-color: #f2dede;
}

.travel-refund {
    line-height: 40px;
    display: block;
    margin: 15px 0 0 0;
}

/*
* EXPENSES REPORT
*/

#report td, #report th {
    text-align: center;
}

#report input {
    width: 100%;
}

#report td.checked-col {
    width: 3%;
}

#report td.checked-col input{
    width: auto;
}

#report td.numb-col {
    width: 3%;
}

#report td.date-col {
    width: 9%;
}
#report td.date-col input {
    min-width: 100px;
}

#report td.cause-col input{
    min-width: 160px;
}
#report td.cause-col,th.cause-col{
    width: 25%;
}

#report td.place-col input{
    min-width: 100px;
}
#report td.place-col,th.place-col{
    width: 15%;
}

#report td.km-col {
    width: 6%;
}

#report td.amount-col {
    width: 9%;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

/*
 * Forms
 */

.form-error{
    color: #a94442;
    font-weight: 600;
    padding: 5px 3px;
    white-space: nowrap;
}

.has-error.form-group select {
    border: 1px solid #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.form-signin {
    max-width: 330px;
    padding: 15px;
}
.form-center {
    margin:0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* 
/
/   CONFIGURATION AREA
/
*/

table td a {
    display: block;
    height: 100%;
    width: 100%;
}

th.role-col label{
    vertical-align: bottom;
    margin-right: 5px;
}

table.dataTable tbody tr.selected td input {
    color: #333;
}


/*
*
* HIGHCHARTS
*
*/


div.dash-chart .highcharts-color-0 {
    fill: #99ccff;
    stroke: #66b3ff;
}
div.dash-chart .highcharts-color-1 {
    fill: #adebad;
    stroke: #84e184;
}
div.dash-chart .highcharts-color-2 {
    fill:  #ffe066;
    stroke: #ffd633;
}
div.dash-chart .highcharts-color-3 {
    fill: #bb99ff;
    stroke: #9966ff;
}
div.dash-chart .highcharts-color-4 {
    fill: #ff8080;
    stroke: #ff4d4d;
}
div.dash-chart .highcharts-color-5 {
    fill: #f7a35c;
    stroke: #f7a35c;
}
div.dash-chart .highcharts-color-6 {
    fill: #2b908f;
    stroke: #2b908f;
}
div.dash-chart .highcharts-color-7 {
    fill: #f45b5b;
    stroke: #f45b5b;
}
div.dash-chart .highcharts-color-8 {
    fill: #bbff33;
    stroke: #99e600;
}


