﻿/**LOADING GIF**/

.spinner-title {
    margin: 0 auto;
    text-align: center;
    position: absolute;
    left: 550px;
    top: 400px;
}

#spinner {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /*background-color: rgba(255,255,255,0.7);*/
    z-index: 9999;
    display: none;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#spinner::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 40%;
    width: 40px;
    height: 40px;
    border-style: solid;
    border-color: #333;
    border-top-color: transparent;
    border-width: 5px;
    border-radius: 50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}

hr {
    margin: 1em auto 1em !important;
}

.container {
    max-width: 98%;
    margin: 0 auto;
}

.error {
    color: red;
}

.success {
    color: green;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

/**BTN**/
.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4
}

    .btn-primary.focus,
    .btn-primary:focus {
        color: #fff;
        background-color: #286090;
        border-color: #122b40
    }

    .btn-primary:hover {
        color: #fff;
        background-color: #286090;
        border-color: #204d74
    }

/*LOGIN*/
.login-container {
    width: 400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2em;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px;
}

.login {
    float: right;
    display: flex;
}

    .login a {
        margin-left: 2em;
    }

.username {
    margin-top: 15px;
    margin-left: 15px;
}

.btn-link:hover {
    color: #fff !important;
}

/*DATE TIME SECTION*/
.date-time {
    width: 400px;
}

/*CHECKBOX*/
.cb-align {
    position: relative;
    bottom: 3px;
}

/***PAGING***/
.paging-controls {
    margin: 0 auto;
    text-align: center;
}

/***LABEL***/
.control-label {
    font-weight: bold;
}

header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin-bottom: 00px !important;
}

/*BODY*/
.body-container {
    padding: 2em;
    padding-top: 5em;
    margin: 0 auto;
    background-color: #fff;
    width: 100%;
}

/*FLOAT*/
.f-right {
    float: right;
}

.f-left {
    float: left;
}

.hide {
    display: none;
    overflow: scroll;
}

/*FORM GROUP*/
.form-group {
    margin-bottom: 1em;
    width: 190px;
    display: inline-block;
}

.form-group-textarea {
    width: 480px;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 1em;
}

    .form-group-textarea textarea {
        height: 100px;
    }

.form-group-buttons {
    margin-bottom: 1em;
}

.form-group-long {
    margin-bottom: 1em;
    width: 220px;
    display: inline-block;
}

    .form-group-long label {
        display: block;
        line-break: auto;
    }

.form-group-check {
    margin-bottom: 1em;
    width: auto;
    margin-right: 10px;
    display: inline-block;
}

/*DROPDOWN*/
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e3e3e3 !important;
}

.navbar {
    overflow: hidden;
    background-color: #333;
}

    .navbar a {
        float: left;
        font-size: 16px;
        color: white;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none !important;
    }

.dropdown {
    float: left;
    overflow: visible;
}

    .dropdown .dropbtn {
        font-size: 16px;
        border: none;
        outline: none;
        color: white;
        padding: 14px 16px;
        background-color: inherit;
        font-family: inherit;
        margin: 0;
    }

    .navbar a:hover, .dropdown:hover .dropbtn {
        background-color: red;
    }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2000;
}

    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/*FOOTER*/
.footer {
    background-color: #333333;
    color: #ffffff !important;
    position: relative !important;
    bottom: 0 !important;
}

.ddl::before {
    content: "!";
    font-family: Verdana;
}

/*TABLE*/
.slim {
    width: 500px;
}

.table td {
    max-width: 200px;
}

/*TABLE VIEW*/
.table-view {
    background-color: lightgray;
    padding: 1em;
    border: 1px solid black !important;
    margin-bottom: 1em;
    /*overflow: auto;*/
}

.table-bordered > thead > tr > th {
    border: 1px solid black !important;
    font-size: 9pt;
    vertical-align: middle;
}

    .table-bordered > thead > tr > th .form-check-input,
    .table-view td .form-check-input {
        font-size: 12pt;
    }

.table-view td {
    border: 1px solid black !important;
    text-align: center;
    max-width: 300px;
    font-size: 10pt;
    vertical-align: middle;
}

.delete-checkbox {
    border: 2px solid red;
}

.delete-checkbox:checked {
    background-color: red;
    border-color: red;
}

.table-view th {
    text-align: center;
}

/**DISABLE**/
.disabled {
    background-color: lightgray;
}

/***CHECKBOX DATE***/
.form-check {
    padding-left: 0;
}

    .form-check .form-check-input {
        margin-left: 0;
    }

.dateTextbox {
    float: left;
    margin-top: 5px;
    width: 100% !important;
}

/*AUTOCOMPLETE*/
.ui-autocomplete {
    max-height: 500px !important;
    max-width: 600px !important;
    overflow-y: scroll;
    overflow-x: hidden;
}

.ui-state-default {
    background-color: #fff !important;
    border-radius: 0.25rem !important;
}

.custom-combobox {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-left: -1px;
    padding: 0;
    right: -2px;
}

.custom-combobox-input {
    margin: 0;
    padding: 6px 10px;
    width: 100%;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: none !important;
    background: #e1e1e3;
    font-weight: normal;
    color: #000;
}

.ui-widget-content {
    color: #333333;
    z-index: 20000 !important;
}

/**************************************************************************************************************PAGES***/

/***PRINT INVOICE***/
#InvoiceTicketsTable th, #InvoiceTicketsTable td {
    padding-right: 2em;
    width: auto;
}

.view-invoice {
    width: 1200px;
    margin: 0 auto;
}

    .view-invoice p {
        margin-bottom: 0;
    }

.view-invoice-paging {
    width: auto;
    margin: 0.5em auto 0;
    text-align: center;
}

.black-top {
    border-top: 1px solid black;
    vertical-align: baseline;
}

.black-bottom {
    border-bottom: 1px solid black;
    vertical-align: baseline;
}

.black-border {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.invoice-date-section {
    text-align: left;
    width: 200px;
    float: right;
}

.print-table {
    margin-bottom: 1em;
}

    .print-table p {
        margin-bottom: 0;
    }

table.print-table td {
    width: 32%;
}

/***PAYMENTS**/
.buttons {
    margin-top: 1em;
    width: 300px;
}

.selectAll {
    margin-right: 1em;
}

/***PAYMENT DETAIL***/
.payment-detail-wrapper {
    width: 1280px;
    margin: 0 auto 5em;
}

    .payment-detail-wrapper p {
        margin-bottom: 0;
    }

.payment-detail-info {
    float: right;
    text-align: right;
    margin-right: 2em;
}

.payment-detail-address {
    text-align: left;
    width: 400px;
    margin: 0 auto 1em;
}

.pd-address {
    width: 300px;
}

.pd-zip {
    text-align: right;
    float: right;
}

.pd-state {
    float: right;
    text-align: right;
    margin-right: 1em;
}

#PaymentDetail table {
    width: 100%;
}

#PaymentDetail th, #PaymentDetail td {
    padding-right: 2em;
    width: auto;
}

/*PAYMENT DETAIL TOTALS*/
.payment-detail-totals {
    width: 320px;
    float: right;
}

.payment-detail-total-labels {
    width: 150px;
    display: inline-block;
    text-align: right;
}

.payment-detail-total-values {
    display: inline-block;
    text-align: left;
}

/***MONEY OUT REPORT***/
.money-totals {
    width: 100%;
    margin: 2em auto 2em;
    text-align: center;
}

    .money-totals h3 {
        font-size: 1.25em;
    }

table.money-totals td {
    width: 32%;
    float: left;
    padding: 2em;
    text-align: center;
    background-color: #D3D3D3;
    margin-left: 0.5em;
    margin-right: 0.5em;
    border: 2px solid black;
}

.money-out-section {
    border: 2px solid black;
    background-color: #D3D3D3;
    margin-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
}

.title {
    text-align: center;
    margin: 0.5em auto 0.5em;
}

.total {
    text-align: right;
    margin-bottom: 1em;
}

/**************************************************************************************************************DISPATCH***/

/***DRIVER SCHEDULE***/
#ScheduledDriversTable, #NotScheduledDriversTable {
    background-color: lightgray;
}

.schedule-buttons {
    width: 100%;
    display: inline-block;
    margin-bottom: 10px;
}

.schedule-check {
    float: left;
}

.schedule-title {
    width: 100%;
    display: inline-block;
    margin-bottom: 10px;
}

.schedule-clearAll {
    float: right;
}

.schedule-wrapper {
    /*height: 600px;
    overflow-y: scroll;*/
    display: inline-block;
    width: 100%;
}

.scheduled-drivers {
    width: 49%;
    float: left;
}

.not-scheduled-drivers {
    width: 49%;
    float: right;
}

.schedule-view {
    width: 100%;
}

.schedule-table > thead > tr > th {
    border: 1px solid black !important;
    vertical-align: middle;
    text-align: right;
    font-size: 10pt;
}

.schedule-view td {
    border: 1px solid black !important;
    text-align: right;
    font-size: 10pt;
}

.schedule-view th {
    text-align: center;
    background-color: lightgray;
}

/**CREATE NEW JOB DISPATCH MODAL***/
.small-box {
    width: 90px;
    display: inline-block;
}

.create-dispatch-notes {
    width: 280px;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 1em;
}

    .create-dispatch-notes textarea {
        height: 80px;
    }

.create-dispatch-button {
    margin-top: 20px !important;
}

/***TICKETS TO BE APPROVED***/
.approve-all {
    margin-bottom: 1em;
    margin-left: 2em;
}

    .approve-all .form-check {
        display: inline;
    }

        .approve-all .form-check .form-check-input {
            margin: 0;
            margin-top: 3px !important;
            padding: 0;
        }

.approved-paging-controls {
    text-align: center;
}

.tickets-to-be-approved-wrapper {
    overflow-y: scroll;
    position: fixed;
    width: 100%;
    float: left;
    background-color: #fff;
    z-index: 200;
    top: 52px;
    left: 0;
}

.tickets-to-be-approved-content {
    margin-top: 270px;
}

.tickets-to-be-approved-section {
    box-shadow: 2px 1px 5px 0.2px;
    padding: 1em;
    background-color: #ccc;
    margin-bottom: 1em;
}

.ticket-buttons {
    display: inline-block;
    vertical-align: middle;
}

.ticket-title {
    display: inline-block;
    margin-right: 5px;
}

.tickets-to-approve-table {
    width: auto;
}

    .tickets-to-approve-table th {
        font-size: 9pt;
        vertical-align: middle;
        text-align: center;
    }

    .tickets-to-approve-table td:first-child {
        text-align: center;
        vertical-align: middle;
        max-width: 230px !important;
        width: 230px;
    }

    .tickets-to-approve-table td {
        text-align: center;
        vertical-align: middle;
        font-size: 10pt;
    }

        .tickets-to-approve-table td:nth-child(2) {
            width: 80px !important;
        }

        .tickets-to-approve-table td:nth-child(3) {
            width: 150px !important;
        }

        .tickets-to-approve-table td .ticket-number {
            width: 130px;
        }

        .tickets-to-approve-table td .tons {
            width: 100px;
        }

.uploaded-ticket-images {
    width: 100%;
    display: inline-block;
}

.uploaded-ticket-image {
    width: 100%;
    height: 100%;
    margin-bottom: 1em;
}

/***EDIT JOB***/
#AsphaltTicketsTable {
    width: 3000px;
    overflow-x: scroll;
}

/***INVOICE PDF***/
#hidden-pdf-content {
    max-width: 900px;
    padding: 10px;
}

    #hidden-pdf-content table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    #hidden-pdf-content td, #hidden-pdf-content th {
        padding: 8px;
        border: 0;
    }

/***INVOICE INDEX***/
.invoice-table td:nth-child(1) {
    max-width: 260px !important;
}

    .invoice-table td:nth-child(1) .error {
        font-size: 10pt;
        margin-top: 1.5em;
    }

.invoice-table td:nth-child(3) {
    max-width: 300px !important;
}

/***JOB REPORT***/
.job-report-content {
    font-size: 10pt;
}

.job-report-job-table td:first-child,
.job-report-job-table tr:first-child,
.job-report-products-table td:first-child,
.job-report-products-table tr:first-child,
.job-report-driver-table td:first-child,
.job-report-driver-table tr:first-child {
    text-align: left;
    width: 180px !important;
}

.job-report-job-table td:nth-child(2),
.job-report-job-table tr:nth-child(2),
.job-report-products-table td:nth-child(2),
.job-report-products-table tr:nth-child(2),
.job-report-driver-table td:nth-child(2),
.job-report-driver-table tr:nth-child(2) {
    text-align: left;
    width: 140px !important;
}

.job-report-job-table td,
.job-report-job-table tr,
.job-report-products-table td,
.job-report-products-table tr,
.job-report-driver-table td,
.job-report-driver-table tr {
    text-align: left;
    width: 100px !important;
}

.table.job-report-products-table td {
    padding: 0 !important;
}

.job-report-section {
    box-shadow: 2px 1px 5px 0.2px;
    padding: 1em;
    background-color: #ccc;
    margin-bottom: 1em;
}

.job-report-legend-table {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 12pt;
}

    .job-report-legend-table td {
        width: 24%;
    }

        .job-report-legend-table td:first-child {
            width: 24%;
            text-align: left;
            vertical-align: top;
        }

        .job-report-legend-table td:nth-child(4) {
            width: 24%;
            text-align: right;
            font-size: 16pt;
            vertical-align: top;
        }

/**PERMISSIONS**/
.permissions-list {
    padding: 0;
    margin-top: 2em;
}

.permissions-list li {
    display: inline;
    padding: 1em;
}