html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
}
/*Set text for site*/
html, body {
    font-family: Helvetica, Arial, sans-serif, 'Times New Roman';
}
/* Fixed Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    height: 56px;
    width: 100%;
    z-index: 1030;
    background-color: #003466 !important;
    border-bottom: 3px solid #6e7e85;
}
/*To control the padding in the splitter*/
.dxbl-splitter-pane-content {
    padding: 0 !important;
}
/*END padding in the splitter*/
/* Main content full width and scrollable */
.main-content {
    margin-top: 56px;
}

/*.btn-primary {
    background-color: #003466 !important;
    border-color: #003466 !important;
}*/
/* Override Bootstrap 5 btn-primary — must set CSS variables AND properties.
   The DevExpress Purple theme drives colors via --bs-btn-* variables; overriding
   only background-color leaves those variables intact and the theme can still win.
   Higher specificity (body .btn-primary) ensures this beats the theme's selectors. */
body .btn-primary, .dxbl-btn-standalone.dxbl-btn-primary, .dxbl-checkbox-check-element, .dxbl-btn-standalone,
.btn-primary {
    --bs-btn-bg: #003466;
    --bs-btn-border-color: #003466;
    --bs-btn-hover-bg: #002450;
    --bs-btn-hover-border-color: #002450;
    --bs-btn-active-bg: #002450;
    --bs-btn-active-border-color: #002450;
    background-color: #003466 !important;
    border-color: #003466 !important;
    color: #fff !important;
    accent-color: #003466;
}
.dxbl-btn-secondary {
    background-color: white !important;
    color: Black !important;
}

a, .btn-link {
    color: #006bb7;
    
}


.text-primary {
    color: #003466 !important;
}

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

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.dropdown-header {
    background-color: #003f62 !important;
    color: #ffffff !important;
    padding: 5px;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
/*    CSS Ovverrides */
/*.mynavbar {
    background-color: #003466 !important;
    height: 75px;
    border-bottom: 3px solid #6e7e85;
}*/



/* Full App Height */
/*.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}*/



/* Main layout container (under header) */
/*.layout {
    display: flex;
    flex-grow: 1;
    margin-top: 56px;
    height: calc(100vh - 56px);
}*/

/* Sidebar fixed left */
/*.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 220px;
    height: calc(100vh - 56px);
    border-right: 1px solid #ddd;
    overflow-y: auto;
    z-index: 1020;
}*/

/*    top nav */
.nav-link {
    color: #ffffff !important;
}

    .nav-link:hover {
        text-decoration: underline;
    }
/**    this is for long text on the devexpress DxFormLayout */
.padding-left-12 {
    padding-left: 12px;
    padding-top: 15px;
}
/**    this is to override Devexpress when there is a label inside <template> on a <DxFormLayoutItem> */
.my-fi .dxbl-fl-ctrl.dxbl-fl-ctrl-nc {
    margin-top: 0px !important;
}

.myMargin {
    margin: 0px;
}

.my-NavBar {
    background-color: #003466 !important;
    color: #ffffff !important;
    border: none !important;
}

/**Causes arrow on menu to slightly move on hover*/
.my-link img {
    transition: transform 0.2s !important;
}

.my-link:hover img {
    transform: translateX(2px) !important;
}

.dxbl-drawer {
    --dxbl-drawer-content-shading-bg: none !important;
}

.btn {
    border-radius: 5px !important;
}
/*Selected menu item*/
.selected-menu-item {
    /* pick colors that fit your theme */
    background-color: #e9edf6 !important;
    /*color: white !important;*/
}
/* Hover effect */
.CtrlSearchWidth {
    max-width: 225px !important;
    min-width: 100px !important;
}

.CtrlMinMaxWidth {
    max-width: 300px !important;
    min-width: 100px !important;
}

.SmallCtrlMinMaxWidth {
    max-width: 125px !important;
    min-width: 75px !important;
}

.LongCtrlMinMaxWidth {
    max-width: 600px !important;
    min-width: 200px !important;
}

.TextBoxMinMaxWidth {
    max-width: 500px !important;
    min-width: 150px !important;
}

.SmallerTextBoxMinMaxWidth {
    max-width: 300px !important;
    min-width: 100px !important;
}

.dxbl-grid .dxbl-grid-table > tbody > tr > td {
    vertical-align: top !important;
}

.SideMenuHeader {
    text-align: center;
    font-weight: bold;
    border-bottom: 3px solid #6e7e85;
    color: #003466;
}

/* ========================================
   DASHBOARD STYLES
   ========================================
   These styles are specifically for the Dashboard.razor component
   located at /Features/Reports/Dashboard.razor
   
   Includes:
   - Dashboard container layout with sidebar and main area
   - Sidebar styling for dashboard navigation
   - Dashboard toolbar and controls
   - Responsive design for dashboard viewing
   - Role-based UI elements (SiteAdmin features)
   ======================================== */

/* Main dashboard container - full viewport layout */
/*.dashboard-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}*/

/* Left sidebar for dashboard navigation - fixed width */
/*.dashboard-sidebar {
    width: 300px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0;
}*/

/* Hidden sidebar state */
/*.dashboard-sidebar.sidebar-hidden {
    width: 0;
    min-width: 0;
    border-right: none;
    overflow: hidden;
}*/

/* Sidebar header with title and New button */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sidebar-header h4 {
        margin: 0;
        color: #495057;
    }

/* Scrollable content area for dashboard list */
/*.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}*/

/* Dashboard list styling */
.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual dashboard items */
.dashboard-item {
    border-bottom: 1px solid #e9ecef;
}

    .dashboard-item a {
        display: block;
        padding: 5px;
        text-decoration: none;
        color: #495057;
        transition: background-color 0.2s;
    }

        .dashboard-item a:hover {
            background-color: #e9ecef;
            text-decoration: none;
            color: #495057;
        }

    /* Active/selected dashboard item */
    .dashboard-item.active a {
        background-color: #e9edf6;
        color: black;
    }

        .dashboard-item.active a:hover {
            background-color: #0056b3;
            color: white;
        }

/* Dashboard name styling */
.dashboard-name {
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Last modified date styling */
.dashboard-item small {
    display: block;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    font-size: 0.75rem;
}

.dashboard-item.active small {
    color: rgba(255, 255, 255, 0.8);
}

/* Empty state when no dashboards exist */
.no-dashboards {
    padding: 2rem 1rem;
    text-align: center;
}

/* Main dashboard viewing area */
/*.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}*/

/* Toolbar with dashboard title and controls */
/*.dashboard-toolbar {
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/

/*.current-dashboard-title {
    margin: 0;
    color: #495057;
}
*/
/* DevExpress dashboard viewer container */
/*.dashboard-viewer {
    flex: 1;
    overflow: hidden;
}
*/
/* Placeholder shown when no dashboard is selected */
.dashboard-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.placeholder-content {
    text-align: center;
}

/* Toolbar right side controls */
/*.toolbar-right {
    display: flex;
    align-items: center;
}*/

/* Fancy sidebar toggle button styling */
/*.sidebar-toggle-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}*/

/*.sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: white;
    border: none;
}*/

/*.sidebar-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}*/

/*.sidebar-toggle-btn i {
    transition: transform 0.3s ease;
}*/

/*.sidebar-toggle-btn:hover i {
    transform: scale(1.1);
}*/

/* Ripple effect for the toggle button */
/*.sidebar-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}*/

/*.sidebar-toggle-btn:active::before {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
}*/

/* End of Dashboard Styles */

.AccordHeader {
    text-align: center !important;
    font-weight: bold !important;
    border-bottom: 3px solid #6e7e85 !important;
    color: #003466 !important;
    background-color: #f8f9fa !important;
}

.SendToReporterButtonPad {
    padding: 20px !important;
    height: 150px !important;
}

canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
}
/*Css for descriptions returned from event types and lookup maintenace*/
.group-description-highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    /*display: flex;*/
    align-items: center;
    font-size: 1.1em;
    color: #1565c0;
    transition: all 0.3s ease;
}

    .group-description-highlight:hover {
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
    }

    .group-description-highlight i {
        color: #2196f3;
        font-size: 1.2em;
    }

    .group-description-highlight strong {
        color: #0d47a1;
        font-weight: 600;
    }
/*END Css for descriptions returned from event types and lookup maintenace*/

/* ===== Print styles — only show #printable-event-content ===== */
@media print {
    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the printable content and its children */
    #printable-event-content,
    #printable-event-content * {
        visibility: visible;
    }

    /* Position printable content at top-left, full width */
    #printable-event-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        overflow: visible !important;
        height: auto !important;
    }

    /* Hide elements marked as no-print (e.g., print button) */
    .no-print {
        display: none !important;
    }

    /* Remove splitter constraints for print */
    .dxbl-splitter, .dxbl-splitter-pane {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Allow page breaks inside content */
    html, body {
        overflow: visible !important;
        height: auto !important;
    }

    /* Hide the fixed header during print */
    .header {
        display: none !important;
    }
}
/* ===== End Print styles ===== */


/*Form Header ovverride*/
.dxbl-group-header {
    background-color: #003466 !important;
    color: white !important;
}

.dxbl-group-header-color {
    color: white !important;
}
/*END Form Header ovverride*/

/* ── DxPopup header — match app blue ──────────────────────────────────────── */
.dxbl-popup-header {
    background-color: #003466 !important;
    color: #ffffff !important;
    border-bottom: 3px solid #6e7e85 !important;
}
    /* Force white on all child text elements — DevExpress sets color on inner spans directly */
    .dxbl-popup-header,
    .dxbl-popup-header * {
        color: #ffffff !important;
    }

        /* Close / drag icon inside the popup header */
        .dxbl-popup-header .dxbl-btn,
        .dxbl-popup-header .dxbl-image {
            color: #ffffff !important;
            filter: brightness(10);
        }
/* ── END DxPopup header ────────────────────────────────────────────────────── */
/*Time edit ovverride*/
/* Add to your component's <style> or a shared CSS file */
/* Scope with ::deep if inside a Blazor component */

button[title="Now"] {
    display: none !important;
}
/*End Time edit ovverride*/

/* ── Contributing Factor custom scroll panel (RootCauseMainPage.razor) ─────
   Replaces DxListBox with a plain scrollable div so the sticky column header
   and the item rows share the exact same container width — no scrollbar-offset
   misalignment is possible regardless of viewport size or OS scrollbar width. */

/* Scrollable container — fixed height, vertical scroll only */
.rc-cf-scroll-panel {
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Sticky column header — stays pinned to the top of the scroll panel */
.rc-cf-col-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
    border-bottom: 2px solid #dee2e6;
    padding: 6px 8px;
}

/* Category group label */
.rc-cf-group-header {
    padding: 4px 8px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Individual item row */
.rc-cf-row {
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
}

    .rc-cf-row:hover {
        background: #f5f5f5;
    }
/* ── RootCauseRead contributing factor read-only panel (RootCauseRead.razor) ─
   Displays only the selected contributing factor items grouped by category.
   Mirrors the visual structure of rc-cf-scroll-panel but as a static list. */

/* Container — no fixed height needed; content determines height */
.rc-cf-read-panel {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 0;
}

/* Category group label */
.rc-cf-read-group-header {
    padding: 4px 8px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.rc-cf-read-panel > .rc-cf-read-group-header:first-child {
    border-top: none;
}

/* Individual selected item row */
.rc-cf-read-row {
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
}

    .rc-cf-read-row:last-child {
        border-bottom: none;
    }

/* Checkmark icon color — matches Contributing checkbox blue */
.rc-cf-check {
    color: #0d6efd;
    font-size: 0.85rem;
}
/*    End CSS Ovverrides */

/* ============================================================
   Helpdesk Widget & Chat Styles
   ============================================================ */

/* ── Clipboard paste zone ─────────────────────────────────────────────────── */
.helpdesk-paste-zone {
    border: 2px dashed #ced4da;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s, background-color 0.15s;
    outline: none;
    user-select: none;
}

    .helpdesk-paste-zone:focus {
        border-color: #0d6efd;
        background-color: #f0f6ff;
        color: #0d6efd;
    }

.helpdesk-paste-zone--filled {
    border-color: #198754;
    background-color: #f0faf3;
    color: #198754;
}

/* ── ACS calling panel ────────────────────────────────────────────────────── */
.helpdesk-call-panel {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 6px;
    text-align: center;
}

/* Animated red dot indicating an active call */
.helpdesk-call-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    margin-right: 6px;
    animation: helpdesk-pulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes helpdesk-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.helpdesk-call-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
}

/* ── Escalation options panel ─────────────────────────────────────────────── */
.helpdesk-escalate-options {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 6px;
    text-align: center;
}

.helpdesk-escalate-prompt {
    font-size: 0.82rem;
    color: #495057;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Floating widget container */
.helpdesk-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

/* Chat bubble button — cursor:grab hints that it can be dragged vertically */
.helpdesk-bubble-btn {
    width: 90px;
    height: 75px;
    border-radius: 30%;
    background-color: #003466;
    color: #fff;
    border: none;
    font-size: 1.0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: grab;
    position: relative;
    transition: background-color 0.2s;
}

    .helpdesk-bubble-btn:hover {
        background-color: #005aad;
    }

/* Unread count badge on bubble */
.helpdesk-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Widget chat panel */
.helpdesk-chat-panel {
    width: 380px;
    height: 520px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Smooth resize transition when toggling expanded state */
    transition: width 0.2s ease, height 0.2s ease;
}

/* Expanded state — larger panel, still anchored to bottom-right */
.helpdesk-chat-panel--expanded {
    width: min(600px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 48px));
}

/* Compact panel when chat UI is hidden — auto-height sizes to header + buttons only */
.helpdesk-chat-panel--no-chat {
    height: auto;
}

/* Chat header */
.helpdesk-chat-header {
    background-color: #003466;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.helpdesk-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

    .helpdesk-close-btn:hover {
        color: #fff;
    }

/* Message list scrollable area */
.helpdesk-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual message row */
.helpdesk-msg {
    display: flex;
}

.helpdesk-msg-user {
    justify-content: flex-end;
}

.helpdesk-msg-bot {
    justify-content: flex-start;
}

/* Message bubble */
.helpdesk-msg-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.helpdesk-msg-user .helpdesk-msg-bubble {
    background-color: #003466;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.helpdesk-msg-bot .helpdesk-msg-bubble {
    background-color: #f0f2f5;
    color: #212529;
    border-bottom-left-radius: 4px;
}

/* Admin reply bubble (used on page and transcript) */
.helpdesk-msg-admin .helpdesk-msg-bubble {
    background-color: #fff3cd;
    color: #212529;
    border-bottom-left-radius: 4px;
}

.helpdesk-admin-label {
    font-size: 0.72rem;
    color: #856404;
    margin-top: 2px;
}

/* Thinking/typing indicator */
.helpdesk-thinking {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
}

    .helpdesk-thinking span {
        width: 7px;
        height: 7px;
        background-color: #adb5bd;
        border-radius: 50%;
        display: inline-block;
        animation: helpdesk-bounce 1.2s infinite ease-in-out;
    }

        .helpdesk-thinking span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .helpdesk-thinking span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes helpdesk-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Escalation banner */
.helpdesk-escalated-banner {
    background-color: #fff3cd;
    border-top: 1px solid #ffc107;
    color: #664d03;
    padding: 8px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Widget input area */
.helpdesk-input-area {
    border-top: 1px solid #dee2e6;
    padding: 10px;
    flex-shrink: 0;
}

.helpdesk-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.helpdesk-input {
    flex: 1;
    resize: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.87rem;
    outline: none;
    transition: border-color 0.15s;
}

    .helpdesk-input:focus {
        border-color: #003466;
    }

.helpdesk-send-btn {
    background-color: #003466;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .helpdesk-send-btn:disabled {
        background-color: #adb5bd;
        cursor: not-allowed;
    }

    .helpdesk-send-btn:hover:not(:disabled) {
        background-color: #005aad;
    }

.helpdesk-escalate-btn {
    width: 100%;
    margin-top: 6px;
    background: none;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

    .helpdesk-escalate-btn:hover:not(:disabled) {
        background-color: #fff3cd;
    }

/* ── Helpdesk Page (full-page layout) ── */

.helpdesk-page {
    display: flex;
    height: calc(100vh - 90px);
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.helpdesk-page-sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 16px;
    background-color: #f8f9fa;
}

.helpdesk-sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
}

.helpdesk-ticket-item {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 6px;
    border: 1px solid transparent;
    transition: background-color 0.15s;
}

    .helpdesk-ticket-item:hover {
        background-color: #e9ecef;
    }

    .helpdesk-ticket-item.active {
        background-color: #dbeafe;
        border-color: #93c5fd;
    }

.helpdesk-ticket-subject {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #212529;
}

.helpdesk-ticket-meta {
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.helpdesk-page-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 20px 0;
}

    /* Ensure nav-tabs inside the chat panel are never clipped */
    .helpdesk-page-chat .nav-tabs {
        flex-shrink: 0;
        margin-bottom: 12px !important;
    }

.helpdesk-page-chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background-color: #fff;
}

.helpdesk-page-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.helpdesk-msg-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 3px;
    font-weight: 600;
}

.helpdesk-page-input-area {
    padding: 16px 20px;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
    background-color: #fff;
}

.helpdesk-page-input {
    font-size: 0.9rem;
    resize: none;
}

/* Admin transcript panel */
.helpdesk-admin-transcript {
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

    /* In the admin transcript, stack label above bubble (column) so the date never overlaps.
   Align user messages to the right, bot/admin to the left. */
    .helpdesk-admin-transcript .helpdesk-msg {
        flex-direction: column;
    }

    .helpdesk-admin-transcript .helpdesk-msg-user {
        align-items: flex-end;
    }

    .helpdesk-admin-transcript .helpdesk-msg-bot,
    .helpdesk-admin-transcript .helpdesk-msg-admin {
        align-items: flex-start;
    }

    /* Slightly smaller font in the transcript so long messages don't dominate the panel */
    .helpdesk-admin-transcript .helpdesk-msg-bubble {
        font-size: 0.82rem;
    }

/* ── Helpdesk page placeholder — shown when no ticket is selected and no form is active ── */
.helpdesk-page-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
}

/* ── TicketDetail shared component — consistent dl list for all ticket detail fields ── */
.helpdesk-ticket-detail {
    border: none;
    box-shadow: none;
}

.helpdesk-ticket-detail .card-body {
    background-color: #f8f9fa;
}

.helpdesk-ticket-detail-list dt,
.helpdesk-ticket-detail-list dd {
    font-size: 0.9rem;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 0;
    border-bottom: 1px solid #dee2e6;
}

.helpdesk-ticket-detail-list dt {
    font-weight: 600;
    color: #495057;
}

/* ── RCA Specific checklist — replaces DxListBox to fix unlabeled checkbox inputs ──
   Matches the visual style of DxListBox with ShowCheckboxes: bordered container,
   per-item rows with hover highlight, and consistent padding. */
.rca-specific-checklist {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-width: 400px;
}

.rca-specific-checklist-item {
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
}

    .rca-specific-checklist-item:last-child {
        border-bottom: none;
    }

    .rca-specific-checklist-item:hover {
        background-color: #f5f5f5;
    }
/* --- End RCA Specific checklist****************************** */

/* --- DxTabs tab text contrast fix ******
   The DevExpress Purple theme renders tab labels in a light purple that fails
   WCAG AA contrast (3.07:1) against the white background. The text lives in
   span.dxbl-tabs-text-overflow inside the dxbl-tab-item custom element — there
   is no nav-link wrapper in the DOM, so the selector must target the span directly. */
span.dxbl-tabs-text-overflow {
    color: #003466 !important;
}

.user-edit-form {
    min-width: 800px;
    max-width: 1200px;
}
/*--- Manage the color on the logout button home page text contrast fix */
.btn-outline-primary {
    --bs-btn-color: #003466 !important;
    --bs-btn-border-color: #003466 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #003466 !important;
    --bs-btn-hover-border-color: #003466 !important;
}
.badgeTextColor {
    color: #000 !important;
}

