﻿/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
}

@media print {
    body {
        font-size: initial;
        padding-top: 0;
        zoom: 45% !important;
    }

    body.form {
        zoom: 80%!important;
    }

    .container {
        width: 100% !important;
    }

    .fc-scroller {
        height: auto!important;
        overflow: hidden;
        /*margin-right: 16px;*/
        /*border-right: 1px solid #ddd !important;*/
    }

    .fc-title {
        font-size: 150%;
    }

    .fc-print-hidden {
        display: none;
    }

    .fc-bgevent {
        background-color: transparent!important;
    }

    .print-view .fc-time-grid-event .fc-title {
        font-size: 200%!important;
    }

    .print-view .fc-time-grid-event div:last-child {
        font-size: 200%!important;
    }
}

/* Full Calendar */
@keyframes border-pulsate {
    0%   { border-color: rgba(255, 0, 0, 1); }
    50%  { border-color: rgba(255, 0, 0, 0); }
    100% { border-color: rgba(255, 0, 0, 1); }
}

.fc-event.highlight {
    border-color: red;
    border-width: 3px;
    animation: border-pulsate .5s infinite ease-in-out;
}

.fc-event, .fc-event:hover {
    color: black;
}

.fc-event .fc-bg {
    background-color: transparent;
}

.fc-time-grid .fc-bgevent {
    background-color: white !important;
    opacity: .8;
}

.fc-day {
    border-color: white!important;
}

body.testmode {
    background-image: url(../Content/testmode_bg.png);
}

body.testmode .container {
    background-color: White;
}

/*
    Tiny MCE
*/

div.mce-fullscreen {
    z-index: 1050;
}

/*
 * Global add-ons
 */
.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

.navbar-default,
.navbar-default .navbar-collapse {
    background-color: white;
    background-image: none;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}
@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 51px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #fff;
  background-color: #428bca;
}


/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}


/*
 * 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%;
}


/* Image Gallery Styles */
.thumbnail > a {
    display: block;
    height: 266px;
    line-height: 266px;
    text-align: center;
}
.thumbnail > a > img {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
}

.thumbnail > a canvas {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
}

/* Maps */
.angular-google-map-container { height: 400px; }


/* Vertical Center in Table Cells, Bootstrap is Top Aligned */
.table > tbody > tr > td {
    vertical-align: middle;
}

/* Tab Panel Border */
.tab-pane {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0px 0px 5px 5px;
    padding: 10px;
}

.tab-pane .panel {
    margin-bottom: 0;
}

/* Show on table hover*/
.show-on-table-hover {
    visibility: hidden;
}

.table-hover tr:hover .show-on-table-hover {
    visibility: visible;
}

tr.driver-not-available,
tr.vehicle-not-available {
    text-decoration: line-through;
    color: red;
}

tr.driver-not-available td,
tr.vehicle-not-available td {
    color: black;
}

tr.driver-not-required td,
tr.vehicle-not-required td {
    background-color: #FFE4BF!important;
}

tr.driver-not-required:hover td,
tr.vehicle-not-required:hover td {
    background-color: #ffd8a6 !important;
}

/* Filter Groups */

.filter-group-header {
    background-color: #eee;
    height: 2.5em;
    line-height: 2.5em;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Condense checkboxes in tables */
.table-condensed tbody tr td .checkbox {
    margin-top: 0;
    margin-bottom: 0;
}

/* Condense form groups in tables */
.table-condensed tbody tr td .form-group {
    margin-bottom: 0;
}

/* TH Rotation Utility */
th.rotate {
  height: 100px;
  white-space: nowrap;
    padding: 0;
    width: 30px;
}

th.rotate > div {
  transform: 
    translate(5px, -5px)
    rotate(315deg);
  width: 30px;
}
th.rotate > div > span {
  border-bottom: 1px solid #ccc;
  padding: 5px 0px;

    max-width: 140px;
    text-overflow: ellipsis;
    display: inline-block;
    overflow: hidden;
}

/* Extras Icons */
.fa.extra-V:before {
  content: "\f03d";
}

.fa.extra-VPF_XC:before {
    content: "P";
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 5px;
    padding-right: 5px;
}

.fa.extra-VPF_LR:before {
    content: "L";
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 5px;
    padding-right: 5px;
}

.fa.extra-VPF_NDL:before {
    content: "\f071";
}

.fa.extra-VPF_AD:before {
    content: "\f1cd";
}

.fa.appointment-notes:before {
    content: "\f249";
    margin-left: 2px;
}

/* Orders Page */
#OrdersPage .dataTables_paginate.paging_full_numbers {
    position: fixed;
    bottom: 0;
    right: 0;
}

#OrdersPage .btn.multiselect {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

tr.outstanding-balance.success td {
    color: #a94442;
    font-weight: bold;
}

/* Event Details */

form[name=EventDetailsForm] .popover {
    max-width: 315px;
}

.popover.popover-large {
    max-width: 75vw;
}


.modal.fade {
  opacity: 1;
}

.modal.fade .modal-dialog, .modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
}

.modal-backdrop.fade {
   opacity: 0.5 !important;
}

/* Booking Quota Select */
.nya-bs-select.quota-select-list .dropdown-menu.inner {
    height: 100px;
    width: 50%;
    overflow: auto;
}

/* CMS */
.cms-component {
    position: relative;
    padding-top: 40px;
}

.cms-component-controls {
    position: absolute;
    right: 1px;
    top: 1px;
    padding: 5px;
    z-index: 999;
}

.cms-component-title {
    position: absolute;
    left: 0px;
    top: 0px;
    padding: 8px;
    padding-left: 15px;
    padding-bottom: 6px;
    background-color: #DDD;
    border-bottom: #BBB 1px solid;
    z-index: 999;
    margin: 0;
    min-width: 100%;
}

/* Event Attendees */
.participant-search .checkbox {
    display: inline-block;
}

.participant-search .checkbox-danger {
    display: inline-block;
}

.participant-search .checkbox label::before {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.participant-search .checkbox-default label::before {
    border-color: #777;
}

.participant-search .checkbox-primary label::before {
    border-color: #337ab7;
}

.participant-search .checkbox-info label::before {
    border-color: #5bc0de;
}

.participant-search .checkbox-success label::before {
    border-color: #5cb85c;
}

.participant-search .checkbox-danger label::before {
    border-color: #d9534f;
}

.participant-search .label {
    margin-left: -12px;
    top: -2px;
    position: relative;
    margin-right: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Multi Select */
.multiselect-container {
    max-height: 590px;
    overflow: auto;
}

/*******************************
* MODAL AS LEFT/RIGHT SIDEBAR
* Add "left" or "right" in modal parent div, after class="modal".
* Get free snippets on bootpen.com
*******************************/
.modal.left .modal-dialog,
.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 50%;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.modal.left .modal-content,
.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
}

.modal.left .modal-header,
.modal.right .modal-header {
    position: fixed;
    width: 100%;
    top: 0;
}

.modal.left .modal-body,
.modal.right .modal-body {
    padding: 15px;
    top: 56px;
    bottom: 65px;
    position: fixed;
    overflow: auto;
    width: 100%;
}

.modal.left .modal-footer,
.modal.right .modal-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: #FFF;
}

/*Left*/
.modal.left.fade .modal-dialog {
    left: -50%;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left.fade.in .modal-dialog {
    left: 0;
}

/*Right*/
.modal.right.fade .modal-dialog {
    right: -50%;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.in .modal-dialog {
    right: 0;
}

/* ----- MODAL STYLE ----- */
.modal.left .modal-content,
.modal.right .modal-content{
    border-radius: 0;
    border: none;
}

.modal.left .modal-header,
.modal.right .modal-header {
    border-bottom-color: #EEEEEE;
    background-color: #FAFAFA;
}

.modal.left .modal-dialog.modal-lg,
.modal.right .modal-dialog.modal-lg {
    width: 75%;
}

.modal.right.fade .modal-dialog.modal-lg {
    right: -75%;
}

.modal.left.fade .modal-dialog.modal-lg {
    left: -75%;
}

.modal.right.fade.in .modal-dialog.modal-lg {
    right: 0;
}

.modal.left.fade.in .modal-dialog.modal-lg {
    left: 0;
}

.modal.left .modal-dialog.modal-sm,
.modal.right .modal-dialog.modal-sm {
    width: 25%;
}

.modal.right.fade .modal-dialog.modal-sm {
    right: -25%;
}

.modal.left.fade .modal-dialog.modal-sm {
    left: -25%;
}

.modal.right.fade.in .modal-dialog.modal-sm {
    right: 0;
}

.modal.left.fade.in .modal-dialog.modal-sm {
    left: 0;
}

@media (max-width: 991px) {
    .modal-dialog.modal-lg {
        width: 95%;
    }
}

/* Cron Expression Picker */
.cron-wrap span {
    line-height: 140px;
    vertical-align: top;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: bold;
    font-style: italic;
}

/* Forms */
#FormForm select {
    min-width: 6em;
}

/* Sub Menus */
.dropdown-submenu {
    position: relative;
}

:not(.dropdown-menu-right) .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-menu-right .dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px 6px;
    border-radius: 0 6px 6px 6px;
}

:not(.dropdown-menu-right) .dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-menu-right .dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: left;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 5px 5px 0;
    border-right-color: #cccccc;
    margin-top: 5px;
    margin-left: -15px;
}

.dropdown-menu-right > li {
    margin-left: 5px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #555;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

/* Off Road Driver */
.fa-extra-V:before {
    content: "\f03d"
}
.fa-extra-VPF_LR:before {
    content: "TR";
    font-size: 80%;
    transform: rotate(-90deg);
    display: block;
}
.fa-extra-VPF_AD:before {
    content: "AD";
    font-size: 80%;
    transform: rotate(-90deg);
    display: block;
}
.fa-extra-VPF_NDL:before {
    content: "NDL";
    font-size: 80%;
    transform: rotate(-90deg);
    display: block;
}
.fa-extra-VPF_XC:before {
    content: "XC";
    font-size: 80%;
    transform: rotate(-90deg);
    display: block;
}

