﻿.xaf-nav-link {
    text-decoration: none !important;
}


.dxbl-text-edit {
    border-bottom-color: var(--dxbl-text-edit-border-color);
}


.dxbl-theme-fluent .dxbl-group > .dxbl-group-header:has(> .dxbl-text) {
    color: var(--dx-color-primary);
    border-bottom: solid 1px var(--dx-color-border);
}


/* ---------------------------------------------------------------------------
   Appearance / model tooltips

   One element on document.body, created and positioned by the [data-tooltip]
   handler in js/custom.js. It lives outside the grid and the form on purpose:
   as a ::after on the cell it was clipped by DxGrid's scrolling body, and it
   fought the Detail View editors for stacking order. Neither applies here, so
   this needs no !important, no overflow override and no z-index games.

   Text comes from data-tooltip and the accent from data-tooltip-severity, both
   written by the tooltip controllers in Controllers/Common.
   --------------------------------------------------------------------------- */

.sped-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;

    /* Honour the "\n" that ModelTooltipFormatter.Combine puts between the appearance
       reason and the model tooltip, but still wrap long lines. */
    white-space: pre-line;
    width: max-content;
    max-width: 22rem;

    padding: 0.5rem 0.625rem;
    border-radius: 4px;
    border-left: 3px solid var(--sped-tooltip-accent, #9e9e9e);

    background-color: #262626;
    color: #f5f5f5;
    font-size: 0.8125rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);

    pointer-events: none;
}

/* Accent matches the highlight the user is hovering - see AppearanceColors. */
.sped-tooltip[data-severity="error"]    { --sped-tooltip-accent: #c62828; }
.sped-tooltip[data-severity="warning"]  { --sped-tooltip-accent: #f9a825; }
.sped-tooltip[data-severity="review"]   { --sped-tooltip-accent: #ef6c00; }
.sped-tooltip[data-severity="inactive"] { --sped-tooltip-accent: #9e9e9e; }
