/* 
    Sellnaudit Premium Design System
    Master Entry Point - 100% ERP Visual Parity & High Contrast Tables
*/

@import 'tokens.css';
@import 'themes.css';
@import 'base.css';
@import 'layout.css';
@import 'components.css';
@import 'utilities.css';

/* Custom ERP Styles below if needed */
.valuation-pill { 
    background: var(--accent-gold-soft); 
    color: var(--accent-gold); 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-weight: 700; 
    font-family: 'JetBrains Mono', monospace; 
    display: inline-block; 
    font-size: 0.85rem; 
}

/* ──────────────────────────────────────────────────────────────────────────
   LAYOUT & TOPBAR PARITY
   ────────────────────────────────────────────────────────────────────────── */
.sn-topbar {
    height: 64px !important;
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 24px !important;
}

.fy-badge {
    background: linear-gradient(135deg, #D4A83F 0%, #A67C00 100%) !important;
    color: #000000 !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #B8860B !important;
}

.fy-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    color: rgba(0, 0, 0, 0.7) !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
}

.fy-value {
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #000000 !important;
}

.theme-switch-btn {
    background: linear-gradient(135deg, #D4A83F 0%, #A67C00 100%) !important;
    border: 1px solid #B8860B !important;
    color: #000000 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

.theme-switch-btn:hover {
    transform: rotate(20deg) scale(1.05) !important;
    color: #000000 !important;
}

.user-avatar {
    border: 2px solid var(--accent-gold) !important;
    transition: var(--transition) !important;
    padding: 2px !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   DASHBOARD QUICK ACTIONS SHORTCUT BUTTONS
   ────────────────────────────────────────────────────────────────────────── */
.dashboard-quick-action-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.03) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #ffd700 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-quick-action-btn .action-icon {
    background: rgba(212, 175, 55, 0.12) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    padding: 8px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dashboard-quick-action-btn .action-icon i,
.dashboard-quick-action-btn .action-icon svg {
    width: 22px !important;
    height: 22px !important;
    color: #ffd700 !important;
}

.dashboard-quick-action-btn .action-label {
    color: #e2e8f0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    transition: color 0.2s ease !important;
}

.dashboard-quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.06) 100%) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.dashboard-quick-action-btn:hover .action-icon {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    color: #ffd700 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}

.dashboard-quick-action-btn:hover .action-label {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

[data-bs-theme="light"] .dashboard-quick-action-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #b48a2d !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .dashboard-quick-action-btn .action-icon {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #b48a2d !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

[data-bs-theme="light"] .dashboard-quick-action-btn .action-icon i,
[data-bs-theme="light"] .dashboard-quick-action-btn .action-icon svg {
    color: #b48a2d !important;
}

[data-bs-theme="light"] .dashboard-quick-action-btn .action-label {
    color: #1e293b !important;
}

[data-bs-theme="light"] .dashboard-quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

[data-bs-theme="light"] .dashboard-quick-action-btn:hover .action-label {
    color: #b48a2d !important;
    text-shadow: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   METRIC CARD SOFT BADGES
   ────────────────────────────────────────────────────────────────────────── */
.metric-badge-pink {
    background-color: rgba(236, 72, 153, 0.12) !important;
    color: #ec4899 !important;
    border: 1px solid rgba(236, 72, 153, 0.25) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

.metric-badge-purple {
    background-color: rgba(139, 92, 246, 0.12) !important;
    color: #8b5cf6 !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

.metric-badge-blue {
    background-color: rgba(59, 130, 246, 0.12) !important;
    color: #2563eb !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

.metric-badge-cyan {
    background-color: rgba(14, 165, 233, 0.12) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

.metric-badge-green {
    background-color: rgba(34, 197, 94, 0.12) !important;
    color: #16a34a !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

[data-bs-theme="dark"] .metric-badge-blue { color: #3b82f6 !important; }
[data-bs-theme="dark"] .metric-badge-cyan { color: #38bdf8 !important; }
[data-bs-theme="dark"] .metric-badge-green { color: #22c55e !important; }

/* ──────────────────────────────────────────────────────────────────────────
   MASTER STATUS & COUNT BADGES (100% HIGH READABILITY IN DARK & LIGHT THEMES)
   ────────────────────────────────────────────────────────────────────────── */
.sn-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 12px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    border-width: 1px !important;
    border-style: solid !important;
    letter-spacing: 0.05em !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

/* Dark Mode Defaults */
.sn-status-badge.posted,
.sn-status-badge.paid,
.sn-status-badge.active,
.sn-status-badge.status-success {
    background-color: rgba(34, 197, 94, 0.18) !important;
    color: #4ade80 !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
}

.sn-status-badge.draft,
.sn-status-badge.pending,
.sn-status-badge.status-warning {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
}

.sn-status-badge.cancelled,
.sn-status-badge.unpaid,
.sn-status-badge.inactive,
.sn-status-badge.status-danger {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #ff6b6b !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
}

.sn-status-badge.secondary,
.sn-status-badge.status-secondary {
    background-color: rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
}

.sn-count-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    font-family: var(--font-mono, monospace) !important;
    border-radius: 9999px !important;
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

/* Light Mode Overrides with Maximum Contrast */
[data-bs-theme="light"] .sn-status-badge.posted,
[data-bs-theme="light"] .sn-status-badge.paid,
[data-bs-theme="light"] .sn-status-badge.active,
[data-bs-theme="light"] .sn-status-badge.status-success {
    background-color: #dcfce7 !important;
    color: #14532d !important;
    border-color: #86efac !important;
}

[data-bs-theme="light"] .sn-status-badge.draft,
[data-bs-theme="light"] .sn-status-badge.pending,
[data-bs-theme="light"] .sn-status-badge.status-warning {
    background-color: #fef3c7 !important;
    color: #78350f !important;
    border-color: #fcd34d !important;
}

[data-bs-theme="light"] .sn-status-badge.cancelled,
[data-bs-theme="light"] .sn-status-badge.unpaid,
[data-bs-theme="light"] .sn-status-badge.inactive,
[data-bs-theme="light"] .sn-status-badge.status-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

[data-bs-theme="light"] .sn-status-badge.secondary,
[data-bs-theme="light"] .sn-status-badge.status-secondary {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

[data-bs-theme="light"] .sn-count-badge {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   GOLDEN MASTER VIEW BUTTON
   ────────────────────────────────────────────────────────────────────────── */
.golden-view-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #dfb24c !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.golden-view-btn:hover {
    background: rgba(212, 175, 55, 0.25) !important;
    color: #ffd700 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}

[data-bs-theme="dark"] .golden-view-btn {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #dfb24c !important;
}

[data-bs-theme="dark"] .golden-view-btn:hover {
    background: #dfb24c !important;
    color: #111827 !important;
}

[data-bs-theme="light"] .golden-view-btn {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #b48a2d !important;
}

[data-bs-theme="light"] .golden-view-btn:hover {
    background: #b48a2d !important;
    color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   100% IDENTICAL TABLE STRUCTURE & SIZING IN LIGHT AND DARK MODE
   ────────────────────────────────────────────────────────────────────────── */
.table {
    --bs-table-padding-y: 0 !important;
    --bs-table-padding-x: 0.75rem !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: inherit !important;
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

.golden-table-card {
    border-radius: 12px !important;
    padding: 6px !important;
}

/* Heading Cell Specs (100% Identical in Light & Dark Mode) */
.table thead tr th,
.golden-table-card table thead tr th {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 6px 12px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.table thead tr th:first-child,
.golden-table-card table thead tr th:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.table thead tr th:last-child,
.golden-table-card table thead tr th:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Body Cell Specs (100% Identical in Light & Dark Mode) */
.table tbody tr,
.golden-table-tr {
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
}

.table tbody tr td,
.golden-table-tr td {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.table tbody tr td:first-child,
.golden-table-tr td:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.table tbody tr td:last-child,
.golden-table-tr td:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Badge & View Button Inner Sizing Locks */
.table td .sn-status-badge {
    padding: 3px 10px !important;
    height: 22px !important;
    line-height: 1 !important;
    font-size: 0.7rem !important;
    margin: 0 !important;
}

.table td .golden-view-btn {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ──────────────── DARK THEME COLORS ──────────────── */
[data-bs-theme="dark"] .golden-table-card {
    background: #0d111a !important;
    border: 1px solid rgba(223, 178, 76, 0.3) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .golden-table-card table thead tr th,
[data-bs-theme="dark"] .table thead tr th {
    background-color: #162033 !important;
    background: #162033 !important;
    color: #dfb24c !important;
    border: 1px solid rgba(223, 178, 76, 0.3) !important;
}

[data-bs-theme="dark"] .golden-table-tr td,
[data-bs-theme="dark"] .table tbody tr td {
    background-color: #111827 !important;
    background: #111827 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .golden-table-tr:nth-child(even) td,
[data-bs-theme="dark"] .table tbody tr:nth-child(even) td {
    background-color: #1a2336 !important;
    background: #1a2336 !important;
}

[data-bs-theme="dark"] .golden-table-tr td:first-child,
[data-bs-theme="dark"] .table tbody tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .golden-table-tr td:last-child,
[data-bs-theme="dark"] .table tbody tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .golden-table-tr:hover td,
[data-bs-theme="dark"] .table tbody tr:hover td {
    background-color: rgba(223, 178, 76, 0.18) !important;
    background: rgba(223, 178, 76, 0.18) !important;
    border-color: rgba(223, 178, 76, 0.4) !important;
}

[data-bs-theme="dark"] .golden-table-tr:hover td:first-child,
[data-bs-theme="dark"] .table tbody tr:hover td:first-child {
    border-left: 3px solid #dfb24c !important;
}

[data-bs-theme="dark"] .golden-table-tr td.table-date-text,
[data-bs-theme="dark"] .table td.table-date-text {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

[data-bs-theme="dark"] .golden-table-tr td.table-customer-text,
[data-bs-theme="dark"] .table td.table-customer-text {
    color: #f8fafc !important;
    font-weight: 600 !important;
}

[data-bs-theme="dark"] .golden-header-link {
    color: #dfb24c !important;
}

[data-bs-theme="dark"] .golden-header-link:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
}

/* ──────────────── LIGHT THEME COLORS (EXACT 1-TO-1 MIRROR TO DARK MODE) ──────────────── */
[data-bs-theme="light"] .golden-table-card {
    background: #f8fafc !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="light"] .golden-table-card table thead tr th,
[data-bs-theme="light"] .table thead tr th {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #b48a2d !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

[data-bs-theme="light"] .golden-table-tr td,
[data-bs-theme="light"] .table tbody tr td {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

[data-bs-theme="light"] .golden-table-tr:nth-child(even) td,
[data-bs-theme="light"] .table tbody tr:nth-child(even) td {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
}

[data-bs-theme="light"] .golden-table-tr td:first-child,
[data-bs-theme="light"] .table tbody tr td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .golden-table-tr td:last-child,
[data-bs-theme="light"] .table tbody tr td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .golden-table-tr:hover td,
[data-bs-theme="light"] .table tbody tr:hover td {
    background-color: rgba(212, 175, 55, 0.14) !important;
    background: rgba(212, 175, 55, 0.14) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

[data-bs-theme="light"] .golden-table-tr:hover td:first-child,
[data-bs-theme="light"] .table tbody tr:hover td:first-child {
    border-left: 3px solid #b48a2d !important;
}

[data-bs-theme="light"] .golden-table-tr td.table-date-text,
[data-bs-theme="light"] .table td.table-date-text {
    color: #475569 !important;
    font-weight: 500 !important;
}

[data-bs-theme="light"] .golden-table-tr td.table-customer-text,
[data-bs-theme="light"] .table td.table-customer-text {
    color: #0f172a !important;
    font-weight: 600 !important;
}

[data-bs-theme="light"] .golden-header-link {
    color: #b48a2d !important;
}

[data-bs-theme="light"] .golden-header-link:hover {
    color: #8c6b21 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.2) !important;
}

/* Topbar Search Input */
.sn-search {
    position: relative;
    width: 280px;
}

.sn-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 10;
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.sn-search-input {
    width: 100%;
    height: 38px;
    background: var(--bg-surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 9999px !important;
    padding-left: 42px !important;
    padding-right: 16px !important;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.sn-search-input:focus {
    outline: none;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.15) !important;
}

/* Master Form Inputs & Selects */
.form-control, .form-select, .sn-input-system {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem !important;
    transition: all 0.2s ease-in-out !important;
}

.form-control:focus, .form-select:focus, .sn-input-system:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 51, 0.15) !important;
    outline: none !important;
}

/* Master Button Styles */
.btn-primary, .sn-btn-gold {
    background: linear-gradient(135deg, #ffcc33 0%, #daa520 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2) !important;
}

.btn-primary:hover, .sn-btn-gold:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffcc33 100%) !important;
    color: #000000 !important;
}

.btn-secondary, .sn-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600 !important;
}

.btn-secondary:hover, .sn-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-primary) !important;
}

/* Master Card Styles */
.sn-card, .card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   100% MOBILE RESPONSIVE MEDIA QUERIES
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .fy-badge {
        display: none !important;
    }
    
    .sn-topbar {
        padding: 0 12px !important;
        height: 56px !important;
    }
    
    .sn-topbar h4.title-text {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    .theme-switch-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .user-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .page-container, .sn-workspace {
        padding: 12px 8px !important;
    }
    
    .dashboard-quick-action-btn {
        padding: 10px 6px !important;
    }

    .dashboard-quick-action-btn .action-icon {
        padding: 6px !important;
    }

    .dashboard-quick-action-btn .action-icon i,
    .dashboard-quick-action-btn .action-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .dashboard-quick-action-btn .action-label {
        font-size: 0.72rem !important;
    }
    
    .sn-card, .card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .table th, .table td {
        padding: 0.55rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   SWEETALERT2 LUXURY GOLD & THEMED STYLING
   ────────────────────────────────────────────────────────────────────────── */
.swal2-popup {
    border-radius: 16px !important;
    padding: 1.5rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

[data-bs-theme="dark"] .swal2-popup {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 204, 51, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

[data-bs-theme="light"] .swal2-popup {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.swal2-title {
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}

.swal2-html-container {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.swal2-confirm {
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 8px 20px !important;
}

.swal2-cancel {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 8px 20px !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   PAYMENT MODE BADGES & HIGH CONTRAST CELLS
   ────────────────────────────────────────────────────────────────────────── */
.badge-payment-mode {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.1 !important;
}

.badge-payment-cash {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.badge-payment-upi {
    background-color: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.badge-payment-card {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.badge-payment-bank {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(6, 182, 212, 0.35) !important;
}

.badge-payment-credit {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

[data-bs-theme="light"] .badge-payment-cash {
    background-color: rgba(34, 197, 94, 0.12) !important;
    color: #15803d !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

[data-bs-theme="light"] .badge-payment-upi {
    background-color: rgba(168, 85, 247, 0.12) !important;
    color: #7e22ce !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

[data-bs-theme="light"] .badge-payment-card {
    background-color: rgba(59, 130, 246, 0.12) !important;
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

[data-bs-theme="light"] .badge-payment-bank {
    background-color: rgba(6, 182, 212, 0.12) !important;
    color: #0369a1 !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
}

[data-bs-theme="light"] .badge-payment-credit {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.sn-grid-table th {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--accent-gold) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    padding: 12px 14px !important;
    white-space: nowrap !important;
}

[data-bs-theme="light"] .sn-grid-table th {
    background: #f1f5f9 !important;
    color: #b48a2d !important;
}

.sn-grid-table td {
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
    vertical-align: middle !important;
}

