﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/**************************
* Page height utilities
**************************/
html, body, .container-fluid, .fh-row {
    height: 100%;
}
#page-content {
    flex: 1 0 auto;
}

#sticky-footer {
    flex-shrink: 0;
}

/**************************
* Border utilities
**************************/

.border-2 {
    border-width: 2px !important;
}

.border-3 {
    border-width: 3px !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-5 {
    border-width: 5px !important;
}

/*************************
    Form Styling
*************************/

.form-group.required label:after {
    content: "*";
    color: red;
}

.cb-label {
    text-align: center;
}

#addProductForm label {
    font-weight: bold;
}

#uomForm label {
    font-weight: normal;
}

#uomValidationSummary {
    margin-bottom: 10px;
}

#ldcValidationSummary {
    margin-bottom: 10px;
}

#productButtons {
    margin-top: 20px;
}

.truck-picker div button div {
    font-weight: bold;
    font-size: large;
}

.panel-placeholder {
    border: 1px dotted black;
    border-radius: 4px;
    margin: 0 15px 20px 15px;
    padding: 0;
    height: 50px;
}


form#consignmentForm ul.dropdown-menu.inner.show {
    min-width: 50px !important;
}

.fa-1-5x {
    margin-top: 3px;
    font-size: 1.5em;
}

.heading-label {
    font-size: 1.2em;
    font-weight: bold;
}


/**************************
* ICS Help
**************************/
.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.help-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 400px;
    max-width: 400px;
    color: #fff;
    transition: all 0.3s;
    margin-right: 20px;
    position: fixed;
    width: 100vw; /* viewport width */
    height: 100vh; /* viewport height */
    overflow-y: scroll;
    overflow-x: hidden;}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #a0a0a0;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li.active > a {
    color: #7386D5;
}

/* Style the sidenav links and the dropdown button */
#sidebar a, .dropdown-btn {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    color: #2a4380;
    display: block;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
}

#homelink {
    font-weight: bold;
}

.dropdown-btn {
    font-weight: bold;
}

#help-content {
    margin-left: 450px;
}


.help-wrapper a[data-toggle="collapse"] {
    position: relative;
}

.help-wrapper .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.help-wrapper a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: #50535c;
}

/* Optional: Style the caret down icon */
.fa-caret-down {
    float: right;
    padding-right: 8px;
}

/**************************
* Cons to Docket
**************************/

#cons-items {
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

#cons-items td {
    padding-right: 5px;
}

#cons-items input {
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/**************************
* Quote Tracker
**************************/

#output {
    height: 400px;
    width: 1200px;
    overflow: auto;
}

#excelDataTable th {
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: rgba(0, 0, 0, 0.06);
}

#excelDataTable td {
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: rgba(0, 0, 0, 0.03);
}

/**************************
* Third Party Consignments
**************************/
.required-row {
    border: 2px solid rgba(239, 228, 176, 1);
}

/**************************
* Custom slider switch 
**************************/
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: #17a2b8;
}
input:focus + .slider {
    box-shadow: 0 0 1px #17a2b8;
}
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
        border-radius: 50%;
    }



/***************************
* Custom Checkbox wich cross rather than tick
***************************/
.checkbox label:after {
    content: '';
    display: table;
    clear: both;
}
.checkbox .cr {
    position: relative;
    display: inline-block;
    border: 1px solid #a9a9a9;
    width: 1.3em;
    height: 1.3em;
    float: left;
    margin-right: .5em;
}
.checkbox .cr .cr-icon {
    position: absolute;
    font-size: 1.1em;
    line-height: 0;
    top: 54%;
    left: 20%;
}
.checkbox label input[type="checkbox"] { display: none; }
.checkbox label input[type="checkbox"] + .cr > .cr-icon { opacity: 0; }
.checkbox label input[type="checkbox"]:checked + .cr {
    background-color: #d9534f;
    color: #ffffff;
    border: none;
}
.checkbox label input[type="checkbox"]:checked + .cr > .cr-icon { opacity: 1; }

.lg-checkbox {
    width: 20px;
    height: 20px;
}

/***************************
* Nav menu and page header customisation
***************************/
#mainNav li { /*Provide enough space for touch menu items*/
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
/*Set the relative size of the logo*/
.logo { height: 2em; }

/*Hamburger menu list items display on mobile - border sperators*/
div.navbar-collapse.show li.nav-item {
    border-bottom: 1px solid #50535c;
}

div.navbar-collapse.show ul.navbar-nav:first-child {
    border-top: 1px solid #50535c;
}

/***************************
* Site wide icon style
***************************/
.fas.fa-truck.red, .fas.fa-truck-loading.red, .fas.fa-times.red { color: #d9534f; }
td.statusIcon .grey {
    color: #d6d6d6;
}
td.statusIcon {
    color: #009344;
    font-size: 2em;
}
td.statusIcon span.badge {
    display: block;
    font-size: 0.35em;
}
div.statusIcon.secondary {
    color: #292b2c;
}

div.statusIcon {
    font-size: 1.8em;
}

.statusIcon.primary {
    color: #0275d8;
}

.statusIcon.success {
    color: #5cb85c;
}

.statusIcon.warning {
    color: #f0ad4e;
}

.statusIcon.info {
    color: #5bc0de;
}

.statusIcon.danger {
    color: #d9534f;
}

div.statusIcon span.badge {
    display: block;
    font-size: 0.35em;
}
.icobutton {
    padding: 4px !important;
    font-size: 1.2em;
}
/***************************
* Custom centering utilities
***************************/
div.center-wrapper { text-align: center; }
div.center-wrapper div { display: inline-block; }
.vertical-center {
    min-height: 85%; /* Fallback for browsers do NOT support vh unit */
    min-height: 85vh; /* These two lines are counted as one :-)       */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/***************************
* Site wide colours
***************************/
div.greybg {
    background-color: #f5f5f5;
    padding-top: 0px !important;
}
div.whitebg {
    background-color: #ffffff;
    padding-top: 0px !important;
}
body { background-color: #ffffff; }
a.pfmBlue {
    background-color: #2a4380;
}
.pfmBlue {
    color: #385bb0;
}
.green {
    color: #009344;
}
.btn-secondary, .btn-secondary:visited {
    background-color: #50535c !important;
    border-color: #50535c !important;
}
.btn-secondary:hover, .btn-secondary:active {
    background-color: #373940 !important;
}
a.editblue, button.editblue {
    background-color: #17a2b8 !important;
    color: white;
    
}
    a.editblue:hover, button.editblue:hover {
        background-color: #13899c !important;
        color: white;
    }

a.bg-colour-0 {
    background-color: #156a75 !important;
}
a.bg-colour-1 {
    background-color: #449342 !important;
}
.bg-colour-2 {
    background-color: #2EAF7D !important;
}
.bg-colour-3 {
    background-color: #3FD0C9 !important;
}
.bg-colour-4 {
    background-color: #0A7B79 !important;
}
.bg-colour-5 {
    background-color: #133966 !important;
}
.bg-colour-6 {
    background-color: #082b54 !important;
}
.bg-colour-7 {
    background-color: #041240 !important;
}
.bg-colour-8 {
    background-color: #01332a !important;
}
.bg-colour-9 {
    background-color: #27254d !important;
}

.bg-COMPLETE {
    background-color: #cef5cb !important;
}
.bg-BOOKED {
    background-color: #cbd5f5 !important;
}
.bg-CANCELLED {
    background-color: #f5cbcb !important;
}
.bg-FUTILE {
    background-color: #f5ddcb !important;
}
.bg-QUOTE {
    background-color: #e0cbf5 !important;
}
.bg-HOLD {
    background-color: #91a0ff !important;
}
.bg-COLLECTED {
    background-color: #cbf5ee !important;
}
.bg-CALL {
    background-color: #fffbcc !important;
}
.bg-ENTERED {
    background-color: #f0f0f0 !important;
}
/***************************
* Card styling
***************************/
div.card {
    padding: 1em;
    margin-top: 1em;
    margin-left: 1em;
    margin-right: 1em;
}
.card-img-bottom {
    width: 7em;
    height: 7em;
}
div.card .card-m0-sm {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/***************************
* Fixed width table
***************************/
table.fit { table-layout: fixed; }

table.fit td {
    word-wrap: break-word;
    max-width: 1px;
    -webkit-hyphens: auto; /* iOS 4.2+ */
    -moz-hyphens: auto; /* Firefox 5+ */
    -ms-hyphens: auto; /* IE 10+ */
    hyphens: auto;
}

/***************************
* Padding override
***************************/
.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

/***************************
* Text utilities
***************************/
td.textsmaller { font-size: 0.8em !important; }
h5.ib { display: inline-block; }
table.smaller { font-size: 0.9em; }
table.smaller th { font-size: 0.88em; }
table.table-text-small {
    font-size: 0.7em !important;
}
table.table-text-smaller {
    font-size: 0.8em !important;
}
.mob-small {
    font-size: 0.8em;
}

.inline-headers h3, .inline-headers h5 {
    display: inline-block !important;
    vertical-align: baseline !important;
}

/***************************
* Stats card styling
***************************/
div.tile_count {
    color: #73879c !important;
}
.tile_count .tile_stats_count {
    border-bottom: 1px solid #D9DEE4;
    padding: 0 10px 0 20px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.tile_count .tile_stats_count .count {
    font-size: 30px;
    line-height: 47px;
    font-weight: 600;
}
.tile_count .tile_stats_count .count_bottom i { width: 12px; }
    .tile_count .tile_stats_count span {
        font-size: 12px;
    }

/***************************
* Form controls
***************************/
input[type="text"] .blank,
select.form-control .blank {
    background: transparent;
    border: none;
    border-bottom: 1px solid #000000;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
}
input[type="text"]:focus .blank,
select.form-control:focus .blank {
    -webkit-box-shadow: none;
    box-shadow: none;
}
.form-control[readonly] .blank { background-color: transparent; }

.soh-select .dropdown-menu {
    width: 100%;
}

/***************************
* Map menu styling
***************************/
#mapMenu {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5em;
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 40px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    font-family: 'Open Sans', sans-serif;
}
#mapMenuToggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}
#mapSearchToggle {
    position: absolute;
    top: 50px;
    left: 10px;
    z-index: 1;
}
#mapConsignmentListToggle {
    position: absolute;
    top: 90px;
    left: 10px;
    z-index: 1;
}

#mapFleetListToggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

/***************************
* Runsheet view
***************************/
.schedule-container {
    border: solid 1px rgb(91, 118, 166);
}

.truck-schedule-header {
    text-align: center;
    font-weight: bold;
    color: rgb(110, 117, 216);
}

.custom-switch.custom-switch-md .custom-control-label {
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.custom-switch.custom-switch-md .custom-control-label::before {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
}

.custom-switch.custom-switch-md .custom-control-label::after {
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: calc(2rem - (1.5rem / 2));
}

.custom-switch.custom-switch-md .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(calc(1.5rem - 0.25rem));
}

/***************************
* EDI Mapping
***************************/

.table-no-filter{
    vertical-align: top!important;
}

.vakata-context {
    z-index: 1100
}

/***************************
* Horizontal icon-bar menu
***************************/
.icon-bar {
    width: 100%;
    background-color: #50535c;
    overflow: auto;
}
.icon-bar a {
    float: left; 
    text-align: center; 
    width: 25%; 
    padding: 12px 0; 
    transition: all 0.3s ease; 
    color: white; 
    font-size: 1.2em; 
}
.icon-bar a.active {
        background-color: #009344; /* Add an active/current color */
        box-shadow: 4px 4px 4px #50535c;
    }
/***************************
* Vertical icon-bar menu
***************************/
.icon-bar-vertical {
        background-color: #50535c;
        height: 100%; /* Dark-grey background */
        width: 4.2em;
    }
.icon-bar-vertical:hover {
            width: auto;
        }
.showhover {
        display: none;
        color: white;
        font-size: 1rem;
    }
.icon-bar-vertical:hover .showhover {
        width: auto;
        display: inline;
    }
.icon-bar-vertical a {
        text-align: left; /* Center-align text */
    }
.icon-bar-vertical div.sbMenuItem {
        display: block; /* Make the links appear below each other instead of side-by-side */
        padding: 16px; /* Add some padding */
        transition: all 0.3s ease; /* Add transition for hover effects */
        font-size: 1.7em; /* Increased font-size */
    }
.icon-bar-vertical a i {
        color: white; /* White text color */
    }
.icon-bar-vertical div.sbMenuItem:hover div.vert-submenu {
            display: block;
        }
.icon-bar-vertical div.sbMenuItem.active {
        background-color: #009344; /* Add an active/current color */
    }
div.vert-submenu {
        display: none;
        font-size: 1rem;
    }
div.vert-submenu a {
            color: white !important;
    text-align: left !important;
        }
div.vert-submenu a:hover {
                text-decoration: underline;
            }
div.vert-submenu:hover {
            display: block;
        }


/********************************
* Media Queries
*********************************/
/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
    .mob-small {
        font-size: 1em;
    }
    div.card .card-m0-sm {
        margin-left: 1em !important;
        margin-right: 1em !important;
    }
}

/* Desktop Only */
    @media only screen and (min-width: 768px) {
        .icon-bar a:hover {
            background-color: #373940; /* Mouse over colour */
        }

        .icon-bar-vertical div.sbMenuItem:hover {
            background-color: #373940; /* Mouse over colour */
        }
    }

    /* Desktops and large devices */
    @media (min-width: 768px) {
        .tile_count .tile_stats_count .count {
            font-size: 40px;
        }

        .tile_count .tile_stats_count span {
            font-size: 13px;
        }

        .tile_count .tile_stats_count:before {
            content: "";
            position: absolute;
            left: 0;
            height: 65px;
            border-left: 2px solid #ADB2B5;
            margin-top: 10px;
        }
    }
    /* Large screen */
    @media (min-width: 992px) and (max-width: 1100px) {
        .tile_count .tile_stats_count .count {
            font-size: 30px;
        }

        nav a.Selected {
            border-bottom: #2a4380 !important;
            border-width: 3px !important;
            border-bottom-style: solid !important;
        }
    }
    /* Large and extra large screens */
    @media (min-width: 992px) {
        .tile_count .tile_stats_count {
            border-bottom: 0;
        }

            .tile_count .tile_stats_count:first-child:before {
                border-left: 0;
            }

        #mainNav a.btn {
            border-style: solid !important;
        }
    }

/*
*
* ==========================================
* Print styling
* ==========================================
*
*/
@media print {
    input {
        background-color: transparent !important;
        padding: 2px !important;
        border: none !important;
        display: inline !important;
    }
    label {
        display: inline !important;
    }
    .form-control {
        display: inline !important;
        width: 70% !important;
    }
    div.modal-content {
        border: none !important;
        margin: 2em !important;
        margin-right: 3em !important;
    }
    div.modal-dialog-centered {
        display: block !important;
        align-items: start !important;
        height: auto !important;
    }
        div.modal-dialog-centered::before {
            height: auto !important;
        }
    div.card {
        margin: 0px !important;
        border: none !important;
    }
    .form-group {
        margin-bottom: 0.2em !important;
    }
    textarea {
        background-color: transparent !important;
        padding: 2px !important;
        border: none !important;
    }
    ul {
        border: none !important;
        margin: 0px !important;
    }
    li {
        border: none !important;
        margin: 0px !important;
        padding: 0.5em !important;
    }
    label.va-top-print {
        vertical-align: top !important;
    }
    div.fixed-table-toolbar {
        display: none !important;
    }
}

/*
*
* ==========================================
* CUSTOM UTIL CLASSES
* ==========================================
*
*/
.clearfix::after,
.calendar ol::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

#side ul li a {
    padding-bottom: 0.1em !important;
}


/*Calendar*/
.month {
    font-size: 3.2rem;
}
@media (max-width:575px) {
    .display-4 {
        font-size: 1.5rem;
    }

    .day h5 {
        background-color: #f8f9fa;
        padding: 3px 5px 5px;
        margin: -8px -8px 8px -8px;
    }

    .date {
        padding-left: 4px;
    }
}

@media (min-width: 576px) {
    .day {
        height: 14.2857vw;
    }
}
@media (min-width: 1200px) {
    .day {
        height: 8.2857vw;
    }
}
