html, body {
    height: 100vh;
}

app {
    display: block;
    height: 100vh;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.header {
    visibility: hidden;
}





.dxbl-toolbar.dxbl-toolbar-adaptive > .dxbl-btn-toolbar {
    position: relative !important;
}

.dxbl-toolbar.dxbl-toolbar-adaptive {
    -webkit-justify-content: center;
    justify-content: center;
}

.wizard-button-container button {
    font-size: 1rem;
    padding: 1rem 1rem;
    border-radius: 1rem;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin-top: 30px;
}

.wizard-get-weight-button-container button {
    font-size: 1rem;
    padding: 1rem 1rem;
    border-radius: 1rem;
    min-width: 140px;
    min-height: 100px;
    transition: transform 0.2s ease;
    margin-top: -10px;
}

.wizard-button-container .dxbl-btn > .dxbl-image + span, .wizard-get-weight-button-container .dxbl-btn > .dxbl-image + span {
    display: block !important;
}






.kiosk-button-container .dxbl-fl-ctrl {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center; /* center vertically */
    min-height: 10vh; /* fill 10% of the viewport height */
    width: 100%; /* full width */
    box-sizing: border-box;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.kiosk-button-container button {
    font-size: 1.8rem;
    padding: .75rem 1.5rem;
    border-radius: 1rem;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin-top: 30px;
}

    .kiosk-button-container button:hover {
        transform: scale(1.05);
    }

.feedback-button-container .dxbl-memo-edit {
    display: flex;
    justify-content: left; /* center horizontally */
    align-items: top; /* center vertically */
    min-height: 10vh; /* fill 10% of the viewport height */
    width: 100%; /* full width */
    box-sizing: border-box;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.instruction-textbox-container .dxbl-memo-edit {
    display: flex;
    justify-content: left; /* center horizontally */
    align-items: top; /* center vertically */
    min-height: 1vh; /* fill 10% of the viewport height */
    width: 100%; /* full width */
    box-sizing: border-box;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.instruction-textbox-container textarea {
    font-size: 1rem;
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin-top: 30px;
}

    .feedback-button-container textarea {
    font-size: 2rem;
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin-top: 30px;
}

   





.driver-instruction-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
    opacity: 0; /* Start invisible */
    transform: translateY(-10px); /* Start slightly above */
    animation: fadeInDown 0.6s ease-out forwards; /* Animate in */
}



/* Animation Keyframes */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.driver-instruction {
    position: relative;
    padding-left: 20px;
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Prevent visual glitches on animation */
}

    .driver-instruction::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 10px;
        width: 4px;
        border-radius: 4px;
        background: linear-gradient(to bottom, #007bff, #0056b3);
        transform: scaleY(0); /* Start "collapsed" */
        transform-origin: top; /* Animate downwards */
        animation: growLine 0.6s ease-out forwards; /* Apply animation */
    }

/* Animation keyframes */
@keyframes growLine {
    to {
        transform: scaleY(1); /* Grow to full height */
    }
}

.dxbl-text-edit-input, .dxbl-fl-ctrl .dxbl-text-edit-template {
    font-size: 2rem !important;
    padding: 1.5rem 3rem !important;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.dxbl-pager-container .dxbl-text-edit-input {
    font-size: initial !important;
    padding: initial !important;
    min-width: initial !important;
    box-shadow: none !important;
}

.dxbl-fl-ctrl .dxbl-btn-group-right {
    width: 150px;
}

.dxbl-fl-ctrl .dxbl-text-edit-btn {
    width: 100%;
}

.dxbl-scroll-viewer {
    font-size: 1.5em !important;
}


.parametrized-action-wrapper.xaf-action-fulltextsearch.dxbl-text-edit {
    width: 100%;
}

td.xaf-action {
    height: 60px;
}

.dxbl-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Prevent dragging */
.dxbl-popup-header {
    cursor: default !important;
    pointer-events: none;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup > .dxbl-modal-content > .dxbl-modal-header {
    visibility: hidden;
    display: none;
}

.uppercase-text-input input {
    text-transform: uppercase;
}


.order-summary {
    max-width: 600px;
    margin: 30px auto;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

    .order-summary h2 {
        margin-top: 0;
        font-size: 1.8em;
        color: #2c3e50;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

    .summary-table td {
        padding: 8px 0;
        vertical-align: top;
    }

.summary-label {
    font-weight: 600;
    color: #555;
    width: 150px;
    padding-right: 16px;
}

/* Ensure form layout items don't collapse and allow space */
.wizard-button-container .dxbl-fl-item {
    min-width: 120px;
}

/* Fix the inner toolbar layout */
.wizard-button-container .dxbl-toolbar {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem; /* space between buttons if there are more */
}

/* Prevent buttons from overlapping */
.wizard-button-container .dxbl-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
    height: 40px;
    padding: 0 12px;
}

/* Optional: align the wizard row nicely */
.wizard-button-container .dxbl-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Editors */
.editor-icon,
.dxbl-btn .editor-icon {
    width: 1rem;
    height: 1rem;
    background-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    opacity: 0.7;
}

.editor-icon-barcode {
    -webkit-mask-image: url("../images/icons/barcode.svg");
    mask-image: url("../images/icons/barcode.svg");
}

.editor-icon-close {
    background-image: url('../images/icons/closeview.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 1rem;
    height: 1rem;
    display: inline-block;
    opacity: 0.7;
}

.editor-icon-accept {
    background-image: url('../images/icons/tick.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 1rem;
    height: 1rem;
    display: inline-block;
    opacity: 0.7;
}


.dxbl-image:not(.dxbl-image-fill) {
    fill: currentcolor;
}

/* Styles for the video container to center it on the screen */
.video-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
}

    .video-overlay video {
        width: 400px;
        height: 300px;
        border: 2px solid white;
        border-radius: 4px;
    }

/* To dim the background */
.dim-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    pointer-events: none; /* Allow clicks through the overlay */
}
