:root {
    --surface-light: #f4f7f9;
    --surface-medium: #e2e8eb;
    --black: #000000;
    --border-dynamic-width: 2px;
}

@media only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
    :root {
        --border-dynamic-width: 1.5px;
    }
}

@keyframes glow {
    0% {
        background-color: var(--surface-medium, #e2e8eb);
    }
    50% {
        background-color: var(--surface-light, #f4f7f9);
    }
    100% {
        background-color: var(--surface-medium, #e2e8eb);
    }
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.loading-placeholder {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.lazy-load-bar {
    animation: glow 1.5s ease-in-out infinite;

    background-color: var(--surface-medium, #e2e8eb);
    width: 95%;
}

.user-info {
    align-items: center;
    color: #fafafa;
    display: flex;
    justify-content: space-between;
}

.user-data {
    align-items: center;
    display: flex;
}

.user-avatar {
    align-items: center;
    background-color: #636363;
    border-radius: 50%;
    display: flex;
    font-weight: bold;
    height: 55px;
    justify-content: center;
    margin-right: 10px;
    width: 55px;
}

.user-avatar span {
    display: inline-block;

    font-size: 20px;
    letter-spacing: .05rem;
}

.user-avatar span:last-child {
    letter-spacing: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    max-width: 170px;
}

.user-name,
.user-status {
    line-height: 1.5;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name {
    font-weight: 600;
}

.user-status {
    font-size: 12px;
}

.more-options {
    align-items: start;
    display: flex;
    height: 44px;
    padding: 10px;
}

.more-options img {
    height: auto;
    width: 15px;
}

.options-menu {
    background-color: #0e2231;
    border-radius: 8px;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    padding-top: 10px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 10px;
    top: 70px;
    z-index: 1;
}

.options-menu ul {
    border-bottom: 2px solid #0e2231;
    list-style: none;
    margin: 0;

    padding: 0;
}

.options-menu ul:last-child {
    border-bottom: none;
}

.options-menu ul li a {
    color: #030f18;
    display: block;
    padding: 10px;
    text-decoration: none;

    white-space: nowrap;
}

.options-menu ul li a:hover {
    color: #fafafa;
}

@media (max-width: 1200px) {
    .user-info {
        visibility: hidden;
    }
}

.small-screen-only {
    display: none;
}

@media (max-width: 1200px) {
    .small-screen-only {
        display: block;
    }
}

.dataTables_wrapper .dataTables_paginate {
    text-align: center !important;
}

.sorting::after {
    top: 50%;
    transform: translateY(-50%);
}

.sorting::before {
    margin-right: 5px;

    top: 50%;
    transform: translateY(-50%);
}

/* Hide the default radio button */
input[type='radio'] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;

    cursor: pointer;
    opacity: 0;
    position: absolute;
}

/* Style for the label that is associated with the radio button */
input[type='radio'] + label {
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    line-height: 20px;

    position: relative;
}

input[type='radio']:focus + label:before {
    outline: 1px solid black;
}

input[type='radio'] + label:hover {
    color: white;
}

input[type='radio']:disabled + label:before {
    background: #e6e6e6;
    border-color: #cccccc;
}

input[type='radio']:disabled:checked + label:before,
input[type='radio']:disabled:checked + label:after {
    background: #cccccc;
    color: #a6a6a6;
}

/* Hide the default radio input visually but remain accessible */
.form-check-input {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

/* Style the label to look like a button */
.form-check-label {
    border: 1px solid #0e2231;
    border-radius: 4px;
    color: #030f18;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    margin: 2px;
    padding: 12px 20px;
    transition: background-color .3s;
}

/* Change background color slightly on hover for visual feedback */
.form-check-label:hover {
    background-color: #555555;
}

/* Style for when the radio button is checked */
.form-check-input:checked + .form-check-label {
    background-color: #030f18;
    color: #ffffff;
}

/* Further style adjustments for the small text */
.form-check-label small {
    font-size: 100%;
}

.table-scroll {
    -webkit-overflow-scrolling: touch;

    overflow-x: auto;
}

.dataTables_empty {
    text-align: center;
}

.ui-datepicker {
    z-index: 9999 !important;
}

.hidden {
    visibility: hidden;
}

.dataTables_filter label {
    position: relative;
}

.dataTables_filter input {
    padding: 20px 0 20px 0;
}

.dataTables_filter input[type='search'] {
    padding-left: 45px;
    width: 300px !important;
}

.dataTables_filter i.svg-search {
    background-position: center;
    background-size: 20px;
    left: 20px;
    position: absolute;
    top: 50%;

    transform: translateY(-50%);
    z-index: 100;
}

.dataTables_filter label i.svg-search {
    color: #030f18;
}

a#dgDeclarationButton {
    margin-bottom: 10px;
}

p#iodAvailable {
    margin-left: 5px;
}

.icon-visible {
    display: inline;
}

.icon-hidden {
    display: none !important;
}

.dropdown-menu.dropdown-menu-right.dropdown-menu-arrow.show {
    left: 20px !important;
}

.text {
    color: black;
}

.table_rounded_corners thead tr:first-child th {
    border-top: none;
}

.table_rounded_corners {
    border-bottom: 1px solid #e9ecef;
    border-collapse: separate;
    border-left: 1px solid #e9ecef;
    border-radius: 10px 10px 10px 10px;
    border-right: 1px solid #e9ecef;
    border-spacing: 0;
    overflow: hidden;
}

.table_rounded_corners tr:last-child {
    border-bottom: none;
}

/* Retain your rounded corners for the first row of the header */
.table_rounded thead tr:first-child th {
    border-top: none;
}

/* Gave a gap between the table container and the child in table when the table is collapsed */
/* .table_rounded_corners thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.table_rounded_corners thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
} */

.table_rounded {
    border-collapse: separate;
    border-radius: 10px 10px 0 0;
    border-spacing: 0;
    overflow: hidden;
}

.table_rounded thead tr:first-child th {
    border-top: none;
}

.table_rounded thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.table_rounded thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.table_rounded th:nth-child(1),
.table_rounded td:nth-child(1) {
    text-align: left;
}

/* Align the second column headers and cells to the right for table_rounded class */
.table_rounded th:nth-child(2),
.table_rounded td:nth-child(2) {
    text-align: right;
}


/* Center quantity column in the modal table for editing returns */
#registerDeviation .table_rounded_corners th:nth-child(5),
#registerDeviation .table_rounded_corners td:nth-child(5) {
    text-align: center !important;
}

.camera-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-icon {
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    height: 24px;

    vertical-align: middle;
    width: 24px;
}

.svg-icon-medium {
    background-size: 25px;
}

.svg-icon-medium-small {
    height: 20px;
    width: 20px;
}

.svg-icon-small {
    height: 15px;
    width: 15px;
}

.svg-icon-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.svg-icon-stack-no-gap {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.nav-item-active .svg-icon {
    filter: brightness(0) saturate(100%);
}

.nav-item-active .svg-icon {
    filter: brightness(0) saturate(100%);
}

.nav-item-active a.nav-font:hover .svg-icon,
.nav-item-active a.nav-font:focus .svg-icon {
    filter: brightness(0) saturate(100%);
}

a.nav-font:hover .svg-icon,
a.nav-font:focus .svg-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(40%) saturate(2500%) hue-rotate(135deg) brightness(110%) contrast(101%);
}

.svg-camera {
    background-image: url('/static/assets/img/icons/camera.svg');
}

.svg-camera-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default !important;
}

.svg-scanning {
    background-image: url('/static/assets/img/icons/scanning.svg');
}

.svg-balance {
    background-image: url('/static/assets/img/icons/nav/balance.svg');
}

.svg-calendar {
    background-image: url('/static/assets/img/icons/calendar.svg');
}

.svg-comment {
    background-image: url('/static/assets/img/icons/comment.svg');
}

.svg-add-thick {
    background-image: url('/static/assets/img/icons/add-thick.svg');
}

.svg-add {
    background-image: url('/static/assets/img/icons/add.svg');
}

.svg-checkmark-circle {
    background-image: url('/static/assets/img/icons/checkmark-circle.svg');
}

.svg-exclamation {
    background-image: url('/static/assets/img/icons/exclamation.svg');
}

.svg-file {
    background-image: url('/static/assets/img/icons/file.svg');
}

.svg-home {
    background-image: url('/static/assets/img/icons/home.svg');
}

.svg-question-circle {
    background-image: url('/static/assets/img/icons/question-circle.svg');
}

.svg-subtract {
    background-image: url('/static/assets/img/icons/subtract.svg');
}

.svg-subtract-thick {
    background-image: url('/static/assets/img/icons/subtract-thick.svg');
}

.svg-time {
    background-image: url('/static/assets/img/icons/time.svg');
}

.svg-pencil {
    background-image: url('/static/assets/img/icons/pencil.svg');
}

.svg-photo {
    background-image: url('/static/assets/img/icons/photo.svg');
}

.svg-toggle {
    background-image: url('/static/assets/img/icons/toggle.svg');
}

.svg-trash {
    background-image: url('/static/assets/img/icons/trash.svg');
}

.svg-close {
    background-image: url('/static/assets/img/icons/close.svg');
}

.svg-create-user {
    background-image: url('/static/assets/img/icons/nav/create-user.svg');
}

.svg-credit-card {
    background-image: url('/static/assets/img/icons/nav/credit-card.svg');
}

.svg-incoming {
    background-image: url('/static/assets/img/icons/nav/incoming.svg');
}

.svg-manage-users {
    background-image: url('/static/assets/img/icons/nav/manage-users.svg');
}

.svg-user {
    background-size: 30px;
    width: 45px;
    height: 45px;
    background-position: left center;
    background-image: url('/static/assets/img/icons/nav/user.svg');
}

.svg-outgoing {
    background-image: url('/static/assets/img/icons/nav/outgoing.svg');
}

.svg-list {
    background-image: url('/static/assets/img/icons/nav/list.svg');
}

.svg-report {
    background-image: url('/static/assets/img/icons/nav/report.svg');
}

.svg-return {
    background-image: url('/static/assets/img/icons/nav/return.svg');
}

.svg-return-to-sender {
    background-image: url('/static/assets/img/icons/nav/return-to-sender.svg');
}

.svg-shipment {
    background-image: url('/static/assets/img/icons/nav/shipment.svg');
}

.svg-shipment-ongoing {
    background-image: url('/static/assets/img/icons/nav/shipment-ongoing.svg');
}

.svg-shipment-completed {
    background-image: url('/static/assets/img/icons/nav/shipment-completed.svg');
}

.svg-shipment-empty {
    background-image: url('/static/assets/img/icons/nav/shipment-empty.svg');
}

.svg-time-nav {
    background-image: url('/static/assets/img/icons/nav/time.svg');
}

.svg-time-history {
    background-image: url('/static/assets/img/icons/nav/time-history.svg');
}

.svg-shipment-truck {
    background-image: url('/static/assets/img/icons/nav/shipment-truck.svg');
}

.svg-trip-road-circle {
    background-image: url('/static/assets/img/icons/nav/trip-road-circle.svg');
}

.svg-analytics-bars-circle {
    background-image: url('/static/assets/img/icons/nav/analytics-bars-circle.svg');
}

.svg-check-circle {
    background-image: url('/static/assets/img/icons/nav/check-circle.svg');
}

.svg-navigation-left-circle {
    background-image: url('/static/assets/img/icons/nav/navigation-left-circle.svg');
}

.svg-navigation-right-circle {
    background-image: url('/static/assets/img/icons/nav/navigation-right-circle.svg');
}

.svg-navigation-left-circle-curved {
    background-image: url('/static/assets/img/icons/nav/navigation-left-circle-curved.svg');
}

.svg-arrow-right-circle {
    background-image: url('/static/assets/img/icons/arrow-right-circle.svg');
}

.svg-arrow-left-circle {
    background-image: url('/static/assets/img/icons/arrow-left-circle.svg');
}

.svg-information-circle {
    background-image: url('/static/assets/img/icons//nav/information-circle.svg');
}

.svg-analytics-graph-circle {
    background-image: url('/static/assets/img/icons/nav/analytics-graph-line.svg');
}

.svg-add-circle {
    background-image: url('/static/assets/img/icons/nav/add-circle.svg');
}

.svg-dollar-circle {
    background-image: url('/static/assets/img/icons/nav/discount-dollar-dash.svg');
}

.svg-single-neutral-circle {
    background-image: url('/static/assets/img/icons/nav/single-neutral-circle.svg');
}

.svg-question-circle {
    background-image: url('/static/assets/img/icons/nav/question-circle.svg');
}

.svg-list-circle {
    background-image: url('/static/assets/img/icons/nav/list-circle.svg');
}

.svg-time-circle {
    background-image: url('/static/assets/img/icons/nav/time-circle.svg');
}

.svg-trip-road-circle {
    background-image: url('/static/assets/img/icons/nav/trip-road-circle.svg');
}

.svg-analytics-bars-circle {
    background-image: url('/static/assets/img/icons/nav/analytics-bars-circle.svg');
}

.svg-check-circle {
    background-image: url('/static/assets/img/icons/nav/check-circle.svg');
}

.svg-navigation-left-circle {
    background-image: url('/static/assets/img/icons/nav/navigation-left-circle.svg');
}

.svg-navigation-right-circle {
    background-image: url('/static/assets/img/icons/nav/navigation-right-circle.svg');
}

.svg-navigation-left-circle-curved {
    background-image: url('/static/assets/img/icons/nav/navigation-left-circle-curved.svg');
}

.svg-arrow-right-circle {
    background-image: url('/static/assets/img/icons/arrow-right-circle.svg');
}

.svg-arrow-left-circle {
    background-image: url('/static/assets/img/icons/arrow-left-circle.svg');
}

.svg-information-circle {
    background-image: url('/static/assets/img/icons//nav/information-circle.svg');
}

.svg-analytics-graph-circle {
    background-image: url('/static/assets/img/icons/nav/analytics-graph-line.svg');
}

.svg-add-circle {
    background-image: url('/static/assets/img/icons/nav/add-circle.svg');
}

.svg-dollar-circle {
    background-image: url('/static/assets/img/icons/nav/discount-dollar-dash.svg');
}

.svg-single-neutral-circle {
    background-image: url('/static/assets/img/icons/nav/single-neutral-circle.svg');
}

.svg-question-circle {
    background-image: url('/static/assets/img/icons/nav/question-circle.svg');
}

.svg-list-circle {
    background-image: url('/static/assets/img/icons/nav/list-circle.svg');
}

.svg-time-circle {
    background-image: url('/static/assets/img/icons/nav/time-circle.svg');
}

.svg-warehouse {
    background-image: url('/static/assets/img/icons/nav/warehouse.svg');
}

.svg-search {
    background-image: url('/static/assets/img/icons/search.svg');
}

.svg-alert-circle {
    background-image: url('/static/assets/img/icons/alert-circle.svg');
}

.svg-fire {
    background-image: url('/static/assets/img/icons/fire.svg');
}

.svg-enter {
    background-image: url('/static/assets/img/icons/enter.svg');
}

.svg-exit {
    background-image: url('/static/assets/img/icons/exit.svg');
}

.svg-known-return {
    background-image: url('/static/assets/img/icons/known-return.svg');
    transform: scaleY(-1);
    background-size: 95% auto;
}

.svg-ym-not-ready {
    background-image: url('/static/assets/img/icons/ym-not-ready.svg');
}

.svg-ym-enter {
    background-image: url('/static/assets/img/icons/ym-enter.svg');
}

.svg-ym-exit {
    background-image: url('/static/assets/img/icons/ym-exit.svg');
}

.svg-checkmark {
    background-image: url('/static/assets/img/icons/checkmark.svg');
}

#image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#image-overlay img {
    max-width: 80vw;
    max-height: 80vh;
    cursor: zoom-out;
}

.form-check {
    margin-right: 6px;
}

p.booking-cut, p.hul-shipment {
    font-size: 11px;
    margin-top: 10px;
}

.input-datetime:focus-within {
    border: 1px solid black !important;
}

#input_checkInDate:focus,
#input_checkInTime:focus,
#input_checkOutDate:focus,
#input_checkOutTime:focus,
#inputDate:focus,
#inputTime:focus {
    border: 0;
}

.insert_returns_table {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

#loadTypeDiv {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.custom-tooltip {
    visibility: hidden;
    position: fixed;
    background-color: grey;
    color: white;
    text-align: left;
    padding: 8px;
    border-radius: 4px;
    white-space: pre-line;
    z-index: 1000;
    font-size: 0.8125rem;
    font-weight: normal;
    width: max-content;
    max-width: 500px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.custom-tooltip-title {
    font-weight: bold;
    font-size: 0.8125rem;
    margin-bottom: 0;
}

#loadTypeDiv:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

.select2-dropdown {
    z-index: 99999;
}

/* Override dropdown active state to match hover state */
.dropdown-item.active,
.dropdown-item:active {
    background-color: #f6f9fc !important;
    color: #16181b !important;
    text-decoration: none !important;
}

.stop-info-container {
    position: relative;
    display: inline-block;
}

.stop-info-container:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

/* fixed height row */
.fixed-height-row {
    height: 50px;
}

.fixed-height-row td {
    height: 50px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.fixed-height-row .form-check-label {
    padding: 6px 20px;
}

.fixed-height-row .svg-icon {
    width: 16px;
    height: 16px;
}
label.checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0;
}

label.checkbox > input {
    appearance: none;
    border-radius: 0.25rem;
    border-width: var(--border-dynamic-width);
    border-color: var(--black);
    border-style: solid;
    position: relative;
    margin-top: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
}

label.checkbox > input:checked {
    background-color: var(--black);
}

label.checkbox > input:checked::after {
    content: '';
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    width: 1rem;
    height: 1rem;
    display: block;
}

label.checkbox > input:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

label.checkbox > input:disabled:checked {
    opacity: 0.2;
}

/* CHECKBOX */
.dropdown-menu label.checkbox {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0;
}

.dropdown-menu label.checkbox > input {
    appearance: none;
    border-radius: 0.25rem;
    border-width: var(--border-dynamic-width);
    border-color: var(--black);
    border-style: solid;
    position: relative;
    margin-top: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
}

.dropdown-menu label.checkbox > input:checked {
    background-color: var(--black);
}

.dropdown-menu label.checkbox > input:checked::after {
    content: '';
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    width: 1rem;
    height: 1rem;
    display: block;
}

.dropdown-menu label.checkbox > input:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.dropdown-menu label.checkbox > input:disabled:checked {
    opacity: 0.2;
}