/* Стили для вертикальных вкладок */
.tabs-vertical {
    display: flex;
    gap: 0;
    margin: 0;
    min-height: 520px;
}

.tabs-vertical-nav {
    list-style: none;
    margin: 0;
    width: 162px;
    min-width: 162px;
    box-sizing: border-box;
    border-right: 1px solid #a4afb8;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    background: linear-gradient(90deg, transparent, #c8cdd2);
}

.tabs-vertical-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-height: 52px;
    margin: 0;
    padding: 0 9px 0 10px;
    box-sizing: border-box;
    border: 1px solid #a4afb8;
    border-right: 0;
    background: linear-gradient(180deg, #f8fafb 0%, #e2e8ed 100%);
    color: #4a4a4a;
    cursor: pointer;
    overflow: visible;
}

.tabs-vertical-item:hover {
    background: linear-gradient(180deg, #fcfdfd 0%, #e9edf1 100%);
    border-color: #a4afb8;
}

.tabs-vertical-item.active {
    border-color: #909ca5;
    z-index: 2;
    background: linear-gradient(90deg, #deefff, #f4f8fa);
}

.tabs-vertical-item.active::before,
.tabs-vertical-item.active::after {
    content: "";
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 10px;
    height: 14px;
    background: transparent;
    border: none;
    pointer-events: none;
}

.tabs-vertical-item.active::before {
    right: -10px;
    background: #909ca5;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 1;
}

.tabs-vertical-item.active::after {
    right: -9px;
    width: 9px;
    height: 12px;
    background: #f5f8fa;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 2;
}

.tabs-vertical-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 1px;
    box-sizing: border-box;
}

.tabs-vertical-item.active .tabs-vertical-icon {
    border-color: transparent;
}

.tabs-vertical-icon .icon,
.tabs-vertical-icon [class*="icon-"] {
    font-size: 18px;
    color: var(--color-ui-dark-red, #8b1717);
    height: 18px;
    width: 18px;
    background-size: cover;
}

.tabs-vertical-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.tabs-vertical-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tabs-vertical-title {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    color: inherit;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
    user-select: none;
    font-family: inherit;
}

.tabs-vertical-item.active .tabs-vertical-title {
    color: #8b1717;
}

.tabs-vertical-content {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    padding: 10px;
    border: 1px solid #a4afb8;
    border-left: 0;
}

.tabs-vertical-panel {
    display: none;
    padding: 0 8px 8px;
    min-height: 100%;
    box-sizing: border-box;
}

.tabs-vertical-panel h3 {
    padding: 10px 0;
}

.tabs-vertical-panel.active {
    display: block;
}

.tabs-loading {
    text-align: center;
    padding: 40px;
    color: #404040;
}

.tabs-error {
    text-align: center;
    padding: 40px;
    color: var(--color-ui-dark-red, #8b1717);
    font-weight: bold;
}

@media (max-width: 960px) {
    .tabs-vertical {
        flex-direction: column;
        min-height: 0;
    }

    .tabs-vertical-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        min-width: 0;
        width: auto;
        padding: 5px;
        border-right: 0;
        border-bottom: 1px solid #a4afb8;
        gap: 5px;
    }

    .tabs-vertical-item {
        min-width: 72px;
        min-height: 36px;
        padding: 6px 8px;
        border-right: 1px solid #a4afb8;
        flex-shrink: 0;
        gap: 6px;
    }

    .tabs-vertical-icon {
        width: 20px;
        height: 20px;
        margin-left: 0;
    }

    .tabs-vertical-icon .icon,
    .tabs-vertical-icon [class*="icon-"] {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }

    .tabs-vertical-icon img,
    .tabs-vertical-icon-svg {
        width: 14px;
        height: 14px;
    }

    .tabs-vertical-item.active::before,
    .tabs-vertical-item.active::after {
        display: none;
    }

    .tabs-vertical-item.active {
        box-shadow: inset 0 -2px 0 #6c7b86;
    }

    .tabs-vertical-title {
        font-size: 13px;
        line-height: 1.2;
        font-family: inherit;
        font-weight: 700;
    }
}
