/* Global SalesERP Admin Theme */

:root {
    --primary: #344955;
    --primary-dark: #232F34;
    --gradient: linear-gradient(135deg, #344955 0%, #232F34 100%);
    --bg-body: #0b1117;
    --card-bg: #f8f9fa;
}

/* Base layout */
body {
    background: var(--bg-body);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    background: var(--card-bg);
    min-height: 100vh;
}

/* Page headers */
.page-header,
.d-flex.flex-wrap.flex-md-nowrap.align-items-center.pt-3.pb-2.mb-3.border-bottom {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: none !important;
}

.page-header h1,
.page-header .h2,
h1.h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i,
.page-header .h2 i,
h1.h2 i {
    color: var(--primary);
}

/* Shared KPI / stats cards */
.stats-card,
.kpi-card {
    background: var(--gradient) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.stats-card .card-body,
.kpi-card .card-body {
    padding: 1.5rem;
    background: transparent !important;
}

.stats-card h3,
.kpi-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Generic override for any old purple gradient inline styles */
div[style*="#667eea 0%, #764ba2 100%"],
section[style*="#667eea 0%, #764ba2 100%"],
.card[style*="#667eea 0%, #764ba2 100%"] {
    background: var(--gradient) !important;
}

/* Buttons */
.btn-primary,
button.btn-primary {
    background: #344955 !important;
    border-color: #344955 !important;
}

.btn-primary:hover,
button.btn-primary:hover {
    background: #232F34 !important;
    border-color: #232F34 !important;
}

/* Generic cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}



/* Filter sections */
.filter-section,
.filter-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Table headers (for sticky/order/stock tables) */
.table thead th {
    background: var(--gradient) !important;
    color: #ffffff !important;
}

/* Mobile menu toggle buttons that use gradient */
.mobile-menu-toggle {
    background: var(--gradient) !important;
    color: #ffffff !important;
    border: none;
}

