/* ===== FIELD HELP – bottone "i" accanto ai label ===== */
.field-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    padding: 0;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    background-color: #17a2b8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
}

.field-help-trigger:hover {
    background-color: #138496;
}

.field-help-trigger:focus {
    outline: 2px solid #17a2b8;
    outline-offset: 1px;
}

/* ===== FIELD HELP – popup ===== */
.field-help-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    min-width: 280px;
    max-width: 380px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    padding: 0;
    font-size: 13px;
}

.field-help-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #17a2b8;
    border-radius: 6px 6px 0 0;
}

.field-help-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.field-help-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.85;
}

.field-help-close:hover {
    opacity: 1;
}

.field-help-text {
    padding: 10px 12px;
    color: #495057;
    line-height: 1.5;
}

/* ===== FIELD HELP - hover su intestazioni griglia ===== */
.field-help-grid-header {
    cursor: help;
    text-decoration: underline dotted rgba(31, 79, 120, 0.5);
    text-underline-offset: 2px;
}

.field-help-grid-header:hover,
.field-help-grid-header:focus {
    text-decoration-color: #1f4f78;
}
