/* ISP — Styles communs du site joueur (chargé par layouts/head-css.php ; la gestion a son propre head-css)
   ---------------------------------------------------------------------------
   1. Blocs (cartes) : coins arrondis, en-tête compris, comme PEL_achat_credits1.php
   2. Tableaux (DataTables « dataisp… » et tableau de Mes inscriptions)
   --------------------------------------------------------------------------- */

/* 1. Blocs : rayon des cartes du thème (Velzon / Bootstrap) ; l'en-tête (.card-header) et le pied
      (.card-footer) suivent automatiquement par --vz-card-inner-border-radius */
.card {
    --vz-card-border-radius: .75rem;
    --vz-card-inner-border-radius: calc(.75rem - 1px);
}
/* Corps de bloc avec son propre fond (bg-light…) : coins arrondis eux aussi */
.card > .card-body:first-child {
    border-top-left-radius: var(--vz-card-inner-border-radius);
    border-top-right-radius: var(--vz-card-inner-border-radius);
}
.card > .card-body:last-child {
    border-bottom-left-radius: var(--vz-card-inner-border-radius);
    border-bottom-right-radius: var(--vz-card-inner-border-radius);
}

/* 2. Tableaux
   ---------------------------------------------------------------------------
   En-tête vert foncé ISP (#123524) et coins arrondis, comme les blocs de l'achat de crédits
   (PEL_achat_credits1.php) ; le vert clair (#85A947) est réservé aux boutons.
   Chargé par layouts/head-css.php (site joueur uniquement : la gestion a son propre head-css).
   Les !important l'emportent sur la couleur posée en ligne par assets/js/pages/datatables.init.js. */

table[id^="dataisp"],
table.insc-table {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid rgba(18, 53, 36, .25) !important;
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .09);
    /* Contenu découpé aux coins arrondis : fonctionne même quand la première ou la dernière
       colonne est masquée (colonne « Ordre » cachée, colonnes repliées par DataTables Responsive) */
    overflow: hidden;
}

/* Tableaux à bordures : une seule épaisseur de trait entre cellules (bordures séparées) */
table[id^="dataisp"].table-bordered > :not(caption) > * > *,
table.insc-table.table-bordered > :not(caption) > * > * {
    border-width: 0 1px 1px 0;
}
table[id^="dataisp"].table-bordered > :not(caption) > * > *:last-child,
table.insc-table.table-bordered > :not(caption) > * > *:last-child {
    border-right-width: 0;
}
table[id^="dataisp"] > tbody > tr:last-child > *,
table.insc-table > tbody > tr:last-child > * {
    border-bottom-width: 0;
}

/* En-tête vert foncé */
table[id^="dataisp"] thead th,
table.insc-table thead th {
    background-color: #123524 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

/* Coins arrondis des cellules d'angle (complément du découpage du tableau) */
table[id^="dataisp"] thead tr:first-child th:first-child,
table.insc-table thead tr:first-child th:first-child { border-top-left-radius: calc(.75rem - 1px); }
table[id^="dataisp"] thead tr:first-child th:last-child,
table.insc-table thead tr:first-child th:last-child { border-top-right-radius: calc(.75rem - 1px); }
table[id^="dataisp"] > tbody > tr:last-child > td:first-child,
table.insc-table > tbody > tr:last-child > td:first-child { border-bottom-left-radius: calc(.75rem - 1px); }
table[id^="dataisp"] > tbody > tr:last-child > td:last-child,
table.insc-table > tbody > tr:last-child > td:last-child { border-bottom-right-radius: calc(.75rem - 1px); }

/* Flèches de tri DataTables lisibles sur le vert foncé */
table[id^="dataisp"] thead th::before,
table[id^="dataisp"] thead th::after,
table[id^="dataisp"] thead .dt-column-order,
table.insc-table thead .dt-column-order {
    color: #fff;
    opacity: .7;
}
