﻿/* 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. */

* {
    font-size: 13px;
}

body {
    font-family: sans-serif;
    font-size: 12px !important;
}

input:read-only {
    background-color: lightgray;
}

.fms-gutter {
    padding: 10px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
.fms-hyperlink {
    color: #fe6358 !important;
    text-decoration: underline !important;
}

.fms-hint {
    color: #424242;
    font-size: 12px;
    font-style: italic;
}

hr {
    border-top: 2px solid lightgrey;
    border-left: hidden;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.k-form-clear{
    display:none!important;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    width: 100%;
    height: 100%;
}
@media (min-width: 768px) {
    html {
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}
.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

#main > div:first-of-type {
    display: flex;
    min-height: calc(100vh - 116px);
}

#main > div:first-of-type > #rendered-body {
    flex: 1;
    height: calc(100vh - 116px);
}

#main > div:first-of-type > #drawer {
    order: -1;
}

header {
    height: 58px;
}

footer {
    height: 58px;
    line-height: 58px;
}

#rendered-body {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: normal;
    align-items: normal;
    align-content: normal;
    width: calc(100vw - 66px);
}

.k-tabstrip-wrapper {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

/*TODO: this is being applied to forms. Is it being applied else where?
   If not, should be renamed to fms-form
   if it is, needs to be refactored*/
.fms-page {
    display: block;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
    overflow: auto;
    padding: 10px;
}

.fms-flex-column {
    display: flex;
    flex-flow: column wrap;
    overflow: auto;
    align-items: flex-start;
}

.fms-flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    flex: 1;
}

.fms-width-1024px {
    max-width: 1024px;
}

.fms-card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    margin: 8px;
    background-color: #F8F8F8;
}

.fms-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.fms-card-container {
    padding: 8px 16px;    
}

.fms-card-container > * {
    margin: 10px 0;
}

.fms-max-width-md {
    max-width: 650px;
}

.fms-underline {
    text-decoration: underline;
}

/* TODO: uncomment and remove style element from _menuBar.cshtml when all grid pages use the menubar

#grid .k-toolbar.k-grid-toolbar {
    display: none;
    height: auto;
    overflow: auto;
    flex: 1 1 auto;
}
*/

.fms-hamburger {
    flex-grow: 1;
    padding-right: 5px;
}

#intakeLegs .k-form-layout {
    max-width: 600px;
    width: 600px;
}

.validationSummaryError {
    color: #7f231c;
    font-weight: bold;
    background-color: #fccac7;
    border-corlor: #fdd9d7;
    padding: 5px
}

.validationSummaryError:has(> ul > li:empty) {
    display: none;
}

.k-form-fieldset {
    margin: 0px;
}

.k-icon.k-i-unpin {
    font-size: 18px;
    position: absolute;
    right: 0;
}

.k-icon.k-i-globe-outline {
    font-size: 22px;
    margin-left: 8px;
    margin-bottom: 6px;
}

.las,.lar,.lab {
    font-size: 24px;
    height: 24px;
    width: 24px;
}

/***** Grid Customizations *****/

#grid > div.k-toolbar.k-grid-toolbar > span.k-spacer {
    flex: none;
}

#grid > div.k-toolbar.k-grid-toolbar span.k-searchbox {
    display: none;
    margin-left: 0;
}

div.k-content.k-tabstrip-content {
    padding: 0;
}

form.fms-page {
    padding: 1em;
}

.k-grid {
    border-width: 0;
    height: 100%
}

.k-grid .k-grid-search {
    margin-left: auto;
    margin-right: 0;
}

.k-grid tr .checkbox-align {
    text-align: center;
    vertical-align: middle;
}

.k-grid td {
    white-space: nowrap;
    word-wrap: normal;
    padding: 0.3em 0.3em;
    line-height: 1.3em;
}

.k-grid .k-edit-cell {
    padding: 0.1em 0.1em;
    line-height: 1em;
}

.k-edit-cell input {
    padding: 0.1em 0.1em;
    line-height: 1em;
}

.k-grid-header th.k-header .k-checkbox {
    vertical-align: middle;
    bottom: 1px;
    left: -4px;
}

.k-grid-filter.k-state-active {
    background-color: rgb(211, 227, 242);
}

/*DropDown Combo Boxes*/
.combo-td {
    width: 150px;
    padding: 10px;
}

.combo-hd-td {
    width: 150px;
    font-weight: bold;
    color: blue;
    padding: 10px;
}

.fms-hierarchy-cell {
    writing-mode: vertical-lr;
    transform: rotate(-180deg);
    font-weight: bold;
    text-align: center;
    padding: 8px 4px !important;
    border-radius: 3px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#grid tr.k-detail-row.k-table-row > td.k-hierarchy-cell.k-table-td {
    background: #677e95;
}

#grid tr.k-detail-row.k-table-row > td.k-table-td.k-detail-cell {
    border: solid 1px #677e95;
}

.fms-legs-grid tr.k-detail-row.k-table-row > td.k-hierarchy-cell.k-table-td {
    background: #32cb9b !important;
}

.fms-legs-grid tr.k-detail-row.k-table-row > td.k-table-td.k-detail-cell {
    border: solid 1px #32cb9b !important;
}

.fms-load-sent-or-complete {
    color: #27ae60 !important;
    font-weight: bold;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #27ae60;
}

.fms-load-past-planning {
    color: #e74c3c !important;
    font-weight: bold;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #e74c3c;
}

.fms-load-today-planning {
    color: #f39c12 !important;
    font-weight: bold;
    background-color: rgba(243, 156, 18, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #f39c12;
}

.fms-load-future-planning {
    color: #3498db !important;
    font-weight: bold;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #3498db;
}

.fms-legs-grid tbody td {
    padding: 4px;
}

.fms-legs-grid .k-button {
    padding: 0;
}

.fms-alert-text {
    text-align: center;
}

.fms-group-checkbox {
    margin-right: 6px !important;
    bottom: 1px;
}

#BookingNeeded-form-label {
    pointer-events: none;
    cursor: default;
}

.sign-here {
    box-shadow: 0 0 11px rgb(0 255 42 / 80%);
}

.card.rate-sheet {
    width: 18rem;
    margin-top: 20px;
}

.card.quote {
    width: 40rem;
    margin-top: 20px;
}

.k-list-item {
    display: block !important;
}

/* TabStrip */

.k-tabstrip {
    background-color: #ffffff !important;
}

.k-tabstrip:focus {
    /* box-shadow: 0 2px 6px rgb(0 0 0 / 20%), 0 2px 3px rgb(0 0 0 / 5%); */
    box-shadow: none;
}

.k-tabstrip-items-wrapper {
    color: #fff;
    background-color: #EFEFEF;
}

.k-tabstrip-items .k-item {
    background-position: 50% 50%;
    background-color: #EFEFEF;
}

.k-tabstrip-items .k-item .k-link {
    color: #444;
}

.k-tabstrip-items .k-item.k-state-hover {
    background: #E5E5E5;
    border-color: #BDBDBD;
}

.k-tabstrip-items-wrapper .k-tabstrip-items .k-item.k-state-active {
    background-color: #EFEFEF;
    background-image: none;
    border-bottom-color: #00b0ff;
}

.k-tabstrip .k-tabstrip-items>.k-item {
    text-transform: none;
}

.k-tabstrip-wrapper .k-item.separator {
    width: 0;
    height: 35px;
    border-right: 1px solid #D3D3D3;
    margin: 10px 0;
}

.k-tabstrip-content>.k-toolbar {
    border-width: 0;
}

.k-tabstrip .k-button {
    text-transform: none;
}

.k-tabstrip .k-button.k-disabled {
    pointer-events: none;
    opacity: .6;
}

.push {
    margin-left: auto;
}

/*address dropdown formatting*/
.fms-addressDropDown-title {
    font-weight: bold;    
}

.fms-addressDropDown-street {
    font-style: italic;
    color: dimgrey;
}

.fms-addressDropDown-nasscode {
    font-weight: bold;
}

.fms-addressDropDown-dropsitekey {
    font-style: italic;
    color: dimgrey;
    display:block;
}

.hidden {
    display: none;
}

.pricing-agreement-upload-summary #uploadSummaryInfo {
    font-size: 14px;
    line-height: 19px;
    max-height: 250px;
    overflow: auto;
}

.pricing-agreement-upload-summary .error {
    color: red;
}

.pricing-agreement-upload-summary .success {
    color: green;
}

.fms-freight-images-form label {
    display: block;
    margin: 10px 0;
}

.fms-freight-images-form textarea {
    min-width: 400px;
}

.fms-freight-images-form .k-upload .k-multiple-files-wrapper .k-file-summary {
    margin-top: 4px;
}

.fms-freight-images-form button {
    margin: 10px 0;
    float: right;
}

.fms-freight-images-container .k-expander-header {
    background-color: #eeeeee;
}

.fms-freight-images-container .k-expander-title {
    color: #000000;
}

.fms-freight-images-container .panel-content {
    display: flex;
    flex-wrap: wrap;
}

.fms-freight-images-container .panel-content .panel-description {
    margin-bottom: 15px;
    width: 100%;
}

.fms-freight-images-container .panel-content .panel-image {
    margin: 10px 25px 10px 0;
    border: solid 1px #555;
    opacity: 0.8;
    box-shadow: 1px 3px 19px 0px rgba(0,0,0,0.59);
    -webkit-box-shadow: 1px 3px 19px 0px rgba(0,0,0,0.59);
    -moz-box-shadow: 1px 3px 19px 0px rgba(0,0,0,0.59);
    transition: 0.5s;
}

.fms-freight-images-container .panel-content .panel-image:hover {
    opacity: 1;
}

.fms-freight-images-container .panel-content .panel-image img {
    display: block;
    height: 220px;
    width: 285px;
    object-fit: cover;
}

.fms-sticky {
    position: sticky !important;
    top: 0;
    z-index: 11;
    background: #ffffff;
}

.fms-hide {
    opacity: 0;
    height: 0;   
}

.fms-show {
    opacity: 1;
    height: auto;
}

.fms-transition {
    transition: opacity 0.75s ease-in-out, height 0.75s ease-in-out;
    overflow: hidden;
}

#selectedCountGrid {
    font-weight: 700;
    padding: 0 5px;
}

#selectedWeightGrid {
    font-weight: 700;
    padding: 0 5px;
}

#selectedWeightContainer {
    display: none;
}

.filter-chips-actions {
    display: inline-flex;
    gap: 8px;
    margin: 10px 0
}

.k-window .k-overlay {
    opacity: 0 !important;
}

.k-drawer-item {
    background-image: linear-gradient(#ececec,#ececec);
    background-size: 0 100%;
    background-repeat: no-repeat;
    font-size: 14px;
    text-decoration: none;
}

    .k-drawer-item:hover {
        background-size: 100% 100%;
        color: #000 !important;
        transition: .4s;
    }

    .k-drawer-item .k-item-text {
        padding-top: 2px;
    }

.k-hierarchy-cell, k-hierarchy-col {
    min-width: 32px !important;
    width: 32px !important;
    display: table-cell !important;
    padding: 0 !important;
}

.fms-similar-company-highlight {
    background-color: #d3d3d3;
    padding: 1px 2px 1px 5px;
    border-radius: 2px;
    border-left: 4px solid #2563EB;
}

/* PurchaseOrderCompanyPicker — enforce column widths for virtual scrolling.*/
.k-virtual-list .k-table-row:not(tr) {
    display: flex;
}

.k-virtual-list .k-table-row > .k-table-th:nth-child(1),
.k-virtual-list .k-table-row > .k-table-td:nth-child(1) {
    width: 64%;
}


.k-virtual-list .k-table-row > .k-table-th:nth-child(2),
.k-virtual-list .k-table-row > .k-table-td:nth-child(2) {
    width: 12%;
}

.k-virtual-list .k-table-row > .k-table-th:nth-child(3),
.k-virtual-list .k-table-row > .k-table-td:nth-child(3) {
    width: 12%;
}

.k-virtual-list .k-table-row > .k-table-th:nth-child(4),
.k-virtual-list .k-table-row > .k-table-td:nth-child(4) {
    width: 12%;
}