.ams-irregular-compact-list {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* au lieu de center */
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  padding: 12px 6px;
}

.ams-irregular-compact-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 175px;
  max-width: 230px;
  min-height: 74px;

  padding: 10px 14px 10px 10px;

  background: #ffffff;

  /* légère bordure permanente */
  border: 1px solid rgba(16, 31, 105, 0.16);
  border-radius: 20px;

  /* ombre réduite */
  box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.10);

  overflow: visible;
}

.ams-irregular-compact-card.is-period,
.ams-irregular-compact-card.is-both {
  border: 2px solid rgb(196, 11, 113);
}

.ams-irregular-compact-photo-wrap {
  position: relative;
  flex: 0 0 auto;

  width: 58px;
  height: 58px;
  padding: 3px;

  border-radius: 50%;
  background: #ffffff;
  border: 0px;

  /* ombre réduite */
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.13);
}

.ams-irregular-compact-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ams-irregular-sick-dot {
  position: absolute;
  top: -9px;
  right: -13px;

  width: 30px;
  height: 30px;

  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #ffffff;

  /* ombre réduite */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.18);

  object-fit: cover;
  z-index: 3;
}

.ams-irregular-compact-content {
  flex: 1 1 auto;
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.ams-irregular-compact-name {
  font-size: 14px;
  font-weight: 800;
  color: #101F69;
  line-height: 1.1;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left : 2px;
}

.ams-irregular-compact-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ams-irregular-tag {
  display: inline-flex;
  align-items: center;

  padding: 3px 7px;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;
}

.ams-irregular-tag-period {
  color: rgb(196, 11, 113);
  background: rgba(196, 11, 113, 0.08);
  border: 1px solid rgba(196, 11, 113, 0.22);
}


.ams-irregular-tag-sick {
  color: #B45309;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
}

.ams-irregular-empty {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;
  border-radius: 12px;

  background: rgba(16, 31, 105, 0.04);
  color: #101F69;

  font-size: 13px;
  font-style: italic;
}

.ams-pain-card-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 8px 4px;
  overflow: visible !important;
}

.ams-pain-player-card {
  flex: 0 1 230px;
  min-width: 230px;
  max-width: 230px;

  background: #ffffff;
  border: 1px solid rgba(16, 31, 105, 0.14);
  border-radius: 16px;

  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.07);
  padding: 9px 10px 10px 10px;

  overflow: visible !important;
}

.ams-pain-player-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.ams-pain-player-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;

  background: #ffffff;
  border: 1px solid rgba(16, 31, 105, 0.14);
  box-shadow: 0 0.25rem 0.65rem rgba(0, 0, 0, 0.10);
}

.ams-pain-player-title {
  flex: 1 1 auto;
  min-width: 0;
}

.ams-pain-player-name {
  color: #101F69;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ams-pain-player-count {
  margin-top: 2px;
  color: #7076AC;
  font-size: 10.5px;
  font-weight: 600;
}

.ams-pain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible !important;
}

/* Sections Réveil / Matin / Après-midi */
.ams-pain-session-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: visible !important;
}

.ams-pain-session-title {
  color: #7076AC;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  margin: 1px 0 0 2px;
}

/* Ligne douleur : intensité / localisation / message éventuel */
.ams-pain-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;

  min-height: 30px;
  padding: 5px 7px;

  border-radius: 10px;
  border: 1px solid transparent;

  overflow: visible !important;
}

.ams-pain-item.has-message {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.ams-pain-intensity {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  padding: 3px 6px;
  border-radius: 999px;

  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* Localisation + tooltip texte long */
.ams-pain-zone-wrapper {
  position: relative;
  min-width: 0;
  display: block;
  overflow: visible !important;
}

.ams-pain-zone {
  color: #101F69;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ams-pain-zone-tooltip {
  position: absolute !important;
  left: 50% !important;
  top: calc(100% + 0.35rem) !important;
  z-index: 60 !important;

  min-width: 170px !important;
  max-width: 280px !important;

  padding: 0.42rem 0.55rem !important;
  border-radius: 6px !important;

  background-color: #ffffff !important;
  border: 1px solid rgba(16, 31, 105, 0.14) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.08) !important;

  color: var(--ffbad-blue, #101F69) !important;
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 750 !important;

  white-space: normal !important;

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translate(-50%, -2px) !important;
  pointer-events: none !important;

  transition:
    opacity 40ms ease,
    transform 40ms ease,
    visibility 0ms linear 0ms !important;

  box-sizing: border-box !important;
}

.ams-pain-zone-wrapper:hover .ams-pain-zone-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
  transition-delay: 0ms !important;
}

/* Icône message + tooltip Quand / Comment */
.ams-pain-message-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.ams-pain-message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  border-radius: 7px;

  color: #101F69;
  background: rgba(16, 31, 105, 0.07);
  border: 1px solid rgba(16, 31, 105, 0.14);

  font-size: 13px;
  cursor: pointer;
}

.ams-pain-tooltip {
  position: absolute !important;
  left: 50% !important;
  top: calc(100% + 0.35rem) !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -2px) !important;
  z-index: 70 !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 0.18rem !important;

  min-width: 210px !important;
  max-width: 260px !important;

  padding: 0.45rem 0.55rem !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(16, 31, 105, 0.14) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.08) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  transition:
    opacity 40ms ease,
    transform 40ms ease,
    visibility 0ms linear 0ms !important;

  box-sizing: border-box !important;
}

.ams-pain-message-wrapper:hover .ams-pain-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
  transition-delay: 0ms !important;
}

.ams-pain-tooltip-title {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: var(--ffbad-blue-light, #7076AC) !important;
}

.ams-pain-tooltip-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.05rem !important;
}

.ams-pain-tooltip-label {
  font-size: 10px !important;
  line-height: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: var(--ffbad-blue-light, #7076AC) !important;
}

.ams-pain-tooltip-text {
  font-size: 11px !important;
  line-height: 14px !important;
  font-weight: 750 !important;
  color: var(--ffbad-blue, #101F69) !important;
  white-space: normal !important;
}


/* Intensités */
.ams-pain-item-intensity-1 {
  background: rgba(33, 209, 0, 0.14);
  border-color: rgba(33, 209, 0, 0.24);
}

.ams-pain-item-intensity-1 .ams-pain-intensity {
  color: #166534;
  background: rgba(33, 209, 0, 0.16);
}

.ams-pain-item-intensity-2 {
  background: rgba(255, 255, 0, 0.22);
  border-color: rgba(202, 138, 4, 0.22);
}

.ams-pain-item-intensity-2 .ams-pain-intensity {
  color: #854d0e;
  background: rgba(255, 255, 0, 0.30);
}

.ams-pain-item-intensity-3 {
  background: rgba(255, 165, 0, 0.20);
  border-color: rgba(234, 88, 12, 0.22);
}

.ams-pain-item-intensity-3 .ams-pain-intensity {
  color: #9a3412;
  background: rgba(255, 165, 0, 0.26);
}

.ams-pain-item-intensity-4 {
  background: rgba(255, 69, 0, 0.18);
  border-color: rgba(220, 38, 38, 0.24);
}

.ams-pain-item-intensity-4 .ams-pain-intensity {
  color: #991b1b;
  background: rgba(255, 69, 0, 0.22);
}

.ams-pain-item-intensity-5 {
  background: rgba(197, 0, 0, 0.72);
  border-color: rgba(197, 0, 0, 0.90);
}

.ams-pain-item-intensity-5 .ams-pain-zone {
  color: #ffffff;
}

.ams-pain-item-intensity-5 .ams-pain-intensity {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.ams-pain-item-intensity-5 .ams-pain-message-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.ams-pain-item-intensity-unknown {
  background: #ffffff;
  border-color: rgba(16, 31, 105, 0.10);
}

.ams-pain-item-intensity-unknown .ams-pain-intensity {
  color: #6b7280;
  background: rgba(16, 31, 105, 0.06);
}

/* ======================================================
   COLLECTIVE LOAD TABLE — COLOR SYSTEM
   ====================================================== */

.collective-load-wrapper {
    --cl-blue: #101F69;
    --cl-red: #D52B1E;
    --cl-orange: #F39C12;
    --cl-yellow: #F1C40F;
    --cl-green: #4CAF50;

    --cl-blue-bg: rgba(16, 31, 105, 0.075);
    --cl-red-bg: rgba(213, 43, 30, 0.095);
    --cl-orange-bg: rgba(243, 156, 18, 0.105);
    --cl-yellow-bg: rgba(241, 196, 15, 0.18);
    --cl-green-bg: rgba(76, 175, 80, 0.105);

    --cl-blue-soft: rgba(16, 31, 105, 0.56);
    --cl-separator: rgba(16, 31, 105, 0.12);
    --cl-bg: #f7f8fc;
    --cl-white: #ffffff;

    width: 100%;
    padding: 0px;
    background: var(--cl-bg);
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* ======================================================
   HEADER BLOCK
   ====================================================== */

.collective-load-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.collective-load-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.collective-load-title {
    font-size: 17px;
    font-weight: 950;
    color: var(--cl-blue);
    line-height: 1.1;
}

.collective-load-subtitle {
    font-size: 11px;
    font-weight: 650;
    color: rgba(16, 31, 105, 0.62);
}

.collective-load-toggle-button {
    border: none;
    background: var(--cl-blue-bg);
    color: var(--cl-blue);
    font-size: 11px;
    font-weight: 850;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
}

.collective-load-toggle-button:hover {
    background: rgba(16, 31, 105, 0.11);
}


/* ======================================================
   AG GRID BASE
   ====================================================== */

.collective-load-grid {
    --ag-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ag-font-size: 11px;
    --ag-border-color: rgba(16, 31, 105, 0.08);
    --ag-row-border-color: rgba(16, 31, 105, 0.055);
    --ag-header-column-separator-display: none;
    --ag-row-hover-color: rgba(16, 31, 105, 0.045);
    --ag-selected-row-background-color: rgba(16, 31, 105, 0.05);
}

.collective-load-grid .ag-root-wrapper {
    border-radius: 10px !important;
    border: 1px solid rgba(16, 31, 105, 0.11) !important;
    overflow: hidden !important;
    background: var(--cl-white) !important;
}

.collective-load-grid {
    --ag-header-background-color: rgba(16, 31, 105, 0.035);
}

.collective-load-grid .ag-header {
    background: var(--ag-header-background-color) !important;
    border-bottom: 1px solid rgba(16, 31, 105, 0.14) !important;
}

.collective-load-grid .ag-header-cell,
.collective-load-grid .ag-header-group-cell {
    background: transparent !important;
}

.collective-load-grid .ag-header-cell,
.collective-load-grid .ag-header-group-cell {
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-right: none !important;
}

.collective-load-grid .ag-header-cell-label,
.collective-load-grid .ag-header-group-cell-label {
    justify-content: center !important;
    color: var(--cl-blue) !important;
    font-weight: 950 !important;
    font-size: 10.5px !important;
}

.collective-load-grid .ag-header-cell-text,
.collective-load-grid .ag-header-group-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.collective-load-grid .ag-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    color: var(--cl-blue) !important;
    border-right: none !important;
    line-height: 1.05 !important;
    overflow: hidden !important;
}

.collective-load-grid .ag-row-even {
    background: var(--cl-white) !important;
}

.collective-load-grid .ag-row-odd {
    background: rgba(16, 31, 105, 0.012) !important;
}

.collective-load-grid .ag-row-hover {
    background: rgba(16, 31, 105, 0.045) !important;
}


/* ======================================================
   PINNED LEFT — CLEAN SEPARATOR
   ====================================================== */

.collective-load-grid .ag-pinned-left-header,
.collective-load-grid .ag-pinned-left-cols-container {
    border-right: 1px solid rgba(16, 31, 105, 0.14) !important;
    box-shadow: none !important;
}

.collective-load-grid .ag-pinned-left-header::after,
.collective-load-grid .ag-pinned-left-cols-container::after {
    content: none !important;
    display: none !important;
}

.collective-load-grid .ag-pinned-left-cols-container .ag-cell {
    border-right: none !important;
    box-shadow: none !important;
}


/* ======================================================
   SELECTED SESSION
   ====================================================== */

.collective-load-grid .ag-row.cl-selected-row {
    background: rgba(213, 43, 30, 0.050) !important;
}

.collective-load-grid .ag-row.cl-selected-row .ag-cell[col-id="SessionDate_display"] {
    box-shadow: inset 4px 0 0 var(--cl-red) !important;
}

.collective-load-grid .ag-row.cl-selected-row .ag-cell:not([col-id="SessionDate_display"]) {
    border-left: none !important;
}

.collective-load-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    width: 100%;
    margin: 0 0 6px 0;
}

.collective-load-grid-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.collective-load-grid {
    width: 100%;
}

/* Scrollbar discrète */
.collective-load-grid-scroll-wrapper::-webkit-scrollbar {
    width: 7px;
}

.collective-load-grid-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(16, 31, 105, 0.04);
    border-radius: 999px;
}

.collective-load-grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(16, 31, 105, 0.22);
    border-radius: 999px;
}

.collective-load-grid-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 31, 105, 0.34);
}


/* ======================================================
   GROUP SEPARATORS — HEADERS + CELLS
   ====================================================== */

.cl-header-start {
    box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.14) !important;
}

.cl-cell-start {
    box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.11) !important;
}

.collective-load-grid .ag-row.cl-selected-row .cl-cell-start.ag-cell[col-id="SessionDate_display"] {
    box-shadow: inset 4px 0 0 var(--cl-red) !important;
}


/* ======================================================
   TOOLTIP CUSTOM
   ====================================================== */
.ag-theme-alpine .ag-tooltip,
.ag-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
    overflow: visible !important;
}

.collective-load-grid .ag-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.cl-tooltip-card {
    min-width: 210px;
    max-width: 430px;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;

    background: var(--cl-white, #ffffff);
    border: 1px solid var(--cl-separator, rgba(16, 31, 105, 0.12));
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.10),
        0 12px 28px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}

.cl-tooltip-title {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7076AC;
    margin-bottom: 0.35rem;
}

.cl-tooltip-line {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--cl-blue, #101F69);
    white-space: pre-line;
}

.cl-tooltip-section {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(16, 31, 105, 0.08);
}

.cl-tooltip-section-title {
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    color: #7076AC;
    margin-bottom: 0.2rem;
}

/* ======================================================
   GENERIC CELLS
   ====================================================== */

.cl-empty {
    color: rgba(85, 85, 85, 0.34);
    font-size: 12px;
    font-weight: 850;
}

.cl-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    width: 100%;
}

.cl-main {
    font-size: 12px;
    font-weight: 950;
    color: var(--cl-blue);
    white-space: nowrap;
}

.cl-sub {
    font-size: 9px;
    font-weight: 800;
    color: var(--cl-blue-soft);
    white-space: nowrap;
}


/* ======================================================
   DATE / SEANCE / COUNTS
   ====================================================== */

.cl-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.cl-date-main {
    font-size: 11px;
    font-weight: 950;
    color: var(--cl-blue);
}

.cl-date-target {
    font-size: 8px;
    font-weight: 950;
    color: var(--cl-red);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cl-pill,
.cl-count {
    border: none !important;
    box-shadow: none !important;
}

.cl-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.cl-pill-blue {
    color: var(--cl-blue);
    background: var(--cl-blue-bg);
}

.cl-count {
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 31, 105, 0.070);
    color: var(--cl-blue);
    font-size: 11px;
    font-weight: 950;
}


/* ======================================================
   SHARED ALERT PALETTE
   Vert / Jaune / Orange / Rouge uniformes partout
   ====================================================== */

.cl-bg-green {
    color: var(--cl-green);
    background: var(--cl-green-bg);
}

.cl-bg-yellow {
    color: var(--cl-blue-soft);
    background: var(--cl-yellow-bg);
}

.cl-bg-orange {
    color: var(--cl-orange);
    background: var(--cl-orange-bg);
}

.cl-bg-red {
    color: var(--cl-red);
    background: var(--cl-red-bg);
}


/* ======================================================
   RPE — CLEAN INTENSITY PILL
   Bornes : <4 vert | 4-5.9 jaune | 6-7.9 orange | >=8 rouge
   ====================================================== */

.cl-rpe-pill {
    min-width: 42px;
    height: 22px;
    padding: 0 0.48rem;
    border-radius: 999px;

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

    font-size: 13px;
    font-weight: 950;
    line-height: 1;

    border: none !important;
    box-shadow: none !important;
}

.cl-rpe-green {
    color: var(--cl-green);
    background: var(--cl-green-bg);
}

.cl-rpe-yellow {
    color: var(--cl-blue-soft);
    background: var(--cl-yellow-bg);
}

.cl-rpe-orange {
    color: var(--cl-orange);
    background: var(--cl-orange-bg);
}

.cl-rpe-red {
    color: var(--cl-red);
    background: var(--cl-red-bg);
}


/* ======================================================
   DOULEURS — CLEAN PILL
   Niveau max : neutre | orange | rouge
   ====================================================== */

.cl-pain-pill-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-pain-pill {
    height: 24px;
    min-width: 70px;
    padding: 0 0.52rem;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.30rem;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    border: none !important;
    box-shadow: none !important;
}

.cl-pain-count {
    font-size: 12px;
    font-weight: 950;
    color: inherit;
}

.cl-pain-label {
    font-size: 8.8px;
    font-weight: 850;
    color: inherit;
    opacity: 0.68;
}

.cl-pain-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex: 0 0 7px;
}

.cl-pain-soft {
    color: var(--cl-blue);
    background: var(--cl-blue-bg);
}

.cl-pain-medium {
    color: var(--cl-blue);
    background: var(--cl-orange-bg);
}

.cl-pain-strong {
    color: var(--cl-blue);
    background: var(--cl-red-bg);
}

.cl-pain-dot-soft {
    background: rgba(16, 31, 105, 0.38);
}

.cl-pain-dot-medium {
    background: var(--cl-orange);
}

.cl-pain-dot-strong {
    background: var(--cl-red);
}


/* ======================================================
   INDEX — CLEAN SCORE PILL
   Bas : vert | Normal : bleu | Haut : orange | Très haut : rouge
   ====================================================== */

.cl-idx-wrap {
    width: 100%;
    min-height: 38px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.cl-idx-wrap-emphasis {
    min-height: 38px;
}

.cl-idx-pill {
    min-width: 56px;
    height: 20px;
    padding: 0 0.50rem;
    border-radius: 999px;

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

    font-size: 12px;
    font-weight: 950;
    line-height: 1;

    border: none !important;
    box-shadow: none !important;
}

.cl-idx-meta {
    margin-top: 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font-size: 8.8px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.cl-idx-percentile {
    color: rgba(16, 31, 105, 0.70);
    font-weight: 950;
}

.cl-idx-separator {
    color: rgba(16, 31, 105, 0.36);
    font-weight: 850;
}

.cl-idx-n {
    color: rgba(16, 31, 105, 0.48);
    font-weight: 850;
}

.cl-idx-normal {
    color: var(--cl-blue);
    background: var(--cl-blue-bg);
}

.cl-idx-low {
    color: var(--cl-green);
    background: var(--cl-green-bg);
}

.cl-idx-mid {
    color: var(--cl-orange);
    background: var(--cl-orange-bg);
}

.cl-idx-high {
    color: var(--cl-red);
    background: var(--cl-red-bg);
}


/* ======================================================
   MDS — PLAIN
   ====================================================== */

.cl-mds-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}

.cl-mds-simple-main {
    font-size: 11.5px;
    font-weight: 950;
    color: var(--cl-blue);
}

.cl-mds-simple-sub {
    font-size: 8.5px;
    font-weight: 850;
    color: var(--cl-blue-soft);
}


/* ======================================================
   LEGACY CLEANUP — SAFE RESET
   ====================================================== */

.cl-score,
.cl-index-gauge,
.cl-pain-mini,
.cl-pain-alert {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ======================================================
   PLAYER SESSION TABLE — COLOR SYSTEM
   ====================================================== */

.player-session-wrapper {
    --pst-blue: #101F69;
    --pst-red: #D52B1E;
    --pst-orange: #F39C12;
    --pst-yellow: #F1C40F;
    --pst-green: #4CAF50;

    --pst-blue-bg: rgba(16, 31, 105, 0.075);
    --pst-red-bg: rgba(213, 43, 30, 0.095);
    --pst-orange-bg: rgba(243, 156, 18, 0.105);
    --pst-yellow-bg: rgba(241, 196, 15, 0.18);
    --pst-green-bg: rgba(76, 175, 80, 0.105);

    --pst-blue-soft: rgba(16, 31, 105, 0.56);
    --pst-separator: rgba(16, 31, 105, 0.12);
    --pst-bg: transparent;
    --pst-white: #ffffff;

    width: 100%;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ======================================================
   HEADER BLOCK
   ====================================================== */

.player-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.player-session-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-session-title {
    font-size: 17px;
    font-weight: 950;
    color: var(--pst-blue);
    line-height: 1.1;
}

.player-session-subtitle {
    font-size: 11px;
    font-weight: 650;
    color: rgba(16, 31, 105, 0.62);
}


/* ======================================================
   AG GRID BASE
   ====================================================== */

.player-session-grid {
    --ag-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ag-font-size: 11px;
    --ag-border-color: rgba(16, 31, 105, 0.08);
    --ag-row-border-color: rgba(16, 31, 105, 0.055);
    --ag-header-column-separator-display: none;
    --ag-row-hover-color: rgba(16, 31, 105, 0.045);
    --ag-selected-row-background-color: rgba(16, 31, 105, 0.05);
}

.player-session-grid .ag-root-wrapper {
    border-radius: 10px !important;
    border: 1px solid rgba(16, 31, 105, 0.11) !important;
    overflow: hidden !important;
    background: var(--pst-white) !important;
}

.player-session-grid {
    --ag-header-background-color: rgba(16, 31, 105, 0.035);
}

.player-session-grid .ag-header {
    background: var(--ag-header-background-color) !important;
    border-bottom: 1px solid rgba(16, 31, 105, 0.14) !important;
}

.player-session-grid .ag-header-cell,
.player-session-grid .ag-header-group-cell {
    background: transparent !important;
}

.player-session-grid .ag-header-cell,
.player-session-grid .ag-header-group-cell {
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-right: none !important;
}

.player-session-grid .ag-header-cell-label,
.player-session-grid .ag-header-group-cell-label {
    justify-content: center !important;
    color: var(--pst-blue) !important;
    font-weight: 950 !important;
    font-size: 10.5px !important;
}

.player-session-grid .ag-header-cell-text,
.player-session-grid .ag-header-group-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.player-session-grid .ag-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    color: var(--pst-blue) !important;
    border-right: none !important;
    line-height: 1.05 !important;
    overflow: hidden !important;
}

.player-session-grid .ag-row-even {
    background: var(--pst-white) !important;
}

.player-session-grid .ag-row-odd {
    background: rgba(16, 31, 105, 0.012) !important;
}

.player-session-grid .ag-row-hover {
    background: rgba(16, 31, 105, 0.045) !important;
}


/* ======================================================
   PINNED LEFT — SINGLE CLEAN SEPARATOR
   ====================================================== */

.player-session-grid .ag-pinned-left-header,
.player-session-grid .ag-pinned-left-cols-container {
    border-right: 1px solid rgba(16, 31, 105, 0.14) !important;
    box-shadow: none !important;
}

.player-session-grid .ag-pinned-left-header::after,
.player-session-grid .ag-pinned-left-cols-container::after {
    content: none !important;
    display: none !important;
}

.player-session-grid .ag-pinned-left-cols-container .ag-cell {
    border-right: none !important;
    box-shadow: none !important;
}


/* ======================================================
   SEPARATORS
   ====================================================== */

.pst-header-start {
    box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.14) !important;
}

.pst-cell-start {
    box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.11) !important;
}

.player-session-grid .ag-center-cols-container .ag-cell:first-child,
.player-session-grid .ag-center-cols-container .pst-cell-start:first-child {
    box-shadow: none !important;
}


/* ======================================================
   TOOLTIP
   ====================================================== */

.player-session-grid .ag-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.pst-tooltip-card {
    min-width: 210px;
    max-width: 430px;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;

    background: var(--pst-white, #ffffff);
    border: 1px solid var(--pst-separator, rgba(16, 31, 105, 0.12));
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.10),
        0 12px 28px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}

.pst-tooltip-title {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7076AC;
    margin-bottom: 0.35rem;
}

.pst-tooltip-line {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--pst-blue, #101F69);
    white-space: pre-line;
}

.pst-tooltip-section {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(16, 31, 105, 0.08);
}

.pst-tooltip-section-title {
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    color: #7076AC;
    margin-bottom: 0.2rem;
}


/* ======================================================
   GENERIC CELLS
   ====================================================== */

.pst-empty {
    color: rgba(85, 85, 85, 0.34);
    font-size: 12px;
    font-weight: 850;
}

.pst-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    width: 100%;
}

.pst-main {
    font-size: 12px;
    font-weight: 950;
    color: var(--pst-blue);
    white-space: nowrap;
}

.pst-sub {
    font-size: 9px;
    font-weight: 800;
    color: var(--pst-blue-soft);
    white-space: nowrap;
}


/* ======================================================
   PLAYER CELL
   ====================================================== */

.player-session-grid .ag-cell.pst-player-pinned-cell {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.pst-player-cell {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    overflow: hidden;
}

.pst-player-photo,
.pst-player-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 999px;
    object-fit: cover;
}

.pst-player-avatar {
    background: var(--pst-blue-bg, rgba(16, 31, 105, 0.075));
    color: var(--pst-blue, #101F69);
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.pst-player-name {
    min-width: 0;
    flex: 1 1 auto;
    display: block;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 950;
    color: var(--pst-blue, #101F69);
}


/* ======================================================
   RPE
   ====================================================== */

.pst-rpe-pill {
    min-width: 42px;
    height: 22px;
    padding: 0 0.48rem;
    border-radius: 999px;

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

    font-size: 13px;
    font-weight: 950;
    line-height: 1;

    border: none !important;
    box-shadow: none !important;
}

.pst-rpe-green {
    color: var(--pst-green);
    background: var(--pst-green-bg);
}

.pst-rpe-yellow {
    color: var(--pst-blue-soft);
    background: var(--pst-yellow-bg);
}

.pst-rpe-orange {
    color: var(--pst-orange);
    background: var(--pst-orange-bg);
}

.pst-rpe-red {
    color: var(--pst-red);
    background: var(--pst-red-bg);
}


/* ======================================================
   INDEX — SESSION + CONTEXTE
   ====================================================== */

.pst-idx-wrap {
    width: 100%;
    min-height: 38px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.pst-idx-pill {
    min-width: 56px;
    height: 20px;
    padding: 0 0.50rem;
    border-radius: 999px;

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

    font-size: 12px;
    font-weight: 950;
    line-height: 1;

    border: none !important;
    box-shadow: none !important;
}

.pst-idx-meta {
    margin-top: 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font-size: 8.8px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.pst-idx-percentile {
    color: rgba(16, 31, 105, 0.70);
    font-weight: 950;
}

.pst-idx-separator {
    color: rgba(16, 31, 105, 0.36);
    font-weight: 850;
}

.pst-idx-n {
    color: rgba(16, 31, 105, 0.48);
    font-weight: 850;
}

.pst-idx-normal {
    color: var(--pst-blue);
    background: var(--pst-blue-bg);
}

.pst-idx-low {
    color: var(--pst-green);
    background: var(--pst-green-bg);
}

.pst-idx-mid {
    color: var(--pst-orange);
    background: var(--pst-orange-bg);
}

.pst-idx-high {
    color: var(--pst-red);
    background: var(--pst-red-bg);
}


/* ======================================================
   RAW IMU VALUES — VM / p50
   ====================================================== */

.pst-raw-metric {
    font-size: 11px;
    font-weight: 850;
    color: var(--pst-blue-soft);
    white-space: nowrap;
}


/* ======================================================
   MDS
   ====================================================== */

.pst-mds-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}

.pst-mds-main {
    font-size: 11.5px;
    font-weight: 950;
    color: var(--pst-blue);
}

/* ======================================================
   AMS BRIEF SUMMARY — QUESTIONNAIRES / CAPTEURS
   Préfixe : ams-brief-
   ====================================================== */

.ams-brief-wrapper {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  --ams-brief-blue: #101F69;
  --ams-brief-blue-light: #7076AC;
  --ams-brief-blue-muted: rgba(16, 31, 105, 0.36);
  --ams-brief-red: #EF4D53;
  --ams-brief-border: rgba(16, 31, 105, 0.105);
  --ams-brief-border-soft: rgba(16, 31, 105, 0.065);
  --ams-brief-bg-soft: rgba(16, 31, 105, 0.022);
}

/* Corps général */
.ams-brief-body {
  width: 100%;

  display: flex;
  flex-direction: column;

  border-top: 1px solid var(--ams-brief-border-soft);
  border-bottom: 1px solid var(--ams-brief-border-soft);
}

/* Ligne éditoriale */
.ams-brief-row {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: stretch;

  border-bottom: 1px solid var(--ams-brief-border-soft);
}

.ams-brief-row:last-child {
  border-bottom: none;
}

/* Label gauche : Badminton / Physique */
.ams-brief-row-label {
  flex: 0 0 90px;
  min-width: 90px;

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

  padding: 0.55rem 0.55rem 0.55rem 0.70rem;

  color: var(--ams-brief-blue);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.015em;

  border-right: 1px solid var(--ams-brief-border-soft);
  position: relative;
}

.ams-brief-row-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;

  width: 3px;
  border-radius: 999px;
  background: rgba(16, 31, 105, 0.28);
}

.ams-brief-row-badminton .ams-brief-row-label::before {
  background: var(--ams-brief-blue-light);
}

.ams-brief-row-physique .ams-brief-row-label::before {
  background: var(--ams-brief-red);
}

/* Capteurs : aucune colonne label */
.ams-brief-row-no-label .ams-brief-metric-grid {
  flex: 1 1 100%;
}

/* Grille de métriques */
.ams-brief-metric-grid {
  flex: 1 1 auto;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cellule métrique : plus de mini-card */
.ams-brief-metric {
  min-width: 0;
  min-height: 66px;

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

  padding: 0.65rem;
  border-right: 1px solid var(--ams-brief-border-soft);
  background: transparent;
  box-sizing: border-box;
}

.ams-brief-metric:last-child {
  border-right: none;
}

/* Subtil fond alterné sur les lignes vides ou faibles */
.ams-brief-row:nth-child(even) .ams-brief-metric,
.ams-brief-row:nth-child(even) .ams-brief-row-label {
  background: var(--ams-brief-bg-soft);
}

/* Label métrique */
.ams-brief-metric-label {
  margin-bottom: 0.7rem;

  color: var(--ams-brief-blue-light);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.045em;

  text-align: center;
  white-space: nowrap;
}

/* Valeur principale */
.ams-brief-metric-value {
  color: #ef4d53;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;

  text-align: center;
  white-space: nowrap;
}

/* Range */
.ams-brief-metric-range {
  margin-top: 0.3rem;

  color: var(--ams-brief-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  text-align: center;
  white-space: nowrap;
}

/* Etat vide */
.ams-brief-metric-empty .ams-brief-metric-value {
  color: var(--ams-brief-blue-muted);
  font-size: 22px;
  font-weight: 950;
}

.ams-brief-metric-empty .ams-brief-metric-range {
  display: none;
}

/* Footer discret */
.ams-brief-footer {
  align-self: flex-end;

  padding-top: 0.15rem;
  padding-right: 0.1rem;

  color: var(--ams-brief-blue-light);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;

  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .ams-brief-row {
    flex-direction: column;
  }

  .ams-brief-row-label {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;

    border-right: none;
    border-bottom: 1px solid var(--ams-brief-border-soft);

    padding: 1rem 0.5rem;
  }

  .ams-brief-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ams-brief-metric-grid {
    grid-template-columns: 1fr;
  }

  .ams-brief-metric {
    border-right: none;
    border-bottom: 1px solid var(--ams-brief-border-soft);
  }

  .ams-brief-metric:last-child {
    border-bottom: none;
  }
}

.ams-brief-footer-detail {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.ams-brief-footer-main {
  color: var(--ams-brief-blue-light);
  font-weight: 900;
}

.ams-brief-footer-separator {
  color: rgba(16, 31, 105, 0.32);
  font-weight: 900;
}

.ams-brief-footer-sub {
  color: rgba(16, 31, 105, 0.48);
  font-weight: 850;
}

.ag-tooltip,
.ag-theme-alpine .ag-tooltip,
.ag-popup,
.ag-popup-child {
    overflow: visible !important;
    z-index: 999999 !important;
}

.pst-tooltip-card,
.cl-tooltip-card {
    position: relative !important;
    z-index: 999999 !important;
}


#feedback-session-filters-wrapper-monitoring-ams {
    padding-bottom: 0rem !important;
}

#feedback-session-content-wrapper-monitoring-ams.feedback-session-content-hidden {
    display: none !important;
}

#feedback-session-content-wrapper-monitoring-ams.feedback-session-content-visible {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}