@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    /* App-level color aliases (referencing vizcobrand.css tokens) */
    --primary-color: var(--color-vz-blue);
    --primary-color-hover: #2F528E;
    --secondary-color: var(--color-vz-blue-light);
    --secondary-color-hover: #2b6794;
    --accent-color: var(--color-vz-yellow);
    --accent-color-hover: #EDBE47;

    /* Safe area / viewport system */
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --viewport-inset: 0px;
    --min-bottom-gap: 16px;
    --bottom-offset: max(var(--safe-bottom), var(--viewport-inset), var(--min-bottom-gap));
}

body {
    font-family: var(--font-montserrat);
}


.section-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-title i {
    margin-right: 8px;
    color: #007bff;
}

.daily-deliveries-section{
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}


.sticky-attachment-header {
    position: sticky;
    top: -1rem;
    background-color: #ffffffd1;
    padding: 10px 0;
    z-index: 1000;
}

.modal-body{
    border-radius: 15px!important;
}

.modal-body.empty .add-attachment-container {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.modal-close-badge {
    position: absolute;
    content: "\f00d";
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    border-radius: 50%;
    top: -10px;
    right: -10px;
    padding: 2px 8px;
    border-style: none;
    z-index: 1200;
}

.btn-refresh {
    color: var(--color-vz-blue-light);
}

.icon-button {
    background: none; /* remove default bg */
    border: none; /* remove default border */
    padding: 0.5rem; /* adjust click area */
    cursor: pointer; /* pointer on hover */
    display: inline-flex; /* center icon */
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
}

.icon-button:focus {
    outline: 2px solid Highlight; /* visible focus for accessibility */
}


/* Mirror horizontally */
.mirror {
    transform: scaleX(-1); /* flips on the vertical axis */
    /* transform-origin defaults to center; adjust if needed */
}

/* Mirror vertically, if desired */
.mirror-vertical {
    transform: scaleY(-1); /* flips on the horizontal axis */
}

/* leave space for the icon inside the input */
.password-field {
    padding-right: 2.75rem;
}

/* centre the icon vertically & pin it to the right edge */
.password-toggle {
    z-index: 200;
    position: absolute;
    top: 0;
    bottom: 0;
    right: .75rem;
    display: flex; /* flex‑box handles vertical centring*/
    align-items: center;
    cursor: pointer;
    line-height: 0;
    color: #6c757d;
}

.password-toggle:hover {
    color: #000;
}

textarea:focus-visible {
    outline: none;
}

.reason-textarea {
    width: 100%;
    resize: none;
    border-radius: 10px;
    padding: 0.35rem;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: rgb(102, 102, 102);
    display: inline;
    font-weight: bold;
}

.swal2-confirm {
    border-radius: 20px !important;
}

.swal2-cancel {
    border-radius: 20px !important;
}

.swal2-deny {
    border-radius: 20px !important;
}

/* red danger confirm */
.btn-danger-confirm {
    font-weight: bold !important;
    cursor: pointer !important;
    border-radius: 15px !important;
    background: rgba(192, 14, 14, 1) !important; /* red */
    color: #fff !important;
    border: none !important;
    font-family: inherit !important;
}

.btn-danger-confirm:hover {
    cursor: pointer !important;
    background: #b50e1f !important; /* darker red */
}

/* neutral grey cancel */
.btn-neutral-cancel {
    font-weight: bold !important;
    border-radius: 15px !important;
    background: #6c757d !important; /* grey */
    color: #fff !important;
    border: none !important;
}

.btn-neutral-cancel:hover {
    cursor: pointer !important;
    background: #5a6268 !important; /* darker grey */
}

.margin-left-btn {
    margin-left: 2rem !important;
}

/*Animation company identifier */
.shake-animation {
    animation: shake 0.8s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.my-floating-cardV2 {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    border-radius: 15px;
    align-content: center;
    place-items: center;
    margin-top: 2rem;
}

html, body {
    font-family: var(--font-montserrat);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-info {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-info:hover {
    background-color: var(--secondary-color-hover);
    border-color: var(--secondary-color);
    color: white;
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: white;
}


:modal {
    background-color: beige;
    border: 2px solid burlywood;
    border-radius: 5px;
}

.btn.close {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 0px;
}

.delete-btn {
    background-color: red;
    width: 40px;
    height: 38px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em;
}

.delete-btn:hover {
    color: white;
}

.my-floating-card {
    margin-top: 10%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 25px;
}

.my-floating-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.my-floating-card:active {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.company-identifier-header {
    align-self: start;

}

.company-identifier-input-container {
    width: 100%;
    text-align: center;
}

.my-card-container {
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.input-group-text {
    background: transparent;
    border: none;
}

/* Style to ensure the password input aligns properly with the toggle button */
.password-field {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.input-file:hover {
    cursor: pointer;
}

.blazored-modal.size-small {
    border-radius: 25px !important;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.blazored-modal-delivery-attachments {
    width: 30vw;
    z-index: 105;
    justify-content: center;
}


/* .header-btn-group — moved to DeliveryPage.razor.css for scoped isolation */


.upload-btn {
    position: relative;
    color: #fff;
    width: 40px;
    height: 38px;
    background-color: #17a2b8;
    border-color: #17a2b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em;
    border-radius: 25%;
}

.upload-btn:hover {
    cursor: pointer;
}

.upload-btn::before {
    content: "+";
    position: absolute;
    top: 10px;
    right: -4px;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    font-weight: 600;
    color: white;
}

.download-btn {
    position: relative;
    color: #fff;
    width: 40px;
    height: 38px;
    background-color: #17a2b8;
    border-color: #17a2b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1em;
}

.download-btn:hover {
    color: white;
}

/* .btn-attachment — moved to DeliveryPage.razor.css for scoped isolation */

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn .badge {
    position: relative;
    top: -1px;
}

.badge-parent .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 8px;
    border-radius: 50%;
    background: red;
    color: white;
}

.content {
    padding-top: 1.1rem;
    width: 100%;
    max-width: 100vw;
}

.rounded-typeahead .blazored-typeahead__input {
    border-radius: 25px !important;
    font-size: 1.4rem !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 15px !important;
    padding-right: 0px !important;
    letter-spacing: 4px !important;
    max-width: 88% !important;
}

.rounded-typeahead .blazored-typeahead__input-icon {
    border-radius: 25px !important;
}

.rounded-typeahead .blazored-typeahead {
    border-radius: 25px !important;
}

.rounded-typeahead .blazored-typeahead__input {
    border-radius: 25px !important;
    font-size: 1.4rem !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 15px !important;
    padding-right: 0px !important;
    letter-spacing: 4px !important;
}

.rounded-typeahead .blazored-typeahead__result {
    font-size: 1.2rem !important;
    z-index: 2000 !important;
}

.rounded-typeahead .blazored-typeahead__results {
    border-radius: 10px 10px 25px 25px !important;
    z-index: 2000 !important
}

.rounded-typeahead .typeahead-container {
    margin-bottom: 15px;
}

.rounded-typeahead .blazored-typeahead__controls {
    position: relative;
    cursor: text;
    display: flex;
    justify-content: space-between;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/*BLAZORED MODAL START*/
.blazored-modal-container {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.blazored-modal-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
}

.blazored-modal {
    display: flex;
    z-index: 11;
    flex-direction: column;
    background-color: #fff;
    border-radius: 15px;
    border: 0px solid #fff !important;
    padding: 0.0rem !important;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .25);
    margin: 1rem auto;
}

.modal-content {
    border-radius: 15px !important;
}

.blazored-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 2rem 0;
}

.blazored-modal-title {
    margin-bottom: 0;
}

.blazored-modal-close {
    /* padding: 1rem;*/
    /*margin: -1rem -1rem -1rem auto;*/
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

.blazored-modal-center {
    align-items: center;
    justify-content: center;
}

.blazored-modal-topleft .blazored-modal {
    position: absolute;
    top: 32px;
    left: 32px;
}

.blazored-modal-topright .blazored-modal {
    position: absolute;
    top: 32px;
    right: 32px;
}

.blazored-modal-bottomleft .blazored-modal {
    position: absolute;
    bottom: 32px;
    left: 32px;
}

.blazored-modal-bottomright .blazored-modal {
    position: absolute;
    bottom: 32px;
    right: 32px;
}

.blazored-modal-scrollable {
    display: flex;
    max-height: calc(100% - 1rem);
}

.blazored-modal-scrollable .blazored-modal-content {
    overflow-y: auto;
}

.blazored-modal-scrollable .blazored-modal-footer, .blazored-modal-scrollable .blazored-modal-header {
    flex-shrink: 0;
}

/*BLAZORED MODAL END*/

.reason-input-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.swal2-icon-custom {
    border: none !important;
    background-color: transparent !important;
}

.reason-radio-btn {
    margin-right: 10px;
    height: 1.2rem;
    width: 1.2rem;
}

.reason-lbl {
    font-size: 1.2rem;
}

#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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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, "Loading");
}

.loading-state {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.skeleton-card {
    height: 140px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}


@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* ≈ .gap-1 */
    margin-bottom: 0.5rem; /* ≈ .mb-4 */
}

.input-group label {
    font-size: 0.875rem; /* .text-sm */
    font-weight: 500; /* .font-medium */
    color: #374151; /* .text-gray-700 */
}

.input-group input,
.input-group textarea,
.input-group select {
    padding: 0.5rem 0.75rem; /* .py-2 .px-3 */
    border: 1px solid #d1d5db; /* .border-gray-300 */
    border-radius: 0.375rem; /* .rounded-md */
    background: #fff; /* .bg-white */
    color: #111827; /* .text-gray-900 */
    font-size: 0.875rem; /* keep consistency */
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* .ring-2 .ring-blue-500 */
    border-color: #3b82f6; /* .border-blue-500 */
}


/* Small Input Groups */
.input-group-small {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group-small input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
}


.input-group-small label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

.input-group-small .form-control-sm {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
}

.input-group-small .form-control-sm:focus {
    outline: none;
    border-color: var(--color-vz-blue);
    box-shadow: 0 0 0 2px rgba(0, 52, 142, 0.1);
}


.page-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-vizco {
    width: 160px;
}

.business-entity-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    align-self: flex-start;
    font-size: 14px;
    color: #4a5568;
    border-radius: 20px;
    padding: 3px 8px;
    background: #f5f7fa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    font-style: italic;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

.title {
    font-size: 1.85rem;
}

.progress-bar-placeholder {
    width: 350px;
    height: 88px;
    border-style: dashed;
}

.order-header {
}

#videoview {
    position: relative;
    width: 100%;
    height: 100vh;
}

#videoContainer {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: contain
}

.scanner-container {
    width: 100%;
    text-align: center;
    position: relative;
}

.video-player {
    width: 32vw;
}

.autocomplete {
    position: relative;
    width: 300px;
}

.suggestions {
    position: absolute;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #eee;
}

/*placeholder*/
.flash-toggle {
    display: none;
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #c6c6c6;
    text-align: center;
    position: absolute;
    z-index: 1000;
    right: 0;
    bottom: 25px;
    margin-right: -10px;
}

.torch-on {
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #f8fa42d6;
    text-align: center;
    position: absolute;
    z-index: 1000;
    right: 0;
    bottom: 25px;
    margin-right: -10px;
}

.torch-on::before {
    content: "\f0e7"; /* Unicode for FontAwesome 'bolt' icon */
    font-family: "FontAwesome";
    color: black;
    font-size: 1.5em; /* Adjust size as needed */
}

.torch-off {
    height: 50px;
    width: 50px;
    border-radius: 15px;
    background-color: #c6c6c6;
    text-align: center;
    position: absolute;
    z-index: 1000;
    right: 0;
    bottom: 25px;
    margin-right: -10px;
}

.torch-off::before {
    content: "\f0e7"; /* Unicode for FontAwesome 'bolt' icon */
    font-family: "FontAwesome";
    color: white;
    font-size: 1.5em; /* Adjust size as needed */
}

.inline-item {
    display: flex;
    justify-content: space-between;
}

.tax-detail {
    display: flex;
    font-style: italic;
    font-size: smaller;
    justify-content: space-between;
}

.total-price {
    text-decoration-line: underline;
    text-decoration-style: double;
    text-underline-offset: 0.3em;
}

.container-header {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.column {
    flex: 1;
    min-width: 50%;
}

.row {
}

.product-cards-container {
    display: flex;
    justify-content: center;
}

/*.product-card {*/
/*    width: 90%;*/
/*    border: solid 2px;*/
/*    border-radius: 25px;*/
/*    margin-bottom: 10px;*/
/*    padding: 5px;*/
/*    box-sizing: border-box;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    background-color: #fff;*/
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.product-card:hover {*/
/*    box-shadow: 0 8px 6px rgba(0, 0, 0, 0.2);*/
/*    !*box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);*!*/
/*    !*transform: translateY(-5px);*!*/
/*}*/

/*.subproduct-card {*/
/*    position: relative;*/
/*    max-width: 40vw;*/
/*    margin-left: 50px;*/
/*    border: none;*/
/*    border-radius: 10px;*/
/*    display: flex;*/
/*    padding: 20px;*/
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
/*}*/


.ban-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
}

.card-row {
    display: flex;
    width: 100%;
}

.card-column {
    flex: 1;
    padding: 5px;
    box-sizing: border-box;
    text-align: start;
    /*text-align: end;*/
}

.second-card-row {
    text-align: left;
}

/*CSS Loader*/
.lds-ring {
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
    left: 36%;
    margin-top: 3em;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 6px solid rgb(35, 106, 242);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: rgb(35, 106, 242) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

.toggle-description {
    background-color: transparent;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    text-decoration: none;
}

.toggle-description:hover {
    text-decoration: underline;
}


.product-card1 {
    width: 100%;
    font-family: var(--font-montserrat);
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.product-card-container .product-card1:last-child {
    margin-bottom: 75px;
}


.subproduct-card-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.subproduct-card {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    width: 75%;
    border: 2px solid #ddd;
    border-radius: 25px;
    margin-left: 0px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.subproduct-index {
    font-weight: 600;
    margin-left: -5px;
}

.subproduct-barcode {
}

.quantity1 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: -5px; /* Small margin to align the text properly */
}

.product-image1 {
    float: left;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    margin-right: 10px; /* Space between the image and the description */
}

.product-details1 {
    font-size: 1.0rem;
    display: flex;
    align-items: center; /* Center-align the image and description vertically */
}

.product-description1 {
    font-size: 1.0rem;
    line-height: 1.2;
    flex-grow: 1; /* Allow the description to take up the remaining space */
}

.daily-summary-card {
    width: 100%;
    font-family: var(--font-montserrat);
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.daily-summary-details {
    font-size: 1.0rem;
    display: flex;
    align-items: center; /* Center-align the image and description vertically */
}

.daily-summary-description {
    font-size: 1.0rem;
    line-height: 1.2;
    flex-grow: 1; /* Allow the description to take up the remaining space */
}

.daily-summary-card-container .daily-summary-card:last-child {
    margin-bottom: 75px;
}


.delivery-date {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: -5px; /* Small margin to align the text properly */
}

.delivery-note {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 10px;
}


@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.order-validate-btn {
    margin-top: 1em;
    float: right;
}

.contact-us {
    font-size: 1.2em;
    font-weight: 500;
    float: right;
    text-align: end;
    margin-bottom: 1em;
}

.order-number {
    margin-top: 10px;
    margin-bottom: -0.5rem;
}

.product-image {
    width: 150px;
}

.product-image:hover {
    cursor: pointer;
}

.product-image-expanded {
    max-width: 50vw;
    height: 80vh;
    object-fit: contain;
    object-position: center;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 50vw;
    text-align: center;
    /*border-radius: 25px;*/
    overflow: hidden;
    object-fit: contain;
}

/* .terminate-delivery-btn — moved to DeliveryPage.razor.css for scoped isolation */

/* .btn-complete-all — moved to DeliveryPage.razor.css for scoped isolation */


.complete-delivery-btn {
    width: 200px;
    height: 45px;
    border-radius: 25px;
    /* background-color: rgb(8, 202, 0);*/
    text-align: end;
    float: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}


.add-attachment-container {
    justify-self: center;
    position: relative;
    top: -0.5rem;
}

.add-attachment-btn {
    position: relative;
    height: 40px;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow: hidden;
    display: inline-block;
    border-radius: 25px;
    background: var(--color-vz-blue);
    white-space: nowrap;
    color: white;
    place-content: center;
}

.add-attachment-btn:hover {
    cursor: pointer;
    color: white;
}

.add-attachment-btn:focus {
    color: white;
}

.add-attachment-btn .input-file {
    position: absolute; /* remove from normal flow */
    top: 0; /* align to parent top */
    left: 0; /* align to parent left */
    width: 100%; /* match parent width */
    height: 100%; /* match parent height */
    opacity: 0; /* hide the native input UI */
    cursor: pointer; /* show pointer over the button */
}

.icon-with-plus {
    position: relative;
}

/* draw the “+” at top‑right */
.icon-with-plus::after {
    content: '+';
    position: absolute;
    top: -6px;
    right: -7px;
    font-size: 10px;
    line-height: 1;
    pointer-events: none;
}

.file-cell {
    position: relative; /* establish containing block */
    padding-right: 2rem; /* space for the delete button */
    align-content: center;
}

.delete-attachment-btn {
    position: absolute; /* remove from flow */
    top: 0.25rem; /* adjust vertical offset */
    right: 0; /* adjust horizontal offset */
    background: none; /* transparent bg */
    border: none; /* no border */
    cursor: pointer; /* pointer on hover */
    padding: 0.25rem; /* clickable area */
}


.btn-group-custom {
    position: fixed;
    width: 32vw;
    bottom: 10px;
    display: inline-flex;
    padding-left: 10px;
    padding-right: 10px;
    justify-content: space-between;
}

.label {
    font-size: 1.1rem;
    text-decoration: underline;
    font-weight: 600;
}

.field {
    font-size: 1.2rem;
}

.navigation-link {
    text-decoration: underline;
    color: #0071c1;
}

.navigation-link:hover {
    cursor: pointer;
}


.scan-btn-container {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.scan-btn {
    width: 200px;
    height: 50px;
    border-radius: 25px;
    flex-shrink: 0;
    background-color: var(--color-vz-blue);
    color: white;
    font-weight: 600;
    font-family: var(--font-montserrat);
    font-size: 1.4rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.scan-btn:hover {
    color: white;
    text-decoration: underline;
}

@media (min-width: 641px) {
    .blazored-modal {
        border-radius: 15px !important;
    }
}

/* Mobile - Vertical */
@media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {

    .blazored-modal {
        margin: 5px !important;
        border-radius: 15px !important;
    }

    .modal-content {
        border-radius: 15px !important;
    }

    .modal-close-badge {
        position: absolute;
        content: "\f00d";
        background-color: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        border-radius: 50%;
        top: -10px;
        right: -6px;
        padding: 2px 8px;
        border-style: none;
        z-index: 1200;
    }


    .login-header {
        width: 100vw;
    }

    .company-identifier-header {
        display: flex;
        align-self: start;
        margin-top: 20vh;
        margin-left: 0px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .my-floating-cardV2 {
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
        border-radius: 15px;
        align-content: center;
        place-items: center;
        margin-top: 1rem;
    }

    .rounded-typeahead .blazored-typeahead__input {
        border-radius: 25px !important;
        font-size: 1.4rem !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        padding-left: 15px !important;
        padding-right: 0px !important;
        letter-spacing: 4px !important;
        max-width: 88% !important;
    }

    .order-container {
        min-width: 90vw;
    }

    .scanner-overlay {
        position: absolute;
        top: 35%;
        left: 10%;
        width: 80%;
        height: 30%;
        border: 4px dashed black;
        pointer-events: none;
    }

    .blazored-modal-delivery-attachments {
        width: auto;
        z-index: 105;
        justify-content: center;
    }


    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 85vw;
    }

    /*  .product-image-expanded {
    width: 100%;
    height: auto;
  }*/
    .product-image-expanded {
        max-width: 80vw;
        height: 80vh;
        object-fit: contain;
        object-position: center;
    }

    .lightbox-modal-content {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 80vw;
        text-align: center;
        /* border-radius: 25px; */
        overflow: hidden;
        object-fit: contain;
    }

    .scanner-container {
        position: relative;
        width: 90vw; /* Same width as the video player */
    }

    .btn-group-custom {
        position: fixed;
        bottom: 10px;
        left: 0;
        display: inline-flex;
        flex-direction: row;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: auto;
        margin-right: auto;
        right: 0;
        justify-content: space-between;
        transition: bottom 0.2s ease;
    }

    .scan-btn-container {
        width: 100%;
        text-align: center;
    }

    .scan-btn {
        width: 200px;
        height: 50px;
        border-radius: 25px;
        flex-shrink: 0;
        background-color: var(--color-vz-blue);
        color: white;
        font-weight: 600;
        font-family: var(--font-montserrat);
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .scan-btn:hover {
        color: white;
        text-decoration: underline;
    }

    /* Add your styles for mobile vertical devices here */
}

/* Mobile - Horizontal */
@media only screen and (min-width: 481px) and (max-width: 1100px) and (orientation: landscape) {

    .content {
        max-width: 100vw;
    }

    .modal-content {
        border-radius: 15px !important;
    }

    .modal-close-badge {
        position: absolute;
        content: "\f00d";
        background-color: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        border-radius: 50%;
        top: -10px;
        right: -10px;
        padding: 2px 8px;
        border-style: none;
        z-index: 1200;
    }

    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 50vw;
    }

    .scanner-overlay {
        position: absolute;
        top: 30%;
        left: 10%;
        width: 80%;
        height: 40%;
        border: 4px dashed black;
        pointer-events: none;
    }

    .cross-horizontal,
    .cross-vertical {
        position: absolute;
        background-color: black; /* Style as you like */
        width: 15%; /* Adjust as needed */
        height: 2px; /* Adjust as needed */
    }

    .cross-horizontal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cross-vertical {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 1vh auto 1rem auto;
    }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(1vh + 3.25rem) 0 auto 0.2rem;
    }

    .loading-container {
        position: relative;
    }

    /*.product-card {*/
    /*    max-width: 60vw;*/
    /*    border: none;*/
    /*    border-radius: 10px;*/
    /*    margin: 20px;*/
    /*    padding: 20px;*/
    /*    box-sizing: border-box;*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    background-color: #fff;*/
    /*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /*    transition: all 0.3s ease;*/
    /*}*/
    
    /*.subproduct-card {*/
    /*    max-width: 40vw;*/
    /*    margin-left: 50px;*/
    /*    border: none;*/
    /*    border-radius: 10px;*/
    /*    display: flex;*/
    /*    padding: 20px;*/
    /*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /*}*/

    body {
        display: grid;
        place-items: center;
        
        min-height: 100vh;
    }

    .product-image-expanded {
        max-width: 80vw;
        height: 80vh;
        object-fit: contain;
        object-position: center;
    }

    .lightbox-modal-content {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 80vw;
        text-align: center;
        /* border-radius: 25px; */
        overflow: hidden;
        object-fit: contain;
    }

    .btn-group-custom {
        width: inherit;
        margin-bottom: 10px;
        padding-left: 10px;
        display: flex;
        padding-right: 10px;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-between;
    }
}

/* Tablet - Vertical */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /*  .content {
    max-width: 35vw;
  }*/
    .modal-content {
        border-radius: 15px !important;
    }

    .btn-group-custom {
        width: inherit;
        margin-bottom: 10px;
        padding-left: 10px;
        display: flex;
        padding-right: 10px;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-between;
        position: sticky;
        margin-top: 50%;
    }

    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 85vw;
    }
}

/* Tablet - Horizontal */
@media only screen and (min-width: 1025px) and (max-width: 1280px) and (orientation: landscape) {
    .content {
        max-width: 60vw;
    }

    .modal-content {
        border-radius: 15px !important;
    }

    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 1vh auto 1rem auto;
    }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(1vh + 3.25rem) 0 auto 0.2rem;
    }

    .loading-container {
        position: relative;
    }

    /*.product-card {*/
    /*    max-width: 50vw;*/
    /*    border: none;*/
    /*    border-radius: 10px;*/
    /*    margin: 20px;*/
    /*    padding: 20px;*/
    /*    box-sizing: border-box;*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    background-color: #fff;*/
    /*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /*    transition: all 0.3s ease;*/
    /*}*/

    body {
        display: grid;
        place-items: center;
        min-height: 100vh;
    }

    .btn-group-custom {
        width: inherit;
        margin-bottom: 10px;
        padding-left: 10px;
        display: flex;
        padding-right: 10px;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-between;
        position: sticky;
        margin-top: 50%;
    }

    .scanner-container {
        width: 100%;
        text-align: center;
        position: relative;
    }

    .video-player {
        width: 50vw;
    }
}

/* Desktop and larger devices */
@media only screen and (min-width: 1281px) {
    .content {
        max-width: 35vw;
        min-width: 35vw;
    }


    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 1vh auto 1rem auto;
    }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(1vh + 3.25rem) 0 auto 0.2rem;
    }

    .loading-container {
        position: relative;
    }

    /*.product-card {*/
    /*    max-width: 50vw;*/
    /*    border: none;*/
    /*    border-radius: 10px;*/
    /*    margin: 20px;*/
    /*    padding: 20px;*/
    /*    box-sizing: border-box;*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    background-color: #fff;*/
    /*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /*    transition: all 0.3s ease;*/
    /*}*/

    body {
        display: grid;
        place-items: center;
        min-height: 100vh;
        min-width: 45vw;
    }

    .contact-us {
        width: 50vw;
    }

    .product-image-expanded {
        max-width: 35vw;
        height: 80vh;
        object-fit: contain;
        object-position: center;
    }
}
