tr.icons {
    display: none;
}

tr.column-name>th {
    padding-bottom: 10px !important;
}

.tag {
    white-space: nowrap;
}

.tag.not-paid {
    background-color: #e57373;
    /*red lighten-2*/
    color: black;
}

#list-elements>tbody>tr>td[field="invoiceURL"]>span>a>i.material-icons {
    margin-right: unset !important;
}

[field="lastUpdate"] {
    display: none;
}

/* ── Design repris de la section "Des prix imbattables" de la page d'accueil (index.css) ── */
.hp-section {
    padding: 48px 24px;
}

@media (max-width: 600px) {
    .hp-section {
        padding: 32px 16px;
    }
}

.hp-section-dark,
.modal>.modal-content,
.modal>.modal-footer,
.hp-price-desc {
    --hp-navy-a: #1b3446;
    --hp-navy-b: #2f6f8f;
    color: white !important;
    background: linear-gradient(135deg, var(--hp-navy-a) 0%, var(--hp-navy-b) 100%);
}

.modal>.modal-footer>.btn-flat,
.modal>.modal-content label,
.modal>.modal-content input,
.modal>.modal-content textarea {
    color: white !important;
}

.modal>.modal-content>h5 {
    margin-bottom: 50px;
}

.modal#modal-card-setup #payment-element,
.modal#modal-card-setup #payment-element-errors {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.hp-section-head {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.hp-h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -.3px;
    margin: 0 0 8px;
}

.hp-sub {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.hp-pricing-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .hp-pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hp-pricing-grid.hp-pricing-grid-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
}

@media (max-width: 560px) {
    .hp-pricing-grid.hp-pricing-grid-2col {
        grid-template-columns: 1fr;
    }
}

.hp-price-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    padding: 26px 24px;
}

/* Only the title and the description dim on an inactive module — not the whole card, so the
   "Souscrire" button and switch in the footer stay at full color/opacity. */
.hp-price-card-title,
.hp-price-desc {
    transition: filter .5s ease, color .5s ease;
}

.hp-price-card-inactive:not(:hover) .hp-price-card-title,
.hp-price-card-inactive:not(:hover) .hp-price-desc {
    filter: grayscale(5);
    color: gray;
}


.hp-price-card .card-loader {
    display: none;
    padding: 40px 0;
    text-align: center;
}

.hp-price-card.loading .card-loader {
    display: block;
}

.hp-price-card.loading .card-content-wrap {
    display: none;
}

.card-content-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.hp-load-error {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 14px 20px;
    text-align: center;
    background: rgba(229, 115, 115, .12);
    border: 1px solid rgba(229, 115, 115, .5);
    border-radius: 12px;
}

.hp-load-error p {
    margin: 0 0 10px;
    color: #ffab91;
    font-weight: 600;
}

.hp-load-error i.material-icons {
    font-size: 16px;
    vertical-align: text-bottom;
    margin-right: 4px;
}

.hp-load-error .btn {
    background: #ffca28;
    color: #1b3446;
}

.hp-load-error .btn:hover {
    background: #ffb300;
}

.hp-price-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 6px;
}

.hp-price-card-title i.material-icons {
    font-size: 28px;
    color: #ffca28;
}

.hp-price-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.hp-price-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
    margin: 10px 0 30px;
    padding: 20px;
    border-radius: 12px;
    min-height: 265px;
    display: flex;
    flex-direction: column;
}

.hp-price-desc p {
    margin: 0 0 14px;
}

/* Mini carrousel de captures d'écran dans .hp-price-desc — même patron que .hp-carousel sur la
   page d'accueil (voir index.css/index.js), en plus compact pour tenir dans une carte module. */
.hp-price-desc .hp-carousel {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.hp-price-desc .hp-carousel-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 2px 8px;
    -webkit-overflow-scrolling: touch;
}

.hp-price-desc .hp-carousel-track img {
    flex: 0 0 auto;
    height: 115px;
    scroll-snap-align: center;
    border-radius: 10px;
    margin: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hp-price-desc .hp-carousel-track img:hover {
    transform: translateY(-2px);
}

.hp-price-desc .hp-carousel-arrow {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hp-price-desc .hp-carousel-arrow:hover {
    background: rgba(255, 255, 255, .22);
}

.hp-price-desc .hp-carousel-arrow .material-icons {
    font-size: 16px;
}

/* Lightbox — agrandir une capture d'écran d'un carrousel module (voir #modal-screenshot / .hp-shot
   sur la page d'accueil, index.css, même patron). */
#modal-screenshot {
    background: transparent;
    box-shadow: none;
    overflow: visible;
    height: auto;
    max-height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-screenshot .modal-content {
    position: static;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80dvh;
    padding: 0;
    line-height: 0;
}

#modal-screenshot img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80dvh;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .55);
}

.modal-screenshot-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1004;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-screenshot-nav:hover {
    background: rgba(0, 0, 0, .65);
}

.modal-screenshot-prev {
    left: 18px;
}

.modal-screenshot-next {
    right: 18px;
}

@media (max-width: 560px) {
    .modal-screenshot-nav {
        width: 38px;
        height: 38px;
    }

    .modal-screenshot-prev {
        left: 6px;
    }

    .modal-screenshot-next {
        right: 6px;
    }
}

.hp-price-tiers {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.hp-price-tiers li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px;
}

.hp-price-tiers li:last-child {
    border-bottom: none;
}

.hp-price-label {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, .75);
}

.hp-tier-name-row {
    white-space: nowrap;
}

.hp-tier-change-link {
    text-decoration: underline;
    cursor: pointer;
    color: #ffb300 !important;
}

/* No pack to "changer" when the module isn't even subscribed yet (never started, no trial) — the
   link only makes sense once a pack is actually assigned (trial or paid). */
.hp-price-card-inactive .hp-tier-change-link {
    display: none;
}

.hp-price-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
}

.hp-price-value b {
    white-space: nowrap;
}

.hp-price-example {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 10px;
}

.referent-count {
    font-weight: 700;
    color: #ffca28;
}

.referent-info-icon {
    vertical-align: text-bottom;
    color: #ffca28;
    cursor: pointer;
    opacity: .85;
}

.referent-info-icon:hover {
    opacity: 1;
}

.module-source-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 10px;
    border-radius: 12px;
    margin: 0 0 10px;
}

.module-source-badge.source-paid {
    background: rgba(102, 187, 106, .18);
    color: #a5d6a7;
}

.module-source-badge.source-trial {
    background: rgba(255, 202, 40, .18);
    color: #ffca28;
}

.module-source-badge.source-granted {
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .75);
}

.hp-price-footnote {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .65);
    margin: 0;
}

/* Interrupteurs/liens lisibles sur le fond sombre */
.hp-price-card .switch {
    margin-bottom: 0;
}

/* Section "footer" à l'intérieur de la carte, séparée du reste par un liseré — utilisée pour le
   prix (juste après la description) et pour la zone d'actions (interrupteur, bouton, badge
   d'attente) plus bas. Une carte peut en avoir plusieurs, empilées. */
.hp-price-card-footer {
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* La zone d'actions spécifiquement est pinned en bas via margin-top:auto quand la carte est en
   colonne flex (.card-content-wrap), pour aligner les boutons d'une même rangée de cartes quel que
   soit le texte au-dessus. */
.hp-price-card-footer-actions {
    margin-top: auto;
}

.hp-price-card .switch label .lever,
#modal-feuilles-tier .switch label .lever {
    background-color: rgba(255, 255, 255, .3);
}

.hp-price-card .switch .false,
.hp-price-card .switch .true,
#modal-feuilles-tier .switch .false,
#modal-feuilles-tier .switch .true {
    color: rgba(255, 255, 255, .55);
}

/* L'option courante (Inactif si décoché, Activer si coché) ressort en jaune, l'autre reste grise —
   :has() plutôt qu'un sélecteur de sibling (.false précède l'input dans le markup, donc
   inatteignable par ~ / +). */
.hp-price-card .switch label:has(input:not(:checked)) .false,
#modal-feuilles-tier .switch label:has(input:not(:checked)) .false {
    color: #ffca28 !important;
}

.hp-price-card .switch input:checked + .lever + .true,
#modal-feuilles-tier .switch input:checked + .lever + .true,
.cancel-pending-removal {
    /* Overrides common.css's .switch > label > [type=checkbox]:checked+span.true (#212121),
       unreadable on this dark card. */
    color: #ffca28 !important;
}

.hp-price-card .btn-flat,
.hp-price-card a:not(.btn),
#modal-feuilles-tier a:not(.btn) {
    color: #ffca28;
}

.hp-price-card .btn {
    background: #ffca28;
    color: #1b3446;
    margin-top: 10px;
}

.hp-price-card .btn:hover {
    background: #ffb300;
}

.module-pending {
    font-size: 12px;
    font-style: italic;
    margin-top: 10px;
    color: white;
}

.module-pending a {
    color: #ffca28;
}

.feuilles-tier-option {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .12s ease, transform .12s ease;
}

.feuilles-tier-option:hover {
    transform: translateY(-2px);
}

.feuilles-tier-option.selected {
    border-color: #ffca28;
    cursor: default;
}

.feuilles-tier-option.selected:hover {
    transform: none;
}

#modal-feuilles-tier .modal-content {
    padding: 30px 24px;
}

#payment-element {
    min-height: 200px;
}

/* ── Panier de souscription (modal-confirm-activation) ──────────────────── */
.activation-cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.activation-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f6f8fb;
    border-radius: 10px;
    text-align: left;
}

.activation-cart-icon {
    flex: 0 0 auto;
    font-size: 26px;
}

.activation-cart-info {
    flex: 1 1 auto;
    min-width: 0;
}

.activation-cart-name {
    font-weight: 700;
    font-size: 15px;
    color: #23324a;
}

.activation-cart-detail {
    font-size: 12.5px;
    color: #64708a;
}

.activation-cart-price {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 15px;
    color: #23324a;
    white-space: nowrap;
}

.activation-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-top: 2px solid rgba(255, 255, 255, .25);
    margin: -4px 0 14px;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}