/* Display Preferences Popup
 * A small reusable modal of on/off toggles.
 * Stacks above other modals with a higher z-index.
 */

.display-prefs-popup {
    z-index: 1080;
}

/* Backdrop sibling for this modal needs to sit above standard backdrops */
.display-prefs-backdrop {
    z-index: 1079 !important;
}

.display-prefs-popup .modal-content {
    background-color: var(--mv-bg-card, #fff);
    color: var(--mv-text-primary, #212529);
    border: 1px solid var(--mv-border-color, rgba(0, 0, 0, 0.175));
}

.display-prefs-popup .modal-body {
    padding: 0.75rem 1rem;
}

.display-prefs-popup .dpp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mv-border-color, rgba(0, 0, 0, 0.075));
}

.display-prefs-popup .dpp-row:last-child {
    border-bottom: none;
}

.display-prefs-popup .dpp-label {
    font-size: 0.9rem;
    color: var(--mv-text-primary, #212529);
    margin-right: 1rem;
    flex: 1;
}

.display-prefs-popup .form-check-input {
    cursor: pointer;
}

/* Section "hide-eye" icons that summon this popup */
.dpp-hide-icon {
    background: none;
    border: none;
    padding: 0 0.25rem;
    color: var(--mv-text-secondary, #6c757d);
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.dpp-hide-icon:hover {
    opacity: 1;
    color: var(--bs-danger, #dc3545);
}
.dpp-hide-icon i {
    font-size: 0.95rem;
}

/* Gear button used in modal footers to summon this popup */
.dpp-gear-btn {
    color: var(--mv-text-secondary, #6c757d);
}
.dpp-gear-btn:hover {
    color: var(--mv-text-primary, #212529);
}

/* Force-hide a section regardless of any inline display rules.
 * Used when a user has hidden a section via the gear popup but other code
 * tries to show it dynamically. */
.dpp-force-hidden {
    display: none !important;
}
