﻿.admin-menu-management {
    padding-top: 40px;
}

.admin-menu-management__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.admin-menu-management__head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .admin-menu-management__head-right .alert {
        margin-bottom: 0;
        padding: 5px 20px;
    }

.admin-menu-management .admin-modal {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: start;
    justify-content: center;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    color: #808080;
    padding-top: 10vh;
}

.admin-menu-management .admin-modal__inner {
    background-color: #fff;
    display: flex;
    min-width: 600px;
    min-height: 80px;
    flex-direction: column;
    justify-content: center;
    -webkit-box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.12);
    -moz-box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.12);
    box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.12);
    padding: 25px;
    position: relative;
}

.admin-menu-management .admin-modal__loader {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(3px);
    font-size: 50px;
}

.admin-menu-management .admin-modal__inner-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.admin-menu-management .admin-modal__inner .btn {
    margin-left: 5px;
}

.admin-menu-management .admin-modal__buttons {
    display: flex;
    align-items: center;
    justify-content: end;
}

.admin-menu-management .admin-modal__inner h4 {
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 15px;
    text-align: center;
    line-height: 1.5;
}

.admin-menu-management .input-group .input-group-text,
.admin-menu-management .input-group .form-select {
    padding: 10px 15px;
    font-size: 12px;
}

    .admin-menu-management .input-group .input-group-text.label {
        border-right: none;
    }

.admin-menu-management .input-group.is-invalid .input-group-text {
    border-color: #dc3545
}

.admin-menu-management .input-group .form-select,
.admin-menu-management .input-group .form-control {
    border-left: none;
}

    .admin-menu-management .input-group .selectize-input.focus,
    .admin-menu-management .input-group .form-select:focus,
    .admin-menu-management .input-group .form-control:focus {
        border-color: #ced4da;
    }

.admin-menu-management__filters {
    max-width: 390px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .admin-menu-management__filters .form-control {
        font-size: 12px;
    }

.admin-menu-management__filter-other {
    display: flex;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.admin-menu-management_menu-wrapper {
    display: flex;
    align-items: start;
    max-height: 660px;
    min-height: 600px;
    overflow-x: auto;
    position: relative;
}

.admin-menu-management_menu-items {
    min-width: 390px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-menu-management_menu-item {
    position: relative;
}

    .admin-menu-management_menu-item.hidden .admin-menu-management_menu-item-head:not(.btn-new) {
        opacity: 0.7;
    }

    .admin-menu-management_menu-item.hidden .admin-menu-management_menu-item-head span {
        opacity: 0.5;
    }

    .admin-menu-management_menu-item.hidden .admin-menu-management_menu-item-head.btn-new span {
        opacity: 1;
    }

.admin-menu-management_menu-item-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .admin-menu-management_menu-item-wrapper.sub {
        padding: 4px 0px 5px 15px;
        background-color: #fff;
        z-index: 1;
    }

        .admin-menu-management_menu-item-wrapper.sub.hide {
            display: none;
        }

        .admin-menu-management_menu-item-wrapper.sub .admin-menu-management_menu-items {
            min-width: 350px;
        }

        .admin-menu-management_menu-item-wrapper.sub .admin-menu-management_menu-item:before {
            content: "";
            position: absolute;
            top: calc(35px / 2);
            left: -8px;
            width: 8px;
            height: 1px;
            background-color: #ebebeb;
        }

        .admin-menu-management_menu-item-wrapper.sub .admin-menu-management_menu-item:after {
            content: "";
            position: absolute;
            top: -5px;
            left: -8px;
            width: 1px;
            height: calc(35px + 10px);
            background-color: #ebebeb;
        }

        .admin-menu-management_menu-item-wrapper.sub .admin-menu-management_menu-item.action:after {
            height: calc(35px / 2 + 5px);
        }

        .admin-menu-management_menu-item-wrapper.sub .admin-menu-management_menu-item.open:after,
        .admin-menu-management_menu-item-wrapper.sub .admin-menu-management_menu-item.open:not(:last-child):after {
            height: calc(100% + 5px);
        }

    .admin-menu-management_menu-item-wrapper.expanded {
        pointer-events: none;
    }

.admin-menu-management_menu-item-head {
    background-color: #ebebeb;
    display: flex;
    align-items: stretch;
    cursor: grab;
    height: 35px;
}

    .admin-menu-management_menu-item-head:hover {
        background-color: #f3f3f3;
    }

    .admin-menu-management_menu-item-head.selected {
        background-color: #ceffe3;
    }

        .admin-menu-management_menu-item-head.selected button.edit {
            pointer-events: none;
            color: green;
        }

    .admin-menu-management_menu-item-head span {
        padding: 0 15px 0 8px;
        display: flex;
        flex: 1;
        align-items: center;
        user-select: none;
    }

    .admin-menu-management_menu-item-head.btn-new {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background-color: #d2e6ff;
        cursor: pointer;
    }

        .admin-menu-management_menu-item-head.btn-new span {
            padding: 0;
            flex: unset;
        }

        .admin-menu-management_menu-item-head.btn-new > * {
            pointer-events: none;
        }

        .admin-menu-management_menu-item-head.btn-new:hover {
            background-color: #b6d4f9;
        }

.admin-menu-management_menu-item-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
}

    .admin-menu-management_menu-item-actions .hidden-icon {
        color: #8a8a8a;
        cursor: default;
    }

        .admin-menu-management_menu-item-actions .hidden-icon:hover {
            color: #cee4ff;
        }

    .admin-menu-management_menu-item-actions .dg-tooltip {
        cursor: default;
    }

        .admin-menu-management_menu-item-actions .dg-tooltip:before {
            top: -2px;
            left: unset;
            right: calc(100% + 7px);
            transform: none;
            background-color: #cee4ff;
        }

    .admin-menu-management_menu-item-actions button {
        border: none;
        outline: none;
        background-color: transparent;
        height: 100%;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-menu-management_menu-item-actions.left button {
        border-right: 1px solid #fff;
    }

    .admin-menu-management_menu-item-actions.right button {
        border-left: 1px solid #fff;
    }

    .admin-menu-management_menu-item-actions button > * {
        pointer-events: none;
    }

    .admin-menu-management_menu-item-actions button.edit:hover {
        background-color: #fdfdfd;
        color: green;
    }

    .admin-menu-management_menu-item-actions button.expand:hover {
        background-color: #fdfdfd;
        color: blue;
    }

    .admin-menu-management_menu-item-actions button:disabled {
        pointer-events: none;
    }

    .admin-menu-management_menu-item-actions > button.expand i {
        transition: transform 0.3s ease-in-out;
    }

.open > .admin-menu-management_menu-item-head > .admin-menu-management_menu-item-actions > button.expand i {
    transform: rotate(180deg);
}

.admin-menu-management__form {
    padding: 20px;
    background-color: #f3f3f3;
    height: 100%;
    margin-left: 20px;
    position: relative;
}

.admin-menu-management_menu__loader,
.admin-menu-management__form__loader {
    background-color: rgba(255,255,255, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(2px);
    z-index: 2;
    align-items: start;
    padding-top: 20%;
    font-size: 16px;
}

.admin-menu-management__form select.form-control {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-right: none;
}

.admin-menu-management__form-actions {
    gap: 5px;
    align-items: center;
}

    .admin-menu-management__form-actions button {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
    }

.admin-menu-management__form .form-select.selectize-control, .form-control.selectize-control {
    height: 40px;
}


.admin-menu-management__form .selectize-control.single .selectize-input,
.admin-menu-management__form .selectize-control.single .selectize-input input {
    height: 100%;
    display: flex;
    align-items: center;
}

    .admin-menu-management__form .selectize-control.single .selectize-input:not(.no-arrow):after {
        display: none !important;
    }

.admin-menu-management__form .input-group.disabled {
    pointer-events: none;
}

    .admin-menu-management__form .input-group.disabled .selectize-input,
    .admin-menu-management__form .input-group.disabled .selectize-control.single .selectize-input.input-active {
        background-color: #e9ecef;
        opacity: 1;
    }

.admin-menu-management__form .selectize-input.focus {
    box-shadow: none;
}

.admin-menu-management__form .form-required {
    color: red;
    margin-left: 2px;
}

.admin-menu-management .ui-sortable-disabled .admin-menu-management_menu-item-head {
    cursor: default;
}

.admin-menu-management .input-group .selectize-control:not(:first-child) .selectize-input {
    border-right: none;
    border-left: none;
}

.admin-menu-management .selectize-dropdown [data-selectable].option.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.admin-menu-management .admin-radio-button .form-label {
    font-size: 12px;
}

.admin-menu-management .radio-button-style span {
    display: inline-block;
    padding: 5px 15px;
    text-transform: uppercase;
    border: 1px solid #6c757d;
    border-radius: 3px;
    color: #6c757d;
    cursor: pointer;
    font-size: 12px;
}

.admin-menu-management .radio-button-style input[type="radio"] {
    display: none;
}

    .admin-menu-management .radio-button-style span:hover,
    .admin-menu-management .radio-button-style input[type="radio"]:checked + span {
        background-color: #6c757d;
        color: #fff;
    }

.admin-menu-management .radio-button-style + .radio-button-style {
    margin-left: 0px;
}

.admin-menu-management .admin-radio-button-group {
    display: flex;
    gap: 7px;
}

.admin-menu-management .no-link-icon,
.admin-menu-management .hidden-icon {
    font-size: 12px;
}

.admin-menu-management .no-link-icon {
    color: darkred;
}
