


.pfx-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    align-items: start;
}


.pfx-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.pfx-col--s5 { grid-column: span 5; }
.pfx-col--s7 { grid-column: span 7; }

.pfx-c {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-10);
    overflow: hidden;
    min-width: 0;
}

.pfx-c--s3  { grid-column: span 3; }
.pfx-c--s4  { grid-column: span 4; }
.pfx-c--s5  { grid-column: span 5; }
.pfx-c--s7  { grid-column: span 7; }
.pfx-c--s12 { grid-column: span 12; }


.pfx-ch {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.pfx-ch-ic {
    color: var(--teal);
    display: flex;
    align-items: center;
    flex: none;
}

.pfx-ch-t {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .01em;
}

.pfx-ch-sp { flex: 1 1 auto; }

.pfx-cb { padding: 13px 14px; }


.pfx-g {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 11px 12px;
}

.pfx-f {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pfx-f--w2   { grid-column: span 2; }
.pfx-f--full { grid-column: 1 / -1; }

.pfx-f label {
    font-size: 12px;
    color: var(--slate);
    font-weight: 500;
    margin: 0;
}

.pfx-hint {
    font-size: 11.5px;
    color: var(--slate);
    line-height: 1.4;
}


.pfx-opt {
    margin-top: 11px;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}

.pfx-opt summary {
    cursor: pointer;
    color: var(--teal);
    font-size: 12.5px;
    font-weight: 550;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pfx-opt summary::-webkit-details-marker { display: none; }

.pfx-opt summary::before {
    content: "\25B8";
    display: inline-block;
    transition: transform .15s ease;
}

.pfx-opt[open] summary::before { transform: rotate(90deg); }

.pfx-opt-n {
    color: var(--slate);
    font-weight: 400;
}

.pfx-opt .pfx-g { margin-top: 11px; }


.pfx-solde {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.pfx-solde:last-of-type { border-bottom: 0; }

.pfx-solde-l {
    font-size: 12.5px;
    color: var(--slate);
}

.pfx-solde-v {
    font-size: 17px;
    font-weight: 640;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
}


.pfx-solde-v--du  { color: var(--amber); }
.pfx-solde-v--nil { color: var(--slate); }


.pfx-sw {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r-8);
    background: var(--paper);
}

.pfx-sw-t { font-size: 13px; font-weight: 550; }
.pfx-sw-d { font-size: 11.5px; color: var(--slate); margin-top: 1px; }


.pfx-vide {
    color: var(--slate);
    font-size: 12.5px;
    padding: 9px 11px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--r-8);
}


.pfx-code {
    font-size: 12px;
    color: #9fb0c6;
    background: rgba(255, 255, 255, .09);
    padding: 2px 9px;
    border-radius: var(--r-20);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pfx-dirty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--amber);
    white-space: nowrap;
}


.pfx-toast {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--r-9);
    background: var(--surface);
}

.pfx-toast-t { font-weight: 640; font-size: 13.5px; color: var(--ink); }
.pfx-toast-d { color: var(--slate); font-size: 12.5px; margin-top: 2px; }


.pfx-gps {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-8);
    padding: 9px 11px;
}

.pfx-gps-co {
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 550;
    color: var(--ink);
}

.pfx-gps-me { font-size: 11.5px; color: var(--slate); margin-top: 2px; }

.pfx-gps-btns {
    display: flex;
    gap: 8px;
    margin-top: 9px;
    flex-wrap: wrap;
}


.pfx-note {
    margin-top: 9px;
    font-size: 11.5px;
    color: var(--slate);
    line-height: 1.45;
}


@media (max-width: 1100px) {
    .pfx-c--s3, .pfx-c--s4, .pfx-c--s5 { grid-column: span 6; }
    .pfx-c--s7 { grid-column: span 12; }
    .pfx-col--s5, .pfx-col--s7 { grid-column: span 12; }
}

@media (max-width: 768px) {
    .pfx-grid { gap: 11px; }

    .pfx-c--s3, .pfx-c--s4, .pfx-c--s5, .pfx-c--s7, .pfx-c--s12 {
        grid-column: span 12;
    }

    .pfx-col--s5, .pfx-col--s7 { grid-column: span 12; }

    .pfx-g { grid-template-columns: 1fr; }

    .pfx-f--w2 { grid-column: span 1; }
}




.pfx-mobp { display: contents; }

.pfx-mob-bar, .pfx-mob-tete, .pfx-mob-actions, .pfx-mob-repli-tete, .pfx-mob-sfx-u,
.pfx-mob-chev, .pfx-mob-info-tete {
    display: none;
}

.pfx-mob-repli, .pfx-mob-repli-corps, .pfx-mob-sfx, .pfx-mob-info { display: contents; }



@media (max-width: 768px) {
    
    .pfx-mobp .pfx-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        
        padding: 14px 16px calc(80px + env(safe-area-inset-bottom, 0px));
    }

    
    .pfx-mobp .pfx-ch { background: var(--surface-alt); }

    .pfx-mobp .pfx-ch-t {
        font-size: 14px;
        font-weight: 600;
    }

    
    .pfx-mobp .pfx-ch-ic {
        color: var(--brand);
        width: 28px;
        height: 28px;
        border-radius: var(--r-9);
        background: var(--surface);
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
    }

    
    .pfx-mobp .pfx-f label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--slate);
    }

    
    .pfx-mobp .pfx-f .form-control,
    .pfx-mobp .pfx-f .form-select {
        border-radius: var(--r-12);
        border-color: var(--line);
    }

    
    .pfx-mobp .pfx-g { gap: 14px 12px; }

    
    .pfx-mobp .cli-position-hint { color: var(--clay); }

    .pfx-mobp .pfx-col { display: contents; }

    .pfx-mob-ord1 { order: 1; }
    .pfx-mob-ord2 { order: 2; }
    .pfx-mob-ord3 { order: 3; }
    .pfx-mob-ord4 { order: 4; }
    .pfx-mob-ord5 { order: 5; }
    .pfx-mob-ord6 { order: 6; }
    .pfx-mob-ord7 { order: 7; }

    
    .pfx-mobp .pfx-mob-hors-pane { display: none; }

    .pfx-mobp .pfx-c { border-radius: var(--r-16); }

    
    .pfx-mob-bar {
        display: flex;
        align-items: center;
        gap: 4px;
        position: sticky;
        top: 0;
        z-index: 40;
        height: 56px;
        padding: 0 8px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
    }

    
    .pfx-mob-bar-titre {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14.5px;
        font-weight: 600;
        color: var(--ink);
    }

    .pfx-mob-ibtn {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        background: none;
        border-radius: 50%;
        color: var(--ink);
        cursor: pointer;
    }

    .pfx-mob-ibtn:active { background: var(--surface-alt); }

    
    .pfx-mob-dirty {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
        background: var(--clay-soft);
        color: var(--clay);
        padding: 3px 8px;
        border-radius: var(--r-6);
        white-space: nowrap;
    }

    
    .pfx-mob-tete { display: block; }

    .pfx-mob-hero {
        display: flex;
        gap: 14px;
        align-items: center;
        padding: 12px 16px 0;
    }

    
    .pfx-mob-ava {
        width: 60px;
        height: 60px;
        flex: none;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -.02em;
    }

    .pfx-mob-hb { flex: 1 1 auto; min-width: 0; }

    .pfx-mob-nom {
        font-size: 21px;
        font-weight: 700;
        letter-spacing: -.03em;
        line-height: 1.2;
        color: var(--ink);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    
    .pfx-mob-code {
        display: inline-block;
        margin-top: 6px;
        font-family: var(--num-font);
        font-size: 11.5px;
        color: var(--slate);
        background: var(--surface-alt);
        border: 1px solid var(--line);
        padding: 2px 7px;
        border-radius: var(--r-6);
    }

    
    .pfx-mob-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 16px 0;
    }

    .pfx-mob-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        height: 23px;
        padding: 0 9px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }

    .pfx-mob-badge i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    
    .pfx-mob-badge--tronque {
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        line-height: 23px;
    }

    .pfx-mob-badge--ok { background: var(--green-soft); color: var(--green-dark); }
    .pfx-mob-badge--info { background: var(--indigo-soft); color: var(--indigo); }
    .pfx-mob-badge--warn { background: var(--clay-soft); color: var(--clay); }
    .pfx-mob-badge--bad { background: var(--red-soft); color: var(--red-dark); }
    .pfx-mob-badge--neutre { background: var(--line); color: var(--ink-soft); }

    
    .pfx-mob-quick {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 8px;
        padding: 14px 16px 0;
    }

    .pfx-mob-quick-a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 11px 2px;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: var(--r-12);
        font-size: 11px;
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
        background: var(--surface);
        cursor: pointer;
    }

    .pfx-mob-quick-a:active { background: var(--brand-softer); border-color: var(--brand-soft); }

    .pfx-mob-quick-ic {
        width: 30px;
        height: 30px;
        border-radius: var(--r-9);
        background: var(--surface-alt);
        color: var(--brand);
        display: grid;
        place-items: center;
    }

    
    .pfx-mob-encours {
        display: block;
        margin: 14px 16px 0;
        border: 1px solid var(--line);
        border-radius: var(--r-16);
        padding: 15px;
    }

    .pfx-mob-enc-k {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--slate);
    }

    .pfx-mob-enc-big {
        font-size: 29px;
        font-weight: 700;
        letter-spacing: -.04em;
        line-height: 1.05;
        margin-top: 4px;
    }

    .pfx-mob-enc-big small {
        font-size: 13px;
        font-weight: 600;
        color: var(--slate);
        margin-left: 5px;
        letter-spacing: 0;
    }

    
    .pfx-mob-enc--green { color: var(--green-dark); }
    .pfx-mob-enc--clay { color: var(--clay); }
    .pfx-mob-enc--red { color: var(--red-dark); }
    .pfx-mob-enc--slate { color: var(--slate); }

    .pfx-mob-track {
        height: 6px;
        border-radius: 99px;
        background: var(--line);
        margin-top: 13px;
        overflow: hidden;
    }

    .pfx-mob-track i {
        display: block;
        height: 100%;
        border-radius: 99px;
        background: currentColor;
    }

    .pfx-mob-scale {
        display: flex;
        justify-content: space-between;
        margin-top: 7px;
        font-size: 11.5px;
        color: var(--slate);
    }

    .pfx-mob-scale b { color: var(--ink); font-weight: 600; }

    .pfx-mob-duo {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 13px;
        padding-top: 13px;
        border-top: 1px solid var(--line-soft);
    }

    .pfx-mob-duo-k {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--slate);
    }

    .pfx-mob-duo-v {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -.03em;
        margin-top: 3px;
        color: var(--ink);
    }

    
    .pfx-mob-tabs {
        position: sticky;
        top: 56px;
        z-index: 30;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 12px 16px;
        margin-top: 14px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        scrollbar-width: none;
    }

    .pfx-mob-tabs::-webkit-scrollbar { display: none; }

    .pfx-mob-tab {
        flex: none;
        height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid var(--line);
        font-size: 13px;
        font-weight: 500;
        color: var(--slate);
        white-space: nowrap;
        background: var(--surface);
        cursor: pointer;
    }

    .pfx-mob-tab[aria-selected="true"] {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--surface);
    }

    
    .pfx-mob-repli {
        display: block;
        grid-column: 1 / -1;
        border: 1px solid var(--line);
        border-radius: var(--r-12);   
        overflow: hidden;
    }

    .pfx-mob-repli-tete {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        padding: 12px 13px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--slate);
        background: var(--surface-alt);
        border: 0;
        cursor: pointer;
        text-align: left;
    }

    .pfx-mob-repli-chev {
        display: grid;
        place-items: center;
        color: var(--slate);
        transition: transform .2s;
    }

    .pfx-mob-repli:not(.pfx-mob-replie) .pfx-mob-repli-chev { transform: rotate(90deg); }

    .pfx-mob-repli-n {
        margin-left: auto;
        font-size: 11px;
        font-weight: 500;
        color: var(--slate);
    }

    .pfx-mob-repli-corps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 14px 13px;
    }

    .pfx-mob-replie .pfx-mob-repli-corps { display: none; }

    
    .pfx-mob-ct1 { order: 1; }
    .pfx-mob-ct2 { order: 2; }
    .pfx-mob-ct3 { order: 3; }

    
    .pfx-mobp .pfx-mob-ch { cursor: pointer; }

    .pfx-mob-chev {
        display: grid;
        place-items: center;
        margin-left: auto;
        color: var(--slate);
        transition: transform .2s;
    }

    .pfx-mobp .pfx-c:not(.pfx-mob-carte-repliee) .pfx-mob-chev { transform: rotate(90deg); }

    .pfx-mobp .pfx-mob-carte-repliee .pfx-cb { display: none; }

    
    .pfx-mob-info { display: block; margin-top: 9px; }

    .pfx-mob-info-tete {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--slate);
        background: none;
        border: 0;
        cursor: pointer;
        text-align: left;
    }

    .pfx-mob-info-ic {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--surface-alt);
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
        color: var(--slate);
        flex: 0 0 auto;
    }

    
    .pfx-mob-info .pfx-note {
        margin-top: 6px;
        padding: 11px 13px;
        background: var(--surface-alt);
        border-radius: var(--r-12);
        font-size: 12px;
        line-height: 1.55;
    }

    .pfx-mob-info:not(.pfx-mob-info-ouverte) .pfx-note { display: none; }

    
    .pfx-mob-sfx { display: block; position: relative; }

    .pfx-mob-sfx input {
        padding-right: 42px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .pfx-mob-sfx-u {
        display: block;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        font-weight: 600;
        color: var(--slate);
        pointer-events: none;
    }

    .pfx-mob-unite-label { display: none; }

    
    .pfx-mob-actions {
        position: sticky;
        bottom: 0;
        z-index: 35;
        display: flex;
        gap: 10px;
        padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        border-top: 1px solid var(--line);
    }

    
    .pfx-mob-btn-p {
        flex: 1 1 auto;
        height: 44px;
        border: 0;
        border-radius: var(--r-12);
        font-size: 15px;
        font-weight: 600;
        background: var(--brand);
        color: var(--surface);
        cursor: pointer;
    }

    .pfx-mob-btn-p:active { background: var(--brand-dark); }

    .pfx-mob-btn-p:disabled {
        background: var(--line);
        color: var(--ink-soft);
        cursor: default;
    }

    .pfx-mob-btn-s {
        flex: none;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: var(--r-12);
        background: var(--surface);
        color: var(--ink);
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    
    .pfx-mobp :focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }
}
