﻿/*html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}*/

.header-logo {
    background-image: url(../images/VBLogo.svg);
    width: 360px;
    height: 48px;
    /* ... */
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/*.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;
}

.loading-image-wrapper {
    background-color: transparent !important;
}

.loading-image {
    width: 100px;
    height: 100px;
}

img.rounded.p-3 {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dxbs-splash-screen {
    background-color: var(--dxbs-background, #ffffff); /* Use themed background */
}

.vanbruun-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    height: 75vh;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 16px;
    animation: fadeIn 1s ease-out;
    margin-bottom: 30px;
}

.splash-caption {
    font-size: 1.8rem;
    font-weight: 500;
    color: #5b3f2b;
    animation: fadeBounceIn 1s ease-out;
    text-align: center;
}

/* Animations */
.animate-caption {
    animation: fadeBounceIn 1s ease-out;
}

@keyframes fadeBounceIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

:root {
    --splash-text-light: #5b3f2b;
    --splash-text-dark: #ffffff;
    --progress-bg-light: #ccc;
    --progress-bg-dark: #444;
    --progress-bar-color-light: #5b3f2b;
    --progress-bar-color-dark: #aaa;
}

[vbl-theme="Light"] .splash-caption {
    color: var(--splash-text-light);
}

[vbl-theme="Dark"] .splash-caption {
    color: var(--splash-text-dark);
}

.fake-progress-container {
    width: 250px;
    height: 8px;
    background-color: var(--progress-bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

[vbl-theme="Dark"] .fake-progress-container {
    background-color: var(--progress-bg-dark);
}

.fake-progress-bar {
    height: 100%;
    width: 40%;
    background-color: var(--progress-bar-color-light);
    animation: shimmer 1.5s infinite ease-in-out;
}

[vbl-theme="Dark"] .fake-progress-bar {
    background-color: var(--progress-bar-color-dark);
}

@keyframes shimmer {
    0% {
        margin-left: -40%;
    }

    100% {
        margin-left: 100%;
    }
}

.dxbs-splash-screen {
    transition: opacity 0.8s ease;
    opacity: 1;
}

body.splash-fade-out .dxbs-splash-screen {
    opacity: 0;
    pointer-events: none;
}

/* Inbox navigation badge */
.inbox-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background-color: #dc3545;
    border-radius: 10px;
    vertical-align: middle;
}

.inbox-nav-item {
    display: flex;
    align-items: center;
}

/* Alternative: Overlapping notification style badge */
/*.inbox-nav-item {
    position: relative;
    display: inline-block;
    padding-right: 12px;
}

.inbox-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    background-color: #dc3545;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}*/

/* ═══════════════════════════════════════════════════════════════════════════
   VBSystem Chat Bubble Styles
   
   For VBSystem:
   - LOCAL (VB) = Gray bubble, aligned RIGHT (you sent it)
   - REMOTE (HM) = Blue bubble, offset LEFT (they sent it)
   
   This matches HMSystem's color scheme (gray = your system, blue = other system)
   ═══════════════════════════════════════════════════════════════════════════ */

.chat-container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 8px;
}

.chat-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Row positioning
   ═══════════════════════════════════════════════════════════════════════════ */
.cb-row {
    display: flex;
    margin: 0.25rem 0;
}

    /* Remote messages (HM) - left side with slight offset from edge */
    .cb-row.them {
        justify-content: flex-start;
        padding-left: 0;
    }

    /* Local messages (VB) - right side with offset (not all the way) */
    .cb-row.me {
        justify-content: flex-start;
        padding-left: 80px;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   Bubble base styles
   ═══════════════════════════════════════════════════════════════════════════ */
.cb-bubble {
    max-width: 72ch;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    min-width: 180px;
}

    /* ═══════════════════════════════════════════════════════════════════════════
   REMOTE (HM) - Blue theme, LEFT aligned
   Messages from HMSystem shown on the left in blue
   ═══════════════════════════════════════════════════════════════════════════ */
    .cb-bubble.remote {
        background: #3b82f6;
        color: #fff;
        border: 1px solid #2563eb;
        border-top-left-radius: 3px;
    }

        .cb-bubble.remote .cb-meta {
            color: #bfdbfe;
        }

        .cb-bubble.remote .cb-system {
            background: #1d4ed8;
            color: #bfdbfe;
        }

        .cb-bubble.remote .cb-user {
            color: #bfdbfe;
        }

        .cb-bubble.remote .cb-time {
            color: #93c5fd;
        }

        .cb-bubble.remote .cb-text {
            color: #ffffff;
        }

        .cb-bubble.remote .cb-task {
            border-top-color: rgba(255,255,255,0.2);
        }

    /* ═══════════════════════════════════════════════════════════════════════════
   LOCAL (VB) - Gray theme, RIGHT offset
   Messages from VBSystem shown offset to the right in gray
   ═══════════════════════════════════════════════════════════════════════════ */
    .cb-bubble.local {
        background: #f1f5f9;
        color: #1e293b;
        border: 1px solid #94a3b8;
        border-top-right-radius: 3px;
    }

        .cb-bubble.local .cb-meta {
            color: #64748b;
        }

        .cb-bubble.local .cb-system {
            background: #e2e8f0;
            color: #475569;
        }

        .cb-bubble.local .cb-user {
            color: #475569;
        }

        .cb-bubble.local .cb-time {
            color: #94a3b8;
        }

        .cb-bubble.local .cb-text {
            color: #1e293b;
        }

        .cb-bubble.local .cb-task {
            border-top-color: rgba(0,0,0,0.1);
        }

/* ═══════════════════════════════════════════════════════════════════════════
   Metadata line (badge, username, timestamp)
   ═══════════════════════════════════════════════════════════════════════════ */
.cb-meta {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cb-system {
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cb-user {
    font-weight: 600;
    font-size: 0.8rem;
}

.cb-time {
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Message text
   ═══════════════════════════════════════════════════════════════════════════ */
.cb-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Task indicator
   ═══════════════════════════════════════════════════════════════════════════ */
.cb-task {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED CHAT BUBBLE STYLES - Visual Indicators
   Added: [TODAY'S DATE]
   ═══════════════════════════════════════════════════════════════════════════ */

/* BOLD TEXT FOR UNREAD/UNCOMPLETE (Like Outlook) */
.cb-bubble.cb-unread .cb-text {
    font-weight: 700; /* Bold for unread messages */
}

.cb-bubble.cb-unread .cb-user {
    font-weight: 600; /* Semi-bold for user name */
}

/* EXTERNAL MESSAGE HIGHLIGHTING (Light Blue Background) */
.cb-bubble.cb-external {
    border-left: 4px solid #3b82f6; /* Blue accent bar */
}

.cb-bubble.local.cb-external {
    background: linear-gradient(135deg, #f3f4f6 0%, #e0f2fe 100%);
    border-left-color: #3b82f6;
}

.cb-bubble.remote.cb-external {
    border-left-color: #1d4ed8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED CHAT BUBBLE STYLES FOR VBSYSTEM - Replace after line 439 in site.css
   - More screen width usage
   - VB internal messages further right
   - New "To HMSystem" badge style
   - Cleaner, more compact design
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container for all chat bubbles - USE MORE SCREEN */
.chat-container {
    padding: 6px 8px; /* Reduced padding to use more screen */
    max-width: 100%;
    overflow-x: hidden;
}

/* Individual chat row */
.cb-row {
    display: flex;
    margin-bottom: 5px; /* Reduced from 6px */
    gap: 0;
    max-width: 100%;
}

    /* Left-aligned bubbles (HM messages from HMSystem) */
    .cb-row.remote {
        justify-content: flex-start;
        padding-right: 0;
    }

    /* Right-aligned bubbles (VB messages - internal or to HM) */
    .cb-row.local {
        justify-content: flex-end;
        padding-left: 25%; /* Increased from 18% - pushes VB messages FURTHER RIGHT */
    }

/* The actual bubble - MORE WIDTH */
.cb-bubble {
    max-width: 70%; /* Increased from 65% - uses more screen */
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

    /* Local bubbles (VB messages) - Slate/Gray */
    .cb-bubble.local {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border: 1px solid #94a3b8;
    }

    /* Remote bubbles (HM messages) - Blue */
    .cb-bubble.remote {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border: 1px solid #60a5fa;
    }

    /* Unread messages - Bold text (like Outlook) */
    .cb-bubble.cb-unread {
        font-weight: 700;
    }

    /* External messages (from HMSystem) - Blue left border */
    .cb-bubble.cb-external {
        border-left: 3px solid #3b82f6;
    }

    /* Outstanding tasks - Yellow gradient background */
    .cb-bubble.cb-task-pending {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-left: 3px solid #fbbf24;
    }

/* Header section (source + user + time) */
.cb-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

/* Source badges - ENHANCED with three types */
.cb-source-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}

    /* VB → VB (truly internal) - Gray */
    .cb-source-badge.internal {
        background-color: #e5e7eb;
        color: #374151;
    }

    /* VB → HM (to external system) - Purple/Orange */
    .cb-source-badge.to-external {
        background-color: #fed7aa; /* Light orange */
        color: #9a3412; /* Dark orange */
        border: 1px solid #fb923c;
    }

    /* HM → VB (from external system) - Blue */
    .cb-source-badge.external {
        background-color: #bfdbfe;
        color: #1e3a8a;
    }

/* User name */
.cb-user {
    font-weight: 700;
    font-size: 11px;
    color: #475569;
}

.cb-bubble.remote .cb-user {
    color: #2563eb;
}

/* Timestamp */
.cb-time {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
}

/* Message body */
.cb-body {
    font-size: 12px;
    line-height: 1.35;
    color: #1e293b;
    margin: 0;
}

.cb-bubble.remote .cb-body {
    color: #1e3a8a;
}

/* Footer section */
.cb-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 10px;
    flex-wrap: wrap;
}

/* Task status badges */
.cb-task-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

    .cb-task-badge.pending {
        background-color: #fef3c7;
        color: #92400e;
        border-color: #fbbf24;
    }

    .cb-task-badge.complete {
        background-color: #d1fae5;
        color: #065f46;
        border-color: #10b981;
    }

/* Status icons */
.cb-status-icon {
    color: #6b7280;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}

    .cb-status-icon.read {
        color: #10b981;
    }

    .cb-status-icon.complete {
        color: #10b981;
    }

/* Read count for multi-recipient */
.cb-read-count {
    color: #6b7280;
    font-size: 9px;
    font-style: italic;
}

/* Message type indicator */
.cb-type-indicator {
    font-size: 9px;
    opacity: 0.7;
}

/* Hover effects */
.cb-bubble:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    transition: all 0.15s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cb-bubble {
        max-width: 80%;
        font-size: 11px;
    }

    .cb-row.local {
        padding-left: 15%;
    }

    .cb-meta {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cb-bubble {
        max-width: 90%;
        padding: 5px 7px;
    }

    .cb-row.local {
        padding-left: 10%;
    }
}

/* Accessibility */
.cb-bubble:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cb-bubble {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END OF ENHANCED CHAT BUBBLE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* OUTSTANDING TASK HIGHLIGHTING (Yellow Background) */
.cb-bubble.cb-task-pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

    .cb-bubble.cb-task-pending.remote {
        background: linear-gradient(135deg, #bfdbfe 0%, #fef3c7 100%);
    }

/* SOURCE BADGE (Internal/External indicator) */
.cb-source-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

    .cb-source-badge.internal {
        background: rgba(156, 163, 175, 0.2);
        color: #374151;
    }

.cb-bubble.remote .cb-source-badge.internal {
    background: rgba(191, 219, 254, 0.3);
    color: #dbeafe;
}

.cb-source-badge.external {
    background: rgba(59, 130, 246, 0.2);
    color: #1e3a8a;
    animation: pulse-badge 2s ease-in-out infinite;
}

.cb-bubble.remote .cb-source-badge.external {
    background: rgba(191, 219, 254, 0.3);
    color: #dbeafe;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* FOOTER AREA (Status indicators) */
.cb-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 11px;
}

.cb-bubble.remote .cb-footer {
    border-top-color: rgba(255,255,255,0.15);
}

/* TASK BADGE - Updated with better styling */
.cb-task-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .cb-task-badge.pending {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fbbf24;
    }

    .cb-task-badge.complete {
        background: #d1fae5;
        color: #065f46;
        border: 1px solid #10b981;
    }

.cb-bubble.remote .cb-task-badge.pending {
    background: rgba(254, 243, 199, 0.3);
    color: #fef3c7;
    border-color: rgba(251, 191, 36, 0.5);
}

.cb-bubble.remote .cb-task-badge.complete {
    background: rgba(209, 250, 229, 0.3);
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.5);
}

/* STATUS ICON (Read receipts, completion status) */
.cb-status-icon {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

    .cb-status-icon.pending {
        color: #6b7280;
    }

    .cb-status-icon.complete {
        color: #10b981;
    }

.cb-bubble.remote .cb-status-icon.pending {
    color: #bfdbfe;
}

.cb-bubble.remote .cb-status-icon.complete {
    color: #d1fae5;
}

/* READ COUNT (For multi-recipient messages) */
.cb-read-count {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.7;
    font-style: italic;
}

.cb-bubble.remote .cb-read-count {
    color: #bfdbfe;
}

/* HOVER EFFECTS */
.cb-bubble {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .cb-bubble:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .cb-source-badge {
        font-size: 9px;
        padding: 1px 6px;
    }

    .cb-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .cb-read-count {
        flex-basis: 100%;
        margin-left: 0;
        text-align: right;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END OF ENHANCED CHAT BUBBLE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Thumbnail style for ListViews */
.img-list {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.img-auto {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

/* Larger style for DetailViews */
.img-detail {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

/* Backdrop fills screen */
.image-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer; /* clicking backdrop closes */
}

/* Image inside popup */
.image-popup-fullscreen {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 6px;
    cursor: default; /* don't show hand cursor */
}

/* Thumbnail in DetailView */
.xaf-image-square {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    cursor: pointer;
}

.hidden-action {
    display: none !important;
}

/* === Diora Themed Layout Groups === */

/* Base group container */
.dx-blazor-layout-group {
    border: 1px solid #8c6239; /* Diora brown border */
    border-radius: 8px; /* smooth rounded corners */
    margin: 12px 0; /* spacing between groups */
    padding: 10px 12px 12px 12px; /* space inside box */
    background-color: #fdfbf7; /* subtle warm background */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* very light shadow */
}

    /* Group caption (header) */
    .dx-blazor-layout-group > .dx-blazor-layout-group-caption {
        font-weight: bold;
        font-size: 14px;
        color: #8c6239; /* Diora brown text */
        border-bottom: 1px solid #d9c9b2; /* subtle divider */
        padding-bottom: 4px;
        margin-bottom: 8px;
        text-transform: uppercase; /* optional: makes it more defined */
        letter-spacing: 0.5px;
    }

    /* Optional: collapsible group caret */
    /*.dx-blazor-layout-group .dx-blazor-layout-group-caption .dxbl-collapsible-panel-toggle {
        color: #8c6239 !important;*/ /* make caret match Diora brown */
    /*}*/


.responsive-square-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
}

/* Reduce massive white area in popup detail views */
.dxbl-dialog-content,
.dxbl-popup-content {
    max-height: 90vh !important;
    height: auto !important;
    overflow-y: auto !important;
    padding-bottom: 8px !important;
}


/*LLamachant Custom*/
.dxbl-text-edit {
    border-bottom-color: var(--dxbl-text-edit-border-color);
}

.dxbl-group > .dxbl-group-header > .dxbl-text {
    color: var(--dx-color-primary);
}

.sidebar .nav-pills .nav-link:hover, .sidebar .nav-pills .nav-link::selection, .nav-pills .nav-item:not(.show) > .nav-link:not(.active):focus {
    background-color: var(--dx-color-primary) !important;
}

.dxbs-grid-group-row {
    font-weight: bold;
    font-size: 0.90em;
    opacity: 0.5;
}

div.sidebar div.xaf-flex-auto {
    padding-bottom: 10px;
}

.xaf-nav-link {
    text-decoration: none !important;
}

.dxbl-navigation-filter .dxbl-text-edit-input {
    color: rgb(200,200,200) !important;
}

.dxbl-theme-fluent .dxbl-group > .dxbl-group-header:has(> .dxbl-text) {
    color: var(--dx-color-primary);
    border-bottom: solid 1px var(--dx-color-border);
}
/*LLamachant Custom*/

/* ============================================
   CSS FIX FOR "GLOBAL SEARCH" TRUNCATION
   Add this to your CustomMainLayout.razor or global CSS
   ============================================ */

/* Option 1: Fix via Layout Styling (RECOMMENDED) */
.top-bar-right {
    margin-left: auto;
    min-width: 450px; /* Increased to accommodate "Global Search" */
    display: flex;
    align-items: center;
    gap: 10px;
}

    /* Ensure the parametrized action container has enough width */
    .top-bar-right .dxbl-parametrized-action,
    .top-bar-right [class*="parametrized"] {
        min-width: 350px;
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Force caption to be fully visible */
    .top-bar-right .dxbl-action-caption,
    .top-bar-right .caption {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    /* Make the search input wider */
    .top-bar-right input[type="text"],
    .top-bar-right .dxbl-text-editor-input,
    .top-bar-right .dxbl-edit {
        min-width: 200px !important;
        width: 200px;
    }

    /* Ensure the action button doesn't shrink */
    .top-bar-right .dxbl-btn,
    .top-bar-right button {
        flex-shrink: 0;
        margin-left: 8px;
    }

    /* Option 2: Prevent Any Text Truncation Globally for This Section */
    .top-bar-right * {
        text-overflow: clip !important;
    }

/* Option 3: Specific DevExpress Blazor Overrides */
.dxbl-grid-header-toolbar .dxbl-parametrized-action,
.dxbl-header .dxbl-parametrized-action {
    /* Don't affect these - they should be normal */
}

/* Target only the top-bar area */
.top-bar .dxbl-parametrized-action {
    min-width: 350px !important;
}

    .top-bar .dxbl-parametrized-action .dxbl-action-caption {
        max-width: none !important;
        overflow: visible !important;
    }

/* ============================================
   RESPONSIVE DESIGN (OPTIONAL)
   Hide caption on small screens if needed
   ============================================ */
@media (max-width: 992px) {
    .top-bar-right {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    /* On mobile, you might want to show icon only */
    .top-bar-right .dxbl-action-caption {
        display: none; /* Hide caption on mobile */
    }

    .top-bar-right {
        min-width: 200px;
    }
}

/* Target all parametrized actions in toolbars */
.dxbl-grid-header-toolbar .dxbl-parametrized-action,
.dxbl-toolbar .dxbl-parametrized-action,
.dxbl-header .dxbl-parametrized-action {
    min-width: 350px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

/* Prevent caption text truncation */
.dxbl-parametrized-action .dxbl-action-caption,
.dxbl-action-caption {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    flex-shrink: 0 !important;
}

/* Ensure input box has minimum width */
.dxbl-parametrized-action input[type="text"],
.dxbl-parametrized-action .dxbl-text-editor-input,
.dxbl-parametrized-action .dxbl-edit-input {
    min-width: 200px !important;
}

/* Specifically target the GlobalUniversalSearch action if needed */
[data-action-id="GlobalUniversalSearch"] {
    min-width: 400px !important;
}

    [data-action-id="GlobalUniversalSearch"] .dxbl-action-caption {
        white-space: nowrap !important;
        overflow: visible !important;
    }

/* Ensure the action container doesn't constrain */
.dxbl-action-container {
    overflow: visible !important;
}



/* SweetAlert2 customization to match XAF/DevExpress theme */
.swal-popup-custom {
    font-family: inherit;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.swal-title-custom {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.swal-confirm-custom {
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 10px 24px !important;
}

.swal-cancel-custom {
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 10px 24px !important;
}

/* Match DevExpress button styling */
.swal2-confirm.swal-confirm-custom {
    background-color: #1976d2 !important;
}

    .swal2-confirm.swal-confirm-custom:hover {
        background-color: #1565c0 !important;
    }

.swal2-cancel.swal-cancel-custom {
    background-color: #6c757d !important;
}

.swal2-cancel.swal-cancel-custom:hover {
    background-color: #5a6268 !important;
}

/* SweetAlert2 Toast customization */
.swal-toast-custom {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.swal2-toast .swal2-title {
    margin: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Ensure toasts appear above other elements */
.swal2-container.swal2-toast-shown {
    z-index: 99999;
}