/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
:root {
    --bs-btn-hover-color: #000000;
    --bs-blue: var(--bs-primary);
    --bs-white: #FFF;
}

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

/* migrate from materialize */
.grey.darken-4 {
    background-color: #212121 !important;
}

.blue.darken-4 {
    background-color: #0d47a1 !important;
}

/* awesomplete bootstrap compat */
.form-floating > .awesomplete {
    display: block;
}

.form-floating > .awesomplete > input.form-control {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    background-color: var(--bs-btn-bg);
    display: block;
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.form-floating > .awesomplete > label {
    /* floating labels normally require :not(:placeholder-shown)
       this ensures Awesomplete wrapper still plays nice */
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem .75rem;
    pointer-events: none;
    transition: all .1s ease-in-out;
}

.form-floating > label.awesomplete {
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

.form-control.awesomplete ~ ul {
    z-index: 3;
}

/* card styles from materializecss */
.card-body {
    -webkit-transition: -webkit-box-shadow .25s;
    transition: -webkit-box-shadow .25s;
    transition: box-shadow .25s;
    padding: 24px;
    margin: .5rem 0 1rem 0;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
}

.card {
    position: relative;
    margin: .5rem 0 1rem 0;
    background-color: #fff;
    -webkit-transition: -webkit-box-shadow .25s;
    transition: -webkit-box-shadow .25s;
    transition: box-shadow .25s;
    border-radius: 2px
}

/* toolbar and tabs */
.toolbar .btn {
    height: 58px;
}

/* overall template */
#pageTop,
.pageTop {
    display: flex;
    justify-content: space-between;
}

#pageTop > *,
.pageTop > * {
    margin: 2.8rem 0 1.68rem 0;
}

main h1 {
    font-size: 32px;
    margin: 2.8rem 0 1.68rem 0;
}

main h2 {
    font-size: 26px;
    margin: 2.3733333333rem 0 1.424rem 0;
}

#headerTop .contact {
    text-transform: uppercase;
    font-size: 12px;
    line-height: 24px;
    color: #FFF;
}

#headerTop .row {
    padding: 0.5rem 0;
    margin: 0 auto;
}

#headerTop .contact p {
    padding: 0;
}

#headerTop a.dropdown-trigger {
    color: #FFF;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 24px;
    height: 24px;
    min-width: 200px;
}

#headerTop a.dropdown-trigger i.right {
    margin-left: 0;
}

#headerTop a.dropdown-trigger.btn {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

#dropdownMenuButtonCarrierRep {
    width: auto !important;
}

#headerBottom img {
    margin: 0.5rem 0;
    transition: filter 0.2s ease-in-out;
    filter: brightness(90%);
}

#headerBottom img:hover {
    filter: brightness(100%);
}

#headerBottom a.logo:hover {
    background: none;
}

#headerBottom .nav-item a,
#headerBottom .nav-item a:hover {
    color: #FFF;
    padding: 1rem;
}

#headerBottom a:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

#headerBottom .mobile.sidenav-trigger {
    display: none;
}

#mobileNavDrawer .offcanvas-header {
    background: var(--bs-blue) url("/assets/images/onlinetransport-carriers.jpg") no-repeat center center;
    background-size: cover;
    color: var(--bs-white);
    position: relative;
}
#mobileNavDrawer .offcanvas-header a {
    color: var(--bs-white);
}

#mobileNavDrawer .offcanvas-header button {
    position: relative;
    z-index: 2;
}

#mobileNavDrawerLabel {
    color: var(--bs-white);
    position: relative;
}

#mobileNavDrawer .offcanvas-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 62, 142, 0.88);
    z-index: 0;
}

#progressBar {
    visibility: hidden;
    margin: 0;
    position: fixed;
    top: 0;
    z-index: 9999;
    height: 1px;
    width: 100%;
}

#progressBar.show {
    visibility: visible;
}

main {
    min-height: calc(100vh - 178px);
}

footer .container,
footer .logo,
footer .copy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

footer .logo,
footer .copy {
    width: 40%;
    padding: 1rem 0;
}

footer .copy {
    text-align: right;
    width: 60%;
}

footer .copy p {
    color: #FFF;
}

footer .copy p,
footer .copy a {
    display: block;
    padding: 0.25rem 0.5rem;
    margin: 0;
    white-space: nowrap;
}

footer .right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* data table */
.datatable td.actions {
    text-align: right;
    white-space: nowrap;
}

.datatable td.actions a {
    margin: 0 0.5rem;
}

/* payto matches */
#modalPayToFactoringCompanyMultipleChoice.loading:before {
    content: '';
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 999;
    position: absolute;
}

#modalPayToFactoringCompanyMultipleChoice.loading:after {
    content: 'Submitting, please wait...';
    width: 100%;
    height: 100%;
    z-index: 1000;
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 20px;
}

/* cards */
.card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

img {
    max-width: 100%;
    height: auto;
}

/* icons */
i.material-icons.tooltipped {
    cursor: pointer;
    line-height: 20px;
    margin-left: 0.5rem;
    font-size: 16px;
}

/* switch carrier */
#switchCarrierModal .modal-dialog {
    max-height: 500px;
    max-width: 600px;
    border-radius: 10px;
    background-color: #FFF;
}

#switchCarrierModal .modal-content {
    padding: 0;
    border: none;
}

#switchCarrierSearch {
    margin-bottom: 0;
}

#switchCarrierResults {
    height: 409px;
    overflow-y: scroll;
    margin: 0;
}

#switchCarrierResults .row {
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
    background: rgba(255, 255, 255, 1);
}

#switchCarrierResults mark {
    padding: 0;
}

#switchCarrierResults .row:first-child,
#switchCarrierResults .row:hover {
    background: rgba(0, 0, 0, 0.05);
}

#switchCarrierResults .row .secondary-content i {
    font-size: 32px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
    visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
    Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (max-width: 580px) {
    footer .container,
    footer .logo,
    footer .copy {
        width: 100%;
        display: block;
        text-align: center;
    }
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
       * Don't show links that are fragment identifiers,
       * or use the `javascript:` pseudo protocol
       */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
       * Printing Tables:
       * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
       */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* Placeholder Skeleton */

.ph-item {
    direction: ltr;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding: 30px 15px 15px 15px;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
}

.ph-item, .ph-item *,
.ph-item ::after, .ph-item ::before {
    box-sizing: border-box;
}

.ph-item::before {
    content: " ";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    z-index: 1;
    width: 500%;
    margin-left: -250%;
    -webkit-animation: phAnimation 0.8s linear infinite;
    animation: phAnimation 0.8s linear infinite;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;
}

.ph-item > * {
    flex: 1 1 auto;
    display: flex;
    flex-flow: column;
    padding-right: 15px;
    padding-left: 15px;
}

.ph-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 7.5px;
}

.ph-row div {
    height: 10px;
    margin-bottom: 7.5px;
    background-color: #ced4da;
}

.ph-row .big,
.ph-row.big div {
    height: 20px;
    margin-bottom: 15px;
}

.ph-row .xl,
.ph-row.xl div {
    height: 40px;
    margin-bottom: 15px;
}

.ph-row .empty {
    background-color: rgba(255, 255, 255, 0);
}

.ph-col-1 {
    flex: 0 0 8.333335%;
}

.ph-col-2 {
    flex: 0 0 16.66667%;
}

.ph-col-4 {
    flex: 0 0 33.33333%;
}

.ph-col-6 {
    flex: 0 0 50%;
}

.ph-col-8 {
    flex: 0 0 66.66667%;
}

.ph-col-10 {
    flex: 0 0 83.33333%;
}

.ph-col-12 {
    flex: 0 0 100%;
}

.ph-avatar {
    position: relative;
    width: 100%;
    min-width: 60px;
    background-color: #ced4da;
    margin-bottom: 15px;
    border-radius: 50%;
    overflow: hidden;
}

.ph-avatar::before {
    content: " ";
    display: block;
    padding-top: 100%;
}

.ph-avatar.small {
    max-width: 42px;
}

.ph-picture {
    width: 100%;
    height: 120px;
    background-color: #ced4da;
    margin-bottom: 15px;
}

.ph-picture.big {
    max-height: 500px;
    height: 50vw;
}

@-webkit-keyframes phAnimation {
    0% {
        transform: translate3d(-30%, 0, 0);
    }
    100% {
        transform: translate3d(30%, 0, 0);
    }
}

@keyframes phAnimation {
    0% {
        transform: translate3d(-30%, 0, 0);
    }
    100% {
        transform: translate3d(30%, 0, 0);
    }
}