/* VC Modal (list) */
#vc-view {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1001;
    padding: 16px;
}

body.vc-active #vc-view {
    display: flex;
}

body.vc-active.vc-detail-active #vc-view {
    display: none !important;
}

.vc-modal-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 24px 24px;
    position: relative;
    transform: translateY(-6%);
    transition: none;
}

.vc-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    margin-left: auto;
    line-height: 1;
}

.vc-close-btn:hover {
    color: #333;
}


.vc-disabled {
    background-color: #6b7280 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}

.vc-disabled:hover {
    background-color: #6b7280 !important;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.vc-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.vc-badge.show {
    display: inline-flex;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip-container.disabled:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 440px) {
    #vc-view {
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .vc-modal-panel {
        width: min(420px, 92vw);
        max-width: 92vw;
        max-height: 92vh;
        padding: 14px 14px 16px;
        border-radius: 12px;
        transform: translateY(-2vh);
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vc-close-btn {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .tooltip-text {
        width: min(220px, 86vw);
        left: 50%;
        margin-left: 0;
        transform: translateX(-50%);
    }
}
