/* Custom Styles for Bodegón Digital */

body {
    font-family: 'Outfit', sans-serif !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #E60000;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #E60000;
}

/* Base transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Hide scrollbar for sections but allow scroll */
.hide-scrollbar::-webkit-scrollbar {
    height: 3px;
}
.hide-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.hide-scrollbar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}
.hide-scrollbar {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
}

.scrollbar-thin::-webkit-scrollbar {
    height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #777;
}
.scrollbar-thin {
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

/* Glassmorphism effects */
.glass {
    background: rgba(25, 25, 25, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-red {
    background: rgba(230, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 0, 0, 0.2);
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Layout Utilities */
.view-section {
    width: 100%;
    height: 100%;
}

.view-section:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

/* Product Card Hover */
.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(230, 0, 0, 0.3);
    border-color: #E60000;
}

/* Pulse animation for notifications */
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Image aspect ratio container */
.img-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: white;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}
.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Light theme overrides */
body.light-theme {
    background-color: #f3f4f6;
    color: #111827;
}

body.light-theme .bg-darker { background-color: #f3f4f6; }
body.light-theme .bg-dark { background-color: #ffffff; border-color: #e5e7eb; }
body.light-theme .bg-card { background-color: #ffffff; border-color: #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
body.light-theme .border-gray-800 { border-color: #e5e7eb; }
body.light-theme .border-gray-700 { border-color: #d1d5db; }
body.light-theme .text-gray-400 { color: #6b7280; }
body.light-theme .text-gray-300 { color: #4b5563; }
body.light-theme .text-white { color: #111827; }
body.light-theme .hover\:bg-gray-800:hover { background-color: #f3f4f6; }
body.light-theme input, body.light-theme select {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db;
}

/* SweetAlert customization for theme */
.swal2-popup.swal-dark {
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #333;
}
.swal2-popup.swal-dark .swal2-title, .swal2-popup.swal-dark .swal2-html-container {
    color: #fff;
}

/* ==========================================
   TOAST SYSTEM
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 420px;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: #065f46;
    border-color: #059669;
    color: #fff;
}

.toast-error {
    background: #7f1d1d;
    border-color: #dc2626;
    color: #fff;
}

.toast-warning {
    background: #78350f;
    border-color: #d97706;
    color: #fff;
}

.toast-info {
    background: #1e3a5f;
    border-color: #2563eb;
    color: #fff;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    flex-shrink: 0;
}

body.light-theme .toast-success {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

body.light-theme .toast-error {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
}

body.light-theme .toast-warning {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}

body.light-theme .toast-info {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
}

/* ==========================================
   SKELETON LOADING
   ========================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

body.light-theme .skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
}

.skeleton-card {
    padding: 0;
}

.skeleton-img {
    width: 100%;
    padding-top: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
}

.skeleton-text {
    height: 0.8rem;
    margin: 0.5rem;
    width: 80%;
}

.skeleton-text.short {
    width: 50%;
}

.skeleton-text.long {
    width: 90%;
}

/* ==========================================
   CHART CONTAINER
   ========================================== */
.chart-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================
   SEARCH HIGHLIGHT
   ========================================== */
mark.highlight {
    background: rgba(230, 0, 0, 0.3);
    color: inherit;
    padding: 0 0.1rem;
    border-radius: 0.15rem;
}

body.light-theme mark.highlight {
    background: rgba(230, 0, 0, 0.15);
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
   ========================================== */
@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ==========================================
   COLLAPSIBLE SIDEBAR (DESKTOP)
   ========================================== */
@media (min-width: 768px) {
    #sidebar.collapsed {
        width: 4.5rem; /* w-18 */
    }
    #sidebar.collapsed .brand-text {
        display: none;
    }
    #sidebar.collapsed .nav-link span {
        display: none;
    }
    #sidebar.collapsed #admin-menu li.uppercase {
        font-size: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: none;
    }
    #sidebar.collapsed #btn-login-admin span,
    #sidebar.collapsed #btn-logout-admin span,
    #sidebar.collapsed #btn-toggle-theme span {
        display: none;
    }
    #sidebar.collapsed #btn-login-admin i,
    #sidebar.collapsed #btn-logout-admin i,
    #sidebar.collapsed #btn-toggle-theme i {
        margin: 0;
        font-size: 1.1rem;
    }
    #sidebar.collapsed .nav-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    #sidebar.collapsed .nav-link i {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   PREMIUM INTERACTIONS
   ========================================== */
.product-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(230, 0, 0, 0.25), 0 8px 10px -6px rgba(230, 0, 0, 0.25);
    border-color: #E60000;
}
body.light-theme .product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-out;
}
.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}
.btn-premium:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0s;
}

/* ==========================================
   PAGE TRANSITIONS (Slide & Fade)
   ========================================== */
.view-section {
    animation: none;
}
.view-section.active-view {
    animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.view-section.exit-view {
    animation: pageExit 0.25s ease-in forwards;
}

@keyframes pageEnter {
    0% { opacity: 0; transform: translateY(16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pageExit {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-12px) scale(0.98); }
}

/* Faster fade for mobile */
@media (max-width: 768px) {
    @keyframes pageEnter {
        0% { opacity: 0; transform: translateY(12px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    @keyframes pageExit {
        0% { opacity: 1; transform: translateY(0); }
        100% { opacity: 0; transform: translateY(-8px); }
    }
}

/* ==========================================
   MODAL ANIMATIONS
   ========================================== */
#cart-modal.show-modal {
    opacity: 1;
    pointer-events: auto;
}
#cart-modal.show-modal #cart-drawer {
    transform: translateX(0);
}

#purchase-order-modal.show-modal {
    opacity: 1;
    pointer-events: auto;
}
#purchase-order-modal.show-modal #purchase-order-dialog {
    transform: scale(1);
}

#product-modal.show-modal,
#order-edit-modal.show-modal,
#quickview-modal.show-modal {
    opacity: 1;
    pointer-events: auto;
}
#product-modal.show-modal #product-dialog,
#order-edit-modal.show-modal #order-edit-dialog,
#quickview-modal.show-modal #quickview-dialog {
    transform: scale(1);
}

/* ==========================================
   RIPPLE EFFECT (all buttons)
   ========================================== */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.ripple:active::after {
    opacity: 1;
    transition: opacity 0s;
}

/* ==========================================
   INPUT GLOW ON FOCUS
   ========================================== */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #E60000 !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15) !important;
    transition: box-shadow 0.2s, border-color 0.2s;
}

body.light-theme input:focus, body.light-theme select:focus, body.light-theme textarea:focus {
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1) !important;
}

/* ==========================================
   SMOOTH LIST HOVER
   ========================================== */
.list-hover > * {
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.list-hover > *:hover {
    background: rgba(230, 0, 0, 0.05);
}
body.light-theme .list-hover > *:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* ==========================================
   SKELETON IMPROVEMENTS
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s ease-in-out infinite;
}
.skeleton-pulse {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ==========================================
   NAVIGATION ACTIVE LINK
   ========================================== */
.nav-link.active-link {
    color: #E60000 !important;
    border-left-color: #E60000 !important;
    background: rgba(230, 0, 0, 0.08);
}
body.light-theme .nav-link.active-link {
    background: rgba(230, 0, 0, 0.04);
}

/* ==========================================
   SMOOTH SCROLL FOR MAIN CONTENT
   ========================================== */
#views-container {
    scroll-behavior: smooth;
}

/* ==========================================
   GLOW PULSE FOR IMPORTANT ELEMENTS
   ========================================== */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(230, 0, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(230, 0, 0, 0.6); }
}
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes secondaryGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
}
.glow-pulse-gold {
    animation: secondaryGlow 2s ease-in-out infinite;
}

/* ==========================================
   COUNTER BADGE BOUNCE
   ========================================== */
@keyframes badgeBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.badge-bounce {
    animation: badgeBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================
   STAGGER ENTRY FOR GRID ITEMS
   ========================================== */
.stagger-enter > * {
    opacity: 0;
    transform: translateY(12px);
    animation: staggerIn 0.4s ease-out forwards;
}
.stagger-enter > *:nth-child(1) { animation-delay: 0.02s; }
.stagger-enter > *:nth-child(2) { animation-delay: 0.04s; }
.stagger-enter > *:nth-child(3) { animation-delay: 0.06s; }
.stagger-enter > *:nth-child(4) { animation-delay: 0.08s; }
.stagger-enter > *:nth-child(5) { animation-delay: 0.10s; }
.stagger-enter > *:nth-child(6) { animation-delay: 0.12s; }
.stagger-enter > *:nth-child(7) { animation-delay: 0.14s; }
.stagger-enter > *:nth-child(8) { animation-delay: 0.16s; }
.stagger-enter > *:nth-child(9) { animation-delay: 0.18s; }
.stagger-enter > *:nth-child(10) { animation-delay: 0.20s; }
.stagger-enter > *:nth-child(11) { animation-delay: 0.22s; }
.stagger-enter > *:nth-child(12) { animation-delay: 0.24s; }

@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   LOADER / SPLASH
   ========================================== */
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #121212;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.app-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
}
.app-loader .loader-icon {
    width: 64px;
    height: 64px;
    color: #E60000;
    animation: loaderBounce 0.8s ease-in-out infinite alternate;
}
.app-loader .loader-text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #E60000, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}
.app-loader .loader-bar {
    margin-top: 1rem;
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 9999px;
    overflow: hidden;
}
.app-loader .loader-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E60000, #D4AF37);
    border-radius: 9999px;
    animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-8px) scale(1.05); }
}
@keyframes loaderBar {
    0% { width: 0%; margin-left: 0; }
    50% { width: 80%; margin-left: 10%; }
    100% { width: 0%; margin-left: 100%; }
}

body.light-theme .app-loader {
    background: #f3f4f6;
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE TOUCH FEEDBACK
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    .product-card:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
    .nav-link:active {
        background: rgba(230, 0, 0, 0.1);
    }
}

/* ==========================================
   PWA SPLASH SCREEN OVERRIDE
   ========================================== */
@media all and (display-mode: standalone) {
    body {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-touch-callout: none;
    }
    #app {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Quickview Custom Styles */
.quickview-img-container {
    width: 100%;
    height: 250px;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
}
body.light-theme .quickview-img-container {
    border-color: #e5e7eb;
}
.quickview-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 1rem;
}
/* Chart.js responsive containers */
.chart-container-premium {
    position: relative;
    width: 100%;
    height: 250px;
}

/* Metric Cards Styling for Both Themes */
.metric-card[data-metric="products"] {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.metric-card[data-metric="products"] > div:first-child {
    color: #60a5fa !important;
}
.metric-card[data-metric="products"] > div:last-child {
    color: #93c5fd !important;
}

.metric-card[data-metric="orders"] {
    background-color: rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}
.metric-card[data-metric="orders"] > div:first-child {
    color: #fbbf24 !important;
}
.metric-card[data-metric="orders"] > div:last-child {
    color: #fde047 !important;
}

.metric-card[data-metric="pending"] {
    background-color: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}
.metric-card[data-metric="pending"] > div:first-child {
    color: #fb923c !important;
}
.metric-card[data-metric="pending"] > div:last-child {
    color: #fbcba0 !important;
}

.metric-card[data-metric="today"] {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.metric-card[data-metric="today"] > div:first-child {
    color: #34d399 !important;
}
.metric-card[data-metric="today"] > div:last-child {
    color: #a7f3d0 !important;
}

.metric-card[data-metric="revenue"] {
    background-color: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}
.metric-card[data-metric="revenue"] > div:first-child {
    color: #c084fc !important;
}
.metric-card[data-metric="revenue"] > div:last-child {
    color: #d8b4fe !important;
}

/* Light Theme overrides for metric cards */
body.light-theme .metric-card[data-metric="products"] {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
}
body.light-theme .metric-card[data-metric="products"] > div:first-child {
    color: #1d4ed8 !important;
}
body.light-theme .metric-card[data-metric="products"] > div:last-child {
    color: #1e40af !important;
}

body.light-theme .metric-card[data-metric="orders"] {
    background-color: #fefce8 !important;
    border-color: #fef08a !important;
}
body.light-theme .metric-card[data-metric="orders"] > div:first-child {
    color: #a16207 !important;
}
body.light-theme .metric-card[data-metric="orders"] > div:last-child {
    color: #854d0e !important;
}

body.light-theme .metric-card[data-metric="pending"] {
    background-color: #fff7ed !important;
    border-color: #fed7aa !important;
}
body.light-theme .metric-card[data-metric="pending"] > div:first-child {
    color: #c2410c !important;
}
body.light-theme .metric-card[data-metric="pending"] > div:last-child {
    color: #9a3412 !important;
}

body.light-theme .metric-card[data-metric="today"] {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}
body.light-theme .metric-card[data-metric="today"] > div:first-child {
    color: #047857 !important;
}
body.light-theme .metric-card[data-metric="today"] > div:last-child {
    color: #065f46 !important;
}

body.light-theme .metric-card[data-metric="revenue"] {
    background-color: #faf5ff !important;
    border-color: #e9d5ff !important;
}
body.light-theme .metric-card[data-metric="revenue"] > div:first-child {
    color: #7e22ce !important;
}
body.light-theme .metric-card[data-metric="revenue"] > div:last-child {
    color: #6b21a8 !important;
}

