/**
 * Lecture Registre & Export — styles
 * Ancré sur les tokens de phyz-telepac (account.css). On réutilise les
 * variables --phyz-* et les classes existantes (.phyz-endpoint-header,
 * .phyz-info-card, .phyz-culture-tag, .phyz-btn). Préfixe .phyz-reg- pour
 * tout ce qui est ajouté, afin de ne rien casser.
 */

/* Fallback des tokens si le CSS de phyz-telepac n'est pas chargé sur la page */
.phyz-reg-consultation,
.phyz-reg-export {
    --phyz-primary: #53A10F;
    --phyz-primary-dark: #3d7a0b;
    --phyz-text: #242020;
    --phyz-text-secondary: #666561;
    --phyz-bg: #F0F0F0;
    --phyz-white: #FFFFFF;
    --phyz-border: #DADADA;
    --phyz-warning: #f59e0b;
    --phyz-radius: 12px;
    --phyz-radius-sm: 8px;
    --phyz-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
         --phyz-shadowDark: 0 4px 6px -1px rgba(0, 0, 0, 0.82),
        0 2px 4px -1px rgba(0, 0, 0, 0.82);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   MENU — icônes SVG devant les 2 items
   ========================================================================== */


/* ==========================================================================
   BODY — écran séparé (aligné sur phyz-telepac)
   ========================================================================== */
body.phyz-reg-endpoint .woocommerce-MyAccount-navigation {
    display: none !important;
}
body.phyz-reg-endpoint .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Masque le header "Mon compte" sur les 2 pages du plugin registre */
/* Masque le header générique en double, uniquement sur mes 2 pages */
body:has(.phyz-reg-consultation) .woocommerce-MyAccount-content > .phyz-endpoint-header,
body:has(.phyz-reg-export) .woocommerce-MyAccount-content > .phyz-endpoint-header {
    display: none !important;
}

/* ==========================================================================
   CORPS
   ========================================================================== */
.phyz-reg-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* Header : back arrow */
.phyz-back span{
    font-weight:500;
    color: #242020 !important;
}

.filters_container {
    display: flex;
    align-items: center;  
    gap: 16px;
}

.filters_container .phyz-reg-select {
    flex: 0 0 auto;
    width: auto;
}




/* ==========================================================================
   FILTRES
   ========================================================================== */
.phyz-reg-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    margin-bottom: 20px;
}

.phyz-reg-filters-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--phyz-text);
    margin-right: 4px;
}
.phyz-reg-select {
    position: relative;
    display: inline-flex;
    width: auto;             
    flex: 0 0 auto;  
}
.phyz-reg-select-native {
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
    background: var(--phyz-white);
    color: var(--phyz-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 22px 12px 12px;
    border: none !important;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.3em;
    text-overflow: ellipsis;
}
.phyz-reg-select::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 24px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2217%22%20height%3D%229%22%20viewBox%3D%220%200%2017%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M7.71969%208.78104L0.219688%201.28104C0.150007%201.21136%200.0947322%201.12863%200.0570201%201.03759C0.019308%200.946544%20-0.000103034%200.848962%20-0.00010303%200.750416C-0.000103025%200.65187%200.0193081%200.554289%200.0570202%200.463244C0.0947323%200.372199%200.150007%200.289474%200.219688%200.219791C0.289371%200.150108%200.372097%200.094833%200.463142%200.0571211C0.554187%200.0194091%200.651769%20-6.9278e-07%200.750315%20-6.88473e-07C0.848861%20-6.84165e-07%200.946443%200.0194091%201.03749%200.0571211C1.12853%200.0948331%201.21126%200.150108%201.28094%200.219791L8.25032%207.1901L15.2197%200.219792C15.3604%200.0790611%2015.5513%20-4.29842e-08%2015.7503%20-3.28018e-08C15.9493%20-2.26194e-08%2016.1402%200.0790611%2016.2809%200.219792C16.4217%200.360522%2016.5007%200.551394%2016.5007%200.750417C16.5007%200.94944%2016.4217%201.14031%2016.2809%201.28104L8.78094%208.78104C8.71129%208.85077%208.62857%208.90609%208.53752%208.94384C8.44647%208.98158%208.34888%209.00101%208.25032%209.00101C8.15175%209.00101%208.05416%208.98158%207.96311%208.94384C7.87206%208.90609%207.78934%208.85077%207.71969%208.78104Z%22%20fill%3D%22%2353A10F%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
}
.phyz-reg-select-native:focus-visible {
    outline: 2px solid var(--phyz-primary);
    outline-offset: 2px;
}

/* Neutralise le chevron base64 du thème Uncode sur les filtres du plugin */
.phyz-reg-consultation .phyz-reg-select-native,
.phyz-reg-export .phyz-reg-select-native,
.style-light .phyz-reg-consultation select:not([multiple]),
.style-light .phyz-reg-export select:not([multiple]) {
    background-image: none !important;
}



.phyz-reg-select-native option {
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* ==========================================================================
   LAYOUT LISTE + DÉTAIL
   ========================================================================== */
.phyz-reg-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.phyz-reg-list {
    flex: 1 1 100%;
    min-width: 0;
}
/* Quand un détail est ouvert (desktop) : liste rétrécie en sidebar */
.phyz-reg-layout.is-detail-open .phyz-reg-list {
    flex: 0 0 340px;
    max-width: 340px;
}
.phyz-reg-detail {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--phyz-white);
    padding: 0px 0px 0px 0px;
}


@media(min-width:768px){
    .details_header{
        background: #DADADA;
        padding-top: 44px;
        padding-left: 244px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   CARDS (miroir maquette 2)
   ========================================================================== */
.phyz-reg-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.phyz-reg-card {
    display: flex;
    align-items: center;
    gap: 12px;

    background: var(--phyz-white);
    border-radius: 4px;
    box-shadow: var(--phyz-shadow);

    padding: 16px 0 16px 16px;

    cursor: pointer;

    border: 2px solid transparent;
    border-left-width: 2px;

    transition:
        border-color 0.2s ease,
        transform 0.1s ease;

    text-align: left;

    width: 100%;
    min-height: 116px;

    font-family: inherit;

    flex: 0 0 auto;

    box-sizing: border-box;
}

.phyz-reg-card.is-active {
    border-left-color: #53A10F;
}
.phyz-reg-card-main {
    flex: 1 1 auto;
    min-width: 0;
}
.phyz-reg-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.phyz-reg-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--phyz-text);
}
.phyz-reg-card-date {
    font-size: 12px;
    color: var(--phyz-text-secondary);
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
}
.phyz-reg-card-parcel {
    font-size: 16px;
    color: var(--phyz-text-secondary);
    font-weight: 500;
    padding-bottom: 24px;
    
}
.phyz-reg-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* réutilise l'esprit de .phyz-culture-tag (gris, radius 4) */
.phyz-reg-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F0F0F0;
    color: var(--phyz-text-secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.phyz-reg-tag svg {
    width: 16px;
    height: 16px;
    display: block;
}
.phyz-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F7CD13;
    color: #242020;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.phyz-reg-card-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chevron_card_right{
    position: relative;
    top: 30px;
    left:-20px
    
}
.phyz-reg-card-chevron svg {
    display: block;
    width: 9px;
    height: 17px;
}

/* ===== Desktop uniquement : filtres alignés sur la sidebar quand détail ouvert ===== */
@media (min-width: 768px) {
    .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) .filters_container {
        max-width: 340px;               /* même largeur que la liste réduite */
        flex-wrap: nowrap;              /* une seule ligne */
        overflow-x: auto;               /* scroll horizontal */
        overflow-y: hidden;
        scrollbar-width: none;          /* masque la scrollbar (Firefox) */
    }
    .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) .filters_container::-webkit-scrollbar {
        display: none;                  /* masque la scrollbar (Chrome/Safari) */
    }
    /* Les pilules gardent leur largeur, elles débordent et scrollent */
    .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) .filters_container .phyz-reg-select {
        flex: 0 0 auto;
    }
}


@media (min-width: 768px) {
/* ==========================================================================
   DÉTAIL (miroir maquette 1 : réutilise l'esprit .phyz-info-row)
   ========================================================================== */
.phyz-reg-detail-back {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    color: var(--phyz-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 16px;
}
.phyz-reg-detail-title {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--phyz-text) !important;
    padding-bottom: 24px;
    margin-top: 0;
}
.phyz-reg-detail-parcel {
    font-size: 24px;
    color: var(--phyz-text);
    font-weight: 500;
    margin-bottom: 12px;
}
.phyz-reg-detail-datechip {
    display: inline-block;
    padding: 8px 12px;
    background: white;
    color: var(--phyz-text-secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}
.phyz-reg-fields {
    display: flex;
    flex-direction: column;
}

@media(min-width:768px){
    .phyz-reg-fields {
        padding-left: 244px
    }
}

.phyz-reg-field-row {
    padding: 24px 0;
    border-bottom: 1px solid var(--phyz-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phyz-reg-field-row:last-child {
    border-bottom: none;
}
.phyz-reg-field-label {
    font-size: 16px;
    color: var(--phyz-text-secondary);
    font-weight: 500;
}
.phyz-reg-field-value {
    font-size: 16px;
    color: var(--phyz-text);
    font-weight: 500;
    word-break: break-word;
}
.phyz-reg-attachments {
    margin-top: 24px;
}
.phyz-reg-attachments-label {
    font-size: 12px;
    color: var(--phyz-text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}
.phyz-reg-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
}
.phyz-reg-attachment {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--phyz-radius-sm);
    overflow: hidden;
    background: var(--phyz-bg);
    border: 1px solid var(--phyz-border);
}
.phyz-reg-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.phyz-reg-attachment-file {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 11px;
    font-weight: 700;
    color: var(--phyz-primary);
    text-align: center;
    padding: 6px;
}

}

/* ==========================================================================
   ÉTATS (loading / empty)
   ========================================================================== */
.phyz-reg-loading,
.phyz-reg-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--phyz-text-secondary);
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   EXPORT (miroir maquettes export 1 & 2)
   ========================================================================== */
.phyz-reg-export-card {
    max-width: 460px;
    margin: 0 auto;
}
.phyz-reg-export-subtitle {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--phyz-text);
    margin: 0 0 14px;
}
.phyz-reg-export-panel {
    background: var(--phyz-white);
    border-radius: 4px;
    overflow: hidden;
}
.phyz-reg-export-row,
.phyz-reg-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 28px 16px;
    min-height: 84px;
    border-bottom: 1px solid var(--phyz-border);
    background: var(--phyz-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--phyz-text-secondary);
    text-align: left;
    cursor: pointer;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
.phyz-reg-export-panel > *:last-child .phyz-reg-acc-head,
.phyz-reg-export-panel > .phyz-reg-acc:last-child .phyz-reg-acc-head {
    border-bottom: none;
}
.phyz-reg-export-toggle-row {
    cursor: default;
}

/* Toggle vert (Export complet) */
.phyz-reg-toggle {
    position: relative;
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: #C4C4C4;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 0 0 auto;
    padding: 0;
}
.phyz-reg-toggle[aria-checked="true"] {
    background: var(--phyz-primary);
}
.phyz-reg-toggle-knob {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}
.phyz-reg-toggle[aria-checked="true"] .phyz-reg-toggle-knob {
    transform: translateX(20px);
}

.phyz-reg-toggle[aria-checked="true"] .phyz-reg-toggle-knob::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: center / contain no-repeat
        url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.97108 3.03352L3.97108 8.03352C3.94206 8.06258 3.9076 8.08563 3.86966 8.10136C3.83172 8.11708 3.79106 8.12518 3.74999 8.12518C3.70892 8.12518 3.66826 8.11708 3.63032 8.10136C3.59238 8.08563 3.55792 8.06258 3.5289 8.03352L1.3414 5.84602C1.28276 5.78739 1.24982 5.70786 1.24982 5.62493C1.24982 5.542 1.28276 5.46247 1.3414 5.40384C1.40003 5.3452 1.47956 5.31226 1.56249 5.31226C1.64542 5.31226 1.72495 5.3452 1.78358 5.40384L3.74999 7.37063L8.5289 2.59134C8.58753 2.5327 8.66706 2.49976 8.74999 2.49976C8.83292 2.49976 8.91245 2.5327 8.97108 2.59134C9.02972 2.64997 9.06266 2.7295 9.06266 2.81243C9.06266 2.89536 9.02972 2.97489 8.97108 3.03352Z' fill='%2353A10F'/%3E%3C/svg%3E");
}

/* Accordéons */
.phyz-reg-acc-chevron {
    color: var(--phyz-text-secondary);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.phyz-reg-acc.is-open .phyz-reg-acc-chevron {
    transform: rotate(90deg);
}
.phyz-reg-acc-body {
    display: none;
    padding: 6px 18px 18px;
    border-bottom: 1px solid var(--phyz-border);
    background: var(--phyz-white);
}
.phyz-reg-acc.is-open .phyz-reg-acc-body {
    display: block;
}
.phyz-reg-acc.is-active .phyz-reg-acc-head {
    color: var(--phyz-primary);
}
.phyz-reg-acc-hint {
    font-size: 12px;
    color: var(--phyz-text-secondary);
    margin: 6px 0 0;
}

/* Champs internes accordéon */
.phyz-reg-radio,
.phyz-reg-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--phyz-text);
    cursor: pointer;
}
.phyz-reg-radio input,
.phyz-reg-check input {
    accent-color: var(--phyz-primary);
    width: 18px;
    height: 18px;
}
.phyz-reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}
.phyz-reg-field > span {
    font-size: 12px;
    font-weight: 500;
    color: var(--phyz-text-secondary);
}
.phyz-reg-field input,
.phyz-reg-field select {
    font-family: inherit;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid var(--phyz-border);
    border-radius: var(--phyz-radius-sm);
    color: var(--phyz-text);
    background: var(--phyz-white);
}

/* Bouton submit : grisé -> vert */
@media(max-width:767px){
    .phyz-reg-export-submit {
        width: fit-content !important;
        margin-left: 48px;
        margin-right:48px
    }
}

.phyz-reg-export-submit {
    width: 100%;
    margin-top: 22px;
    padding: 16px 32px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: #DADADA;
    color: #fff;
    cursor: not-allowed;
    border: none;
    transition: background 0.2s ease;
    margin-top: 32px !important;
    margin-left: auto;
    margin-right: auto;
}
.phyz-reg-export-submit:not([disabled]) {
    background: var(--phyz-primary);
    cursor: pointer;
}
.phyz-reg-export-submit:not([disabled]):hover {
    background: var(--phyz-primary-dark);
}
.phyz-reg-export-feedback {
    margin-top: 16px;
    padding: 0px;
    border-radius: var(--phyz-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.phyz-reg-export-feedback.is-ok {
    color: var(--phyz-primary);
}
.phyz-reg-export-feedback.is-err {
    color: #b91c1c;
}

/* Spinner */
.phyz-reg-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: phyz-reg-spin 0.7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes phyz-reg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Détail ouvert : le body passe pleine largeur, 16px de padding latéral */
.phyz-reg-body:has(.phyz-reg-layout.is-detail-open) {
    max-width: none;
    padding-left: 16px;
    padding-right: 0px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
    .phyz-reg-body {
        padding: 16px 16px 40px;
    }
    /* Détail = plein écran qui remplace la liste */
    .phyz-reg-layout.is-detail-open .phyz-reg-list {
        display: none;
    }
    .phyz-reg-layout.is-detail-open .phyz-reg-detail {
        flex: 1 1 100%;
    }

    .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) {
        padding-left: 0 !important;
        padding-top: 0 !important;
    }

    .upper_details_details_header {
    background: #DADADA;
    padding: 16px;
}

    .header_plugin_lecture{
        gap:0px !important
    }

    .plugin_lecture{
        padding: 0 0 16px 0 !important;
    }

    .plugin_lecture .lecture{
        font-size: 24px !important;
        text-align: center;
        gap:8px !important
    }

    .up-phyz-endpoint-header{
        padding: 16px 16px !important;
    }


   .phyz-reg-detail-back {
    display: inline-flex;
    justify-content: space-around;
    gap: 8px;
    align-items: center;
    padding: 6px 12px 6px 12px !important;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.3);
    color: #242020;
    font-size: 12px;
    font-weight: 500;
}
    .phyz-reg-filters {
        gap: 8px;
    }

    .chevron_card_right {
        top:38px
    }
    .phyz-reg-export-card {
        max-width: 100%;
        padding-top:8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
        .filters_container {
        flex-wrap: nowrap;              /* une seule ligne, pas de retour */
        overflow-x: auto;              /* scroll horizontal */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;   /* défilement fluide iOS */
        scrollbar-width: none;         /* masque la scrollbar (Firefox) */
        padding-bottom: 4px;           /* petit espace sous les pilules */
    }
    /* Masque la scrollbar (Chrome/Safari) */
    .filters_container::-webkit-scrollbar {
        display: none;
    }
    /* Empêche les pilules de se comprimer : elles gardent leur largeur */
    .filters_container .phyz-reg-select {
        flex: 0 0 auto;
    }

    /*Details mobile*/
    /* ===== Détail mobile : plein écran, sans header ni filtres ===== */
    /* Quand un détail est ouvert, on masque le header vert et les filtres */
    .phyz-reg-consultation:has(.phyz-reg-layout.is-detail-open) .phyz-endpoint-header,
    .phyz-reg-consultation:has(.phyz-reg-layout.is-detail-open) .phyz-reg-filters {
        display: none;
    }

    /* Le panneau détail occupe tout, sur fond gris clair comme la maquette */
    .phyz-reg-layout.is-detail-open .phyz-reg-detail {
        background: var(--phyz-bg);
        box-shadow: none;
        border-radius: 0;
        padding: 0px 0px 0px;
    }

    .details_header {
    padding-bottom: 16px;
}

    /* Titre / sous-titre / chip alignés à gauche comme la maquette */
    .phyz-reg-detail-title {
        font-size: 24px !important;
        margin-top: 12px;
        font-weight: 700;
        margin-bottom: 26px;
    }

    /* Les champs : fond gris, séparateurs discrets (déjà en place) */
    .phyz-reg-detail-back {
        padding-bottom: 12px;
    }

    .phyz-reg-detail-parcel{
         margin-bottom:16px;
    }

    .phyz-reg-detail-parcel span{
        font-size: 24px;
        font-weight: 400;
        color: var(--phyz-text);
    }

    .phyz-reg-detail-datechip{
        background: white;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 12px;
        color: var(--phyz-text-secondary);
        margin-top: 16px;
        font-weight: 500;
    }
    

    

}

@media (prefers-reduced-motion: reduce) {
    .phyz-reg-card,
    .phyz-reg-toggle-knob,
    .phyz-reg-acc-chevron,
    .phyz-reg-spinner {
        transition: none;
        animation: none;
    }
}



@media (min-width: 768px) {

  /* Layout en flex + variable de remontée du détail */
  .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) .phyz-reg-layout {
    --phyz-reg-lift: 124px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  /* Colonne liste : réduite + animation d'entrée */
  .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) .phyz-reg-list {
    flex: 0 0 340px;
    max-width: 340px;
    animation: phyz-reg-list-slide 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* Détail : remonté au niveau des filtres (pile sous le header vert), puis sticky */
  .phyz-reg-body:has(.phyz-reg-layout.is-detail-open) .phyz-reg-detail {
    position: sticky;
    top: 0;                                     /* -> top: 90px si header de site fixe */
    left: auto;
    right: auto;
    flex: 1 1 auto;
    align-self: flex-start;
    margin-top: calc(-1 * var(--phyz-reg-lift));
    animation: phyz-reg-detail-slide 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}
/* ==========================================================================
   SKELETON DE CHARGEMENT (liste + détail) — style Facebook, gris du thème
   Ajout non destructif : n'altère aucune règle existante.
   ========================================================================== */

/* Base commune : dégradé gris qui balaye (shimmer) */
.phyz-reg-skel-line,
.phyz-reg-skel-tag,
.phyz-reg-skel-chevron,
.phyz-reg-skel-card,
.phyz-reg-skel-detail .phyz-reg-skel-dtitle,
.phyz-reg-skel-detail .phyz-reg-skel-dparcel,
.phyz-reg-skel-detail .phyz-reg-skel-dchip {
    position: relative;
    overflow: hidden;
    background-color: var(--phyz-border);
    border-radius: 6px;
}

/* Le balayage lumineux qui prouve le chargement */
.phyz-reg-skel-line::after,
.phyz-reg-skel-tag::after,
.phyz-reg-skel-chevron::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: phyz-reg-shimmer 1.3s ease-in-out infinite;
}

@keyframes phyz-reg-shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* --- Skeleton d'une card de liste (calqué sur .phyz-reg-card) --- */
.phyz-reg-skel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--phyz-white, #fff);
    border-radius: 4px;
    box-shadow: var(--phyz-shadow);
    padding: 16px 0 16px 16px;
    margin-bottom: 8px;
    overflow: visible;
    background-color: var(--phyz-white, #fff);
    /* légère oscillation d'opacité de la carte entière */
    animation: phyz-reg-pulse 1.6s ease-in-out infinite;
}
.phyz-reg-skel-card-main {
    flex: 1 1 auto;
    min-width: 0;
}
.phyz-reg-skel-title {
    height: 15px;
    width: 45%;
    margin-bottom: 10px;
}
.phyz-reg-skel-parcel {
    height: 13px;
    width: 60%;
    margin-bottom: 12px;
}
.phyz-reg-skel-tags {
    display: flex;
    gap: 8px;
}
.phyz-reg-skel-tag {
    height: 22px;
    width: 84px;
    border-radius: 4px;
}
.phyz-reg-skel-tag:nth-child(2) {
    width: 64px;
}
.phyz-reg-skel-chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 17px;
    margin-right: 16px;
    border-radius: 3px;
}

@keyframes phyz-reg-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* --- Skeleton du détail (calqué sur .phyz-reg-detail-*) --- */
@media(min-width:768px){
    .phyz-reg-skel-detail {
    padding: 24px 24px 24px 244px !important;
    }
}
.phyz-reg-skel-detail {
    padding: 24px;
    animation: phyz-reg-pulse 1.6s ease-in-out infinite;
}

.phyz-reg-skel-dtitle {
    padding-top:24px;
    height: 24px;
    width: 40%;
    margin-bottom: 12px;
}
.phyz-reg-skel-dparcel {
    height: 18px;
    width: 55%;
    margin-bottom: 12px;
}
.phyz-reg-skel-dchip {
    height: 22px;
    width: 180px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.phyz-reg-skel-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.phyz-reg-skel-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.phyz-reg-skel-flabel {
    height: 12px;
    width: 30%;
}
.phyz-reg-skel-fvalue {
    height: 16px;
    width: 55%;
}
.phyz-reg-skel-field:nth-child(2n) .phyz-reg-skel-fvalue {
    width: 42%;
}
.phyz-reg-skel-field:nth-child(3n) .phyz-reg-skel-flabel {
    width: 38%;
}

@media (min-width: 768px) and (max-width: 1199px) {

    .phyz-reg-skel-detail {
        padding-left: 16px !important;
    }

    .details_header {
        padding-left: 16px !important;
    }

    .phyz-reg-fields {
        padding-left: 16px !important;
    }

}

/* ==========================================================
   SKELETON DÉTAIL — MOBILE
   ========================================================== */

@media (max-width: 767px) {

    /*
     * Le wrapper garde exactement les dimensions
     * du vrai header pendant le chargement.
     */
    .upper_details_details_header.is-loading {
        min-height: 250px;
    }


    /*
     * Faux details_header.
     * Même organisation que le vrai header.
     */
    .phyz-reg-skel-mobile-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        width: 100%;

        padding-bottom: 16px;

        animation: phyz-reg-pulse 1.6s ease-in-out infinite;
    }


    /*
     * TITRE
     *
     * Le vrai titre fait 24px avec margin-top 12
     * et margin-bottom 26.
     */
    .phyz-reg-skel-mobile-header .phyz-reg-skel-dtitle {
        width: 68%;
        height: 29px;

        padding-top: 0;

        margin-top: 12px;
        margin-bottom: 26px;

        border-radius: 6px;
    }


    /*
     * ILOT / PARCELLE
     */
    .phyz-reg-skel-mobile-header .phyz-reg-skel-dparcel {
        width: 78%;
        height: 29px;

        margin-bottom: 16px;

        border-radius: 6px;
    }


    /*
     * CHIP DATE
     */
    .phyz-reg-skel-mobile-header .phyz-reg-skel-dchip {
        width: 155px;
        height: 26px;

        margin-top: 16px;
        margin-bottom: 0;

        border-radius: 999px;
    }


    /*
     * Partie basse : uniquement les champs.
     *
     * detailInner possède déjà son padding 16px,
     * donc on ne rajoute pas les 24px du skeleton desktop.
     */
    .phyz-reg-skel-detail-fields-only {
        padding: 0 !important;
        animation: phyz-reg-pulse 1.6s ease-in-out infinite;
    }


    .phyz-reg-skel-detail-fields-only .phyz-reg-skel-fields {
        display: flex;
        flex-direction: column;
        gap: 0;
    }


    /*
     * Reprend la hauteur d'une vraie phyz-reg-field-row.
     */
    .phyz-reg-skel-detail-fields-only .phyz-reg-skel-field {
        display: flex;
        flex-direction: column;

        gap: 8px;

        padding: 24px 0;

    }


    .phyz-reg-skel-detail-fields-only .phyz-reg-skel-field:last-child {
        border-bottom: none;
    }


    /*
     * Labels.
     */
    .phyz-reg-skel-detail-fields-only .phyz-reg-skel-flabel {
        width: 34%;
        height: 16px;
    }


    /*
     * Valeurs.
     */
    .phyz-reg-skel-detail-fields-only .phyz-reg-skel-fvalue {
        width: 58%;
        height: 18px;
    }


    .phyz-reg-skel-detail-fields-only
    .phyz-reg-skel-field:nth-child(2n)
    .phyz-reg-skel-fvalue {
        width: 44%;
    }


    .phyz-reg-skel-detail-fields-only
    .phyz-reg-skel-field:nth-child(3n)
    .phyz-reg-skel-fvalue {
        width: 67%;
    }
}

/* Respecte les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .phyz-reg-skel-line::after,
    .phyz-reg-skel-tag::after,
    .phyz-reg-skel-chevron::after,
    .phyz-reg-skel-card,
    .phyz-reg-skel-detail {
        animation: none;
    }
}



/* ==========================================================================
   SCROLL INDÉPENDANT — VERSION FINALE
   La colonne gauche possède une hauteur réelle et .phyz-reg-cards est
   l'unique zone scrollable. Le détail possède son propre scroll.
   ========================================================================== */

@media (min-width: 768px) {

    /* Le layout flex doit autoriser ses enfants à se réduire verticalement. */
    .phyz-reg-layout.is-detail-open {
        min-height: 0;
    }

    /* Colonne gauche : hauteur réellement bornée à la fenêtre. */
    .phyz-reg-layout.is-detail-open .phyz-reg-list {
        display: flex;
        flex-direction: column;

        height: calc(100vh - 160px);
        height: calc(100dvh - 160px);

        max-height: calc(100vh - 160px);
        max-height: calc(100dvh - 160px);

        min-height: 0;
        overflow: hidden;

        transition: flex-basis 0.32s ease, max-width 0.32s ease;
    }

    /*
     * Zone de scroll de gauche.
     * Elle prend toute la hauteur disponible dans .phyz-reg-list.
     */
    .phyz-reg-layout.is-detail-open .phyz-reg-cards {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-height: none;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding-right: 6px;

        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;
        scrollbar-color: #C4C4C4 transparent;
    }

    /* Les cards ne doivent jamais se compresser pour éviter le débordement. */
    .phyz-reg-layout.is-detail-open .phyz-reg-card,
    .phyz-reg-layout.is-detail-open .phyz-reg-skel-card {
        flex: 0 0 auto;
    }

    /* Scrollbar liste — Chrome / Safari / Edge. */
    .phyz-reg-layout.is-detail-open .phyz-reg-cards::-webkit-scrollbar {
        width: 6px;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-cards::-webkit-scrollbar-track {
        background: transparent;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-cards::-webkit-scrollbar-thumb {
        background: #C4C4C4;
        border-radius: 999px;
    }

    /* Colonne détail : sticky, mais sans laisser son contenu agrandir la page. */
    .phyz-reg-layout.is-detail-open .phyz-reg-detail {
        min-height: 0;
        overflow: hidden;
        transition: opacity 0.32s ease;
    }

    /* Zone de scroll indépendante du détail. */
    .phyz-reg-layout.is-detail-open .phyz-reg-detail-inner {

        overflow-y: auto;
        overflow-x: hidden;

        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;
        scrollbar-color: #C4C4C4 transparent;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-detail-inner::-webkit-scrollbar {
        width: 6px;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-detail-inner::-webkit-scrollbar-track {
        background: transparent;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-detail-inner::-webkit-scrollbar-thumb {
        background: #C4C4C4;
        border-radius: 999px;
    }
}

/* Mobile : aucun scroll interne forcé.
   La liste et le détail suivent le scroll naturel de la page. */
@media (max-width: 767px) {
    .phyz-reg-layout.is-detail-open .phyz-reg-detail,
    .phyz-reg-layout.is-detail-open .phyz-reg-detail-inner,
    .phyz-reg-layout.is-detail-open .phyz-reg-cards {
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .phyz-reg-layout.is-detail-open .phyz-reg-detail-inner{
        padding:16px !important
    }

    .phyz-reg-field-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0 24px 0px;
    }

    .phyz-reg-field-label{
        font-size: 16px;
        font-weight: 500;
        color: var(--phyz-text-secondary);
    }

    .phyz-reg-field-value{
        font-size: 16px;
        font-weight: 500;
        color: var(--phyz-text);
    }

    h1.plugin_export{
        font-size:24px !important
    }

    .plugin_export_header{
        gap:0 !important
    }

    .down_export{
        padding-bottom: 16px !important;
    }

    .phyz-reg-export-subtitle{
        font-size:18px !important;
        padding-bottom: 8px;
    }
}


/* ==========================================================
   SCROLL LISTE GAUCHE — FORCE
   ========================================================== */

@media (min-width: 768px) {

    .phyz-reg-layout.is-detail-open .phyz-reg-list {
        flex: 0 0 340px !important;
        width: 340px !important;
        max-width: 340px !important;

        height: calc(100dvh - 180px) !important;
        max-height: calc(100dvh - 180px) !important;

        display: block !important;
        overflow: hidden !important;

        position: relative;
        z-index: 20;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-cards {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;

        overflow-y: scroll !important;
        overflow-x: hidden !important;

        position: relative;
        z-index: 30;

        pointer-events: auto !important;
        touch-action: pan-y;

        padding-right: 8px;
        box-sizing: border-box;

        scrollbar-width: auto;
        scrollbar-color: #999 transparent;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-card {
        display: flex;
        width: 100%;
        min-height: 116px;
        margin-bottom: 8px;

        flex-shrink: 0 !important;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-cards::-webkit-scrollbar {
        width: 10px;
        display: block !important;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-cards::-webkit-scrollbar-track {
        background: #eee;
    }

    .phyz-reg-layout.is-detail-open .phyz-reg-cards::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 20px;
    }
}

















/* ==========================================================================
   EXPORT V2 — CARDS + CUPERTINO SHEETS
   ========================================================================== */


/* --------------------------------------------------------------------------
   HEAD
   -------------------------------------------------------------------------- */

.phyz-reg-acc-head-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.phyz-reg-acc-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--phyz-text-secondary);
}

.phyz-reg-acc-summary {
    font-size: 16px;
    font-weight: 500;
    color: var(--phyz-text);
    line-height: 1.3;
}

.phyz-reg-acc-summary[hidden] {
    display: none;
}

.phyz-reg-acc.is-active .phyz-reg-acc-title {
    color: var(--phyz-text-secondary);
}


/* --------------------------------------------------------------------------
   BODY ACCORDÉON DESKTOP
   -------------------------------------------------------------------------- */

.phyz-reg-export .phyz-reg-acc-body {
    padding: 0 !important;
    background: #F0F0F0;
}


/* --------------------------------------------------------------------------
   CARDS DE CHOIX
   -------------------------------------------------------------------------- */

.phyz-reg-choice-list,
.phyz-reg-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.phyz-reg-choice-card {
    width: 100%;
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 16px 18px;

    margin: 0;

    border: 0 !important;
    border-radius: 0;

    background: #FFFFFF !important;

    color: #242020;

    font-family: inherit;
    font-size: 16px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        opacity .15s ease,
        background .15s ease;
}

.phyz-reg-choice-card:hover {
    background: #FAFAFA !important;
}

.phyz-reg-choice-card:active {
    opacity: .82;
}

.phyz-reg-choice-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.phyz-reg-choice-label {
    font-size: 16px;
    font-weight: 500;
    color: #242020;
}

.phyz-reg-choice-sub {
    font-size: 12px;
    font-weight: 500;
    color: #666561;
}


/* Check */

.phyz-reg-choice-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    position: relative;
}



.phyz-reg-choice-card.is-selected .phyz-reg-choice-check::after {
    content: "";

    display: block;

    width: 18px;
    height: 18px;

    background-color: #53A10F;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.97108 3.03352L3.97108 8.03352C3.94206 8.06258 3.9076 8.08563 3.86966 8.10136C3.83172 8.11708 3.79106 8.12518 3.74999 8.12518C3.70892 8.12518 3.66826 8.11708 3.63032 8.10136C3.59238 8.08563 3.55792 8.06258 3.5289 8.03352L1.3414 5.84602C1.28276 5.78739 1.24982 5.70786 1.24982 5.62493C1.24982 5.542 1.28276 5.46247 1.3414 5.40384C1.40003 5.3452 1.47956 5.31226 1.56249 5.31226C1.64542 5.31226 1.72495 5.3452 1.78358 5.40384L3.74999 7.37063L8.5289 2.59134C8.58753 2.5327 8.66706 2.49976 8.74999 2.49976C8.83292 2.49976 8.91245 2.5327 8.97108 2.59134C9.02972 2.64997 9.06266 2.7295 9.06266 2.81243C9.06266 2.89536 9.02972 2.97489 8.97108 3.03352Z' fill='black'/%3E%3C/svg%3E");

    mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.97108 3.03352L3.97108 8.03352C3.94206 8.06258 3.9076 8.08563 3.86966 8.10136C3.83172 8.11708 3.79106 8.12518 3.74999 8.12518C3.70892 8.12518 3.66826 8.11708 3.63032 8.10136C3.59238 8.08563 3.55792 8.06258 3.5289 8.03352L1.3414 5.84602C1.28276 5.78739 1.24982 5.70786 1.24982 5.62493C1.24982 5.542 1.28276 5.46247 1.3414 5.40384C1.40003 5.3452 1.47956 5.31226 1.56249 5.31226C1.64542 5.31226 1.72495 5.3452 1.78358 5.40384L3.74999 7.37063L8.5289 2.59134C8.58753 2.5327 8.66706 2.49976 8.74999 2.49976C8.83292 2.49976 8.91245 2.5327 8.97108 2.59134C9.02972 2.64997 9.06266 2.7295 9.06266 2.81243C9.06266 2.89536 9.02972 2.97489 8.97108 3.03352Z' fill='black'/%3E%3C/svg%3E");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}


/* --------------------------------------------------------------------------
   PÉRIODE
   -------------------------------------------------------------------------- */

.phyz-reg-period-form,
.phyz-reg-sheet-fields {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.phyz-reg-sheet-field {
    min-height: 84px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 4px;

    padding: 16px;

    background: #FFFFFF;
}

.phyz-reg-sheet-field-label {
    font-size: 14px;
    font-weight: 500;

    color: #666561;
}

.phyz-reg-sheet-input,
.phyz-reg-sheet-select {
    width: 100%;

    border: 0 !important;
    outline: none !important;

    box-shadow: none !important;

    padding: 2px 0 !important;
    margin: 0 !important;

    background: transparent !important;
    background-image: none !important;

    font-family: inherit !important;

    font-size: 16px !important;
    font-weight: 500 !important;

    color: #242020 !important;
}

.phyz-reg-sheet-input:focus,
.phyz-reg-sheet-select:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* Valider accordéon desktop */

.phyz-reg-acc-validate {
    width: 100%;

    min-height: 64px;

    border: 0;

    background: #53A10F;

    color: #FFFFFF;

    font-family: inherit;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
}


/* --------------------------------------------------------------------------
   EMPTY
   -------------------------------------------------------------------------- */

.phyz-reg-choice-empty {
    padding: 24px 16px;

    margin: 0;

    background: #FFFFFF;

    color: #666561;

    font-size: 14px;
    font-weight: 500;
}


/* ==========================================================================
   CUPERTINO PANE
   ========================================================================== */

#phyz-reg-export-pane {
    width: 100%;
    max-width: 100%;

    height: 100%;

    background: #F0F0F0;

    box-sizing: border-box;
}


/* Wrapper créé par CupertinoPane */

.cupertino-pane-wrapper:has(#phyz-reg-export-pane),
.cupertino-pane:has(#phyz-reg-export-pane) {
    width: 100% !important;
    max-width: 100% !important;

    left: 0 !important;
    right: 0 !important;
}

.pane:has(#phyz-reg-export-pane) {
    width: 100% !important;
    max-width: 100% !important;

    background: #F0F0F0 !important;

    border-radius: 14px 14px 0 0 !important;

    overflow: hidden !important;
}


/* --------------------------------------------------------------------------
   CONTENU SHEET
   -------------------------------------------------------------------------- */

.phyz-reg-sheet-inner {
    height: 100%;

    min-height: 0;

    display: flex;
    flex-direction: column;

    background: #F0F0F0;

    overflow: hidden;
}

.phyz-reg-sheet-head {
    flex: 0 0 auto;

    padding:
        18px
        16px
        16px;

    background: #F0F0F0;
}

.phyz-reg-sheet-title {
    width: 100%;

    text-align: center;

    font-size: 16px;
    font-weight: 700;

    color: #242020;
}

.phyz-reg-sheet-body {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;

    padding:
        0
        8px
        16px;
}


/* Footer fixe */

.phyz-reg-sheet-footer {
    flex: 0 0 auto;

    background: #F0F0F0;

    padding:
        0
        8px
        env(safe-area-inset-bottom);
}

.phyz-reg-sheet-validate {
    width: 100%;

    height: 96px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 0;

    background: #53A10F;

    color: #FFFFFF;

    font-family: inherit;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
}


/* ==========================================================================
   EXPORT — HIÉRARCHIE ÎLOTS / PARCELLES
   ========================================================================== */

.phyz-reg-ilot {
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #DADADA;
}


/* --------------------------------------------------------------------------
   HEADER ÎLOT
   -------------------------------------------------------------------------- */

.phyz-reg-ilot-head {
    width: 100%;
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 0 16px;

    background: #FFFFFF;
}


/* --------------------------------------------------------------------------
   PARTIE CLIQUABLE POUR OUVRIR
   -------------------------------------------------------------------------- */

.phyz-reg-ilot-opener {
    flex: 1 1 auto;

    min-width: 0;
    min-height: 76px;

    display: flex;
    align-items: center;

    padding: 0;
    margin: 0;

    border: 0;

    background: transparent;

    text-align: left;

    cursor: pointer;
}


.phyz-reg-ilot-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 5px;
}


.phyz-reg-ilot-title {
    font-size: 16px;
    font-weight: 500;

    color: #242020;
}


.phyz-reg-ilot-count {
    display: inline-flex;
    align-items: center;

    padding: 4px 0px;

    border-radius: 999px;


    color: #666561;

    font-size: 11px;
    font-weight: 500;

    line-height: 1;
}


/* Sélection partielle */

.phyz-reg-ilot.is-partial
.phyz-reg-ilot-count {
    color: #53A10F;

  
}


/* Tout l'îlot */

.phyz-reg-ilot.is-selected
.phyz-reg-ilot-count {
    color: #53A10F;
}


/* --------------------------------------------------------------------------
   ACTIONS DROITE
   -------------------------------------------------------------------------- */

.phyz-reg-ilot-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 14px;
}

span.phyz-reg-choice-icon {
    margin-right: 8px;
}


/* --------------------------------------------------------------------------
   CHECK ÎLOT
   -------------------------------------------------------------------------- */

.phyz-reg-ilot-select {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    position: relative;

    margin: 0;
    padding: 0;

    border: 1px solid #DADADA;

    border-radius: 50%;

    background: #FFFFFF;

    cursor: pointer;
}


/* Tout sélectionné */

.phyz-reg-ilot-select.is-selected {
    border-color: #53A10F;

    background:
        rgba(
            83,
            161,
            15,
            .12
        );
}


.phyz-reg-ilot-select.is-selected::after {
    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    top: 50%;
    left: 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    background:
        center /
        contain
        no-repeat
        url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.97108 3.03352L3.97108 8.03352C3.94206 8.06258 3.9076 8.08563 3.86966 8.10136C3.83172 8.11708 3.79106 8.12518 3.74999 8.12518C3.70892 8.12518 3.66826 8.11708 3.63032 8.10136C3.59238 8.08563 3.55792 8.06258 3.5289 8.03352L1.3414 5.84602C1.28276 5.78739 1.24982 5.70786 1.24982 5.62493C1.24982 5.542 1.28276 5.46247 1.3414 5.40384C1.40003 5.3452 1.47956 5.31226 1.56249 5.31226C1.64542 5.31226 1.72495 5.3452 1.78358 5.40384L3.74999 7.37063L8.5289 2.59134C8.58753 2.5327 8.66706 2.49976 8.74999 2.49976C8.83292 2.49976 8.91245 2.5327 8.97108 2.59134C9.02972 2.64997 9.06266 2.7295 9.06266 2.81243C9.06266 2.89536 9.02972 2.97489 8.97108 3.03352Z' fill='%2353A10F'/%3E%3C/svg%3E");
}


/* Sélection partielle */

.phyz-reg-ilot-select.is-partial {
    border-color: #53A10F;

    background: #FFFFFF;
}


.phyz-reg-ilot-select.is-partial::after {
    content: "";

    position: absolute;

    width: 10px;
    height: 2px;

    top: 50%;
    left: 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 999px;

    background: #53A10F;
}


/* --------------------------------------------------------------------------
   CHEVRON
   -------------------------------------------------------------------------- */

.phyz-reg-ilot-chevron {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    transition:
        transform .2s ease;
}


.phyz-reg-ilot-chevron svg {
    display: block;

    width: 18px;
    height: 18px;
}


.phyz-reg-ilot.is-open
.phyz-reg-ilot-chevron {
    transform: rotate(180deg);
}


/* --------------------------------------------------------------------------
   PARCELLES
   -------------------------------------------------------------------------- */

.phyz-reg-ilot-body {
    display: none;
    background: #DADADA;
}


.phyz-reg-ilot.is-open
.phyz-reg-ilot-body {
    display: block;
}


.phyz-reg-ilot-body
.phyz-reg-choice-card {
    min-height: 84px;
    border-bottom:
        1px solid
        #DADADA !important;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    /*
     * Avec Cupertino chargé, le contenu des accordéons
     * n'apparaît jamais dans la page.
     */

    .phyz-reg-export.has-cupertino
    .phyz-reg-acc-body,

    .phyz-reg-export.has-cupertino
    .phyz-reg-acc.is-open
    .phyz-reg-acc-body {
        display: none !important;
    }

    /*
     * Le chevron ne tourne plus :
     * il sert simplement de trigger de sheet.
     */

    .phyz-reg-export.has-cupertino
    .phyz-reg-acc.is-open
    .phyz-reg-acc-chevron {
        transform: none;
    }

    .phyz-reg-sheet-body
    .phyz-reg-choice-card {
        min-height: 84px;
    }

}


/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 768px) {

    .phyz-reg-export
    .phyz-reg-acc-body {
        padding: 0 !important;
    }

    /*
     * Cupertino n'est utilisé que sur mobile.
     */

    #phyz-reg-export-pane {
        display: none !important;
    }

}