/* Licences and recruits. Built on the gi- kit of imports.css (frame, KPI cards, pills, bands, rail
   cards, states): these are the pieces the committee's registers add — filters, avatar tables, phone
   cards, the licence record, the recruit drawer and dialogs. Global, all under the gl- prefix. */

/* Inline text for a phone only: gi-phone-only would make it a flex box. */
.gl-phone-inline {
    display: none;
}

.gl-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.gl-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.gl-kpi-slot {
    display: contents;
}

.gl-skel--filters {
    height: 62px;
    border-radius: 6px;
}

.gl-muted {
    color: var(--dark-fg-3);
}

/* ── Fields ─────────────────────────────────────────────── */

.gl-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

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

.gl-toolbar .gl-field:not(.gl-field--grow) {
    flex: 0 0 210px;
}

.gl-field--grow {
    flex: 1 1 auto;
}

.gl-field__label {
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gl-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--dark-border-2);
    border-radius: 6px;
    background: var(--thonon-night);
    color: var(--dark-fg-3);
}

.gl-search:focus-within {
    border-color: var(--gi-vio);
}

.gl-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: 400 14.5px/1 var(--body-font);
}

.gl-search input::placeholder {
    color: var(--dark-fg-3);
}

.gl-select,
.gl-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--dark-border-2);
    border-radius: 6px;
    background: var(--thonon-night);
    color: #fff;
    font: 500 14.5px/1.2 var(--body-font);
    color-scheme: dark;
}

.gl-select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%238E99AB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.gl-select--on {
    border-color: var(--gi-vio-ring);
    background-color: rgba(165, 139, 232, 0.12);
}

.gl-select:focus,
.gl-input:focus {
    outline: 0;
    border-color: var(--gi-vio);
}

.gl-select:disabled {
    color: var(--dark-fg-2);
    cursor: default;
}

.gl-input.gi-mono {
    font-family: var(--font-mono);
    font-size: 14px;
}

.gl-textarea {
    height: auto;
    min-height: 76px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.45;
}

/* The « Filtrer » button: only where the table reads as cards and has no header for the filters. */
.gl-filter-button {
    display: none;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.gl-filter-button .gi-btn {
    flex: 1;
    height: 44px;
}

.gl-filter-button__count {
    font-size: 13px;
    color: var(--dark-fg-3);
    white-space: nowrap;
}

.gi-btn.gl-btn--on {
    box-shadow: inset 0 0 0 1.5px var(--thonon-blue-bright);
    background: rgba(52, 164, 224, 0.16);
}

/* ── Avatars ────────────────────────────────────────────── */

.gl-avatar {
    --ring: var(--gi-vio);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--tone, var(--gi-vio));
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: 700 13px/1 var(--body-font);
    letter-spacing: 0.02em;
}

.gl-avatar.gi-tone-neutral {
    border-color: var(--dark-fg-3);
}

.gl-avatar--lg {
    width: 40px;
    height: 40px;
}

.gl-avatar--xl {
    width: 52px;
    height: 52px;
    font: 700 17px/1 var(--font-condensed);
}

/* The record's banner: the initials at 80 px. */
.gl-avatar--hero {
    width: 80px;
    height: 80px;
    border: 1px solid var(--dark-border-2);
    background: var(--thonon-graphite);
    color: var(--dark-fg-1);
    font: 800 28px/1 var(--font-condensed);
}

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

.gl-table {
    --gl-columns: minmax(0, 2.3fr) minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
    overflow: hidden;
}

.gl-table--recruits {
    --gl-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 0.85fr) 164px minmax(0, 1.7fr) 104px;
}

/* The register: the name takes what is left, the state its pill; the filtered columns are wide
   enough for their filter's longest choice. */
.gl-table--licences {
    --gl-columns: minmax(220px, 1.5fr) 150px 190px 108px 132px minmax(110px, 1fr);
}

/* A narrow desktop, down to the shell's breakpoint: the columns close up so the last one is not cut. */
@media (max-width: 1360px) {
    .gl-table--licences {
        --gl-columns: minmax(120px, 1.4fr) 112px 154px 88px 128px minmax(80px, 1fr);
    }

    .gl-table--licences .gl-table__head,
    .gl-table--licences .gl-row {
        column-gap: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }
}

.gl-table__head,
.gl-row {
    display: grid;
    grid-template-columns: var(--gl-columns);
    align-items: center;
    column-gap: 14px;
    padding: 0 18px;
}

.gl-table__head {
    min-height: 42px;
    border-bottom: 1px solid var(--dark-border-1);
    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);
}

/* A header whose columns carry their filter: the name, then the filter under it. */
.gl-table__head--filters {
    align-items: end;
    padding-top: 10px;
    padding-bottom: 10px;
}

.gl-head-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gl-head-select {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 26px 0 10px;
    border: 1px solid var(--dark-border-2);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%238E99AB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
    color: var(--dark-fg-2);
    font: 500 13px/1.2 var(--body-font);
    letter-spacing: normal;
    text-transform: none;
    text-overflow: ellipsis;
    color-scheme: dark;
    cursor: pointer;
}

.gl-head-select:hover {
    border-color: var(--dark-fg-3);
}

.gl-head-select:focus {
    outline: 0;
    border-color: var(--gi-vio);
}

.gl-head-select--on {
    border-color: var(--gi-vio-ring);
    background-color: rgba(165, 139, 232, 0.16);
    color: #fff;
}

.gl-row {
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dark-border-1);
    color: #fff;
    text-decoration: none;
}

.gl-row:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.018);
}

a.gl-row:hover,
.gl-row--clickable:hover {
    background: rgba(165, 139, 232, 0.08);
    color: #fff;
    cursor: pointer;
}

a.gl-row:focus-visible,
.gl-card:focus-visible {
    outline: 2px solid var(--thonon-yellow);
    outline-offset: -2px;
}

.gl-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gl-who__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gl-who__name {
    font-weight: 600;
    font-size: 14.5px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-who__sub {
    font-size: 12.5px;
    color: var(--dark-fg-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-cell {
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-cell--stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    overflow: visible;
}

.gl-cell--action {
    display: flex;
    justify-content: flex-end;
    overflow: visible;
}

.gl-table__foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
}

.gl-source {
    margin-left: auto;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--dark-fg-3);
    text-align: right;
}

/* The source line on the left, the numbered pages on the right. */
.gl-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gl-pager .gc-seg button:disabled {
    opacity: 0.38;
    cursor: default;
}

.gl-pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 44px;
    color: var(--dark-fg-3);
    font: 700 14px/1 var(--font-condensed);
}

/* The register's payment: a word in mono, grey once paid, red while not. */
.gl-pay--paid { color: var(--dark-fg-2); }
.gl-pay--unpaid { color: #FF8A93; }

/* A squad as a small tag. */
.gl-cell--squads {
    display: flex;
    gap: 4px;
}

.gl-ptag {
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 4px;
    background: var(--thonon-graphite);
    color: var(--dark-fg-1);
    font: 700 12px/1 var(--font-mono);
}

/* Under the register's figures: qualified blue, not qualified yellow. */
.gl-gauge {
    display: flex;
    height: 10px;
    margin-top: 16px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--dark-border-2);
}

.gl-gauge i { display: block; height: 100%; }
.gl-gauge__ok { background: var(--thonon-blue-bright); }
.gl-gauge__todo { background: var(--thonon-yellow); }

/* A phone keeps the first, the current and the last page: the neighbours would not fit. */
@media (max-width: 699px) {
    .gl-pager .gc-seg .gl-pager__near {
        display: none;
    }
}

.gl-trial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border: 1px solid var(--ring);
    border-radius: 999px;
    background: var(--tint);
    color: var(--tone);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* An empty register, said in a card: an icon disc, a title, a sentence, the way in. */
.gl-empty {
    align-items: center;
    gap: 14px;
    padding: 48px 24px;
    text-align: center;
}

.gl-empty__disc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px solid var(--dark-border-2);
    border-radius: 50%;
    background: var(--thonon-graphite);
    color: var(--dark-fg-2);
}

.gl-empty__text {
    max-width: 560px;
}

/* A drawer's form: its blocks one under the other, the section names between them. */
.gl-recruit-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gl-form-section {
    margin: 4px 0 -6px;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gl-awaiting {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--dark-fg-3);
}

/* Phone cards: hidden on a desktop, the table's rows the other way round. */
.gl-card {
    display: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: var(--thonon-night);
    color: #fff;
    text-align: left;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.gl-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gl-card__pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.gl-card__meta {
    font-size: 12px;
    color: var(--dark-fg-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-card__chevron {
    flex-shrink: 0;
    color: var(--dark-fg-3);
}

/* ── Phone filter sheet ─────────────────────────────────── */

.gl-sheet {
    position: fixed;
    inset: 0;
    /* Above the phone's dock (100): the sheet is a screen of its own. */
    z-index: 110;
    display: flex;
    flex-direction: column;
    background: var(--thonon-black);
}

.gl-sheet__head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--dark-border-1);
}

.gl-sheet__head .gi-eyebrow__back {
    display: inline-flex;
}

.gl-sheet__head .gi-title {
    font-size: 22px;
    margin-top: 8px;
}

.gl-link-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.gl-sheet__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px 16px;
    overflow-y: auto;
}

.gl-chip-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gl-chip {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--dark-border-2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-fg-2);
    font: 600 13px/1 var(--body-font);
    cursor: pointer;
}

.gl-chip--on {
    border-color: var(--gi-vio-ring);
    background: rgba(165, 139, 232, 0.16);
    color: #fff;
}

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

.gl-sheet__foot {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--dark-border-1);
}

.gl-sheet__foot .gi-btn {
    height: 46px;
}

/* ── The licence record ─────────────────────────────────── */

/* A banner figure that is a word or an amount rather than a count. */
.gl-kpi-tx,
.gl-kpi-m {
    display: contents;
}

.gl-kpi-tx .gi-kpi__value {
    font: 800 24px/1.1 var(--font-condensed);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.gl-kpi-m .gi-kpi__value {
    font: 700 28px/1.1 var(--font-mono);
}

/* Six cards, three a row; two under the shell's breakpoint, one on a phone. */
.gl-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

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

@media (max-width: 699px) {
    .gl-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .gl-kpi-tx .gi-kpi__value {
        font-size: 20px;
    }

    .gl-kpi-m .gi-kpi__value {
        font-size: 22px;
    }
}

/* The values of a card, each under its label. */
.gl-kvs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.gl-kvs--next {
    padding-top: 14px;
    border-top: 1px solid var(--dark-border-1);
}

/* Label on the left, value on the right: the administrative columns and the payment. */
.gl-dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    margin: 0;
    font-size: 15px;
}

.gl-dl dt {
    padding-top: 2px;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gl-dl dd {
    margin: 0;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.gl-subhead {
    margin: 0;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gl-hapays {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--dark-border-1);
}

.gl-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: var(--thonon-night);
}

/* The segmented control is a phone's: its own display must not outrank gi-phone-only. */
.gl-seg.gi-phone-only {
    display: none;
}

.gl-seg__item {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--dark-fg-2);
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.gl-seg__item--on {
    border-color: var(--gi-vio-ring);
    background: rgba(165, 139, 232, 0.16);
    color: #fff;
}

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

.gl-kv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.gl-kv__key {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gl-kv__value {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
    color: #fff;
}

.gl-kv__value.gi-mono {
    font-size: 14px;
}

.gl-kv__value--wrap .gl-kv__text {
    white-space: normal;
}

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

.gl-kv__value--empty {
    color: var(--dark-fg-3);
}

.gl-kv__value--warn {
    color: var(--gi-warn);
    font-size: 13px;
}

.gl-kv__value--warn .gl-kv__text {
    white-space: normal;
}

.gl-pencil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -10px -10px -10px 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--dark-fg-3);
    cursor: pointer;
}

.gl-pencil:hover {
    color: #fff;
}

.gl-pencil:focus-visible,
.gl-chip:focus-visible,
.gl-seg__item:focus-visible,
.gl-app-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.gl-app-edit .gl-input {
    height: 44px;
}

.gl-app-edit__actions {
    display: flex;
    gap: 8px;
}

.gl-app-edit__error,
/* The fee's parts: the part on the left, its amount in mono. */
.gl-fees {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gl-fee {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
}

.gl-fee__key {
    min-width: 0;
    color: var(--dark-fg-2);
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-fee__amount {
    flex-shrink: 0;
    font: 400 15px/1.3 var(--font-mono);
    color: #fff;
}

.gl-fee--negative .gl-fee__amount {
    color: var(--gi-err-text);
}

.gl-fee--total {
    padding-top: 8px;
    border-top: 1px solid var(--dark-border-2);
}

.gl-fee--total .gl-fee__key,
.gl-fee--total .gl-fee__amount {
    font-weight: 700;
    color: #fff;
}

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

.gl-sticky {
    /* Sits on the phone's dock, whatever the length of the list above. */
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--mob-dock-height, 0px);
    z-index: 5;
    padding: 12px 16px;
    border-top: 1px solid var(--dark-border-1);
    background: var(--thonon-black);
}

.gl-sticky .gi-btn {
    width: 100%;
    height: 48px;
}

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

@media (max-width: 1180px) {
    .gl-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gl-toolbar {
        flex-wrap: wrap;
    }

    .gl-toolbar .gl-field--grow {
        flex-basis: 100%;
    }

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

    .gl-table--recruits {
        --gl-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 150px minmax(0, 1.2fr) 104px;
    }
}

/* ── Under the shell's breakpoint: the register reads as cards ── */

@media (max-width: 1099px) {
    .gl-table--licences {
        gap: 8px;
        border: 0;
        background: none;
        overflow: visible;
    }

    .gl-table--licences .gl-table__head,
    .gl-table--licences .gl-row {
        display: none;
    }

    .gl-table--licences .gl-card {
        display: flex;
    }

    .gl-filter-button {
        display: flex;
    }
}

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

@media (max-width: 900px) {
    .gl-list {
        gap: 12px;
    }

    .gl-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .gl-kpis .gi-kpi__sub {
        display: none;
    }

    /* The phone reads search first, then the counters. */
    .gl-toolbar {
        order: -1;
        flex-wrap: nowrap;
    }

    .gl-phone-inline {
        display: inline;
    }

    .gl-seg.gi-phone-only {
        display: grid;
    }

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

    .gl-list > .gl-kpis {
        order: -1;
    }

    .gl-list > .gl-toolbar {
        order: -2;
    }

    .gl-table {
        border: 0;
        background: none;
        gap: 8px;
        overflow: visible;
    }

    .gl-table__head,
    .gl-row {
        display: none;
    }

    .gl-table__foot {
        padding: 6px 0 0;
        background: none;
    }

    .gl-source {
        margin-left: 0;
        text-align: left;
    }

    .gl-card {
        display: flex;
    }

    /* Recruits: the segmented control picks the cards shown. */
    .gl-table--recruits .gl-card {
        display: none;
    }

    .gl-table--recruits .gl-card--shown {
        display: flex;
    }
}

/* The licence's aids: one line each, its pencil for the secretariat. */
.gl-aid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dark-border-1);
}

.gl-aid__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gl-aid__name { font-weight: 600; color: #fff; }
.gl-aid__sub { font-size: 13px; color: var(--dark-fg-3); }

/* ── « Mutations » tab (glt-) ──────────────────────────────── */

.glt-seg .gl-seg__item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.glt-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glt-source,
.glt-group {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--dark-fg-3);
}

.glt-source strong,
.glt-group strong {
    color: #fff;
    font-weight: 600;
}

.glt-table .glt-num {
    text-align: right;
}

.glt-table .glt-pos {
    color: #22C55E;
}

.glt-table .glt-neg {
    color: var(--thonon-yellow);
}

.glt-table .glt-total td {
    font-weight: 700;
    border-top: 1px solid var(--dark-border-1);
}

.glt-club {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glt-crest {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--thonon-night);
    font: 700 12px/1 var(--font-condensed);
}

.glt-who,
.glt-sub {
    display: block;
}

.glt-table td.gi-cell--text {
    min-width: 200px;
}

.glt-table .glt-who {
    white-space: nowrap;
}

.glt-table .glt-sub {
    white-space: normal;
}

.glt-who a {
    color: #fff;
}

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

.glt-table td .gi-pill + .gi-pill {
    margin-left: 4px;
}

.glt-wrap {
    white-space: normal !important;
    max-width: none !important;
}

.glt-free {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.glt-free li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
}

.glt-free__who {
    font-weight: 600;
    color: #fff;
}

.glt-free__article {
    color: var(--dark-fg-3);
}

.glt-cards {
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.glt-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.glt-card .glt-who {
    font-weight: 600;
    color: #fff;
}

.glt-card__line {
    font-size: 13px;
    color: var(--dark-fg-2, #ccc);
}

@media (max-width: 900px) {
    .glt-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .glt-cards.gi-phone-only {
        display: flex;
    }

    .glt-seg.gi-phone-only {
        display: grid;
        margin-bottom: 12px;
    }

    .glt-table th,
    .glt-table td {
        padding-left: 10px;
        padding-right: 10px;
    }

    .glt-table td.glt-club {
        max-width: 150px;
    }

    .glt-table td.glt-club span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .glt-card .gl-card__pills {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ── A licence's HelloAsso instalments (lot HelloAsso) ──── */

.gl-hapay__order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.gl-hapay__unlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--dark-fg-3);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.gl-hapay {
    display: grid;
    grid-template-columns: 18px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
}

.gl-hapay__state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark-fg-2); }

/* Every amount reads in the design system's monospace (the club's rule). */
.gl-hapay__amount { font-family: var(--font-mono); font-weight: 600; text-align: right; }

.gl-hapay--refused .gl-hapay__state,
.gl-hapay--refused .gl-hapay__amount { color: var(--gy-rejected-text, #F87171); }
