:root {
    --vm-primary: #1d4ed8;
    --vm-primary-dark: #1e3a8a;
    --vm-bg: #f4f7fb;
    --vm-sidebar: #0f172a;
    --vm-card: #ffffff;
    --vm-border: #e5e7eb;
    --vm-text: #111827;
    --vm-muted: #6b7280;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--vm-bg);
    color: var(--vm-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 24px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--vm-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-title {
    font-weight: 800;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #cbd5e1;
}

    .sidebar-nav a {
        color: #cbd5e1;
        text-decoration: none;
        padding: 11px 14px;
        border-radius: 12px;
        font-weight: 500;
        transition: all 0.15s ease;
    }

        .sidebar-nav a:hover {
            color: white;
            background: rgba(255,255,255,0.08);
        }

.app-main {
    margin-left: 265px;
    width: calc(100% - 265px);
    min-height: 100vh;
}

.app-header {
    height: 76px;
    background: white;
    border-bottom: 1px solid var(--vm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-content {
    padding: 32px;
}

.page-title {
    font-weight: 800;
    letter-spacing: -0.4px;
}

.vm-card {
    background: var(--vm-card);
    border: 1px solid var(--vm-border);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.vm-card-body {
    padding: 24px;
}

.kpi-card {
    min-height: 140px;
}

.kpi-label {
    color: var(--vm-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.kpi-value {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 8px;
}

.kpi-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eef2ff;
    color: var(--vm-primary-dark);
}

.table-card {
    overflow: hidden;
}

.table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--vm-border);
}

.btn-primary {
    background: var(--vm-primary);
    border-color: var(--vm-primary);
}

    .btn-primary:hover {
        background: var(--vm-primary-dark);
        border-color: var(--vm-primary-dark);
    }

@media (max-width: 992px) {
    .app-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        flex-direction: column;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }
}

.sidebar-section {
    margin: 18px 12px 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

.app-sidebar {
    width: 265px;
    background: linear-gradient(180deg, var(--vm-sidebar), #111827);
    color: white;
    padding: 24px 18px;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 32px;
}

.import-summary-card {
    min-height: 120px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--vm-border);
    border-left-width: 4px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.04);
}

.import-summary-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--vm-text);
}

.import-summary-label {
    margin-top: 14px;
    color: var(--vm-muted);
    font-size: 0.92rem;
    font-weight: 600;
}