﻿body {
  padding-top: 3.5em;
}

table.table > thead > tr > th,
table.table > tbody > tr > th, 
table.table > tfoot > tr > th, 
table.table > thead > tr > td, 
table.table > tbody > tr > td, 
table.table > tfoot > tr > td {
    vertical-align: middle;
}

.no-downloads {
    font-weight: bold;
    font-size: 1.1em;
}

.panel-title{
    font-size:18px;
    padding:10px 16px;
}

.form-control[disabled], .btn-group>.disabled {
    background-color: #265a88 !important;
    border: #265a88 !important;
    opacity: 0.65 !important;
}
    
/** Nav **/

    @media (max-width: 767px) {
        .dropdown-header {
            color: white !important;
            font-size: 16px !important;
            font-weight: 800;
        }

        .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
            color: white !important;
        }
    }

    .navbar-collapse { 
    max-height: 100% !important; 
}

.navbar-brand{
    margin-bottom:0px;
    height:100%!important;
}

/*Other bootstrap overrides*/
/* form */
label {
    margin-bottom: 4px;
    margin-top: 8px;
}

.bootstrap-select.btn-group .dropdown-menu li a span.text {
    white-space: normal;
}

/** Home **/
@media (min-width: 800px) {
    .home-container {
        display: flex;
    }
    .home-page-option {
        flex: 1;
        text-align: center;
    }   
}
.home-page-option p  {
    margin:0.7em 0.5em 1.75em 0.7em;
}   

.home-page-option {
    text-align: center;
} 

.dropdown-menu > li > em {
    display: block;
    padding: 3px 8px;
}

/** Log in **/
#loginForm, #change-password-form {
  max-width: 25em;
  padding: 1em;
  margin: 0 auto;
}

#loginForm .loginForm-heading,
#loginForm .checkbox {
  margin-bottom: 10px;
}

#loginForm .checkbox {
  font-weight: normal;
}

#loginForm .checkbox input 
{
    margin-left: 0px !important;
}

#loginForm .form-control, #change-password-form .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;
}

#loginForm .form-control:focus, #change-password-form .form-control:focus {
  z-index: 2;
}

#loginForm input[type="text"], #change-password-form input[type=text] {
  margin-bottom: 10px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

#loginForm input[type=password], #change-password-form input[type=password] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Version info */
#versionInfo{
    margin-top: 3em;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5em;
}

/* Callouts */
.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}

.bs-callout-narrow 
{
    padding: 10px;
    margin: 1px 0;
    border: 1px solid #eee;
    border-left-width: 10px;
}

.bs-text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
}

.modal-body
{
    max-height: 800px !important;
} 

.btn 
{
    background-color:rgb(221, 221, 221);
}

.navbar-toggle {
    float: left !important;
    margin-left: 15px !important;
}

.navbar-right {
    float: left !important;
    margin-left: 15px;
} 

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none !important; 
  margin: 0 !important; 
}

input[type=text]::-ms-clear {
    display: none;
}

input[type=number]::-ms-clear {
    display: none;
}

input[type=number] {
    -moz-appearance: textfield;
}

.filterValuesPanel
{
    display: none;
}

.filterCategoryCaret
{
    float: right;
    margin-top: 9px;
}

.redFlag{
    color:Red !important; 
    cursor:default !important;   
 }

.grayFlag{color:gray;}

.RedFlagFormContainer{
     border:1px solid black;
     border-radius:0.5em;
     background-color:#F1F7FB;
     padding:1.5em; 
}

.ActionFormContainer{
     border:1px solid black;
     border-radius:0.5em;
     background-color:#F1F7FB;
     padding:1.5em; 
}

.occurence-action-button-link {
    float: right;
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .occurence-action-button-link {
        float: none;
        display: block;
    }
    .occurence-action-button-link a {
        display: block;
        width: 100%;
    }
}
#mainContentPanel{clear:both;}

/*Prevent 'Prev' and 'Next' text from overlaying icons*/
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    color: transparent;
}

/* So we wont impact the original bootstrap menu
or it's pseudo call-out arrow the menu is wrapped
in a sub dropdown-menu with a chained scroll-menu */
ul.scroll-menu {
    position: relative;
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -moz-overflow-scrolling: touch;
    -ms-overflow-scrolling: touch;
    -o-overflow-scrolling: touch;
    overflow-scrolling: touch;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: auto;
    max-height: 300px;
    margin: 0;
    border-left: none;
    border-right: none;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -ms-border-radius: 0 !important;
    -o-border-radius: 0 !important;
    border-radius: 0 !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
}

.navbar-inverse .navbar-nav > li > a {
    color: #FFFFFF !important;
}

.instructionText{
   margin: 2em 0 2em 0; 
}

.colourSlice{
    color:Red;
    border-left:5px solid red !important;
}

.navbar-details-custom {
    color: #777777;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 1.8rem;
    margin: 1em 0 1em 0;
}
.navbar-text-only {
    margin: 1em 0 1em 0;
}

button.btn.no-border-radius {
    border-radius: 0;
}

.gallery-link:hover,
.gallery-link:focus {
    text-decoration: none;
}
.create-gap {
    margin-right: 0.4rem;
}

.table > caption + thead > tr:first-child > th, 
.table > colgroup + thead > tr:first-child > th, 
.table > thead:first-child > tr:first-child > th, 
.table > tfoot > tr > th, 
.table > tfoot:first-child > tr:first-child > th, 
.table > caption + thead > tr:first-child > td, 
.table > colgroup + thead > tr:first-child > td, 
.table > thead:first-child > tr:first-child > td,
.table > tfoot > tr > td {
    background: #337ab7;
    color: white;
}

.active.ui-state-default a, 
.active.ui-state-default a:link, 
.active.ui-state-default a:visited {
    color: #fff;
}

.datepicker[readonly],.datepickerpast[readonly]{
    background-color:#FFF !important;
}

#DiaryEntryPanel div.panel-body ,
#AwaitStatusPanel div.panel-body ,
#EditOrderLinePanel div.panel-body ,
#DeleteOrderLinePanel div.panel-body 
{
    background-color:#efefef;
}

#OrderCompletionPanel,
#AddOrderLinePanel
{
    background-color:#efefef;
    border: 1px solid #ccc;
}

#OrderCompletionPanel .bootstrap-select > select {
    left: unset;
}

#TermsAndConditionsPanelHolder {
    border: 1px solid black;
    border-radius: 5px;
    padding: 1em;
    margin-bottom: 1em;
}

.input-group .bootstrap-select.form-control {
        z-index: inherit;
    }

.SORSearchError{
    color:red;
    font-weight:bold;  

}

input[type="checkbox"].usecustom {
    display:none; 
}

tr.editedOrderLine td{
    background-color:powderblue;
}

tr.editedOrderLine td:nth-child(3):before{
    content: "** Edits Pending **";
    font-weight:bold;
    display:block;
}

tr.deletedOrderLine td{
    background-color:pink;
}

tr.deletedOrderLine td:nth-child(3):before{
    content: "** Flagged For Deletion **";
    font-weight:bold;
    display:block;
}

.table > tbody > tr > td.actions {
    padding-bottom: 0;
    white-space: nowrap;
}

.actions .btn {
    margin-bottom: 1em;
}


.btn-radio {
    border-color: #245580;
    font-weight:bold;
}

.btn-radio:hover,
.btn-radio:focus {
  background-color: #265a88;
  background-position: 0 -15px;
  color:white;
}

.btn-radio:active,
.btn-radio.active {
  background-color: #265a88;
  border-color: #245580;
  color:white;
}

.btn-radio:hover{
    color:#FF0000 !important;
}

/* BEGIN: Custom checkbox style for bootstrap */
.custom-check {
	display: inline-block;
    vertical-align: bottom;
	width: 25px; height: 25px;
	background: white;
	border: 1px solid #CCCCCC;
	font-family: 'Glyphicons Halflings';
	font-size: 22px;
	line-height: 1;
}

.custom-check::before{
  content: "\e013";
  color: #424242;
  display: none;
}

input[type=checkbox]:checked+.custom-check::before{
  display: block;
  color: white;
  background-color: #554236;
}
/* END: Custom checkbox style for bootstrap */

.togglebutton{
    float: right;
    padding: 0 5px !important;
}

 /* Collapsible toggle buttons: Icon when the collapsible content is shown */
.togglebutton:after {
    font-family: "Glyphicons Halflings";
    content: "\e114";   
}
/* Icon when the collapsible content is hidden */
.togglebutton.collapsed:after {
    content: "\e080";
}

#tbl-sors > tbody > tr.active > td{
    background-color:lightblue;
}

.spinnerContainer{   
    height:200px;    
}

.spinner:before {
    content: " Loading... ";
    font-weight:bold;
    display:block;
    margin-left: -100px;
    margin-top: -10px;
    color: #FFFFFF;
}

.loading-modal
{
    position: fixed;
    z-index: 999;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: Black;
    filter: alpha(opacity=60);
    opacity: 0.6;
    -moz-opacity: 0.6;
}

.pagination li.ui-state-default {
    /* Needed to remove li's being rendered to the side of pagination links */
    border: none;
}

@media (max-width: 1199px) {
    .actions .btn {
        padding: 12px 16px;
    }
}

@media (max-width:767px)
{
    .input-group {    
        margin-bottom: 0.75rem;
    }  
    .input-group.attributes-dropdown {
        display: block;
    }
    .input-group.attributes-dropdown button {
        width: 100%;
    }
    .input-group.advanced-search {
        display: block;
        text-align: center;
    }
    ul.dropdown-menu {
        width: 100%;
    }
    .col-xs-12.attr-name-and-address {
        padding-left: 0;
        padding-right: 0;
    }
    .tabPanel {
        margin-top: 1rem;
    }
}
 
@media(min-width: 600px)
{
    .tabPanel
    {
        padding:10px;
        border-left-width: 1px;
        border-left-style: solid;
        border-left-color: #dddddd;
    
        border-right-width: 1px;
        border-right-style: solid;
        border-right-color: #dddddd;
    
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #dddddd;
    }
} 

@media(max-width:420px){

    div.visible-xs-inline:before {
        content: "\A";
        white-space: pre;   
    }

    #OrderDetailsPanel div.form-group:nth-child(even) {
        background: #F6F6F6;
        padding:15px;
    }

    #OrderDetailsPanel div.form-group:nth-child(odd) {
        background: #FFFFFF;
    }

    .buttonBar button{
        width:48%;
    }

    .bootstrap-select .dropdown-menu {
        width:75vw; 
        max-width: 75vw;
    }

    .bootstrap-select.btn-group .dropdown-toggle .filter-option {
        width: 65vw !important;
    }

}

@media (min-width: 768px){
   
    textarea.form-control {
        min-width:550px;
    }

    #diaryTitle {
        min-width:550px;
    }

    #OrderAwaitStatusForm .dropdown-menu,    
    #OrderAwaitStatusForm .dropdown-menu input,
    #OrderAwaitStatusForm .bootstrap-select{
        min-width:500px;
    }

}

.validation-summary-valid.alert-danger {
    display: none;
}

#OrderReferenceSearchForm, #AssetReferenceSearchForm {
    margin-bottom: 2em;
}

fieldset{
    margin-top: 0.75em !important;
}

#orderLinesContent, #diaryLinesContent {
    margin-top: 2em;
    margin-bottom: 1.5em;
}

.ui-datepicker {
    z-index:2 !important;
}

#VaryOrderForm{
    margin-top: 1.5em;
}

legend {
    border-bottom: 1px solid #ccc !important;
}

.dataTables_info {
    margin-bottom: 1.5em;
    float:left;
}

.dataTables_paginate {
    margin-bottom: 1.5em;
    float:right;
}

.dataTables_paginate ul li.ui-button {
    margin-right: 0 !important;
}

.dataTables_length {
    float:left;
}

#orderSearchExportButtonsHolder {
    float:right;
}

#searchResults_wrapper .top {
    margin-top: 1em;
}

.asset-attribute-tabs, .asset-attribute-tabs .tab-content {
    margin-top: 1em;
}

#SelectSlotModal .row {
    margin-bottom: 0.33em;
}

.job-description {
    display: block;
    font-size: 14px;
    margin: 0.1em 0 0.1em 0;
}

#OrderAppointments {
    margin-top: 1.25em;
}

.container-outer { overflow-x: scroll; max-width: 100%; min-width: 400px; }
.container-inner { min-width: 1000px; }
.week-controls-wrapper {
    margin-bottom: 0.5em;
}

@media (max-width: 992px) {
    .working-week-selection-wrapper { 
        text-align: left;
    }
}

@media (min-width: 993px) {
    .working-week-selection-wrapper {
        text-align: right;
    }
}

.filter-option {
    color: #FFFFFF;
}

.search-wrapper {
    margin-top: 1em;
}

.order-line-edit-button {
    color: cornflowerblue;
}

.order-line-cancel-button {
    color: orangered;
}

body:not(.modal-open){
  padding-right: 0px !important;
}

.batch-complete {
    display:flex;
    width:50%;
    margin: auto;
    margin-top:1em;
}

.batch-complete button {
    margin-right: 1em;
    margin-left: 1.5rem;
}

.batchCompletionFormWrapper #OrderRef {
    margin-bottom: 1rem;
}

.modal-open .ui-datepicker {
    z-index: 1600 !important; /* has to be larger than 1050 to appear above model */
}

@media (max-width: 768px) {
    .batch-complete {
        width:100%;
    }
}

@media (min-width: 768px) {
    .batch-complete {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .batch-complete {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .batch-complete {
        width: 1170px;
    }
}

/* asset page */

.alert-warning ul{
    padding-left: 1.4em;
    padding-top: 0.5em;
}