/* Generic class to hide elements on view */
.content-wrapper.view-mode .hidden-on-view {
    display: none;
}

/* Generic class to hide elements on edit */
.content-wrapper.edit-mode .hidden-on-edit {
    display: none;
}

/** Special Actions */
.content-wrapper.view-mode :is(.fa.fa-plus-circle, .cancelbtn, .updatebtn, .savebtn) {
    display: none;
}

.content-wrapper.edit-mode :is(.editbtn) {
    display: none;
}

/* Form Input Actions */
.content-wrapper.view-mode section.content :is(input:not([type="hidden"]):not([type="radio"]):not([id*="toolbar-"]),
    textarea) {
    border-bottom-color: transparent;
    pointer-events: none;
}

.content-wrapper.view-mode section.content span.help-block {
    display: none;
}

/* Form Select-Picker Actions */

.content-wrapper.view-mode section.content :is(.dropdown-toggle) {
    border-bottom-color: transparent;
    pointer-events: none;
}

.content-wrapper.view-mode section.content :is(.dropdown-toggle) .bs-caret {
    visibility: hidden;
}

/* Form Select-2 Actions */
.content-wrapper.view-mode section.content select.select2-hidden-accessible+.select2-container {
    pointer-events: none;
    touch-action: none;
}

.content-wrapper.view-mode section.content select.select2-hidden-accessible+.select2-container .select2-selection {
    box-shadow: none;
    border-bottom-color: transparent;
}

.content-wrapper.view-mode section.content :is(select.select2-hidden-accessible + .select2-container .select2-selection__arrow,
    select.select2-hidden-accessible + .select2-container .select2-selection__clear) {
    display: none;
}

/* Disable label pointer events */
.content-wrapper.view-mode section.content label {
    pointer-events: none;
}