/* ===== rc_leave_upcoming_html (HTML form, scoped) =====
   Loaded eagerly from anvil.yaml native_deps.head_html. The root rule is a bare class; every
   other rule is :where()-scoped to that root, which adds zero specificity and so cannot change
   which rule wins.

   The element carries .rc-upcoming-container as well and this private class carries the values.
   .rc-leave-upcoming-chart is this leaf's private root name; it names the form, not the inner
   .rc-upcoming-chart element, which keeps its own rule
   below.

   .rc-upcoming-badge's dark restatement lives in the parent — [data-theme="dark"]
   .rc-upcoming-badge — at (0,2,0), so it beats the base rule here whatever the link order. No
   second class needed. */

.rc-leave-upcoming-chart {
    font-family: var(--px-font-display);
    height: 100%;
    display: flex;
    flex-direction: column;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(5, 150, 105, 0.12);
    color: color-mix(in srgb, var(--px-chart-emerald) 65%, var(--px-text-primary));
    border: 1px solid rgba(5, 150, 105, 0.25);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-badge svg {
    width: 10px;
    height: 10px;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-stat {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--px-chart-emerald) 65%, var(--px-text-primary));
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-stat-label {
    font-size: 0.65rem;
    color: var(--px-text-muted);
    text-transform: uppercase;
}

:where(.rc-leave-upcoming-chart) .rc-upcoming-chart {
    width: 100%;
    flex: 1;
    min-height: 200px;
}
