.drilldown-menu-wrapper {
    width: 100%;
    background: #fff;
}

/* Tabs */
.drilldown-tabs {
    position: relative;
    display: flex;
    border-bottom: 1px solid #e4e4e4;
}

.drilldown-tab-link {
    flex: 1;
    padding: 18px 15px;
    text-align: center;
    color: #909090;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.drilldown-tab-link.active {
    color: #333;
    background: #e9e9e9;
}

.drilldown-tab-link:hover {
    color: #333;
}

.drilldown-tab-slider {
    position: absolute;
    bottom: 0px;
    height: 3px;
    background: #480371;
    transition: left 0.3s ease, width 0.3s ease;
    z-index: 2;
}

/* Panes */
.drilldown-tab-pane {
    display: none;
}

.drilldown-tab-pane.active {
    display: block;
}

/* Container */
.drilldown-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Lists */
.drilldown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* سطح صفر همیشه نقطه شروع است و در ابتدا داخل قاب است */
.drilldown-list.drilldown-level-0 {
    position: absolute;
    right: 0;
}

/* لیست فعال در قاب */
.drilldown-list.drilldown-active {
    transform: translateX(0);
}

/* لیستی که رفته چپ (پشت سر) */
.drilldown-list.drilldown-slide-left {
    transform: translateX(-100%);
}

/* Items */
.drilldown-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e4e4e4;
    list-style: none;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* ویپر اصلی آیتم‌ها */
.drilldown-link-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

/* لینک اصلی (آیکن + عنوان) */
.drilldown-main-link {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}
.drilldown-main-link:hover {
    color: #333;
}
/* هاور روی لینک اصلی (آیکن و عنوان) */
.drilldown-main-link:active {
    background-color: #f0f0f0;
    color: #333;
}

/* آیکن داخل لینک اصلی */
.drilldown-main-link .menu-item-icon {
    color: #a6a9ad;
    flex-shrink: 0;
    font-size: 18px;
}

/* عنوان داخل لینک اصلی */
.drilldown-main-link span {
    flex: 1;
}

/* لینک فلش (برای آیتم‌های دارای زیرمجموعه) */
.drilldown-arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    border-right: 1px solid #e4e4e4;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

/* هاور روی لینک فلش */
.drilldown-arrow-link:active {
    background-color: #e8e8e8;
    color: inherit;
}
/* آیکون فلش داخل لینک */
.drilldown-arrow-link .drilldown-arrow {
    font-size: 23px;
    color: #565656;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
}

/* Back - ویپر اصلی */
.drilldown-back-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

/* آیتم بازگشت */
.drilldown-back-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e4e4e4;
    list-style: none;
    height: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* لینک فلش برگشت */
.drilldown-back-arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    border-left: 1px solid #e4e4e4;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

/* هاور روی فلش برگشت */
.drilldown-back-arrow-link:active {
    background-color: #e8e8e8;
    color: inherit;
}

/* آیکون فلش برگشت */
.drilldown-back-arrow-link .drilldown-back-arrow {
    font-size: 23px;
    color: #565656;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
}

/* لینک متن بازگشت */
.drilldown-back-text-link {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 13px;
    font-weight: 600;
}

/* هاور روی متن بازگشت */
.drilldown-back-text-link:active {
    background-color: #f0f0f0;
    color: #333;
}
/* هاور روی متن بازگشت */
.drilldown-back-text-link:hover {
    color: #333;
}
/* استایل‌های RTL */
body.rtl .drilldown-arrow-link {
    border-right: 1px solid #e4e4e4;
}

body.rtl .drilldown-back-arrow-link {
    border-left: 1px solid #e4e4e4;
}
