/* ===== CSS VARIABLES - Soft & Modern Design System ===== */
:root {
    /* Primary Colors - Indigo */
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary-color: #8B5CF6;
    --accent-color: #A5B4FC;

    /* Status Colors */
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;

    /* Backgrounds */
    --background-light: #FFFFFF;
    --background-gray: #FAFAFA;
    --background-dark: #F3F4F6;
    --background-card: #FFFFFF;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    /* Borders */
    --border-color: #E5E7EB;
    --border-emphasis: #D1D5DB;

    /* Shadows - Soft & subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Border Radius - Rounded & friendly */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    /* Backgrounds */
    --background-light: #27272A;
    --background-gray: #18181B;
    --background-dark: #09090B;
    --background-card: #27272A;

    /* Text Colors */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    /* Borders */
    --border-color: #3F3F46;
    --border-emphasis: #52525B;

    /* Primary adjusted for dark mode */
    --primary-color: #818CF8;
    --primary-dark: #6366F1;
    --accent-color: #C7D2FE;

    /* Shadows for dark mode */
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== DESKTOP STYLES (DEFAULT) ===== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background-gray);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    /* Remove or comment out these lines for body if they're causing issues */
    /* display: flex; */
    /* flex-direction: column; */
    min-height: 100vh; /* Use min-height: 100vh instead of height: 100% for better flexibility */
    width: 100%; /* Ensure body takes full width of viewport */
}

html, body {
    height: 100%;
}

/* Login Page - Soft & Modern */
.login-body {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

[data-theme="dark"] .login-body {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #3730A3 100%);
}

.login-container {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366F1, #8B5CF6, #A855F7);
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.375rem;
    letter-spacing: -0.025em;
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--background-gray);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

[data-theme="dark"] .error-message {
    background: linear-gradient(135deg, #450A0A, #7F1D1D);
    border-color: #991B1B;
    color: #FCA5A5;
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.security-notice {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.theme-toggle {
    position: relative;
    top: auto;
    right: auto;
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.125rem;
}

.theme-toggle:hover {
    background: var(--background-light);
    border-color: var(--border-emphasis);
    box-shadow: var(--shadow-sm);
}

/* Header - Soft & Modern */
.header {
    background: var(--background-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .header {
    background: rgba(39, 39, 42, 0.95);
}

.header-container {
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 36px;
    width: auto;
    border-radius: var(--radius-md);
}

.brand-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: var(--transition);
}

.brand-text:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

/* Links - add this section */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* Dark theme links - lighter blue for better contrast */
[data-theme="dark"] a {
    color: var(--accent-color);
}

/* Fix strong tags in services section */
strong {
    color: var(--text-primary);
}

/* Fix list items in services */
li {
    color: var(--text-primary);
}

/* Fix any remaining text elements */
.service-details {
    color: var(--text-primary);
}

.customer-owned-section {
    color: var(--text-primary);
}

/* Navigation - Soft & Modern */
.navigation {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-bottom: none;
    box-shadow: var(--shadow-md);
}

.nav-container {
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.header-nav-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.header-nav-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    border-radius: var(--radius-md);
    min-width: 80px;
    text-align: center;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.nav-item.active > .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    transition: transform 0.3s ease;
}

/* Dropdown Menus - Soft & Modern */
.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1000;
    padding: 0.5rem;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.dropdown-link:hover {
    background: var(--background-gray);
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-item:last-child .dropdown-link {
    border-bottom: none;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Main Content */
.main-content {
    
    margin: 0 auto;
    padding: 2rem 1rem 2rem 1rem; 
    flex: 1;
}

/* Dashboard Cards - Soft & Modern */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.dashboard-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    min-height: auto;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-emphasis);
}

.card-header {
    background: var(--background-gray);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.card-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.card-content {
    padding: 1.25rem;
}

.card-body {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.card-actions {
    padding: 0.875rem 1.25rem;
    background: var(--background-gray);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: var(--background-gray);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.service-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-link {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.service-extra {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--background-light);
    border: 1px dotted var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Custom Dropdown Menus for Terms/Privacy */
.dropdown-menu-custom {
    position: relative;
    display: inline-block;
    margin: 0 0.25rem;
}

.dropdown-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    background: var(--primary-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 2px;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--background-gray);
    color: var(--primary-color);
}

/* Sales Totals Loading State */
#salesTotalsContainer {
    min-height: 200px;
    transition: var(--transition);
}

/* Enhanced Alert Styling */
.alert .btn {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Form Styling Improvements */
.form-input[style*="width: auto"] {
    min-width: 120px;
    display: inline-block;
}

/* Service Content Improvements */
.service-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== MODERN MODALS - Soft & Modern ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.modal-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.modal-show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-sm { width: 400px; }
.modal-md { width: 600px; }
.modal-lg { width: 800px; }

.modal-header {
    background: var(--background-gray);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-close {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--background-gray);
    border-color: var(--border-emphasis);
    color: var(--text-primary);
}

.modal-content {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Loading Overlay for page refresh */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-container,
.nav-container,
.main-content,
.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem; /* Adjust padding as needed for default spacing */
}

/* Modal responsive design */
@media (max-width: 767px) {
	
    .modal-container {
        width: 95vw !important;
        margin: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
}

/* ===== INDEX PAGE SPECIFIC STYLES ===== */

/* Welcome Section */
.welcome-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.welcome-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.welcome-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.welcome-value {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Master Account Section */
.edit-account-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.edit-account-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.master-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.account-value {
    color: var(--text-primary);
    font-size: 1rem;
}

.card-section-header {
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    padding: 0.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Tax Information */
.w9-upload-alert {
    min-height: 120px;
    text-align: left;
    padding: 1rem;
}

.tax-info-item {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.pending-approval {
    color: var(--warning-color);
}

/* Payout Alert */
.payout-alert {
    text-align: left;
    padding: 1rem;
    min-height: 190px;
}

/* Sales Controls */
.sales-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sales-label {
    font-weight: 600;
    font-size: 1rem;
	color: var(--text-primary);
}



.sales-month-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-light);
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Services Section - Soft & Modern */
.service-section {
    margin-bottom: 1.25rem;
}

.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-color);
}

.service-item {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.9375rem;
}

.service-separator {
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin: 1.25rem 0;
}

/* Membership Sites */
.membership-sites {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-site-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.membership-site-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-owned-section {
    margin-left: 0;
    padding: 0.75rem;
    border: 1px dotted var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-gray);
}

.term-privacy-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.membership-spacer {
    height: 1rem;
}

/* Site Controls */
.site-options-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.15);
    display: inline-flex;
    align-items: center;
}

.site-options-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
}

.site-options-btn.disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.site-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.site-link:hover {
    text-decoration: underline;
}

.site-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.external-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.external-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Estore Sites */
.estore-site-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.estore-site-link {
    flex-shrink: 0;
}

.estore-site-info {
    flex: 1;
}

/* VS Sites */
.vs-site-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.vs-site-link {
    flex-shrink: 0;
}

.vs-site-info {
    flex: 1;
}

/* EZ-Cart Sites */
.ezcart-site-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ezcart-site-link {
    flex-shrink: 0;
}

.ezcart-site-info {
    flex: 1;
}

.ezcart-form {
    display: inline;
}

/* Performers Sites */
.performers-site-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.performers-site-link {
    flex-shrink: 0;
}

.performers-site-info {
    flex: 1;
}

/* Master Account Full Width */
.master-account-full {
    width: 100%;
    margin-bottom: 2rem;
}

/* Modal Actions */
.modal-actions {
    margin-top: 1rem;
    text-align: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Buttons - Soft & Modern */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-gray);
    border-color: var(--border-emphasis);
    text-decoration: none;
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: #d97706;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

.btn-error {
    background: var(--error-color);
    color: white;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
}

.btn-error:hover {
    background: #dc2626;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Tables */
.table-container {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}

.table th {
    background: var(--background-gray);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:hover {
    background: var(--background-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table inside card - no extra border radius */
.card-content .table-container {
    border-radius: var(--radius-md);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-group {
    max-width: 500px;
}

.search-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-row .form-input {
    flex: 1;
}

/* ===== TABLE INFO ===== */
.table-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background-gray);
    border-radius: var(--radius-md);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    background: var(--background-gray);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-private {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.badge-system {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: #BFDBFE;
}

[data-theme="dark"] .badge-private {
    background: #78350F;
    color: #FCD34D;
    border-color: #B45309;
}

[data-theme="dark"] .badge-system {
    background: #1E3A8A;
    color: #93C5FD;
    border-color: #2563EB;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.status-badge.status-active {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.status-inactive {
    background: #FEE2E2;
    color: #991B1B;
}

[data-theme="dark"] .status-badge.status-active {
    background: #14532D;
    color: #86EFAC;
}

[data-theme="dark"] .status-badge.status-inactive {
    background: #7F1D1D;
    color: #FCA5A5;
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--background-gray);
    border-color: var(--border-emphasis);
    text-decoration: none;
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== ACTIONS CELL ===== */
.actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
}

/* ===== TEXT UTILITIES ===== */
.text-muted {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Alerts - Soft & Modern */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-error {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-warning {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #FDE68A;
    color: #92400E;
}

.alert-success {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 1px solid #BBF7D0;
    color: #166534;
}

.alert-info {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

[data-theme="dark"] .alert-error {
    background: linear-gradient(135deg, #450A0A, #7F1D1D);
    border-color: #991B1B;
    color: #FCA5A5;
}

[data-theme="dark"] .alert-warning {
    background: linear-gradient(135deg, #451A03, #78350F);
    border-color: #B45309;
    color: #FCD34D;
}

[data-theme="dark"] .alert-success {
    background: linear-gradient(135deg, #052E16, #14532D);
    border-color: #166534;
    color: #86EFAC;
}

[data-theme="dark"] .alert-info {
    background: linear-gradient(135deg, #1E3A5F, #1E40AF);
    border-color: #2563EB;
    color: #93C5FD;
}

/* Footer - Soft & Modern */
.footer {
    background: var(--background-dark);
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background: #09090B;
    border-top-color: #27272A;
}

.footer-container {
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.footer-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition);
    padding: 0.125rem 0;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.version-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Login Page Animations - Soft & Modern */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    filter: blur(1px);
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    background: rgba(255, 255, 255, 0.06);
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 55%;
    right: 8%;
    animation-delay: 2.5s;
    background: rgba(255, 255, 255, 0.05);
}

.shape:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 15%;
    left: 15%;
    animation-delay: 5s;
    background: rgba(255, 255, 255, 0.07);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-25px) scale(1.05);
        opacity: 1;
    }
}

/* Login Button Loading State */
.login-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Login page theme toggle - positioned absolutely */
.login-container .theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ===== SALES TOTALS TABLE STYLING ===== */

/* Sales totals info alert */
.sales-update-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

[data-theme="dark"] .sales-update-info {
    background: #1a237e;
    border-color: #3f51b5;
    color: #90caf9;
}

/* Site URL styling */
.site-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Amount styling - MATCHING YOUR ORIGINAL COLORS */
.amount {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

/* RED for negative amounts (chargebacks, deductions) */
.amount.negative {
    color: #FF0000;
}

/* GREEN for reserve returns */
.amount.positive-alt {
    color: #00CC00;
}

/* BLACK/Bold for gross sales and net totals */
.amount.positive,
.amount.total {
    color: var(--text-primary);
    font-weight: bold;
}

/* Totals row styling */
.totals-row {
    background: var(--background-gray) !important;
    border-top: 2px solid var(--primary-color) !important;
}

.totals-row:hover {
    background: var(--background-gray) !important;
}

.totals-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    padding-right: 1rem;
	vertical-align: middle;
}

.totals-amount {
    font-size: 1rem;
    font-weight: 700 !important;
	text-align: right;
}

.sales-table .totals-amount {
    text-align: right !important;
}

/* Table column widths for sales totals */
.sales-table th:nth-child(1),
.sales-table td:nth-child(1) { width: 150px; }

.sales-table th:nth-child(2),
.sales-table td:nth-child(2) { width: 200px; }

.sales-table th:nth-child(3),
.sales-table td:nth-child(3),
.sales-table th:nth-child(4),
.sales-table td:nth-child(4),
.sales-table th:nth-child(5),
.sales-table td:nth-child(5),
.sales-table th:nth-child(6),
.sales-table td:nth-child(6),
.sales-table th:nth-child(7),
.sales-table td:nth-child(7),
.sales-table th:nth-child(8),
.sales-table td:nth-child(8) { 
    width: 120px; 
    text-align: right;
}

.sales-table .amount-header {
    text-align: right;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MODAL BODY (for cfwindow content) ===== */
.modal-body {
    background: var(--background-light);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.modal-content-wrapper {
    padding: 1.5rem;
    max-height: 100%;
    overflow-y: auto;
}

.modal-content-wrapper .modal-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: block;
}

.modal-content-wrapper .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.modal-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--background-gray);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Modal inner content (for fetch-loaded content) */
.modal-inner-content {
    padding: 0;
}

.modal-inner-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-inner-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

/* Modal loading state */
.modal-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.modal-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.modal-loading p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ===== HELP ICON ===== */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: help;
    transition: var(--transition);
}

.help-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== STATUS TOGGLE ===== */
.status-toggle {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.status-toggle:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.status-toggle:hover .status-badge {
    box-shadow: var(--shadow-md);
}

/* ===== FORM GRID ===== */
.form-modern {
    max-width: 600px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 767px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FORM SELECT ===== */
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    background: var(--background-gray);
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--background-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A1A1AA' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* ===== FORM ERROR ===== */
.form-error {
    display: block;
    color: var(--error-color);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* ===== REQUIRED INDICATOR ===== */
.required {
    color: var(--error-color);
    font-weight: 600;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===== DELETE CONFIRMATION ===== */
.delete-confirmation {
    text-align: center;
    padding: 2rem 1rem;
}

.delete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--error-color);
    background: #FEE2E2;
    border: 3px solid #FECACA;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .delete-icon {
    background: #7F1D1D;
    border-color: #991B1B;
    color: #FCA5A5;
}

.delete-confirmation h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.delete-confirmation p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.delete-confirmation .form-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile - max-width: 767px */
@media (max-width: 767px) {
	body { /* Add or ensure these are here for mobile */
        display: flex;
        flex-direction: column;
    }
	
	.nav-container {
		/* NO position: relative; here */
		margin: 0 auto;
		padding: 0 1rem;
		position: relative;
	}
	
	.nav-item {
        /* On mobile, we primarily want it to act as a container for its link and potential dropdown. */
        /* The global `position: relative;` is fine and doesn't usually cause issues on mobile. */
        /* We just need to ensure no other desktop-specific flex properties interfere. */
        margin: 0; /* Ensures no unexpected default margins push items around */
        width: 100%; /* Ensures each nav-item takes full width of the mobile menu */
    }
	
	.nav-list {
        /* Base styles for the menu (when closed - off-screen) */
        display: flex;             /* Use flex to stack menu items */
        flex-direction: column;
        position: absolute;
        top: 100%;                 /* Positions it directly below the nav bar */
        left: 0;                   /* <--- Anchors it to the LEFT edge */
        width: 75%;                /* <--- IMPORTANT: Set a specific width for the menu (e.g., 75% of viewport width) */
        max-width: 300px;          /* <--- IMPORTANT: Cap the menu's width (for larger phones/small tablets) */
        /* REMOVED 'right: 0;' because it conflicts with 'left' and 'width' to determine element size */
        
        background: var(--primary-dark); /* Using a darker background for the menu drawer */
        border-top: 1px solid var(--primary-color);
        z-index: 1050; 
            /* <--- High z-index to ensure it's on top of content */
        padding-bottom: 1rem;
		padding-top: 11rem;
        box-shadow: var(--shadow-lg); /* Add shadow for visual depth */
        max-height: calc(100vh - 60px); /* Make it scrollable if content overflows (adjust 60px if your header height is different) */
        overflow-y: auto;          /* Enable vertical scrolling */
        
        /* --- Animation for sliding out from LEFT (initial hidden state) --- */
        transform: translateX(-100%); /* Start completely off-screen to the LEFT */
        opacity: 0;                /* Start invisible */
        visibility: hidden;        /* Hide from screen readers and interaction when closed */
        transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s; /* Smooth transition */
        pointer-events: none;      /* Disable clicks when menu is hidden */
    }

    /* Styles for when the menu is OPEN (triggered by .mobile-open class from JS) */
    .nav-list.mobile-open {
        transform: translateX(0); /* <--- Slide into view (to its 'left: 0' position) */
        opacity: 1;                /* Fade in */
        visibility: visible;       /* Make visible for screen readers and interaction */
        pointer-events: auto;      /* Enable clicks when menu is open */
        /* display: flex; is already on .nav-list, so no need to repeat it here. */
    }
	
	.nav-link {
        display: flex;
        flex-direction: row; /* <--- CHANGE: Arrange icon and text side-by-side */
        align-items: center; /* Align items vertically in the center */
        justify-content: flex-start; /* <--- CHANGE: Align items to the left */
        padding: 0.75rem 1rem;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: var(--transition);
        /* Remove min-width and text-align as flexbox handles alignment */
        border-bottom: 1px solid var(--primary-dark); /* Add a separator between items */
    }
    /* ... */
    /* Add this rule to remove the border on the last item */
    .nav-list .nav-item:last-child .nav-link {
        border-bottom: none;
    }
	
	.header-nav-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: flex; /* Make it a flex container for the lines */
        flex-direction: column; /* Stack lines vertically */
        justify-content: space-around; /* Distribute lines vertically */
        align-items: center; /* Center lines horizontally */
        width: 40px; /* Width of the hamburger button area */
        height: 40px; /* Height of the hamburger button area */
        background: none;
        border: none;
        padding: 0.5rem; /* Adjust padding as needed */
        cursor: pointer;
        z-index: 1060; /* Ensure it's on top */
        position: relative; /* For the lines positioning if needed, or z-index */
    }

    .hamburger-line {
        display: block;
        width: 80%; /* Width of each line */
        height: 3px; /* Thickness of each line */
        background-color: var(--primary-color); /* Color of the lines */
        border-radius: 2px; /* Slightly rounded ends */
        transition: all 0.3s ease; /* Smooth transition for transformation */
    }
	
	.mobile-menu-toggle.active .hamburger-line.top {
        transform: translateY(8px) rotate(45deg); /* Move down and rotate */
    }

    .mobile-menu-toggle.active .hamburger-line.middle {
        opacity: 0; /* Fade out middle line */
        transform: translateX(-10px); /* Move slightly to the side to ensure full fade */
    }

    .mobile-menu-toggle.active .hamburger-line.bottom {
        transform: translateY(-8px) rotate(-45deg); /* Move up and rotate */
    }
	
    .dropdown {
        /* These styles will override the desktop dropdown styles when the menu is open on mobile */
        position: static; /* Important for mobile menu dropdowns to stack vertically */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--primary-dark); /* Lighter shade than parent menu */
        border-radius: 0;
        min-width: unset; /* Remove min-width on mobile */
    }

    .dropdown-link {
        display: block; /* Ensure it behaves like a block element */
        text-align: left; /* <--- ADD THIS: Explicitly align text to the left */
        padding: 0.75rem 3rem; /* Consolidate padding and keep indent */
        color: white; /* Ensure text is visible in dark submenu */
        text-decoration: none;
        transition: var(--transition);
       
    }
    
	.dropdown-item {
        list-style: none; /* Inherited, but good to confirm */
        border-bottom: none; /* <--- ADD THIS to remove any border on the item itself */
    }
	
    .dropdown-link:hover {
        background: var(--primary-color);
    }

    .header-content {
		justify-content: space-between;
        height: 60px;
    }
	
	.header-logo-section {
        display: flex;
        align-items: center;
        gap: 1rem;
        /* You might want to remove this if you want the toggle to be outside this section for full control */
    }
	
	.header-logo-section .mobile-menu-toggle {
        margin-left: auto; /* Pushes toggle to the right within its flex container */
        order: 2; /* Puts it after the logo */
    }
	
	.header-nav-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem; /* Adjust font size */
        margin-right: 3rem; /* Remove specific margin if .header-content handles spacing */
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-link {
        flex-direction: column;
        align-items: stretch;
    }

    .user-section {
        /* Ensure user section content is visible and laid out well */
        gap: 0.5rem;
    }
    .user-info {
        display: none; /* Keep hidden as per your original mobile rule */
    }

    .brand-text {
        font-size: 1.25rem;
    }

    /* Login Page Mobile Styles */
    .login-container {
        margin: 1rem;
        padding: 1.5rem;
        max-width: 100%;
    }

    .logo {
        width: 100px;
    }

    .app-title {
        font-size: 1.25rem;
    }

    .app-subtitle {
        font-size: 0.8rem;
    }

    .form-input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .login-button {
        padding: 1rem;
        font-size: 1rem;
    }

    .theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }

    .shape:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .shape:nth-child(2) {
        width: 80px;
        height: 80px;
    }

    .shape:nth-child(3) {
        width: 40px;
        height: 40px;
    }
	
	 .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sales-table {
        min-width: 600px; /* Force minimum width for proper display */
    }
    
    .sales-table th,
    .sales-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .amount {
        font-size: 0.7rem;
    }
    
    .totals-label,
    .totals-amount {
        font-size: 0.875rem;
    }
    
    .site-url {
        font-size: 0.75rem;
    }
    
    .sales-update-info {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Tablet - max-width: 991px */
@media (max-width: 991px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .nav-container {
        padding: 0 0.75rem;
    }

    .main-content {
    margin: 0 auto;
    padding: 2.5rem 1rem 2rem 1rem; 
    flex: 1;
}

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .sales-table th,
    .sales-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
		
    }
    
    .amount {
        font-size: 0.8rem;
    }
    
    .site-url {
        font-size: 0.8rem;
    }
}

/* Tablet Landscape - max-width: 991px and landscape orientation */
@media (max-width: 991px) and (orientation: landscape) {
    .header-content {
        height: 60px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .main-content {
		margin: 0 auto;
		padding: 2.5rem 1rem 2rem 1rem; 
		flex: 1;
	}
}

/* ===== ACCOUNTING TAB STYLES ===== */

/* Details Grid - for view-only displays */
.details-grid {
    display: grid;
    gap: 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.detail-value code {
    background: var(--background-gray);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Section Divider - for form/view sections */
.section-divider {
    margin: 1.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Form Section - for grouped form fields */
.form-section {
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Text Color Utilities */
.text-success {
    color: var(--success-color) !important;
}

.text-error {
    color: var(--error-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* Filter Bar - for payouts index page */
.filter-bar {
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 180px;
}

.filter-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 767px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .detail-label {
        font-size: 0.8125rem;
    }
}

/* Payout Summary Box */
.payout-summary-box {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    max-width: 400px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-row strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.summary-highlight {
    background: var(--background-light);
    margin: 0.5rem -1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

.summary-highlight span {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-highlight strong {
    font-size: 1.125rem;
}

/* Form Static Value - for read-only form displays */
.form-static-value {
    padding: 0.75rem 1rem;
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--text-primary);
    min-height: 42px;
}

/* Status Badge - Pending */
.status-badge.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

[data-theme="dark"] .status-badge.status-pending {
    background: #78350F;
    color: #FCD34D;
}

/* Table Totals Row */
.table-totals-row {
    background: var(--background-gray) !important;
    font-weight: 600;
}

.table-totals-row:hover {
    background: var(--background-gray) !important;
}

.table-totals-row td {
    border-top: 2px solid var(--border-emphasis);
}

/* Table Group Header */
.table-group-header th {
    font-size: 1rem;
    padding: 1rem;
}

/* Table Divider */
.table-divider td {
    padding: 0 !important;
    border-bottom: none !important;
}

/* Modal Inner - wrapper for modal content */
.modal-inner {
    padding: 0;
}

/* Form Error Text - validation error messages */
.form-error-text {
    display: block;
    color: var(--error-color);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Form Input with Error State */
.form-input.form-error,
.form-select.form-error {
    border-color: var(--error-color);
    background: #FEF2F2;
}

[data-theme="dark"] .form-input.form-error,
[data-theme="dark"] .form-select.form-error {
    background: #450A0A;
}

/* Comparison Table - for side-by-side comparisons */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.comparison-table th {
    background: var(--background-gray);
    font-weight: 600;
    font-size: 0.875rem;
}

.comparison-table .mismatch {
    color: var(--error-color);
    font-weight: 600;
}

/* AJAX Loading Container */
.ajax-content {
    min-height: 100px;
    transition: var(--transition);
}

.ajax-content:empty::before {
    content: '';
    display: block;
    height: 100px;
}

/* Payout Results Container */
.payout-results {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== END ACCOUNTING TAB STYLES ===== */

/* ===== CLIENT SUPPORT (TICKET SYSTEM) STYLES ===== */

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    background: #DCFCE7;
    border: 3px solid #BBF7D0;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .success-icon {
    background: #14532D;
    border-color: #166534;
    color: #86EFAC;
}

.success-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Form Textarea */
.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Ticket Preview in table */
.ticket-preview {
    cursor: help;
    color: var(--text-primary);
}

/* Original Ticket Display */
.ticket-original {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 1rem;
}

.ticket-original-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ticket-original-text {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Ticket History */
.ticket-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.history-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.history-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-content {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Checkbox Label */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* ===== END CLIENT SUPPORT STYLES ===== */

/* Full-width admin layout - no max-width constraint */
@media (min-width: 1024px) {
    .header-container,
    .nav-container,
    .main-content,
    .footer-container {
        max-width: none; /* Full width for admin dashboards */
        padding: 0 2rem;
    }

    .main-content {
        max-width: none;
        padding: 2rem;
    }
}

/* ===== FLATPICKR DATE PICKER THEME ===== */

/* Flatpickr base styling for light/dark mode */
.flatpickr-calendar {
    background: var(--background-light) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-xl) !important;
    border-radius: var(--radius-lg) !important;
    font-family: inherit !important;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
    border-color: var(--border-color) transparent !important;
}

.flatpickr-months {
    background: var(--background-gray) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 0.5rem 0 !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
}

.flatpickr-current-month {
    color: var(--text-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--background-light) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
}

.flatpickr-current-month input.cur-year {
    color: var(--text-primary) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--primary-color) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: var(--text-secondary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--primary-color) !important;
}

.flatpickr-weekdays {
    background: var(--background-light) !important;
}

span.flatpickr-weekday {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
}

.flatpickr-day:hover {
    background: var(--background-gray) !important;
    border-color: var(--border-color) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-color) !important;
}

.flatpickr-day.today:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-muted) !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: var(--text-muted) !important;
    background: transparent !important;
}

/* Input styling for Flatpickr */
.flatpickr-input {
    cursor: pointer;
}

/* ===== END FLATPICKR THEME ===== */

/* ===== FRAUD SYSTEM STYLES ===== */

/* Filter Grid - for fraud search form */
.filter-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-actions {
    margin-left: auto;
}

/* Small form inputs */
.form-input-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Icon Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Link Muted - for clickable filter links */
.link-muted {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.link-muted:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Status Badge - Chargeback */
.status-badge.status-chargeback {
    background: #FEE2E2;
    color: #991B1B;
    margin-left: 0.375rem;
    font-size: 0.6875rem;
}

[data-theme="dark"] .status-badge.status-chargeback {
    background: #7F1D1D;
    color: #FECACA;
}

/* Chargeback Section */
.chargeback-section {
    margin-bottom: 1.5rem;
}

.chargeback-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.chargeback-alert.chargeback-marked {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.chargeback-alert.chargeback-unmarked {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .chargeback-alert.chargeback-marked {
    background: #450A0A;
    border-color: #7F1D1D;
}

[data-theme="dark"] .chargeback-alert.chargeback-unmarked {
    background: var(--background-gray);
    border-color: var(--border-color);
}

.chargeback-status {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.chargeback-marked .chargeback-status {
    color: #DC2626;
}

[data-theme="dark"] .chargeback-marked .chargeback-status {
    color: #FCA5A5;
}

/* Danger Button */
.btn-danger {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}

/* Success Button */
.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

/* Responsive adjustments for filter grid */
@media (max-width: 767px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        min-width: auto;
    }

    .filter-actions {
        margin-left: 0;
    }

    .chargeback-alert {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== END FRAUD SYSTEM STYLES ===== */