﻿.vc-page {
    padding: 1rem;
    background: #f6f8fb;
    min-height: 100vh;
}

.vc-header {
    margin-bottom: 1rem;
}

.vc-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: .2rem;
}

.vc-subtitle {
    color: #6b7280;
    font-size: .95rem;
}

.vc-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.vc-toolbar {
    padding: 1rem 1.1rem;
}

.vc-btn {
    min-width: 150px;
    border-radius: 12px;
    font-weight: 700;
}

.vc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .9rem;
}

.vc-kpi {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.vc-kpi-help {
    color: #6b7280;
    font-size: .78rem;
    margin-top: .45rem;
}

.vc-kpi-label {
    color: #6b7280;
    font-size: .82rem;
    margin-bottom: .35rem;
}

.vc-kpi-value {
    color: #111827;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
}

.vc-tabs {
    margin-top: 1rem;
}

.vc-tabs-nav {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.vc-tab {
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #334155;
    padding: .7rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    transition: all .15s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

    .vc-tab:hover {
        background: #f8fafc;
    }

    .vc-tab.active {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
        box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
    }

.vc-tabs-body {
    margin-top: .5rem;
}

.vc-tree-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    margin-bottom: 1rem;
}

.vc-tree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    cursor: pointer;
    transition: background .15s ease;
    border-top: 1px solid #eef2f7;
}

    .vc-tree-header:first-child {
        border-top: none;
    }

    .vc-tree-header:hover {
        background: #f8fafc;
    }

.vc-tree-card > .vc-tree-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.vc-indent-1 > .vc-tree-header {
    background: #f9fafb;
}

.vc-indent-2 > .vc-tree-header,
.vc-indent-3 > .vc-tree-header,
.vc-indent-4 > .vc-tree-header {
    background: #fff;
}

.vc-indent-1 {
    margin-left: 1rem;
}

.vc-indent-2 {
    margin-left: 2rem;
}

.vc-indent-3 {
    margin-left: 3rem;
}

.vc-indent-4 {
    margin-left: 4rem;
}

.vc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    color: #475569;
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
    margin-left: .5rem;
}

.vc-summary {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(105px, 1fr);
    gap: .65rem;
    min-width: 240px;
    flex: 0 0 auto;
}

    .vc-summary > span {
        text-align: right;
        background: rgba(255,255,255,.65);
        border: 1px solid #eef2f7;
        border-radius: 12px;
        padding: .55rem .6rem;
        color: #111827;
        font-size: .83rem;
        font-weight: 800;
        line-height: 1.05;
        white-space: nowrap;
    }

.vc-product-wrap {
    padding: .75rem 1rem 1rem 1rem;
}

.vc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    table-layout: fixed;
    margin-bottom: 0;
}

    .vc-table th,
    .vc-table td {
        padding: .7rem .75rem;
        border-top: 1px solid #eef2f7;
        font-size: .84rem;
        vertical-align: middle;
    }

    .vc-table th {
        background: #f8fafc;
        color: #334155;
        text-align: left;
        font-weight: 800;
        font-size: .78rem;
    }

        .vc-table th:first-child,
        .vc-table td:first-child {
            width: 46%;
        }

.vc-empty {
    background: #fff;
    border: 1px dashed #dbe3ef;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 1200px) {
    .vc-summary {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
        min-width: 310px;
    }
}

@media (max-width: 992px) {
    .vc-tree-header {
        flex-direction: column;
        align-items: stretch;
    }

    .vc-summary {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .vc-title {
        font-size: 1.45rem;
    }

    .vc-summary {
        grid-template-columns: 1fr;
    }

        .vc-summary > span {
            text-align: left;
        }

    .vc-indent-1,
    .vc-indent-2,
    .vc-indent-3,
    .vc-indent-4 {
        margin-left: 0;
    }

    .vc-table th:first-child,
    .vc-table td:first-child {
        width: auto;
    }
}
