/* CC-02b Wave 2 - extracted from FRONTEND/07_vendors/vendor-dashboard.html */
html.rbac-pending body { visibility: hidden; }
        html.rbac-pending::before {
            content: "Verifying access...";
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 1rem;
            color: #475569;
            background: #f8fafc;
            visibility: visible;
            z-index: 2147483647;
        }
    


        /* Vendor Dashboard Layout */
        .vendor-layout {
            display: flex;
            min-height: 100vh;
            background: #f8fafc;
        }

        /* Sidebar Styles */
        .vendor-sidebar {
            width: 17.5rem;
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
            color: #fff;
            position: fixed;
            top: 6.25rem;
            left: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .vendor-sidebar.collapsed {
            width: 4.375rem;
        }

        .vendor-sidebar.collapsed .sidebar-brand-text,
        .vendor-sidebar.collapsed .nav-text,
        .vendor-sidebar.collapsed .nav-section-label,
        .vendor-sidebar.collapsed .nav-badge,
        .vendor-sidebar.collapsed .nav-arrow,
        .vendor-sidebar.collapsed .user-details {
            display: none;
        }

        .vendor-sidebar.collapsed .nav-submenu {
            position: absolute;
            left: 4.375rem;
            top: 6.25rem;
            background: #1e293b;
            min-width: 12.5rem;
            border-radius: 0 0.5rem 0.5rem 0;
            box-shadow: 0.25rem 0 0.9375rem rgba(0,0,0,0.2);
        }

        /* Sidebar Header */
        .sidebar-header {
            padding: 1.25rem;
            border-bottom: 0.0625rem solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: #fff;
        }

        .sidebar-logo {
            width: 2.5rem;
            height: 2.5rem;
            background: linear-gradient(135deg, #E74C3C, #C0392B);
            border-radius: 0.625rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.125rem;
        }

        .sidebar-brand-text {
            font-size: 1.125rem;
            font-weight: 700;
        }

        .sidebar-toggle {
            background: rgba(255,255,255,0.1);
            border: none;
            color: #fff;
            width: 2rem;
            height: 2rem;
            border-radius: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .sidebar-toggle:hover {
            background: rgba(255,255,255,0.2);
        }

        /* Navigation Styles */
        .sidebar-nav {
            padding: 1.25rem 0;
            flex: 1;
        }

        .nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-section-label {
            padding: 0.75rem 1.25rem 0.5rem;
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.0625rem;
            color: rgba(255,255,255,0.4);
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1.25rem;
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: all 0.3s ease;
            gap: 0.75rem;
            font-size: 0.875rem;
            font-weight: 500;
        }

        button.nav-link {
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            font-family: inherit;
        }

        .nav-link:hover {
            color: #fff;
            background: rgba(255,255,255,0.05);
        }

        .nav-link.active {
            color: #fff;
            background: linear-gradient(90deg, rgba(231,76,60,0.2) 0%, transparent 100%);
            border-left: 0.1875rem solid #E74C3C;
        }

        .nav-icon {
            width: 1.25rem;
            height: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .nav-icon svg {
            width: 1.25rem;
            height: 1.25rem;
        }

        .nav-text {
            flex: 1;
        }

        .nav-badge {
            background: #E74C3C;
            color: #fff;
            font-size: 0.6875rem;
            font-weight: 600;
            padding: 0.125rem 0.5rem;
            border-radius: 0.625rem;
            min-width: 1.25rem;
            text-align: center;
        }

        .nav-arrow {
            transition: transform 0.3s ease;
        }

        .nav-item.open .nav-arrow {
            transform: rotate(90deg);
        }

        /* Submenu Styles */
        .nav-submenu {
            display: none;
            list-style: none;
            padding: 0;
            margin: 0;
            background: rgba(0,0,0,0.2);
        }

        .nav-item.open .nav-submenu {
            display: block;
        }

        .nav-submenu .nav-link {
            padding: 0.625rem 1.25rem 0.625rem 3.25rem;
            font-size: 0.8125rem;
        }

        .nav-submenu .nav-link:hover {
            background: rgba(255,255,255,0.05);
        }

        .nav-submenu .nav-link.active {
            color: #E74C3C;
            background: transparent;
            border-left: none;
        }

        /* Sidebar Footer */
        .sidebar-footer {
            padding: 1.25rem;
            border-top: 0.0625rem solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .user-avatar {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            overflow: hidden;
            background: linear-gradient(135deg, #E74C3C, #C0392B);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar-placeholder {
            color: #fff;
            font-weight: 600;
            font-size: 0.875rem;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.875rem;
        }

        .user-role {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
        }

        .logout-link {
            color: rgba(255,255,255,0.5);
            transition: color 0.3s ease;
        }

        .logout-link:hover {
            color: #E74C3C;
        }

        /* Main Content Area */
        .vendor-main {
            flex: 1;
            margin-left: 17.5rem;
            padding: 0;
            transition: margin-left 0.3s ease;
        }

        .vendor-sidebar.collapsed + .vendor-main {
            margin-left: 4.375rem;
        }

        /* Top Header Bar */
        .top-header {
            background: #fff;
            padding: 1rem 2rem;
            border-bottom: 0.0625rem solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .page-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e293b;
            margin: 0;
        }

        .page-subtitle {
            font-size: 0.875rem;
            color: #64748b;
            margin: 0.25rem 0 0;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header-actions .btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1.25rem;
            border-radius: 0.5rem;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, #E74C3C, #C0392B);
            color: #fff;
            border: none;
        }

        .btn-primary:hover {
            transform: translateY(-0.125rem);
            box-shadow: 0 0.25rem 0.75rem rgba(231,76,60,0.3);
        }

        .btn-outline {
            background: transparent;
            color: #64748b;
            border: 0.0625rem solid #e2e8f0;
        }

        .btn-outline:hover {
            border-color: #E74C3C;
            color: #E74C3C;
        }

        /* Content Area */
        .content-area {
            padding: 2rem;
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .vendor-sidebar {
                transform: translateX(-100%);
            }

            .vendor-sidebar.mobile-open {
                transform: translateX(0);
            }

            .vendor-main {
                margin-left: 0;
            }

            .mobile-toggle {
                display: block;
            }
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #1e293b;
            cursor: pointer;
        }

        /* Custom Scrollbar for Sidebar */
        .vendor-sidebar::-webkit-scrollbar {
            width: 0.375rem;
        }

        .vendor-sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .vendor-sidebar::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.2);
            border-radius: 0.1875rem;
        }

        .vendor-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.3);
        }
