/* ======================================================
   MATCH REPORT — CL VARIABLES SCOPE
   Nécessaire car la grille n'est pas dans .collective-load-wrapper
   ====================================================== */

.collective-load-grid.match-report-physical-recap-grid {
    --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;
}

/* ======================================================
   AMS MATCH REPORT — MODULE SCOPE / DESIGN TOKENS
   ====================================================== */

#layout-wrapper-match-report-ams {
  --mr-blue: var(--ffbad-blue, #101F69);
  --mr-blue-light: var(--ffbad-blue-light, #7076AC);
  --mr-red: var(--ffbad-red, #D52B1E);
  --mr-red-light: var(--ffbad-red-light, #EF4D53);
  --mr-grey: var(--ffbad-grey, #555555);
  --mr-white: var(--ffbad-white, #ffffff);
  --mr-bg-light: var(--ffbad-bg-light, #f1f0f1);

  --mr-green: #4CAF50;
  --mr-orange: #F39C12;
  --mr-yellow: #F1C40F;

  --mr-border: rgba(16, 31, 105, 0.10);
  --mr-border-soft: rgba(16, 31, 105, 0.065);

  --mr-blue-bg: rgba(16, 31, 105, 0.055);
  --mr-blue-bg-soft: rgba(16, 31, 105, 0.030);
  --mr-red-bg: rgba(213, 43, 30, 0.060);
  --mr-green-bg: rgba(76, 175, 80, 0.105);
  --mr-yellow-bg: rgba(241, 196, 15, 0.18);
  --mr-orange-bg: rgba(243, 156, 18, 0.105);

  --mr-radius-card: 12px;
  --mr-radius-soft: 9px;
  --mr-radius-pill: 999px;

  --mr-shadow-soft:
    0 6px 14px rgba(16, 31, 105, 0.050),
    0 2px 5px rgba(16, 31, 105, 0.025);

  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* ======================================================
   AMS MATCH REPORT — PAGE / CONTENT SPACING
   ====================================================== */

#content-wrapper-match-report-ams {
  width: 100% !important;
  min-width: 0 !important;
}

.ams-match-report-tab-content-inner {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 90px !important;

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

  box-sizing: border-box !important;
}

.ams-match-report-tab-content-inner > div:empty {
  display: none !important;
}


/* ======================================================
   AMS MATCH REPORT — TABS
   Navigation segmentée, sobre mais clairement cliquable
   ====================================================== */

.ams-match-report-tabs {
  width: 100% !important;
  margin-bottom: 0.95rem !important;

  padding: 0.24rem !important;

  border-radius: 12px !important;
  border: 1px solid rgba(16, 31, 105, 0.085) !important;

  background: #F8F9FA !important;

  box-sizing: border-box !important;

  gap: 0.5rem 2rem !important;
}

.ams-match-report-tabs .nav-tabs {
  width: 100% !important;
  min-width: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.22rem !important;

  border-bottom: none !important;
}

.ams-match-report-tabs .nav-item {
  min-width: 0 !important;
  margin-bottom: 0 !important;
}

.ams-match-report-tabs .nav-link {
  position: relative !important;

  width: 100% !important;
  min-height: 38px !important;

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

  padding: 0.56rem 0.82rem !important;

  border: 1px solid transparent !important;
  border-radius: 9px !important;

  background: transparent !important;
  color: var(--mr-blue-light, #7076AC) !important;

  font-size: 0.74rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;

  box-shadow: none !important;

  cursor: pointer !important;

  transition:
    color 0.14s ease,
    background-color 0.14s ease,
    border-color 0.14s ease;
}

/* Petite marque discrète sous le texte */
.ams-match-report-tabs .nav-link::after {
  content: "" !important;

  position: absolute !important;
  left: 50% !important;
  bottom: 0.36rem !important;

  width: 18px !important;
  height: 2px !important;

  border-radius: 999px !important;

  background: transparent !important;

  transform: translateX(-50%) !important;

  transition:
    background-color 0.14s ease,
    width 0.14s ease;
}

/* Hover : le clic devient évident */
.ams-match-report-tabs .nav-link:hover {
  color: var(--mr-blue, #101F69) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: rgba(16, 31, 105, 0.075) !important;
}

.ams-match-report-tabs .nav-link:hover::after {
  background: rgba(16, 31, 105, 0.24) !important;
}

/* Onglet actif : clair, sobre, lisible */
.ams-match-report-tabs .nav-link.active {
  color: var(--mr-blue, #101F69) !important;
  background: #ffffff !important;
  border: 1px solid #7076ac5e !important;
  font-weight: 950;

  box-shadow:
    0 3px 8px rgba(16, 31, 105, 0.045) !important;
}

.ams-match-report-tabs .nav-link.active::after {
  width: 28px !important;
  background: var(--mr-red, #D52B1E) !important;
}

/* Focus clavier propre */
.ams-match-report-tabs .nav-link:focus,
.ams-match-report-tabs .nav-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.ams-match-report-tabs .nav-link:focus-visible {
  background: #ffffff !important;
  border-color: rgba(16, 31, 105, 0.18) !important;
}

/* Contenu sous les tabs */
.ams-match-report-tab-content {
  padding-top: 0.42rem;
}

.ams-match-report-content-placeholder.has-context-header {
  min-height: 520px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.6rem;
}

.ams-match-report-content-placeholder.is-empty-report {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ams-match-report-content-body-placeholder {
  flex: 1 1 auto;
  min-height: 260px;

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

  border-radius: 12px;
  border: 1px dashed rgba(16, 31, 105, 0.10);

  background: rgba(16, 31, 105, 0.018);

  box-sizing: border-box;
}


/* ======================================================
   AMS MATCH REPORT — GLOBAL FEEDBACK
   Feedback visible après sauvegarde / scraping.
   ====================================================== */

.ams-match-report-feedback-global {
  width: 100%;

  margin: 0;
  padding: 0.62rem 0.78rem;

  border-radius: 10px;

  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.32;

  box-sizing: border-box;
}

.ams-match-report-feedback {
  margin-top: 0.70rem;
  margin-bottom: 0;

  border-radius: 9px;

  font-size: 0.70rem;
  font-weight: 760;
  line-height: 1.32;
}

.ams-match-report-feedback:empty {
  display: none;
}


/* ======================================================
   AMS MATCH REPORT — BUSINESS VISIBILITY
   Visible si incomplet, repliable si déjà prêt.
   ====================================================== */

.ams-match-report-business-stack {
  width: 100%;
  min-width: 0;

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

  box-sizing: border-box;
}

.ams-match-report-business-disclosure {
  width: 100%;
  min-width: 0;

  margin-top: 0.1rem;

  box-sizing: border-box;
}

.ams-match-report-business-disclosure > summary {
  list-style: none;
}

.ams-match-report-business-disclosure > summary::-webkit-details-marker {
  display: none;
}

.ams-match-report-business-summary {
  width: 100%;
  min-height: 42px;

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

  padding: 0.62rem 0.78rem;

  border-radius: 10px;
  border: 1px solid rgba(16, 31, 105, 0.085);

  background: rgba(16, 31, 105, 0.030);

  cursor: pointer;
  user-select: none;

  box-sizing: border-box;

  transition:
    background-color 0.14s ease,
    border-color 0.14s ease;
}

.ams-match-report-business-summary:hover {
  background: rgba(16, 31, 105, 0.048);
  border-color: rgba(16, 31, 105, 0.13);
}

.ams-match-report-business-summary:focus,
.ams-match-report-business-summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 31, 105, 0.09);
}

.ams-match-report-business-summary:focus:not(:focus-visible) {
  box-shadow: none;
}

.ams-match-report-business-summary-main {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ams-match-report-business-summary-title {
  color: var(--mr-blue);

  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.05;
}

.ams-match-report-business-summary-subtitle {
  color: var(--mr-blue-light);

  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.25;
}

.ams-match-report-business-summary-action {
  flex: 0 0 auto;

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

  min-height: 24px;
  padding: 0.36rem 0.68rem;

  border-radius: var(--mr-radius-pill);

  background: rgba(16, 31, 105, 0.070);
  color: var(--mr-blue);

  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.ams-match-report-business-summary-action::after {
  content: " ▾";
  font-weight: 950;
}

.ams-match-report-business-disclosure[open] .ams-match-report-business-summary-action::after {
  content: " ▴";
}

.ams-match-report-business-disclosure-body {
  width: 100%;
  min-width: 0;

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

  margin-top: 0.75rem;

  box-sizing: border-box;
}


/* ======================================================
   AMS MATCH REPORT — BUSINESS SECTIONS
   Sections métier minimalistes.
   ====================================================== */

.ams-match-report-section {
  width: 100%;
  min-width: 0;

  padding: 0.84rem 0.92rem;

  border-radius: var(--mr-radius-card);
  border: 1px solid rgba(16, 31, 105, 0.085);

  background: #ffffff;

  box-shadow: none;

  box-sizing: border-box;
}

.ams-match-report-edit-section {
  border-left: 1px solid rgba(16, 31, 105, 0.085);
}

.ams-match-report-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.20rem;

  margin-bottom: 0.65rem;
}

.ams-match-report-section-kicker {
  color: var(--mr-blue-light);

  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.050em;
  text-transform: uppercase;
}

.ams-match-report-section-title {
  color: var(--mr-blue);

  font-size: 14px;
  font-weight: 920;
  line-height: 1.14;
}


/* ======================================================
   AMS MATCH REPORT — STATUS STRIP
   Synthèse compacte des informations disponibles.
   ====================================================== */

.ams-match-report-status-strip {
  width: 100%;
  min-width: 0;

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

  margin-bottom: 0.65rem;

  box-sizing: border-box;
}

.ams-match-report-status-item {
  min-width: 0;
  min-height: 52px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.24rem;

  padding: 0.52rem 0.62rem;

  border-radius: 10px;
  border: 1px solid rgba(16, 31, 105, 0.065);

  background: rgba(16, 31, 105, 0.024);

  box-sizing: border-box;
}

.ams-match-report-status-item-ready {
  background: rgba(76, 175, 80, 0.075);
  border-color: rgba(76, 175, 80, 0.12);
}

.ams-match-report-status-item-pending {
  background: rgba(241, 196, 15, 0.12);
  border-color: rgba(241, 196, 15, 0.16);
}

.ams-match-report-status-item-neutral {
  background: rgba(16, 31, 105, 0.024);
  border-color: rgba(16, 31, 105, 0.065);
}

.ams-match-report-status-label {
  color: var(--mr-blue-light);

  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;

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

.ams-match-report-status-value {
  color: var(--mr-blue);

  font-size: 0.72rem;
  font-weight: 880;
  line-height: 1.08;

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


/* ======================================================
   AMS MATCH REPORT — NEXT STEP / HELP TEXT
   Texte simple indiquant l'action attendue.
   ====================================================== */

.ams-match-report-next-step {
  width: 100%;

  margin: 0.35rem 0 0.2rem 0;
  padding: 0.58rem 0.66rem;

  border-radius: 10px;

  background: rgba(16, 31, 105, 0.026);
  color: rgba(16, 31, 105, 0.72);

  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.32;

  box-sizing: border-box;
}

.ams-match-report-form-note {
  margin-top: 0.10rem;

  color: rgba(16, 31, 105, 0.54);

  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
}


/* ======================================================
   AMS MATCH REPORT — METADATA / URL LINKS
   ====================================================== */

.ams-match-report-metadata-url-box {
  width: 100%;

  margin: 0.62rem 0 0.78rem 0;
  padding: 0.66rem 0.74rem;

  border-radius: 10px;
  border: 1px solid rgba(16, 31, 105, 0.075);

  background: rgba(16, 31, 105, 0.026);

  box-sizing: border-box;
}

.ams-match-report-metadata-url-kicker {
  margin-bottom: 0.30rem;

  color: var(--mr-blue-light);

  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ams-match-report-metadata-url-content {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.ams-match-report-metadata-url-link {
  width: fit-content;

  color: var(--mr-red);

  font-size: 0.70rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}

.ams-match-report-metadata-url-link:hover {
  color: var(--mr-red-light);
  text-decoration: underline;
}

.ams-match-report-metadata-url-text {
  color: rgba(16, 31, 105, 0.58);

  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.28;

  word-break: break-word;
  overflow-wrap: anywhere;
}


/* ======================================================
   AMS MATCH REPORT — FORMS
   Inputs, dropdowns, actions.
   ====================================================== */

.ams-match-report-edit-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.78rem;

  margin-top: 0.78rem;

  box-sizing: border-box;
}

.ams-match-report-edit-row-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
}

.ams-match-report-edit-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

.ams-match-report-edit-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;

  min-width: 0;
}

.ams-match-report-save-row {
  justify-content: flex-start;
  margin-top: 0.78rem;
}

.ams-match-report-url-input {
  width: 100%;
  min-height: 38px;

  padding: 0.44rem 0.70rem;

  border-radius: 8px;
  border: 1px solid rgba(16, 31, 105, 0.13);

  background: #ffffff;
  color: var(--mr-blue);

  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.2;

  outline: none;

  box-sizing: border-box;

  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.ams-match-report-url-input::placeholder {
  color: rgba(16, 31, 105, 0.38);
}

.ams-match-report-url-input:focus {
  border-color: rgba(16, 31, 105, 0.30);
  box-shadow: 0 0 0 3px rgba(16, 31, 105, 0.065);
}


/* ======================================================
   AMS MATCH REPORT — BUTTONS
   ====================================================== */

.ams-match-report-primary-button,
.ams-match-report-secondary-button {
  min-height: 38px;

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

  padding: 0 0.82rem !important;

  border-radius: var(--mr-radius-pill) !important;

  font-size: 0.66rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap;

  box-shadow: none !important;

  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}

.ams-match-report-primary-button {
  border-color: var(--mr-red) !important;
  background: var(--mr-red) !important;
  color: var(--mr-white) !important;
}

.ams-match-report-primary-button:hover {
  border-color: var(--mr-red-light) !important;
  background: var(--mr-red-light) !important;
  color: var(--mr-white) !important;
}

.ams-match-report-secondary-button {
  border-color: rgba(16, 31, 105, 0.18) !important;
  background: rgba(16, 31, 105, 0.032) !important;
  color: var(--mr-blue) !important;
}

.ams-match-report-secondary-button:hover {
  border-color: rgba(16, 31, 105, 0.34) !important;
  background: rgba(16, 31, 105, 0.065) !important;
  color: var(--mr-blue) !important;
}

.ams-match-report-primary-button:active,
.ams-match-report-secondary-button:active {
  transform: none !important;
}

.ams-match-report-primary-button:focus,
.ams-match-report-primary-button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.14) !important;
}

.ams-match-report-secondary-button:focus,
.ams-match-report-secondary-button:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 31, 105, 0.095) !important;
}

.ams-match-report-primary-button:disabled,
.ams-match-report-secondary-button:disabled {
  opacity: 0.46 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}


/* ======================================================
   AMS MATCH REPORT — SCRAPING META
   Ligne compacte après récupération des infos match.
   ====================================================== */

#descriptive-match-setup-editor-match-report-ams:empty {
  display: none;
}

.ams-match-report-scrape-meta {
  width: 100%;

  padding: 0.54rem 0.62rem;
  margin-bottom: 0.60rem;

  border-radius: 10px;

  background: rgba(16, 31, 105, 0.026);
  color: rgba(16, 31, 105, 0.70);

  font-size: 0.66rem;
  font-weight: 740;
  line-height: 1.28;

  overflow-wrap: anywhere;

  box-sizing: border-box;
}


/* ======================================================
   AMS MATCH REPORT — SERVER / RECEIVER SETS
   ====================================================== */

.ams-match-report-server-receiver-wrapper {
  width: 100%;

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

  margin-top: 0.78rem;

  box-sizing: border-box;
}

.ams-match-report-server-set-row {
  width: 100%;

  padding: 0.70rem 0.76rem;

  border-radius: 10px;
  border: 1px solid rgba(16, 31, 105, 0.075);

  background: rgba(16, 31, 105, 0.018);

  box-shadow: none;

  box-sizing: border-box;
}

.ams-match-report-server-set-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 20px;
  padding: 0.32rem 0.58rem;
  margin-bottom: 0.58rem;

  border-radius: var(--mr-radius-pill);

  background: rgba(16, 31, 105, 0.060);
  color: var(--mr-blue);

  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ams-match-report-server-set-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.70rem;

  width: 100%;
  min-width: 0;
}


/* ======================================================
   AMS MATCH REPORT — CARD UPDATED COMPATIBILITY
   ====================================================== */

#match-report-tabs-card-ams-content,
#pre-match-tab-content-match-report-ams,
#descriptive-info-tab-content-match-report-ams,
#physical-key-indicators-tab-content-match-report-ams {
  width: 100%;
  min-width: 0;
}

#match-report-tabs-card-ams .card-body,
#match-report-tabs-card-ams-content {
  overflow: visible;
}


/* ======================================================
   AMS MATCH REPORT — RESPONSIVE
   ====================================================== */

@media (max-width: 980px) {
  .ams-match-report-edit-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ams-match-report-edit-action {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ams-match-report-secondary-button {
    margin-left: 0 !important;
  }

  .ams-match-report-server-set-fields {
    grid-template-columns: 1fr;
  }

  .ams-match-report-status-strip {
    grid-template-columns: 1fr;
  }

  .ams-match-report-content-placeholder {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
   .ams-match-report-tabs {
        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
    }

    .ams-match-report-tabs::-webkit-scrollbar {
        display: none;
    }


    .ams-match-report-tabs .nav-link {
        min-height: 36px;
        padding: 0.54rem 0.78rem 0.58rem;

        font-size: 0.70rem;
        white-space: nowrap;
    }

    .ams-match-report-tabs .nav-link::after {
        left: 0.62rem;
        right: 0.62rem;
    }

  .ams-match-report-section {
    padding: 0.74rem 0.78rem;
  }

  .ams-match-report-content-placeholder {
    min-height: 340px;
    border-radius: 14px;
  }

  .ams-match-report-content-placeholder-inner {
    font-size: 0.66rem;
    letter-spacing: 0.050em;
  }

  .ams-match-report-business-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .ams-match-report-business-summary-action {
    align-self: flex-start;
  }

  .ams-match-report-primary-button,
  .ams-match-report-secondary-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .ams-match-report-tab-content-inner {
    gap: 0.75rem;
  }

  .ams-match-report-section-title {
    font-size: 0.78rem;
  }

  .ams-match-report-next-step,
  .ams-match-report-association-title {
    font-size: 0.70rem;
  }

  .ams-match-report-edit-action {
    width: 100%;
  }
}

/* ======================================================
   AMS MATCH REPORT — REPORT HEADER
   Compact, utile, flex, sans logo inutile.
   ====================================================== */

.ams-match-report-header {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  border-radius: 12px;
  border: 1px solid rgba(16, 31, 105, 0.13);

  background: #ffffff;

  overflow: hidden;

  box-sizing: border-box;
}

.ams-match-report-header-primary {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.95rem;

  padding: 0.78rem 0.95rem;

  box-sizing: border-box;
}

.ams-match-report-header-athlete {
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 360px;

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

  padding-left: 0.65rem;
  border-left: 3px solid var(--mr-red);
  border-radius: 2px;


  box-sizing: border-box;
}

.ams-match-report-header-label {
  margin-bottom: 0.18rem;

  color: var(--mr-blue-light);

  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ams-match-report-header-player {
  min-width: 0;

  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.34rem;
  row-gap: 0.04rem;

  color: var(--mr-blue);

  line-height: 1.03;
}

.ams-match-report-header-player-last {
  font-size: 20px;
  font-weight: 950;
  text-transform: uppercase;
}

.ams-match-report-header-player-first {
  font-size: 18px;
  font-weight: 850;
}

.ams-match-report-header-pair {
  max-width: 100%;

  margin-top: 0.20rem;

  color: var(--mr-blue-light);

  font-size: 11px;
  font-weight: 720;
  line-height: 1.18;

  overflow-wrap: anywhere;
}

.ams-match-report-header-fixture {
  flex: 2.5 1 460px;
  min-width: 260px;

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

  text-align: center;

  box-sizing: border-box;
}

.ams-match-report-header-versus {
  min-width: 0;

  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.42rem;

  color: var(--mr-blue);

  line-height: 1.05;
}

.ams-match-report-header-versus.is-missing {
  color: rgba(16, 31, 105, 0.42);

  font-size: 0.72rem;
  font-weight: 720;
}

.ams-match-report-header-vs {
  color: var(--mr-blue-light);

  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.ams-match-report-header-opponent {
  max-width: 100%;

  color: var(--mr-red-light);

  font-size: 16px;
  font-weight: 930;
  line-height: 1.08;

  overflow-wrap: anywhere;
}

.ams-match-report-header-meta-side {
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 360px;

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

  box-sizing: border-box;
}

.ams-match-report-header-meta {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.30rem;
}

.ams-match-report-header-meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 22px;
  padding: 0.25rem 0.50rem;

  border-radius: 999px;
  border: 1px solid rgba(16, 31, 105, 0.09);

  background: rgba(16, 31, 105, 0.026);
  color: rgba(16, 31, 105, 0.74);

  font-size: 0.60rem;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;
}

.ams-match-report-header-meta-item.is-event {
  background: rgba(213, 43, 30, 0.055);
  border-color: rgba(213, 43, 30, 0.10);
  color: var(--mr-red);

  font-weight: 900;
}

.ams-match-report-header-meta-item.is-round {
  color: var(--mr-blue);

  font-weight: 920;
}

.ams-match-report-header-meta-item.is-date {
  color: rgba(16, 31, 105, 0.68);

  font-style: italic;
  font-weight: 700;
}

.ams-match-report-header-context {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.55rem;
  row-gap: 0.24rem;

  padding: 0.48rem 0.85rem;

  border-top: 1px solid rgba(16, 31, 105, 0.075);

  background: #F8F9FA !important;

  box-sizing: border-box;
}

.ams-match-report-header-context-main {
  color: rgba(16, 31, 105, 0.8);

  font-size: 12px;
  font-weight: 820;
  line-height: 1.15;

  overflow-wrap: anywhere;
}

.ams-match-report-header-context-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.30rem;

  color: var(--mr-blue-light);

  font-size: 11px;
  font-weight: 720;
  line-height: 1.1;

  white-space: nowrap;
}

.ams-match-report-header-context-category {
  color: var(--mr-blue-light);

  font-size: 11px;
  font-style: italic;
  font-weight: 680;
  line-height: 1.12;

  overflow-wrap: anywhere;
}

.ams-match-report-header-flag-img {
  width: 30.5px;
  height: 18px;

  padding: 1px;

  border-radius: 5px;
  border: 1px solid rgba(16, 31, 105, 0.10);

  background: #ffffff;

  object-fit: cover;

  box-sizing: border-box;
}

.ams-match-report-header-flag-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 16px;

  font-size: 0.82rem;
  line-height: 1;
}


/* Responsive */
@media (max-width: 1050px) {
  .ams-match-report-header-primary {
    flex-wrap: wrap;
  }

  .ams-match-report-header-athlete {
    order: 1;
  }

  .ams-match-report-header-meta-side {
    order: 2;
  }

  .ams-match-report-header-fixture {
    order: 3;
    flex: 1 1 100%;

    justify-content: center;

    padding-top: 0.12rem;
  }

  .ams-match-report-header-meta,
  .ams-match-report-header-meta-side {
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .ams-match-report-header-primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.70rem;

    padding: 0.76rem 0.76rem;
  }

  .ams-match-report-header-athlete,
  .ams-match-report-header-fixture,
  .ams-match-report-header-meta-side {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;

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

    text-align: left;
  }

  .ams-match-report-header-versus,
  .ams-match-report-header-meta {
    justify-content: flex-start;
  }

  .ams-match-report-header-context {
    justify-content: flex-start;

    padding: 0.50rem 0.76rem;
  }

  .ams-match-report-header-context-location {
    white-space: normal;
  }
}

/* ======================================================
   AMS MATCH REPORT — PRE MATCH REPORT
   ====================================================== */

.ams-pre-match-report {
  width: 100%;
  min-width: 0;

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

  box-sizing: border-box;
}

.ams-pre-match-section {
  width: 100%;
  min-width: 0;

  padding: 0rem;

  border-radius: 12px;
  border: none;

  background: white;

  box-sizing: border-box;
}

.ams-pre-match-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;

  padding: 0.52rem 0.68rem;
  margin-bottom: 0.95rem;

  text-align: center;

  border-radius: 12px !important;
  border: 1px solid rgba(213, 43, 30, 0.17) !important;

  background: rgba(213, 43, 30, 0.040) !important;

  box-sizing: border-box;
}

.ams-pre-match-section-title {
  color: var(--mr-blue);

  font-size: 14px;
  font-weight: 950;
  line-height: 1.12;
}

.ams-pre-match-section-subtitle {
  color: var(--mr-blue-light);

  font-size: 10px;
  font-weight: 720;
  line-height: 1.25;
}

.ams-pre-match-empty-block {
  width: 100%;

  padding: 0.9rem 1rem;

  border-radius: 10px;
  border: 1px dashed rgba(16, 31, 105, 0.14);

  background: rgba(16, 31, 105, 0.018);
  color: rgba(16, 31, 105, 0.58);

  font-size: 0.70rem;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;

  box-sizing: border-box;
}


/* ======================================================
   AMS MATCH REPORT — PRE MATCH H2H VISUAL
   ====================================================== */

.ams-pre-match-h2h-visual {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(230px, 320px) minmax(220px, 1fr);
  align-items: center;
  gap: 1rem;

  box-sizing: border-box;
}

.ams-pre-match-side-visual {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.48rem;

  box-sizing: border-box;
}

.ams-pre-match-avatar-stack {
  height: 48px;

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

  margin-bottom: -0.18rem;
}

.ams-pre-match-avatar {
  width: 46px;
  height: 46px;

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

  margin-left: -0.34rem;

  border-radius: 999px;
  border: 2px solid #ffffff;

  color: #ffffff;

  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;

  overflow: hidden;

  box-shadow: 0 3px 8px rgba(16, 31, 105, 0.14);

  box-sizing: border-box;
}

.ams-pre-match-avatar:first-child {
  margin-left: 0;
}

.ams-pre-match-avatar.is-analysed {
  background: var(--mr-blue);
}

.ams-pre-match-avatar.is-opponent {
  background: var(--mr-red);
}

.ams-pre-match-avatar.is-empty {
  background: rgba(16, 31, 105, 0.18);
}

.ams-pre-match-avatar.has-picture {
  padding: 0;

  background: #ffffff;
}

.ams-pre-match-avatar.has-picture.is-analysed {
  border-color: rgba(16, 31, 105, 0.5);
}

.ams-pre-match-avatar.has-picture.is-opponent {
  border-color: rgba(213, 43, 30, 0.55);
}

.ams-pre-match-avatar-img {
  width: 100%;
  height: 100%;

  display: block;

  border-radius: inherit;

  object-fit: cover;
  object-position: center center;
}

.ams-pre-match-team-pill {
  width: min(100%, 280px);
  min-height: 62px;

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

  padding: 0.64rem 0.88rem;

  border-radius: 999px;
  border: 1px solid rgba(16, 31, 105, 0.25);

  background: rgba(16, 31, 105, 0.09);

  text-align: center;

  box-shadow:
    0 4px 10px rgba(16, 31, 105, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);

  box-sizing: border-box;
}

.ams-pre-match-side-visual.is-opponent .ams-pre-match-team-pill {
  border-color: rgba(213, 43, 30, 0.25);
  background: rgba(213, 43, 30, 0.09);
}

.ams-pre-match-team-side-label {
  color: var(--mr-blue-light);

  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ams-pre-match-team-name {
  max-width: 100%;

  color: var(--mr-blue);

  font-size: 13px;
  font-weight: 920;
  line-height: 1.10;

  overflow-wrap: anywhere;
}

.ams-pre-match-country-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.ams-pre-match-country-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;

  color: var(--mr-blue-light);
  font-size: 0.58rem;
  font-weight: 820;
  line-height: 1;
}

.ams-pre-match-country-chip.is-empty {
  color: rgba(16, 31, 105, 0.40);
}

.ams-pre-match-country-flag-img {
  width: 30.5px;
  height: 18px;

  padding: 1px;

  border-radius: 5px;
  border: 1px solid rgba(16, 31, 105, 0.10);

  background: #ffffff;

  object-fit: cover;

  box-sizing: border-box;
}

.ams-pre-match-country-flag-text {
  font-size: 0.78rem;
  line-height: 1;
}

.ams-pre-match-country-code {
  line-height: 1;
}


/* ======================================================
   AMS MATCH REPORT — PRE MATCH DONUT
   ====================================================== */

.ams-pre-match-h2h-center {
  min-width: 0;

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

  box-sizing: border-box;
}

.ams-pre-match-h2h-score {
  min-width: 42px;

  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.ams-pre-match-h2h-score.is-analysed {
  color: var(--mr-blue);
}

.ams-pre-match-h2h-score.is-opponent {
  color: var(--mr-red);
}

.ams-pre-match-h2h-donut-wrapper {
  position: relative;

  width: 116px;
  height: 116px;

  flex: 0 0 auto;
}

.ams-pre-match-h2h-donut {
  position: relative;

  width: 116px;
  height: 116px;

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

  border-radius: 999px;

  box-sizing: border-box;
}

.ams-pre-match-h2h-donut::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 999px;
  border: 1px solid rgba(16, 31, 105, 0.08);

  pointer-events: none;
}

.ams-pre-match-h2h-donut-center {
  position: relative;
  z-index: 2;

  width: 72px;
  height: 72px;

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

  border-radius: 999px;

  background: #ffffff;

  text-align: center;

  box-shadow:
    inset 0 0 0 1px rgba(16, 31, 105, 0.08),
    0 2px 6px rgba(16, 31, 105, 0.06);

  box-sizing: border-box;
}

.ams-pre-match-h2h-donut-label {
  color: var(--mr-blue);

  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.ams-pre-match-h2h-donut-total {
  margin-top: 0.18rem;

  color: var(--mr-blue-light);

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.ams-pre-match-h2h-donut.is-empty .ams-pre-match-h2h-donut-label {
  color: var(--mr-blue-light);
}


/* ======================================================
   AMS MATCH REPORT — PRE MATCH COMPARISON
   ====================================================== */

.ams-pre-match-comparison {
  width: 100%;
  max-width: 780px;

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

  margin: 1.05rem auto 0 auto;

  box-sizing: border-box;
}

.ams-pre-match-comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;

  width: 100%;
  min-width: 0;
}

.ams-pre-match-comparison-label {
  min-height: 28px;

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

  padding: 0.3rem 0.6rem;

  border-radius: 999px;

  background: rgba(16, 31, 105, 0.040);
  color: var(--mr-blue-light);

  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.ams-pre-match-comparison-value {
  min-width: 0;

  color: var(--mr-blue);

  font-size: 12px;
  font-weight: 820;
  line-height: 1.18;

  overflow-wrap: anywhere;
}

.ams-pre-match-comparison-value.is-left {
  text-align: right;
}

.ams-pre-match-comparison-value.is-right {
  text-align: left;
}


/* ======================================================
   AMS MATCH REPORT — PRE MATCH FORM TOOLTIP
   ====================================================== */

.ams-pre-match-form-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.ams-pre-match-comparison-value.is-left .ams-pre-match-form-list {
  justify-content: flex-end;
}

.ams-pre-match-comparison-value.is-right .ams-pre-match-form-list {
  justify-content: flex-start;
}

.ams-pre-match-form-list.is-empty {
  color: rgba(16, 31, 105, 0.42);

  font-size: 0.68rem;
  font-weight: 760;
}

.ams-pre-match-form-badge {
  position: relative;

  width: 19px;
  height: 19px;

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

  border-radius: 999px;

  color: #ffffff;

  font-size: 0.54rem;
  font-weight: 950;
  line-height: 1;

  cursor: default;
}

.ams-pre-match-form-badge.is-win {
  background: var(--mr-green);
}

.ams-pre-match-form-badge.is-loss {
  background: var(--mr-red);
}

.ams-pre-match-form-badge.is-neutral {
  background: rgba(16, 31, 105, 0.25);
}

.ams-pre-match-form-badge-value {
  position: relative;
  z-index: 2;
}

.ams-pre-match-form-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 40;

  width: 250px;

  display: none;
  flex-direction: column;
  gap: 0.34rem;

  padding: 0.62rem 0.68rem;

  border-radius: 10px;
  border: 1px solid rgba(16, 31, 105, 0.13);

  background: #ffffff;
  color: var(--mr-blue);

  box-shadow:
    0 10px 24px rgba(16, 31, 105, 0.13),
    0 3px 8px rgba(16, 31, 105, 0.06);

  transform: translateX(-50%);

  box-sizing: border-box;
}

.ams-pre-match-form-tooltip::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 100%;

  width: 9px;
  height: 9px;

  background: #ffffff;
  border-right: 1px solid rgba(16, 31, 105, 0.13);
  border-bottom: 1px solid rgba(16, 31, 105, 0.13);

  transform: translate(-50%, -50%) rotate(45deg);
}

.ams-pre-match-form-badge:hover .ams-pre-match-form-tooltip {
  display: flex;
}

.ams-pre-match-form-tooltip-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.42rem;

  align-items: baseline;

  text-align: left;
}

.ams-pre-match-form-tooltip-label {
  color: var(--mr-blue-light);

  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ams-pre-match-form-tooltip-value {
  min-width: 0;

  color: var(--mr-blue);

  font-size: 0.62rem;
  font-weight: 760;
  line-height: 1.18;

  overflow-wrap: anywhere;
}

.ams-pre-match-form-tooltip-empty {
  color: rgba(16, 31, 105, 0.52);

  font-size: 0.62rem;
  font-weight: 760;
}


/* ======================================================
   AMS MATCH REPORT — PRE MATCH AG GRID
   ====================================================== */

.ams-pre-match-ag-grid {
  width: 100%;

  --ag-font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ag-font-size: 11px;
  --ag-header-height: 36px;
  --ag-row-height: 42px;

  --ag-border-color: rgba(16, 31, 105, 0.10);
  --ag-header-background-color: #F8F9FA;
  --ag-background-color: #ffffff;
  --ag-odd-row-background-color: rgba(16, 31, 105, 0.010);
  --ag-row-hover-color: transparent;
  --ag-selected-row-background-color: rgba(16, 31, 105, 0.055);
}

.ams-pre-match-ag-grid .ag-root-wrapper {
  border-radius: 12px;
  border: 1px solid rgba(16, 31, 105, 0.11);

  overflow: hidden;

  background: #ffffff;
}

.ams-pre-match-ag-grid .ag-header {
  border-bottom: 1px solid rgba(16, 31, 105, 0.10);
}

.ams-pre-match-ag-grid .ag-header-cell {
  padding-left: 8px;
  padding-right: 8px;
}

.ams-pre-match-ag-grid .ag-header-cell-label {
  justify-content: center;
}

.ams-pre-match-ag-grid .ag-header-cell-text {
  color: var(--mr-blue);

  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.015em;
}

.ams-pre-match-ag-grid .ag-cell {
  display: flex;
  align-items: center;

  padding-left: 8px;
  padding-right: 8px;

  border-right: 1px solid rgba(16, 31, 105, 0.035);
}

.ams-pre-match-ag-grid .ag-row {
  border-bottom: 1px solid rgba(16, 31, 105, 0.055);
}

.ams-pre-match-ag-grid .ag-row-hover {
  background-color: inherit !important;
}

.ams-pre-match-ag-grid .ag-cell:hover {
  background: transparent !important;
}

.ams-pre-match-ag-grid .ag-pinned-left-header,
.ams-pre-match-ag-grid .ag-pinned-left-cols-container {
  border-right: 1px solid rgba(16, 31, 105, 0.10);
}

.ams-pre-match-ag-cell {
  color: rgba(16, 31, 105, 0.78);

  font-size: 11px;
  font-weight: 720;
}


/* ROW RESULT BACKGROUND */

.ams-pre-match-ag-grid .ag-row.pm-h2h-row-win,
.ams-pre-match-ag-grid .ag-row.pm-h2h-row-win.ag-row-hover {
  background-color: rgba(76, 175, 80, 0.035) !important;
}

.ams-pre-match-ag-grid .ag-row.pm-h2h-row-loss,
.ams-pre-match-ag-grid .ag-row.pm-h2h-row-loss.ag-row-hover {
  background-color: rgba(213, 43, 30, 0.030) !important;
}


/* DATE + RESULT */

.pm-h2h-date-cell {
  width: fit-content;
  max-width: 100%;
  min-width: 0;

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

  min-height: 28px;
  padding: 0.18rem 0.5rem;

  border-radius: 999px;

  box-sizing: border-box;
}

.pm-h2h-date-cell.is-win {
  border: 1px solid rgba(76, 175, 80, 0.42);
  background: rgba(76, 175, 80, 0.16);
}

.pm-h2h-date-cell.is-loss {
  border: 1px solid rgba(213, 43, 30, 0.38);
  background: rgba(213, 43, 30, 0.13);
}

.pm-h2h-date-cell.is-neutral {
  border: 1px solid rgba(16, 31, 105, 0.14);
  background: rgba(16, 31, 105, 0.045);
}

.pm-h2h-result-icon {
  position: relative;

  width: 21px;
  height: 21px;

  flex: 0 0 21px;

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

  border-radius: 999px;

  overflow: hidden;

  box-sizing: border-box;
}

.pm-h2h-result-icon-img {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 13px;
  height: 13px;

  display: block;

  object-fit: contain;

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

.pm-h2h-result-icon.is-win {
  background: #4CAF50;
}

.pm-h2h-result-icon.is-loss {
  background: var(--mr-red);
}

.pm-h2h-result-icon.is-neutral {
  background: var(--mr-blue-light);
}

.pm-h2h-result-icon-fallback {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 13px;
  height: 13px;

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

  color: #ffffff;

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

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

.pm-h2h-date-value {
  color: var(--mr-blue);

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

  white-space: nowrap;
}


/* WINNER */

.pm-h2h-winner-pill {
  max-width: 100%;

  display: inline-block;

  color: var(--mr-blue);

  font-size: 11px;
  font-weight: 760;
  line-height: 1.15;

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

.pm-h2h-winner-pill.is-win,
.pm-h2h-winner-pill.is-loss,
.pm-h2h-winner-pill.is-neutral {
  border: none;
  background: transparent;
  color: var(--mr-blue);
}


/* CATEGORY / ROUND */

.pm-h2h-category-pill,
.pm-h2h-round-pill {
  width: 100%;
  max-width: 100%;

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

  min-height: 22px;
  padding: 0.28rem 0.48rem;

  border-radius: 7px;

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

  overflow: hidden;
  text-overflow: ellipsis;

  box-sizing: border-box;
}

/* Catégories — convention interne pastel */

.pm-h2h-category-major {
  border: 1px solid rgba(213, 43, 30, 0.28);
  background: rgba(213, 43, 30, 0.090);
  color: var(--mr-red);
}

.pm-h2h-category-high {
  border: 1px solid rgba(243, 156, 18, 0.34);
  background: rgba(243, 156, 18, 0.120);
  color: #9A5F00;
}

.pm-h2h-category-mid {
  border: 1px solid rgba(16, 31, 105, 0.18);
  background: rgba(16, 31, 105, 0.060);
  color: var(--mr-blue);
}

.pm-h2h-category-dev {
  border: 1px solid rgba(112, 118, 172, 0.26);
  background: rgba(112, 118, 172, 0.105);
  color: var(--mr-blue-light);
}

.pm-h2h-category-neutral,
.pm-h2h-category-pill:not(
  .pm-h2h-category-major,
  .pm-h2h-category-high,
  .pm-h2h-category-mid,
  .pm-h2h-category-dev
) {
  border: 1px solid rgba(16, 31, 105, 0.10);
  background: rgba(16, 31, 105, 0.035);
  color: var(--mr-blue-light);
}

/* Tours — convention interne pastel */

.pm-h2h-round-final {
  border: 1px solid rgba(213, 43, 30, 0.30);
  background: rgba(213, 43, 30, 0.095);
  color: var(--mr-red);
}

.pm-h2h-round-semi {
  border: 1px solid rgba(243, 156, 18, 0.34);
  background: rgba(243, 156, 18, 0.120);
  color: #9A5F00;
}

.pm-h2h-round-quarter {
  border: 1px solid rgba(241, 196, 15, 0.40);
  background: rgba(241, 196, 15, 0.180);
  color: #8A6500;
}

.pm-h2h-round-main {
  border: 1px solid rgba(16, 31, 105, 0.18);
  background: rgba(16, 31, 105, 0.060);
  color: var(--mr-blue);
}

.pm-h2h-round-early {
  border: 1px solid rgba(112, 118, 172, 0.24);
  background: rgba(112, 118, 172, 0.095);
  color: var(--mr-blue-light);
}

.pm-h2h-round-neutral,
.pm-h2h-round-pill:not(
  .pm-h2h-round-final,
  .pm-h2h-round-semi,
  .pm-h2h-round-quarter,
  .pm-h2h-round-main,
  .pm-h2h-round-early
) {
  border: 1px solid rgba(16, 31, 105, 0.10);
  background: rgba(16, 31, 105, 0.035);
  color: var(--mr-blue-light);
}


/* BASIC CELLS */

.pm-h2h-text-cell {
  width: 100%;
  min-width: 0;

  display: inline-block;

  color: var(--mr-blue);

  font-size: 11px;
  font-weight: 760;
  line-height: 1.15;

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

.pm-h2h-empty {
  width: 100%;

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

  color: rgba(16, 31, 105, 0.38);

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}


/* SCORE / DURATION */

.pm-h2h-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0.30rem 0.58rem;

  border-radius: 7px;
  border: 1px solid rgba(16, 31, 105, 0.11);

  background: #ffffff;
  color: var(--mr-blue);

  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pm-h2h-duration-cell {
  width: 100%;

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

  color: var(--mr-blue-light);

  font-size: 10.5px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}


/* TOOLTIP */

.pm-h2h-tooltip-card {
  max-width: 310px;

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

  padding: 0.62rem 0.70rem;

  border-radius: 10px;
  border: 1px solid rgba(16, 31, 105, 0.13);

  background: #ffffff;
  color: var(--mr-blue);

  box-shadow:
    0 10px 24px rgba(16, 31, 105, 0.13),
    0 3px 8px rgba(16, 31, 105, 0.06);

  box-sizing: border-box;
}

.pm-h2h-tooltip-title {
  padding-bottom: 0.34rem;
  margin-bottom: 0.10rem;

  border-bottom: 1px solid rgba(16, 31, 105, 0.08);

  color: var(--mr-blue);

  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
}

.pm-h2h-tooltip-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.44rem;

  align-items: baseline;
}

.pm-h2h-tooltip-label {
  color: var(--mr-blue-light);

  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.pm-h2h-tooltip-value {
  min-width: 0;

  color: var(--mr-blue);

  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.18;

  overflow-wrap: anywhere;
}

.pm-h2h-tooltip-full {
  display: block;
}

/* ======================================================
   AMS MATCH REPORT — PRE MATCH RATING
   ====================================================== */

.ams-pre-match-rating-section {
  overflow: hidden;
}

.ams-pre-match-rating-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem;

  margin-bottom: 0.82rem;

  color: rgba(16, 31, 105, 0.70);

  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.ams-pre-match-rating-muted {
  color: var(--mr-blue-light);
}

.ams-pre-match-rating-diff {
  color: var(--mr-blue);

  font-size: 13px;
  font-weight: 950;
}

.ams-pre-match-rating-diff.is-negative {
  color: var(--mr-red);
}

.ams-pre-match-probability-row {
  width: 100%;
  max-width: 820px;

  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(260px, 440px) minmax(120px, 1fr);
  align-items: center;
  gap: 0.72rem;

  margin: 0 auto;

  box-sizing: border-box;
}

.ams-pre-match-probability-name {
  min-width: 0;

  color: var(--mr-blue);

  font-size: 12px;
  font-weight: 850;
  line-height: 1.12;

  overflow-wrap: anywhere;
}

.ams-pre-match-probability-name.is-left {
  text-align: right;
}

.ams-pre-match-probability-name.is-right {
  text-align: left;
}

.ams-pre-match-probability-bar {
  min-width: 0;
  height: 34px;

  display: flex;
  align-items: stretch;
  gap: 0;

  border-radius: 8px;
  border: 1px solid rgba(16, 31, 105, 0.16);

  overflow: hidden;

  background: transparent;

  box-sizing: border-box;
}

.ams-pre-match-probability-fill {
  min-width: 0;

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

  color: #ffffff;

  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;

  overflow: hidden;

  box-sizing: border-box;
}

.ams-pre-match-probability-fill.is-analysed {
  background: var(--mr-blue);
}

.ams-pre-match-probability-fill.is-opponent {
  background: var(--mr-red);
}

.ams-pre-match-rating-details {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;

  margin-top: 0.65rem;

  color: var(--mr-blue-light);

  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
}


/* ======================================================
   AMS MATCH REPORT — PRE MATCH RESPONSIVE
   ====================================================== */

@media (max-width: 980px) {
  .ams-pre-match-h2h-visual {
    grid-template-columns: 1fr;
  }

  .ams-pre-match-h2h-center {
    order: -1;
  }

  .ams-pre-match-side-visual {
    width: 100%;
  }

  .ams-pre-match-team-pill {
    width: min(100%, 360px);
  }

  .ams-pre-match-comparison-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.28rem;

    padding: 0.45rem 0;

    border-bottom: 1px solid rgba(16, 31, 105, 0.06);
  }

  .ams-pre-match-comparison-label {
    order: -1;
    justify-self: center;
  }

  .ams-pre-match-comparison-value.is-left,
  .ams-pre-match-comparison-value.is-right {
    text-align: center;
  }

  .ams-pre-match-comparison-value.is-left .ams-pre-match-form-list,
  .ams-pre-match-comparison-value.is-right .ams-pre-match-form-list {
    justify-content: center;
  }

  .ams-pre-match-probability-row {
    grid-template-columns: 1fr;
  }

  .ams-pre-match-probability-name.is-left,
  .ams-pre-match-probability-name.is-right {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .ams-pre-match-section {
    padding: 0;
  }

  .ams-pre-match-h2h-center {
    gap: 0.48rem;
  }

  .ams-pre-match-h2h-score {
    min-width: 34px;

    font-size: 1.78rem;
  }

  .ams-pre-match-h2h-donut-wrapper,
    .ams-pre-match-h2h-donut {
    width: 96px;
    height: 96px;
    }

    .ams-pre-match-h2h-donut-center {
    width: 60px;
    height: 60px;
    }

  .ams-pre-match-form-tooltip {
    width: 230px;
  }

  .ams-pre-match-form-tooltip-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* ======================================================
   AMS MATCH REPORT — REPORT END SEPARATOR
   ====================================================== */

.ams-match-report-end-separator {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;

  margin: 0.1rem 0 -0.2rem 0;

  box-sizing: border-box;
}

.ams-match-report-end-separator-line {
  height: 1px;

  background: rgba(16, 31, 105, 0.12);
}

.ams-match-report-end-separator-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0.34rem 0.72rem;

  border-radius: 999px;
  border: 1px solid rgba(16, 31, 105, 0.10);

  background: #F8F9FA;
  color: var(--mr-blue-light);

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

/* ======================================================
   AMS MATCH REPORT — DESCRIPTIVE MATCH DESCRIPTION
   ====================================================== */

.ams-match-report-desc-report {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  box-sizing: border-box;
}

.ams-match-report-desc-source {
  margin-top: -0.20rem;
  margin-bottom: 0.70rem;

  color: rgba(16, 31, 105, 0.54);

  font-size: 0.62rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.25;
}

.ams-match-report-desc-grid {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(330px, 1.35fr) minmax(300px, 0.85fr);
  align-items: flex-start;
  gap: 1.25rem;

  box-sizing: border-box;
}


/* ======================================================
   MATCH DESCRIPTION — SCORE BLOCK
   ====================================================== */

.ams-match-report-desc-score-card {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  border-radius: 11px;
  border: 1px solid rgba(16, 31, 105, 0.10);

  background: #ffffff;

  overflow: hidden;

  box-shadow:
    0 4px 12px rgba(16, 31, 105, 0.045),
    0 1px 3px rgba(16, 31, 105, 0.025);

  box-sizing: border-box;
}

.ams-match-report-desc-score-date {
  width: 100%;

  padding: 0.54rem 0.72rem;

  background: rgba(16, 31, 105, 0.085);
  color: var(--mr-blue);

  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;

  box-sizing: border-box;
}

.ams-match-report-desc-team-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;

  padding: 0.64rem 0.76rem;

  background: #ffffff;

  box-sizing: border-box;
}

.ams-match-report-desc-team-row + .ams-match-report-desc-team-row {
  border-top: 1px solid rgba(16, 31, 105, 0.060);
}


.ams-match-report-desc-team-row.is-chosen .ams-match-report-desc-team-name {
  color: var(--mr-blue);
  font-weight: 950;
}

.ams-match-report-desc-team-name {
  min-width: 0;

  color: rgba(16, 31, 105, 0.82);

  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.18;

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

.ams-match-report-desc-team-scores {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.36rem;

  flex: 0 0 auto;
}

.ams-match-report-desc-score-set {
  min-width: 22px;

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

  color: rgba(16, 31, 105, 0.58);

  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  text-align: center;
}

.ams-match-report-desc-score-set.is-winner {
  color: var(--mr-red);
  font-weight: 950;
  font-size: 13px;
}

.ams-match-report-desc-score-set.is-loser {
  color: rgba(16, 31, 105, 0.56);
}

.ams-match-report-desc-score-footer {
  width: 100%;
  min-width: 0;

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

  padding: 0.50rem 0.72rem;

  background: rgba(16, 31, 105, 0.072);
  color: rgba(16, 31, 105, 0.72);

  font-size: 10px;
  font-weight: 780;
  line-height: 1.22;

  overflow-wrap: anywhere;

  box-sizing: border-box;
}

.ams-match-report-desc-score-footer-left {
  min-width: 0;

  color: rgba(16, 31, 105, 0.74);

  font-weight: 820;
  line-height: 1.18;

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

.ams-match-report-desc-score-footer-right {
  flex: 0 0 auto;

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

  color: var(--mr-blue);

  font-weight: 900;
  line-height: 1;

  white-space: nowrap;
}

.ams-match-report-desc-duration-icon {
  color: var(--mr-blue-light);

  font-size: 0.86rem;
  line-height: 1;
}

.ams-match-report-desc-duration-value {
  color: var(--mr-blue-light);

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

@media (max-width: 560px) {
  .ams-match-report-desc-score-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.36rem;
  }

  .ams-match-report-desc-score-footer-left {
    white-space: normal;
  }

  .ams-match-report-desc-score-footer-right {
    justify-content: flex-start;
  }
}

/* ======================================================
   AMS MATCH REPORT — GENERIC REPORT CARD
   KPI card harmonisée + compatible jitter plot
   ====================================================== */

.ams-match-report-card-grid {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  align-items: stretch;
  gap: 1rem;

  box-sizing: border-box;
}

.ams-match-report-card {
  --mr-card-accent: var(--mr-blue);
  --mr-card-accent-soft: rgba(16, 31, 105, 0.075);
  --mr-card-accent-border: rgba(16, 31, 105, 0.16);
  --mr-card-accent-text: var(--mr-blue);

  position: relative;

  min-height: 156px;

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

  padding: 0.88rem 0.92rem 0.82rem 0.92rem;

  border-radius: 12px;
  border: 1px solid var(--mr-card-accent-border);

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      rgba(248, 249, 250, 0.72) 100%
    );

  box-shadow:
    0 6px 14px rgba(16, 31, 105, 0.050),
    0 2px 5px rgba(16, 31, 105, 0.025);

  text-align: center;

  overflow: hidden;
  box-sizing: border-box;
}

.ams-match-report-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 3px;

  background: var(--mr-card-accent);
}

.ams-match-report-card-neutral {
  --mr-card-accent: var(--mr-blue);
  --mr-card-accent-soft: rgba(16, 31, 105, 0.075);
  --mr-card-accent-border: rgba(16, 31, 105, 0.16);
  --mr-card-accent-text: var(--mr-blue);
}

.ams-match-report-card-positive {
  --mr-card-accent: var(--mr-green);
  --mr-card-accent-soft: rgba(76, 175, 80, 0.120);
  --mr-card-accent-border: rgba(76, 175, 80, 0.22);
  --mr-card-accent-text: var(--mr-green);
}

.ams-match-report-card-warning {
  --mr-card-accent: var(--mr-orange);
  --mr-card-accent-soft: rgba(243, 156, 18, 0.130);
  --mr-card-accent-border: rgba(243, 156, 18, 0.24);
  --mr-card-accent-text: #9A5F00;
}

.ams-match-report-card-danger {
  --mr-card-accent: var(--mr-red);
  --mr-card-accent-soft: rgba(213, 43, 30, 0.105);
  --mr-card-accent-border: rgba(213, 43, 30, 0.22);
  --mr-card-accent-text: var(--mr-red);
}


/* ======================================================
   CARD — ICON BADGE
   ====================================================== */

.ams-match-report-card-icon {
  width: 40px;
  height: 40px;

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

  margin-bottom: 0.38rem;

  border-radius: 999px;
  border: 1px solid var(--mr-card-accent-border);

  background: var(--mr-card-accent-soft);
  color: var(--mr-card-accent);

  line-height: 1;

  box-sizing: border-box;
}

.ams-match-report-card-boxicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--mr-card-accent);

  font-size: 1.5rem;
  line-height: 1;
}

.ams-match-report-card-icon-img {
  width: 22px;
  height: 22px;

  object-fit: contain;
}

.ams-match-report-card-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--mr-card-accent);

  font-size: 1.05rem;
  line-height: 1;
}

.ams-match-report-card-icon-placeholder {
  width: 22px;
  height: 22px;
}


/* ======================================================
   CARD — TYPOGRAPHY
   ====================================================== */

.ams-match-report-card-title {
  margin-bottom: 0.26rem;

  color: var(--mr-blue-light);

  font-size: 10px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0.052em;
  text-transform: uppercase;
}

.ams-match-report-card-value {
  margin-bottom: 0.36rem;

  color: var(--mr-card-accent-text);

  font-size: 20px;
  font-weight: 980;
  line-height: 1;
  letter-spacing: -0.04em;
}


/* ======================================================
   CARD — CHART SLOT
   Future zone jitter plot / mini visualisation
   ====================================================== */

.ams-match-report-card-chart-slot {
  width: 100%;
  min-height: 14px;

  margin: 0.04rem 0 0.5rem 0;

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

  box-sizing: border-box;
}

.ams-match-report-card-chart-slot:empty {
  min-height: 0px;
}

.ams-match-report-card.has-chart {
  min-height: 188px;
}

.ams-match-report-card.has-chart .ams-match-report-card-chart-slot {
  min-height: 42px;
}

/* Laisse les hovers Plotly dépasser du mini graphique et de la carte KPI */
/* Autorise uniquement le contenu Plotly à dépasser.
   La carte conserve son arrondi et son clipping. */
.ams-match-report-physical-kpi-card .ams-match-report-card-chart-slot,
.ams-match-report-physical-card-chart,
.ams-match-report-physical-jitter-graph,
.ams-match-report-physical-jitter-graph .dash-graph,
.ams-match-report-physical-jitter-graph .js-plotly-plot,
.ams-match-report-physical-jitter-graph .plot-container,
.ams-match-report-physical-jitter-graph .svg-container,
.ams-match-report-physical-jitter-graph .hoverlayer {
  overflow: visible !important;
}

.ams-match-report-physical-kpi-card {
  border-radius: 12px;
  overflow: hidden;
}

/* ======================================================
   CARD — DETAIL LINES
   Détails par set
   ====================================================== */

.ams-match-report-card-details {
  width: 100%;

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

  margin-top: auto;
  padding-top: 0.46rem;

  border-top: 1px solid rgba(16, 31, 105, 0.075);

  color: rgba(85, 85, 85, 0.80);

  font-size: 0.61rem;
  font-weight: 720;
  line-height: 1.22;

  box-sizing: border-box;
}

.ams-match-report-card-detail-line {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 16px;

  white-space: nowrap;
}


/* ======================================================
   CARD — RESPONSIVE
   ====================================================== */

@media (max-width: 980px) {
  .ams-match-report-card-grid {
    max-width: 430px;
  }
}

@media (max-width: 560px) {
  .ams-match-report-card-grid {
    grid-template-columns: 1fr;
    max-width: 230px;
  }

  .ams-match-report-card {
    min-height: 148px;
    padding: 0.82rem 0.82rem 0.78rem 0.82rem;
  }

  .ams-match-report-card.has-chart {
    min-height: 180px;
  }

  .ams-match-report-card-detail-line {
    white-space: normal;
  }
}
/* ======================================================
   RESPONSIVE — DESCRIPTIVE MATCH DESCRIPTION
   ====================================================== */

@media (max-width: 980px) {
  .ams-match-report-desc-grid {
    grid-template-columns: 1fr;
  }

  .ams-match-report-card-grid {
    max-width: 430px;
  }
}

@media (max-width: 560px) {
  .ams-match-report-desc-team-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 0.38rem;
  }

  .ams-match-report-desc-team-scores {
    justify-content: flex-start;
  }

  .ams-match-report-card-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
  }

  .ams-match-report-card {
    min-height: 130px;
  }
}

/* ======================================================
   AMS MATCH REPORT — SCORE EVOLUTION
   ====================================================== */

.ams-match-report-score-evolution-section {
  width: 100%;
  min-width: 0;
}

.ams-match-report-score-evolution-wrapper {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  box-sizing: border-box;
}


.ams-match-report-score-evolution-graph {
  width: 100%;
  height: 100%;
}

.ams-match-report-score-pill {
  width: min(520px, 92%);
  min-height: 48px;

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

  padding: 0.48rem 1rem;

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

  background: #ffffff;

  text-align: center;

  box-shadow:
    0 3px 10px rgba(16, 31, 105, 0.045),
    0 1px 3px rgba(16, 31, 105, 0.025);

  box-sizing: border-box;
}

.ams-match-report-score-pill-top {
  border-color: rgba(16, 31, 105, 0.25);
  background: rgba(16, 31, 105, 0.09);
}

.ams-match-report-score-pill-bottom {
  border-color: rgba(213, 43, 30, 0.25);
  background: rgba(213, 43, 30, 0.09);
}

.ams-match-report-score-pill-role {
  margin-bottom: 0.12rem;

  color: rgba(16, 31, 105, 0.54);

  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.ams-match-report-score-pill-label {
  max-width: 100%;

  color: var(--mr-blue);

  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.10;

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

.ams-match-report-score-pill-bottom .ams-match-report-score-pill-label {
  color: var(--mr-red);
}

@media (max-width: 760px) {
  .ams-match-report-score-pill {
    width: 100%;
    border-radius: 14px;
  }

  .ams-match-report-score-pill-label {
    white-space: normal;
  }
}

/* ======================================================
   AMS MATCH REPORT — SERVICES & RETURNS
   Section layout
   ====================================================== */

.ams-match-report-service-return-section {
  width: 100%;
  min-width: 0;
}

.ams-match-report-service-summary-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;

  margin-bottom: 1rem;

  box-sizing: border-box;
}

.ams-match-report-service-table-block,
.ams-match-report-service-detail-block {
  padding: 16px 18px;
  border-radius: 6px;
  background-color: #F8F9FA;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ams-match-report-service-table-block + .ams-match-report-service-table-block,
.ams-match-report-service-detail-block + .ams-match-report-service-detail-block {
  margin-top: 1rem;
}

.ams-match-report-service-summary-row .ams-match-report-service-table-block + .ams-match-report-service-table-block {
  margin-top: 0;
}

.ams-match-report-service-table-title {
  margin-bottom: 0.18rem;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--ffbad-red-light);    

  padding-left: 10px;
  border-left: 4px solid var(--ffbad-red-light);
}

.ams-match-report-service-table-subtitle {
  margin-bottom: 0.65rem;
  padding-left: 10px;

  color: rgba(85, 85, 85, 0.72);

  font-size: 0.62rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .ams-match-report-service-summary-row {
    grid-template-columns: 1fr;
  }

  .ams-match-report-service-summary-row .ams-match-report-service-table-block + .ams-match-report-service-table-block {
    margin-top: 1rem;
  }
}


/* ======================================================
   AMS MATCH REPORT — SERVICES & RETOURS GLOBAL TABLES
   Professional AG Grid base
   ====================================================== */

.ams-match-report-service-grid {
  width: 100%;
  min-width: 0;

  --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.050);
  --ag-header-column-separator-display: none;
  --ag-row-hover-color: rgba(16, 31, 105, 0.040);
  --ag-selected-row-background-color: rgba(16, 31, 105, 0.050);
  --ag-row-height: 46px;
  --ag-header-height: 32px;
}

.ams-match-report-service-grid .ag-root-wrapper {
  border-radius: 10px !important;
  border: 1px solid rgba(16, 31, 105, 0.11) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.ams-match-report-service-grid .ag-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(16, 31, 105, 0.14) !important;
}

.ams-match-report-service-grid .ag-header-cell,
.ams-match-report-service-grid .ag-header-group-cell {
  padding-left: 6px !important;
  padding-right: 6px !important;
  border-right: none !important;
}

.ams-match-report-service-grid .ag-header-cell-label,
.ams-match-report-service-grid .ag-header-group-cell-label {
  justify-content: center !important;
  color: var(--mr-blue) !important;
  font-weight: 950 !important;
  font-size: 10.7px !important;
}

.ams-match-report-service-grid .ag-header-cell-text,
.ams-match-report-service-grid .ag-header-group-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.ams-match-report-service-grid .ag-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 46px !important;

  padding-left: 6px !important;
  padding-right: 6px !important;

  color: var(--mr-blue) !important;
  border-right: none !important;
  line-height: 1.08 !important;
  overflow: hidden !important;
}

.ams-match-report-service-grid .ag-row-even {
  background: #ffffff !important;
}

.ams-match-report-service-grid .ag-row-odd {
  background: rgba(16, 31, 105, 0.010) !important;
}

.ams-match-report-service-grid .ag-row-hover {
  background: rgba(16, 31, 105, 0.040) !important;
}


/* ======================================================
   GLOBAL — PINNED LEFT UNIQUE VERTICAL SEPARATOR
   ====================================================== */

.ams-match-report-service-grid .ag-pinned-left-header,
.ams-match-report-service-grid .ag-pinned-left-cols-container {
  border-right: 1px solid rgba(16, 31, 105, 0.16) !important;
  box-shadow: none !important;
}

.ams-match-report-service-grid .ag-pinned-left-header::after,
.ams-match-report-service-grid .ag-pinned-left-cols-container::after {
  content: none !important;
  display: none !important;
}

.ams-match-report-service-grid .ag-pinned-left-cols-container .ag-cell {
  border-right: none !important;
  box-shadow: none !important;
}


/* Aucun séparateur supplémentaire sur Total */

.ams-match-report-service-grid .mr-sr-header-start,
.ams-match-report-service-grid .mr-sr-cell-start {
  box-shadow: none !important;
}


/* ======================================================
   GLOBAL — ROW SEPARATORS
   ====================================================== */

.ams-match-report-service-grid .ag-row.mr-sr-row-player {
  border-top: 1px solid rgba(16, 31, 105, 0.050) !important;
}

.ams-match-report-service-grid .ag-row.mr-sr-row-opponent-start {
  border-top: 2px solid rgba(16, 31, 105, 0.26) !important;
}


/* ======================================================
   GLOBAL — TEAM SUMMARY ROWS
   ====================================================== */

.ams-match-report-service-grid .ag-row.mr-sr-row-team-analysed {
  background: rgba(16, 31, 105, 0.055) !important;
}

.ams-match-report-service-grid .ag-row.mr-sr-row-team-opponent {
  background: rgba(213, 43, 30, 0.050) !important;
}

.ams-match-report-service-grid .ag-row.mr-sr-row-team-analysed .ag-cell,
.ams-match-report-service-grid .ag-row.mr-sr-row-team-opponent .ag-cell {
  font-weight: 900 !important;
}


/* Liseré vertical porté par la première cellule pinned-left */

.ams-match-report-service-grid
.ag-row.mr-sr-row-team-analysed
.mr-sr-cell-entity {
  box-shadow: inset 4px 0 0 var(--mr-blue) !important;
}

.ams-match-report-service-grid
.ag-row.mr-sr-row-team-opponent
.mr-sr-cell-entity {
  box-shadow: inset 4px 0 0 var(--mr-red) !important;
}


/* ======================================================
   GLOBAL — ENTITY CELL RENDERER
   Première colonne Serveur / Receveur alignée à gauche
   ====================================================== */

.ams-match-report-service-grid .ag-cell.mr-sr-cell-entity {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  text-align: left !important;
}

.ams-match-report-service-grid .mr-sr-header-entity {
  padding-left: 10px !important;
}

.ams-match-report-service-grid .mr-sr-header-entity .ag-header-cell-label {
  justify-content: flex-start !important;
  padding-left: 6px !important;
}

.ams-match-report-service-grid .mr-sr-header-entity .ag-header-cell-text {
  text-align: left !important;
}

.mr-sr-entity {
  width: 100%;
  min-width: 0;
  height: 100%;

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

  padding-left: 14px;
  padding-right: 10px;

  text-align: left;

  box-sizing: border-box;
}

.mr-sr-entity-label {
  min-width: 0;

  display: block;

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

  color: var(--mr-blue);

  font-size: 11.2px;
  line-height: 1.12;
  text-align: left;
}

.mr-sr-entity-team .mr-sr-entity-label {
  font-size: 11.4px;
  font-weight: 950;
}

.mr-sr-entity-player {
  padding-left: 14px;
}

.mr-sr-entity-player .mr-sr-entity-label {
  font-size: 10.8px;
  font-weight: 820;
}

.mr-sr-entity-opponent.mr-sr-entity-team .mr-sr-entity-label {
  color: var(--mr-red);
}


/* ======================================================
   GLOBAL — NUMBER CELLS
   ====================================================== */

.mr-sr-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 30px;

  color: var(--mr-blue);

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

.mr-sr-empty {
  color: rgba(85, 85, 85, 0.35);

  font-size: 12px;
  font-weight: 850;
}


/* ======================================================
   GLOBAL — PERCENTAGE PILL
   ====================================================== */

.mr-sr-pct-pill {
  min-width: 62px;
  height: 26px;

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

  padding: 0 0.68rem;

  border-radius: 999px;

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

  box-sizing: border-box;
}

.mr-sr-pct-red {
  color: var(--mr-red);
  background: rgba(213, 43, 30, 0.105);
}

.mr-sr-pct-orange {
  color: #E67E22;
  background: rgba(230, 126, 34, 0.120);
}

.mr-sr-pct-blue {
  color: var(--mr-blue);
  background: rgba(16, 31, 105, 0.085);
}

.mr-sr-pct-green {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.115);
}


/* ======================================================
   AMS MATCH REPORT — SERVICES & RETOURS DETAIL TABLES
   ====================================================== */

.ams-match-report-service-detail-grid {
  overflow-x: auto;

  --ag-font-size: 10.5px;
  --ag-row-height: 40px;
  --ag-header-height: 32px;
}

.ams-match-report-service-detail-grid .ag-root-wrapper {
  border-radius: 10px !important;
  border: 1px solid rgba(16, 31, 105, 0.11) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.ams-match-report-service-detail-grid .ag-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(16, 31, 105, 0.14) !important;
}

.ams-match-report-service-detail-grid .ag-header-cell,
.ams-match-report-service-detail-grid .ag-header-group-cell {
  border-right: none !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

.ams-match-report-service-detail-grid .ag-header-cell-label,
.ams-match-report-service-detail-grid .ag-header-group-cell-label {
  justify-content: center !important;
  color: var(--mr-blue) !important;
  font-weight: 950 !important;
  font-size: 10.3px !important;
}

.ams-match-report-service-detail-grid .ag-header-cell-text,
.ams-match-report-service-detail-grid .ag-header-group-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.ams-match-report-service-detail-grid .ag-cell {
  min-height: 40px !important;

  padding-left: 4px !important;
  padding-right: 4px !important;

  border-right: none !important;
  color: var(--mr-blue) !important;
  overflow: hidden !important;
}


/* ======================================================
   DETAIL — PINNED PLAYER COLUMN ONLY
   ====================================================== */

.ams-match-report-service-detail-grid .ag-pinned-left-header,
.ams-match-report-service-detail-grid .ag-pinned-left-cols-container {
  border-right: 1px solid rgba(16, 31, 105, 0.16) !important;
  box-shadow: none !important;
}

.ams-match-report-service-detail-grid .ag-pinned-left-header::after,
.ams-match-report-service-detail-grid .ag-pinned-left-cols-container::after {
  content: none !important;
  display: none !important;
}


/* ======================================================
   DETAIL — ROW HIGHLIGHTS
   Ligne Tous uniquement, hors colonne joueur rotate
   ====================================================== */

.ams-match-report-service-detail-grid .ag-row.mr-srd-row-all-p1 {
  background: rgba(16, 31, 105, 0.070) !important;
}

.ams-match-report-service-detail-grid .ag-row.mr-srd-row-all-p2 {
  background: rgba(112, 118, 172, 0.085) !important;
}

.ams-match-report-service-detail-grid .ag-row.mr-srd-row-second-player-start {
  border-top: 2px solid rgba(16, 31, 105, 0.20) !important;
}

.ams-match-report-service-detail-grid .ag-row:not(.mr-srd-row-all-p1):not(.mr-srd-row-all-p2) {
  background: #ffffff !important;
}

.ams-match-report-service-detail-grid .ag-row:not(.mr-srd-row-player-start) {
  border-top: 1px solid rgba(16, 31, 105, 0.045) !important;
}


/* ======================================================
   DETAIL — PLAYER ROWSPAN CELL
   Nom joueur pivoté sur le bloc de lignes
   Fond neutre volontairement
   ====================================================== */

.ams-match-report-service-detail-grid .ag-cell.mr-srd-cell-player-span {
  position: relative !important;

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

  padding: 0 !important;

  overflow: hidden !important;

  border-right: none !important;
  background: #ffffff !important;
}

.ams-match-report-service-detail-grid .ag-row.mr-srd-row-all-p1 .ag-cell.mr-srd-cell-player-span,
.ams-match-report-service-detail-grid .ag-row.mr-srd-row-all-p2 .ag-cell.mr-srd-cell-player-span {
  background: #ffffff !important;
}

.ams-match-report-service-detail-grid .ag-cell.mr-srd-player-span-visible {
  z-index: 2 !important;
}

.ams-match-report-service-detail-grid .ag-cell.mr-srd-player-span-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  background: #ffffff !important;
}

.ams-match-report-service-detail-grid .ag-cell.mr-srd-player-p1,
.ams-match-report-service-detail-grid .ag-cell.mr-srd-player-p2 {
  background: #ffffff !important;
}

.mr-srd-player-rotated-wrap {
  position: absolute;
  inset: 0;

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

  overflow: hidden;
  background: #ffffff;
}

.mr-srd-player-rotated-label {
  position: absolute;
  left: 50%;
  top: 50%;

  width: var(--mr-srd-player-label-width, 108px);
  max-width: var(--mr-srd-player-label-width, 108px);

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

  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;

  color: var(--mr-blue);

  font-size: 10.1px;
  font-weight: 950;
  line-height: 1.8;
  text-align: center;
}


/* ======================================================
   DETAIL — TARGET COLUMN
   Serveur / Receveur remis dans la grille normale
   ====================================================== */

.ams-match-report-service-detail-grid .ag-cell.mr-srd-cell-target {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding-left: 7px !important;
  padding-right: 7px !important;

  box-shadow:
    inset 1px 0 0 rgba(16, 31, 105, 0.18),
    inset -1px 0 0 rgba(16, 31, 105, 0.13) !important;
}

.ams-match-report-service-detail-grid .ag-header-cell.mr-srd-header-target {
  box-shadow:
    inset 1px 0 0 rgba(16, 31, 105, 0.20),
    inset -1px 0 0 rgba(16, 31, 105, 0.16) !important;
}

.ams-match-report-service-detail-grid .mr-srd-header-target .ag-header-cell-label {
  justify-content: center !important;
}

.mr-srd-target-pill {
  max-width: 100%;
  min-width: 54px;

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

  padding: 0.22rem 0.58rem;

  border-radius: 999px;

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

  font-size: 9.6px;
  font-weight: 950;
  line-height: 1;
}

.mr-srd-target-all {
  color: var(--mr-red);
  background: rgba(213, 43, 30, 0.105);
}

.mr-srd-target-player {
  color: var(--mr-red-light);
  background: rgba(239, 77, 83, 0.105);
}


/* ======================================================
   DETAIL — GROUP SEPARATORS
   Pas de double bordure entre Receveur/Serveur et Match
   ====================================================== */

.ams-match-report-service-detail-grid .mr-srd-header-group-start {
  box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.13) !important;
}

.ams-match-report-service-detail-grid .mr-srd-cell-group-start {
  box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.09) !important;
}

.ams-match-report-service-detail-grid .mr-srd-period-header-start {
  box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.13) !important;
}

.ams-match-report-service-detail-grid .mr-srd-header-group .ag-header-group-cell-label {
  justify-content: center !important;
}

.ams-match-report-service-detail-grid .mr-srd-header-metric .ag-header-cell-label {
  justify-content: center !important;
}


/* ======================================================
   DETAIL — TOTAL COLUMNS
   Total légèrement mis en avant vs Pair / Impair
   ====================================================== */

.ams-match-report-service-detail-grid .ag-cell.mr-srd-cell-total {
  background: rgba(16, 31, 105, 0.030) !important;
}

.ams-match-report-service-detail-grid .ag-row.mr-srd-row-all-p1 .ag-cell.mr-srd-cell-total {
  background: rgba(16, 31, 105, 0.085) !important;
}

.ams-match-report-service-detail-grid .ag-row.mr-srd-row-all-p2 .ag-cell.mr-srd-cell-total {
  background: rgba(112, 118, 172, 0.105) !important;
}

.ams-match-report-service-detail-grid .mr-srd-header-total .ag-header-cell-label {
  font-weight: 980 !important;
}


/* ======================================================
   DETAIL — METRIC CELLS
   won/total + pct pill
   ====================================================== */

.ams-match-report-service-detail-grid .ag-cell.mr-srd-cell-metric {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding-left: 4px !important;
  padding-right: 4px !important;
}

.mr-srd-metric {
  width: 100%;
  min-width: 0;

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

  overflow: hidden;
}

.mr-srd-metric-ratio {
  min-width: 30px;

  color: var(--mr-blue);

  font-size: 10.5px;
  font-weight: 920;
  line-height: 1;

  text-align: right;
}

.ams-match-report-service-detail-grid .ag-cell.mr-srd-cell-total .mr-srd-metric-ratio {
  font-weight: 980;
}

.mr-srd-metric-pct {
  min-width: 38px;
  height: 19px;

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

  padding: 0 0.38rem;

  border-radius: 999px;

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

  box-sizing: border-box;
}

.mr-srd-metric-pct-red {
  color: var(--mr-red);
  background: rgba(213, 43, 30, 0.105);
}

.mr-srd-metric-pct-orange {
  color: #E67E22;
  background: rgba(230, 126, 34, 0.120);
}

.mr-srd-metric-pct-blue {
  color: var(--mr-blue);
  background: rgba(16, 31, 105, 0.085);
}

.mr-srd-metric-pct-green {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.115);
}

/* Centrage des headers groupés Match / Set */

.ams-match-report-service-detail-grid
.ag-header-group-cell.mr-srd-header-group
.ag-header-group-cell-label,
.ams-match-report-service-detail-grid
.ag-header-group-cell.mr-srd-period-header-start
.ag-header-group-cell-label {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

.ams-match-report-service-detail-grid
.ag-header-group-cell.mr-srd-header-group
.ag-header-group-text,
.ams-match-report-service-detail-grid
.ag-header-group-cell.mr-srd-period-header-start
.ag-header-group-text {
  width: 100% !important;
  text-align: center !important;
}

/* ======================================================
   DETAIL SIMPLE — POSITION COLUMN
   Table combinée simple : Serveur / Receveur
   ====================================================== */

.ams-match-report-service-simple-detail-grid .ag-cell.mr-srd-cell-position {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding-left: 7px !important;
  padding-right: 7px !important;

  box-shadow: inset -1px 0 0 rgba(16, 31, 105, 0.13) !important;
}

.ams-match-report-service-simple-detail-grid .ag-header-cell.mr-srd-header-position {
  box-shadow: inset -1px 0 0 rgba(16, 31, 105, 0.16) !important;
}

.ams-match-report-service-simple-detail-grid .mr-srd-header-position .ag-header-cell-label {
  justify-content: center !important;
}

.mr-srd-position-pill {
  max-width: 100%;
  min-width: 76px;

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

  padding: 0.24rem 0.64rem;

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

  background: rgba(16, 31, 105, 0.070);
  color: var(--mr-blue);

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

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

  box-sizing: border-box;
}

.mr-srd-position-service,
.mr-srd-position-return {
  border-color: rgba(16, 31, 105, 0.14);
  background: rgba(16, 31, 105, 0.070);
  color: var(--mr-blue);
}

/* Le simple n'utilise pas les row highlights Tous / joueur du double */
.ams-match-report-service-simple-detail-grid .ag-row.mr-srd-row-all-p1,
.ams-match-report-service-simple-detail-grid .ag-row.mr-srd-row-all-p2 {
  background: #ffffff !important;
}

.ams-match-report-service-simple-detail-grid .ag-row {
  border-top: 1px solid rgba(16, 31, 105, 0.050) !important;
}

.ams-match-report-service-simple-detail-grid .ag-row:first-child {
  border-top: none !important;
}

.ams-match-report-service-simple-detail-grid .ag-cell.mr-srd-cell-total {
  background: rgba(16, 31, 105, 0.030) !important;
}

/* ======================================================
   AMS MATCH REPORT — PHYSICAL KEY INDICATORS
   ====================================================== */

.ams-match-report-physical-report {
  width: 100%;
  min-width: 0;

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

  box-sizing: border-box;
}

.ams-match-report-physical-section {
  width: 100%;
  min-width: 0;

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

  box-sizing: border-box;
}


/* ======================================================
   PHYSICAL KPI — ROWS
   Cartes fixes de 200px, centrées et avec retour à la ligne
   ====================================================== */

.ams-match-report-physical-card-row {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;

  margin-left: auto;
  margin-right: auto;

  box-sizing: border-box;
}

.ams-match-report-physical-card-row > .ams-match-report-physical-kpi-card {
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
}
/* ======================================================
   PHYSICAL KPI — CARD ADJUSTMENTS
   ====================================================== */

.ams-match-report-physical-kpi-card {
  min-height: 236px;
}

.ams-match-report-physical-kpi-card .ams-match-report-card-value {
  min-height: 30px;

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

  color: var(--mr-red-light, #EF4D53);

  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.ams-match-report-physical-kpi-card .ams-match-report-card-value:empty::before {
  content: "—";
}

.ams-match-report-physical-kpi-card .ams-match-report-card-chart-slot {
  width: 100%;
  min-height: 78px;

  margin: 0.10rem 0 0.42rem 0;
}

.ams-match-report-physical-kpi-card .ams-match-report-card-chart-slot:empty {
  min-height: 0;
  margin: 0;
}


/* ======================================================
   PHYSICAL KPI — JITTER + RANK
   ====================================================== */

.ams-match-report-physical-card-chart {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  box-sizing: border-box;
}

.ams-match-report-physical-jitter-graph {
  width: 100%;
  height: 58px;
}

.ams-match-report-physical-jitter-graph .js-plotly-plot,
.ams-match-report-physical-jitter-graph .plot-container,
.ams-match-report-physical-jitter-graph .svg-container {
  width: 100% !important;
  height: 58px !important;
}

.ams-match-report-physical-rank {
  width: fit-content;
  max-width: 100%;

  align-self: center;

  margin-top: 0.02rem;

  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.ams-match-report-physical-rank.is-empty {
  opacity: 0.46;
}


/* ======================================================
   PHYSICAL KPI — DETAILS PAR SET
   ====================================================== */

.ams-match-report-physical-kpi-card .ams-match-report-card-details {
  min-height: 48px;
}

.ams-match-report-physical-kpi-card .ams-match-report-card-detail-line {
  font-size: 10px;
  font-weight: 760;
  line-height: 1.18;
}


/* ======================================================
   PHYSICAL KPI — FUTURE CONTAINERS
   Graphs / tables à brancher plus tard
   ====================================================== */

.ams-match-report-physical-future-container {
  width: 100%;
  max-width: 1120px;
  min-height: 150px;

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

  margin-left: auto;
  margin-right: auto;

  border-radius: 12px;
  border: 1px dashed rgba(16, 31, 105, 0.13);

  background:
    linear-gradient(
      180deg,
      rgba(16, 31, 105, 0.018) 0%,
      rgba(16, 31, 105, 0.028) 100%
    );

  box-sizing: border-box;
}

.ams-match-report-physical-future-label {
  color: rgba(16, 31, 105, 0.42);

  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* ======================================================
   PHYSICAL KPI — RESPONSIVE
   ====================================================== */

@media (max-width: 560px) {
  .ams-match-report-physical-card-row > .ams-match-report-physical-kpi-card {
    flex-basis: min(200px, 100%);
    width: min(200px, 100%);
    max-width: 100%;
  }

  .ams-match-report-physical-kpi-card {
    min-height: 220px;
  }

  .ams-match-report-physical-future-container {
    max-width: 100%;
    min-height: 120px;
  }
}

/* ======================================================
   AMS MATCH REPORT — PHYSICAL MAIN GRAPHS
   ====================================================== */

.ams-match-report-physical-graph-container {
  width: 100%;
  min-width: 0;

  margin-left: auto;
  margin-right: auto;
  padding: 16px 18px;
  border-radius: 6px;
  background-color: #F8F9FA;
  border: 1px solid rgba(0, 0, 0, 0.05);

  box-sizing: border-box;
}

.ams-match-report-physical-main-graph {
  width: 100%;
}
/* ======================================================
   PHYSICAL GRAPHS — INDIVIDUAL DIMENSIONS
   Modifier ici chaque largeur et chaque hauteur
   ====================================================== */

/* Timeline intensité des points */

.ams-match-report-physical-graph-container-timeline {
  max-width: 1400px;
}

.ams-match-report-physical-main-graph-timeline,
.ams-match-report-physical-main-graph-timeline .js-plotly-plot,
.ams-match-report-physical-main-graph-timeline .plot-container,
.ams-match-report-physical-main-graph-timeline .svg-container {
  height: 450px !important;
}


/* Analyse temporelle */

.ams-match-report-physical-graph-container-temporal {
  max-width: 900px;
}

.ams-match-report-physical-main-graph-temporal,
.ams-match-report-physical-main-graph-temporal .js-plotly-plot,
.ams-match-report-physical-main-graph-temporal .plot-container,
.ams-match-report-physical-main-graph-temporal .svg-container {
  height: 450px !important;
}


/* Profil accélération record */

.ams-match-report-physical-graph-container-record {
  max-width: 900px;
}

.ams-match-report-physical-main-graph-record,
.ams-match-report-physical-main-graph-record .js-plotly-plot,
.ams-match-report-physical-main-graph-record .plot-container,
.ams-match-report-physical-main-graph-record .svg-container {
  height: 500px !important;
}

/* ======================================================
   MATCH REPORT — PHYSICAL RECAP GRID
   ====================================================== */

.match-report-physical-recap-grid .ag-cell.ih-section-start {
  border-left: 1px solid rgba(16, 31, 105, 0.18) !important;
}

.match-report-physical-recap-grid .ag-header-cell.ih-section-start-header {
  border-left: 1px solid rgba(16, 31, 105, 0.20) !important;
}

.match-report-physical-recap-grid .ag-header-group-cell {
  border-bottom: 1px solid rgba(16, 31, 105, 0.08) !important;
}

.match-report-physical-recap-grid .ag-cell {
  border-right: 0 !important;
}

.match-report-physical-recap-grid .ag-cell.ih-section-start,
.match-report-physical-recap-grid .ag-header-cell.ih-section-start-header {
  box-shadow: inset 1px 0 0 rgba(16, 31, 105, 0.05);
}


/* ======================================================
   MATCH REPORT — MDS CELL
   ====================================================== */

.match-report-physical-recap-grid .ih-mds-cell {
  width: 100%;
  height: 100%;

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

  gap: 2px;

  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.match-report-physical-recap-grid .ih-mds-peak {
  color: #101F69;

  font-size: 11.5px;
  font-weight: 950;
}

.match-report-physical-recap-grid .ih-mds-pct {
  color: rgba(16, 31, 105, 0.58);

  font-size: 8.5px;
  font-weight: 850;
}

.match-report-physical-recap-grid
.ag-header-row:not(:first-child)
.ag-header-cell:not(
    .ag-header-span-height.ag-header-span-total,
    .ag-header-parent-hidden
),
.match-report-physical-recap-grid
.ag-header-row:not(:first-child)
.ag-header-group-cell.ag-header-group-cell-with-group {
    border-top: none !important;
}

.match-report-physical-recap-grid
.ag-header-group-cell.ih-section-group-start {
    border-left:
        1px solid rgba(16, 31, 105, 0.16) !important;

}

.match-report-physical-recap-grid
.ag-header-group-cell.ih-period-group-header
.ag-header-group-cell-label {
    justify-content: center !important;
    text-align: center !important;
}

.match-report-physical-recap-grid
.ag-header-group-cell.ih-period-group-header
.ag-header-group-text {
    width: 100% !important;
    text-align: center !important;
}