/* ============================================
   DASHBOARD — native app cards (mobile + desktop)
   Inspired by Stripe Dashboard / Apple Health widgets
   Scoped under .pc-dashboard-shell to beat global flat rules
   ============================================ */

.pc-dashboard-shell {
    --pc-border: color-mix(in srgb, var(--border, #e4e4e7) 88%, transparent);
    --pc-surface: var(--cc-surface, #ffffff);
    --pc-muted: var(--gray-70, #71717a);
    --pc-title: var(--gray-0, #09090b);
    --pc-soft: color-mix(in srgb, var(--gray-90, #f4f4f5) 92%, #fff);
    --pc-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
    --pc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --pc-radius: 6px;
    --pc-radius-sm: 6px;
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 12px;
}

@media (min-width: 992px) {
    .pc-dashboard-shell {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 16px;
        --pc-radius: 6px;
        padding-bottom: 20px;
    }
}

/* ---------- KPI Panel ---------- */
.pc-dashboard-shell .pc-dash-kpi-panel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pc-dashboard-shell .pc-dash-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    background: transparent !important;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .pc-dashboard-shell .pc-dash-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

.pc-dashboard-shell .pc-dash-kpi-tile {
    --kpi-accent: #64748b;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 14px 13px !important;
    min-height: 0 !important;
    background: var(--pc-surface) !important;
    border: 1px solid var(--pc-border) !important;
    border-radius: var(--pc-radius-sm) !important;
    box-shadow: var(--pc-shadow-sm) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

@media (max-width: 991.98px) {
    .pc-dashboard-shell .pc-dash-kpi-grid {
        gap: 8px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 10px 9px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap {
        width: 30px !important;
        height: 30px !important;
        border-radius: 6px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap svg {
        width: 15px !important;
        height: 15px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__value {
        font-size: 1.2rem !important;
        letter-spacing: -0.03em !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__label {
        font-size: 10px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__hint {
        display: none !important;
    }
}

.pc-dashboard-shell .pc-dash-kpi-tile::before {
    display: none !important;
}

.pc-dashboard-shell .pc-dash-kpi-tile:hover {
    background: var(--pc-surface) !important;
    border-color: color-mix(in srgb, var(--kpi-accent) 28%, var(--pc-border)) !important;
    box-shadow: var(--pc-shadow) !important;
    transform: translateY(-1px);
}

.pc-dashboard-shell .pc-dash-kpi-tile--ventas { --kpi-accent: #ef4444; }
.pc-dashboard-shell .pc-dash-kpi-tile--clientes { --kpi-accent: #0ea5a4; }
.pc-dashboard-shell .pc-dash-kpi-tile--vacantes { --kpi-accent: #f59e0b; }
.pc-dashboard-shell .pc-dash-kpi-tile--ticket { --kpi-accent: #22c55e; }

.pc-dashboard-shell .pc-dash-kpi-tile__idx {
    display: none !important;
}

.pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: color-mix(in srgb, var(--kpi-accent) 14%, #fff) !important;
    color: var(--kpi-accent) !important;
}

.pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap svg {
    width: 17px !important;
    height: 17px !important;
    stroke-width: 2.1;
}

.pc-dashboard-shell .pc-dash-kpi-tile__copy {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-dashboard-shell .pc-dash-kpi-tile__label {
    font-family: var(--font-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    color: var(--pc-muted) !important;
    margin: 0 !important;
    display: block !important;
}

.pc-dashboard-shell .pc-dash-kpi-tile__value {
    font-family: var(--font-sans) !important;
    font-weight: 700 !important;
    font-size: clamp(1.35rem, 4.2vw, 1.7rem) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em !important;
    color: var(--pc-title) !important;
    line-height: 1.05 !important;
    display: block !important;
}

.pc-dashboard-shell .pc-dash-kpi-tile--ventas .pc-dash-kpi-tile__value,
.pc-dashboard-shell .pc-dash-kpi-tile--clientes .pc-dash-kpi-tile__value,
.pc-dashboard-shell .pc-dash-kpi-tile--vacantes .pc-dash-kpi-tile__value,
.pc-dashboard-shell .pc-dash-kpi-tile--ticket .pc-dash-kpi-tile__value {
    color: var(--pc-title) !important;
}

.pc-dashboard-shell .pc-dash-kpi-tile__hint {
    display: none;
    font-family: var(--font-sans) !important;
    font-size: 11px !important;
    font-weight: 450 !important;
    color: var(--pc-muted) !important;
    margin: 2px 0 0 !important;
    line-height: 1.35 !important;
}

@media (min-width: 992px) {
    .pc-dashboard-shell .pc-dash-kpi-tile {
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 18px 18px 16px !important;
        border-radius: var(--pc-radius) !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap {
        width: 42px !important;
        height: 42px !important;
        border-radius: 6px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap svg {
        width: 19px !important;
        height: 19px !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__value {
        font-size: clamp(1.45rem, 1.6vw, 1.85rem) !important;
    }

    .pc-dashboard-shell .pc-dash-kpi-tile__hint {
        display: block !important;
    }
}

/* ---------- Tabs (segmented on mobile, underline on desktop) ---------- */
.pc-dashboard-shell .pc-dash-tabs-wrap {
    padding: 0;
}

.pc-dashboard-shell .pc-dash-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--pc-border);
    border-radius: 6px;
    background: var(--pc-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pc-dashboard-shell .pc-dash-tabs::-webkit-scrollbar {
    display: none;
}

.pc-dashboard-shell .pc-dash-tabs .nav-link {
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    color: var(--pc-muted) !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    white-space: nowrap;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

.pc-dashboard-shell .pc-dash-tabs .nav-link i,
.pc-dashboard-shell .pc-dash-tabs .nav-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.85;
}

.pc-dashboard-shell .pc-dash-tabs .nav-link:hover {
    color: var(--pc-title) !important;
    background: color-mix(in srgb, #fff 70%, transparent) !important;
    border-bottom-color: transparent !important;
}

.pc-dashboard-shell .pc-dash-tabs .nav-link.active {
    color: var(--pc-title) !important;
    background: var(--pc-surface) !important;
    border-bottom-color: transparent !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

@media (min-width: 992px) {
    .pc-dashboard-shell .pc-dash-tabs {
        gap: 2px;
        padding: 0;
        border: 0;
        border-bottom: 1px solid var(--pc-border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .pc-dashboard-shell .pc-dash-tabs .nav-link {
        padding: 12px 14px !important;
        border-radius: 0 !important;
        border-bottom: 2px solid transparent !important;
        margin-bottom: -1px;
        box-shadow: none !important;
    }

    .pc-dashboard-shell .pc-dash-tabs .nav-link:hover {
        background: transparent !important;
        color: var(--pc-title) !important;
        border-bottom-color: color-mix(in srgb, var(--accent, #ef4444) 35%, transparent) !important;
    }

    .pc-dashboard-shell .pc-dash-tabs .nav-link.active {
        background: transparent !important;
        color: var(--accent, #ef4444) !important;
        border-bottom-color: var(--accent, #ef4444) !important;
        box-shadow: none !important;
    }
}

/* ---------- Chart Cards ---------- */
.pc-dashboard-shell .card.pc-dash-card,
.pc-dashboard-shell .pc-dash-card {
    background: var(--pc-surface) !important;
    border: 1px solid var(--pc-border) !important;
    border-radius: var(--pc-radius) !important;
    box-shadow: var(--pc-shadow) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: none !important;
}

.pc-dashboard-shell .pc-dash-card .card-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pc-border) !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 14px 16px 12px !important;
}

.pc-dashboard-shell .pc-dash-card .card-title {
    margin: 0 0 2px !important;
    color: var(--pc-title) !important;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    line-height: 1.25 !important;
}

.pc-dashboard-shell .pc-dash-card .card-subtitle {
    margin: 0 !important;
    color: var(--pc-muted) !important;
    font-family: var(--font-sans) !important;
    font-size: 12px !important;
    font-weight: 450 !important;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.pc-dashboard-shell .pc-dash-card > .card-body,
.pc-dashboard-shell .card.pc-dash-card > .card-body {
    padding: 10px 12px 14px !important;
    flex: 1;
    min-height: 220px;
    position: relative;
}

.pc-dashboard-shell .pc-dash-card .chart-container {
    min-height: 200px;
    height: 100%;
}

@media (min-width: 768px) {
    .pc-dashboard-shell .pc-dash-card .card-header {
        padding: 16px 18px 14px !important;
    }

    .pc-dashboard-shell .pc-dash-card .card-title {
        font-size: 16px !important;
    }

    .pc-dashboard-shell .pc-dash-card > .card-body,
    .pc-dashboard-shell .card.pc-dash-card > .card-body {
        padding: 12px 16px 16px !important;
        min-height: 300px;
    }

    .pc-dashboard-shell .pc-dash-card .chart-container {
        min-height: 260px;
    }
}

/* Nested dynamic chart cards stay cohesive */
.pc-dashboard-shell .pc-dash-card .pc-dash-card {
    box-shadow: none !important;
    border-radius: var(--pc-radius-sm) !important;
    margin-top: 12px !important;
}

.pc-dashboard-shell .pc-dash-card .card-body.p-0 {
    padding: 0 !important;
}

.pc-dashboard-shell .pc-dash-card .card-body.p-0 > .pc-dash-card:first-child {
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
}

/* ---------- Skeleton ---------- */
.pc-dashboard-shell .pc-chart-skeleton {
    padding: 1rem 0.75rem;
    position: absolute;
    inset: 0;
    background: var(--pc-surface);
    z-index: 2;
    border-radius: 0;
}

.pc-dashboard-shell .pc-chart-skeleton.hidden {
    display: none !important;
}

.pc-dashboard-shell .pc-chart-skeleton-header {
    height: 14px;
    width: 38%;
    background: var(--gray-90, #f4f4f5);
    border-radius: 0;
    margin-bottom: 1rem;
    animation: pc-skeleton-pulse 1.2s ease-in-out infinite;
}

.pc-dashboard-shell .pc-chart-skeleton-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: calc(100% - 36px);
    padding-bottom: 0.75rem;
}

.pc-dashboard-shell .pc-chart-skeleton-bars > div {
    flex: 1;
    background: var(--gray-90, #f4f4f5);
    border-radius: 0;
    animation: pc-skeleton-pulse 1.2s ease-in-out infinite;
    min-height: 20px;
}

@keyframes pc-skeleton-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* ---------- Tab panes ---------- */
.pc-dashboard-shell .pc-dash-tab-content > .tab-pane {
    display: none;
}

.pc-dashboard-shell .pc-dash-tab-content > .tab-pane.active {
    display: block;
    animation: pc-dash-fade-in 0.28s ease;
}

@keyframes pc-dash-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Charts host ---------- */
.pc-dashboard-shell .pc-shadcn-host,
.pc-dashboard-shell .chart-container.pc-shadcn-host {
    width: 100%;
    min-height: 260px;
}

.pc-dashboard-shell .pc-shadcn-chart {
    width: 100%;
}

.pc-dashboard-shell .pc-shadcn-legend__item,
.pc-dashboard-shell button.pc-shadcn-legend__item {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: var(--pc-muted, #71717a) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font: inherit !important;
    line-height: 1.2;
    margin: 0 !important;
    outline: none;
    padding: 4px 7px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    user-select: none;
}

.pc-dashboard-shell .pc-shadcn-legend__item:hover,
.pc-dashboard-shell .pc-shadcn-legend__item:focus-visible {
    background: color-mix(in srgb, var(--pc-border, #e4e4e7) 70%, transparent) !important;
    color: var(--pc-title, #09090b) !important;
}

.pc-dashboard-shell .pc-shadcn-legend__item.is-off {
    opacity: 0.5;
}

.pc-dashboard-shell .pc-shadcn-legend__item.is-off .pc-shadcn-legend__label {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.pc-dashboard-shell .pc-shadcn-legend__swatch {
    border-radius: 2px;
    box-shadow: none !important;
}

.pc-dashboard-shell .pc-shadcn-chart {
    width: 100%;
}

/* ---------- Banners ---------- */
.pc-dashboard-shell .pc-dash-banner {
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 12px 14px !important;
    border-radius: var(--pc-radius-sm) !important;
    box-shadow: var(--pc-shadow-sm) !important;
}

.pc-dashboard-shell .pc-dash-banner--ok {
    background: color-mix(in srgb, #22c55e 8%, #fff) !important;
    border-color: color-mix(in srgb, #22c55e 28%, var(--pc-border)) !important;
    border-left-width: 3px;
    border-left-color: #22c55e !important;
    color: var(--pc-title);
}

.pc-dashboard-shell .pc-dash-banner--error {
    border-radius: var(--pc-radius-sm) !important;
}

.pc-dashboard-shell .pc-dash-banner__msg span,
.pc-dashboard-shell .pc-dash-banner__msg strong {
    font-size: 13px;
    line-height: 1.35;
}

/* ---------- Mobile shell (compact) ---------- */
@media (max-width: 991.98px) {
    .pc-dashboard-shell,
    .pc-dashboard-shell.row,
    .pc-dashboard-shell.g-3,
    .pc-dashboard-shell .row {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }

    .pc-dashboard-shell {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 12px;
    }

    .pc-dashboard-shell .pc-dash-tabs-wrap {
        position: sticky;
        top: calc(var(--navbar-height, 56px) + env(safe-area-inset-top, 0px));
        z-index: 30;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 4px 0 4px;
        margin: 0;
    }

    .pc-dashboard-shell .pc-dash-tabs {
        gap: 2px;
        padding: 3px;
        border-radius: 6px;
    }

    .pc-dashboard-shell .pc-dash-tabs .nav-link {
        padding: 7px 10px !important;
        font-size: 12px !important;
        gap: 4px;
        border-radius: 6px !important;
    }

    .pc-dashboard-shell .pc-dash-tabs .nav-link i,
    .pc-dashboard-shell .pc-dash-tabs .nav-link svg {
        width: 13px;
        height: 13px;
    }

    body.pc-chrome-compact .pc-dashboard-shell .pc-dash-tabs-wrap {
        padding-bottom: 0;
        padding-top: 0;
    }

    body.pc-chrome-compact .pc-dashboard-shell .pc-dash-tabs .nav-link {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .pc-dashboard-shell .pc-dash-card {
        border-left: 1px solid var(--pc-border) !important;
        border-right: 1px solid var(--pc-border) !important;
        box-shadow: var(--pc-shadow-sm) !important;
    }

    .pc-dashboard-shell .pc-dash-card .card-header {
        gap: 0.4rem !important;
        padding: 10px 12px 8px !important;
    }

    .pc-dashboard-shell .pc-dash-card .card-title {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }

    .pc-dashboard-shell .pc-dash-card .card-subtitle {
        font-size: 11px !important;
        line-height: 1.25;
    }

    .pc-dashboard-shell .pc-dash-card > .card-body,
    .pc-dashboard-shell .card.pc-dash-card > .card-body {
        padding: 6px 8px 10px !important;
        min-height: 180px !important;
    }

    .pc-dashboard-shell .pc-dash-card .chart-container,
    .pc-dashboard-shell .pc-shadcn-host,
    .pc-dashboard-shell .chart-container.pc-shadcn-host {
        min-height: 170px !important;
    }

    .pc-dashboard-shell .pc-shadcn-chart,
    .pc-dashboard-shell .pc-shadcn-chart__inner {
        min-height: 170px !important;
    }

    .pc-dashboard-shell .pc-shadcn-legend {
        gap: 0.25rem 0.35rem;
        margin-top: 0.25rem;
        font-size: 10px;
    }

    .pc-dashboard-shell .pc-shadcn-legend__item {
        -webkit-appearance: none !important;
        appearance: none !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        padding: 2px 5px !important;
    }

    .pc-dashboard-shell .pc-dash-card .pc-dash-card {
        margin-top: 8px !important;
    }

    .pc-dashboard-shell .pc-dash-banner {
        padding: 8px 10px !important;
        gap: 8px;
    }

    .pc-dashboard-shell .pc-dash-banner__msg span,
    .pc-dashboard-shell .pc-dash-banner__msg strong {
        font-size: 12px;
    }

    .pc-dashboard-shell .pc-dash-banner .pc-btn {
        height: 30px;
        padding: 0 8px;
        font-size: 11px;
        border-radius: 6px;
    }

    .pc-dashboard-shell .pc-chart-skeleton {
        padding: 0.65rem 0.5rem;
    }
}

/* ---------- Dark mode ---------- */
html.dark .pc-dashboard-shell,
body.dark-layout .pc-dashboard-shell {
    --pc-border: rgba(255, 255, 255, 0.1);
    --pc-surface: #18181b;
    --pc-muted: #a1a1aa;
    --pc-title: #fafafa;
    --pc-soft: #09090b;
    --pc-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.28);
    --pc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
}

html.dark .pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap,
body.dark-layout .pc-dashboard-shell .pc-dash-kpi-tile__icon-wrap {
    background: color-mix(in srgb, var(--kpi-accent) 22%, #18181b) !important;
}

html.dark .pc-dashboard-shell .pc-chart-skeleton,
body.dark-layout .pc-dashboard-shell .pc-chart-skeleton {
    background: var(--pc-surface);
}

html.dark .pc-dashboard-shell .pc-chart-skeleton-header,
html.dark .pc-dashboard-shell .pc-chart-skeleton-bars > div,
body.dark-layout .pc-dashboard-shell .pc-chart-skeleton-header,
body.dark-layout .pc-dashboard-shell .pc-chart-skeleton-bars > div {
    background: #27272a;
}

html.dark .pc-dashboard-shell .pc-dash-tabs,
body.dark-layout .pc-dashboard-shell .pc-dash-tabs {
    background: #09090b;
    box-shadow: none;
}

html.dark .pc-dashboard-shell .pc-dash-tabs .nav-link.active,
body.dark-layout .pc-dashboard-shell .pc-dash-tabs .nav-link.active {
    background: #27272a !important;
}

@media (min-width: 992px) {
    html.dark .pc-dashboard-shell .pc-dash-tabs,
    body.dark-layout .pc-dashboard-shell .pc-dash-tabs {
        background: transparent;
        border-color: var(--pc-border);
    }

    html.dark .pc-dashboard-shell .pc-dash-tabs .nav-link.active,
    body.dark-layout .pc-dashboard-shell .pc-dash-tabs .nav-link.active {
        background: transparent !important;
        color: var(--accent, #ef4444) !important;
    }
}

/* Leyenda interactiva Blazor (toggle series) */
.pc-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .55rem;
    margin-top: .55rem;
}
.pc-chart-legend__item {
    align-items: center;
    background: transparent;
    border: 1px solid var(--border, #e4e4e7);
    border-radius: 4px;
    color: var(--gray-70, #71717a);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 11px;
    gap: .35rem;
    padding: .2rem .45rem;
    transition: opacity .15s ease, border-color .15s ease, color .15s ease;
}
.pc-chart-legend__item i {
    display: inline-block;
    flex: 0 0 auto;
    height: 10px;
    width: 10px;
}
.pc-chart-legend__item.is-on {
    color: var(--gray-0, #09090b);
}
.pc-chart-legend__item.is-off {
    opacity: .45;
    text-decoration: line-through;
}
.pc-chart-legend__item:hover {
    border-color: color-mix(in srgb, var(--accent, #ef4444) 35%, var(--border, #e4e4e7));
}
