/* ═══════════════════════════════════════════════════════
   Vysvědčení Frontend
   ═══════════════════════════════════════════════════════ */

/* The size of the host's own text as a LENGTH (entangle-core registers the same name; said here too, because this
   sheet also stands on pages where core's does not load). See entangle-styles.css, "The type scale". */
@property --entangle-em {
    syntax: "<length>";
    inherits: true;
    initial-value: 16px;
}

/* The roots of a report card (the block's wrapper; the intro and the card where a shortcode prints them bare; the
   scale tooltips, which are printed at the end of the page, outside every wrapper).
   The TYPE is drawn in the pixels of the original design, and one of them is a sixteenth of the HOST's text
   (--evy-u): on a page set at 19px the card was 13–17px (13. 11.). The NEUTRALS are the family of the other
   widgets — a theme names them once (--entangle-surface, --entangle-line, --entangle-muted) — and without a theme
   they come from the colour of the text, or fall back to what stood here before. */
.rc-report-card,
.evy-vysvedceni,
.evy-intro-block,
.evy-scale-tooltip {
    --entangle-em: var(--entangle-font-size, 1em);
    --evy-u: calc(var(--entangle-em) / 16);
    --evy-ink: var(--color-base, #1d2327);
    /* The two greys of the text are veils of the card's INK, not of currentColor: a grey inside a grey (the value
       of a bar inside a muted panel) was a veil of a veil and fell to 2.65 : 1. And the fainter one is 68 % of the
       ink, not 58 %: on a tinted band (#f2f5f9) 58 % was 4.15 : 1, under the 4.5 : 1 of WCAG AA for text of this
       size; 68 % is 5.7 : 1 there and 6.3 : 1 on white (24. 11.). A theme that names its own greys answers for
       their contrast. */
    --evy-muted: var(--entangle-muted, color-mix(in srgb, var(--evy-ink) 72%, transparent));
    --evy-faint: var(--entangle-faint, color-mix(in srgb, var(--evy-ink) 68%, transparent));
    --evy-line: var(--entangle-line, var(--color-neutral-300, #dcdcde));
    --evy-line-strong: var(--entangle-line-strong, color-mix(in srgb, currentColor 35%, transparent));
    --evy-surface: var(--entangle-surface, var(--color-neutral-100, #f6f7f7));
    --evy-bg: var(--color-contrast, #fff);
    --evy-accent: var(--color-primary, #2271b1);
}

.evy-vysvedceni {
    color: var(--evy-ink);
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Year switcher */
.evy-year-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.evy-year-label {
    font-weight: 600;
    font-size: calc(var(--evy-u) * 15);
}

.evy-year-select {
    font-size: calc(var(--evy-u) * 15);
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--evy-line);
    border-radius: 4px;
    cursor: pointer;
}

/* The years as one control (the report-card block): which year is shown is the first thing to read above a report
   card, so the years stand side by side and the shown one is filled; the type is the size of the text
   under it (the intro of the card), not a size of its own (the owner, 23. 11.). The wrapper sits
   outside the roots above, so it names what it needs itself. */
.evy-year-switcher--segmented {
    --entangle-em: var(--entangle-font-size, 1em);
    --evy-u: calc(var(--entangle-em) / 16);
    --evy-accent: var(--color-primary, #2271b1);
    --evy-line-strong: var(--entangle-line-strong, color-mix(in srgb, currentColor 35%, transparent));
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 40px;
}

.evy-year-switcher--segmented .evy-year-label {
    font-size: inherit;
}

.evy-year-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--evy-line-strong);
    border-radius: 999px;
    background: var(--color-contrast, #fff);
}

.evy-year-option {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    padding: 6px 16px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.evy-year-option:hover {
    background: color-mix(in srgb, var(--evy-accent) 10%, transparent);
    color: var(--evy-accent);
}

.evy-year-option.is-active {
    background: var(--evy-accent);
    color: var(--color-contrast, #fff);
    cursor: default;
}

/* Intro block */
.evy-intro-block {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 64px;
}

.evy-intro-text {
    flex: 2;
    min-width: 0;
}

.evy-intro-text p {
    margin: 0 0 8px;
}

.evy-intro-text p:last-child {
    margin-bottom: 0;
}

.evy-intro-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}


.evy-respondent-count {
    font-size: calc(var(--evy-u) * 14);
    font-weight: 600;
    color: var(--evy-muted);
}

.evy-intro-link {
    font-size: calc(var(--evy-u) * 13);
    font-weight: 600;
    color: var(--color-primary, #2271b1);
    text-decoration: none;
    transition: color .15s;
}

.evy-intro-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .evy-intro-block {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }

    .evy-intro-side {
        align-items: flex-start;
    }

    .evy-vysvedceni {
        gap: 32px;
    }

    .evy-year-switcher {
        margin-bottom: 16px;
    }
}

/* Sections */
.evy-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.evy-section-title {
    font-weight: 700;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   Table layout — Důležitost a spokojenost
   ═══════════════════════════════════════════════════════ */

.evy-table {
    width: 100%;
}

/* Header row */
.evy-table-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    column-gap: 24px;
    padding: 14px 0;
    border-bottom: 2px solid var(--evy-line);
}

.evy-table-head.has-tendence {
    grid-template-columns: 2fr 1fr 1fr 160px;
}

.evy-th {
    font-size: calc(var(--evy-u) * 14);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Sortable column headers */
.evy-sort-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: calc(var(--evy-u) * 14);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}

.evy-sort-btn:hover {
    color: var(--color-primary, #2271b1);
}

.evy-sort-btn.is-active {
    color: var(--color-primary, #2271b1);
}

.evy-sort-arrow {
    font-size: calc(var(--evy-u) * 14);
    line-height: 1;
    min-width: 12px;
    opacity: .6;
}

.evy-sort-btn.is-active .evy-sort-arrow {
    opacity: 1;
}

/* Data rows */
.evy-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    column-gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-neutral-200, #d5d6d8);
    transition: background .15s;
}

.evy-table-row.has-tendence {
    grid-template-columns: 2fr 1fr 1fr 160px;
}

.evy-table-row:hover {
    background: none;
}

/* Oblast cell */
.evy-td-label {
    font-size: calc(var(--evy-u) * 17);
    font-weight: 700;
}

/* Důležitost & Spokojenost cells */
.evy-td-imp,
.evy-td-sat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evy-val-main {
    font-size: calc(var(--evy-u) * 17);
    font-weight: 700;
    color: var(--color-base, #1d2327);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.evy-sat-emoji {
    font-size: calc(var(--evy-u) * 22);
    line-height: 1;
}

/* Color-tint emoji via CSS filter for visual distinction */
.evy-sat-1 { filter: none; }                               /* default - already red */
.evy-sat-2 { filter: hue-rotate(-40deg) saturate(1.6); }  /* pushed to red */
.evy-sat-3 { filter: hue-rotate(160deg) saturate(0.6); }  /* blue, desaturated */
.evy-sat-4 { filter: none; }                               /* default yellow */
.evy-sat-5 { filter: none; }                               /* default - already green */

.evy-val-sub {
    font-size: calc(var(--evy-u) * 13);
    color: var(--evy-faint);
    line-height: 1.4;
    margin-top: 6px;
    display: block;
}

.evy-no-data {
    color: var(--evy-faint);
    font-size: calc(var(--evy-u) * 18);
}

/* Scale help button (question mark) */
.evy-scale-help-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--evy-faint);
    vertical-align: middle;
    line-height: 1;
    transition: color .15s;
    flex-shrink: 0;
}

.evy-scale-help-btn:hover,
.evy-scale-help-btn.is-active {
    color: var(--color-primary, #2271b1);
}

.evy-scale-help-btn .dashicons {
    font-size: calc(var(--evy-u) * 16);
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.evy-val-sub .evy-scale-help-btn {
    vertical-align: middle;
    margin-left: -1px;
    position: relative;
    top: -1px;
}

.evy-val-sub .evy-scale-help-btn .dashicons {
    font-size: calc(var(--evy-u) * 18);
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Scale tooltip (position: fixed, managed by JS) */
.evy-scale-tooltip {
    position: fixed;
    z-index: 100000;
    background: var(--evy-bg);
    border: 1px solid var(--evy-line-strong);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    padding: 12px 14px;
    min-width: 0;
    max-width: min(320px, calc(100vw - 16px));
    box-sizing: border-box;
}

.evy-scale-tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: var(--evy-bg);
    border-left: 1px solid var(--evy-line-strong);
    border-top: 1px solid var(--evy-line-strong);
    transform: rotate(45deg);
}

.evy-scale-tooltip-header {
    font-size: calc(var(--evy-u) * 12);
    font-weight: 600;
    color: var(--color-base, #1d2327);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.evy-scale-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(var(--evy-u) * 13);
}

.evy-scale-tooltip-table td {
    padding: 3px 0;
    color: var(--evy-muted);
}

.evy-scale-tooltip-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    padding-right: 12px;
    color: var(--color-primary, #2271b1);
    width: 80px;
}

/* Details toggle cell — desktop: under sat column */
.evy-td-details-toggle {
    grid-column: 3;
    grid-row: 2;
}

.evy-detail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-primary, #2271b1);
    font-size: calc(var(--evy-u) * 13);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s;
}

.evy-detail-toggle-text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.evy-detail-toggle:hover .evy-detail-toggle-text {
    text-decoration-thickness: 2px;
}

.evy-detail-icon {
    font-weight: 700;
    font-size: calc(var(--evy-u) * 15);
    transition: transform .2s;
}

.evy-detail-toggle[aria-expanded="true"] .evy-detail-icon {
    transform: rotate(45deg);
}

/* Detail panel — expandable below a table row */
/* No ground of its own: the panel belongs to its row and stands on whatever the table stands on (a white box on
   a tinted band read as a separate card — 23. 11.). */
.evy-table-detail {
    padding: 16px 0 40px;
    border-bottom: 1px solid var(--color-neutral-200, #d5d6d8);
}

.evy-detail-card {
    max-width: 900px;
}

.evy-table-group.is-detail-open > .evy-table-row {
    border-bottom: none;
}

.evy-detail-card {
    padding: 12px 0;
}

.evy-detail-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.evy-detail-title {
    font-size: calc(var(--evy-u) * 14);
    font-weight: 600;
    margin: 0 0 8px;
}

.evy-detail-explanation {
    font-size: calc(var(--evy-u) * 13);
    color: var(--evy-faint);
    margin-bottom: 8px;
}

.evy-detail-body {
    font-size: calc(var(--evy-u) * 13);
    color: var(--evy-muted);
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Hide table header on mobile */
    .evy-table-head {
        display: none;
    }

    /* Stack: label full width, imp+sat side by side, tendence below */
    .evy-table-row,
    .evy-table-row.has-tendence {
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
        row-gap: 20px;
        padding: 20px 0;
    }

    .evy-td-label {
        grid-column: 1 / -1;
    }

    .evy-td-tendence {
        grid-column: 1 / -1;
    }

    /* Label full width */
    .evy-td-label {
        font-size: calc(var(--evy-u) * 16);
    }

    /* Imp & Sat keep column layout on mobile */
    .evy-td-imp,
    .evy-td-sat {
        flex-direction: column;
        gap: 4px;
    }

    .evy-val-main {
        font-size: calc(var(--evy-u) * 15);
    }

    /* Details toggle — full width, left aligned */
    .evy-td-details-toggle {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        margin-top: -12px;
    }

    /* Tendence column */
    .evy-td-tendence {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        margin-top: -12px;
    }

    .evy-td-tendence:has(.evy-detail-toggle)::before {
        content: 'Tendence:';
        font-size: calc(var(--evy-u) * 13);
        font-weight: 700;
        color: var(--evy-faint);
    }

    .evy-td-tendence:not(:has(.evy-detail-toggle)) {
        display: none !important;
    }

    /* Tendence year blocks on mobile — match main row 1fr 1fr */
    .evy-tendence-year-block,
    .evy-tendence-panel .evy-tendence-year-block,
    .has-tendence .evy-tendence-year-block {
        grid-template-columns: 1fr 1fr !important;
        column-gap: 16px !important;
    }

    .evy-tendence-year-block .evy-td-label {
        display: none;
    }

    .evy-tendence-year-label {
        grid-column: 1 !important;
    }

    /* Detail panels */
    .evy-table-detail {
        padding: 4px 0 24px;
    }

    .evy-detail-card {
        padding-top: 0 !important;
    }

    /* Bar charts */
    .evy-bar-label {
        width: 120px !important;
        min-width: 120px !important;
    }

    .evy-bar-value {
        min-width: 50px;
    }

    /* Matrix tables scroll horizontally */
    .evy-matrix-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet: hide tendence column, show inline */
    .evy-table-head.has-tendence {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .evy-table-head .evy-th-tendence {
        display: none;
    }

    .evy-table-row.has-tendence {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .evy-td-details-toggle {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .evy-td-tendence {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding-top: 8px;
    }

    .evy-td-tendence:has(.evy-detail-toggle)::before {
        content: 'Tendence:';
        font-size: calc(var(--evy-u) * 13);
        font-weight: 700;
        color: var(--evy-faint);
    }

    .evy-td-tendence:not(:has(.evy-detail-toggle)) {
        display: none !important;
    }

    .evy-tendence-year-block,
    .evy-tendence-panel .evy-tendence-year-block,
    .has-tendence .evy-tendence-year-block {
        grid-template-columns: 2fr 1fr 1fr !important;
    }

}

/* ═══════════════════════════════════════════════════════
   Other result cards
   ═══════════════════════════════════════════════════════ */

.evy-other-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.evy-fe-card {
    background: var(--evy-bg);
    border: 1px solid var(--evy-line);
    border-radius: 8px;
    padding: 16px 20px;
}

.evy-fe-card-title {
    font-size: calc(var(--evy-u) * 15);
    font-weight: 600;
    margin: 0 0 12px;
}

.evy-fe-card-body {
    font-size: calc(var(--evy-u) * 14);
    color: var(--evy-muted);
    max-width: 900px;
}

/* ═══════════════════════════════════════════════════════
   Accordion (Kdo odpovídal)
   ═══════════════════════════════════════════════════════ */

.evy-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}

.evy-accordion-item {
    border-bottom: 1px solid var(--evy-line);
}

.evy-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: calc(var(--evy-u) * 15);
    font-weight: 600;
    color: var(--color-base, #1d2327);
    transition: color .15s;
}

.evy-accordion-trigger:hover {
    color: var(--color-primary, #2271b1);
}

.evy-accordion-trigger[aria-expanded="true"] {
    color: var(--color-primary, #2271b1);
}

.evy-accordion-icon {
    font-size: calc(var(--evy-u) * 20);
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .2s;
}

.evy-accordion-trigger[aria-expanded="true"] .evy-accordion-icon {
    transform: rotate(45deg);
}

.evy-accordion-panel {
    padding: 0 0 24px;
    max-width: 900px;
}

.evy-empty {
    text-align: center;
    color: var(--evy-faint);
    font-size: calc(var(--evy-u) * 15);
    padding: 40px 0;
}

/* ═══════════════════════════════════════════════════════
   Shared result styles (bar charts etc. inside cards/accordion)
   ═══════════════════════════════════════════════════════ */

.evy-result-count {
    font-size: calc(var(--evy-u) * 13);
    color: var(--evy-faint);
    margin-bottom: 8px;
}

.evy-bar-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    font-size: calc(var(--evy-u) * 13);
}

.evy-bar-label {
    width: 200px;
    min-width: 200px;
    word-wrap: break-word;
    white-space: normal;
}

.evy-bar-track {
    flex: 1;
    height: 18px;
    margin-top: 1px;
    background: var(--color-neutral-200, #d5d6d8);
    border-radius: 4px;
    overflow: hidden;
}

.evy-bar-fill {
    height: 100%;
    background: var(--color-primary, #2271b1);
    border-radius: 4px;
}

.evy-bar-value {
    font-size: calc(var(--evy-u) * 12);
    color: var(--evy-faint);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* AI summary for text answers */
.evy-ai-summary {
    font-size: calc(var(--evy-u) * 14);
    line-height: 1.6;
    color: var(--evy-muted);
}

.evy-ai-summary h4 {
    font-size: calc(var(--evy-u) * 14);
    font-weight: 700;
    margin: 12px 0 4px;
}

.evy-ai-summary h4:first-child {
    margin-top: 0;
}

.evy-ai-summary p {
    margin: 0 0 8px;
}

.evy-ai-summary ul,
.evy-ai-summary ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

.evy-ai-summary li {
    margin-bottom: 3px;
}

.evy-text-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.evy-text-list li {
    margin-bottom: 4px;
}

.evy-text-more {
    color: var(--evy-faint);
    font-style: italic;
    margin: 6px 0 0;
}

.evy-avg-value {
    font-size: calc(var(--evy-u) * 24);
    font-weight: 700;
    color: var(--color-primary, #2271b1);
}

.evy-avg-max {
    font-size: calc(var(--evy-u) * 14);
    font-weight: 400;
    color: var(--evy-faint);
}

.evy-imp-wrap {
    display: flex;
    gap: 20px;
}

.evy-imp-col {
    flex: 1;
}

.evy-imp-value {
    font-size: calc(var(--evy-u) * 18);
    font-weight: 700;
    color: var(--color-primary, #2271b1);
}

.evy-imp-sub {
    font-size: calc(var(--evy-u) * 12);
    color: var(--evy-faint);
    margin-top: 4px;
}

.evy-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(var(--evy-u) * 13);
}

.evy-matrix-table th,
.evy-matrix-table td {
    border: 1px solid var(--evy-line);
    padding: 6px 8px;
    text-align: center;
}

.evy-matrix-table th {
    background: var(--evy-surface);
    font-weight: 600;
}

.evy-matrix-table td:first-child {
    text-align: left;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   Tendence
   ═══════════════════════════════════════════════════════ */

.evy-td-tendence {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    grid-column: 4;
    grid-row: 1 / 3;
}

.evy-tendence-badge {
    font-size: calc(var(--evy-u) * 12);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    align-self: flex-start;
}

.evy-tendence-very-negative   { background: #fde2e2; color: #8b1a1a; }
.evy-tendence-negative        { background: #fde8d8; color: #9a3412; }
.evy-tendence-slight-negative { background: #fef3e2; color: #9a6700; }
.evy-tendence-neutral         { background: var(--evy-surface); color: var(--evy-muted); }
.evy-tendence-slight-positive { background: #e8f5e9; color: #2e7d32; }
.evy-tendence-positive        { background: #c8e6c9; color: #1b5e20; }
.evy-tendence-very-positive   { background: #a5d6a7; color: #0d3d0d; }

.evy-tendence-panel {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-neutral-200, #d5d6d8);
}

.evy-tendence-year-label {
    font-size: calc(var(--evy-u) * 13);
    font-weight: 700;
    color: var(--evy-faint);
    grid-column: 2 / -1;
    margin-bottom: 6px;
}

.evy-tendence-year-block {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    column-gap: 24px;
    padding-bottom: 12px;
    /* No line between the earlier years: they are one answer to "how did it move", parted by their year labels and
       by air. The line under the whole panel (above) closes the row. */
}

.has-tendence .evy-tendence-year-block {
    grid-template-columns: 2fr 1fr 1fr 160px;
}

/* Year label row — tight padding */
.evy-tendence-year-block:has(.evy-tendence-year-label) {
    padding-bottom: 0;
}

.evy-tendence-data-imp,
.evy-tendence-data-sat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* AJAX content loading */
#evy-content-wrap {
    transition: opacity .2s;
}

@keyframes evy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════════════
   Filter bar — minimal, left-aligned above the table
   ═══════════════════════════════════════════════════════ */
.evy-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    font-size: calc(var(--evy-u) * 14);
}

.evy-filter-bar .evy-filter-label {
    color: var(--evy-muted);
    font-weight: 600;
}

.evy-filter-bar select {
    font-size: calc(var(--evy-u) * 14);
    padding: 5px 10px;
    border: 1px solid var(--evy-line);
    border-radius: 4px;
    background: var(--evy-bg);
    color: inherit;
    cursor: pointer;
    max-width: 280px;
}

.evy-filter-bar select:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.evy-filter-bar .evy-filter-clear {
    background: none;
    border: none;
    color: var(--color-primary, #2271b1);
    font-size: calc(var(--evy-u) * 13);
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
}

.evy-filter-bar .evy-filter-clear:hover {
    text-decoration: underline;
}

.evy-filter-bar .evy-filter-active-count {
    color: var(--evy-muted);
    font-size: calc(var(--evy-u) * 13);
}

.evy-section-filter-note {
    display: inline;
    margin-left: 8px;
    font-size: calc(var(--evy-u) * 14);
    font-weight: 400;
    color: var(--evy-muted);
    vertical-align: middle;
}

.evy-section-filter-note .evy-filter-clear-inline {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-primary, #2271b1);
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.evy-section-filter-note .evy-filter-clear-inline:hover {
    text-decoration: none;
}
