
/* =============================================================================
   1. GLOBAL LAYOUT
   ============================================================================= */
html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;
    background-color: #e8f0f7 !important; 
    margin: 0;
    padding: 0;
}

.dxbl-app,
.dxbl-app-content,
.dxbl-app-content-area,
.dxbl-layout-main,
.dxbl-app-main {
    background-color: #e8f0f7 !important;
}

.about-info {
    font-size: 0.7rem;
    line-height: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    margin-right: 1rem;
    margin-left: 1rem;
    opacity: .5;
    color: black
}

/* =============================================================================
   2. HEADER / BRANDING
   ============================================================================= */
.dxbl-app-header,
.dxbl-navbar,
header.navbar,
div.header,
.header.navbar-dark,
.xaf-header,
[role="banner"] {
    min-height: 60px !important;
    height: 60px !important;
    background-color: #1b2a38 !important;
    color: #ffffff !important;
}

    .dxbl-app-header *,
    div.header *,
    .header.navbar-dark *,
    [role="banner"] * {
        color: #ffffff !important;
    }
#smarticle-header-extras {
    position: fixed;
    top: 0;
    right: 100px;
    height: 60px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    pointer-events: auto;
    background: transparent;
    color: rgba(255,255,255,0.85);
}

    #smarticle-header-extras .sh-lang-label {
        color: rgba(255,255,255,0.55);
    }

    #smarticle-header-extras .sh-btn {
        background: none;
        border: none;
        font-size: inherit;
        font-family: inherit;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        padding: 2px 6px;
        border-radius: 3px;
        cursor: pointer;
    }

        #smarticle-header-extras .sh-btn:hover {
            background: rgba(255,255,255,0.1);
            color: #ffffff;
        }

        #smarticle-header-extras .sh-btn.sh-active {
            color: #00aeef;
            font-weight: 600;
            border-bottom: 2px solid #00aeef;
            border-radius: 0;
        }

    #smarticle-header-extras .sh-sep {
        color: rgba(255,255,255,0.25);
    }

    #smarticle-header-extras .sh-mail {
        display: flex;
        align-items: center;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        cursor: pointer;
    }

        #smarticle-header-extras .sh-mail:hover {
            color: #00aeef;
        }

    #smarticle-header-extras .sh-help {
        display: flex;
        align-items: center;
        gap: 3px;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        cursor: pointer;
        font-size: 12px;
    }

        #smarticle-header-extras .sh-help:hover {
            color: #00aeef;
        }

    #smarticle-header-extras .sh-help-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f5c400;
        color: #333;
        border-radius: 50%;
        width: 15px;
        height: 15px;
        font-size: 10px;
        font-weight: bold;
        flex-shrink: 0;
    }

/* Flyout: rompe la herencia del color blanco del header (div.header * !important) */
/* El selector con ID tiene mayor especificidad: (0,1,1,0) > (0,0,1,1) */
#smarticle-header-extras .sh-help-flyout,
#smarticle-header-extras .sh-help-flyout * {
    color: #2c3e50 !important;
}
#smarticle-header-extras .sh-help-flyout .sh-fly-folder,
#smarticle-header-extras .sh-help-flyout .sh-fly-folder * {
    color: #6b8fa5 !important;
}
#smarticle-header-extras .sh-help-flyout .sh-fly-item:hover,
#smarticle-header-extras .sh-help-flyout .sh-fly-item:hover * {
    color: #007bb5 !important;
}
#smarticle-header-extras .sh-help-flyout .sh-help-loading,
#smarticle-header-extras .sh-help-flyout .sh-help-empty {
    color: #999 !important;
}

/* Help flyout tree menu */
.sh-help-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sh-help-flyout {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff !important;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    min-width: 230px;
    max-width: 310px;
    max-height: 460px;
    overflow-y: auto;
    z-index: 10000;
    padding: 4px 0;
    color: #2c3e50 !important;
}

.sh-fly-folder {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #6b8fa5 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
    pointer-events: none;
}

.sh-fly-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #2c3e50 !important;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-fly-item:hover {
    background: #e8f4fb;
    color: #007bb5 !important;
}

.sh-fly-item--indent {
    padding-left: 28px;
}

.sh-fly-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sh-help-loading {
    padding: 14px;
    display: flex;
    justify-content: center;
}

.sh-help-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #00aeef;
    border-radius: 50%;
    animation: sh-spin 0.7s linear infinite;
}

@@keyframes sh-spin {
    to { transform: rotate(360deg); }
}

.sh-help-empty {
    padding: 12px;
    color: #aaa;
    font-size: 12px;
    text-align: center;
}

/* DxTreeView dentro del flyout de ayuda */
#smarticle-header-extras .sh-help-tree {
    width: 100%;
}

#smarticle-header-extras .sh-help-tree .dxbl-treeview-item,
#smarticle-header-extras .sh-help-tree .dxbl-treeview-item * {
    color: #2c3e50 !important;
    font-size: 13px;
}

#smarticle-header-extras .sh-help-tree .dxbl-treeview-item:hover,
#smarticle-header-extras .sh-help-tree .dxbl-treeview-item:hover * {
    background: #e8f4fb !important;
    color: #007bb5 !important;
}

#smarticle-header-extras .sh-help-tree .dxbl-treeview-item.dxbl-treeview-item-selected,
#smarticle-header-extras .sh-help-tree .dxbl-treeview-item.dxbl-treeview-item-selected * {
    background: transparent !important;
    color: #2c3e50 !important;
}

#smarticle-header-extras .sh-help-tree .dxbl-treeview-toggle-btn {
    color: #6b8fa5 !important;
}

.dxbl-app-content .dxbl-btn-icon[title*="sidebar"],
.dxbl-app-content .dxbl-btn-icon[aria-label*="sidebar"],
button.xaf-sidebar-toggle {
    display: none !important;
}

div.header dxbl-toolbar,
div.header .dxbl-toolbar,
.header.navbar-dark dxbl-toolbar,
.header.navbar-dark .dxbl-toolbar {
    display: none !important;
}

.header-logo {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    background-color: transparent !important;
    background-image: url('/images/Logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    width: 190px !important;
    height: 35px !important;
    min-width: 190px !important;
    display: inline-block !important;
}

button.account-button {
    background: transparent !important;
    border: none !important;
    color: #555 !important;
    padding: 4px 6px !important;
    box-shadow: none !important;
}

    button.account-button:hover {
        color: #00aeef !important;
        background: transparent !important;
    }

/* Botones de idioma */
.languageButton,
.languageButtonSelected {
    border-radius: 0 !important;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    padding: 4px 8px;
}

.languageButtonSelected {
    border-bottom: 2px solid #00aeef;
    color: #00aeef;
    font-weight: 500;
}

.languageButton {
    color: #888;
}

    .languageButton:hover {
        color: #444;
    }

/* =============================================================================
   10. LOGIN PAGE STYLING (replicates original WebForms Stylesheet-Login.css)
   ============================================================================= */

/* --- Login page: override global light-blue background to white --- */
/* :has() is supported in all modern browsers (Chrome 105+, Firefox 121+, Safari 15.4+) */
body:has(#logon-template-component),
body:has(.dxbl-logon-window-template) {
    background-color: #ffffff !important;
    background-image: none !important;
}

html:has(#logon-template-component),
html:has(.dxbl-logon-window-template) {
    background-color: #ffffff !important;
}

/* .dxbl-app also carries the blue background — neutralize it on the login page */
body:has(#logon-template-component) .dxbl-app,
body:has(.dxbl-logon-window-template) .dxbl-app,
body:has(#logon-template-component) .dxbl-app-content,
body:has(.dxbl-logon-window-template) .dxbl-app-content,
body:has(#logon-template-component) .app,
body:has(.dxbl-logon-window-template) .app,
body:has(#logon-template-component) .main-ribbon-template,
body:has(.dxbl-logon-window-template) .main-ribbon-template {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* .dxbl-fl is globally set to lightblue — override to white on the login page
   so Username/Password label backgrounds are white, not blue */
body:has(#logon-template-component) .dxbl-fl,
body:has(.dxbl-logon-window-template) .dxbl-fl,
body:has(#logon-template-component) .dxbl-fl-ctrl,
body:has(.dxbl-logon-window-template) .dxbl-fl-ctrl,
body:has(#logon-template-component) .dxbl-fl-label,
body:has(.dxbl-logon-window-template) .dxbl-fl-label {
    background-color: #ffffff !important;
}

/* --- Login page background: dots pattern on left edge, white background --- */
.dxbl-logon-window-template,
.smarticle-login-wrapper,
#logon-template-component {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMTUnIHdpZHRoPScxMCc+PGNpcmNsZSBjeD0nNScgY3k9JzUnIHI9JzUnIGZpbGw9JyNiMmU1ZmEnIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiAvPjwvc3ZnPg==") !important;
    background-repeat: repeat-y !important;
    background-position: 86px 5px !important;
    background-color: #ffffff !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow: hidden !important;
}

    /* Hide the default XAF header bar on the login page */
    .dxbl-logon-window-template .dxbl-navbar,
    .dxbl-logon-window-template header,
    .dxbl-logon-window-template .dxbl-app-header {
        display: none !important;
    }

/* --- Smarticle logo (top-left) --- */
.smarticle-login-logo {
    background-image: url('/images/Logo.png');
    background-size: 338px;
    background-repeat: no-repeat;
    position: absolute;
    top: 63px;
    left: 120px;
    width: 338px;
    height: 58px;
    z-index: 10;
    pointer-events: none;
}

/* --- Decorative circles (bottom-right, CSS-drawn) --- */
.smarticle-login-circles {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 500px;
    height: 500px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

    .smarticle-login-circles .circle-big {
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background-color: #bde5f5;
        position: absolute;
        right: -59px;
        bottom: -59px;
    }

    .smarticle-login-circles .circle-middle {
        width: 300px;
        height: 300px;
        background-color: #e3edc2;
        border: 6px solid white;
        border-radius: 50%;
        position: absolute;
        right: 38px;
        bottom: 42px;
    }

    .smarticle-login-circles .circle-small {
        width: 130px;
        height: 130px;
        background-color: #ffffff;
        border-radius: 50%;
        position: absolute;
        right: 123px;
        bottom: 127px;
    }

/* --- Login form card ---
   NOTE: width/margin positioning handled by JS (logon-main-container)
   Do NOT set position:absolute here — breaks JS margin-based layout */
#logon-template-component .logon-main.card {
    background-color: #ffffff !important;
    --bs-card-bg: #ffffff;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
    border-radius: 4px !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
}

/* Ensure all inner containers expand to fit OAuth buttons */
#logon-template-component .card-body,
#logon-template-component .logon-viewsite,
#logon-template-component .logon-bottom-toolbar,
#logon-template-component .dxbl-logon-window-body,
#logon-template-component .dxbl-card-body {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Hide the DevExpress toolbar — JS removes it, this is a safety fallback */
#logon-template-component .logon-bottom-toolbar {
    display: none !important;
}

/* Remove any centering from the XAF login form layout */
.dxbl-logon-window-template .dxbl-logon-window-body,
.dxbl-logon-window-template .dxbl-card-body {
    display: block !important;
    padding: 0 !important;
}

/* Welcome text / icon area */
.smarticle-login-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #787a80;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 0.95em;
}

    .smarticle-login-welcome .welcome-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .smarticle-login-welcome .welcome-icon svg {
            width: 20px;
            height: 20px;
            fill: #787a80;
        }

/* Form labels: uppercase like original */
#logon-template-component label,
#logon-template-component .dxbl-fl-label,
#logon-template-component .dxbl-fl-cpt-text {
    font-size: 0.9em !important;
    color: #787a80 !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Hide the XAF static instruction text (JS already injects the welcome message) */
#logon-template-component .xaf-static-text {
    display: none !important;
}

/* Form inputs: full-width within card */
#logon-template-component input[type="text"],
#logon-template-component input[type="password"],
#logon-template-component .dxbl-text-edit input,
#logon-template-component .dxbl-input-group input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 10px !important;
    margin: 6px 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 1em !important;
    color: #555 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
}

/* DevExpress input wrapper: full-width, no border (input itself has it) */
#logon-template-component .dxbl-text-edit,
#logon-template-component .dxbl-input-group {
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Anmelden button: blue, auto width */
#logon-template-component .dxbl-btn-primary,
#logon-template-component button[type="submit"] {
    background-color: #4a90d9 !important;
    background: #4a90d9 !important;
    border-color: #4a90d9 !important;
    color: #fff !important;
    width: auto !important;
    min-width: 110px !important;
    border-radius: 3px !important;
    font-size: 0.95em !important;
    padding: 8px 28px !important;
    float: none !important;
    display: inline-block !important;
}

    #logon-template-component .dxbl-btn-primary:hover,
    #logon-template-component button[type="submit"]:hover {
        background-color: #3a7bc8 !important;
        background: #3a7bc8 !important;
    }

/* Toolbar: flex right-align, reset DX Blazor toolbar background/stretch */
#logon-template-component .logon-toolbar {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-top: 10px !important;
    margin-bottom: 2px !important;
    overflow: visible !important;
    background: white !important;
    background-color: white !important;
}

    /* Reset DX Blazor toolbar internal wrappers that add blue bg and stretch items */
    #logon-template-component .logon-toolbar .dxbl-toolbar,
    #logon-template-component .logon-toolbar [class*="dxbl-toolbar"],
    #logon-template-component .logon-toolbar .dx-toolbar {
        background: white !important;
        background-color: white !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    #logon-template-component .logon-toolbar .dxbl-toolbar-item,
    #logon-template-component .logon-toolbar .dxbl-toolbar-group,
    #logon-template-component .logon-toolbar .dxbl-toolbar-items-wrapper {
        background: white !important;
        background-color: white !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

/* --- "oder bestehende benutzen" separator --- */
.smarticle-login-separator {
    display: flex;
    align-items: center;
    margin: 24px 0 16px 0;
    color: #787a80;
    font-size: 0.85em;
    font-family: Arial, Helvetica, sans-serif;
    clear: both;
}

    .smarticle-login-separator span {
        white-space: nowrap;
        margin-right: 8px;
    }

    .smarticle-login-separator hr {
        flex: 1;
        border: none;
        border-top: 1px solid #ccc;
        margin: 0;
    }

/* --- OAuth provider buttons row --- */
.smarticle-oauth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.smarticle-oauth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

    .smarticle-oauth-btn:hover {
        background-color: #f5f5f5;
        border-color: #bbb;
        text-decoration: none;
        color: #333;
    }

    .smarticle-oauth-btn img,
    .smarticle-oauth-btn svg {
        width: 18px;
        height: 18px;
    }

.smarticle-oauth-btn-google {
    border-color: #4285f4;
}

    .smarticle-oauth-btn-google:hover {
        background-color: #e8f0fe;
    }

.smarticle-oauth-btn-microsoft {
    background-color: #2f2f2f;
    color: #fff;
    border-color: #2f2f2f;
}

    .smarticle-oauth-btn-microsoft:hover {
        background-color: #444;
        color: #fff;
    }

.smarticle-oauth-btn-swissrx {
    border-color: #e74c3c;
}

    .smarticle-oauth-btn-swissrx:hover {
        background-color: #fde8e6;
    }

.smarticle-oauth-btn-bms {
    border-color: #666;
}

    .smarticle-oauth-btn-bms:hover {
        background-color: #f0f0f0;
    }

.smarticle-oauth-btn-jnj {
    border-color: #0070c0;
}

    .smarticle-oauth-btn-jnj:hover {
        background-color: #e0f0ff;
    }

/* =============================================================================
   18. APPLY TO SIMILAR POSITIONS (from main7.css)
   ============================================================================= */
.ApplyToSimilarPositions {
    margin-bottom: 0;
    display: inline-block;
    border: 1px solid darkgreen;
    padding: 0;
    white-space: nowrap;
    background-color: #f0fff0;
    position: relative;
    top: 80px;
    z-index: 5000;
}

    .ApplyToSimilarPositions > table {
        margin: 5px 10px;
    }

        .ApplyToSimilarPositions > table > tbody > tr > .Caption {
            display: none;
        }

/* =============================================================================
   21. HOVER STATES — color #e0edf8
   Aplica en: ítems de navegación, filas de grilla, botones del toolbar,
   ítems de menú, accordion groups.
   ============================================================================= */
.dxbl-toolbar .dxbl-btn:not(.dxbl-btn-primary):hover,
.xaf-view-toolbar .dxbl-btn:hover,
.xaf-edit-toolbar .dxbl-btn:hover {
    background-color: #e0edf8 !important;
    border-color: #b8d0e8 !important;
}

.dxbl-menu-item:hover,
.dxbl-popup-menu .dxbl-menu-item:hover,
.dxbl-context-menu .dxbl-menu-item:hover,
.dxbl-dropdown-item:hover {
    background-color: #e0edf8 !important;
}

.dxbl-listbox-item:hover,
.dxbl-combo-item:hover,
.dxbl-list-item:hover {
    background-color: #e0edf8 !important;
}

/* =============================================================================
   ACTION PROGRESS SPINNER (from main7.css)
   ============================================================================= */
.ActionProgress {
    padding-left: 42px !important;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: 3px 3px;
}

.btn-secondary.btn-hamburger:focus {
    background-color: transparent !important;
}
/* =============================================================================
   BOTONES DX — estilo moderno minimalista
   .dxbl-btn cubre TODOS los botones DevExpress Blazor.
   Se usan las CSS vars propias del sistema DX para máxima compatibilidad.
   ============================================================================= */
.dxbl-btn {
    --dxbl-btn-border-radius: 0.4rem !important;
    --dxbl-btn-hover-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.dxbl-btn-standalone:not(:disabled):not(.dxbl-disabled):hover {
    transform: translateY(-1px);
}

.dxbl-btn-standalone:not(:disabled):not(.dxbl-disabled):active {
    transform: translateY(0);
    --dxbl-btn-active-box-shadow: none;
}

.xaf-action-fulltextsearch {
    border-radius: 0.4rem !important;
}

/* ===============================
   7. GRID (ESTILO PRO LIMPIO)
   =============================== */

.dxbl-grid {
    border-radius: 10px;
    overflow: hidden;
}

    /* tabla */
    .dxbl-grid table {
        width: 100%;
        background: white;
    }

    /* ===============================
   10. GRID ROW UX (igual al otro proyecto)
   =============================== */

    .dxbl-grid tbody tr {
        transition: background 0.12s ease;
    }

        .dxbl-grid tbody tr:hover {
            background-color: #e0edf8;
        }

/* =============================================================================
   DETAIL VIEW — LAYOUT FIXES
   Problema: grupos side-by-side se estiran al más alto (gaps vacíos),
   caption-width de 430px desborda labels en columnas estrechas.
   ============================================================================= */

/* Grupos en la misma fila arrancan del top sin estirarse */
/*.detail-view-content .dxbl-fl .dxbl-row {
    align-items: flex-start !important;
}*/

/* Espaciado compacto entre grupos e items */
/*.detail-view-content .dxbl-fl {
    --dxbl-fl-group-spacing-y: 0.6rem;
    --dxbl-fl-item-spacing-y: 0.4rem;
    --dxbl-fl-item-spacing-x: 0.75rem;
}*/

/* Todos los items en vertical (label arriba, ctrl abajo) */
/*.detail-view-content .dxbl-fl .dxbl-fl-item-horizontal {
    flex-direction: column !important;
    align-items: flex-start !important;
}*/

/*.detail-view-content .dxbl-fl .dxbl-fl-item-horizontal .dxbl-fl-cpt {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    flex: none !important;
    padding-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}*/

/*.detail-view-content .dxbl-fl .dxbl-fl-item-horizontal .dxbl-fl-ctrl {
    width: 100% !important;
    flex: none !important;
}*/

/* Estilo uniforme de labels en el detail view */
.detail-view-content .dxbl-fl .dxbl-fl-cpt {
    font-size: 0.77rem !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
}

.nested-frame {
    width: 100% !important;
}
/*Hover tabs nested listview*/
:not(.dxbl-dragging).dxbl-tabs > .dxbl-tabs-tablist > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-active):not(.dxbl-disabled):not(:disabled):not(.dxbl-disabled):not(:disabled):hover, :not(.dxbl-dragging).dxbl-tabs > .dxbl-tabs-tablist > .dxbl-tabs-container > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-active):not(.dxbl-disabled):not(:disabled):not(.dxbl-disabled):not(:disabled):hover, :not(.dxbl-dragging).dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-active):not(.dxbl-disabled):not(:disabled):not(.dxbl-disabled):not(:disabled):hover, :not(.dxbl-dragging).dxbl-tabs > .dxbl-tabs-tablist > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-tabs-container > ul > li > .dxbl-tabs-item:not(.dxbl-tabs-tmpl):not(.dxbl-active):not(.dxbl-disabled):not(:disabled):not(.dxbl-disabled):not(:disabled):hover {
    border-color: var(--dxbl-tabs-tab-border-color);
    position: relative;
    background-color: var(--dxbl-tabs-tab-hover-bg, unset);
    color: var(--dxbl-tabs-tab-hover-color);
    border-radius: .625rem .625rem 0 0;
}

.mail-editor-root {
    display: flex;
    gap: 16px;
}

.mail-editor-list-panel [style*="cursor:pointer"] {
    border-radius: 6px;
    margin: 4px 8px;
    transition: all 0.2s ease;
}

    .mail-editor-list-panel [style*="cursor:pointer"]:hover {
        background: #f0f7ff;
    }

.mail-editor-list-panel button {
    background: #0ea5e9 !important;
    border-radius: 6px;
}

.mail-editor-root {
    height: 100%;
}

.mail-editor-view-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dxbl-fl .dxbl-group-header, .detail-view-content .dxbl-group-header {
    background-color: #f0f4f8 !important;
    border-bottom: 1px solid #d0dde8 !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.79rem !important;
    font-weight: 700 !important;
    color: #1b2a38 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 10px 10px 0 0 !important;
}

/*.dxbl-fl .dxbl-row > dxbl-form-layout-group:not(:first-child)
:has(dxbl-form-layout-item)::before {
    background-color: transparent !important;
}*/

/*.dxbl-fl dxbl-form-layout-group:has(.mail-editor-root)::before {
    background-color: transparent !important;
}*/

.dxbl-tabs.dxbl-tabs-top > .dxbl-tabs-tablist {
    border-bottom: var(--dxbl-tabs-separator-border-width) var(--dxbl-tabs-separator-border-style) var(--dxbl-tabs-separator-border-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding-bottom: 0;
}

dxbl-form-layout-tab {
    background-color: #ffffff;
    border-radius: 0 0 .625rem .625rem;
}

.nested-frame {
    width: 100% !important;
}
/*.dxbl-fl dxbl-form-layout-group:has(> .dxbl-row > dxbl-form-layout-group)::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
    background-color: #ffffff !important;
    border-radius: 10px;
    z-index: -1;
}*/

/*.dxbl-fl dxbl-form-layout-group::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
    background-color: #ffffff !important;
    border-radius: 10px;
    z-index: -1;
}*/


/* =============================================================================
   ENUM TAGBOX (provider icons)
   ============================================================================= */
.enum-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.enum-tag-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 4px;
}

.enum-tag-icon {
    height: 20px;
    width: auto;
    max-width: 80px;
    flex-shrink: 0;
}

.enum-tag-icon--small {
    height: 16px;
    width: auto;
    max-width: 64px;
}

.enum-tag-remove {
    padding: 0 !important;
    min-width: unset !important;
    line-height: 1 !important;
}

/*.dxbl-fl dxbl-form-layout-group:has(dxbl-form-layout-group dxbl-form-layout-item):not(dxbl-form-layout-group dxbl-form-layout-group)::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
    background-color: #ffffff;
    border-radius: 10px;
    z-index: -1;
}*/
/*.dxbl-fl .dxbl-row > dxbl-form-layout-group:not(:first-child) :has(dxbl-form-layout-item)::before {
    background-color: transparent !important;
}
.dxbl-fl > .dxbl-row > dxbl-form-layout-group.dxbl-fl-group.dxbl-col::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
    background-color: #ffffff !important;
    border-radius: 10px;
    z-index: -1;
}*/
/*.dxbl-fl > .dxbl-row > dxbl-form-layout-group.dxbl-fl-group.dxbl-col::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
    background-color: #ffffff !important;
    border-radius: 10px;
    z-index: -1;
}*/
/*.dxbl-fl .dxbl-row > dxbl-form-layout-group.dxbl-fl-group:has(dxbl-form-layout-group dxbl-form-layout-item):not(dxbl-form-layout-group dxbl-form-layout-group)::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
    background-color: #ffffff !important;
    border-radius: 10px;
    z-index: -1;
}*/

.CardGroupContent {
    position: relative;
    isolation: isolate;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

    .CardGroupContent::before {
        content: "";
        position: absolute;
        inset: 0;
        margin-inline: calc(var(--dxbl-row-item-spacing-x) * .5);
        background-color: #ffffff;
        border-radius: 10px;
        z-index: -1;
    }
.logon-main-container dxbl-form-layout-item .dxbl-text-edit{
    border-radius:10px;
}
/*.dxbl-fl dxbl-form-layout-group:not(:has(dxbl-form-layout-group)):has(dxbl-form-layout-item) {
    position: relative;
    isolation: isolate;
    padding: 0.5rem;
     margin-bottom: 0; 
}*/
/* =============================================================================
   COLOR PICKER EDITOR  (Split Button + DxColorPalette pattern — DevExpress docs)
   ============================================================================= */
.cp-color-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.cp-palette-borderless {
    border-width: 0;
}

/* celda de ListView — swatch sin picker */
.color-cell-swatch {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

#logon-template-component input[type="text"], #logon-template-component input[type="password"], #logon-template-component .dxbl-text-edit input, #logon-template-component .dxbl-input-group input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 6px 10px !important;
    margin: 6px 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
    font-size: 1em !important;
    color: #555 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
}

/* =============================================================================
   RICH TEXT EDITOR
   ============================================================================= */
.rich-editor-container {
    width: 100%;
    min-height: 500px;
    height: 600px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    display: block;
}

.rich-editor-container .dxre-editor {
    height: 100%;
}
.user-info-container {
    display: flex;
    align-items: center;
    flex-direction: column !important;
    width: 100%;
    padding: var(--dxds-spacing-100, 0.625rem);
}

/* ── Custom Account Component ──────────────────────────────────────────────── */
.smarticle-account-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.smarticle-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    color: #333;
    transition: background 0.15s;
}

.smarticle-account-btn:hover {
    background: rgba(0, 174, 239, 0.08) !important;
}

.smarticle-account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00aeef;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.smarticle-account-avatar--lg {
    width: 52px;
    height: 52px;
    font-size: 20px;
    margin: 0 auto 10px;
}

.smarticle-account-name {
    font-size: 13px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

/*.smarticle-account-dropdown {
    position: fixed;
    top: 56px;
    right: 8px;
    min-width: 230px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    overflow: hidden;
    color: #333 !important;
}*/

.smarticle-account-dropdown-header {
    padding: 20px 16px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.smarticle-account-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e !important;
    margin-top: 2px;
}

.smarticle-account-dropdown-username {
    font-size: 12px;
    color: #888 !important;
    margin-top: 2px;
}

.smarticle-account-dropdown-actions {
    padding: 6px 0;
}

.smarticle-account-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    font-size: 13px;
    color: #333 !important;
    text-align: left;
    transition: background 0.12s, color 0.12s;
}
.smarticle-account-dropdown {
    position: fixed;
    top: 56px;
    right: 8px;
    min-width: 230px;
    background: #1b2a38 !important;
    /* border: 1px solid #e5e7eb; */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    overflow: hidden;
    color: #333 !important;
}
.smarticle-account-action-btn:hover {
    background: #f0f9ff !important;
    color: #00aeef;
}

.smarticle-account-action-btn:hover {
    background: #3a7bb3 !important;
    color: #00aeef;
}

.smarticle-account-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: transparent;
}

/* ── StatusLabelEditor ───────────────────────────────────────────── */
.smarticle-status-label {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    line-height: 1.5;
    font-size: 0.9rem;
}

.smarticle-status-label__body {
    flex: 1;
}

.smarticle-status-label .StatusLabel {
    display: block;
}

.smarticle-status-label__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--dxbl-accent-color-70, #00aeef);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.smarticle-status-label--clickable:hover .smarticle-status-label__icon {
    opacity: 1;
    transform: scale(1.12);
}

.smarticle-status-label--clickable {
    cursor: pointer;
    user-select: none;
    transition: filter 0.15s ease;
}

.smarticle-status-label--clickable:hover {
    filter: brightness(0.94);
}

.smarticle-status-confirm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    font-size: 0.85rem;
}

.smarticle-status-confirm__text {
    font-weight: 500;
    color: #333;
}

.smarticle-status-confirm__buttons {
    display: flex;
    gap: 6px;
}

.smarticle-status-confirm__btn {
    padding: 4px 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: 0.82rem;
    background: #fff;
}

.smarticle-status-confirm__btn--yes {
    background: #e2efda;
    border-color: #aacf96;
}

.smarticle-status-confirm__btn--no {
    background: #f5f5f5;
}

.StatusLabelCard {
    width: 33.3333333333% !important;
}

/* ── RequestDecisionAssistant – SummaryTable cards ─────────────────────── */

table.SummaryTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* Round the four corner cells */
table.SummaryTable tr:first-child td:first-child,
table.SummaryTable tr:first-child th:first-child { border-top-left-radius:  8px; }
table.SummaryTable tr:first-child td:last-child,
table.SummaryTable tr:first-child th:last-child  { border-top-right-radius: 8px; }
table.SummaryTable tr:last-child  td:first-child  { border-bottom-left-radius:  8px; }
table.SummaryTable tr:last-child  td:last-child   { border-bottom-right-radius: 8px; }

/* Section header row (th with colspan) */
table.SummaryTable th[colspan] {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fb 100%);
    color: #1a5276;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Label column (th without colspan) */
table.SummaryTable th:not([colspan]) {
    background: #f8fafb;
    color: #5d6d7e;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 14px;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
}

/* Value cells */
table.SummaryTable td {
    font-size: 0.82rem;
    color: #2c3e50;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
}

/* Remove bottom border on last data row */
table.SummaryTable tr:last-child th,
table.SummaryTable tr:last-child td {
    border-bottom: none;
}

/* ─── Floating Action Button (FAB) – Request_DetailView_Default ─── */
.smarticle-fab-host {
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.smarticle-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00aeef;
    color: #fff;
    border: none;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.50);
    font-size: 22px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.smarticle-fab:hover {
    background: #008ec3;
    box-shadow: 0 6px 18px rgba(0, 174, 239, 0.60);
    transform: translateY(-2px);
}

.smarticle-fab:active {
    background: #0071a0;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.40);
    transform: translateY(0);
}
