/* ============================================================
   Business Management App - Global Design Tokens & Utilities
   Theme: Fluent 2 Light | Framework: Bootstrap + Custom
   ============================================================ */

:root {
    /* ── Brand Colors ───────────────────────────────────────── */
    --biz-primary:        #0f6cbd;
    --biz-primary-dark:   #0c5a9e;
    --biz-primary-light:  #cce4f6;
    --biz-accent-green:   #107c10;
    --biz-accent-orange:  #d95f02;
    --biz-accent-red:     #d13438;
    --biz-accent-purple:  #6264a7;

    /* ── Neutral Palette ────────────────────────────────────── */
    --biz-bg:             #f5f5f5;
    --biz-surface:        #ffffff;
    --biz-border:         #e0e0e0;
    --biz-text-primary:   #1a1a2e;
    --biz-text-secondary: #5f6368;
    --biz-text-muted:     #9aa0a6;

    /* ── Spacing ────────────────────────────────────────────── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* ── Sidebar ────────────────────────────────────────────── */
    --sidebar-width:      260px;
    --appbar-height:      64px;

    /* ── Shadows ────────────────────────────────────────────── */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg:   0 8px 24px rgba(0,0,0,0.14);

    /* ── Radii ──────────────────────────────────────────────── */
    --radius-sm:  6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* ── Typography ─────────────────────────────────────────── */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body:   16px;
    --line-height: 1.5;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    font-size: var(--font-body);
    line-height: var(--line-height);
    background-color: var(--biz-bg);
    color: var(--biz-text-primary);
    margin: 0;
    padding: 0;
}

/* ── App Shell ────────────────────────────────────────────────── */
.biz-shell {
    display: flex;
    min-height: 100vh;
    background: var(--biz-bg);
}

/* ── SfSidebar: override via wrapper div (CssClass prop unreliable in v100) ── */
.biz-sidebar-wrap .e-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
    border-right: none !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ensure the sidebar-content inside fills and scrolls properly */
.biz-sidebar-wrap .e-sidebar .sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
}

/* The biz-main wrapper next to the sidebar */
.biz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* ── AppBar (fixed across the top of biz-main) ───────────────── */
.biz-appbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--appbar-height);
    background: var(--biz-surface);
    border-bottom: 1px solid var(--biz-border);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.biz-appbar .e-appbar {
    background: var(--biz-surface) !important;
    color: var(--biz-text-primary) !important;
    height: var(--appbar-height) !important;
    min-height: var(--appbar-height) !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.biz-content {
    padding: var(--space-6);
    flex: 1;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: var(--appbar-height);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--biz-primary), var(--biz-accent-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand-tagline {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: var(--space-3) var(--space-5) var(--space-2);
    margin-top: var(--space-2);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-5);
    margin: 2px var(--space-3);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--biz-primary), #1a6fcb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 108, 189, 0.35);
}

.sidebar-nav-item .nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--biz-accent-red);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-user:hover { background: rgba(255,255,255,0.06); }

.user-avatar-sidebar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biz-primary), var(--biz-accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-name-sidebar { font-size: 0.85rem; font-weight: 600; color: #fff; }
.user-role-sidebar { font-size: 0.7rem; color: rgba(255,255,255,0.45); }

/* ── AppBar Components ───────────────────────────────────────── */
.appbar-search {
    display: flex;
    align-items: center;
    background: var(--biz-bg);
    border: 1px solid var(--biz-border);
    border-radius: 20px;
    padding: 6px 14px;
    gap: var(--space-2);
    width: 280px;
}

.appbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: var(--biz-text-primary);
    width: 100%;
}

.appbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.action-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--biz-text-secondary);
    font-size: 1rem;
    transition: background 0.2s;
    position: relative;
}

.action-btn:hover { background: var(--biz-bg); color: var(--biz-primary); }

.action-btn .notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--biz-accent-red);
    border-radius: 50%;
    border: 2px solid white;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid var(--biz-border);
    background: transparent;
    transition: background 0.2s;
}

.user-chip:hover { background: var(--biz-bg); }

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biz-primary), var(--biz-accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--biz-text-primary);
  margin: 0 0 var(--space-1) 0;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--biz-text-secondary);
    margin: 0;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ── Cards ──────────────────────────────────────────────────── */
.biz-card {
    background: var(--biz-surface);
    border: 1px solid var(--biz-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.biz-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.biz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.biz-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--biz-text-primary);
    margin: 0;
}

/* ── KPI Cards ───────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.kpi-card {
    border-radius: var(--radius-md);
    padding: var(--space-5);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.kpi-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.kpi-blue   { background: linear-gradient(135deg, #0f6cbd, #1a81db) !important; }
.kpi-green  { background: linear-gradient(135deg, #107c10, #15a015) !important; }
.kpi-purple { background: linear-gradient(135deg, #6264a7, #7678b5) !important; }
.kpi-orange { background: linear-gradient(135deg, #d95f02, #e87831) !important; }

.kpi-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: var(--space-3);
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 800;
    margin: var(--space-1) 0;
    letter-spacing: -0.5px;
}

.kpi-title {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.kpi-change {
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
}

/* ── Dashboard Grid ──────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
}

@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* ── Status Badges ───────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-purple  { background: #f3e8ff; color: #6b21a8; }
.badge-neutral { background: #f3f4f6; color: #374151; }

/* ── Activity Feed ───────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; gap: var(--space-4); }

.activity-item {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.activity-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-blue   { background: #dbeafe; color: var(--biz-primary); }
.activity-green  { background: #dcfce7; color: var(--biz-accent-green); }
.activity-orange { background: #ffedd5; color: var(--biz-accent-orange); }
.activity-red    { background: #fee2e2; color: var(--biz-accent-red); }

.activity-body {}
.activity-title { font-size: 0.875rem; font-weight: 600; color: var(--biz-text-primary); }
.activity-desc  { font-size: 0.8rem; color: var(--biz-text-secondary); margin-top: 1px; }
.activity-time  { font-size: 0.73rem; color: var(--biz-text-muted); margin-top: 2px; }

/* ── Data Grid Overrides ─────────────────────────────────────── */
.e-grid {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ── Toolbar/Filter Row ──────────────────────────────────────── */
.filter-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.filter-toolbar .e-input-group {
    min-width: 220px;
}

/* ── Customer Avatar ─────────────────────────────────────────── */
.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--biz-primary), var(--biz-accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.customer-info { display: flex; align-items: center; gap: var(--space-3); }
.customer-name { font-weight: 600; font-size: 0.9rem; }
.customer-email { font-size: 0.78rem; color: var(--biz-text-muted); }

/* ── Progress Bar Container ──────────────────────────────────── */
.progress-item {
    margin-bottom: var(--space-4);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: 0.85rem;
}

.progress-label span:first-child { font-weight: 500; }
.progress-label span:last-child  { color: var(--biz-text-muted); }

/* ── Stats Row ───────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    align-items: start;
}

/* Allow a biz-card inside stats-row to span 2 cols (used by Products page chart) */
.stats-row .biz-card {
    align-self: start;
}

.stat-card {
    background: var(--biz-surface);
    border: 1px solid var(--biz-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    transition: box-shadow 0.2s;
    /* Never stretch taller than content */
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
}

.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--biz-primary); line-height: 1.2; }
.stat-label { font-size: 0.7rem; color: var(--biz-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Section Grid (2-col/3-col) ──────────────────────────────── */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.three-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 900px) {
    .two-col-grid,
    .three-col-grid { grid-template-columns: 1fr; }
}

/* ── Chart Containers ────────────────────────────────────────── */
.chart-container { height: 300px; }
.chart-container-lg { height: 340px; }
.chart-container-sm { height: 240px; }

/* ── Responsive: tablet / mobile ───────────────────────────────── */
@media (max-width: 768px) {
    .biz-content { padding: var(--space-4); }
    .kpi-grid    { grid-template-columns: 1fr 1fr; }
    .appbar-search { display: none !important; }

    /* Sidebar overlays content on mobile instead of pushing it */
    .biz-sidebar-wrap .e-sidebar {
        position: fixed !important;
        z-index: 1050 !important;
    }
    /* Always full-width content area on mobile regardless of sidebar state */
    .biz-main {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
}

/* ── Settings Page ───────────────────────────────────────────── */
.settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
}

.settings-nav {
    background: var(--biz-surface);
    border: 1px solid var(--biz-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    height: fit-content;
}

/* Settings nav uses white bg so inactive items need dark text */
.settings-nav .sidebar-nav-item:not(.active) {
    color: var(--biz-text-secondary);
}
.settings-nav .sidebar-nav-item:not(.active):hover {
    background: var(--biz-bg);
    color: var(--biz-text-primary);
}
.settings-nav .sidebar-nav-item.active {
    color: #ffffff;
}

.settings-content {
    background: var(--biz-surface);
    border: 1px solid var(--biz-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
}

/* ── Form Sections ───────────────────────────────────────────── */
.form-section { margin-bottom: var(--space-6); }
.form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--biz-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--biz-primary-light);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--biz-text-secondary); }

/* ── Toggle Item ─────────────────────────────────────────────── */
.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--biz-border);
}

.toggle-item:last-child { border-bottom: none; }
.toggle-label { font-weight: 500; font-size: 0.9rem; }
.toggle-desc  { font-size: 0.8rem; color: var(--biz-text-muted); }

/* ── Analytics Page ──────────────────────────────────────────── */
.insight-card {
    background: linear-gradient(135deg, var(--biz-primary) 0%, var(--biz-accent-purple) 100%) !important;
    border-radius: var(--radius-md) !important;
    color: white;
}

.insight-card h4 { font-size: 0.85rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 var(--space-2); }
.insight-card .insight-value { font-size: 2rem; font-weight: 800; margin-bottom: var(--space-1); }
.insight-card .insight-desc  { font-size: 0.8rem; opacity: 0.7; }

/* ── Order Tracking ──────────────────────────────────────────── */
.tracking-steps {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--biz-text-muted);
}

.tracking-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--biz-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.tracking-dot.done     { background: var(--biz-accent-green); color: white; }
.tracking-dot.current  { background: var(--biz-primary); color: white; }
.tracking-dot.pending  { background: var(--biz-border); color: var(--biz-text-muted); }

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Toast Overrides ─────────────────────────────────────────── */
.e-toast-container { z-index: 9999 !important; }

/* ── Dialog Overrides ────────────────────────────────────────── */
.e-dialog { border-radius: var(--radius-lg) !important; }
.e-dlg-header-content { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }

/* ── Table Spacing ───────────────────────────────────────────── */
.e-rowcell { padding: 10px 12px !important; }
.e-headercell { padding: 12px !important; }

/* ── Product Card Grid ───────────────────────────────────────── */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

/* Syncfusion SfCard overrides for product cards */
.sf-product-card.e-card {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--biz-border) !important;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s !important;
    padding: 0 !important;
}

.sf-product-card.e-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

/* Product image area */
.sf-product-img-wrap {
    position: relative;
    height: 110px;
    background: linear-gradient(135deg, #e8f0fe 0%, #ecf0fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-product-img {
    font-size: 2.5rem;
    line-height: 1;
}

.sf-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
}

/* SfCard header title & subtitle */
.sf-product-card .e-card-header {
    padding: 10px 14px 4px !important;
}

.sf-product-card .e-card-header-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--biz-text-primary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-product-card .e-card-sub-title {
    font-size: 0.72rem !important;
    color: var(--biz-text-muted) !important;
    margin-top: 2px;
}

/* Card content section */
.sf-product-card .e-card-content {
    padding: 4px 14px 8px !important;
    flex: 1;
}

.sf-product-meta {
    font-size: 0.72rem;
    color: var(--biz-text-muted);
    margin-bottom: 6px;
}

.sf-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price  { font-size: 1.05rem; font-weight: 700; color: var(--biz-primary); }
.product-rating { font-size: 0.78rem; color: var(--biz-accent-orange); font-weight: 600; }

/* Card footer / action buttons */
.sf-product-card .e-card-actions {
    padding: 8px 14px !important;
    border-top: 1px solid var(--biz-border) !important;
    background: #fafafa !important;
    display: flex;
    gap: 8px;
}

.sf-card-btn {
    flex: 1;
    justify-content: center !important;
}

/* ── AppBar icon button & user chip ──────────────────────────── */
.appbar-icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--biz-text-secondary);
    font-size: 1.1rem;
    transition: background 0.2s;
    position: relative;
    flex-shrink: 0;
}
.appbar-icon-btn:hover { background: var(--biz-bg); color: var(--biz-primary); }

.appbar-bell-icon {
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    background: var(--biz-accent-red);
    border-radius: 50%;
    border: 2px solid white;
}

.user-chip-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid var(--biz-border);
    transition: background 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--biz-text-primary);
    flex-shrink: 0;
}
.user-chip-bar:hover { background: var(--biz-bg); }

/* ── Responsive AppBar hamburger ─────────────────────────────── */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--biz-text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.hamburger-btn:hover { background: var(--biz-bg); }

/* ── SfSpinner loading overlay ───────────────────────────────── */
.biz-loading-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biz-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Push the SfSpinner host to a known size */
.biz-loading-inner > .e-spinner-pane {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    background: transparent !important;
}

.splash-brand {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f6cbd;
    letter-spacing: -0.3px;
}

.splash-label {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.82rem;
    color: #9aa0a6;
    letter-spacing: 0.3px;
}

/* ── Syncfusion component integration overrides ──────────────── */

/* SfButton as hamburger: strip e-btn defaults */
.e-btn.hamburger-btn,
.e-btn.hamburger-btn:focus,
.e-btn.hamburger-btn:active {
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    padding: 6px !important;
    min-width: unset !important;
}
.e-btn.hamburger-btn .e-btn-icon { font-size: 1.2rem; line-height: 1; }

/* SfButton as appbar icon button: strip e-btn defaults */
.e-btn.appbar-icon-btn,
.e-btn.appbar-icon-btn:focus,
.e-btn.appbar-icon-btn:active {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-width: unset !important;
    width: 38px !important;
    height: 38px !important;
}
.e-btn.appbar-icon-btn:hover { background: var(--biz-bg) !important; color: var(--biz-primary) !important; }
.e-btn.appbar-icon-btn .e-btn-icon { font-size: 1.1rem; color: var(--biz-text-secondary); }

/* SfTextBox in appbar search: transparent, no border */
.appbar-search-input.e-input-group,
.appbar-search-input.e-input-group:not(.e-float-input) {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.appbar-search-input .e-input {
    background: transparent !important;
    font-size: 0.875rem !important;
    color: var(--biz-text-primary) !important;
    padding: 0 !important;
}

/* SfCard as biz-card: ensure white card visual is preserved */
.e-card.biz-card {
    background: var(--biz-surface) !important;
    border: 1px solid var(--biz-border) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-5) !important;
    box-shadow: var(--shadow-sm) !important;
}
.e-card.biz-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px) !important;
}

/* SfCard as stat-card: let the stat-card CSS fully control appearance */
.e-card.stat-card {
    border: 1px solid var(--biz-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    padding: var(--space-4) var(--space-3) !important;
    background: var(--biz-surface) !important;
}

/* SfCard as kpi-card: let the kpi-card gradient classes control background */
.e-card.kpi-card {
    border: none !important;
    padding: var(--space-5) !important;
}

/* SfCard as insight-card: let the insight-card CSS control appearance */
.e-card.insight-card {
    border: none !important;
    padding: var(--space-5) !important;
}

/* SfListView as activity-list: strip list defaults */
.e-listview.activity-list {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
}
.e-listview.activity-list .e-list-item {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    line-height: normal !important;
}
.e-listview.activity-list .e-list-item:hover {
    background: transparent !important;
}
.e-listview.activity-list .e-list-item.e-active,
.e-listview.activity-list .e-list-item.e-focused {
    background: transparent !important;
}

/* SfListView as settings-nav-list: strip list defaults */
.e-listview.settings-nav-list {
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
}
.e-listview.settings-nav-list .e-list-item {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    line-height: normal !important;
}
.e-listview.settings-nav-list .e-list-item:hover,
.e-listview.settings-nav-list .e-list-item.e-active,
.e-listview.settings-nav-list .e-list-item.e-focused {
    background: transparent !important;
}
