/* =====================================================
   PORTAL BOTTOM NAVIGATION
===================================================== */

.portal-footer {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* NAV */

.portal-bottom-nav.navigation-bar.fixed-bottom {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;

    margin: 0 !important;
    padding: 5px 6px !important;

    border-radius: 14px 14px 0 0;
    box-sizing: border-box;

    background: #fff;

    overflow: hidden;
}

.portal-bottom-nav .portal-bottom-nav-items {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;

    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
}

.portal-bottom-nav .item {
    height: 58px !important;
    min-height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.portal-bottom-nav .link {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 3px 1px !important;

    line-height: 1 !important;
}

.portal-bottom-nav-icon {
    width: 26px !important;
    height: 25px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
}

.portal-bottom-nav-icon i {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 17px !important;
    line-height: 1 !important;
}

.portal-bottom-nav-label {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 7px !important;
    line-height: 1 !important;

    text-align: center !important;
}

/* ITEMS */

.portal-bottom-nav-items {
    height: 54px;
}

.portal-bottom-nav .item {
    height: 54px;
}


/* LINK */

.portal-bottom-nav .link {
    width: 100%;
    height: 54px;
    min-height: 54px;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;

    margin: 0 !important;
    padding: 3px 1px !important;

    line-height: 1 !important;
}


/* ICON */

.portal-bottom-nav-icon {
    width: 28px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto !important;
}

.portal-bottom-nav-icon i {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 17px !important;
    line-height: 1 !important;
}


/* LABEL */

.portal-bottom-nav-label {
    display: block !important;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.2 !important;

    text-align: center !important;
    white-space: nowrap;
}


/* ACTIVE */

.portal-bottom-nav .item.active .link {
    color: var(--primary-color);
}

.portal-bottom-nav .item.active .portal-bottom-nav-icon {
    background: rgba(92,45,145,.09);
    color: var(--primary-color);
}

.portal-bottom-nav .item.active .portal-bottom-nav-label {
    color: var(--primary-color);
    font-weight: 700;
}


/* SMALL ACTIVE INDICATOR */

.portal-bottom-nav .item.active .link:after {
    content: "";

    position: absolute;

    bottom: 0;

    width: 16px;
    height: 2px;

    border-radius: 5px;

    background: var(--primary-color);
}


/* OLD POINTER */

.portal-bottom-nav .pointer {
    display: none !important;
}


/* =====================================================
   SCROLL TO TOP
===================================================== */

.portal-scroll-top {
    position: fixed;

    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom));

    width: 38px;
    height: 38px;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(92,45,145,.10);
    border-radius: 11px;

    background: #fff;
    color: var(--primary-color);

    box-shadow: 0 5px 16px rgba(0,0,0,.10);

    z-index: 1025;

    transition:
            transform .15s ease,
            opacity .15s ease;
}

.portal-scroll-top i {
    color: var(--primary-color);

    font-size: 14px;
}

.portal-scroll-top:hover {
    transform: translateY(-2px);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .portal-bottom-nav {
        min-height: 66px;
    }

    .portal-bottom-nav .link {
        min-height: 52px;

        margin: 0 1px;
    }

    .portal-bottom-nav-icon {
        width: 28px;
        height: 26px;
    }

    .portal-bottom-nav-icon i {
        font-size: 16px !important;
    }

    .portal-bottom-nav-label {
        font-size: 14px;
    }

}




/* USER LINK */

.portal-navbar-user-link {
    min-height: 48px;

    display: flex !important;
    align-items: center !important;
    gap: 7px;

    padding: 5px 8px !important;

    border-radius: 11px;

    color: #fff !important;
}

.portal-navbar-user-link:hover {
    background: rgba(255,255,255,.08);
}


/* AVATAR */

.portal-navbar-avatar {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50%;

    background: rgba(255,255,255,.12);
}

.portal-navbar-avatar img {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    border-radius: 50% !important;
}


/* USER TEXT */

.portal-navbar-user-info {
    min-width: 0;

    line-height: 1.3;
}

.portal-navbar-user-info strong,
.portal-navbar-user-info small {
    display: block;
}

.portal-navbar-user-info strong {
    max-width: 145px;

    overflow: hidden;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-navbar-user-info small {
    margin-top: 1px;

    color: rgba(255,255,255,.65);

    font-size: 14px;
}

.portal-navbar-user-arrow {
    margin-right: 2px;

    color: rgba(255,255,255,.65);

    font-size: 14px;
}


/* =====================================================
   PROFILE DROPDOWN
===================================================== */

.portal-navbar-profile-dropdown {
    width: 230px;

    overflow: hidden;

    padding: 0 !important;

    border: 1px solid #eee !important;
    border-radius: 13px !important;

    background: #fff;

    box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}


/* DROPDOWN HEAD */

.portal-navbar-profile-head {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px;

    border-bottom: 1px solid #eee;
}

.portal-navbar-profile-avatar {
    flex: 0 0 39px;

    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f7f7f8;
}

.portal-navbar-profile-avatar img {
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

    border-radius: 50% !important;
}

.portal-navbar-profile-head strong,
.portal-navbar-profile-head small {
    display: block;
}

.portal-navbar-profile-head strong {
    color: #333;

    font-size: 14px;
}

.portal-navbar-profile-head small {
    margin-top: 2px;

    color: #999;

    font-size: 14px;
}


/* LINKS */

.portal-navbar-profile-links {
    padding: 6px;
}

.portal-navbar-profile-links .dropdown-item {
    min-height: 39px;

    display: flex;
    align-items: center;
    gap: 8px;

    margin: 2px 0;
    padding: 7px 9px;

    border-radius: 8px;

    color: #555;

    font-size: 14px;
}

.portal-navbar-profile-links .dropdown-item i {
    width: 18px;

    color: #999;

    font-size: 14px;

    text-align: center;
}

.portal-navbar-profile-links .dropdown-item:hover {
    background: #f8f7fa;
    color: var(--primary-color);
}

.portal-navbar-profile-links .dropdown-item:hover i {
    color: var(--primary-color);
}


/* LOGOUT */

.portal-navbar-profile-links .portal-navbar-logout {
    margin-top: 5px;

    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;

    color: #a9414c;
}

.portal-navbar-profile-links .portal-navbar-logout i {
    color: #b22b39;
}

.portal-navbar-profile-links .portal-navbar-logout:hover {
    background: rgba(220,53,69,.05);
    color: #b22b39;
}


/* =====================================================
   LOGIN
===================================================== */

.portal-navbar-login {
    min-height: 42px;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 7px 11px !important;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;

    background: rgba(255,255,255,.08);
    color: #fff !important;

    font-size: 14px;
    font-weight: 600;
}


/* =====================================================
   BACK
===================================================== */

.portal-navbar-back-item {
    margin: 0 !important;
}

.portal-navbar-back {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;

    background: rgba(255,255,255,.08);
    color: #fff !important;

    font-size: 14px;

    text-decoration: none !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .portal-navbar {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .portal-navbar-user-info {
        display: none;
    }

    .portal-navbar-user-arrow {
        display: none;
    }

    .portal-navbar-user-link {
        padding: 4px !important;
    }

    .portal-navbar-avatar {
        flex-basis: 35px;

        width: 35px;
        height: 35px;
    }

    .portal-navbar-midan {
        width: 42px;
        padding: 0 !important;
    }

    .portal-navbar-midan span {
        display: none;
    }

    .portal-navbar-profile-dropdown {
        width: 220px;
    }






    /*سسسسسسس*/


    /* =====================================================
   PORTAL SIDEBAR
===================================================== */

    .portal-sidebar {
        background: #fff;

        border-left: 1px solid #eee;

        box-shadow: -3px 0 18px rgba(0,0,0,.025);
    }


    /* INNER */

    .portal-sidebar .sidebar-inner {
        padding: 10px 10px 30px;
    }


    /* TITLE */

    .portal-sidebar-title {
        margin: 8px 8px 7px !important;
        padding: 0 !important;

        color: #aaa !important;

        font-size: 8px !important;
        font-weight: 600 !important;

        letter-spacing: 0;
    }


    /* MAIN MENU */

    .portal-sidebar-menu {
        margin: 0;
        padding: 0;
    }

    .portal-sidebar-menu > li {
        margin-bottom: 4px;
    }


    /* MAIN LINKS */

    .portal-sidebar-link {
        min-height: 46px !important;

        display: flex !important;
        align-items: center !important;

        position: relative;

        padding: 7px 9px !important;

        border-radius: 10px !important;

        color: #555 !important;

        transition:
                background .15s ease,
                color .15s ease;
    }

    .portal-sidebar-link:hover {
        background: #f8f7fa !important;
        color: var(--primary-color) !important;
    }


    /* ICON */

    .portal-sidebar-link-icon {
        flex: 0 0 34px;

        width: 34px;
        height: 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-left: 8px;

        border-radius: 9px;

        background: #f7f7f8;
        color: #777;

        font-size: 14px;
    }

    .portal-sidebar-link:hover .portal-sidebar-link-icon {
        background: rgba(92,45,145,.08);
        color: var(--primary-color);
    }


    /* TEXT */

    .portal-sidebar-link-text {
        flex: 1;

        min-width: 0;

        font-size: 14px;
        font-weight: 600;

        white-space: nowrap;
    }


    /* PARENT */

    .portal-sidebar-parent {
        padding-left: 8px !important;
    }

    .portal-sidebar-arrow {
        flex: 0 0 20px;

        width: 20px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 !important;

        color: #aaa;

        font-size: 14px;

        transition: transform .2s ease;
    }


    /* OPEN GROUP */

    .portal-sidebar-group.nav-active > .portal-sidebar-parent,
    .portal-sidebar-group.active > .portal-sidebar-parent {
        background: rgba(92,45,145,.055) !important;
        color: var(--primary-color) !important;
    }

    .portal-sidebar-group.nav-active > .portal-sidebar-parent .portal-sidebar-link-icon,
    .portal-sidebar-group.active > .portal-sidebar-parent .portal-sidebar-link-icon {
        background: rgba(92,45,145,.09);
        color: var(--primary-color);
    }


    /* =====================================================
       SUB MENU
    ===================================================== */

    .portal-sidebar-submenu {
        position: relative;

        margin: 4px 0 7px !important;
        padding: 4px 12px 4px 0 !important;
    }

    .portal-sidebar-submenu:before {
        content: "";

        position: absolute;

        top: 5px;
        bottom: 5px;
        right: 20px;

        width: 1px;

        background: #eee;
    }

    .portal-sidebar-submenu li {
        position: relative;

        margin: 2px 0;
    }

    .portal-sidebar-submenu li a {
        min-height: 38px !important;

        display: flex !important;
        align-items: center !important;
        gap: 7px;

        position: relative;

        margin-right: 17px;
        padding: 6px 12px !important;

        border-radius: 8px !important;

        color: #777 !important;

        font-size: 9px !important;

        transition:
                background .15s ease,
                color .15s ease;
    }

    .portal-sidebar-submenu li a:before {
        content: "";

        position: absolute;

        top: 50%;
        right: -10px;

        width: 5px;
        height: 5px;

        transform: translateY(-50%);

        border: 1px solid #ccc;
        border-radius: 50%;

        background: #fff;
    }

    .portal-sidebar-submenu li a i {
        width: 15px;

        color: #aaa;

        font-size: 14px;

        text-align: center;
    }

    .portal-sidebar-submenu li a:hover {
        background: #f8f7fa !important;
        color: var(--primary-color) !important;
    }

    .portal-sidebar-submenu li a:hover i {
        color: var(--primary-color);
    }


    /* ACTIVE SUB LINK */

    .portal-sidebar-submenu li.active > a,
    .portal-sidebar-submenu li > a.active {
        background: rgba(92,45,145,.06) !important;
        color: var(--primary-color) !important;

        font-weight: 600;
    }

    .portal-sidebar-submenu li.active > a:before,
    .portal-sidebar-submenu li > a.active:before {
        border-color: var(--primary-color);
        background: var(--primary-color);
    }


    /* =====================================================
       DANGER
    ===================================================== */

    .portal-sidebar-danger-item {
        margin-top: 14px;
        padding-top: 10px;

        border-top: 1px solid #eee;
    }

    .portal-sidebar-danger {
        color: #a9414c !important;
    }

    .portal-sidebar-danger .portal-sidebar-link-icon {
        background: rgba(220,53,69,.06);
        color: #b22b39;
    }

    .portal-sidebar-danger:hover {
        background: rgba(220,53,69,.05) !important;
        color: #b22b39 !important;
    }

    .portal-sidebar-danger:hover .portal-sidebar-link-icon {
        background: rgba(220,53,69,.09);
        color: #b22b39;
    }


    /* =====================================================
       MOBILE CLOSE
    ===================================================== */

    .portal-sidebar-close {
        width: 38px;
        height: 38px;

        display: none;

        align-items: center;
        justify-content: center;

        top: 9px;
        left: 9px;

        padding: 0 !important;

        border: 1px solid #eee !important;
        border-radius: 10px !important;

        background: #fff !important;
        color: #555 !important;

        box-shadow: 0 3px 10px rgba(0,0,0,.04);

        font-size: 14px;
    }


    /* =====================================================
       MOBILE LOGO
    ===================================================== */

    .portal-sidebar-mobile-logo {
        min-height: 58px;

        align-items: center;
        justify-content: center;

        padding: 10px 50px;

        border-bottom: 1px solid #eee;
    }


    /* =====================================================
       MOBILE
    ===================================================== */

    @media (max-width: 991.98px) {

        .portal-sidebar-close {
            display: flex;
        }

        .portal-sidebar-mobile-logo {
            display: flex !important;
        }

        .portal-sidebar .sidebar-inner {
            padding-top: 8px;
        }

    }


    /* =====================================================
       PORTAL TOPBAR
    ===================================================== */

    .portal-topbar {
        border: 0;

        box-shadow: 0 3px 16px rgba(0,0,0,.08);
    }


    /* NAVBAR */

    .portal-navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* =====================================================
       DESKTOP LOGO
    ===================================================== */

    /* =====================================================
       DESKTOP LOGO
    ===================================================== */

    /* =====================================================
       DESKTOP LOGO
    ===================================================== */

    .portal-topbar-logo {
        height: 90px;

        background: var(--primary-color);
    }

    .portal-topbar-logo > div {
        width: 100%;
        height: 100%;
    }

    .portal-topbar-logo .logo {
        width: 100%;
        height: 100%;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .portal-topbar-logo .logo img {
        display: block;

        width: auto !important;
        height: 38px !important;
        max-width: 115px !important;

        margin: 0 !important;

        object-fit: contain;
    }

}

