.funcelv2-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.funcelv2-left-container {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    align-items: center;
    padding: 5px 2px;
}

.funcelv2-center-container {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    align-items: center;
    padding: 5px 2px;
}

.funcelv2-right-container {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 0px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 16px;
    scrollbar-width: none;
    padding: 5px 2px;
}

.funcelv2-right-container>* {
    flex: 0 0 auto;
}

.funcelv2-right-track {
    display: flex;
    align-items: center;
    gap: 3px;
    width: max-content;
    min-width: 100%;
    justify-content: flex-end;
}

.funcelv2-right-track>* {
    flex: 0 0 auto;
}

.funcelv2-container.funcelv2-container--right-only {
    justify-content: flex-end;
}

.funcelv2-container.funcelv2-container--right-only .funcelv2-left-container,
.funcelv2-container.funcelv2-container--right-only .funcelv2-center-container {
    display: none !important;
}

/* .funcelv2-container.funcelv2-container--right-only .funcelv2-right-container {
    flex: 1 1 100%;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-gutter: stable;
    padding: 3px 0px;
} */


.funcelv2-button {
    /* width: 30px; */
    /* height: 30px; */
    aspect-ratio: 1/1;
    border-radius: 50%;
    color: var(--fw-black-400);
    /* background: transparent; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    z-index: 10;
}

.funcelv2-button.active {
    color: var(--fw-static-white-000);
    background: var(--primary-250);
}

.funcelv2-button:hover {
    color: var(--fw-black-000);
    background: var(--fw-white-200);
}

.funcelv2-button-active {
    background: var(--fw-white-150);
}

.funcelv2-container .fa-light,
.funcelv2-container .far,
.funcelv2-container .fas {
    font-size: 1.15rem !important;
}



.funcelv2-title {
    display: flex;
    justify-content: start;
    align-items: center;
    font-family: 'Albert Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--fw-black-250);
    text-transform: uppercase;
    font-weight: bold;
    /* min-height: 50px; */
}


















.perms-media-selection-dropdown {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
}

.perms-media-selection-dropdown div {
    border: 1px solid #000;
    padding: 5px 10px;
    border-radius: 5px;
}













/* FUNCTION MENU STYLES */
/* ///////////////////////////////////////////////////////////////////////// */

.funcelv2-menu-container {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.funcelv2-menu-button {
    cursor: pointer;
    padding: 8px;
}

.funcelv2-menu-dropdown {
    background: var(--fw-white-000);
    color: var(--fw-black-300);
    border: 1px solid var(--fw-white-300);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow-y: auto;
    max-height: 300px;
    opacity: 0;
    transform: scale(0.5, 0.5);
    transition: transform 0.15s ease, opacity 0.0s ease;
    font-size: 0.80rem;
}


.funcelv2-menu-dropdown.open {
    opacity: 1;
    transform: scale(1, 1);
}

.funcelv2-menu-left {
    right: auto;
    left: 0;
}

.funcelv2-menu-item {
    color: var(--fw-black-400);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
    transform: translateY(-20px);
    opacity: 0;
}

.funcelv2-menu-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.funcelv2-menu-item:hover {
    background: var(--fw-white-100);
    color: var(--fw-black-000);
}











/* FUNCTION FILTERS ARRAY STYLES */
/* ///////////////////////////////////////////////////////////////////////// */
.funcfiltv2-function-filters-array {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.funcfiltv2-filter-container {
    flex: 1 1 0;
    min-width: 150px;
    max-width: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* height: 100%; */
}

.funcfiltv2-function-filters-array>.funcfiltv2-filter-container:only-child {
    flex: 1 1 100%;
    min-width: 100% !important;
    max-width: none !important;
}

.funcfiltv2-filter-container:last-child .funcfiltv2-filter-button {
    border-right: none;
}

.funcfiltv2-filter-button {
    position: relative;
    transition: all 0.17s ease;
    background-color: var(--fw-white-050);
    border-top: 1px solid var(--fw-white-250);
    border-right: 1px solid var(--fw-white-250);
    border-bottom: 1px solid var(--fw-white-250);
    border-left: 0px solid var(--fw-white-250);
    text-align: left;
    width: 100%;
    padding: 8px 10px;
    flex: 1;
    min-width: 0;
}

.funcfiltv2-filter-button>div {
    min-width: 0;
    padding-right: 1rem;
}

.funcfiltv2-filter-button:hover,
.funcfiltv2-filter-button:active {
    background-color: var(--fw-white-100);
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.funcfiltv2-filter-header {
    font-size: 0.65rem;
    color: var(--fw-black-450);
    opacity: 1;
    min-height: 1.0rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.funcfiltv2-filter-title {
    font-weight: bold;
    text-align: left;
    font-size: 0.8rem;
    font-weight: bold;
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fw-black-300);
}

.funcfiltv2-filter-subtitle {
    text-align: left;
    font-size: 0.75rem;
    color: var(--fw-black-450);
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.funcfiltv2-filter-arrow {
    position: absolute;
    color: var(--fw-black-450);
    font-size: 0.7rem;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

/* FUNCTION ACTION BUTTONS ARRAY STYLES */
/* ///////////////////////////////////////////////////////////////////////// */

.funcbtnv2-action-buttons-array {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    position: relative;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px;
}

.funcbtnv2-action-buttons-array>.UIBTN {
    flex: 1 1 0;
    min-width: 160px;
    max-width: none;
}

.funcbtnv2-action-buttons-array>.UIBTN:only-child {
    flex: 1 1 100%;
    min-width: 100% !important;
    max-width: none !important;
}

@media (max-width: 900px) {
    .funcfiltv2-function-filters-array {
        justify-content: flex-start;
    }

    .funcfiltv2-function-filters-array>.funcfiltv2-filter-container:only-child {
        flex: 1 1 100%;
        min-width: 100% !important;
        max-width: none !important;
    }

    .funcfiltv2-filter-container {
        flex: 1 1 0;
        min-width: 150px;
        max-width: none;
    }

    .funcbtnv2-action-buttons-array>.UIBTN {
        flex: 1 1 0;
        min-width: 160px;
        max-width: none;
    }

    .funcbtnv2-action-buttons-array>.UIBTN:only-child {
        flex: 1 1 100%;
        min-width: 100% !important;
        max-width: none !important;
    }
}





/* //////////////////////////////////////////////////// */
/* Active State Tracking Styles */

.funcelv2-menu-item.active {
    background-color: rgba(var(--primary-300-rgb), 0.1);
    color: var(--primary-300);
    font-weight: 600;
    border-left: 3px solid var(--primary-300);
    padding-left: calc(12px - 3px);
}

.funcelv2-menu-item.active i {
    color: var(--primary-300);
}

.funcelv2-menu-item.active:hover {
    background-color: rgba(var(--primary-300-rgb), 0.15);
}

/* Media Type Filter Button Styles */

.media-type-filter-menu .funcelv2-button {
    transition: all 0.2s ease;
}

.media-type-filter-menu .funcelv2-button.has-active-filter {
    border-bottom: 2px solid var(--primary-300);
    opacity: 0.8;
}

.media-type-filter-menu .funcelv2-button.has-active-filter:hover {
    opacity: 1;
}