h3 {
    font-size: 20px;
}

h4 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

form h4,
form h5,
form h6 {
    margin: 10px 0px;
}

label.control-label {
    font-weight: bold;
    margin-top: 5px;
}

.cursor-pointer {
    cursor: pointer;
}

#workflow-progress,
#vc-processing-progress {
    margin: 15px 0px 35px 0px;
}

.step.step-success {
    background-color: #468847 !important;
}

.adv-accordion-content {
    margin-bottom: 15px;
}

.ui-accordion-content.table-responsive {
    padding: 0px;
}

.required-field-marker {
    font-size: 18px;
    font-weight: bold;
    line-height: 0px;
}

.padding-top-27 {
    padding-top: 27px;
}

.text-cell {
    max-width: 120px;
}

.number-cell {
    max-width: 70px;
}

select.form-control {
    max-width: 100%;
}

.form-group .select2 {
    width: 100%;
}

.ng-invalid,
.select2.ng-invalid .selection .select2-selection {
    border-color: red;
}

.vessel-call-details p {
    font-size: 16px;
    padding-left: 15px;
}

.vessel-call-details h5 {
    color: #949494;
    font-size: 12px;
    font-weight: bold;
}

.form-control.select2-hidden-accessible {
    display: none;
}

.select2-results__option.select2-results__option--highlighted {
    cursor: pointer;
}

.select2.select2-container {
    width: 100% !important;
}

.has-success .select2 .select2-selection {
    border-color: #468847 !important;
}

.has-error .select2 .select2-selection {
    border-color: #953b39 !important;
}

.selection-column {
    width: 10%;
}

.jarviswidget .form-actions {
    margin-bottom: 0px;
}

.jarviswidget .widget-body {
    padding-bottom: 0px;
}

#ui-datepicker-div {
    z-index: 9999 !important;
    /* Over the modal dialog z-index */
}

.ui-widget .ui-datepicker {
    z-index: 9999 !important;
    /* Over the modal dialog z-index */
}

.ui-select-match-text {
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-type-preview a {
    color: #FFF !important;
}

.location-type-border {
    border: 1px solid #949494;
}

.location-type-can-store-cargo {
    border: 1px dashed #949494;
}

.organization-selector {
    min-width: 150px;
}

.modal {
    overflow: auto !important;
}

/* Applies a grabbing hand on top of the div that's draggable*/
.cursor-draggable {
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

/*  Apply a "closed-hand" cursor during drag operation. */
.cursor-draggable:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.resize-handle-e {
    position: absolute;
    cursor: e-resize;
    height: 100%;
    width: 7px;
    right: -5px;
    top: 0;
}

.resize-handle-se {
    position: absolute;
    cursor: se-resize;
    height: 15px;
    width: 15px;
    right: 0;
    bottom: 0;
}

.resize-handle-s {
    position: absolute;
    cursor: s-resize;
    height: 7px;
    width: 100%;
    bottom: -5px;
    left: 0;
}

.resizing {
    -webkit-user-select: none;
    user-select: none;
}

@media screen and (min-width: 850px) {
    #left-panel {
        position: fixed;
        overflow-x: hidden;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 904;
        padding-top: 49px
    }
}

.select2-container-multi .select2-choices,
.select2-selection--multiple {
    border-color: #ccc;
}

.note {
    margin-top: 6px;
    padding: 0 1px;
    font-size: 13px;
    line-height: 15px;
    color: #999;
}

.dropup .dropdown-menu .dropdown-submenu>.dropdown-menu {
    top: auto;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
}

.scroll-text {
    /* animation properties */
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);

    -moz-animation: my-animation 35s linear infinite;
    -webkit-animation: my-animation 35s linear infinite;
    animation: my-animation 35s linear infinite;
}

/* for Firefox */
@-moz-keyframes my-animation {
    from {
        -moz-transform: translateX(100%);
    }

    to {
        -moz-transform: translateX(-100%);
    }
}

/* for Chrome */
@-webkit-keyframes my-animation {
    from {
        -webkit-transform: translateX(100%);
    }

    to {
        -webkit-transform: translateX(-100%);
    }
}

@keyframes my-animation {
    from {
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    to {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

#table-scroll {
    height: 800px;
    overflow-y: scroll;
}

.bootstrapWizard li.error .step {
    background: #dd0133f5 !important;
    color: #fff;
    font-weight: 700;
    padding: 7px 13px;
    font-size: 15px;
    border-radius: 50%;
    border: 3px solid #55606E;
}

.bootstrapWizard li.error .title {
    color: #2B3D53;
}

.ui-select-editable-input {
    display: block;
    vertical-align: top;
    width: auto;
    white-space: normal;
    zoom: 1;
}

.ui-select-editable-clear-x {
    background: url(../img/clear.png) center center no-repeat;
    display: block;
    width: 13px;
    height: 13px;
    position: absolute;
    opacity: 0.6;
    z-index: 100;
    top: 35%;
    right: 20px;
}

body {
    flex-direction: unset;
}

.fuelux .wizard ul {
    width: unset;
}

.jarviswidget>div.jarviswidget-no-width {
    width: unset;
}

.jarviswidget>div.jarviswidget-scroll-overflow {
    overflow: scroll;
}

.grid-stack {
    background-image: linear-gradient(#e0e0e0 1px, transparent 1px), linear-gradient(90deg, #e0e0e0 1px, transparent 0px), linear-gradient(rgba(255, 255, 255, .3) 5px, transparent 100px), linear-gradient(90deg, rgba(255, 255, 255, .3) 5px, transparent 100px);
    background-size: 100px 62px, calc(8.33% + 0px) 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -1px -2px, -1px -1px, -1px -1px;
}

.bay {
    background-color: #FAFAD2;
}

.sub1 {
    background-color: lightpink;
}

.sub2 {
    background-color: lightskyblue;
}

/* make nested grids have slightly darker bg */
.grid-stack.grid-stack-nested {
    background: #e4e4c1;
}

/* make nested grid take almost all space (need some to tell them apart) so items inside can have similar to external size+margin */
.grid-stack>.grid-stack-item.grid-stack-nested>.grid-stack-item-content {
    /* inset: 0 2px; not IE */
    top: 0;
    bottom: 0;
    left: 2px;
    right: 2px;
}

/* make nested grid take entire item content */
.grid-stack-item-content .grid-stack {
    min-height: 100%;
    min-width: 100%;
}

@media (min-width: 1300px) {
    .modal-lg {
        width: 1200px;
    }
}

@media (max-width: 750px) {
    .table-responsive {
        width: 100vw;
    }
}

@media (min-width: 1024px) {
    .payment-btn-section {
        margin-top: 11px !important;
    }
}

.apm-popover-stretch .popover {
    max-width: min-content;
}

:root {
    --cancel-bg: #ffffff;
    --cancel-border: #b7094c;
    --cancel-text: #b7094c;
    --cancel-hover-bg: #b7094c;
    /* now solid red */
    --cancel-hover-text: #ffffff;
    /* white text on hover */
}

.btn-login.btn-cancel {
    background-color: var(--cancel-bg) !important;
    border-color: var(--cancel-border) !important;
    color: var(--cancel-text) !important;
}

.btn-cancel:hover {
    background-color: var(--cancel-hover-bg) !important;
    border-color: var(--cancel-border) !important;
    color: var(--cancel-hover-text) !important;
}

td .dropdown .dropdown-menu {
    overflow: hidden !important;
    border-radius: 6px !important;
    top: auto !important;
}

.btn-group .dropdown-menu {
    overflow: hidden !important;
    border-radius: 6px !important;
    top: 100% !important;
    margin-top: 2px;
}

.table-responsive {
    overflow: visible !important;
}

body.midnight-blue-sidebar-theme .adv-datetime-container,
body.dark-plum-sidebar-theme .adv-datetime-container,
body.dark-mint-theme .adv-datetime-container {
    color: #f0f0f0 !important;
}

body.midnight-blue-sidebar-theme .adv-datetime-container *,
body.dark-plum-sidebar-theme .adv-datetime-container *,
body.dark-mint-theme .adv-datetime-container * {
    color: inherit !important;
}

body.midnight-blue-sidebar-theme .queue-monitor-page .adv-datetime-container,
body.dark-plum-sidebar-theme .queue-monitor-page .adv-datetime-container,
body.dark-mint-theme .queue-monitor-page .adv-datetime-container {
    color: #000 !important;
}

body.midnight-blue-sidebar-theme .queue-monitor-page .adv-datetime-container *,
body.dark-plum-sidebar-theme .queue-monitor-page .adv-datetime-container *,
body.dark-mint-theme .queue-monitor-page .adv-datetime-container * {
    color: #000 !important;
}

.adv-divider {
    width: 80%;
    height: 1px;
    margin: 12px auto;
    opacity: 0.6;
}

.midnight-blue-sidebar-theme .adv-divider {
    background-color: #ffffff !important;
    opacity: 0.4;
}

.dark-plum-sidebar-theme .adv-divider {
    background-color: #ffffff !important;
    opacity: 0.4;
}

.dark-mint-theme .adv-divider {
    background-color: #ffffff !important;
    opacity: 0.4;
}

#logo {
    display: inline-block;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: transform 0.1s ease;
}

#logo:active {
    transform: scale(0.96);
}

#theme-picker.project-context {
    padding: 0 !important;
    margin: 0 !important;
    min-width: unset !important;
}

#theme-picker .theme-picker-icon {
    margin-top: 7px !important;
}

#main {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.adv-accordion-content .dropup .ui-select-bootstrap .ui-select-dropdown,
.adv-accordion-content .dropup .ui-select-bootstrap .ui-select-choices {
    top: 100% !important;
    bottom: auto !important;
}

.adv-accordion-content .dropup .ui-select-toggle .caret {
    border-top: 4px solid !important;
    border-bottom: none !important;
    transform: none !important;
}

.nav.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.nav.nav-tabs>li {
    flex: 0 1 auto;
    margin-bottom: 4px;
}

/* Force ADV Activities dropdown to centre on mobile */
/* Mobile override for SmartAdmin dropdown wrapper */
@media (max-width: 767px) {

    /* Prevent rightward jump on close */
    div.ajax-dropdown[style*="display: block"] {
        position: fixed !important;
        top: 60px !important;

        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;

        width: 70vw !important;
        max-width: 70vw !important;

        transform: none !important;
    }
}

@media (max-width: 767px) {

    .ajax-dropdown .notification-body,
    .ajax-dropdown .notification-body * {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .ajax-dropdown .user-tab-container,
    .ajax-dropdown .user-tab-container * {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 767px) {
    .ajax-dropdown i.fa-border {
        border: none !important;
        padding: 0 !important;
        box-sizing: content-box !important;
    }
}

.modal-backdrop.custom-position {
    position: relative;
}

.icon-color-positive {
    color:#40AC2B;
}

.icon-color-negative {
    color:#ED1C24;
}

.icon-color-neutral {
    color:#9E9E9E;
}

.txt-color-primary {
    color:#2196F3;
}

.txt-color-success {
    color:#4CAF50;
}

.txt-color-danger {
    color:#EF5350;
}

.txt-color-warning {
    color:#FFC107;
}

.txt-color-primary-orange {
    color:#FF9800;
}

.txt-color-primary-purple {
    color:#9C27B0;
}

.txt-color-info {
    color:#00BCD4;
}

.txt-color-muted {
    color:#9E9E9E;
}

.bg-color-primary {
    background-color:#2196F3 !important;
}

.bg-color-success {
    background-color:#4CAF50 !important;
}

.bg-color-danger {
    background-color:#EF5350 !important;
}

.bg-color-warning {
    background-color:#FFC107 !important;
}

.bg-color-primary-orange {
    background-color:#FF9800 !important;
}

.bg-color-primary-purple {
    background-color:#9C27B0 !important;
}

.bg-color-info {
    background-color:#00BCD4 !important;
}

.bg-color-muted {
    background-color:#9E9E9E !important;
}