﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLM9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMiNTEzIDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45OTMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Wobsy is retrieving the information");
    }

.grid-alternate-colour > td:not(.dxbl-grid-empty-cell),
.grid-alternate-colour > td:not(.dxbl-grid-indent-cell) {
        background-color: #F7F7F7 !important;
        color: #161616;
    }

.grid-header-bold span {
    font-weight: 700;
}

.pop-style {
    min-width: 85vw !important;
    min-height: 80vh !important;
}


html {
    height: 100%;
}

.tb-icon-bold {
    -webkit-mask-image: url("../images/icons/bold.svg");
    mask-image: url("../images/icons/bold.svg");
}

.tb-icon-italic {
    -webkit-mask-image: url("../images/icons/italic.svg");
    mask-image: url("../images/icons/italic.svg");
}

.tb-icon-underline {
    -webkit-mask-image: url("../images/icons/underline.svg");
    mask-image: url("../images/icons/underline.svg");
}

.tb-icon-align-left {
    -webkit-mask-image: url("../images/icons/align-left.svg");
    mask-image: url("../images/icons/align-left.svg");
}

.tb-icon-align-center {
    -webkit-mask-image: url("../images/icons/align-center.svg");
    mask-image: url("../images/icons/align-center.svg");
}

.tb-icon-align-right {
    -webkit-mask-image: url("../images/icons/align-right.svg");
    mask-image: url("../images/icons/align-right.svg");
}

.tb-icon-undo {
    -webkit-mask-image: url("../images/icons/undo.svg");
    mask-image: url("../images/icons/undo.svg");
}

.tb-icon-redo {
    -webkit-mask-image: url("../images/icons/redo.svg");
    mask-image: url("../images/icons/redo.svg");
}

.tb-icon-paste {
    -webkit-mask-image: url("../images/icons/paste.svg");
    mask-image: url("../images/icons/paste.svg");
}

.tb-icon-info {
    mask-image: url("../images/icons/info.svg");
    -webkit-mask-image: url("../images/icons/info.svg");
}

.tb-icon-save {
    mask-image: url("../images/icons/save.svg");
    -webkit-mask-image: url("../images/icons/save.svg");
}

.tb-icon-settings {
    mask-image: url("../images/icons/settings.svg");
    -webkit-mask-image: url("../images/icons/settings.svg");
}

.tb-icon-refresh {
    mask-image: url("../images/icons/refresh.svg");
    -webkit-mask-image: url("../images/icons/refresh.svg");
}

.tb-icon-paragraph {
    mask-image: url("../images/icons/paragraph.svg");
    -webkit-mask-image: url("../images/icons/paragraph.svg");
}

.tb-icon-watermark {
    mask-image: url("../images/icons/watermark.svg");
    -webkit-mask-image: url("../images/icons/watermark.svg");
}

.tb-icon-alert {
    mask-image: url("../images/icons/alert.svg");
    -webkit-mask-image: url("../images/icons/alert.svg");
}

.tb-icon-font {
    -webkit-mask-image: url("../images/icons/font.svg");
    mask-image: url("../images/icons/font.svg");
}



/* Scheduler */
.wobsy-sc-apt {
    height: 100%;
}

.wobsy-sc-apt-content {
    position: relative;
    overflow: hidden;
    height: 100%;
    background-color: inherit;
    display: inherit;
}

.wobsy-sc-apt.wobsy-sc-accepted .wobsy-sc-apt-content {
    border: none;
}

.wobsy-sc-h-apt:not(.wobsy-sc-accepted),
.wobsy-sc-apt:not(.wobsy-sc-accepted) .wobsy-sc-apt-content {
    color: black !important;
    font-size: .925em;
    font-weight: 600;
}

.wobsy-apt-subject {
    padding: 0.2em 0.5em 0.2em 0.9em;
}

.wobsy-sc-apt:not(.wobsy-sc-accepted) .wobsy-apt-bg {
    background-color: white;
}

.wobsy-apt-bg {
    opacity: 0.7;
    padding: 0;
    margin: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.dxbs-sc-apt.dxbs-apt-selected .wobsy-apt-bg {
    opacity: 1;
}

.dxbs-apt-hovered .wobsy-apt-bg {
    opacity: 0.7;
}

.wobsy-sc-status-container {
    position: relative;
    border-width: 0;
    margin-right: -0.4em;
    height: 100%;
    background-color: var(--bs-white);
    box-sizing: border-box;
    width: 0.5em;
    height: 100%;
    float: left;
}

    .wobsy-sc-status-container:after {
        content: " ";
        position: absolute;
        left: -1px;
        top: -1px;
        width: calc(100% + 2px);
        height: calc(100% + 2px);
        box-sizing: border-box;
        background-color: transparent;
        border: 1px solid white;
        opacity: 0.4;
        border-radius: inherit;
    }

.wobsy-sc-apt:not(.wobsy-sc-accepted) .wobsy-sc-status-container::after {
    background-image: linear-gradient(-45deg,var(--bs-white) 19%,transparent 0,transparent 50%,var(--bs-white) 0,var(--bs-white) 69%,transparent 0,transparent);
    background-size: 8px 8px;
    opacity: 0.9;
}

.wobsy-sc-status-container .wobsy-apt-status {
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
    top: 0%;
    height: 100%;
}

.wobsy-sc-docked {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.wobsy-resnavigator {
    display: flex;
}

.wobsy-resnavigator-icon {
    width: 1rem;
    height: 1rem;
    -webkit-mask: url("../images/scheduler-navigator.svg");
    mask: url("../images/scheduler-navigator.svg");
    background-color: currentColor;
}

.wobsy-resnavigator-container {
    flex-shrink: 0;
    padding-left: 0;
    padding-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    background-color: rgba(0, 0, 0, 0.03);
}

    .wobsy-resnavigator-container .card-body {
        padding-left: 3px;
        padding-right: 3px;
    }

    .wobsy-resnavigator-container .wobsy-resnavigator-tree {
        width: 175px;
        padding-top: 0px;
        padding-bottom: 0px;
        margin-left: 3px;
        margin-right: 3px;
    }

    .wobsy-resnavigator-container .wobsy-resnavigator-item {
        padding: 0px 10px 0px 30px;
    }

        .wobsy-resnavigator-container .wobsy-resnavigator-item,
        .wobsy-resnavigator-container .wobsy-resnavigator-item * {
            cursor: pointer;
        }

.wobsy-resnavigator-title {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.wobsy-resnavigator-sc-container {
    flex-grow: 1;
}

.sc-tooltip-bottom-container {
    display: flex;
    justify-content: flex-end;
}

.card-details {
    display: none;
}

.card:hover .card-details {
    display: block;
}

.today {
    border: 3px solid red;
}

.upload-container {
    height: auto; /* Adjust height as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding-top: 20px; /* Adjust padding as needed */
    margin-top: 25px; /* Add margin to push it below the menu */
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

.centered-horizontal-container {
    display: flex;
    justify-content: center;
    width: 100%; /* Full width */
}

.highlighted-form-item {
    background-color: #f8f9fa; /* Light background color */
    border: 1px solid #dee2e6; /* Light border */
    padding: 20px; /* Add padding to the top and other sides */
    margin-top: 20px; /* Add margin to the top */
    border-radius: 5px; /* Optional: Add rounded corners */
    width: 100%; /* Full width */
}

.large-combo-box {
    flex: 1; /* Allow the combo box to grow and shrink with the container */
    min-width: 0; /* Prevent the combo box from exceeding the container */
    font-size: 1rem; /* Ensure the text is readable */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    width: 100%; /* Ensure the combo box takes the full width of the container */
}

.annual-calendar-input-padding {
    padding-right: 15px; /* Adjust the padding value as needed */
}

.annual-calendar-options {
    background-color: #f8f9fa; /* Light background color */
    border: 1px solid #dee2e6; /* Light border */
    padding: 20px; /* Add padding to the top and other sides */
    margin-top: 20px; /* Add margin to the top */
    border-radius: 5px; /* Optional: Add rounded corners */
    width: 100%; /* Full width */
    flex: 1; /* Allow the combo box to grow and shrink with the container */
    min-width: 0; /* Prevent the combo box from exceeding the container */
    font-size: 1rem; /* Ensure the text is readable */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    width: 100%; /* Ensure the combo box takes the full width of the container */
    justify-content: center;
    align-items: center;
}

.save-progress-indeterminate {
    width: 350px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wbsy-radio-group-label {
    font-size: inherit;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

    .wbsy-radio-group-label.wbsy-small {
        font-size: 0.75rem;
    }

    .wbsy-radio-group-label.wbsy-large {
        font-size: 1rem;
    }

.wbsy-radio-group {
    padding-bottom: 1rem;
}

.wbsy-radio-selected-value {
    max-width: 480px;
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem; /* Optional: Add some space between the elements */
}

.chart-container {
    padding-top: 100px;
    overflow: auto;
    max-height: 600px;
}

.form-control-chart-gen {
    max-width: 100%;
}

.scrollable-table {
    overflow-y: auto;
    max-height: 80vh; /* Adjust as needed */
}

.fixed-header th {
    position: sticky;
    top: 0;
    background-color: white; /* Adjust as needed */
    z-index: 1;
}

/* ============================================================================ */
/* PARCEL ORDER PROCESS FORM STYLES - Updated for better responsive design    */
/* ============================================================================ */

/* Container for all carrier cards - horizontal layout for desktop, vertical for mobile */
.po_form-price-container {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
}

    /* WebKit scrollbar styling for better UX */
    .po_form-price-container::-webkit-scrollbar {
        height: 8px;
    }

    .po_form-price-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .po_form-price-container::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
    }

        .po_form-price-container::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

/* Individual carrier card */
.po_form-carrier-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

    .po_form-carrier-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Carrier header */
.po_form-carrier-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po_form-carrier-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.po_form-carrier-logo-img {
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.po_form-carrier-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services container */
.po_form-services-container {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual service row */
.po_form-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .po_form-service-row:hover {
        background: #f8f9fa;
        border-color: #007bff;
        transform: translateX(2px);
    }

    .po_form-service-row.po_form-selected {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
        transform: scale(1.02);
    }

/* Service details */
.po_form-service-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 1rem;
}

.po_form-service-name {
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.po_form-service-price {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.po_form-selected-icon {
    color: #28a745;
    font-size: 0.9rem;
    animation: checkmark-appear 0.3s ease-in-out;
}

@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service action button container */
.po_form-service-action {
    flex-shrink: 0;
}

    .po_form-service-action .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
        border-radius: 4px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .po_form-service-action .btn-primary {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        border: none;
    }

    .po_form-service-action .btn-outline-primary {
        background: white;
        border: 1px solid #007bff;
        color: #007bff;
    }

    .po_form-service-action .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

/* Hidden services container */
.po_form-hidden-services {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        max-height: 0;
    }

    100% {
        opacity: 1;
        max-height: 300px;
    }
}

/* Expand/collapse button */
.po_form-expand-button {
    margin-top: 0.5rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.5rem;
}

    .po_form-expand-button .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        .po_form-expand-button .btn:hover {
            background-color: #f8f9fa;
            transform: scale(1.05);
        }

/* General form styles */
.po_form-centered-text {
    padding-top: 25px;
    text-align: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.po_form-centered-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 1rem;
}

    .po_form-centered-button .btn {
        padding: 0.75rem 2rem;
        font-weight: 600;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

        .po_form-centered-button .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

.po_form-centered-grid {
    padding: 50px 10px;
    margin: 0 auto;
    width: 100%;
}

/* Legacy styles - kept for backward compatibility but updated */
.po_form-price-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.po_form-price-flex-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ============================================================================ */
/* RESPONSIVE DESIGN - Mobile and Tablet Optimizations                        */
/* ============================================================================ */

/* Tablet styles */
@media (max-width: 1024px) {
    .po_form-price-container {
        gap: 0.75rem;
    }

    .po_form-carrier-card {
        min-width: 280px;
        max-width: 350px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .po_form-price-container {
        flex-direction: column;
        overflow-x: visible;
        gap: 1rem;
    }

    .po_form-carrier-card {
        min-width: unset;
        max-width: unset;
        width: 100%;
        margin: 0;
    }

    .po_form-service-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-right: 0.5rem;
    }

    .po_form-service-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .po_form-service-action {
        align-self: stretch;
    }

        .po_form-service-action .btn {
            width: 100%;
            padding: 0.75rem;
            font-size: 1rem;
        }

    .po_form-centered-grid {
        width: 95%;
        padding: 30px 5px;
    }

    .po_form-carrier-header {
        padding: 0.75rem;
        min-height: 50px;
    }

    .po_form-carrier-name {
        font-size: 1rem;
    }

    .po_form-service-name {
        font-size: 0.9rem;
        text-align: left;
        width: 100%;
    }

    .po_form-service-price {
        font-size: 1.2rem;
        text-align: right;
        width: 100%;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .po_form-service-name {
        font-size: 0.85rem;
    }

    .po_form-service-price {
        font-size: 1.1rem;
    }

    .po_form-carrier-card {
        margin: 0 -0.25rem;
        border-radius: 6px;
    }

    .po_form-services-container {
        padding: 0.75rem;
    }

    .po_form-service-row {
        padding: 0.75rem;
    }

    .po_form-expand-button .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Large desktop screens */
@media (min-width: 1200px) {
    .po_form-centered-grid {
        width: 70%;
        max-width: 1200px;
    }

    .po_form-carrier-card {
        max-width: 450px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .po_form-centered-grid {
        width: 60%;
        max-width: 1400px;
    }
}

/* Wide monitor header insets: move Wobsy logo right and customer logo left */
@media (min-width: 1400px) {
    /* Add horizontal gutters to the top header row */
    .page main > .container.d-flex.justify-content-between.align-items-center.py-2 {
        padding-left: clamp(2rem, 6vw, 8rem);
        padding-right: clamp(2rem, 6vw, 8rem);
    }

    /* Nudge logos inward a bit more (on top of padding) */
    img[src*="WobsyLogo"] {
        margin-left: 10rem;
    }

    img[src*="CustomerLogo"] {
        margin-right: 10rem;
    }
}

/* Optional: apply lighter insets for large desktops */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .page main > .container.d-flex.justify-content-between.align-items-center.py-2 {
        padding-left: clamp(1.5rem, 4vw, 4rem);
        padding-right: clamp(1.5rem, 4vw, 4rem);
    }
}

.sync-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

.update-leave {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.update-leave-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #007bff;
}

/* Custom drop zone styles */
.custom-drop-zone {
    padding: 2rem !important;
    border-style: dashed;
    border-width: 2px !important;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    cursor: pointer;
    z-index: 10;
    position: relative;
    transition: all 0.3s ease;
}

    .custom-drop-zone.custom-drop-zone-hover {
        border-style: solid;
        border-color: #0d6efd !important;
        background-color: rgba(13, 110, 253, 0.1) !important;
    }

.drop-file-icon {
    height: 48px;
    width: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 1rem;
}

.drop-file-label {
    font-size: 1.1rem;
    color: #555;
}

#excelDemoDropZone > * {
    z-index: 2;
    position: relative;
}

/* Accordion styling */
.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-button {
    cursor: pointer;
    background-color: white !important;
    z-index: 5;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    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-radius .15s ease;
}

.accordion {
    --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-body {
    background-color: white;
    padding: 1rem 1.25rem;
}

.accordion-item {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: -1px;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease-in-out;
}

.accordion-collapse {
    transition: height 0.35s ease;
}

    .accordion-collapse.collapse:not(.show) {
        display: none;
    }

    .accordion-collapse.collapsing {
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
    }

/* Fix for the overlap issue */
.dxbs-upload {
    position: relative;
    z-index: 5;
}

/* Import error handling styles */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

    .alert-warning h5 {
        color: #664d03;
        margin-top: 0;
    }

.alert-danger ul {
    text-align: left;
    margin-bottom: 1rem;
}

.alert-danger li {
    margin-bottom: 0.5rem;
}

/* Configuration warning styles */
.config-warning {
    border-left: 4px solid #ff9800;
    padding-left: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #cc5500;
}

/* Error highlighting */
.error-highlight {
    background-color: rgba(255, 0, 0, 0.05);
    border-left: 3px solid #dc3545;
    padding-left: 0.5rem;
    color: #dc3545;
}

/* Success highlighting */
.success-highlight {
    background-color: rgba(0, 128, 0, 0.05);
    border-left: 3px solid #28a745;
    padding-left: 0.5rem;
}

/* Info highlighting */
.info-highlight {
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #0d6efd;
    padding-left: 0.5rem;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .highlighted-form-item {
        padding: 1rem !important;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

        .btn-group .btn {
            border-radius: 0.25rem !important;
            margin-bottom: 0.5rem;
            width: 100%;
        }

    /* Make buttons more tap-friendly on mobile */
    .btn-check + label {
        margin-bottom: 0.5rem;
        white-space: normal;
        text-align: center;
    }
}

/* Improved text formatting for results */
.text-success {
    color: #198754 !important;
}

.text-primary {
    color: #0d6efd !important;
}
/* Add these styles for the grid filter form */
.grid-filter-form {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

    .grid-filter-form .filter-row {
        margin-bottom: 10px;
    }

    .grid-filter-form .button-row {
        margin-top: 15px;
    }

.cw-300 {
    min-width: 300px;
}

/* Add these styles for the grid notification */
.grid-notification {
    padding: 1.5rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

    .grid-notification i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #6c757d;
    }

    .grid-notification p {
        font-size: 1rem;
        margin: 0;
    }

/* Add width control for dropdown boxes */
.cw-100 {
    width: 100%;
    max-width: 200px; /* Limit the maximum width */
}

/* Grid filter form specific styling */
.grid-filter-form .form-group .dxbs-dropdown-box,
.grid-filter-form .form-group .dxbs-combobox {
    width: 100%;
    max-width: 200px;
}

/* Modify the grid filter form styles to align dropdowns to the left */
.grid-filter-form .d-flex.flex-wrap {
    justify-content: flex-start;
}

.grid-filter-form .form-group {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    max-width: 250px;
    margin-right: 15px;
}

    .grid-filter-form .form-group:last-child {
        flex: 1 1 100%;
        max-width: 100%;
    }

/* Ensure the dropdown controls don't exceed their container width */
.grid-filter-form .dxbs-dropdown-box,
.grid-filter-form .dxbs-combobox,
.grid-filter-form .dxbs-date-edit,
.grid-filter-form .dxbs-text-box {
    width: 100%;
    max-width: 100%;
}

/* Compact form styling for GridFilterForm */
.grid-filter-form {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.compact-form-group {
    margin-bottom: 2px;
}

    .compact-form-group label {
        margin-bottom: 1px;
    }

.grid-filter-form .gap-1 {
    gap: 0.25rem !important;
}

/* Ensure the dropdown controls don't exceed their container width */
.grid-filter-form .dxbs-dropdown-box,
.grid-filter-form .dxbs-combobox,
.grid-filter-form .dxbs-date-edit,
.grid-filter-form .dxbs-text-box {
    height: 32px;
}

.grid-filter-form .btn-sm.py-1 {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.fixed-tabs-container .card {
    min-height: 400px; /* Adjust this value as needed */
}

.fixed-tabs-container .dx-tabs-content {
    min-height: 450px; /* Adjust this value to be slightly larger than the card min-height */
}

/* Wide container for 90% screen width on desktop */
.po_form-wide-container {
    padding: 20px 10px;
    margin: 0 auto;
    width: 100%;
    max-width: none;
}

/* Progress bar container */
.po_form-progress-container {
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

/* No quotes message styling */
.po_form-no-quotes {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 20px auto;
    max-width: 500px;
}

.po_form-no-quotes h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.po_form-no-quotes p {
    color: #6c757d;
    margin: 0;
}

/* Desktop styles - 90% width */
@media (min-width: 768px) {
    .po_form-wide-container {
        width: 90%;
        padding: 30px 20px;
    }
    
    .po_form-centered-grid {
        width: 90%;
        padding: 30px 20px;
    }
}

/* Large desktop styles */
@media (min-width: 1200px) {
    .po_form-wide-container {
        width: 90%;
        max-width: 1400px;
    }
    
    .po_form-centered-grid {
        width: 90%;
        max-width: 1400px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .po_form-wide-container {
        width: 90%;
        max-width: 1600px;
    }
    
    .po_form-centered-grid {
        width: 90%;
        max-width: 1600px;
    }
}

/* Mobile styles - keep full width with padding */
@media (max-width: 767px) {
    .po_form-wide-container {
        width: 95%;
        padding: 15px 10px;
    }
    
    .po_form-centered-grid {
        width: 95%;
        padding: 15px 10px;
    }

    .po_form-progress-container {
        padding: 0 10px;
    }
}

/* MileageQuoteForm styles */
.van-selection-table {
    width: 100%;
    border-collapse: collapse;
}

    .van-selection-table th, .van-selection-table td {
        padding: 0.75rem;
        vertical-align: middle;
        text-align: center;
    }

    .van-selection-table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
    }

    .van-selection-table tbody tr {
        border-bottom: 1px solid #dee2e6;
        cursor: pointer;
    }

        .van-selection-table tbody tr:hover {
            background-color: #f8f9fa;
        }

    .van-selection-table img {
        max-height: 80px;
        width: auto;
    }

.van-radio-input {
    margin-top: 0.5rem;
}

/* Mobile-friendly styles */
@media (max-width: 768px) {
    .van-selection-table thead {
        display: none;
    }

    .van-selection-table,
    .van-selection-table tbody,
    .van-selection-table tr,
    .van-selection-table td {
        display: block;
        width: 100%;
    }

        .van-selection-table tr {
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 0.25rem;
        }

        .van-selection-table td {
            text-align: right;
            padding-left: 50%;
            position: relative;
            border: none;
            border-bottom: 1px solid #eee;
        }

            .van-selection-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 0;
                width: 45%;
                padding-left: 1rem;
                font-weight: bold;
                text-align: left;
            }

            .van-selection-table td:last-child {
                border-bottom: 0;
            }
}

/* Add these styles to the end of your Index.css file */

.autocomplete-container {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d1d1d1;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-item:hover {
    background-color: #e9e9e9;
}

.image-tab-container {
    max-height: 60vh;
    overflow-y: auto;
}

.vehicle-type-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}

.company-chooser-card {
    width: 250px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.company-chooser-card .card-header {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #ced4da;
}

.company-listbox-expanded {
    border: none;
    max-height: 200px;
    overflow-y: auto;
}

/* =============================================================================
   Compact spacing utilities (reusable)
   - Apply `wbsy-compact` on any container to tighten spacing inside it.
   - Mirrors the compact approach already used by `.compact-form-group` in GridFilterForm.
   ========================================================================== */
.wbsy-compact .row {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .5rem;
}

.wbsy-compact .p-3,
.wbsy-compact .card-body,
.wbsy-compact .accordion-body {
    padding: .5rem .75rem !important;
}

.wbsy-compact .mb-4 { margin-bottom: .5rem !important; }
.wbsy-compact .mb-3 { margin-bottom: .5rem !important; }
.wbsy-compact .mb-2 { margin-bottom: .375rem !important; }
.wbsy-compact .mt-2 { margin-top: .25rem !important; }
.wbsy-compact .mt-3 { margin-top: .375rem !important; }
.wbsy-compact .mt-4 { margin-top: .5rem !important; }

.wbsy-compact .form-group,
.wbsy-compact .form-check {
    margin-bottom: .5rem;
}

.wbsy-compact h1, .wbsy-compact h3, .wbsy-compact h4, .wbsy-compact h5 {
    margin-bottom: .25rem;
}

.wbsy-compact .alert {
    padding: .5rem .75rem;
    margin-bottom: .5rem;
}

.wbsy-compact .btn {
    padding: .25rem .5rem;
}

/* Make drop-zone denser when inside compact containers */
.wbsy-compact .custom-drop-zone {
    padding: 1rem !important;
    min-height: 120px;
}
.wbsy-compact .drop-file-icon { margin-bottom: .5rem; }

/* =============================================================================
   Import pages: mild density by default under `.upload-container`
   - No markup changes required. Tightens spacing only on import pages.
   ========================================================================== */
.upload-container .row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

.upload-container .p-3 { padding: .75rem !important; }
.upload-container .mb-4 { margin-bottom: .75rem !important; }

.upload-container .card-body,
.upload-container .accordion-body {
    padding: .75rem 1rem;
}

.upload-container h4, 
.upload-container h5 {
    margin-bottom: .25rem;
}

.upload-container .highlighted-form-item {
    padding: .75rem 1rem !important;
    margin-top: .5rem !important;
}

.upload-container .custom-drop-zone {
    padding: 1rem !important;
    min-height: 120px;
}


/* Summary / details popup formatting */
.popup-prewrap {
    white-space: pre-wrap;
    line-height: 1.25;
    max-height: 60vh;
    overflow: auto;
    margin: 0;
    background: #fafafa;
    border: 1px solid #e1e1e1;
    padding: 12px 14px;#
    border-radius: 4px;
}

.popup-prewrap-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
}

.popup-summary > pre {
    background: #f0f6ff;
    border-color: #c2dbff;
}

.popup-details > pre {
    background: #fbfbfb;
}

/* Inline import header grouping (ConsignmentRateSheetImportCmp) */
.import-inline-group {
    display: flex;
    flex-wrap: nowrap;
    gap: .65rem;
    align-items: flex-end;
    overflow-x: auto;
    padding: .25rem .25rem .35rem .25rem;
}

.import-inline-group .inline-field {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 160px;
}

.import-inline-group .inline-field.small-inline {
    min-width: auto;
}

.import-inline-group .inline-field.align-end {
    justify-content: flex-end;
}

.import-inline-group .form-label {
    font-size: .75rem;
    line-height: 1;
    white-space: nowrap;
}

.import-inline-group .cw-100 {
    max-width: 210px;
}

.import-inline-group .dxbs-date-edit,
.import-inline-group .dxbs-dropdown-box,
.import-inline-group .dxbs-text-box {
    min-height: 32px;
}

@media (max-width: 992px) {
    .import-inline-group {
        flex-wrap: wrap;
        overflow: visible;
    }
    .import-inline-group .inline-field {
        min-width: 140px;
    }
}

/* Header responsiveness and overlap fixes */
.wbsy-header { /* container-fluid already expands; allow tidy spacing */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.wbsy-menu-card {
    min-width: 0;           /* allow menu to shrink without pushing right block */
}

.wbsy-logo {
    width: 120px;
    height: auto;
    display: block;
}

.wbsy-header-right .wbsy-customer-logo {
    height: 50px;
    width: auto;
}

.wbsy-company-text {
    max-width: 40vw;        /* clamp long company lists */
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Laptop / small desktop */
@media (max-width: 1400px) {
    .wbsy-logo { width: 110px !important; }
    .wbsy-company-text { max-width: 45vw; }
}

/* Large tablets / narrower laptops */
@media (max-width: 1200px) {
    .wbsy-logo { width: 100px !important; }
    .wbsy-header-right .wbsy-customer-logo { height: 44px; }
    .wbsy-company-text { max-width: 50vw; }
}

/* Tablets */
@media (max-width: 992px) {
    .wbsy-company-text { max-width: 60vw; }
    .wbsy-company-text br { display: none; } /* keep on one line to prevent pushing */
}

/* Mobile */
@media (max-width: 768px) {
    .wbsy-header { gap: .5rem; }
    .wbsy-header-right {
        width: 100%;
        justify-content: flex-start; /* move under the menu and align left */
    }
    .wbsy-header-right .wbsy-customer-logo { height: 40px; }
    .wbsy-company-text {
        max-width: 70vw;
        font-size: .95rem;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .wbsy-company-text { display: none; } /* keep header clean; cog still opens chooser */
}

/* Compact width utility: clamp editors to max 75px */
.cw-numbers {
    width: 100%;
    max-width: 125px;
}
    /* Numeric fields: keep editors compact */
    .cw-numbers .dxbs-spin-edit,
    .cw-numbers .dxbs-text-box,
    .cw-numbers input[type="text"],
    .cw-numbers input[type="number"] {
        max-width: 75px;
        width: 100%;
    }

/* Postcode fields: small input, wider suggestions dropdown */
.cw-postcode {
    overflow: visible;
}
    /* ensure dropdown isn't clipped by the item */

    .cw-postcode .form-control {
        max-width: 140px; /* input stays compact */
        width: 100%;
    }

    /* Make dropdown wider than the input */
    .cw-postcode .autocomplete-items {
        left: 0;
        right: auto; /* avoid forcing to input width */
        width: 420px; /* desired dropdown width */
        max-width: min(80vw, 520px);
        z-index: 2000; /* above form layout */
    }