@charset "utf-8";

html, body {
    _background-image: url(../images/bg.gif);
    background-color: #f3f3f3;
    background-repeat: no-repeat;
    background-position: top;
    font-family: vera-sans, Helvetica, Verdana, sans-serif;
    font-size: 11px;
    text-align: left;
    color: #444;
    border: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

@media print {
    body {
        height: 500px;
    }
}

.ui-dialog .danger-button {
    position: relative;
    margin-right: 6px;
    float: left;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: black;
}

a:hover {
    color: #bc2222;
    text-decoration: underline;
}

p {
    padding-bottom: 5px;
}

/* GENERAL LAYOUT */

img {
    border: none;
}

#container {
    position: relative;
    margin: 0 auto;
    width: 960px;
    min-height: 100%;
}

.wide-content #container {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
    min-width: 960px;
}

#header {
    position: relative;
    background-image: url(../images/header.gif);
    height: 94px;
    width: auto;
    margin: 0 auto;
}

.wide-content #header {
    background-image: url(../images/header-wide.png);
}

/*.wide-content #header {
    background-image: url(../images/vehicleGreen-2.png);
    height: 43px;
    cursor: pointer;
}*/

/*.wide-content #header-right {
    display: none;
}

.wide-content #sp_logo_left {
    display: none;
}*/

#header-right {
    position: absolute;
    right: 0;
    bottom: 0;
}

#sp_logo {
    margin: 0 auto;
    width: 352px;
    height: 51px;
    padding-top: 19px;
}

#sp_logo_left {
    float: left;
    width: 352px;
    height: 51px;
    padding-top: 17px;
    padding-left: 14px;
}

#client-admin-nav,nav.tabs {
    margin-bottom: 12px;
    margin-top: 2em;
    text-align: center;
    border-bottom: solid 1px #800;
}

#client-admin-nav a, nav.tabs a {
    display: inline-block;
    width: 110px;
    padding: 6px;
    background: #fafafa;
    color: #444;
    text-decoration: none;
    font-weight: bold;
    border-top: solid 1px #aaa;
    border-left: solid 1px #aaa;
    border-right: solid 1px #aaa;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#client-admin-nav a:hover,nav.tabs :not(.disabled) a:hover  {
    background: #ddd;
}

nav.tabs .disabled {
    background: #ddd;
    width: 110px;
    cursor: default;
}

.client #nav-client,
.vehicle #nav-vehicle,
.users #nav-users,
.user #nav-users,
.vehicles #nav-vehicles,
.pmos #nav-pmos,
.pools #nav-pools,
.pricing #nav-pricing,
nav.tabs a.selected {
    background-image: none !important;
    background-color: #ee3124 !important;
    color: #fff !important;
    text-shadow: 0 1px 1px #800;
    border-color: #800 !important;
}

#content-area {
    position: relative;
    margin-top: 25px;
    background-color: #FFF;
}

#content-area-top {
    position: relative;
    background-image: url(../images/box-top-left.png);
    background-repeat: no-repeat;
    height: 9px;
    padding: 0;
}

#content-area-top img {
    position: absolute;
    top: 0px;
    right: 0px;
}

.topControls {
    position: relative;
    margin-bottom: 12px;
    min-height: 26px;
}

.topControls * {
    vertical-align: top;
}

.topControls .searchControls {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    margin: 0;
}

.searchControls input[type="text"] {
    border: none;
    background: url(../images/searchbox.png);
    /*background-repeat: no-repeat;*/
    padding: 1px 0 0 24px;
    width: 120px;
    height: 25px;
}

.searchControls label {
    width: auto;
    margin-right: 12px;
    position: relative;
    top: 6px;
}

.searchControls input[type="checkbox"] {
    margin: 0;
    position: relative;
    top: 6px;
}

#content-area-mid {
    border-left: solid 1px #d1d1d1;
    border-right: solid 1px #d1d1d1;
    min-height: 400px;
    height: auto;
    padding: 10px 15px 50px 15px;
}

.allowPositioning {
    position: relative;
}

#content-area-bot {
    clear: both;
    background-image: url(../images/box-bot-left.png);
    background-repeat: no-repeat;
    height: 10px;
    margin-bottom: 25px;
    position: relative;
}

#content-area-bot img {
    position: absolute;
    bottom: 0;
    right: 0;
}

#footer {
    background-image: url(../images/ums/footer-wide.png);
    height: 43px;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    overflow:hidden;
}

#footer-right {
    position: absolute;
    top: 0;
    right: 0;
}

#footer p {
    width: 250px;
    float: right;
    color: #FFF;
    margin-right: 25px;
    font-size: 10px;
    margin-top: 18px;
}

/***********************************************

    Forms

 ***********************************************/

#ajax-spinner {
    position: absolute;
    top: 5px;
    right: 5px;
}

.ajax-spinner-dialog {
    position: absolute;
    top: 6px;
    right: 25px;
    display: none;
}

form {
    display: inline;
    padding: 0;
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
}

fieldset+fieldset {
    border-top: solid 1px black;
}

.right {
    text-align: right;
}

label {
    font-weight: bold;
    text-align: right;
    display: inline-block;
    width: 120px;
    margin-right: 3px;
}

/* Trying to only select for the dynamically added popups */
div.error[for] {
    color: white;
    display: block;
    padding: 5px 6px 6px 18px;
    position: absolute !important;
    background: url("../images/validation-error.png") left;
    text-align: left;
    width: auto;
    font-weight: normal;
    z-index: 10; /* Temporary, until I can re-jig this */
}

input[type="text"].error,
input[type="password"].error,
textarea.error {
    background: #fee;
}

label.checkbox-label {
    text-align: left;
    width: auto;
}

.formItem {
    min-height: 20px;
}

.formItem+.formItem {
    margin-top: 10px;
}

.formItem.has-textarea label {
    /* We might be able to replace this (and the req JQ voodoo) with some smarter rules for all labels in future */
    vertical-align: top;
    position: relative;
    top: 3px;
}

input[type="text"],
textarea {
    border: 1px solid #7f9db9;
    font-size: 11px;
    background-color: #FFF;
    padding: 2px;
    width: 120px;
    font-family: vera-sans, Helvetica, Verdana, sans-serif;
}

input[type="password"] {
    border: 1px solid #7f9db9;
    font-size: 11px;
    background-color: #FFF;
    padding: 2px;
    width: 120px;
}

input[type="text"][disabled],
input[type="password"][disabled] {
    border: none;
    color: #888;
    padding: 0 2px;
}

#logout-btn, #home-btn {
    float: right;
    margin-right: 15px;
    margin-top: 35px;
}

/*.wide-content #logout-btn {
    margin-top: 9px;
}*/

.button, button, input[type="button"], input[type="submit"] {

    /* Explicit box-sizing because of user-agent stylesheets */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;

    display: inline-block;
    background: #fff;
    text-align: center;
    border: solid 1px #888;
    border-color: rgba(0, 0, 0, 0.4);
    color: #444;
    text-shadow: 0 1px 0 #fff;
    padding: 3px 12px 5px;
    margin: 0;
    height: 26px;
    text-decoration: none !important; /* !important to override <a:hover> */
    font-weight: bold;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;

    background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(50%, #f1f1f1), color-stop(51%, #e1e1e1), color-stop(100%, #f6f6f6)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* IE10+ */
    background: linear-gradient(to bottom, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#dddddd', GradientType = 0); /* IE6-9 */
    cursor: pointer;
}

/* No idea why we need this, but we do, in chrome at least */
a.button {
    padding-top: 6px;
    padding-bottom: 2px;
}

#export-buttons a.button,
#printAllocations {
    background: url("../images/dialog-title.png") center !important;
    color: #fff;
    font-weight: normal;
    filter: none;
}

.button:hover, button:hover {
    color: #000;
    border-color: #888;
    border-color: rgba(0, 0, 0, 0.6);
}

.button[disabled], button[disabled], input[type="button"][disabled], input[type="submit"][disabled] {
    background: #eee;
    filter: none;
    color: #aaa;
    border-color: #aaa !important; /* override hover */
    cursor: default;
}

.mainButtons {
    text-align: right;
    margin-top: 18px;
}

.ui-dialog-buttonset button+button {
    margin-left: 6px;
}

/***********************************************

    Item Lists

 ***********************************************/

.itemList, .nesting-itemList, .nesting-itemList ul {
    list-style: none;
    padding:0;
    margin:0;
    font-size:inherit;
    border-top:solid 1px;
    border-bottom:solid 1px;
    min-height:25px;
    cursor: pointer;
}

#entity-chooser-list-widget {
    padding-bottom: 10px;
}

.itemList *, .nesting-itemList *{
    cursor: pointer;
}

.itemList li {
    border-bottom:solid 1px;
    padding:5px;
    position:relative;
}

.itemList.selectable li.selected {
    border-bottom: solid 2px;
    border-top: solid 1px;
    padding-top: 4px; /* Adjust for extra border */
    padding-bottom: 4px; /* Adjust for extra border */
}

.nesting-itemList ul {
    margin-left:30px;
    position:relative;
    top:5px;
    border:none;
}

.nesting-itemList li {
    border-bottom:solid 1px;
    padding:5px 0 5px 5px;
    position:relative;
}

.nesting-itemList ul li {
    border:none;
}

.itemList.selectable li.selected,
.nesting-itemList.selectable li.selected {
    border-bottom:solid 1px;
    border-top:solid 1px;
    padding-top:4px; /* Adjust for extra border */
    padding-bottom:4px; /* Adjust for extra border */
}

text-align {
    background:#f0d296;
    border-bottom:solid 1px;
    border-top:solid 1px;
    padding-top:4px; /* Adjust for extra border */
    padding-bottom:4px; /* Adjust for extra border */
}

.itemList li:last-child,
.nesting-itemList li:last-child {
    border-bottom:none;
}

.itemList li.selected:last-child,
.nesting-itemList li.selected:last-child {
    border-bottom:solid 1px;
}

.nesting-itemList ul li.selected:last-child,
.nesting-itemList ul li:last-child ul li.selected:last-child,
.nesting-itemList ul li.selected:last-child li.deepest-hover:last-child {
    border-bottom:none;
    padding-bottom:5px;
}

.nesting-itemList ul ul li.selected:last-child,
.nesting-itemList ul li.selected li.deepest-hover:last-child {
    border-bottom:solid 1px;
    padding-bottom:4px;
}

.itemList li:hover,
.nesting-itemList li.deepest-hover,
li.reportItem:hover {
    background:#eee;
}

.listItemName {
    display:block;
    font-weight:bold;
}

.listItemDescription {
    display:block;
}

.itemList li[data-id="-1"] {
    font-weight:bold;
    font-style:italic;
}


/***********************************************

    Tables

 ***********************************************/

table {
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
}

table.list-style tbody tr {
    border-top: solid 1px black;
}

table.list-style tbody tr:last-child {
    border-bottom: solid 1px black;
}

table.list-style tbody tr:hover {
    background: #eee;
}

table.list-style tbody tr td {
    padding: 5px 0;
}

table.list-style tbody tr td:first-child {
    padding-left: 5px;
}

table.list-style tbody tr td:last-child {
    padding-right: 5px;
    text-align: right;
}

table.list-style.buttons-on-hover button,
table.list-style.buttons-on-hover .button,
table.list-style.buttons-on-hover input[type="button"] {
    visibility: hidden;
}

table.list-style.buttons-on-hover tr:hover button,
table.list-style.buttons-on-hover tr:hover .button,
table.list-style.buttons-on-hover tr:hover input[type="button"] {
    visibility: inherit;
}

/***********************************************

    New / modify driver dialog

 ***********************************************/

#dialog-driver-form input[type="text"],
#createDriverWidget input[type="text"],
#dialog-driver-form input[type="password"],
#createDriverWidget input[type="password"] {
    width: 200px;
}


#driverPMO						{
    width: 206px;
}

#dialog-driver-form label,
#createDriverWidget label
{
    width: 200px;
    margin-right: 6px;
}

#create-user-roles {
    display: inline-block;
}

#create-user-roles label {
    width: auto;
}

/***********************************************

    Misc

 ***********************************************/

/* css for timepicker */
.ui-timepicker-div .ui-widget-header {
    margin-bottom: 8px;
}

.ui-timepicker-div dl {
    text-align: left;
}

.ui-timepicker-div dl dt {
    height: 25px;
    margin-bottom: -25px;
}

.ui-timepicker-div dl dd {
    margin: 0 10px 10px 65px;
}

.ui-timepicker-div td {
    font-size: 90%;
}

.ui-tpicker-grid-label {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.tooltip {
    position: fixed;
    z-index: 1;
    width: 180px;
    border: solid 1px white;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 6px;
    background: black;
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.v-scroll-medium {
    max-height: 300px;
    overflow-y: auto;
}

.v-scroll-big {
    max-height: 600px;
    overflow-y: auto;
}

#notification-flash {
    background: #ccc;
    padding: 12px;
    border: solid 1px #888;
    text-align: center;
    font-size: 13px;
    border-radius: 6px;
}

.paginationjs {
    margin: 15px auto;
    /*width: 40%;*/
}

.paginationControls {
    border-top: 1px solid black;
    margin-top: 25px;
    min-height: 25px;
}

li.no-results {
    text-align: center;
    font-weight: bold;
}

.calendar-date-picker-input {
    /*width: 180px !important;*/
    height: 0px !important;
    border: none !important;
    clear:both;
    color: white;
}

.hidden-date-picker {
    position: absolute;
    bottom: 0px;
    left: 30px;
    height: 0px;
}

#dateNav>button {
    position: relative;
    float: left;
}

#dateNav>button:first-child {
    margin-left: 0;
}

#dateNav button+button {
    margin-left: -1px;
}

#dateLeft {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 8px;
    padding-left: 8px;
}

#dateRight {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    padding-right: 8px;
    padding-left: 8px;
}

#dateSelect {
    border-radius: 0;
    width: 180px;
}

.buttonGroup>button {
    position: relative;
    float: left;
}

.buttonGroup button+button {
    margin-left: -1px;
}

.leftButton {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 8px;
    padding-left: 8px;
}

.rightButton {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    padding-right: 8px;
    padding-left: 8px;
}

.middleButton {
    border-radius: 0;
    width: 180px;
}

.allocateContents {
    position: relative;
    margin-left: 30px;
    top: -15px;
}

#unallocatedList > li.selected {
    height: 67px;
}

#unallocatedList > li {
    height: 37px;
}

#unallocatedList > li.selected > .multiCheckBox {
    position: relative;
    top: 23px;
}

#unallocatedList > li > .multiCheckBox {
    position: relative;
    top: 9px;
}

#printAllocations {
    float: right;
    margin-top: -56px;
    line-height: 26px;
    /*height: 20px;*/
    vertical-align: middle;
}

#printAllocations > img {
    height: 16px;
}


/***********************************************

   Driver Search

***********************************************/

.result:hover {
    background: #ccc;
}

.driverSearchTable {
    width: 630px;
}

.driverSearchRow span {
    display: inline-block;
    width: 120px;
}

.driverSearchRowHeader {
    font-weight: bold;
}


.ui-widget-overlay {
    opacity: 0.50;
    filter: Alpha(Opacity=50);
}