﻿:root {
    --ecm-color-green: 136, 194, 154;
    --ecm-color-red: 191, 69, 67;
    --ecm-failure-card-bg: rgba(var(--ecm-color-red), 0.157);
    --ecm-success-card-bg: rgba(var(--ecm-color-green), 0.157);
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    padding-top: 40px;
    background-color: #f5f5f5;
}

@supports (scrollbar-width: auto) {
    body {
        scrollbar-color: rgb(127 127 127 / 27%) rgb(127 127 127 / 4%);
        scrollbar-width: thin;
    }
}

.align-items-stretch {
    align-items: stretch;
}

.breadcrumb {
    background-color: #f5f5f5;
}

.navbar, .dropdown-menu, .dropdown-menu .dropdown-item {
    background-color: #302d29;
    font-size: 1.0em;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    min-height: 25px;
    padding: 0 0 6px 18px;
}

    .navbar-brand img {
        width: 160px;
        padding: 0;
    }

.navbar-dark .navbar-nav .nav-item .nav-link,
.dropdown-item {
    color: #D5D5D5;
}

.nav-item {
    margin: 2px 10px 2px 10px;
}

.nav-tab-container .nav-tabs .nav-link {
    border-radius: .25rem;
    padding-bottom: .6125rem;
    margin-bottom: -.25rem;
}

    .nav-tab-container .nav-tabs .nav-link.active {
        border-color: #dee2e6;
    }

.navbar-dark .nav-item > .nav-link.active,
.navbar-dark .navbar-nav .nav-item .dropdown-menu .dropdown-item:focus,
.navbar-dark .navbar-nav .nav-item .dropdown-menu .dropdown-item:hover,
.navbar-dark .navbar-nav .nav-item:focus .nav-link,
.navbar-dark .navbar-nav .nav-item:hover .nav-link {
    color: #FFFFFF;
}

.dropdown-item-light {
    background-color: #f8f9fa !important;
    color: #16181b !important;
}

    .dropdown-item-light:hover, .dropdown-item-light:focus {
        color: #16181b !important;
        text-decoration: none;
        background-color: #e9ecef !important;
    }

#navbar-collapse-main.collapsing {
    overflow-y: hidden;
}

#navbar-collapse-main {
    width: fit-content;
    padding: 1rem 1rem 1rem 0.5rem;
    position: fixed;
    left: 0;
    top: 44px;
    bottom: 0;
    overflow-y: auto;
    background: #2f2d29;
}

    #navbar-collapse-main .navbar-nav {
        width: min-content;
        min-width: 16rem;
    }

    #navbar-collapse-main .dropdown-menu {
        border: none;
    }

        #navbar-collapse-main .dropdown-menu .nav-link {
            padding-left: 1rem;
            border-left: 1px solid #666666;
        }

#rightmenues h6.dropdown-header {
    background-color: #2f2d29;
    color: #fff;
    font-size: 1.25rem;
    margin: -4rem 0 0;
    padding: 0.75rem 8rem 0.75rem 1rem;
    position: sticky;
    top: -4rem;
}

#rightmenues .dropdown-menu.show {
    position: absolute;
    right: -1rem;
    top: auto;
    left: auto;
    max-height: 50vh;
    min-width: min-content;
    overflow: auto;
    padding: 1rem 0;
}

#rightmenues .notifications.dropdown-menu.show {
    padding: 4rem 0 1rem;
    min-height: 250px;
}

#rightmenues .dropdown-menu a.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #cccccc;
    white-space: nowrap;
    padding: 1rem 4rem 1rem 1rem;
}

    #rightmenues .dropdown-menu a.nav-link:after {
        content: "\f061";
        color: #cccccc;
        font-size: 30px;
        display: inline-block;
        text-align: right;
        font-family: 'Font Awesome 5 Free';
        font-weight: 600;
        -webkit-font-smoothing: antialiased;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 2;
        width: 4rem;
        height: 4rem;
    }

#notificationButton {
    position: relative;
    left: 6px;
}

    #notificationButton .fa-bell {
        position: relative;
        margin-right: 0;
        top: 1px;
    }

    #notificationButton:after {
        display: none;
    }

.badge-warning.badge-notifications {
    position: absolute;
    left: 125%;
    top: 35%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    min-height: 1rem;
    max-height: 1.25rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: 2px;
    background-color: #f58700;
    color: white;
    font-weight: 400;
}

.formNoBlock {
    display: contents;
}

.input-group > .form-control.minWidth {
    min-width: 270px;
}

.formLabel {
    font-size: 8pt;
    margin-bottom: 0;
    margin-top: 8px;
    color: #ACACAC;
    min-width: max-content;
}

.absoluteLabel {
    position: absolute;
    top: -24px;
}

.fieldDescription {
    font-size: 8pt;
    margin-bottom: 0;
    margin-top: 8px;
    color: #ACACAC;
}

.small.version-copyright {
    font-size: .75rem;
    line-height: 1.25;
}

/*
.formValue {
}
*/

.responseRow {
    border-bottom-width: 1px;
    border-bottom-color: #dee2e6;
    border-bottom-style: solid;
}

.responseValue {
    font-size: 11pt;
    margin-bottom: 6px;
    margin-top: 4px;
}

.tab-pane.active {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 4px 4px;
    background-color: #ffffff;
}

.fa {
    margin-right: 6px;
}

.input-group-text > .fa {
    margin-right: 0;
}

.response {
    border: 1px solid #ff6c25;
    padding: 6px;
    margin: 6px 7px 6px 0;
    border-radius: 8px;
}

.table .td .fit,
.table .th .fit {
    white-space: nowrap;
    width: 1%;
}

.table-fit {
    white-space: nowrap;
    width: 1px;
}

a.sorted_asc::after {
    display: inline-block;
    content: "\f884";
    font-family: 'FontAwesome';
    padding-left: 4px;
}

a.sorted_desc::after {
    display: inline-block;
    content: "\f161";
    font-family: 'FontAwesome';
    padding-left: 4px;
}

.table td.failure {
    position: relative;
    background-color: var(--ecm-failure-card-bg);
    border: 1px solid rgb(var(--ecm-color-red));
}

    .table td.failure::after {
        content: "!";
        font-size: 0.8rem;
        font-weight: var(--fa-style, 900);
        background-color: rgb(var(--ecm-color-red));
        display: flex;
        position: absolute;
        top: -0.5rem;
        right: -0.5rem;
        width: 1.1rem;
        height: 1.1rem;
        line-height: 1.1rem;
        justify-content: center;
        color: rgb(255 255 255 / 90%);
        border-radius: 50%;
    }

.bootstrap-datetimepicker-widget {
    background-color: #FFFFFF;
}

div.messagetext {
    max-height: 80px;
    overflow: hidden;
}

button.multiselect {
    background-color: white;
    border: 1px solid #ced4da;
}

.multiselect-container > li {
    min-width: 190px;
    padding: 0 1rem 0 0.5rem;
}

    .multiselect-container > li > a > label {
        padding: 3px 3px 3px 6px;
        color: #000000;
    }

.multiselect-container {
    background-color: #FFFFFF;
    width: max-content;
}

.os-imagelink {
    margin-bottom: 0;
    margin-top: 2px;
}

/* Swimlanes and work-cards */

.swimlane {
    text-align: center;
}

.swimlane-header {
    justify-content: center;
    font-size: 16px;
    background-color: #FFFFFF;
    color: #302d29;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.station-card-label {
    justify-content: center;
    font-size: 12px;
    color: #302d29;
    margin-top: 0.2rem;
    font-weight: 500;
}

.swimlane-icons {
    font-size: 0.875rem;
}

    .swimlane-icons i.fa {
        margin-right: 2px;
    }

.swimlane-icons-svg {
    width: 19px;
    vertical-align: text-top;
    filter: invert(9%) sepia(1%) saturate(2848%) hue-rotate(314deg) brightness(87%) contrast(71%);
}

.stationworkitem {
    min-height: 80px;
    border: 1px solid #dddddd;
    padding: 8px;
    margin: 8px 8px 12px 8px;
    text-align: left;
    background-color: #f0eae4;
    border-radius: 2px;
}

.stationallocationitem {
    min-height: 80px;
    border: 1px solid #dddddd;
    padding: 8px;
    margin: 8px 8px 12px 8px;
    text-align: left;
    background-color: #f0eae4;
    border-radius: 2px;
    flex: 1 1 15rem;
    min-width: 10rem;
    max-width: 15rem;
}

.container-cards {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
}

/**/

.dateitem {
    margin: 22px 8px 10px 8px;
    position: relative;
    color: rgba(0,0,0,0.7);
    font-weight: bold;
}

    .dateitem:after {
        content: "\f133";
        font-family: FontAwesome;
        font-style: normal;
        font-weight: normal;
        text-decoration: inherit;
        position: absolute;
        font-size: 37px;
        color: rgba(0,0,0,0.4);
        top: 0;
        left: 50%;
        transform: translate(-50%, -34%);
        z-index: 1;
    }

.mapmarker {
    color: rgba(0,0,0,0.6);
    margin: 0 1px 0 1px;
}

.clockmarker {
    color: rgba(0,0,0,0.6);
    margin: 0 3px 0 0;
}

.success-card-bg {
    position: relative;
    background-color: var(--ecm-success-card-bg);
    border: 1px solid rgb(var(--ecm-color-green));
}

.failure-card-bg {
    position: relative;
    background-color: var(--ecm-failure-card-bg);
    border: 1px solid rgb(var(--ecm-color-red));
}

    .failure-card-bg:after {
        content: "!";
        font-size: 0.8rem;
        font-weight: var(--fa-style, 900);
        background-color: rgb(var(--ecm-color-red));
    }

.success-card-bg:after {
    content: "\f00c";
    font-size: 0.7rem;
    font-weight: var(--fa-style, 900);
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    background-color: rgb(var(--ecm-color-green));
}

.failure-card-bg:after, .success-card-bg:after {
    display: flex;
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1.1rem;
    justify-content: center;
    color: rgb(255 255 255 / 90%);
    border-radius: 50%;
}

.notactiveitem {
    background-color: #b5b5b528;
    border: 1px solid #b5b5b5;
}

.text-list {
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    border-top: 1px solid rgb(0 0 0 / 10%);
}

.large-item-text {
    margin: 0.125rem 0;
    padding: 0;
    font-size: 20px;
}

.medium-item-text {
    margin: 0.125rem 0;
    padding: 0;
    font-size: 16px;
}

.medium-item-text-list {
    margin: 0.125rem 0;
    padding: 0;
    font-size: 14px;
}

.item-text {
    margin: 0.25rem 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.25;
    color: #302d29;
}

.large-item-link {
    color: #302d29;
    font-weight: bold;
}

.large-item-link-danger {
    color: #a9674a; /* #b8b6b6; */
    font-weight: bold;
}

.large-item-link-success {
    color: #000000;
    font-weight: bold;
}

    .large-item-link-success:after {
        color: #008000;
        content: "\f058";
        display: inline-block;
        vertical-align: baseline;
        margin-left: 0.50ch;
        font-size: 0.75rem;
        font-weight: var(--fa-style, 900);
        font-family: var(--fa-style-family, "Font Awesome 6 Free");
    }

.large-item-link-danger:after {
    content: "\f071";
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.25ch;
    font-size: 0.75rem;
    font-weight: var(--fa-style, 900);
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
}

.assignment-link {
    color: rgba(0,0,0,0.85);
}

.item-link {
    color: rgba(0,0,0,0.5);
}

.small-unit-link-block {
    display: block;
    color: #302d29;
    font-size: 12px;
    font-weight: 300;
}

.os-block {
    max-width: 7.3rem;
    height: 4rem;
    min-width: 7.3rem;
    position: relative;
}

.os-block-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #777;
    border-radius: 10px;
}

.update-urgent {
    background-color: orange;
    color: black;
}

.update-critical {
    background-color: red;
    color: white;
}

.os-level {
    background-color: #e7e7e7;
}

.bg-task-success {
    background-color: rgba(44, 190, 9, 0.47);
}

.bg-task-warning {
    background-color: rgba(247, 222, 24, 0.71);
}

.history-tl-container {
    font-family: "Roboto",sans-serif;
    width: 100%;
    margin: auto;
    display: block;
    position: relative;
}

    .history-tl-container ul.tl {
        margin: 20px 0;
        padding: 0;
        display: inline-block;
    }

        .history-tl-container ul.tl li.tl-item {
            list-style: none;
            margin: auto;
            margin-left: 150px;
            min-height: 50px;
            /*background: rgba(255,255,0,0.1);*/
            border-left: 1px dashed #86D6FF;
            padding: 0 0 50px 30px;
            position: relative;
        }

            .history-tl-container ul.tl li.tl-item:last-child {
                border-left: 0;
            }

            .history-tl-container ul.tl li.tl-item::before {
                position: absolute;
                left: -20px;
                top: -5px;
                content: " ";
                border: 8px solid rgba(255, 255, 255, 0.74);
                border-radius: 800%;
                background: #258CC7;
                height: 40px;
                width: 40px;
                transition: all 500ms ease-in-out;
            }

            .history-tl-container ul.tl li.tl-item:hover::before {
                border-color: #258CC7;
                transition: all 1000ms ease-in-out;
            }

        .history-tl-container ul.tl li.tl-flight {
            list-style: none;
            margin: auto;
            margin-left: 150px;
            min-height: 85px;
            /*background: rgba(255,255,0,0.1);*/
            border-left: 1px dashed #86D6FF;
            padding: 0 0 50px 30px;
            position: relative;
        }

            .history-tl-container ul.tl li.tl-flight:last-child {
                border-left: 0;
            }

            .history-tl-container ul.tl li.tl-flight::before {
                position: absolute;
                left: -20px;
                top: -5px;
                border: 2px solid rgba(0, 0, 0, 0.10);
                border-radius: 800%;
                background: #f5f5f5;
                content: "\f5b0";
                padding-top: 2px;
                font-family: 'Font Awesome\ 5 Free';
                font-weight: 900;
                font-size: 20px;
                text-align: center;
                color: #bcbcbc;
                height: 40px;
                width: 40px;
                transition: all 500ms ease-in-out;
            }


ul.tl li .item-detail {
    color: rgba(0,0,0,0.5);
    font-size: 12px;
}

ul.tl li .timestamp {
    color: #8D8D8D;
    position: absolute;
    width: 120px;
    left: -150px;
    text-align: right;
    font-size: 12px;
}

.ui-tooltip {
    /* tooltip container box */
    white-space: pre-line;
}

.ui-tooltip-content {
    /* tooltip content */
    white-space: pre-line;
}


.taskimagecaption {
    font-style: italic;
    font-size: 10pt;
    font-weight: bold;
}

.dng-label {
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.box-outbound-file-icon {
    display: inline-block;
    width: 24px;
    height: 30px;
    vertical-align: middle;
}

    .box-outbound-file-icon:hover {
        filter: invert(59%) sepia(4%) saturate(0%) hue-rotate(196deg) brightness(95%) contrast(91%);
    }

.linkButton {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    display: flex;
    justify-content: center;
    height: 2.3rem;
    align-items: center;
    border-radius: 4px;
}

.fixed-select-size > span span {
    display: inline-block;
    text-overflow: ellipsis;
    overflow-x: hidden;
    width: 150px;
    text-align: left;
}

.fixed-select-size > span button {
    height: 38px;
}

    .fixed-select-size > span button::after {
        margin-bottom: 0.255em;
    }

.create-scenario-select-size > span > div {
    width: 100%;
}

    .create-scenario-select-size > span > div > button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-overflow: ellipsis;
        overflow-x: hidden;
        width: 100%;
        text-align: left;
    }

.hover-badge {
    display: flex;
    margin-right: 1rem;
    cursor: pointer;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    border-style: hidden;
    background-color: transparent;
}

.badge-primary:hover {
    background-color: #0069D910;
}

.badge-primary-custom {
    font-size: 100%;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    background-color: white;
    color: #007BFF;
    border-color: #007BFF;
    border-width: 1px;
    border-style: solid;
}

.badge-primary-override {
    background-color: #007BFF;
    color: white;
}

    .badge-primary-override:hover {
        background-color: #0069D9;
    }

.strike {
    display: block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

    .strike > span {
        position: relative;
        display: inline-block;
        font-size: 0.8rem;
    }

        .strike > span:before,
        .strike > span:after {
            content: "";
            position: absolute;
            top: 50%;
            width: 9999px;
            height: 1px;
            background: black;
        }

        .strike > span:before {
            right: 100%;
            margin-right: 15px;
        }

        .strike > span:after {
            left: 100%;
            margin-left: 15px;
        }

.round-number-icon {
    display: inline-flex;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    justify-content: center;
    font-size: 0.6rem;
    line-height: 1rem;
    font-weight: bold;
    margin-right: 0.2rem;
    color: #f0eae4;
}

.reefer-management-column {
    display: flex;
    flex-direction: column;
}

.reefer-management-confirm-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.reefer-management-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.sectioned-card .card {
    border-radius: 0;
    border-left-width: 0;
    border-right-width: 0;
}

.a-without-text-decoration:hover {
    text-decoration: none;
}

.modal-dialog-scrollable {
    height: calc(100% - 1rem);
}

.drag-drop-inactive {
    border: 2px dotted transparent;
}

.drag-drop-active {
    border: 2px dotted black;
}

.nav-tab-container {
    height: min-content;
    width: auto;
    margin: 0 5px;
}

.asset-header .flex-column:first-of-type {
    min-width: 10ch;
}

@supports (scrollbar-width: auto) {
    .nav-tab-container {
        scrollbar-width: thin;
    }
}


@media (min-width: 768px) {
    .container-fluid .container-flex-rows .available-height-mask.no-scroll {
        height: fit-content;
        overflow: visible;
        align-items: stretch;
    }

    .container-fluid .container-flex-rows {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 9rem);
    }

        .container-fluid .container-flex-rows .tab-content {
            flex: 1 1 auto;
            height: calc(100% - 5.625rem); /* Fallback, if none of the below works */
            height: fill-available;
            height: -moz-available; /* WebKit-based browsers will ignore this. */
            height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
            overflow: auto;
        }

            .container-fluid .container-flex-rows .tab-content .tab-pane {
                height: 100%;
            }

        .container-fluid .container-flex-rows .swimlane {
            display: flex;
            flex-direction: column;
            min-width: 266px;
            max-width: 406px;
            height: fit-content;
        }

        .container-fluid .container-flex-rows .no-scroll .swimlane {
            height: auto;
            min-height: fit-content;
        }

        .container-fluid .container-flex-rows .swimlane-body {
            flex: 1 1 auto;
        }

        .container-fluid .container-flex-rows .no-scroll .swimlane-body {
            flex: 0 0 auto;
        }

        .container-fluid .container-flex-rows .swimlane-body .card-container {
            height: max-content;
        }

        .container-fluid .container-flex-rows .available-height-mask {
            height: 100%;
            overflow: auto;
        }

        .container-fluid .container-flex-rows .content-width-full {
            min-width: min-content;
            flex-wrap: nowrap;
        }

    .container-flex-rows .stationworkitem {
        min-width: 220px;
        max-width: 360px;
    }

    .job-order-title {
        margin-bottom: 0.625rem;
    }

    .file-icon-link {
        text-decoration: none;
        color: black
    }

        .file-icon-link:hover {
            color: grey
        }
}

/*
Parcel packing expandable card
*/
.expandable {
    cursor: pointer;
    border: 1px solid #6c757d;
}

    .expandable[aria-expanded=false] {
        background-color: #f8f9fa;
    }

    .expandable[aria-expanded=true] img.pallet-icon,
    .expanded img.pallet-icon {
        filter: invert(1);
    }

    .expandable[aria-expanded=true], .expanded {
        color: white;
        background-color: #6c757d;
        min-height: 56px;
    }

.max-content {
    width: max-content;
    column-gap: .5rem;
}

    .max-content .col p {
        min-width: max-content;
    }

.grey-info-icon {
    color: rgba(0,0,0,0.6);
    font-size: 12px;
}

.ecm-banner{
    height:2.8rem;
    margin-left:-15px;
    margin-right:-15px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.ecm-banner :hover{
    cursor:pointer
}
