@import url('normalize.css');
@import url('jqdatepicker.css');

a.disable {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    -webkit-filter: grayscale(100%) !important;
    -moz-filter: grayscale(100%) !important;
    -ms-filter: grayscale(100%) !important;
    -o-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
}

.center {
    text-align: center;
}


/* -- Driver Dashboard -- */

#dashSections .placeToSpreadLabel {
    display: flex;
    padding: 0 !important;
    border: none !important;
}

#dashSections label.hide {
    display: none;
}

#dashSections .placeToSpreadLabel label {
    width: 43%;
}

#dashSections .placeToSpreadLabel input {
    display: inline;
    position: absolute;
    top: -50%;
    left: 0;
    width: auto;
    margin: 0 1em 0 0;
}

#driver-dashboard #dashSections .placeToSpreadLabel input:checked + label {
    background-color: #4cbd52;
    color: #fff;
    border-color: #308B35;
}

.viewLink {
    text-align: right;
}

.viewLink a {
    border-bottom: 1px solid #505050;
}

.viewLink a:hover {
    border-bottom: 0 none;
}

.dashList h3 {
    margin-bottom: 0.8em;
    padding: 0 0.25em 0.25em;
    border-bottom: 1px solid #0073c6;
    color: #0073c6;
}

.dashList ul {
    background: #fff;
    width: 100%;
    min-height: 5em;
}

.dashList li {
    display: block;
    width: 100%;
    padding: 0.5em 0;
    overflow: hidden;
    clear: both;
}


/* -- CONTENT -- */

#itemsPerPage {
    float: left;
}

#itemsPerPage label {
    float: left;
    margin: 0.5em 1em 0.5em 0;
    font-weight: bold;
}

#itemsPerPage input {
    float: left;
    margin: 0.2em;
}

#itemsPerPage button {
    float: left;
    margin: 0.2em 0 0.2em 1em;
    padding: 0.3em 1em;
}

dl.totals dt {
    float: left;
    display: block;
    width: 75%;
}

dl.totals dt span {
    float: right;
}

dl.totals dd {
    float: left;
    display: block;
    width: 25%;
    text-align: right;
}

.paymentDetails .buttons .button {
    float: left;
    margin: 0 1em 0 0;
}

.pseudoInput {
    display: block;
    margin-bottom: 1.5em;
    padding: 0.5em 0.75em;
}


/* -- TABLE -- */

table.spreadingRate {
    width: 16.4%;
    display: inline-block;
}

.data.spreadingRate a.button.positive {
    padding: 0;
    width: 19px;
}

.data.spreadingRate a.button.positive .material-icons {
    font-size: 15px;
}

.data {
    border-radius: 3px;
    overflow: hidden;
}

.data thead th {
    background-color: #0073c6;
    vertical-align: middle;
    text-align: center;
    color: #fff;
}

.data tbody th {
    text-align: center;
}

.data th a {
    text-decoration: none;
    color: #fff;
}

.data th a:hover {
    color: #fff;
}

.data .currency {
    text-align: right;
}

.data .currency input {
    text-align: right;
}

.data .totalsRow {
    border: 2px solid #000;
}

.data .totalsRow td {
    font-weight: bold;
}

.data .sub {
    padding-left: 2em;
}

.data td.comments {
    border-right: 0 none;
}

.data td.tick {
    font-weight: bold;
    font-size: 120%;
    padding: 0 0.5em;
    color: #4cbd52;
}

.data.totals {
    border: 0 none;
}

.data.totals tr {
    background-color: transparent;
}

.data.totals td {
    border: 0 none;
}

form table.data + div.buttons {
    margin-top: 1em;
}

form table.data th.delete {
    width: 33px;
}

form table.data td.delete a {
    display: block;
    width: 20px;
    line-height: 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    color: #c00;
}

form table.data td.delete a:hover {
    background-color: #c00;
    color: #fff;
}

.overflowTable {
    overflow: auto;
    clear: both;
}

.overflowTable.report td {
    white-space: nowrap;
}


/* -- FORMS -- */

form fieldset.full p,
form fieldset.half p,
form fieldset.third p {
    margin: 0 1% 1em;
}

form fieldset .inline a.button {
    display: inline-block;
    margin-left: 1em;
    vertical-align: middle;
}

form fieldset.inputButton {
    margin: 0 1.5%;
    padding: 0;
    border: 0 none;
}

form fieldset.inputButton input {
    float: left;
    width: 80%;
    margin: 0 0 1.5em 0;
    border-right: 0 none;
    border-radius: 3px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

form fieldset.inputButton a.button {
    float: left;
    display: block;
    border-radius: 3px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

form fieldset fieldset {
    margin-bottom: 1.5em;
}

form legend select {
    display: inline;
    margin-bottom: 1em;
    font-size: 78%;
    font-weight: normal;
}

form select[multiple] {
    margin: 0 0 1.5em;
}

form .buttons.clean {
    background-color: transparent;
    margin: 0;
    padding: 0 0 1em;
    border: 0 none;
}

fieldset.full .buttons.clean {
    padding: 0 1% 1em;
}

form td input {
    margin: 0;
}

form td select {
    margin: 0;
}

form #gradeAnalysis td input, form #heavyMetals td input {
    margin: 0;
    text-align: center;
}

#productprice table.scroll tbody,
#productprice table.scroll thead {
    display: block;
}


#productprice table.scroll tbody {
    height: 1000px;
    overflow-y: auto;
    overflow-x: hidden;
}

#productprice table.scroll td input {
    text-align: center;
}

label.error {
    background: #fee;
    margin: 0.5em 0;
    padding: 0.25em 0.5em;
    border: 1px solid #c00;
    border-radius: 3px;
    text-align: center;
    color: #c00;
}

.content ul.actionMessage {
    margin: 0;
}

input.error,
select.error {
    margin-bottom: 0;
}

input + label.error,
select + label.error {
    margin-bottom: 1.8333em;
}

form table input[type="radio"],
form table input[type="checkbox"] {
    display: inline;
    width: auto;
}

#newContact,
#newDeliveryAddress {
    margin-top: 2em;
}


/* -- VEHICLE SCANNER -- */

#barcodeLabel {
    display: block;
    margin-bottom: 0.25em;
}

.inputSubmit #vehicle_barcode {
    float: left;
    width: 70%;
}

#newVehicle #vehicle_barcode {
    float: none;
}

#barcodeBtn {
    margin: 0.25em 0;
    font-size: 90%;
}

#vehicleWeight {
    margin: 0;
    font-size: 180%;
}

#measurements tr td {
    padding: 0.5em 0;
}

#measurements tr td label {
    margin: 0.25em 0;
}

#measurements tr td:nth-child(2n),
#measurements tr td[colspan="2"] {
    text-align: right;
}

#measurements td .radiochecks label {
    float: none;
    margin: 0;
    line-height: 1;
}

#measurements td .radiochecks input {
    float: none;
    margin: 0.25em 0.5em 0.25em 1em;
}

#vehicleNotes {
    margin: 0.5em 0 0 0;
}


/* -- VEHICLE SCHEDULE -- */

fieldset.filters.full {
    width: 100%;
    margin: 0 0 2em;
}

#date {
    padding-bottom: 1em;
    border-bottom: 1px solid #ccc;
}

#date label {
    display: inline;
    margin: 0;
}

#date #job_date {
    display: inline;
    width: 8em;
    margin: 0 1em;
}

#date #updateDate {
    padding: 0.5em 1em;
    font-size: 90%;
}

#truckSchedule #scheduleList .job .load_number,
#truckSchedule #scheduleList .job .vehicleId,
#truckSchedule #scheduleList .job .driverId,
#truckSchedule #scheduleList .job .load_section {
    float: right;
    width: 50%;
    margin: 0;
}

#truckSchedule #scheduleFormFilters {
    float: right;
    width: 40%;
    margin-top: 2em;
    padding: 0 1.5% 1% 1.5%;
}

#depotSchedule #scheduleFormFilters {
    float: left;
    width: 50%;
    margin-bottom: 5px;
    padding: 0 1.5% 1% 1.5%;
}

#truckSchedule #scheduleFormFilters #job_date,
#depotSchedule #scheduleFormFilters #job_date {
    padding: 0.15em 0.75em;
}

div#ui-datepicker-div {
    z-index: 1000 !important;
}

#truckSchedule #scheduleFormFilters button.positive,
#depotSchedule #scheduleFormFilters button.positive {
    border: 1px solid #308b35;
    margin: 17px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
}

#depotSchedule .header {
    margin-bottom: 23px;
    padding-bottom: 0.75em;
    width: 55%;
    float: left;
    margin-top: 2em;
}

#depotSchedule .header h1 {
    display: inline-block;
    margin: 0;
    margin-right: 12px;
    font-size: 250%;
    vertical-align: middle;
    font-weight: bold;
}

#depotSchedule .header a {
    margin-left: 20px;
}

/* -- VEHICLE SCHEDULE OVERVIEW -- */

#depotSchedule .acceptedMsg {
    display: none;
    background-color: #e2ffe2;
    margin: 1em 0 0;
    padding: 0.5em;
    border: 1px solid #060;
    text-align: center;
}

#depotSchedule .acceptedMsg.active {
    display: block;
}


/* -- DRIVER SCHEDULE OVERVIEW -- */

.subhead {
    display: flex;
    margin-bottom: 1em;
    padding: 0.5em 0.75em 1.5em;
    border-bottom: 1px solid #e3e3e3;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
}

.subhead h2 {
    margin-bottom: 0;
    order: 2;
}

.subhead form {
    order: 1;
}

.date-filter {
    display: inline-block;
    margin-top: 1px;
}

.date-filter input {
    display: inline-block;
    max-width: 7.5em;
    margin: 0;
    vertical-align: middle;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0 none;
}

.date-filter button {
    display: inline-block;
    vertical-align: middle;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 99%;
}

#driverScheduleOverview {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
    padding-right: 1px;
    white-space: nowrap;
    overflow-x: auto;
}

#driverScheduleOverview fieldset {
    float: left;
    display: block;
    width: 49%;
    margin-left: 2%;
    padding: 0.5em 1em 1em;
    border-radius: 3px;
    vertical-align: top;
    white-space: normal;
}

#driverScheduleOverview fieldset:first-of-type {
    margin-left: 0;
}

#driverScheduleOverview .unassigned {
    position: fixed;
    background: #fff;
    z-index: 51;
}

#driverScheduleOverview fieldset legend {
    text-align: center;
    font-size: 200%;
    color: #0073c6;
}

#driverScheduleOverview fieldset .driver {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #ccc;
}

#driverScheduleOverview fieldset h3,
#driverScheduleOverview fieldset h4,
#driverScheduleOverview fieldset h5 {
    background-color: #195D8E;
    margin: 0;
    padding: 0.5em 0.75em;
    border-bottom: 1px solid #fff;
    font-weight: normal;
    font-size: 125%;
    color: #fff;
}

#driverScheduleOverview fieldset h4 {
    background-color: #0073c6;
}

#driverScheduleOverview fieldset h5 {
    background-color: #8495a0;
}

#driverScheduleOverview fieldset h3:hover,
#driverScheduleOverview fieldset h4:hover,
#driverScheduleOverview fieldset h5:hover {
    cursor: move;
}

#driverScheduleOverview fieldset .load,
#driverScheduleOverview fieldset .section,
#driverScheduleOverview fieldset .movement {
    margin-top: 1em;
}

#driverScheduleOverview fieldset .load:first-of-type,
#driverScheduleOverview fieldset .section:first-of-type,
#driverScheduleOverview fieldset .movement:first-of-type {
    margin-top: 0;
}

#driverScheduleOverview .unassigned .section {
    min-height: 15em;
}

#driverScheduleOverview fieldset .empty {
    padding-top: 1em;
}

#driverScheduleOverview fieldset .details {
    background-color: #f3f3f3;
    padding: 1em 1em 0;
    overflow: hidden;
}

#driverScheduleOverview fieldset .details p {
    text-align: right;
}

#driverScheduleOverview fieldset .details p strong {
    float: left;
}

#driverScheduleOverview fieldset .details p.inline {
    text-align: left;
}

#driverScheduleOverview fieldset .details p.inline strong {
    float: none;
}

#driverScheduleOverview fieldset .details p.inline span.half {
    padding: 0;
}

#driverScheduleOverview fieldset span.new {
    display: block;
    margin: 1em 0 0.1em 0;
    padding: 1em;
    border: 1px dashed #999;
    border-radius: 10px;
    text-align: center;
    font-weight: lighter;
    font-size: 110%;
    color: #999;
}

#driverScheduleOverview fieldset .buttons {
    background: transparent;
    margin: 0;
    padding: 1.5em 0 0.5em;
    text-align: center;
    border: 0 none;
}

#driverScheduleOverview fieldset .button {
    float: none;
    display: inline-block;
    margin: 0 0 0 0.25em;
    padding: 0.5em 1em;
    border-radius: 3px;
    font-size: 90%;
}

#driverScheduleOverview fieldset .button:first-child {
    margin-left: 0;
}

#driverScheduleOverview fieldset .button.newload {
    background-color: #195D8E;
}

#driverScheduleOverview .ui-state-highlight {
    display: block;
    height: 2em;
}

#driverScheduleOverview .acceptedMsg {
    display: none;
    background-color: #e2ffe2;
    margin: 1em 0 0;
    padding: 0.5em;
    border: 1px solid #060;
    text-align: center;
}

#driverScheduleOverview .acceptedMsg.active {
    display: block;
}

/* -- DEPOT / DRIVER SCHEDULE -- */

.scheduleHeading {
    background: #0073c6;
    margin-bottom: 1em;
    overflow: hidden;
    clear: both;
}

.scheduleHeading h3 {
    float: right;
    margin: 0;
    padding: 0.5em 1em;
    text-align: right;
    color: #fff;
}

.scheduleHeading h3:first-child {
    float: left;
    text-align: left;
}

#scheduleList .massManagement {
    display: none;
    clear: both;
}
#scheduleList .massManagement fieldset {
    display: inline-block;
    width: 32.3%;
    vertical-align: bottom;
    border: none;
    padding: 0 0.75em;
}
#scheduleList .massManagement fieldset input {
    margin-bottom: 0;
}
#scheduleList .massManagement fieldset.buttons {
    border: none;
    background: none;
}
.numPad {
    display: none;
    position: absolute;
    background-color: #fff;
    top: 50%; right: 0; left: 0;
    width: 35em;
    margin: 0 auto;
    padding: 2em;
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 110;
}

.numPad.active {
    display: block;
}

.fuel input[type="text"] {
    margin-bottom: 0.375em;
}


/* -- SELECT BLEND -- */

#saveBlend th .small {
    font-size: 85%;
}


/* -- QUOTE / SALES ORDER -- */

span.small.CDValue {
    font-family: serif;
    font-size: 75%;
}


/* - CUSTOMERS -- */

.prefix {
    float: left;
    width: 25%;
    margin-right: 3%;
}

.prefix + span {
    float: left;
    width: 72%;
}


/* -- STOCK -- */

.content p.stockLevels {
    float: right;
    margin: 1em 0 2em;
}


/* -- REPORTS -- */

#dashSections.reports > li {
    float: left;
    width: 23%;
}

#dashSections.reports li li {
    margin-left: 1em;
    line-height: 1.75;
}

a.back {
    float: left;
    margin-bottom: 1em;
}

#averageFuelPrice td {
    white-space: nowrap;
}

.sorting {
    color: red;
}

.sortinghidden {
     visibility: hidden;
}

/* -- CAROUSEL -- */

.addPhotosInput {
    width: 50%;
    margin: 0 auto;
    height: 80px;
}

.carousel {
    /* width: 97%; */
    margin: 0 auto;
}

.carousel img {
    width: 100%;
}

.carousel ul {
    margin: 0 !important;
}

.carousel .slick-prev, .carousel .slick-next {
    z-index: 111;
    background-color: transparent;
    color: transparent;
    margin: 0;
}

.carousel .slick-prev:before {
    content: '\21E6';
    color: #000;
    font-size: 23px;
}

.carousel .slick-next:before {
    content: '\21E8';
    color: #000;
    font-size: 23px;
}

.carousel .slick-dots li button:before {
    font-size: 15px;
}

.carousel .slick-dots li button:before {
    content: '\2022';
}

.carousel .slick-slide button.delete {
    position: absolute;
    top: 3px;
    width: 37px !important;
    margin: 2px !important;
    text-align: center;
    background: #fff;
    color: #000;
}

#editPaddock .section_name_input {
    display: inline-flex;
    width: 100%;
}

#editPaddock .section_name_input input {
    width: 70%;
    padding: 2px;
    text-align: center;
}

#editPaddock .section_name_input a {
    font-size: 17px;
    color: saddlebrown;
}

#editPaddock .section_name_input a:hover {
    color: red;
}

/* -- RESPONSIVE -- */

@media only screen and (max-width: 768px) {
    #driver-dashboard #dashSections li {
        width: 100%;
        margin: 0 0 2em;
    }
}

@media only screen and (max-width: 568px) {
    .subhead {
        justify-content: center;
    }

    .subhead h2 {
        width: 100%;
        margin-bottom: 0.5rem;
        order: 1;
    }

    .subhead form {
        order: 2;
    }
}

@media only screen and (max-width: 400px) {
}

@media only screen and (max-width: 320px) {
}