/* Contextual Help System Styles */

.help-icon {
    position: absolute !important;
    top: 0;
    right: 0;
    color: #fff !important;
    background: #666;
    border-radius: 50%;
    cursor: help;
    font-size: 14px !important;
    width: 16px;
    height: 16px;
    line-height: 16px !important;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.help-icon:hover,
.help-icon:focus {
    opacity: 1;
    background: #333;
}

.help-icon:focus {
    outline: none;
}

/* :hover and :focus above share one rule, and the outline is removed - so a keyboard user had no
   cue at all on an element that is tabbable (<i tabindex="0" role="button">). WCAG 2.4.7. */
.help-icon:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

/* Tooltip styling */
.dx-tooltip-wrapper .dx-overlay-content {
    max-width: 400px;
}

.dx-tooltip-wrapper .dx-popup-content {
    overflow: visible !important;
    white-space: normal;
}

/* Checkboxes: position icon outside so it doesn't cover the control */
.dx-checkbox .help-icon {
    right: -10px;
    top: -10px;
}

/* Global toggle: hide help icons */
body.help-icons-hidden .help-icon {
    display: none !important;
}

/* Print: hide help icons */
@@media print {
    .help-icon {
        display: none !important;
    }
}
