/* =========================================================
   DEWPOINT DASHBOARD - FINAL THEME ACCENT CLEANUP
   Replace remaining Pickle Mania green on Dashboard only
   ========================================================= */


/* ---------------------------------------------------------
   DASHBOARD VENUE AVATAR
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .venue-avatar,
.shell:not(.player-shell) .owner-dashboard-redesign .venue-avatar,
.shell:not(.player-shell) .owner-dashboard > * span.avatar,
.shell:not(.player-shell) .owner-dashboard-redesign > * span.avatar{
    color:var(--dp-accent-text) !important;
    background:var(--dp-theme-soft) !important;
}


/* Fallback for dashboard welcome avatar */
.shell:not(.player-shell) .owner-dashboard .profile-avatar,
.shell:not(.player-shell) .owner-dashboard-redesign .profile-avatar{
    color:var(--dp-accent-text) !important;
    background:
        linear-gradient(
            135deg,
            var(--dp-theme-soft),
            color-mix(in srgb,var(--dp-accent) 18%,white)
        ) !important;
}


/* ---------------------------------------------------------
   VENUE STATUS / ACTIVE
   On dashboard this is treated as theme branding
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .venue-status,
.shell:not(.player-shell) .owner-dashboard-redesign .venue-status,
.shell:not(.player-shell) .owner-dashboard .venue-status b,
.shell:not(.player-shell) .owner-dashboard-redesign .venue-status b,
.shell:not(.player-shell) .owner-dashboard .venue-status strong,
.shell:not(.player-shell) .owner-dashboard-redesign .venue-status strong{
    color:var(--dp-accent-text) !important;
}

.shell:not(.player-shell) .owner-dashboard .venue-status::before,
.shell:not(.player-shell) .owner-dashboard-redesign .venue-status::before{
    background:var(--dp-accent) !important;
}


/* ---------------------------------------------------------
   KPI ICONS / STAT CARDS
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .kpis article:first-child > span,
.shell:not(.player-shell) .owner-dashboard-redesign .kpis article:first-child > span,
.shell:not(.player-shell) .owner-dashboard .stats article:first-child > span,
.shell:not(.player-shell) .owner-dashboard-redesign .stats article:first-child > span{
    color:var(--dp-accent-text) !important;
    background:var(--dp-theme-soft) !important;
}


/* Common dashboard KPI icon wrappers */
.shell:not(.player-shell) .owner-dashboard .kpi-icon,
.shell:not(.player-shell) .owner-dashboard-redesign .kpi-icon,
.shell:not(.player-shell) .owner-dashboard .stat-icon,
.shell:not(.player-shell) .owner-dashboard-redesign .stat-icon{
    color:var(--dp-accent-text) !important;
    background:var(--dp-theme-soft) !important;
}


/* ---------------------------------------------------------
   BOOKING DEMOGRAPHICS DONUT
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .donut,
.shell:not(.player-shell) .owner-dashboard-redesign .donut{
    background:
        conic-gradient(
            var(--dp-accent) 0deg,
            var(--dp-accent) var(--donut-angle,0deg),
            color-mix(in srgb,var(--dp-accent) 18%,white)
                var(--donut-angle,0deg),
            color-mix(in srgb,var(--dp-accent) 18%,white) 360deg
        ) !important;
}


/*
   Current empty/0% donut has no data angle,
   so give it a soft full-theme ring instead of green.
*/
.shell:not(.player-shell) .owner-dashboard .donut,
.shell:not(.player-shell) .owner-dashboard-redesign .donut{
    background:
        color-mix(in srgb,var(--dp-accent) 20%,white)
        !important;
}


/* Donut center percentage */
.shell:not(.player-shell) .owner-dashboard .donut b,
.shell:not(.player-shell) .owner-dashboard-redesign .donut b{
    color:var(--dp-accent-text) !important;
}


/* Returning-player legend dot */
.shell:not(.player-shell) .owner-dashboard .demo-legend i.returning,
.shell:not(.player-shell) .owner-dashboard-redesign .demo-legend i.returning{
    background:var(--dp-accent) !important;
}


/* New-player legend dot */
.shell:not(.player-shell) .owner-dashboard .demo-legend i:not(.returning),
.shell:not(.player-shell) .owner-dashboard-redesign .demo-legend i:not(.returning){
    background:
        color-mix(in srgb,var(--dp-accent) 20%,white)
        !important;
}


/* ---------------------------------------------------------
   COURT PERFORMANCE
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .court-performance b,
.shell:not(.player-shell) .owner-dashboard .court-performance em,
.shell:not(.player-shell) .owner-dashboard .court-performance strong,
.shell:not(.player-shell) .owner-dashboard-redesign .court-performance b,
.shell:not(.player-shell) .owner-dashboard-redesign .court-performance em,
.shell:not(.player-shell) .owner-dashboard-redesign .court-performance strong{
    color:var(--dp-accent-text) !important;
}


/* Generic performance percentages */
.shell:not(.player-shell) .owner-dashboard .court-overview .available,
.shell:not(.player-shell) .owner-dashboard-redesign .court-overview .available{
    color:var(--dp-accent-text) !important;
}


/* Performance bars when populated */
.shell:not(.player-shell) .owner-dashboard .court-performance i,
.shell:not(.player-shell) .owner-dashboard-redesign .court-performance i,
.shell:not(.player-shell) .owner-dashboard .performance-bar > span,
.shell:not(.player-shell) .owner-dashboard-redesign .performance-bar > span{
    background:
        linear-gradient(
            90deg,
            var(--dp-accent),
            var(--dp-accent-2)
        ) !important;
}


/* ---------------------------------------------------------
   TODAY AT A GLANCE
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .today-glance article > span,
.shell:not(.player-shell) .owner-dashboard-redesign .today-glance article > span,
.shell:not(.player-shell) .owner-dashboard .today-at-a-glance article > span,
.shell:not(.player-shell) .owner-dashboard-redesign .today-at-a-glance article > span{
    color:var(--dp-accent-text) !important;
    background:var(--dp-theme-soft) !important;
}


/* Generic left-side icons inside dashboard summary cards */
.shell:not(.player-shell) .owner-dashboard .summary-card > span,
.shell:not(.player-shell) .owner-dashboard-redesign .summary-card > span{
    color:var(--dp-accent-text) !important;
    background:var(--dp-theme-soft) !important;
}


/* ---------------------------------------------------------
   REVENUE SNAPSHOT
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .revenue-snapshot b,
.shell:not(.player-shell) .owner-dashboard .revenue-snapshot strong,
.shell:not(.player-shell) .owner-dashboard .revenue-snapshot em,
.shell:not(.player-shell) .owner-dashboard-redesign .revenue-snapshot b,
.shell:not(.player-shell) .owner-dashboard-redesign .revenue-snapshot strong,
.shell:not(.player-shell) .owner-dashboard-redesign .revenue-snapshot em{
    color:var(--dp-accent-text) !important;
}


/* Revenue table/value fallbacks */
.shell:not(.player-shell) .owner-dashboard .revenue-value,
.shell:not(.player-shell) .owner-dashboard .revenue-total,
.shell:not(.player-shell) .owner-dashboard-redesign .revenue-value,
.shell:not(.player-shell) .owner-dashboard-redesign .revenue-total{
    color:var(--dp-accent-text) !important;
}


/* ---------------------------------------------------------
   OWNER INSIGHTS / BOOKING MIX
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .booking-mix .mix-row b,
.shell:not(.player-shell) .owner-dashboard-redesign .booking-mix .mix-row b{
    color:var(--dp-accent-text) !important;
}


/* ---------------------------------------------------------
   DASHBOARD-ONLY OLD GREEN VARIABLES
   Override var(--green) inside dashboard without affecting
   the rest of the application.
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard,
.shell:not(.player-shell) .owner-dashboard-redesign{
    --green:var(--dp-accent);
    --lime:var(--dp-accent-2);
}


/* ---------------------------------------------------------
   DASHBOARD SVG / ICON ACCENTS
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard svg.theme-accent,
.shell:not(.player-shell) .owner-dashboard-redesign svg.theme-accent{
    color:var(--dp-accent) !important;
    stroke:currentColor !important;
}


/* ---------------------------------------------------------
   FALLBACK FOR OLD HARD-CODED SUCCESS-LIKE DECORATIVE TEXT
   ONLY INSIDE OWNER DASHBOARD
   --------------------------------------------------------- */

.shell:not(.player-shell) .owner-dashboard .accent,
.shell:not(.player-shell) .owner-dashboard .highlight,
.shell:not(.player-shell) .owner-dashboard .metric-value,
.shell:not(.player-shell) .owner-dashboard .stat-value,
.shell:not(.player-shell) .owner-dashboard-redesign .accent,
.shell:not(.player-shell) .owner-dashboard-redesign .highlight,
.shell:not(.player-shell) .owner-dashboard-redesign .metric-value,
.shell:not(.player-shell) .owner-dashboard-redesign .stat-value{
    color:var(--dp-accent-text) !important;
}


