html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent body scroll */
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
}

h1:focus {
    outline: none;
}

.main-content-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.top-row {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.main-layout-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.main-layout-wrapper > div {
    min-height: 100%;
}

.full-flex-centered {
    display: flex;
    gap: 1rem;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.full-flex-centered-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 100%;
    width: 100%;
}

a, .btn-link {
    color: #0071c1;
}

.trigger-css-hot-reload {
    /* this class is to trigger hot-reload */
    /* insert any changes here */
    height: 98%;
}

.menu {
    position: fixed;
    bottom: 70px;
    right: 10px;
    /*    z-index: 9999;*/ /*Removed because it prevents document viewer from showing properly - YK - 09.04.2025*/
}

.chat-container {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    background-color: white;
    height: 450px;
    width: 350px;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.button-red {
    min-width: 90px;
    background-color: #e54d42 !important;
    color: #fff !important;
    border: none !important;
}

    .button-red:hover:not([disabled]),
    .button-red:hover:not([disabled]) * {
        background: #C34238 !important;
    }

.tracking-task-wrapper-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.action-button-red {
    display: inline-flex;
    background-color: #e54d42 !important;
    color: #fff !important;
    padding-top: 10px;
    padding-bottom: 10px;
    border: none !important;
}

    .action-button-red:hover:not([disabled]),
    .action-button-red:hover:not([disabled]) * {
        background: #C34238 !important;
    }

/* Document scanner controls should inherit the style of the action-button-red */
.document-scanner-control {
    background-color: #e54d42 !important;
    color: #fff !important;
    border: none !important;
}

.carousel-image-controls > button {
    background-color: #e54d42 !important;
    color: #fff !important;
    border: none !important;
}

.view-image-control {
    background-color: #e54d42 !important;
    color: #fff !important;
    border: none !important;
}

.bg-abona-red {
    background-color: #e54d42 !important;
    color: white;
    border: none !important;
}

.bg-abone-red:hover:not([disabled]),
.bg-abone-red:hover:not([disabled]) * {
    background: #C34238 !important;
}

/* Status colors */
/* Defined in StyleHelper in Colors region*/

.bg-running {
    background-color: #40c057 !important;
}

.bg-pending {
    background-color: #fab005 !important;
}

.bg-completed {
    background-color: #228be6 !important;
}

.bg-delayed {
    background-color: #fa5252 !important;
}

/*  */

.act-button-red {
    min-width: 85px;
    display: inline-flex;
    align-items: center;
    background-color: #e54d42 !important;
    color: #fff !important;
    border: none !important;
}

    .act-button-red:hover:not([disabled]),
    .act-button-red:hover:not([disabled]) * {
        background: #C34238 !important;
    }

.text-act-description {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: flex-start;
}

.title {
    font-weight: bold;
    padding-right: 10px;
}

.date-info {
    padding-left: 10px;
}

.btn-margin-st {
    margin-bottom: 2px;
}

.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;
}

.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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MDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Detail Styles */
/* Use whenever you need Object: Value row type styles*/

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
    min-width: 80px;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f8f9fa;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.detail-value {
    color: #212529;
    font-size: 0.875rem;
    text-align: right;
    max-width: 65%;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attention-bg {
    color: #C34238;
    font-weight: bold;
}

.attention-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #ff1e2d 100%);
    box-shadow: 0 1px 2px rgba(255, 71, 87, 0.4), 0 0 0 1px white, inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.4rem;
}

.flyout-red-arrow {
    --dxbl-flyout-arrow-base-border-color: var(--bs-primary) !important;
}

.main-footer-wrapper {
    flex-shrink: 0;
    padding: 0.35rem 0;
    border-top: 1px solid #c6c7c8;
    background: #fff;
    font-size: 0.65rem;
}

.main-footer-wrapper span {
    font-size: inherit !important;
}

/* DEV EXPRESS STYLE ADJUSTMENTS */

.dxbl-tabs {
    --dxbl-tabs-tab-selected-color: #E41E25 !important;
}

    .dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active::after, .dxbl-tabs > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-disabled):not(:disabled).dxbl-active::after {
        background-color: #E41E25 !important;
    }

/* Language selector */
.lang-combobox {
    max-width: 110px;
}

.lang-combobox:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: none;
}

.lang-combobox-input {
    background-color: #fff !important;
    cursor: pointer;
}

.lang-combobox-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(229, 77, 66, 0.2);
    border: 1px solid #ced4da !important;
}

.lang-combobox .dxbl-listbox-item-selected {
    background-color: #e54d42 !important;
}

.lang-combobox .dxbl-listbox-item:hover {
    background-color: #ff7878;
    color: white;
}

/* Scanner fullscreen modal - simple Bootstrap-style overlay */
.scanner-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999; /* Higher than DxPopup to overlay it */
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    flex-shrink: 0;
}

.scanner-fullscreen-title {
    font-weight: 600;
    font-size: 1rem;
}

.scanner-fullscreen-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* DocumentScanner inside fullscreen modal */
.scanner-fullscreen-body .document-scanner-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-fullscreen-body .document-scanner-tabs {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-fullscreen-body .dxbl-tabs-content-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-fullscreen-body .dxbl-tabs-content.dxbl-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.scanner-fullscreen-body .document-scanner-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-fullscreen-body .document-scanner-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-fullscreen-body .scanner-viewport-wrapper {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    background: #000;
}

.scanner-fullscreen-body .camera-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.scanner-fullscreen-body .dce-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scanner-fullscreen-body .dce-video-container video,
.scanner-fullscreen-body .dce-video-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-fullscreen-body .document-scanner-controls {
    flex-shrink: 0;
    padding: 0.5rem;
}