/* ==============================================================================
   Jewellery ERP & Billing SaaS - Premium UI Stylesheet
   ============================================================================== */

:root {
    --erp-primary: #D4AF37;
    --erp-primary-dark: #B8941F;
    --erp-primary-light: #F4E6A1;
    --erp-secondary: #2C3E50;
    --erp-success: #28a745;
    --erp-danger: #dc3545;
    --erp-warning: #ffc107;
    --erp-info: #17a2b8;
    --erp-dark: #1a1a2e;
    --erp-sidebar-bg: #1a1a2e;
    --erp-sidebar-width: 260px;
    --erp-sidebar-collapsed-width: 70px;
    --erp-content-bg: #f4f6f9;
    --erp-card-bg: #ffffff;
    --erp-text-primary: #2c3e50;
    --erp-text-secondary: #6c757d;
    --erp-border-color: #e0e0e0;
    --erp-shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --erp-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --erp-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --erp-radius: 12px;
    --erp-radius-sm: 8px;
    --erp-transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --erp-content-bg: #0f0f1e;
    --erp-card-bg: #1a1a2e;
    --erp-text-primary: #e0e0e0;
    --erp-text-secondary: #a0a0a0;
    --erp-border-color: #2a2a3e;
    --erp-shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --erp-shadow: 0 4px 12px rgba(0,0,0,0.3);
    --erp-shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--erp-content-bg);
    color: var(--erp-text-primary);
    transition: var(--erp-transition);
    overflow-x: hidden;
}

/* ==============================================================================
   LAYOUT
   ============================================================================== */
.erp-wrapper {
    display: flex;
    min-height: 100vh;
}

.erp-sidebar {
    width: var(--erp-sidebar-width);
    background: var(--erp-sidebar-bg);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    transition: var(--erp-transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.erp-sidebar.collapsed {
    width: var(--erp-sidebar-collapsed-width);
}

.erp-sidebar.collapsed .sidebar-text,
.erp-sidebar.collapsed .sidebar-brand-text,
.erp-sidebar.collapsed .sidebar-section-title {
    display: none;
}

.erp-sidebar.collapsed .nav-link {
    text-align: center;
    justify-content: center;
}

.erp-main {
    flex: 1;
    margin-left: var(--erp-sidebar-width);
    transition: var(--erp-transition);
    min-height: 100vh;
}

.erp-main.expanded {
    margin-left: var(--erp-sidebar-collapsed-width);
}

/* ==============================================================================
   SIDEBAR
   ============================================================================== */
.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.sidebar-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sidebar-brand-text small {
    font-size: 11px;
    color: var(--erp-primary);
    font-weight: 400;
    display: block;
}

.sidebar-section-title {
    padding: 16px 24px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.erp-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--erp-transition);
    white-space: nowrap;
    position: relative;
}

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

.erp-sidebar .nav-link.active {
    color: var(--erp-primary);
    background: rgba(212,175,55,0.1);
}

.erp-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--erp-primary);
}

.erp-sidebar .nav-link i {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.erp-sidebar .nav-badge {
    margin-left: auto;
    background: var(--erp-danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

/* ==============================================================================
   TOPBAR / NAVBAR
   ============================================================================== */
.erp-topbar {
    background: var(--erp-card-bg);
    height: 64px;
    box-shadow: var(--erp-shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1030;
    gap: 16px;
}

.topbar-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--erp-text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--erp-transition);
}

.topbar-toggle:hover {
    background: var(--erp-content-bg);
}

.topbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--erp-border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--erp-content-bg);
    color: var(--erp-text-primary);
    transition: var(--erp-transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--erp-text-secondary);
    font-size: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--erp-content-bg);
    color: var(--erp-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--erp-transition);
    position: relative;
}

.topbar-icon-btn:hover {
    background: var(--erp-primary-light);
    color: var(--erp-primary-dark);
}

.topbar-icon-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--erp-danger);
    border-radius: 50%;
    border: 2px solid var(--erp-card-bg);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 30px;
    transition: var(--erp-transition);
}

.topbar-user:hover {
    background: var(--erp-content-bg);
}

.topbar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.topbar-user-info {
    line-height: 1.2;
}

.topbar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--erp-text-primary);
}

.topbar-user-role {
    font-size: 11px;
    color: var(--erp-text-secondary);
}

/* ==============================================================================
   CONTENT AREA
   ============================================================================== */
.erp-content {
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--erp-text-primary);
    margin: 0;
}

.page-subtitle {
    font-size: 14px;
    color: var(--erp-text-secondary);
    margin-top: 4px;
}

/* ==============================================================================
   CARDS
   ============================================================================== */
.erp-card {
    background: var(--erp-card-bg);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow);
    border: none;
    transition: var(--erp-transition);
    overflow: hidden;
}

.erp-card:hover {
    box-shadow: var(--erp-shadow-lg);
}

.erp-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--erp-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.erp-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--erp-text-primary);
    margin: 0;
}

.erp-card-body {
    padding: 24px;
}

/* ==============================================================================
   STAT CARDS
   ============================================================================== */
.stat-card {
    background: var(--erp-card-bg);
    border-radius: var(--erp-radius);
    padding: 24px;
    box-shadow: var(--erp-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--erp-transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--erp-shadow-lg);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--erp-primary);
}

.stat-card.stat-success::before { background: var(--erp-success); }
.stat-card.stat-danger::before { background: var(--erp-danger); }
.stat-card.stat-info::before { background: var(--erp-info); }
.stat-card.stat-warning::before { background: var(--erp-warning); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.bg-gold {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    color: var(--erp-primary-dark);
}

.stat-icon.bg-success-soft {
    background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(40,167,69,0.05));
    color: var(--erp-success);
}

.stat-icon.bg-danger-soft {
    background: linear-gradient(135deg, rgba(220,53,69,0.15), rgba(220,53,69,0.05));
    color: var(--erp-danger);
}

.stat-icon.bg-info-soft {
    background: linear-gradient(135deg, rgba(23,162,184,0.15), rgba(23,162,184,0.05));
    color: var(--erp-info);
}

.stat-icon.bg-warning-soft {
    background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,193,7,0.05));
    color: var(--erp-warning);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--erp-text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--erp-text-primary);
    line-height: 1.2;
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up { color: var(--erp-success); }
.stat-change.down { color: var(--erp-danger); }

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.btn-gold {
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--erp-radius-sm);
    transition: var(--erp-transition);
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.btn-gold:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    border: 2px solid var(--erp-primary);
    color: var(--erp-primary-dark);
    background: transparent;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: var(--erp-radius-sm);
    transition: var(--erp-transition);
}

.btn-outline-gold:hover {
    background: var(--erp-primary);
    color: #fff;
}

.btn-soft {
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--erp-transition);
}

.btn-soft:hover {
    opacity: 0.85;
}

.btn-soft-success { background: rgba(40,167,69,0.12); color: var(--erp-success); }
.btn-soft-danger { background: rgba(220,53,69,0.12); color: var(--erp-danger); }
.btn-soft-warning { background: rgba(255,193,7,0.12); color: #856404; }
.btn-soft-info { background: rgba(23,162,184,0.12); color: var(--erp-info); }
.btn-soft-primary { background: rgba(212,175,55,0.12); color: var(--erp-primary-dark); }

/* ==============================================================================
   TABLES
   ============================================================================== */
.erp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.erp-table thead th {
    background: var(--erp-content-bg);
    color: var(--erp-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--erp-border-color);
    white-space: nowrap;
}

.erp-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--erp-border-color);
    color: var(--erp-text-primary);
    font-size: 14px;
    vertical-align: middle;
}

.erp-table tbody tr {
    transition: var(--erp-transition);
}

.erp-table tbody tr:hover {
    background: rgba(212,175,55,0.04);
}

.erp-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==============================================================================
   FORMS
   ============================================================================== */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--erp-text-primary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--erp-danger);
}

.form-control, .form-select {
    border: 1px solid var(--erp-border-color);
    border-radius: var(--erp-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--erp-text-primary);
    background: var(--erp-card-bg);
    transition: var(--erp-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
    background: var(--erp-card-bg);
}

.form-control::placeholder {
    color: var(--erp-text-secondary);
}

.input-group-text {
    background: var(--erp-content-bg);
    border: 1px solid var(--erp-border-color);
    color: var(--erp-text-secondary);
    font-size: 14px;
}

/* ==============================================================================
   LOGIN PAGE
   ============================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-card {
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.login-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--erp-primary), var(--erp-primary-dark));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--erp-text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--erp-text-secondary);
    margin-bottom: 32px;
}

.login-demo-credentials {
    background: var(--erp-content-bg);
    border-radius: 10px;
    padding: 16px;
    margin-top: 24px;
    font-size: 12px;
}

.login-demo-credentials h6 {
    color: var(--erp-text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.login-demo-credentials .credential-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--erp-text-primary);
}

.login-demo-credentials .credential-row span:first-child {
    font-weight: 600;
}

.login-demo-credentials .credential-row span:last-child {
    color: var(--erp-primary-dark);
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

/* ==============================================================================
   BADGES
   ============================================================================== */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}

/* ==============================================================================
   BREADCRUMB
   ============================================================================== */
.erp-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
    font-size: 13px;
}

.erp-breadcrumb .breadcrumb-item a {
    color: var(--erp-text-secondary);
    text-decoration: none;
    transition: var(--erp-transition);
}

.erp-breadcrumb .breadcrumb-item a:hover {
    color: var(--erp-primary-dark);
}

.erp-breadcrumb .breadcrumb-item.active {
    color: var(--erp-text-primary);
    font-weight: 600;
}

.erp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--erp-text-secondary);
}

/* ==============================================================================
   EMPTY STATE
   ============================================================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--erp-border-color);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--erp-text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--erp-text-secondary);
    margin-bottom: 24px;
}

/* ==============================================================================
   LOADING SKELETON
   ============================================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--erp-content-bg) 25%, var(--erp-border-color) 50%, var(--erp-content-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 60%;
}

/* ==============================================================================
   ANIMATIONS
   ============================================================================== */
.fade-in {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==============================================================================
   THEME COLOR PREVIEW
   ============================================================================== */
.theme-color-preview {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--erp-transition);
}

.theme-color-preview:hover {
    transform: scale(1.1);
}

.theme-color-preview.active {
    border-color: var(--erp-text-primary);
}

/* ==============================================================================
   PRODUCT CARD
   ============================================================================== */
.product-card {
    background: var(--erp-card-bg);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow);
    overflow: hidden;
    transition: var(--erp-transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--erp-shadow-lg);
    transform: translateY(-4px);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--erp-content-bg);
}

.product-card-body {
    padding: 16px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--erp-text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-meta {
    font-size: 12px;
    color: var(--erp-text-secondary);
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--erp-primary-dark);
}

/* ==============================================================================
   INVOICE STYLES
   ============================================================================== */
.invoice-preview {
    background: #fff;
    padding: 40px;
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--erp-primary);
}

.invoice-shop-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--erp-text-primary);
}

.invoice-meta {
    text-align: right;
    font-size: 13px;
    color: var(--erp-text-secondary);
}

.invoice-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--erp-primary-dark);
}

/* ==============================================================================
   RESPONSIVE
   ============================================================================== */
@media (max-width: 991.98px) {
    .erp-sidebar {
        transform: translateX(-100%);
    }

    .erp-sidebar.show {
        transform: translateX(0);
    }

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

    .erp-main.expanded {
        margin-left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .erp-content {
        padding: 16px;
    }

    .topbar-search {
        display: none;
    }

    .topbar-user-info {
        display: none;
    }

    .page-title {
        font-size: 20px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 22px;
    }

    .login-card {
        padding: 32px 24px;
        margin: 16px;
    }
}

@media (max-width: 575.98px) {
    .erp-table {
        font-size: 12px;
    }

    .erp-table thead th,
    .erp-table tbody td {
        padding: 10px 8px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================================================================
   SCROLLBAR
   ============================================================================== */
.erp-sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.erp-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

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

/* ==============================================================================
   MISC
   ============================================================================== */
.text-gold {
    color: var(--erp-primary-dark) !important;
}

.bg-gold {
    background: var(--erp-primary) !important;
}

.border-gold {
    border-color: var(--erp-primary) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.divider {
    height: 1px;
    background: var(--erp-border-color);
    margin: 20px 0;
}

/* Notification dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--erp-card-bg);
    border-radius: var(--erp-radius);
    box-shadow: var(--erp-shadow-lg);
    z-index: 1050;
    display: none;
    margin-top: 8px;
}

.notification-dropdown.show {
    display: block;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--erp-border-color);
    display: flex;
    gap: 12px;
    transition: var(--erp-transition);
}

.notification-item:hover {
    background: var(--erp-content-bg);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--erp-text-primary);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12px;
    color: var(--erp-text-secondary);
}

.notification-time {
    font-size: 11px;
    color: var(--erp-text-secondary);
    margin-top: 4px;
}

.notification-unread {
    background: rgba(212,175,55,0.04);
}

.flash-message {
    display: none !important;
}

/* ==============================================================================
   PRINT STYLES
   ============================================================================== */
@media print {
    .erp-sidebar,
    .erp-navbar,
    .erp-header,
    .sidebar-overlay,
    .page-header .btn,
    .erp-card-header .btn,
    .no-print,
    .btn,
    .btn-delete,
    .pagination,
    #sidebarToggle,
    #darkModeToggle,
    #notificationBtn {
        display: none !important;
    }

    .erp-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .erp-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12px !important;
    }

    .stat-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .erp-table {
        font-size: 11px !important;
    }

    .erp-table th {
        background: #f5f5f5 !important;
        color: #000 !important;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }
}
