/* Trésorerie: the hub, the invoices, the refunds, the statements, the third parties and a member's
   own refunds. Built on imports.css (gi-) and licences.css (gl- tables, drawers and dialogs); what
   the treasury adds is prefixed gy-. */

.gy {
    --gy-draft: #8E99AB;
    --gy-submitted: #34A4E0;
    --gy-approved: #A58BE8;
    --gy-rejected: #F02030;
    --gy-rejected-text: #F06A75;
    --gy-waiting: #F0C030;
    --gy-paid: #22C55E;
}

/* ── The six states: a draft grey, what waits for someone yellow, a step passed blue, paid
   white, rejected red; no dot, 12 px. ── */

.gy-st--draft { --gy-st: var(--dark-fg-3); --gy-st-bg: var(--thonon-graphite); --gy-st-text: var(--dark-fg-2); }
.gy-st--submitted { --gy-st: var(--thonon-yellow); --gy-st-bg: rgba(240, 192, 48, 0.14); --gy-st-text: var(--thonon-yellow); }
.gy-st--approved { --gy-st: var(--thonon-blue-bright); --gy-st-bg: rgba(52, 164, 224, 0.14); --gy-st-text: var(--thonon-blue-bright); }
.gy-st--rejected { --gy-st: var(--thonon-red); --gy-st-bg: rgba(240, 32, 48, 0.16); --gy-st-text: #FF8A93; }
.gy-st--waiting { --gy-st: var(--thonon-yellow); --gy-st-bg: rgba(240, 192, 48, 0.14); --gy-st-text: var(--thonon-yellow); }
.gy-st--paid { --gy-st: var(--dark-fg-2); --gy-st-bg: var(--thonon-graphite); --gy-st-text: #fff; }

.gy-st {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--gy-st-bg);
    color: var(--gy-st-text);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gy-st--sm {
    min-height: 20px;
    padding: 1px 8px;
}

/* ── Shared bits ────────────────────────────────────────── */

.gy-num { text-align: right; justify-self: end; }

.gy-end { display: flex; justify-content: flex-end; overflow: visible; }
.gy-dim { color: var(--dark-fg-3); }

/* A cell of two lines: what it is, then the reference it carries. */

.gy-strong { font-weight: 600; color: #fff; }
.gy-warn { color: var(--thonon-yellow); }
.gy-spacer { flex: 1; }

.gy-ellipsis {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Every amount of the treasury reads in the design system's monospace: figures line up, and a
   cent is never mistaken (the club's rule). */
.gy-amount {
    font: 600 14px/1 var(--font-mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #fff;
}

.gy-amount--in { color: var(--gy-paid); }
.gy-amount--out { color: var(--gy-rejected-text); }

.gy-eyebrow {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9B8CF0;
}

.gy-count {
    margin-left: 8px;
    font: 700 15px/1 var(--font-display);
    color: var(--thonon-yellow);
}

.gy-section-title {
    display: flex;
    align-items: baseline;
    margin: 4px 0 0;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}

.gy-note {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--dark-fg-3);
}

.gy-note strong { color: #fff; font-weight: 600; }
.gy-note a { color: #B0A4F0; }
.gy-note--dim { font-size: 12.5px; }

.gy-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--gi-vio-ring);
    border-radius: 50%;
    background: var(--gi-vio-tint);
    color: #B0A4F0;
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.04em;
}

.gy-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--dark-border-1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

/* A voucher the statement has reconciled: the bank agrees with what the club says it paid. */

.gy-btn--row {
    height: 34px;
    min-width: 104px;
    padding: 0 12px;
    font-size: 13px;
}

.gy-btn--ghost {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.06);
}

.gy-toast {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--gi-info-ring);
    border-radius: 6px;
    background: var(--gi-info-tint);
    font-size: 13.5px;
    color: #fff;
}

/* An amount never breaks before its euro sign. The treasury's KPIs are counts and amounts: in the
   monospace too. */
.gy .gi-kpi__value {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
}

/* ── Tabs and chips ─────────────────────────────────────── */

.gy-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    border-bottom: 1px solid var(--dark-border-1);
}

.gy-tabs__list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.gy-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--dark-fg-3);
    font: 700 12.5px/1 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.gy-tab:hover { color: #fff; }

.gy-tab--on {
    border-bottom-color: var(--thonon-yellow);
    color: #fff;
}

.gy-tab__count {
    font: 700 12px/1 var(--font-mono);
    color: var(--thonon-yellow);
}

/* ── Tables ─────────────────────────────────────────────── */

.gy-table--invoices { --gl-columns: 110px minmax(0, 1.3fr) minmax(0, 1fr) 110px 120px minmax(0, 1.6fr) 24px; }
.gy-table--refunds { --gl-columns: 110px minmax(0, 1.1fr) minmax(0, 1.3fr) 64px 76px 110px minmax(0, 1.6fr) 24px; }
.gy-table--parties { --gl-columns: minmax(0, 1.6fr) 120px 80px 130px auto; }

.gy-row {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    background: none;
    font: inherit;
    text-align: left;
}

.gy-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gy-link a { text-decoration: none; }
.gy-link a:hover { text-decoration: underline; }

.gy-empty-row {
    margin: 0;
    padding: 18px;
    font-size: 13.5px;
    color: var(--dark-fg-3);
}

.gy-legend {
    flex-wrap: wrap;
    justify-content: space-between;
}

.gy-legend__caps {
    font: 700 12px/1.3 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}


.gy-legend__note {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--dark-fg-3);
}

/* ── Hub ────────────────────────────────────────────────── */

.gy-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    color: #fff;
    text-decoration: none;
}

.gy-tile:hover {
    border-color: var(--gi-vio-ring);
    background: rgba(165, 139, 232, 0.08);
    color: #fff;
}

.gy-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gy-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dark-border-2);
    background: var(--thonon-black);
    color: #fff;
}

.gy-tile__title { font: 800 18px/1.15 var(--font-condensed); letter-spacing: 0.04em; text-transform: uppercase; }
.gy-tile__sub { font-size: 15px; color: var(--dark-fg-2); }

/* A deadline already passed: said in the colour of what is late, not in the dim of a note. */
.gy-sub--err { color: var(--gi-err); }

/* « Mes demandes »: one tile per kind of request. A tile holds two links, so it is no link itself. */
.gy-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.gy-tile--hub { gap: 14px; }

/* « Aussi »: what sits with the requests without being one. */
.gy-also {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    overflow: hidden;
}

.gy-also__title {
    margin: 0;
    padding: 20px 20px 12px;
    font: 800 18px/1.2 var(--font-condensed);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gy-also__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 20px;
    border-top: 1px solid var(--dark-border-1);
    color: var(--dark-fg-3);
    text-decoration: none;
}

.gy-also__link:hover { background: var(--thonon-surface-2); }
.gy-also__link > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.gy-also__link b { font-size: 16px; font-weight: 600; color: #fff; }
.gy-also__link small { font-size: 14px; color: var(--dark-fg-2); }
.gy-also__link svg { fill: currentColor; }

.gy-tile--hub:hover {
    border-color: var(--dark-border-1);
    background: var(--thonon-night);
}

.gy-tile--hub .gy-tile__top { justify-content: flex-start; gap: 10px; }
.gy-tile--hub .gy-tile__title { margin: 0; }
.gy-tile--hub .gy-tile__sub { margin: 0; }

.gy-tile__pills,
.gy-tile__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gy-tile__links { margin-top: auto; }
.gy-tile__links .gi-btn { flex: 1 1 0; justify-content: center; }

/* ── Accounts ───────────────────────────────────────────── */


/* ── The voucher: frieze, sheet, blocks ───────────────────── */

.gy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.gy-ro {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.gy-ro__value {
    font-size: 14.5px;
    color: #fff;
    overflow-wrap: anywhere;
}

.gy-block {
    --gy-block: var(--gy-draft);
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--gy-block) 40%, transparent);
    border-left: 3px solid var(--gy-block);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gy-block--err { --gy-block: var(--gy-rejected); }

.gy-block--info { --gy-block: var(--gy-submitted); }
.gy-block--warn { --gy-block: var(--gy-waiting); }

.gy-block__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--dark-border-1);
    color: color-mix(in srgb, var(--gy-block) 70%, #fff);
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gy-block__head .gy-count { margin-left: 0; }
.gy-block__title { flex: 1; }

.gy-block__body {
    margin: 0;
    padding: 11px 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--dark-fg-2);
}

.gy-block__foot {
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--dark-border-1);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--dark-fg-3);
}

/* ── Drawers and dialogs ────────────────────────────────── */

.gy-drawer { width: min(520px, 100vw); }

.gy .gl-drawer__foot.gy-drawer__foot,
.gy-drawer .gl-drawer__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-drawer__foot .gy-drawer__note {
    flex-basis: 100%;
    order: -1;
}

.gy-drawer__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dark-fg-3);
}

.gy-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px dashed var(--dark-border-2);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
}

.gy-drop:hover,
.gy-drop:focus-within {
    border-color: var(--gi-vio-ring);
    background: rgba(165, 139, 232, 0.06);
}

.gy-drop--tall { min-height: 96px; }

.gy-drop__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gy-drop__title { font-weight: 600; font-size: 13.5px; color: #fff; overflow-wrap: anywhere; }

/* An invoice read as it is dropped: the type of a third party to create, chosen in its band. */

.gy-drop__sub { font-size: 12px; color: var(--dark-fg-3); }

.gy-dialog {
    z-index: 121;
    width: min(520px, calc(100vw - 32px));
}

/* A dialog opened from a voucher's drawer dims the drawer too. */
.gy-dialog-scrim { z-index: 120; }

.gy-dialog .gl-dialog__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gy-dialog .gl-dialog__body p { margin: 0; }

.gy-dialog__rule {
    font-size: 13px;
    color: var(--dark-fg-3);
}

.gy-choices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gy-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.gy-choice input { accent-color: var(--thonon-yellow); }

.gy-choice--on {
    border-color: var(--gi-vio-ring);
    background: var(--gi-vio-tint);
}

.gy-choice--piece .gy-ellipsis { flex: 1; color: var(--dark-fg-2); }

/* ── Statements ─────────────────────────────────────────── */

.gy-receipts {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 11px 14px;
    list-style: none;
}

.gy-receipts li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 12px;
}

.gy-receipts .gy-ellipsis { flex: 1; color: #fff; }
.gy-receipts .gy-amount { font-size: 13px; }

/* ── Third parties ──────────────────────────────────────── */

/* ── A member's refunds ─────────────────────────────────── */

.gy-card__warn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--thonon-yellow);
}

.gy-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gy-form__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gy-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gy-detail-head__amount { font: 600 20px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.gy-kv-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gy-timeline {
    margin: 0;
    padding: 4px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
    list-style: none;
}

.gy-timeline__step {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}

.gy-timeline__step + .gy-timeline__step { border-top: 1px solid var(--dark-border-1); }

.gy-timeline__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gy-st);
}

.gy-timeline__label { flex: 1; font-weight: 600; font-size: 14px; color: #fff; }
.gy-timeline__date { font-size: 12px; color: var(--dark-fg-3); }

.gy-member-foot {
    display: flex;
    gap: 8px;
}

.gy-member-foot .gi-btn { flex: 1; }

/* On a wide screen the member's action sits under the detail, not on a dock. */
@media (min-width: 901px) {
    .gy-member-foot {
        position: static;
        padding: 0;
        border: 0;
        background: none;
    }

    .gy-member-foot .gi-btn { flex: 0 0 auto; width: auto; }
}

/* ── Ledger ─────────────────────────────────────────────── */

.gy-season-pick { width: 220px; max-width: 100%; }

.gy-entries {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gy-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 0;
    font-size: 13px;
}

.gy-entry + .gy-entry { border-top: 1px solid var(--dark-border-1); }
.gy-entry__date { flex-shrink: 0; width: 44px; font-size: 12px; }

.gy-entry__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gy-entry__label { color: #fff; }

.gy-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 12px;
    color: var(--dark-fg-3);
}

.gy-entry__meta a { color: var(--dark-fg-2); }
.gy-entry__why { color: var(--thonon-yellow); }
.gy-entry .gy-amount { flex-shrink: 0; font-size: 13px; }

/* ── Narrow desktop ─────────────────────────────────────── */

@media (max-width: 1180px) {
    
    .gy-tabs { padding: 0 20px; }
}

/* ── Phone ──────────────────────────────────────────────── */

@media (max-width: 900px) {
    .gy-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 16px 10px;
    }

    .gy-grid { grid-template-columns: minmax(0, 1fr); }

    /* A table row becomes a card: the first two cells lead, the rest wrap under them. */
    .gy-table .gl-table__head { display: none; }

    .gy-table .gl-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        padding: 12px 14px;
    }

    .gy-table .gl-row > .gl-who {
        flex: 1 1 100%;
        order: -1;
    }

    .gy-table .gy-num { text-align: left; justify-self: auto; }

    .gy-table .gy-end { margin-left: auto; }

    .gy-table--refunds .gl-row > :nth-child(3) { flex: 1 1 100%; white-space: normal; }

    .gy-legend__note { margin-left: 0; }

    .gy-drawer .gl-drawer__foot .gi-btn { flex: 1 1 auto; }

    .gy-member-foot {
        z-index: 6;
    }

    .gi-main:has(.gy-member-foot),
    .gy--member .gi-main:has(.gl-sticky) {
        padding-bottom: 76px;
    }
}

/* ── Comptes ──────────────────────────────────────────────
   The accounts, their statements, and the birth of an account from its first statement. */

.gy-table--accounts {
    --gl-columns: minmax(0, 1.8fr) 140px 100px 74px 130px 18px;
}

.gy-table--accounts .gl-row { min-height: 64px; }

.gy-account-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.gy-account-cell__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid rgba(165, 139, 232, 0.4);
    border-radius: 6px;
    background: rgba(165, 139, 232, 0.16);
    color: #A99BF0;
}

.gy-account-cell__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.gy-account-cell__text .gi-mono { font-size: 12px; }

.gy-balance {
    font: 500 16px/1 var(--font-mono);
    color: #fff;
    white-space: nowrap;
}

.gy-rec {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gy-rec--ok { color: var(--ga-green, #22C55E); }
.gy-rec--todo { color: var(--thonon-yellow); }
.gy-rec--none { color: var(--dark-fg-3); }

.gy-note--end { margin-top: 18px; }

.gy-table--statements {
    --gl-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 64px 124px minmax(0, 1fr);
}

.gy-statement-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gy-first {
    padding: 3px 8px;
    border: 1px solid rgba(165, 139, 232, 0.45);
    border-radius: 999px;
    background: rgba(165, 139, 232, 0.14);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #A99BF0;
    white-space: nowrap;
}

.gy-who-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-size: 12px;
}

.gy-open-rec { align-self: flex-start; }

/* The rail's plain cards: the account, what uses it. */
.gy-panel {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 14px 15px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gy .gi-rail .gy-panel + .gy-panel,
.gy .gi-rail .gy-panel + .gi-band { margin-top: 12px; }

@media (max-width: 900px) {
    /* The licences kit swaps its rows for cards on a phone; these tables have no cards, so their
       rows stay, with fewer columns. */
    .gy-table--accounts .gl-table__head,
    .gy-table--accounts .gl-row,
    .gy-table--statements .gl-table__head,
    .gy-table--statements .gl-row {
        display: grid;
    }

    .gy-table--accounts,
    .gy-table--statements {
        border: 1px solid var(--dark-border-1);
        background: var(--thonon-night);
        gap: 0;
        overflow: hidden;
    }

    .gy-table--accounts { --gl-columns: minmax(0, 1fr) auto 18px; }

    .gy-table--accounts .gl-table__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .gy-table--accounts .gl-table__head > :nth-child(3),
    .gy-table--accounts .gl-table__head > :nth-child(4),
    .gy-table--accounts .gl-table__head > :nth-child(5),
    .gy-table--accounts .gl-row > :nth-child(3),
    .gy-table--accounts .gl-row > :nth-child(4),
    .gy-table--accounts .gl-row > :nth-child(5) {
        display: none;
    }

    .gy-table--statements { --gl-columns: minmax(0, 1fr) auto; }

    .gy-table--statements .gl-table__head > :nth-child(n + 2):not(:nth-child(4)),
    .gy-table--statements .gl-row > :nth-child(n + 2):not(:nth-child(4)) {
        display: none;
    }
}

@media (max-width: 900px) {
    .gy-season-pick { width: 100%; }
}

/* ── Aides ─────────────────────────────────────────────────
   The licences' aids, scheme by scheme: how it works, the e-mail asking for a code, the files. */

.gy-table--aids { --gl-columns: minmax(0, 1.6fr) 150px 112px minmax(0, 1.5fr); }
.gy-table--aids-ref { --gl-columns: minmax(0, 1.3fr) 124px 128px 108px minmax(0, 1.7fr); }

.gy-aid-row { align-items: start; }
.gy-aid-row .gl-cell,
.gy-aid-row .gl-who__name,
.gy-aid-row .gl-who__sub { white-space: normal; }
.gy-aid-row--incomplete { box-shadow: inset 3px 0 0 var(--gy-waiting); }

.gy-aid-contacts {
    gap: 3px;
    font-size: 12.5px;
    color: var(--dark-fg-2);
}

.gy-aid-contacts a { color: inherit; text-decoration: none; }
.gy-aid-contacts a:hover { text-decoration: underline; }
.gy-aid-contacts .gi-mono { white-space: nowrap; }

.gy-aid-contacts__mail {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: var(--dark-fg-3);
}

.gy-aid-contacts__mail a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline;
}

.gy-aid-copy {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--dark-border-1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-fg-2);
    cursor: pointer;
}

/* Copied from anywhere in the table: the confirmation shows where the eye is. */
.gy-toast--float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 130;
    background: linear-gradient(var(--gi-info-tint), var(--gi-info-tint)), var(--thonon-night);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gy-aid-copy:hover { color: #fff; border-color: var(--gi-vio-ring); }

.gy-aid-refund { font-size: 13px; color: var(--dark-fg-3); }
.gy-aid-refund--done { color: var(--gy-paid); }
.gy-aid-edit { margin-top: 4px; }

.gy-aid-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gy-aid-form .gl-field .gy-note { margin: 6px 0 0; }

.gy-aid-mail .gy-block__head { justify-content: space-between; }

.gy-aid-mail__hint,
.gy-aid-mail__subject { margin: 0 0 8px; }

.gy-aid-mail__text {
    padding: 10px 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    user-select: text;
}

.gy-aid-mail__text p { margin: 0 0 8px; }
.gy-aid-mail__text p:last-child { margin-bottom: 0; }

.gy-aid-mail__to {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gy-aid-mail__emails { overflow-wrap: anywhere; color: var(--dark-fg-2); }

@media (max-width: 900px) {
    .gy-aid-row .gl-cell:first-child { flex: 1 1 100%; order: -1; }
    .gy-aid-contacts { flex: 1 1 100%; }
    .gy-aid-mail__to { flex-direction: column; }
    .gy-toast--float { left: 16px; right: 16px; bottom: 84px; }
}

/* ----------------------------------------------------------------------------------------------
   Bilan & budget. The budget is built on the coach kit's rate bar (gc-), whose tones already say
   « comfortable / close / over »; the pages themselves are drawn in the statements' block below.
   ---------------------------------------------------------------------------------------------- */

.gy-note--warn {
    border-left: 2px solid var(--thonon-yellow);
    padding-left: 10px;
}

/* A poste past its envelope: the bar is full, and the mark shows where the budget stopped. */
.gy .gc-rate--over { --tone: var(--thonon-red); color: var(--thonon-red); }
.gy .gc-rate--none { --tone: var(--dark-border-2); color: var(--dark-fg-3); }

/* ── HelloAsso payouts (lot HelloAsso) ──────────────────── */

.gy-payout { padding-left: 0; padding-right: 0; }
.gy-payout__campaign { flex: 0 1 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }


.gy-campaign { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-campaign a { color: inherit; text-decoration: none; }
.gy-campaign a:hover { text-decoration: underline; }
.gy-campaign__meta { font-size: 12px; }
.gy-table--orders { --gl-columns: minmax(0, 1.4fr) 110px minmax(0, 1.4fr); }
.gy-link-order { display: flex; gap: 8px; align-items: center; min-width: 0; }
.gy-link-order .gl-select { flex: 1 1 auto; min-width: 0; }

@media (max-width: 720px) {
    .gy-table--orders { --gl-columns: minmax(0, 1fr) 96px; }
    .gy-table--orders .gl-row > :nth-child(3) { grid-column: 1 / -1; }
}

/* ── Note de frais kilométriques ───────────────────────────────────────────── */
/* Every stylesheet here is global, so these keep the treasury's own gy- prefix. */

.gy-check {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
}

.gy-check input { width: 22px; height: 22px; accent-color: var(--thonon-yellow); flex: 0 0 auto; }

/* A note's trips in the committee drawer: a real table, scrollable on a phone. */
.gy-trips {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gy-trips th,
.gy-trips td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--dark-border-1);
    text-align: left;
    vertical-align: top;
}

.gy-trips th {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gy-trips__num { text-align: right; }

@media (max-width: 720px) {
    .gy-trips { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Mes remboursements: one card per request, its amount large in the mono face. */
.gy-rq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 20px;
    padding: 20px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    color: inherit;
    text-decoration: none;
}

.gy-rq:hover { border-color: var(--dark-border-2); }
.gy-rq--todo { border-color: var(--thonon-yellow-deep); box-shadow: inset 0 -4px 0 var(--thonon-yellow); }
.gy-rq__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gy-rq__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gy-rq__title { font-size: 19px; font-weight: 600; }
.gy-rq__sub { font-size: 14px; color: var(--dark-fg-2); }
.gy-rq__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gy-rq__amount { font: 700 32px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.gy-rq__amount--todo { color: var(--thonon-yellow); }

/* A figure that is an amount takes the mono face. */
.gy-kpi-money .gi-kpi__value { font: 700 28px/1.1 var(--font-mono); }
.gy-kpi-money { display: contents; }

.gy-which { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--dark-fg-2); }
.gy-which b { color: var(--dark-fg-1); font-weight: 600; }

@media (max-width: 699px) {
    .gy-rq { grid-template-columns: minmax(0, 1fr); }
    .gy-rq__side { flex-direction: row; align-items: center; justify-content: space-between; }
    .gy-rq__amount { font-size: 26px; }
}

/* Note de frais km: one block per line, four columns wide; the matches in the rail. */
.gy-lines { padding: 0; gap: 0; overflow: hidden; }

.gy-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-line:first-child { border-top: 0; }
.gy-line__f2 { grid-column: span 2; }
.gy-line__f3 { grid-column: span 3; }
.gy-line__f4 { grid-column: 1 / -1; }
.gy-line__end { display: flex; justify-content: flex-end; }
.gy-line__remove { color: #FF8A93; }
.gy-line .gy-ro .gc-xs { margin-top: 2px; }

.gy-line__head {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.gy-line__head b { font: 800 18px/1.1 var(--font-condensed); letter-spacing: 0.04em; text-transform: uppercase; }
.gy-line__head .gi-mono { font-size: 22px; font-weight: 700; color: var(--thonon-yellow); }

.gy-actbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gy-actbar__end { margin-left: auto; }

.gy-sug {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 8px 0;
    border-top: 1px solid var(--dark-border-1);
}

.gy-sug:first-child { border-top: 0; }
.gy-sug__day { font-size: 14px; font-weight: 700; }
.gy-sug__what b { display: block; font-weight: 600; }
.gy-sug__what small { display: block; font-size: 13px; color: var(--dark-fg-2); }

.gy-veh-papers { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--dark-border-1); }

@media (max-width: 699px) {
    .gy-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; }
    .gy-line__f2, .gy-line__f3 { grid-column: 1 / -1; }
    .gy-actbar .gi-btn { flex: 1 1 100%; }
    .gy-actbar__end { margin-left: 0; }
}

.gy-legal { padding: 16px; border: 1px solid var(--dark-border-1); border-radius: var(--radius-card); background: var(--thonon-black, #0A0A0C); font-size: 14px; line-height: 1.6; color: var(--dark-fg-2); white-space: pre-line; }
.gy-empty { margin: 0; padding: 24px; border: 2px dashed var(--dark-border-2); border-radius: var(--radius-card); text-align: center; font-size: 14px; color: var(--dark-fg-2); }

/* The members' own requests: counts in the display face, amounts and dates in the mono. */
.gy--member .gi-kpi__value { font: 400 34px/1 var(--font-display); white-space: nowrap; }
.gy--member .gy-kpi-money .gi-kpi__value { font: 700 28px/1.1 var(--font-mono); }

/* ── Home, vouchers, third parties ── */

/* Counts in the display face, amounts in the mono: the hub, the vouchers, the third parties. */
.gy--counts .gi-kpi__value { font: 400 34px/1 var(--font-display); white-space: nowrap; }
.gy--counts .gy-kpi-money .gi-kpi__value { font: 700 28px/1.1 var(--font-mono); }

/* « Ce qui attend »: the count large and yellow, what it is, the page that settles it. */
.gy-att {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 20px;
    border-top: 1px solid var(--dark-border-1);
    color: inherit;
    text-decoration: none;
}

.gy-att:first-child { border-top: 0; }
a.gy-att:hover { background: var(--thonon-surface-2); }
.gy-att__count { font: 400 30px/1 var(--font-display); color: var(--thonon-yellow); }
.gy-att__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-att__text b { font-weight: 600; }
.gy-att__text small { font-size: 13px; line-height: 1.4; color: var(--dark-fg-2); }

.gy-att__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--thonon-blue-bright);
    font: 800 14px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* The domain, in four families of tiles. */
.gy-grp {
    margin: 6px 0 -4px;
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gy-dom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gy-dom__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    color: inherit;
    text-decoration: none;
}

.gy-dom__tile:hover { border-color: var(--dark-border-2); color: inherit; }
.gy-dom__tile--todo { border-color: var(--thonon-yellow-deep); box-shadow: inset 0 -3px 0 var(--thonon-yellow); }
.gy-dom__title { padding-right: 46px; font: 800 15px/1.2 var(--font-condensed); letter-spacing: 0.06em; text-transform: uppercase; }
.gy-dom__sub { font-size: 13px; line-height: 1.4; color: var(--dark-fg-2); }
.gy-dom__tile .gy-cnt { position: absolute; top: 14px; right: 14px; }

/* A count in a disc: yellow when something waits, graphite otherwise. */
.gy-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--thonon-yellow);
    color: var(--thonon-black);
    font: 700 12px/1 var(--font-mono);
}

.gy-cnt--quiet { background: var(--thonon-graphite); color: var(--dark-fg-2); }

/* A bank account in the rail (« .bank »): blue, the lion faint behind its balance. */
.gy-bank {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(52, 164, 224, 0.35);
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #0B5F8F, #0D2233 70%);
}

.gy-bank__wm { position: absolute; top: -20px; right: -30px; width: 180px; opacity: 0.12; pointer-events: none; }
.gy-bank__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gy-bank__name { font: 700 13px/1.3 var(--font-condensed); letter-spacing: 0.12em; text-transform: uppercase; color: var(--thonon-yellow); }
.gy-bank__iban,
.gy-bank__on { position: relative; font-size: 13px; color: #CFE6F5; }
.gy-bank__amount { position: relative; font-size: 34px; font-weight: 700; line-height: 1.1; color: #fff; white-space: nowrap; }

/* What is left once the vouchers engaged are paid. */
.gy-kvl-total { color: var(--dark-fg-1); font-weight: 600; }
.gy-left { color: var(--thonon-blue-bright); }
.gy-paid-total { font-size: 26px; font-weight: 700; }

.gy-meter__left { background: var(--thonon-blue-bright); }
.gy-meter__engaged { background: var(--thonon-yellow); }

/* A voucher's path as step tags: passed blue, current yellow, to come grey, refused red. */
.gy-pipe { display: flex; flex-wrap: wrap; gap: 4px; }

.gy-pipe__step {
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--thonon-graphite);
    color: var(--dark-fg-3);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gy-pipe__step--done { background: rgba(52, 164, 224, 0.14); color: var(--thonon-blue-bright); }
.gy-pipe__step--on { background: var(--thonon-yellow); color: var(--thonon-black); }
.gy-pipe__step--refused { background: rgba(240, 32, 48, 0.16); color: #FF8A93; }

/* The vouchers' lists: a cell of two lines, the number, the way into the drawer, the legend's swatches. */
.gy-cell2 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; white-space: normal; }
.gy-cell2 small { font-size: 13px; color: var(--dark-fg-2); }
.gy-cell2 small.gy-warn { color: var(--thonon-yellow); }
.gy-piece-no { font-size: 13px; color: var(--dark-fg-2); }
.gy-chevron { display: flex; justify-content: flex-end; color: var(--dark-fg-3); }
.gy-search { width: min(280px, 100%); }
.gy-swatch--done { background: rgba(52, 164, 224, 0.5); }
.gy-swatch--on { background: var(--thonon-yellow); }
.gy-swatch--next { background: var(--thonon-graphite); }

/* The voucher's drawer (FactureDetail, FactureNouvelle, RemboursementSaisie): what the voucher says as a
   list, a field still to fill in yellow, the category suggested beside it, the justificatif's card. */
.gy-kv {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0;
    font-size: 15px;
}

.gy-kv dt { color: var(--dark-fg-2); }
.gy-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.gy-kv dd.gy-warn { color: var(--thonon-yellow); }
.gy-kv__amount { font-size: 22px; font-weight: 700; }

.gl-select.gy-field--todo {
    border-color: var(--thonon-yellow-deep);
    background-color: rgba(240, 192, 48, 0.06);
}

.gy-hint { font-size: 13px; color: var(--dark-fg-3); }

.gy-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    font-size: 14px;
    color: var(--dark-fg-2);
}

.gy-suggest b { color: var(--dark-fg-1); font-weight: 600; }

.gy-just {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-surface-2);
}

.gy-just__label { font: 700 13px/1.2 var(--font-condensed); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-fg-3); }
.gy-just__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.gy-just__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-just__text b { font-size: 14px; overflow-wrap: anywhere; }
.gy-just__text small { font-size: 13px; color: var(--dark-fg-2); }
.gy-just__text small.gy-warn { color: var(--thonon-yellow); }

/* A rejection, a discarded draft: the note's red variant. */
.gy-pd-refused { border-color: #7A1C24; }
.gy-pd-refused svg { color: #FF8A93; }
.gy-quote { display: block; margin: 4px 0; color: var(--dark-fg-1); font-style: italic; }

/* A member's travel note, prepared by the treasury: the month, then the away matches to tick. */
.gy-month { align-self: flex-start; }
.gy-month button { min-width: 44px; min-height: 44px; padding: 0 14px; font: 700 14px/1 var(--font-mono); color: var(--dark-fg-2); }
.gy-month button:disabled { opacity: 0.38; cursor: default; }
.gy-trip-picks { display: flex; flex-direction: column; }
.gy-trip-pick { align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--dark-border-1); }
.gy-trip-pick:first-child { border-top: 0; }
.gy-trip-pick input { margin-top: 2px; }
.gy-trip-pick__day { flex: 0 0 48px; font-size: 14px; font-weight: 700; line-height: 24px; }
.gy-trip-pick__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-trip-pick__what b { font-weight: 600; }
.gy-trip-pick__what small { font-size: 13px; color: var(--dark-fg-2); }
.gy-trip-pick--taken { color: var(--dark-fg-3); }

/* The type of a third party to create, chosen in the reading's band. */
.gy-band-rad { margin-top: 8px; }

/* Tiers et comptes: a third party's kind as a tag (an institution in blue), the account's own page from its card. */
.gy-kind {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--thonon-graphite);
    color: var(--dark-fg-2);
    font: 800 12px/1.3 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gy-kind--institution { background: rgba(52, 164, 224, 0.14); color: var(--thonon-blue-bright); }
.gy-bank__link { position: relative; color: #fff; }

@media (max-width: 1099px) {
    .gy-dom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
    .gy-kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
    .gy-kv dd { margin-bottom: 8px; }
    .gy-att { grid-template-columns: 56px minmax(0, 1fr); padding: 10px 16px; }
    .gy-att__link { display: none; }
    .gy-dom__tile { min-height: 96px; padding: 12px; }
    .gy-bank__amount { font-size: 28px; }
}

/* ── Statements, ledger, bilan, budget ── */

/* A signed amount among the banner's figures: income green, spending red, its rule in the same tone. */
.gy .gy-kpi-money--in .gi-kpi.gi-kpi { --tone: #22C55E; }
.gy .gy-kpi-money--out .gi-kpi.gi-kpi { --tone: #FF8A93; }
.gy .gy-kpi-money--out .gi-kpi--alert { box-shadow: inset 0 -3px 0 #F02030; }

/* How much is done: reconciled or classified in blue, what is left in yellow. */
.gy-meter__done { background: var(--thonon-blue-bright); }

.gy-account-pick { max-width: 360px; }

/* The statement's filter and search, then its lines. */
.gy-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gy-filterbar__search { width: 280px; max-width: 100%; min-height: 44px; }
.gy-seg-n { margin-left: 8px; font: 700 13px/1 var(--font-mono); color: var(--dark-fg-2); }

.gy-lns {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    overflow: hidden;
}

.gy-ln {
    display: grid;
    grid-template-columns: 64px minmax(0, 1.4fr) 140px minmax(0, 1.2fr) 132px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 20px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-ln:first-child { border-top: 0; }

.gy-ln--head {
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gy-ln__date { font-size: 15px; color: var(--dark-fg-1); }
.gy-ln__label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-ln__label b { font-weight: 600; color: #fff; }
.gy-ln__label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--dark-fg-3); }
.gy-ln__amount { text-align: right; font-size: 15px; }
.gy-ln__link { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gy-ln__act { display: flex; justify-content: flex-end; }
.gy-ln__btn { min-height: 44px; }

/* What a line is matched with: done in blue, proposed — to confirm — in yellow. */
.gy-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    padding: 4px 10px;
    border: 0;
    border-radius: 4px;
    font: 600 13px/1.2 var(--font-body);
    text-decoration: none;
    text-align: left;
}

button.gy-tag-link,
a.gy-tag-link { min-height: 44px; cursor: pointer; }

.gy-tag-link--done { background: rgba(52, 164, 224, 0.12); color: var(--thonon-blue-bright); }
.gy-tag-link--todo { background: rgba(240, 192, 48, 0.12); color: var(--thonon-yellow); }
a.gy-tag-link:hover,
button.gy-tag-link:hover { text-decoration: underline; }

.gy-pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--dark-fg-3); }

/* The line a drawer is about, above its choices. */
.gy-lnsum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-graphite);
}

.gy-lnsum__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-lnsum__text b { font-weight: 600; color: #fff; }
.gy-lnsum__text small { font-size: 13px; color: var(--dark-fg-3); overflow-wrap: anywhere; }
.gy-lnsum__amount { flex-shrink: 0; font: 700 20px/1 var(--font-mono); }

/* Categories as chips in their group, the proposed one said so. */
.gy-rad button { font: 600 14px/1.25 var(--font-body); letter-spacing: 0; text-transform: none; text-align: left; padding: 8px 14px; }
.gy-rad__hint { margin-left: 8px; font: 700 12px/1 var(--font-condensed); letter-spacing: 0.08em; text-transform: uppercase; color: var(--thonon-yellow); }

.gy-more {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--thonon-blue-bright);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.gy-drop__btn { margin-top: 6px; pointer-events: none; }
.gy-lnchoices .gy-choice { min-height: 48px; }

@media (max-width: 1099px) {
    .gy-ln--head { display: none; }

    .gy-ln {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        grid-template-areas:
            "date label amount"
            "link link act";
        gap: 8px 12px;
        padding: 12px 16px;
    }

    .gy-ln__date { grid-area: date; align-self: start; }
    .gy-ln__label { grid-area: label; }
    .gy-ln__amount { grid-area: amount; align-self: start; }
    .gy-ln__link { grid-area: link; }
    .gy-ln__act { grid-area: act; }
    .gy-ln__link:has(> .gy-dim:only-child) { visibility: hidden; }
}

@media (max-width: 699px) {
    .gy-filterbar__search { width: 100%; }
}

.gy-ok { color: var(--thonon-blue-bright); }

/* A note on what is still to do: yellow, as « à classer » is everywhere. */
.gc-note.gy-note--todo { border-color: rgba(240, 192, 48, 0.45); background: rgba(240, 192, 48, 0.08); }
.gc-note.gy-note--todo svg { color: var(--thonon-yellow); }

/* The ledger by group and category: five columns on a desktop, a card per line under 1100 px. */
.gy-book {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    overflow: hidden;
}

.gy-book__row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 96px 150px 150px 150px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 8px 20px;
    border: 0;
    border-top: 1px solid var(--dark-border-1);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

.gy-book__row:first-child { border-top: 0; }
button.gy-book__row { cursor: pointer; }
button.gy-book__row:hover { background: rgba(255, 255, 255, 0.03); }

.gy-book__row--head {
    min-height: 44px;
    background: rgba(255, 255, 255, 0.03);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gy-book__row--todo { background: rgba(240, 192, 48, 0.08); }
.gy-book__row--todo .gy-book__name { font: 800 15px/1.2 var(--font-condensed); letter-spacing: 0.06em; text-transform: uppercase; color: var(--thonon-yellow); }
.gy-book__row--todo .gy-book__n { color: var(--thonon-yellow); }
.gy-book__row--cat .gy-book__name { padding-left: 26px; color: var(--dark-fg-2); }

.gy-book__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.gy-book__name b { font-weight: 600; color: #fff; }
.gy-book__name small { font-size: 12px; color: var(--dark-fg-3); }
.gy-book__n { font-size: 14px; color: var(--dark-fg-2); }
.gy-book__k { display: none; }
.gy-book__empty { margin: 0; padding: 18px 20px; font-size: 14px; color: var(--dark-fg-3); }

@media (max-width: 1099px) {
    .gy-book__row--head { display: none; }

    .gy-book__row {
        grid-template-columns: max-content max-content max-content minmax(0, 1fr) auto;
        gap: 4px 16px;
        padding: 12px 16px;
    }

    .gy-book__name { grid-column: 1 / 5; grid-row: 1; }
    .gy-book__bal { grid-column: 5; grid-row: 1; }

    /* The three other figures on one line under the name, each with its word. */
    .gy-book__n,
    .gy-book__in,
    .gy-book__out {
        grid-row: 2;
        justify-self: start;
        text-align: left;
        font-size: 13px;
    }

    .gy-book__k { display: inline; font: 400 12px/1 var(--font-body); color: var(--dark-fg-3); }
}

@media (max-width: 499px) {
    .gy-book__in,
    .gy-book__out { display: none; }
}

/* The bilan: three figures, tabs with the reading on their right, produits facing charges. */
.gy .gi-kpis.gi-kpis--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gy-tabbar { flex-wrap: wrap; gap: 8px 4px; padding: 0 0 8px; overflow: visible; }
.gy-tabbar .gc-tab { min-height: 48px; }
.gy-inline-link { color: var(--thonon-blue-bright); font-weight: 600; }

.gy-res-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.gy-res {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    overflow: hidden;
}

.gy-res__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px 124px 64px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 18px;
    border-top: 1px solid var(--dark-border-1);
    font-size: 14px;
}

.gy-res__row:first-child { border-top: 0; }
.gy-res--balance .gy-res__row { grid-template-columns: minmax(0, 1fr) 140px 140px 140px; }

.gy-res__row--head {
    background: rgba(255, 255, 255, 0.03);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gy-res__row--todo { background: rgba(240, 192, 48, 0.08); }
.gy-res__row--todo .gy-res__label { color: var(--thonon-yellow); font-weight: 600; }
.gy-res__row--total { background: rgba(255, 255, 255, 0.04); font-weight: 700; }
.gy-res__row--total .gy-res__label { color: #fff; }

.gy-res__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; color: var(--dark-fg-1); }
.gy-res__label small { font-size: 12px; font-weight: 400; color: var(--dark-fg-3); }
.gy-res__account { font-size: 13px; color: var(--dark-fg-3); }
.gy-res__num { text-align: right; justify-self: end; }
.gy-res__gap { font-size: 13px; }
.gy-res--result .gy-res__row { min-height: 52px; }
.gy-res--result .gy-amount { font-size: 16px; }

.gy-res-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gy-res-cards__amount { font: 700 22px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 1099px) {
    .gy-res-grid { grid-template-columns: minmax(0, 1fr); }
    .gy-res-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
    .gy .gi-kpis.gi-kpis--three { grid-template-columns: minmax(0, 1fr); }
    .gy-tabbar .gc-tabs__right { margin-left: 0; }
    .gy-res-cards { grid-template-columns: minmax(0, 1fr); }
    .gy-res__row { grid-template-columns: minmax(0, 1fr) 112px 104px; padding: 8px 14px; }
    .gy-res__gap { display: none; }
    .gy-res--balance .gy-res__row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .gy-res--balance .gy-res__row > :nth-child(2) { display: none; }
}

/* The budget: the empty state says the way, each group a card of gauges, the forecast typed in a
   drawer, right-aligned. */
.gy-budget-empty { align-items: center; padding: 40px 24px; text-align: center; }
.gy-budget-empty .gc-xs { max-width: 560px; font-size: 14px; }
.gy-budget-empty .gc-actions { justify-content: center; }

.gy-budget-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--thonon-graphite);
    color: var(--thonon-yellow);
}

.gy-budget { gap: 0; }

.gy-budget__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
    padding-bottom: 10px;
}

.gy-budget-line {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0;
    border-top: 1px solid var(--dark-border-1);
    font-size: 14px;
}

.gy-budget-line__name { min-width: 0; }
.gy-budget-line__name small { font-size: 12px; color: var(--dark-fg-3); }
.gy-budget-line__figures { text-align: right; font-size: 14px; }
.gy-budget-line .gc-bar { position: relative; }
.gy-budget-line .gc-ratebar .gc-bar { flex: 1 1 auto; }
.gy-budget-line .gc-rate__value { flex-shrink: 0; min-width: 56px; text-align: right; font: 600 13px/1 var(--font-mono); }

.gy-budget-form { display: flex; flex-direction: column; }
.gy-budget-form .gl-field__label { margin: 8px 0 4px; }

.gy-budget-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    border-top: 1px solid var(--dark-border-1);
    font-size: 14px;
    color: var(--dark-fg-1);
}

.gy-budget-input .gl-input { flex: 0 0 140px; min-height: 44px; text-align: right; }

@media (max-width: 1099px) {
    .gy-budget-line { grid-template-columns: minmax(0, 1fr) auto; }
    .gy-budget-line .gc-ratebar { grid-column: 1 / -1; }
}

/* ── HelloAsso, licences online, aids, mileage, receipts, absences ── */

/* A share bar: what is done in blue, what waits in yellow, what is refused in red, the rest graphite. */
.gy-meter {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--thonon-graphite);
    box-shadow: inset 0 0 0 1px var(--dark-border-2);
}

.gy-meter i { display: block; height: 100%; }
.gy-meter__ok { background: var(--thonon-blue-bright); }
.gy-meter__todo { background: var(--thonon-yellow); }
.gy-meter__err { background: var(--thonon-red); }

/* Campagnes HelloAsso: one row per campaign, its category under the amount on a phone. */
.gy-camps { padding: 0; gap: 0; overflow: hidden; }

.gy-camp {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 120px 130px 120px minmax(0, 1.4fr);
    gap: 12px;
    align-items: center;
    min-height: 60px;
    padding: 10px 20px;
    border-top: 1px solid var(--dark-border-1);
    font-size: 15px;
}

.gy-camp:first-child { border-top: 0; }
.gy-camp--head {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.035);
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gy-camp__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gy-camp__name b { font-weight: 600; color: #fff; }
.gy-camp__name a { color: inherit; text-decoration: none; }
.gy-camp__name a:hover { text-decoration: underline; }
.gy-camp__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--dark-fg-2); }
.gy-camp__extra { font-size: 14px; color: var(--dark-fg-2); }
.gy-camp__pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gy-camp__pick .gl-select { width: 100%; min-height: 44px; }
.gy-camp__select--todo { border-color: var(--thonon-yellow-deep); color: var(--thonon-yellow); }
.gy-camp__sug { font-size: 13px; color: var(--thonon-yellow); }

.gy-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.gy-apply { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; max-height: 320px; overflow: auto; }
.gy-apply li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.gy-apply span { color: var(--thonon-yellow); text-align: right; }

@media (max-width: 1099px) {
    .gy-camp { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
    .gy-camp--head, .gy-camp__extra { display: none; }
    .gy-camp__pick { grid-column: 1 / -1; }
}


/* Licences payées en ligne: the share collected, the instalments refused, the licences without an order. */
.gy-gauge__rate { font-size: 18px; font-weight: 700; color: var(--thonon-blue-bright); }
.gy-gauge__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--dark-fg-2); }
.gy-gauge__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.gy-gauge__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--thonon-graphite); box-shadow: inset 0 0 0 1px var(--dark-border-2); }

.gy-echs { padding: 0; gap: 0; overflow: hidden; }

.gy-ech {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 110px auto;
    gap: 12px;
    align-items: center;
    min-height: 60px;
    padding: 8px 20px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-ech:first-child, .gy-wo:first-child { border-top: 0; }
.gy-ech .gy-amount { text-align: right; }
.gy-ech__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-ech__who a { color: #fff; font-weight: 600; text-decoration: none; }
.gy-ech__who a:hover { text-decoration: underline; }
.gy-ech__who small { font-size: 13px; color: #FF8A93; }
.gy-ech__who small.gy-wo__day { color: var(--dark-fg-3); }

.gy-wo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 6px 20px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-wo__more {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 44px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    color: var(--thonon-blue-bright);
    font: 600 14px/1 var(--font-body);
    text-align: left;
    cursor: pointer;
}

@media (max-width: 699px) {
    .gy-ech { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who amount" "day action"; padding: 10px 16px; }
    .gy-ech > :nth-child(1) { grid-area: day; }
    .gy-ech > :nth-child(2) { grid-area: who; }
    .gy-ech > :nth-child(3) { grid-area: amount; }
    .gy-ech > :nth-child(4) { grid-area: action; }
    .gy-wo { padding: 6px 16px; }
}

/* Aides: a tab's count, readable (the shared tab count is drawn smaller). */
.gy-aids-n { font-size: 13px; font-weight: 700; color: var(--thonon-yellow); }


/* Indemnités kilométriques: the missing notes first, each with its « Relancer »; then the month's notes. */
.gy-chase { gap: 0; padding: 0; overflow: hidden; box-shadow: inset 0 -4px 0 var(--thonon-yellow); }
.gy-chase__head { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 20px; font-size: 14px; color: var(--dark-fg-2); }
.gy-chase__head b { color: #fff; font-weight: 600; }

.gy-chase__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 8px 20px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-chase__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-chase__who b { font-weight: 600; }
.gy-chase__who small { font-size: 13px; color: var(--thonon-blue-bright); }

.gy-km { padding: 0; gap: 0; overflow: hidden; }

.gy-km__row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 100px 120px 120px 120px;
    gap: 12px;
    align-items: center;
    min-height: 60px;
    padding: 8px 20px;
    border-top: 1px solid var(--dark-border-1);
    font-size: 15px;
}

.gy-km__row:first-child { border-top: 0; }
.gy-km__row--head {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.035);
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gy-km__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gy-km__who b { font-weight: 600; }
.gy-km__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--dark-fg-2); }
.gy-km__deg { display: block; font-size: 12px; color: var(--dark-fg-3); }

@media (max-width: 1099px) {
    .gy-km__row { grid-template-columns: minmax(0, 1fr) repeat(2, 96px); padding: 8px 16px; }
    .gy-km__row > :nth-child(2), .gy-km__row > :nth-child(5) { display: none; }
}

@media (max-width: 699px) {
    .gy-km__row { grid-template-columns: minmax(0, 1fr) 104px; }
    .gy-km__row > :nth-child(4) { display: none; }
    .gy-chase__row { padding: 8px 16px; }
}

/* Reçus fiscaux: the club's identity missing in red, the register in rows, the deadline in the rail. */
.gc-note.gy-issuer { flex-wrap: wrap; border-color: var(--gy-rejected-text); background: rgba(240, 106, 117, 0.08); font-size: 14px; }
.gc-note.gy-issuer svg { color: var(--gy-rejected-text); }
.gy-issuer > span { flex: 1 1 280px; }

.gy-rf { padding: 0; gap: 0; overflow: hidden; }

.gy-rf__row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 110px auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 8px 20px;
    border-top: 1px solid var(--dark-border-1);
}

.gy-rf__row:first-child { border-top: 0; }
.gy-rf__row--off { opacity: 0.6; }
.gy-rf__no { font-size: 14px; color: var(--dark-fg-2); }
.gy-rf__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gy-rf__who b { font-weight: 600; }
.gy-rf__who small { font-size: 13px; color: var(--dark-fg-2); }
.gy-rf__row .gy-amount { text-align: right; }
.gy-rf__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.gy-due { box-shadow: inset 0 -4px 0 var(--thonon-yellow); }
.gy-due .gy-due__lbl { color: var(--thonon-yellow); }
.gy-due__day { font: 800 28px/1.1 var(--font-condensed); text-transform: uppercase; }

@media (max-width: 699px) {
    .gy-rf__row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
    .gy-rf__no { grid-column: 1 / -1; }
    .gy-rf__acts { grid-column: 1 / -1; justify-content: stretch; }
    .gy-rf__acts .gi-btn { flex: 1 1 auto; }
}

/* Absences des salariés: days per salarié, the paniers typed in the row, the two explanations under. */
.gy-blockers ul { margin: 6px 0 0; padding-left: 18px; }

.gy-sal { padding: 0; gap: 0; overflow: hidden; }

.gy-sal__row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, 90px) 130px;
    gap: 12px;
    align-items: center;
    min-height: 60px;
    padding: 8px 20px;
    border-top: 1px solid var(--dark-border-1);
    font-size: 15px;
}

.gy-sal__row:first-child { border-top: 0; }
.gy-sal__row--head {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.035);
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gy-sal__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.gy-sal__who b { font-weight: 600; }
.gy-sal__taken { color: var(--thonon-yellow); }
.gy-sal__meal { width: 100%; min-height: 44px; text-align: right; }
.gy-sal__meal--todo { border-color: var(--thonon-yellow-deep); }

.gy-sal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1099px) {
    .gy-sal__row { grid-template-columns: minmax(0, 1fr) repeat(3, 64px) 104px; padding: 8px 16px; }
    .gy-sal__row > :nth-child(5) { display: none; }
}

@media (max-width: 699px) {
    /* Every line the CDOS reads stays: only « hors paie » gave way above. */
    .gy-sal__row { grid-template-columns: minmax(0, 1fr) repeat(3, 40px) 76px; gap: 6px; padding: 8px 12px; }
    .gy-sal__row--head { font-size: 12px; letter-spacing: 0.02em; }
    .gy-sal-cards { grid-template-columns: minmax(0, 1fr); }
}

/* A name that opens its campaign or its licence: a 44 px target without growing the row. */
.gy-camp__name a,
.gy-ech__who > a {
    display: inline-block;
    max-width: 100%;
    padding: 13px 0;
    margin: -13px 0;
}

