
/* flexitePages Bootstrap extensions
    -- should only hold extensions to Bootstrap library, no styling.
*/

/* generic no wrap class */
.flv-no-wrap {
    white-space: nowrap;
}

.flv-bg-none {
    background: none !important;
}

.flv-r-0 {
    border-radius: 0 !important;
}
.flv-r-1 {
    border-radius: var(--bs-border-radius) !important;
}

.flv-break-space {
    white-space: break-spaces;
}

.flv-form-col {
    width: 10rem !important;
}
.flv-form-col-1 {
    width: 6rem !important;
}

.flv-list-no-style,
.flv-list-no-style li {
    list-style: none;
}

/* fontsize smaller than fs-7 */
.flv-fs-7 {
    font-size: 0.85rem !important;
}

/* apply page-link padding without pagination styling and behavior */
.flv-py-pl {
    --bs-pagination-padding-y: 0.375rem;
    padding-top: var(--bs-pagination-padding-y);
    padding-bottom: var(--bs-pagination-padding-y);
}

.flv-list-none {
    list-style: none;
}

/* simple toggle for expanded/collapsed icons */
[aria-expanded='false'] .if-expanded,
[aria-expanded='true'] .if-collapsed,
[aria-selected='false'] .if-selected,
[aria-selected='true'] .if-unselected {
    display: none !important;
}

input:not(:checked) + label .if-checked,
input:checked + label .if-unchecked {
    display: none;
}

/* allow tab button to appear above tab content */
.nav-item.tab-active {
    z-index: 1;
}

.btn-link:hover span {
    text-decoration: underline;
}

button.pe-auto:disabled {
    cursor: not-allowed;
}

.alert-info .bi,
.alert-danger .bi,
.alert-warning .bi {
    margin-top: auto;
    margin-bottom: auto;
}

.flv-p-2-5 {
    padding: 0.7rem !important;
}
.flv-px-2-5 {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
}
.flv-py-2-5 {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}
.flv-ps-2-5 {
    padding-left: 0.7rem !important;
}
.flv-pe-2-5 {
    padding-right: 0.7rem !important;
}
.flv-pt-2-5 {
    padding-top: 0.7rem !important;
}
.flv-pb-2-5 {
    padding-bottom: 0.7rem !important;
}

.flv-m-2-5 {
    margin: 0.7rem !important;
}
.flv-mx-2-5 {
    margin-left: 0.7rem !important;
    margin-right: 0.7rem !important;
}
.flv-my-2-5 {
    margin-top: 0.7rem !important;
    margin-bottom: 0.7rem !important;
}
.flv-ms-2-5 {
    margin-left: 0.7rem !important;
}
.flv-me-2-5 {
    margin-right: 0.7rem !important;
}
.flv-mt-2-5 {
    margin-top: 0.7rem !important;
}
.flv-mb-2-5 {
    margin-bottom: 0.7rem !important;
}

/* flv-mx-2-5 but negative */
.flv-mx--2-5 {
    margin-left: -0.7rem !important;
    margin-right: -0.7rem !important;
}
.flv-mx--3 {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
}

.flv-py-btn {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.flv-my-btn {
    margin-top: 0.375rem !important;
    margin-bottom: 0.375rem !important;
}

.table-transparent tr > * {
    background: none !important;
}

@media (max-width: 576px) {
    .btn.flv-4-col {
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
    }
}

@media (max-width: 992px) {
    .flv-h-auto-2-lg {
        height: auto !important;
    }
}
/* Bootstrap sm min width */
@media (min-width: 576px) {
    .flv-fs-sm-6 {
        font-size: 1rem !important;
    }
    .flv-w-sm-auto,
    .w-100.flv-w-sm-auto {
        width: auto !important;
    }

    .flv-h-sm-100 {
        height: 100% !important;
    }
    .flv-sm-rounded {
        border-radius: var(--bs-border-radius)!important;
    }
}
/* Bootstrap md min width */
@media (min-width: 768px) {
    .pagination {
        margin: 0;
    }
    .pagination .flex-fill {
        flex: 0 !important;
    }
    .flv-rounded-md-bottom, .flv-rounded-md-bottom-left {
        border-bottom-left-radius: var(--bs-border-radius);
    }
    .flv-rounded-md-bottom, .flv-rounded-md-bottom-right {
        border-bottom-right-radius: var(--bs-border-radius);
    }
    .flv-order-md-1 {
        order: 1 !important;
    }
    .flv-order-md-2 {
        order: 3 !important;
    }
    .flv-order-md-3 {
        order: 3 !important;
    }
    .flv-w-md-auto,
    .w-100.flv-w-md-auto {
        width: auto !important;
    }

    .flv-h-md-100 {
        height: 100% !important;
    }
    .flv-md-rounded {
        border-radius: var(--bs-border-radius)!important;
    }
}
/* Bootstrap lg min width */
@media (min-width: 992px) {
    .flv-rounded-lg-bottom, .flv-rounded-lg-bottom-left {
        border-bottom-left-radius: var(--bs-border-radius);
    }
    .flv-rounded-lg-bottom, .flv-rounded-lg-bottom-right {
        border-bottom-right-radius: var(--bs-border-radius);
    }
    .flv-order-lg-1 {
        order: 1 !important;
    }
    .flv-order-lg-2 {
        order: 3 !important;
    }
    .flv-order-lg-3 {
        order: 3 !important;
    }
    .flv-w-lg-auto,
    .w-100.flv-w-lg-auto {
        width: auto !important;
    }

    .flv-w-lg-100 {
        width: 100% !important;
    }

    .flv-h-lg-100 {
        height: 100% !important;
    }

    .flv-dock-lg-left-side {
        left: 0.7rem;
        top: 0.7rem;
    }
    .flv-dock-lg-right-side {
        right: 0.7rem;
        top: 0.7rem;
    }
    .flv-lg-rounded {
        border-radius: var(--bs-border-radius)!important;
    }

    .flv-btn-group-lg .btn:first-of-type {
        border-top-left-radius: var(--bs-border-radius);
        border-bottom-left-radius: var(--bs-border-radius);
    }
    .flv-btn-group-lg .btn:last-of-type {
        border-top-right-radius: var(--bs-border-radius);
        border-bottom-right-radius: var(--bs-border-radius);
    }
}

/* Bootstrap xl min width */
@media (min-width: 1200px) {
    .flv-xl-rounded {
        border-radius: var(--bs-border-radius)!important;
    }
    .w-xl-20 {
        width: 20% !important;
    }
}
