:root {
  font-size: 16px;
  scrollbar-gutter: stable;
}

.admin-portal-page {
  --portal-color-background: #f6f8fa;
  --portal-color-surface: #ffffff;
  --portal-color-text: #24343b;
  --portal-color-brand: #20333a;
  --portal-color-heading: #263940;
  --portal-color-muted: #52636a;
  --portal-color-accent: #0b7285;
  --portal-color-accent-strong: #075866;
  --portal-color-border: #dfe5e7;
  --portal-color-header-border: #e0e6e8;
  --portal-color-border-soft: #e3e9eb;
  --portal-color-field-border: #d8e0e3;
  --portal-color-hover-border: #8fc4ca;
  --portal-color-field-background: #f8fafb;
  --portal-radius-card: 9px;
  --portal-radius-large: 10px;
  --portal-radius-control: 8px;
  --portal-focus-ring: rgba(11, 114, 133, 0.16);
  --portal-shell-max: 1720px;
  --portal-page-gutter: 16px;
  --portal-card-gutter: 16px;
  --portal-panel-gutter: 14px;
  --portal-font-weight-regular: 400;
  --portal-font-weight-medium: 500;
  --portal-font-weight-semibold: 600;
  --portal-font-weight-bold: 700;
  min-height: 100vh;
  margin: 0;
  background: #f5f8f7;
  color: #12312d;
}

.admin-portal-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid #dce7e4;
  background: #ffffff;
}

.admin-portal-topbar h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.admin-portal-home {
  color: #0b7285;
  font-weight: 800;
  text-decoration: none;
}

.admin-portal-brand {
  display: flex;
  grid-column: 2;
  gap: 14px;
  align-items: center;
}

.admin-portal-federal-logo {
  grid-column: 1;
  justify-self: start;
  width: 108px;
  height: auto;
}

.admin-portal-livepalmes-logo {
  width: 66px;
  max-width: 16vw;
}

.admin-portal-account-menu {
  position: relative;
  grid-column: 3;
  justify-self: end;
}

.admin-portal-account-menu[hidden],
.admin-portal-account-actions[hidden] {
  display: none;
}

.admin-portal-account-menu > button {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  border: 1px solid #cbd9d6;
  border-radius: 8px;
  padding: 0 13px;
  background: #ffffff;
  color: #12312d;
  cursor: pointer;
}

.admin-portal-account-menu > button:hover,
.admin-portal-account-menu > button[aria-expanded="true"] {
  border-color: #0b7285;
  background: #f0f7f5;
}

.admin-portal-account-short {
  display: none;
  font-weight: 800;
}

.admin-portal-account-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-portal-account-actions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 200px;
  overflow: hidden;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(12, 47, 42, 0.14);
}

.admin-portal-account-actions a,
.admin-portal-account-actions button {
  min-height: 42px;
  border: 0;
  padding: 10px 13px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-portal-account-actions a:hover,
.admin-portal-account-actions button:hover {
  background: #f0f7f5;
}

.admin-portal-account-actions button {
  border-top: 1px solid #e7efed;
  color: #9a3412;
}

.admin-portal-account-actions .admin-portal-public-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e7efed;
}

.admin-portal-shell {
  width: min(1380px, calc(100% - var(--portal-page-gutter, 16px) - var(--portal-page-gutter, 16px)));
  margin: 28px auto 52px;
}

.admin-portal-auth-loading {
  display: none;
  min-height: min(360px, 55vh);
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #53666d;
}

.admin-portal-auth-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #d8e5e6;
  border-top-color: #0b7285;
  border-radius: 50%;
  animation: admin-portal-auth-spin 0.8s linear infinite;
}

.admin-portal-auth-loading p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-portal-page[data-admin-auth="loading"] .admin-portal-auth-loading {
  display: grid;
}

.admin-portal-page .admin-portal-auth-loading.is-loading::before {
  display: none;
}

.admin-portal-page[data-admin-auth="loading"] #adminPortalLoginPanel {
  display: none;
}

.admin-portal-page[data-portal-session="pending"] #adminPortalDashboard,
.admin-portal-page[data-portal-session="pending"] #adminPortalAccount,
.admin-portal-page[data-portal-session="pending"] #adminPortalNavToggle {
  visibility: hidden;
}

@keyframes admin-portal-auth-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-portal-auth-loading span {
    animation: none;
  }

  .admin-portal-page .admin-portal-submit-pending::before {
    animation: none;
  }
}

.admin-portal-login,
.admin-portal-session,
.admin-portal-card,
.admin-access-preview,
.admin-access-list-panel {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(12, 47, 42, 0.08);
}

.admin-portal-login {
  display: grid;
  gap: 18px;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 28px);
}

.admin-portal-login span,
.admin-portal-session span,
.admin-portal-card span,
.admin-access-preview-head span {
  display: block;
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-access-list-head span,
.admin-access-status {
  display: block;
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-portal-login h2,
.admin-portal-login strong,
.admin-portal-session strong,
.admin-portal-card strong,
.admin-access-preview-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.admin-access-list-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.admin-portal-form,
.admin-access-form,
.admin-account-form {
  display: grid;
  gap: 14px;
}

.admin-access-form input:disabled,
.admin-access-form select:disabled {
  background: #eef4f2;
  color: #7d8e8a;
}

.admin-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-portal-actions button,
.admin-portal-session button,
.admin-portal-card,
.ghost-button {
  min-height: 40px;
}

.admin-portal-actions button[type="submit"],
.admin-portal-actions .admin-primary-button {
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #0b7285;
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.admin-portal-page .admin-portal-submit-pending {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  cursor: wait;
  opacity: 0.86;
}

.admin-portal-page .admin-portal-submit-pending::before {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.46);
  border-top-color: #ffffff;
  border-radius: 50%;
  content: "";
  animation: admin-portal-submit-spin 700ms linear infinite;
}

@keyframes admin-portal-submit-spin {
  to { transform: rotate(360deg); }
}

.admin-portal-password-field {
  position: relative;
}

.admin-portal-password-field input {
  width: 100%;
  padding-right: 86px;
}

.admin-portal-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  color: #0b7285;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.admin-portal-password-toggle:hover,
.admin-portal-password-toggle[aria-pressed="true"] {
  background: #e8f4f5;
}

.admin-portal-link-button {
  min-height: 32px;
  border: 0;
  padding: 0 2px;
  color: #4f6870;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.admin-portal-link-button:hover {
  color: #075866;
}

.ghost-button {
  border: 1px solid #cbd9d6;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #12312d;
  font-weight: 800;
  cursor: pointer;
}

.admin-portal-message {
  min-height: 20px;
  margin: 0;
  color: #9a3412;
  font-weight: 760;
}

.admin-portal-page[data-admin-auth="unlocked"] #adminPortalLoginPanel {
  display: none;
}

.admin-portal-session-dialog {
  width: min(92vw, 480px);
  border: 1px solid var(--portal-color-border);
  border-radius: var(--portal-radius-large);
  padding: 24px;
  background: var(--portal-color-surface);
  color: var(--portal-color-text);
  box-shadow: 0 24px 70px rgba(4, 31, 35, 0.28);
}

.admin-portal-session-dialog::backdrop {
  background: rgba(7, 26, 29, 0.68);
  backdrop-filter: blur(3px);
}

.admin-portal-session-dialog-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.admin-portal-session-dialog-heading span {
  color: var(--portal-color-accent);
  font-size: 0.76rem;
  font-weight: var(--portal-font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-portal-session-dialog-heading h2,
.admin-portal-session-dialog p {
  margin: 0;
}

.admin-portal-session-dialog > p {
  margin-bottom: 20px;
  color: var(--portal-color-muted);
  line-height: 1.55;
}

.admin-portal-session-lock .admin-portal-form {
  margin-bottom: 12px;
}

.admin-portal-session-lock .admin-portal-message:empty {
  min-height: 0;
}

@media (max-width: 520px) {
  .admin-portal-session-dialog {
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .admin-portal-session-dialog .admin-portal-actions,
  .admin-portal-session-dialog .admin-portal-actions button {
    width: 100%;
  }
}

.admin-portal-dashboard {
  display: grid;
  gap: 18px;
}

.admin-portal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-portal-sidebar {
  position: sticky;
  top: 18px;
  min-width: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(12, 47, 42, 0.08);
}

.admin-portal-nav-toggle {
  display: none;
}

.admin-portal-nav-toggle[hidden] {
  display: none;
}

.admin-portal-nav {
  display: grid;
  gap: 2px;
}

.admin-portal-nav-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-portal-nav-pin {
  display: none;
}

.admin-portal-nav-title {
  padding: 6px 9px 4px;
  color: #5f746f;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-portal-nav-group {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 4px 0 5px;
}

.admin-portal-nav-group + .admin-portal-nav-group {
  border-top: 1px solid #e7efed;
}

.admin-portal-nav-group h2 {
  margin: 0;
  padding: 4px 9px 2px;
  color: #6a7e79;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.admin-portal-nav a,
.admin-portal-nav-parent {
  display: grid;
  gap: 2px;
  min-width: 0;
  border-radius: 6px;
  padding: 7px 9px;
  color: #12312d;
  text-decoration: none;
}

.admin-portal-nav a:hover,
.admin-portal-nav-parent:hover {
  background: #f0f7f5;
}

.admin-portal-nav a.active,
.admin-portal-nav a[aria-current="page"] {
  background: #dff1ed;
  color: #0f5f57;
  box-shadow: inset 3px 0 #0b7285;
}

.admin-portal-nav-club-link {
  margin-bottom: 4px;
  border-bottom: 1px solid #e7efed;
}

.admin-portal-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: #b42318;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-portal-nav-badge[hidden] {
  display: none;
}

.admin-pending-badge {
  display: inline-grid;
  box-sizing: border-box;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  color: #ffffff;
  background: #c92a2a;
  box-shadow: 0 1px 3px rgba(116, 19, 19, 0.22);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.admin-pending-badge[hidden] {
  display: none;
}

.admin-portal-nav a,
.admin-portal-nav-parent {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 750;
}

.admin-portal-nav-parent {
  width: 100%;
  align-items: center;
  border: 0;
  background: transparent;
  color: #5f746f;
  font-size: 0.73rem;
  font-weight: 850;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: default;
}

.admin-portal-nav-parent > span:last-child {
  display: none;
}

.admin-portal-nav-parent:hover {
  background: transparent;
}

.admin-portal-nav a[href="pilotage-livepalmes.html"] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-portal-nav a[href="pilotage-livepalmes.html"] span {
  color: #5f746f;
  font-size: 0.86rem;
}

.admin-portal-nav-submenu {
  display: grid;
  gap: 2px;
  margin: 0 0 0 6px;
  padding-left: 7px;
  border-left: 2px solid #dce7e4;
}

.admin-portal-nav-submenu[hidden] {
  display: none;
}

.admin-portal-nav-submenu > a {
  padding-left: 9px;
  font-size: 0.82rem;
}

.admin-portal-workspace {
  min-width: 0;
}

.admin-portal-account-view,
.admin-portal-access-view,
.admin-portal-engagements-view,
.admin-portal-dtn-view,
.admin-portal-records-view > .admin-portal-workspace-head,
.admin-portal-import-view > .admin-portal-workspace-head {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(12, 47, 42, 0.08);
}

.admin-portal-account-view {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-portal-engagements-view {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-account-scope-card {
  grid-column: 1 / -1;
}

.admin-account-card,
.admin-engagements-card {
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 18px;
  background: #f8fbfa;
}

.admin-account-card > div > span,
.admin-engagements-card > div > span {
  color: #5f746f;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-account-card h3,
.admin-engagements-card h3 {
  margin: 5px 0 6px;
  font-size: 1.08rem;
}

.admin-portal-login h2 {
  margin: 4px 0 0;
}

.admin-account-card > div > p {
  margin: 0;
  color: #5f746f;
  line-height: 1.45;
}

.admin-account-scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-account-scope-list > div {
  min-width: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.admin-account-scope-list dt {
  color: #5f746f;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-account-scope-list dd {
  margin: 4px 0 0;
  color: #173b35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-account-capabilities-title {
  display: block;
  margin-bottom: 8px;
  color: #31524c;
  font-size: 0.82rem;
}

.admin-account-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-account-capabilities span {
  border: 1px solid #dce7e4;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffffff;
  color: #31524c;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-portal-workspace-head > span {
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-portal-workspace-head h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.admin-portal-workspace-head p {
  margin: 0;
  color: #5f746f;
  line-height: 1.55;
}

.admin-portal-access-view {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-portal-dtn-view {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-dtn-toolbar,
.admin-dtn-grid,
.admin-dtn-qualifiers {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
}

.admin-dtn-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
  padding: 12px;
  background: #f8fbfa;
}

.admin-dtn-toolbar[hidden] {
  display: none;
}

#adminDtnView .admin-dtn-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

#adminDtnView .admin-dtn-season-picker {
  width: auto;
  min-width: 112px;
  min-height: 30px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  padding: 0 32px 0 10px;
  background: #f8fafb;
  color: #263940;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
}

#adminDtnView .admin-dtn-season-picker:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

.admin-dtn-toolbar label {
  display: grid;
  gap: 5px;
  color: #455d58;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-dtn-toolbar select {
  min-height: 38px;
  border: 1px solid #cbd9d6;
  border-radius: 7px;
  padding: 0 34px 0 10px;
  background: #ffffff;
  color: #102f2b;
  font: inherit;
}

.admin-dtn-segment {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cbd9d6;
  border-radius: 7px;
  background: #ffffff;
}

.admin-dtn-segment[hidden] {
  display: none;
}

.admin-dtn-segment button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #dce7e4;
  padding: 0 13px;
  background: transparent;
  color: #334f4a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-dtn-segment button:last-child {
  border-right: 0;
}

.admin-dtn-segment button[aria-pressed="true"] {
  background: #0b7285;
  color: #ffffff;
}

.admin-dtn-sex-segment {
  margin-left: auto;
}

.admin-dtn-refresh {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.admin-dtn-refresh[hidden] {
  display: none;
}

.admin-dtn-refresh button {
  min-height: 38px;
}

.admin-dtn-refresh span {
  max-width: 220px;
  color: #58706b;
  font-size: 0.75rem;
  line-height: 1.25;
}

.admin-dtn-refresh span[data-tone="error"] {
  color: #a4371b;
}

.admin-dtn-definitions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-dtn-definitions[hidden] {
  display: none;
}

.admin-dtn-definitions span {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  border: 1px solid #dce7e4;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffffff;
  color: #5f746f;
  font-size: 0.72rem;
}

.admin-dtn-definitions strong {
  color: #0b7285;
  font-size: 0.74rem;
}

.admin-dtn-definitions .admin-dtn-competition-scope {
  flex: 1 1 100%;
  border-radius: 7px;
  background: #edf6f4;
  white-space: normal;
}

.admin-dtn-grid {
  min-width: 0;
  overflow: hidden;
}

.admin-dtn-grid-head,
.admin-dtn-qualifiers-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #dce7e4;
}

.admin-dtn-grid-head > div,
.admin-dtn-qualifiers-head > div {
  display: grid;
  gap: 2px;
}

.admin-dtn-grid-head span,
.admin-dtn-qualifiers-head span {
  color: #5f746f;
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-dtn-grid-head strong {
  font-size: 0.98rem;
}

.admin-dtn-grid-head small {
  color: #5f746f;
  font-size: 0.75rem;
}

.admin-dtn-table-wrap,
.admin-dtn-results-wrap {
  overflow: auto;
}

.admin-dtn-standards-table,
.admin-dtn-results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
}

.admin-dtn-standards-table {
  min-width: 960px;
}

.admin-dtn-edf-table {
  min-width: 620px;
}

.admin-dtn-edf-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid #dce7e4;
  background: #f8fbfa;
}

.admin-dtn-edf-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #cbd9d6;
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #334f4a;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-dtn-edf-tabs button[aria-selected="true"] {
  border-color: #0b7285;
  background: #0b7285;
  color: #ffffff;
}

.admin-dtn-edf-tabs button[data-dtn-edf-group="senior"] {
  border-color: #86c7c3;
  background: #e9f7f5;
  color: #08635f;
}

.admin-dtn-edf-tabs button[data-dtn-edf-group="junior"] {
  border-color: #b7a6dc;
  background: #f2eefb;
  color: #5a428e;
}

.admin-dtn-edf-tabs button[data-dtn-edf-group="u16"] {
  border-color: #e4b476;
  background: #fff4e3;
  color: #8a4b08;
}

.admin-dtn-edf-tabs button[data-dtn-edf-group="senior"][aria-selected="true"] {
  border-color: #087f78;
  background: #087f78;
  color: #ffffff;
}

.admin-dtn-edf-tabs button[data-dtn-edf-group="junior"][aria-selected="true"] {
  border-color: #6750a4;
  background: #6750a4;
  color: #ffffff;
}

.admin-dtn-edf-tabs button[data-dtn-edf-group="u16"][aria-selected="true"] {
  border-color: #a85b08;
  background: #a85b08;
  color: #ffffff;
}

.admin-dtn-export {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #dce7e4;
  background: #ffffff;
}

.admin-dtn-export-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-dtn-export-head strong {
  color: #173c3a;
  font-size: 0.82rem;
}

.admin-dtn-export-head button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.72rem;
}

.admin-dtn-export-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.admin-dtn-export-options label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 0;
  color: #38534e;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-dtn-export-options input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0b7285;
}

.admin-dtn-export-status {
  min-height: 1em;
  margin: 0;
  color: #5f746f;
  font-size: 0.68rem;
}

@media (max-width: 620px) {
  .admin-dtn-export-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dtn-export-head button {
    width: 100%;
  }
}

.admin-dtn-edf-standard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #e4ecea;
}

.admin-dtn-edf-standard-head > div {
  display: grid;
  gap: 2px;
}

.admin-dtn-edf-standard-head strong {
  color: #0b5d75;
  font-size: 0.92rem;
}

.admin-dtn-edf-standard-head span,
.admin-dtn-edf-standard-head small {
  color: #5f746f;
  font-size: 0.72rem;
}

.admin-dtn-edf-count-table {
  min-width: 520px;
}

.admin-dtn-edf-count-table th:first-child {
  min-width: 84px;
}

.admin-dtn-edf-count-table td {
  background: #ffffff;
  text-align: left;
}

.admin-dtn-edf-threshold {
  color: #b63e32;
  font-weight: 900;
  white-space: nowrap;
}

.admin-dtn-edf-count {
  color: #0b5d75;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-dtn-edf-count.is-unavailable,
.admin-dtn-edf-threshold.is-unavailable {
  background: #f1f4f3;
  color: #96a39f;
}

.admin-dtn-detail-button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.71rem;
  white-space: nowrap;
}

.admin-dtn-detail-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-dtn-edf-detail-row > td {
  padding: 0 !important;
  background: #f5faf8 !important;
  border-bottom: 2px solid #b9d5cf;
}

.admin-dtn-inline-loading {
  padding: 12px 14px;
  color: #5f746f;
  font-size: 0.75rem;
}

.admin-dtn-inline-loading[data-tone="error"] {
  color: #a33a2b;
}

.admin-dtn-inline-results {
  padding: 9px 10px 11px;
}

.admin-dtn-inline-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 2px 7px;
  color: #526b66;
  font-size: 0.72rem;
}

.admin-dtn-inline-results-head strong {
  color: #0b5d75;
  font-size: 0.78rem;
}

.admin-dtn-inline-results-table {
  min-width: 760px;
  background: #ffffff;
}

.admin-dtn-detail-button[aria-expanded="true"] {
  border-color: #0b7285;
  background: #e7f4f5;
  color: #075d6b;
}

.admin-dtn-summary-loading {
  margin: 0;
  padding: 28px 16px;
  color: #5f746f;
  text-align: center;
}

.admin-dtn-summary-loading[data-tone="error"] {
  color: #a33b2b;
}

.admin-dtn-summary-list {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f3f7f6;
}

.admin-dtn-summary-group {
  overflow: hidden;
  border: 1px solid #dce7e4;
  border-radius: 7px;
  background: #ffffff;
}

.admin-dtn-summary-group-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #e4ecea;
  cursor: pointer;
  list-style: none;
}

.admin-dtn-summary-group-head::-webkit-details-marker {
  display: none;
}

.admin-dtn-summary-group-head::before {
  content: "+";
  flex: 0 0 auto;
  color: #0b7285;
  font-size: 1rem;
  font-weight: 900;
}

.admin-dtn-summary-group[open] > .admin-dtn-summary-group-head::before {
  content: "−";
}

.admin-dtn-summary-group-head > div {
  display: grid;
  gap: 1px;
}

.admin-dtn-summary-group-head strong {
  color: #0b5d75;
  font-size: 0.88rem;
}

.admin-dtn-summary-group-head span {
  color: #5f746f;
  font-size: 0.68rem;
}

.admin-dtn-summary-group-head b {
  border-radius: 999px;
  padding: 4px 8px;
  background: #dff2ef;
  color: #07576a;
  font-size: 0.7rem;
  white-space: nowrap;
}

.admin-dtn-summary-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.73rem;
}

.admin-dtn-summary-table th,
.admin-dtn-summary-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e4ecea;
  text-align: left;
  vertical-align: top;
}

.admin-dtn-summary-table th {
  background: #edf4f2;
  color: #455d58;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.admin-dtn-qualified-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-dtn-qualified-course {
  display: inline-grid;
  gap: 0;
  border-radius: 999px;
  padding: 3px 7px;
  border: 0;
  background: #eef6f4;
  color: #334f4a;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.admin-dtn-qualified-course > span {
  display: inline-flex;
  gap: 5px;
}

.admin-dtn-qualified-course strong {
  color: #0b5d75;
}

.admin-dtn-qualified-course small {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: #61746f;
  font-size: 0.64rem;
  line-height: 1.25;
  transition: max-height 150ms ease, margin-top 150ms ease, opacity 150ms ease;
}

.admin-dtn-qualified-course small b {
  color: #0b5d75;
  font-weight: 800;
}

.admin-dtn-qualified-course:hover,
.admin-dtn-qualified-course:focus-visible,
.admin-dtn-qualified-course[aria-expanded="true"] {
  border-radius: 8px;
  background: #e6f2ef;
}

.admin-dtn-qualified-course:hover small,
.admin-dtn-qualified-course:focus-visible small,
.admin-dtn-qualified-course[aria-expanded="true"] small {
  max-height: 1.5em;
  margin-top: 2px;
  opacity: 1;
}

.admin-dtn-summary-empty {
  margin: 0;
  padding: 14px;
  color: #5f746f;
  font-size: 0.75rem;
}

.admin-dtn-standards-table th,
.admin-dtn-standards-table td,
.admin-dtn-results-table th,
.admin-dtn-results-table td {
  border-right: 1px solid #e4ecea;
  border-bottom: 1px solid #e4ecea;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}

.admin-dtn-standards-table thead th,
.admin-dtn-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0b5d75;
  color: #ffffff;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.admin-dtn-standards-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 112px;
  background: #edf4f2;
  color: #173b35;
  white-space: nowrap;
}

.admin-dtn-standards-table thead th:first-child {
  z-index: 3;
  background: #0b5d75;
  color: #ffffff;
}

.admin-dtn-standards-table:not(.admin-dtn-edf-table) th:first-child {
  min-width: 68px;
}

.admin-dtn-standards-table td {
  min-width: 62px;
  padding: 3px;
  text-align: center;
  background: #ffffff;
}

.admin-dtn-standards-table .sex-f td {
  background: #fff6f5;
}

.admin-dtn-standards-table .sex-m td {
  background: #f2f8ff;
}

.admin-dtn-standards-table .sex-f th:first-child {
  background: #f7c9c5;
  color: #7d241d;
}

.admin-dtn-standards-table .sex-m th:first-child {
  background: #cfe3fa;
  color: #174f86;
}

.admin-dtn-category-code {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.admin-dtn-time {
  width: 100%;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 5px;
  background: transparent;
  color: #143b35;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-dtn-time:hover,
.admin-dtn-time:focus-visible,
.admin-dtn-time.active {
  border-color: #0b7285;
  background: #dff2ef;
  color: #07576a;
  outline: none;
}

.admin-dtn-no-time {
  color: #9aaba7;
}

.admin-dtn-qualifiers {
  overflow: hidden;
}

.admin-dtn-qualifiers[hidden] {
  display: none;
}

.admin-dtn-qualifiers-head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.admin-dtn-qualifiers > .admin-record-module-status {
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid #e4ecea;
  background: #f8fbfa;
  color: #455d58;
  font-size: 0.78rem;
}

.admin-dtn-results-table {
  min-width: 820px;
}

.admin-dtn-results-table td {
  max-width: 260px;
  line-height: 1.3;
}

.admin-dtn-result-time {
  color: #b63e32;
  font-weight: 900;
  white-space: nowrap;
}

.admin-dtn-empty {
  padding: 22px !important;
  color: #5f746f;
  text-align: center !important;
}

.admin-portal-records-view {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.admin-portal-import-view {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.admin-records-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
}

.admin-records-workspace-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-records-workspace-head h2 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.admin-module-workspace-head {
  padding: 13px 16px;
}

.admin-module-workspace-head h2 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.admin-records-workspace-head .ghost-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 220px;
}

.admin-record-module-status {
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: #5f746f;
  font-weight: 760;
}

.admin-record-module-status[data-tone="error"] {
  border-color: #f1b7a4;
  color: #9a3412;
  background: #fff7f4;
}

.admin-record-module-status[hidden] {
  display: none;
}

.admin-portal-records-view .admin-workbench {
  margin-top: 0;
}

.admin-portal-page.performance-admin-page .admin-portal-shell {
  width: min(1380px, calc(100% - var(--portal-page-gutter) - var(--portal-page-gutter)));
  margin: 28px auto 52px;
  padding: 0;
}

.admin-portal-page.performance-admin-page .admin-portal-session > .ghost-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 160px;
}

.admin-portal-workspace-head {
  padding: 4px 2px 2px;
}

.admin-portal-engagements-view > .admin-portal-workspace-head {
  border-left: 4px solid #2f7d6d;
  padding-left: 12px;
}

.admin-portal-engagements-view[data-engagements-mode="admin"] > .admin-portal-workspace-head {
  border-left-color: #0b7285;
}

.admin-portal-engagements-view[data-engagements-mode="club"] .admin-engagements-card-head > div > span {
  color: #2f7d6d;
}

.admin-portal-engagements-view[data-engagements-mode="admin"] .admin-engagements-card-head > div > span {
  color: #0b7285;
}

.admin-engagements-club-context {
  grid-area: context;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  align-items: baseline;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 3px;
  border-left: 3px solid #67aa9b;
  border-radius: 6px;
  padding: 4px 8px;
  background: #f1f8f6;
  color: #61757c;
  font-size: 0.72rem;
  line-height: 1.25;
}

.admin-engagements-club-context[hidden] {
  display: none;
}

.admin-engagements-club-context strong {
  color: #154f44;
  font-size: 0.76rem;
  font-weight: var(--portal-font-weight-bold);
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .admin-engagements-club-context {
    display: grid;
    gap: 1px;
    margin-bottom: 3px;
  }

  .admin-engagements-club-context strong {
    font-size: 0.74rem;
  }
}

.admin-portal-access-view .admin-access-preview,
.admin-portal-access-view .admin-access-list-panel {
  box-shadow: none;
}

.admin-portal-account-view[hidden],
.admin-portal-access-view[hidden],
.admin-portal-engagements-view[hidden],
.admin-portal-dtn-view[hidden],
.admin-portal-records-view[hidden],
.admin-portal-import-view[hidden],
.admin-portal-nav a[hidden] {
  display: none;
}

.admin-portal-nav-group[hidden] {
  display: none;
}

.admin-portal-session {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.admin-portal-session-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  min-width: 0;
}

.admin-portal-session-main > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.admin-portal-session-main > div span,
.admin-portal-session-main > div strong {
  display: inline;
}

.admin-portal-session-main > div strong {
  margin-top: 0;
  font-size: 0.98rem;
}

.admin-current-user-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #455d58;
  font-size: 0.82rem;
}

.admin-current-user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.admin-current-user-grid div {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.admin-current-user-grid dt {
  color: #5f746f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-current-user-grid dt::after {
  content: "";
}

.admin-current-user-grid dd {
  margin: 0;
  color: #12312d;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.admin-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-portal-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.admin-portal-card:hover {
  border-color: #0b7285;
  transform: translateY(-1px);
}

.admin-portal-card small {
  color: #5f746f;
  line-height: 1.45;
}

.admin-portal-card-muted {
  opacity: 0.78;
}

.admin-access-preview {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-engagements-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #dce7e4;
  overflow-x: auto;
}

.admin-engagements-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  background: transparent;
  color: #455d58;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.admin-engagements-tabs button:hover,
.admin-engagements-tabs button:focus-visible,
.admin-engagements-tabs button[aria-selected="true"] {
  border-color: #dce7e4;
  background: #f8fbfa;
  color: #12312d;
}

@media (max-width: 1080px) {
  .admin-portal-page {
    --portal-page-gutter: 12px;
    --portal-card-gutter: 10px;
    --portal-panel-gutter: 10px;
  }
}

@media (max-width: 700px) {
  .admin-portal-page {
    --portal-page-gutter: 8px;
    --portal-card-gutter: 8px;
    --portal-panel-gutter: 8px;
  }
}

/* Calendriers Club et Organisateur : tableau dense, puis mini-fiches mobiles. */
#adminEngagementsCalendarCard .admin-engagements-competitions-table {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  overflow: clip;
  background: #ffffff;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table-head,
#adminEngagementsCalendarCard .admin-engagements-competition {
  display: grid;
  grid-template-columns: 100px minmax(240px, 1.6fr) minmax(125px, 0.65fr) minmax(190px, 0.85fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 34px;
  border-bottom: 1px solid #d8e0e3;
  padding: 6px 10px;
  background: #edf2f3;
  color: #53666d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table-head > :nth-child(n + 3) {
  text-align: center;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group {
  display: grid;
  gap: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group > h4,
#adminEngagementsCalendarCard .admin-engagements-competition-group:first-child > h4 {
  margin: 0;
  border-bottom: 1px solid #dfe5e7;
  padding: 6px 10px;
  background: #f8fafb;
  color: #0b7285;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

#adminEngagementsCalendarCard .admin-engagements-competition {
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid #e5eaec;
  border-radius: 0;
  padding: 7px 10px;
  background: #ffffff;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group:last-child .admin-engagements-competition:last-child {
  border-bottom: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competition:hover {
  border-color: transparent;
  background: #f8fbfb;
}

#adminEngagementsCalendarCard .admin-engagements-competition.selected {
  border-color: transparent;
  border-radius: 0;
  background: #eef8f9;
  box-shadow: inset 3px 0 0 #0b7285;
}

#adminEngagementsCalendarCard .admin-engagements-competition-date {
  color: #23434c;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
}

#adminEngagementsCalendarCard .admin-engagements-competition-main,
#adminEngagementsCalendarCard .admin-engagements-competition-scope,
#adminEngagementsCalendarCard .admin-engagements-competition-status {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competition-scope {
  justify-items: center;
  text-align: center;
}

#adminEngagementsCalendarCard .admin-engagements-competition-main strong {
  overflow: hidden;
  color: #263940;
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
}

#adminEngagementsCalendarCard .admin-engagements-competition-location,
#adminEngagementsCalendarCard .admin-engagements-competition-scope small,
#adminEngagementsCalendarCard .admin-engagements-competition-status small {
  color: #62747a;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
}

#adminEngagementsCalendarCard .admin-engagements-competition-scope > span,
#adminEngagementsCalendarCard .admin-engagements-competition-entry-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef3f4;
  color: #4e6269;
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.35;
}

#adminEngagementsCalendarCard .admin-engagements-competition-entry-badge[data-entry-state="open"] {
  background: #dff4ed;
  color: #17634f;
}

#adminEngagementsCalendarCard .admin-engagements-competition-entry-badge[data-entry-state="closed"] {
  background: #edf0f1;
  color: #5f6d72;
}

#adminEngagementsCalendarCard .admin-engagements-competition-entry-badge[data-entry-state="upcoming"] {
  background: #e5f2f7;
  color: #245d70;
}

#adminEngagementsCalendarCard .admin-engagements-competition-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#adminEngagementsCalendarCard .admin-engagements-competition-status small[data-entry-status] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.35;
}

#adminEngagementsCalendarCard .admin-engagements-competition-actions {
  display: flex;
  justify-content: flex-end;
}

#adminEngagementsCalendarCard .admin-engagements-competition-actions button {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

@media (max-width: 1120px) and (min-width: 761px) {
  #adminEngagementsCalendarCard .admin-engagements-competitions-table-head,
  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-columns: 92px minmax(200px, 1fr) minmax(105px, 0.55fr) minmax(155px, 0.75fr) minmax(180px, 1fr);
  }

  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-areas: none;
  }
}

@media (max-width: 760px) {
  #adminEngagementsCalendarCard .admin-engagements-competitions-table {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table-head {
    display: none;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-group {
    gap: 7px;
    margin-bottom: 12px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-group > h4,
  #adminEngagementsCalendarCard .admin-engagements-competition-group:first-child > h4 {
    border: 0;
    padding: 4px 2px 0;
    background: transparent;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-areas:
      "date scope"
      "name name"
      "status status"
      "action action";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    min-height: 0;
    border: 1px solid #dfe5e7;
    border-radius: 9px;
    padding: 9px 10px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-group:last-child .admin-engagements-competition:last-child {
    border-bottom: 1px solid #dfe5e7;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition.selected {
    border-color: #77b6be;
    border-radius: 9px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-date { grid-area: date; }
  #adminEngagementsCalendarCard .admin-engagements-competition-main { grid-area: name; }
  #adminEngagementsCalendarCard .admin-engagements-competition-scope { grid-area: scope; justify-items: center; text-align: center; }
  #adminEngagementsCalendarCard .admin-engagements-competition-status {
    grid-area: status;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
  }
  #adminEngagementsCalendarCard .admin-engagements-competition-actions { grid-area: action; }

  #adminEngagementsCalendarCard .admin-engagements-competition-actions,
  #adminEngagementsCalendarCard .admin-engagements-competition-actions button {
    width: 100%;
  }
}

.admin-engagements-tab-panel {
  min-width: 0;
}

.admin-engagements-tab-panel[hidden] {
  display: none;
}

.admin-engagements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-engagements-scope-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-engagements-scope-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid #dce7e4;
  padding-top: 10px;
}

.admin-engagements-scope-list dt {
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-scope-list dd {
  margin: 0;
  color: #173b35;
  font-weight: 850;
}

.admin-engagements-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.admin-engagements-card-head button {
  min-height: 38px;
}

.admin-engagements-calendar-list {
  display: grid;
  gap: 10px;
}

.admin-engagements-calendar-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) minmax(150px, auto) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.admin-engagements-calendar-filters label {
  display: grid;
  gap: 6px;
  color: #455d58;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-engagements-calendar-filters select {
  min-height: 40px;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
}

.admin-engagements-calendar-filters button {
  min-height: 40px;
}

.admin-engagements-filter-check {
  display: flex;
  min-height: 40px;
  gap: 8px;
  align-items: center;
  align-self: end;
  border: 1px solid #dce7e4;
  border-radius: 7px;
  padding: 8px 10px;
  background: #f8fbfa;
}

.admin-engagements-filter-check[hidden] {
  display: none;
}

.admin-engagements-filter-check input {
  width: 18px;
  height: 18px;
}

.admin-engagements-request-list {
  display: grid;
  gap: 10px;
}

.admin-engagements-national-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid #dce7e4;
  padding-bottom: 8px;
}

.admin-engagements-national-tabs button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: #43615c;
  font-weight: 850;
  cursor: pointer;
}

.admin-engagements-national-tabs button[aria-selected="true"] {
  border-color: #0b7285;
  background: #e9f8fb;
  color: #075d6d;
}

.admin-engagements-national-tabs button:focus-visible {
  outline: 2px solid #0b7285;
  outline-offset: 2px;
}

.admin-engagements-national-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.35fr) auto;
  gap: 8px;
  align-items: end;
  margin: 8px 0 10px;
}

.admin-engagements-national-filters label {
  display: grid;
  gap: 4px;
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-national-filters input,
.admin-engagements-national-filters select {
  min-height: 34px;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  padding: 7px 9px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
  text-transform: none;
}

.admin-engagements-national-filters button {
  min-height: 34px;
  padding: 0 10px;
}

.admin-engagements-national-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 6px 0 10px;
}

.admin-engagements-national-bulk-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.admin-engagements-national-bulk-actions span {
  color: #5f746f;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-engagements-national-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
}

.admin-engagements-national-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-engagements-national-table th,
.admin-engagements-national-table td {
  border-bottom: 1px solid #e2ece9;
  padding: 5px 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-engagements-national-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f8f7;
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-national-table tbody tr:hover {
  background: #f7fbfb;
}

.admin-engagements-national-swimmer-row[data-active="false"] {
  background: #fff8f2;
}

.admin-engagements-national-swimmer-row[data-merged="true"] {
  color: #6d7f7a;
  background: #f6f7f7;
}

.admin-engagements-national-choice {
  width: 74px;
  text-align: center;
}

.admin-engagements-national-choice input {
  width: 16px;
  height: 16px;
}

.admin-engagements-duplicate-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 1px 8px;
  background: #eef6f5;
  color: #43615c;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-engagements-duplicate-badge[data-score="high"] {
  background: #ffe9df;
  color: #9b2c10;
}

.admin-engagements-duplicate-badge[data-score="medium"] {
  background: #fff5d6;
  color: #75540c;
}

.admin-engagements-national-table-actions {
  display: flex;
  gap: 5px;
}

.admin-engagements-national-table-actions button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.admin-engagements-national-audit-table {
  min-width: 760px;
}

.admin-engagements-national-audit-table td {
  white-space: normal;
}

.admin-engagements-national-audit-table small {
  display: block;
  color: #6d827d;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-engagements-national-merge-row > td {
  padding: 8px;
  background: #f8fbfa;
}

.admin-engagements-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.85fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.admin-engagements-request-card.admin-engagements-national-swimmer-card,
.admin-engagements-request-card.admin-engagements-national-person-card {
  grid-template-columns: minmax(180px, 1.25fr) minmax(180px, 0.9fr) auto;
  padding: 8px 10px;
}

.admin-engagements-request-main,
.admin-engagements-request-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-engagements-request-main strong {
  color: #12312d;
}

.admin-engagements-request-main small,
.admin-engagements-request-meta span {
  color: #5f746f;
  font-size: 0.78rem;
}

.admin-engagements-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-engagements-request-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 4px;
  color: #5f746f;
  font-size: 0.82rem;
}

.admin-engagements-access-request-edit {
  margin-top: 12px;
  border-top: 1px solid #dce7e4;
  padding-top: 12px;
}

.admin-access-wide-field {
  grid-column: 1 / -1;
}

.admin-portal-login-access {
  width: 100%;
  margin-top: 2px;
  border-top: 1px solid #dce7e4;
  padding-top: 8px;
}

.admin-portal-login-access summary {
  cursor: pointer;
  color: #0b7285;
  font-weight: 700;
  font-size: 0.88rem;
}

.admin-portal-login-access .admin-access-form {
  gap: 8px;
  margin-top: 8px;
}

.admin-portal-login-access .admin-access-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 8px;
}

.admin-portal-login-access .admin-access-form label {
  gap: 3px;
  font-size: 0.76rem;
}

.admin-portal-login-access .admin-access-form input,
.admin-portal-login-access .admin-access-form select,
.admin-portal-login-access .admin-access-form textarea {
  min-height: 34px;
  border-radius: 7px;
  padding: 0 9px;
  font-size: 0.82rem;
}

.admin-portal-login-access .admin-access-form textarea {
  min-height: 52px;
  padding-top: 7px;
  resize: vertical;
}

.admin-portal-login-access .admin-access-wide-field {
  grid-column: 1 / -1;
}

#adminEngagementsCalendarCard .admin-engagements-competition[data-competition-type="pool"] {
  border-left: 3px solid #91bcc5;
}

#adminEngagementsCalendarCard .admin-engagements-competition[data-competition-type="openWater"] {
  border-left: 3px solid #8dbb9d;
}

#adminEngagementsCalendarCard .admin-engagements-competition-type {
  width: fit-content;
  color: #537078;
  font-size: 0.72rem;
  font-weight: 750;
}

#adminEngagementsCalendarCard .admin-engagements-competition[data-competition-type="openWater"] .admin-engagements-competition-type {
  color: #47745a;
}

.admin-engagements-open-water-library {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid #dbe7df;
  border-radius: 9px;
  padding: 12px;
  background: #f8fbf9;
}

.admin-engagements-open-water-library[hidden] {
  display: none;
}

.admin-engagements-open-water-library-head {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.admin-engagements-open-water-library-head > div,
.admin-engagements-open-water-course-creator label {
  display: grid;
  gap: 3px;
}

.admin-engagements-open-water-library-head small {
  color: #607169;
}

.admin-engagements-open-water-course-creator {
  display: grid;
  grid-template-columns: 125px 145px auto;
  align-items: end;
  gap: 8px;
}

.admin-engagements-open-water-course-creator label > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-engagements-open-water-course-creator input {
  width: 100%;
}

.admin-engagements-open-water-course-list {
  overflow-x: auto;
}

.admin-engagements-open-water-course-list table {
  width: 100%;
  min-width: 410px;
  border-spacing: 0;
  border: 1px solid #d5e2d9;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.admin-engagements-open-water-course-list th,
.admin-engagements-open-water-course-list td {
  border-right: 1px solid #e2ebe5;
  border-bottom: 1px solid #e2ebe5;
  padding: 4px 7px;
  text-align: center;
}

.admin-engagements-open-water-course-list tr:last-child > * {
  border-bottom: 0;
}

.admin-engagements-open-water-course-list tr > *:last-child {
  border-right: 0;
}

.admin-engagements-open-water-course-list thead th {
  background: #eef5f1;
  color: #456159;
  font-size: 0.75rem;
}

.admin-engagements-open-water-course-list tbody th {
  color: #12312d;
  font-size: 0.78rem;
  text-align: left;
  white-space: nowrap;
}

.admin-engagements-open-water-course-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.admin-engagements-open-water-course-actions[data-open-water-course-active="false"] {
  opacity: 0.68;
}

.admin-engagements-open-water-course-add,
.admin-engagements-open-water-course-status {
  display: inline-grid;
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  place-items: center;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
}

.admin-engagements-open-water-course-status {
  width: 20px;
  min-width: 20px;
  min-height: 20px;
  border: 0;
  background: transparent;
  color: #61766f;
  font-size: 0.85rem;
  opacity: 0.3;
}

.admin-engagements-open-water-course-actions:hover .admin-engagements-open-water-course-status,
.admin-engagements-open-water-course-status:focus-visible {
  opacity: 1;
}

.admin-engagements-open-water-course-add[data-open-water-course-selected="true"] {
  border-color: #b9d7c6;
  background: #e8f3ec;
  color: #3f7157;
}

.admin-engagements-open-water-course-add:disabled,
.admin-engagements-open-water-course-status:disabled {
  cursor: default;
}

.admin-engagements-open-water-unavailable {
  color: #a3b0ab;
}

.admin-engagements-open-water-label-short {
  display: none;
}

.admin-engagements-open-water-action-short {
  display: none;
}

.admin-engagements-open-water-empty {
  margin: 0;
  padding: 12px;
  color: #607169;
}

.admin-engagements-club-entry-count {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  color: #385158;
  font-weight: 800;
}

@media (max-width: 720px) {
  .admin-engagements-open-water-library-head {
    grid-template-columns: 1fr;
  }

  .admin-engagements-open-water-course-creator {
    grid-template-columns: minmax(105px, 0.8fr) minmax(130px, 1fr) auto;
  }
}

@media (max-width: 520px) {
  .admin-engagements-open-water-library {
    padding: 8px;
  }

  .admin-engagements-open-water-course-creator {
    gap: 5px;
  }

  .admin-engagements-open-water-course-creator label {
    font-size: 0.72rem;
  }

  .admin-engagements-open-water-course-creator button {
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .admin-engagements-open-water-course-status {
    opacity: 0.6;
  }

  .admin-engagements-open-water-course-list table {
    min-width: 330px;
  }

  .admin-engagements-open-water-course-list th,
  .admin-engagements-open-water-course-list td {
    padding: 3px 5px;
  }

  .admin-engagements-open-water-label-full {
    display: none;
  }

  .admin-engagements-open-water-label-short {
    display: inline;
  }

  .admin-engagements-open-water-action-full {
    display: none;
  }

  .admin-engagements-open-water-action-short {
    display: inline;
  }
}

.admin-access-new-club-toggle > span:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #12312d;
  font-weight: 700;
}

.admin-portal-login-access .admin-access-form .admin-access-new-club-toggle input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
}

.admin-access-new-club-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
}

.admin-access-new-club-fields[hidden] {
  display: none;
}

.admin-access-new-club-fields legend {
  padding: 0 5px;
  color: #0b7285;
  font-weight: 800;
}

.admin-access-new-club-fields > small,
.admin-access-new-club-fields > .admin-access-wide-field {
  grid-column: 1 / -1;
}

.admin-portal-login-access .admin-portal-actions {
  gap: 8px;
}

.admin-portal-login-access .admin-portal-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.admin-portal-login-access .admin-portal-message {
  min-height: 16px;
  font-size: 0.78rem;
}

.admin-engagements-national-swimmer-card[data-active="false"] {
  background: #f7f9f8;
  border-color: #c7d7d3;
}

.admin-engagements-national-person-card[data-active="false"] {
  background: #f7f9f8;
  border-color: #c7d7d3;
}

.admin-engagements-national-swimmer-card[data-merged="true"],
.admin-engagements-national-person-card[data-merged="true"] {
  background: #fbfaf7;
  border-color: #d9cdb5;
}

.admin-engagements-national-swimmer-card[data-active="false"] .admin-engagements-request-main strong,
.admin-engagements-national-person-card[data-active="false"] .admin-engagements-request-main strong {
  color: #5f746f;
}

.admin-engagements-national-merge {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  border-top: 1px solid #dce7e4;
  padding-top: 8px;
}

.admin-engagements-national-merge label {
  display: grid;
  gap: 4px;
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-national-merge input,
.admin-engagements-national-merge select {
  min-height: 34px;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  padding: 7px 9px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
  text-transform: none;
}

.admin-engagements-national-merge-target {
  grid-column: 1 / -1;
}

.admin-engagements-empty {
  margin: 0;
  color: #5f746f;
}

.admin-engagements-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-engagements-form-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  min-width: 0;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.admin-engagements-form-section legend {
  margin-left: 8px;
  padding: 0 6px;
  color: #173b35;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-engagements-form-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.admin-engagements-form-section-grid > label:only-child {
  max-width: none;
}

.admin-engagements-form label {
  display: grid;
  gap: 6px;
  color: #455d58;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-engagements-form-section-grid > label {
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 46px;
  border-top: 1px solid #e7efed;
  padding: 7px 10px;
}

.admin-engagements-form-section-grid > label:first-child {
  border-top: 0;
}

.admin-engagements-form-section-grid > label > input,
.admin-engagements-form-section-grid > label > select {
  grid-column: 2;
  width: 100%;
}

.admin-engagements-form input,
.admin-engagements-form select {
  min-height: 40px;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
}

.admin-engagements-form input:disabled,
.admin-engagements-form select:disabled {
  background: #eef5f3;
  color: #5f746f;
}

.admin-engagements-field-note {
  grid-column: 2;
  margin-top: 4px;
  color: #5f746f;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-engagements-check {
  display: grid !important;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 40px;
}

.admin-engagements-check input {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  min-height: 0;
  width: 18px;
  height: 18px;
}

.admin-engagements-check span {
  grid-column: 1;
  grid-row: 1;
}

.admin-engagements-form .admin-portal-actions,
.admin-engagements-form .admin-portal-message {
  grid-column: 1 / -1;
}

.admin-engagements-empty,
.admin-engagements-competition {
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
}

.admin-engagements-empty {
  padding: 14px;
  color: #5f746f;
  font-weight: 760;
}

.admin-engagements-competition {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 120px 96px minmax(190px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.admin-engagements-competition.selected {
  border-color: #6aa89a;
  box-shadow: inset 3px 0 0 #2f7d6d;
}

.admin-engagements-competition time,
.admin-engagements-competition > span {
  color: #31524c;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-engagements-competition strong,
.admin-engagements-competition small {
  display: block;
}

.admin-engagements-competition small {
  color: #5f746f;
  line-height: 1.35;
}

.admin-engagements-competition [data-entry-status] {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef5f3;
}

.admin-engagements-competition [data-entry-status="open"] {
  background: #e4f7ec;
  color: #1d6b3f;
}

.admin-engagements-competition [data-entry-status="closing-soon"] {
  background: #fff4cf;
  color: #775711;
}

.admin-engagements-competition [data-entry-status="deadline-passed"] {
  background: #fbe7e7;
  color: #8a3030;
}

.admin-engagements-competition [data-entry-status="closed"] {
  background: #f3eeee;
  color: #7c3f3f;
}

.admin-engagements-competition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.admin-engagements-competition-actions button {
  min-height: 34px;
}

.admin-engagements-detail {
  display: grid;
  gap: 12px;
  border: 1px solid #cddbd8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.admin-engagements-detail[hidden] {
  display: none;
}

.admin-engagements-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.admin-engagements-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-engagements-detail-actions > button:not(.ghost-button) {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: #0b7285;
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.admin-engagements-detail-actions > button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.admin-engagements-detail-actions .admin-engagements-danger-button {
  border-color: #e1b2b2;
  color: #9d2f2f;
  background: #fff4f2;
}

.admin-engagements-detail-actions .admin-engagements-danger-button:hover,
.admin-engagements-detail-actions .admin-engagements-danger-button:focus-visible {
  border-color: #c95c5c;
  color: #7f1d1d;
  background: #ffe6e1;
}

.admin-engagements-detail-head span {
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-engagements-detail-head h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.admin-engagements-detail-subtitle {
  margin: 4px 0 0;
  color: #5f746f;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
}

.admin-engagements-edit-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  border: 1px solid #dce7e4;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f8fbfa;
  color: #455d58;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-engagements-edit-state[hidden] {
  display: none;
}

.admin-engagements-edit-state[data-state="editing"] {
  border-color: #b9dce5;
  background: #eef9fb;
  color: #0b6373;
}

.admin-engagements-edit-state[data-state="dirty"] {
  border-color: #eadb9d;
  background: #fff8df;
  color: #8a5a00;
}

.admin-engagements-edit-state[data-state="deletion-pending"] {
  border-color: #e1b2b2;
  background: #fff4f2;
  color: #9d2f2f;
}

.admin-engagements-detail-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-engagements-entry-status {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  margin-top: 7px;
  border: 1px solid #cfdadd;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f7fafb;
  color: #52636a;
  font-size: 0.69rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-engagements-entry-status[data-entry-status="open"] {
  border-color: #9ccfc0;
  background: #edf8f3;
  color: #176447;
}

.admin-engagements-entry-status[data-entry-status="closed"] {
  border-color: #d8c8a1;
  background: #fff8e8;
  color: #76570f;
}

.admin-engagements-entry-status:disabled {
  opacity: 1;
  cursor: default;
}

.admin-engagements-entry-status:not(:disabled):hover,
.admin-engagements-entry-status:not(:disabled):focus-visible {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.14);
  outline-offset: 1px;
}

.admin-engagements-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-engagements-detail-meta:empty {
  display: none;
}

.admin-engagements-detail-meta-item {
  min-width: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbfa;
}

.admin-engagements-card[data-detail-open="true"] {
  gap: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.admin-engagements-card[data-detail-open="true"] > .admin-engagements-card-head {
  display: none;
}

.admin-engagements-detail-meta-item span,
.admin-engagements-detail-meta-item strong {
  display: block;
}

.admin-engagements-detail-meta-item span {
  color: #5f746f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-detail-meta-item strong {
  margin-top: 3px;
  color: #173b35;
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.25;
}

.admin-engagements-detail-meta-item[data-meta-tone="open"] {
  border-color: #bfe6ca;
  background: #effaf3;
}

.admin-engagements-detail-meta-item[data-meta-tone="closing-soon"] {
  border-color: #eadb9d;
  background: #fff8df;
}

.admin-engagements-detail-meta-item[data-meta-tone="deadline-passed"] {
  border-color: #e8baba;
  background: #fff0f0;
}

.admin-engagements-detail-meta-item[data-meta-tone="closed"] {
  border-color: #ead0d0;
  background: #fbf1f1;
}

.admin-engagements-detail-meta-item[data-meta-tone="national"] {
  border-color: #cbd9ff;
  background: #f2f6ff;
}

.admin-engagements-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #dce7e4;
  overflow-x: auto;
}

.admin-engagements-detail-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 7px 10px;
  background: transparent;
  color: #455d58;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.admin-engagements-detail-tabs button:hover,
.admin-engagements-detail-tabs button:focus-visible,
.admin-engagements-detail-tabs button[aria-selected="true"] {
  border-color: #dce7e4;
  background: #f8fbfa;
  color: #12312d;
}

.admin-engagements-detail-tabs button[data-dirty="true"]::after {
  content: " *";
  color: #9a5b00;
  font-weight: 900;
}

.admin-engagements-detail-tabs button[data-warning="true"] {
  border-color: #eadb9d;
  background: #fff8df;
}

.admin-engagements-detail-tabs button[data-locked="true"] {
  color: #8a9996;
  background: #f6f8f7;
}

.admin-engagements-detail-tabs button[data-locked="true"]::after {
  content: " verrouille";
  color: #8a9996;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-engagements-detail-panel {
  min-width: 0;
}

.admin-engagements-detail-panel[hidden] {
  display: none;
}

.admin-engagements-events-form {
  display: grid;
  gap: 12px;
}

.admin-engagements-club-step-form {
  display: grid;
  gap: 12px;
}

.admin-engagements-club-step-form[data-locked="true"] {
  border: 1px dashed #dce7e4;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.admin-engagements-club-choice-list {
  display: grid;
  gap: 10px;
}

.admin-engagements-club-choice-list[hidden] {
  display: none;
}

.admin-engagements-club-team-primary-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-engagements-club-choice {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
  color: #12312d;
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.admin-engagements-club-choice input,
.admin-engagements-club-renunciation input {
  width: 18px;
  height: 18px;
}

.admin-engagements-club-team-picker {
  grid-column: 1 / -1;
}

.admin-engagements-club-renunciation {
  border: 1px solid #eadb9d;
  border-radius: 8px;
  padding: 10px;
  background: #fff8df;
}

.admin-engagements-club-team-validation {
  justify-content: flex-end;
}

.admin-engagements-club-team-validation[hidden] {
  display: none;
}

.admin-engagements-club-team-validation:has(button[hidden]) {
  display: none;
}

.admin-engagements-club-step {
  display: grid;
  gap: 6px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.admin-engagements-club-step strong {
  color: #12312d;
}

.admin-engagements-club-step p {
  margin: 0;
  color: #5f746f;
}

.admin-engagements-club-step[data-locked="true"] {
  border-style: dashed;
  background: #f8fbfa;
}

.admin-engagements-club-officials-list {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-engagements-club-officials-section {
  display: grid;
  gap: 4px;
  min-width: 420px;
}

.admin-engagements-club-officials-section h5 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-club-officials-section h5 span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e6f3f0;
  color: #0f5f57;
  font-size: 0.65rem;
}

.admin-engagements-club-officials-table {
  display: grid;
  gap: 2px;
  border: 1px solid #dce7e4;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-club-officials-head,
.admin-engagements-club-official-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 105px 120px;
  gap: 5px;
  align-items: center;
}

.admin-engagements-club-officials-head {
  padding: 5px 8px;
  background: #f5faf9;
  border-bottom: 1px solid #dce7e4;
  color: #5f746f;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-club-official-row {
  border-bottom: 1px solid #edf3f1;
  padding: 0 8px;
  background: #ffffff;
  min-height: 25px;
}

.admin-engagements-club-official-row[data-selected="true"] {
  background: #f1fbf9;
  box-shadow: inset 3px 0 0 #0b7285;
}

.admin-engagements-club-official-row > span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.admin-engagements-club-official-row input {
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.admin-engagements-club-official-row strong {
  color: #12312d;
  font-size: 0.79rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-search {
  display: grid;
  gap: 6px;
  color: #5f746f;
  font-weight: 850;
}

.admin-engagements-club-new-swimmer {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
}

.admin-engagements-club-new-swimmer summary {
  color: #12312d;
  cursor: pointer;
  font-weight: 900;
}

.admin-engagements-club-new-swimmer[open] {
  display: grid;
  gap: 10px;
}

.admin-engagements-club-swimmer-alerts {
  display: grid;
  gap: 8px;
}

.admin-engagements-club-swimmer-alert-list {
  display: grid;
  gap: 6px;
}

.admin-engagements-club-swimmer-alert-list article {
  border: 1px solid #eadb9d;
  border-radius: 8px;
  padding: 8px;
  background: #fff8df;
}

.admin-engagements-club-swimmer-alert-list strong,
.admin-engagements-club-swimmer-alert-list small {
  display: block;
}

.admin-engagements-club-swimmer-alert-list small {
  color: #5f746f;
  font-size: 0.78rem;
}

.admin-engagements-club-swimmers-list {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-engagements-club-swimmers-section {
  display: grid;
  gap: 3px;
  min-width: 520px;
}

.admin-engagements-club-swimmers-section h5 {
  margin: 0;
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-club-swimmers-section h5 span {
  color: #0b7285;
  font-weight: 900;
}

.admin-engagements-club-swimmers-section-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-club-swimmers-sex-filter {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid #d8e0e3;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-club-swimmers-sex-filter button {
  min-height: 28px;
  border: 0;
  border-left: 1px solid #e1e7e9;
  padding: 3px 9px;
  background: transparent;
  color: #52636a;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
}

.admin-engagements-club-swimmers-sex-filter button:first-child {
  border-left: 0;
}

.admin-engagements-club-swimmers-sex-filter button:hover {
  background: #f2f7f7;
  color: #0b7285;
}

.admin-engagements-club-swimmers-sex-filter button[aria-pressed="true"] {
  background: #0b7285;
  color: #ffffff;
}

.admin-engagements-club-swimmers-sex-filter button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(11, 114, 133, 0.24);
  outline-offset: -3px;
}

.admin-engagements-club-swimmers-section-empty {
  min-width: 0;
}

.admin-engagements-club-swimmers-inactive {
  display: grid;
  gap: 7px;
  min-width: 520px;
}

.admin-engagements-club-inactive-toggle {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0b7285;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-engagements-club-inactive-toggle:hover,
.admin-engagements-club-inactive-toggle:focus-visible {
  color: #075c6c;
}

.admin-engagements-club-inactive-toggle span {
  padding: 0;
  background: transparent;
  color: #0b7285;
  font-size: inherit;
}

.admin-engagements-club-inactive-toggle strong {
  font-weight: 900;
}

.admin-engagements-club-inactive-toggle i {
  width: 8px;
  height: 8px;
  margin: 0 2px 3px 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.admin-engagements-club-inactive-toggle[aria-expanded="true"] i {
  transform: rotate(225deg);
}

@media (max-width: 520px) {
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-sex-filter {
    display: flex;
    width: 100%;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-sex-filter button {
    flex: 1 1 0;
  }
}

.admin-engagements-club-swimmers-directory-tools {
  margin: 0;
}

.admin-engagements-club-swimmers-directory-tools label {
  display: grid;
  gap: 5px;
  color: #5f746f;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-engagements-club-swimmers-directory-tools input {
  min-height: 34px;
  border: 1px solid #ccdcd8;
  border-radius: 6px;
  padding: 6px 9px;
  color: #12312d;
  font: inherit;
  font-size: 0.88rem;
}

.admin-engagements-club-swimmers-directory-list {
  display: grid;
  gap: 6px;
}

.admin-engagements-club-swimmers-directory-table {
  display: grid;
  gap: 3px;
  overflow-x: auto;
}

.admin-engagements-club-swimmers-directory-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) 92px 48px 54px minmax(110px, 0.7fr) minmax(88px, auto);
  gap: 8px;
  align-items: center;
  min-width: 720px;
  border: 1px solid #dce7e4;
  border-radius: 6px;
  padding: 5px 8px;
  background: #ffffff;
  font-size: 0.82rem;
}

.admin-engagements-club-swimmers-directory-head {
  border-color: transparent;
  background: transparent;
  color: #5f746f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-club-swimmers-directory-row strong,
.admin-engagements-club-swimmers-directory-row small {
  display: block;
}

.admin-engagements-club-swimmers-directory-row strong {
  overflow: hidden;
  color: #12312d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-swimmers-directory-row small {
  overflow: hidden;
  color: #5f746f;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-entries-list {
  display: grid;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-engagements-club-relays-list {
  display: grid;
  gap: 6px;
  container-type: inline-size;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-engagements-club-relays-add {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.admin-engagements-club-swimmers-table,
.admin-engagements-club-entries-table {
  display: grid;
  gap: 3px;
  min-width: 760px;
}

.admin-engagements-club-swimmers-table {
  border: 1px solid #dce7e4;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-club-swimmers-head,
.admin-engagements-club-swimmer-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 82px 34px 42px minmax(155px, 0.4fr);
  gap: 5px;
  align-items: center;
}

.admin-engagements-club-swimmers-head {
  padding: 5px 8px;
  background: #f5faf9;
  border-bottom: 1px solid #dce7e4;
  color: #5f746f;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-club-entry-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid #edf3f1;
  border-radius: 5px;
  padding: 3px 6px;
  background: #ffffff;
}

.admin-engagements-club-entry-row[data-sex="F"] {
  background: #fff7fb;
}

.admin-engagements-club-entry-row[data-sex="M"] {
  background: #f5fbff;
}

.admin-engagements-club-entry-name {
  min-width: 0;
}

.admin-engagements-club-entry-name strong,
.admin-engagements-club-entry-name small {
  display: block;
}

.admin-engagements-club-entry-name strong {
  color: #12312d;
  font-size: 0.78rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-entry-name small {
  color: #5f746f;
  font-size: 0.62rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-swimmer-row {
  border: 0;
  border-bottom: 1px solid #edf3f1;
  border-radius: 0;
  padding: 1px 8px;
  background: #ffffff;
  min-height: 27px;
}

.admin-engagements-club-swimmer-row[data-sex="F"] {
  background: #fff7fb;
}

.admin-engagements-club-swimmer-row[data-sex="M"] {
  background: #f5fbff;
}

.admin-engagements-club-swimmer-row[data-selected="true"] {
  box-shadow: inset 3px 0 0 #0b7285;
}

.admin-engagements-club-swimmer-row > label:first-child {
  display: flex;
  gap: 5px;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
}

.admin-engagements-club-swimmer-row input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.admin-engagements-club-swimmer-row strong,
.admin-engagements-club-swimmer-row small {
  display: block;
}

.admin-engagements-club-swimmer-row strong {
  color: #12312d;
  font-size: 0.79rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-swimmer-row > span,
.admin-engagements-club-swimmer-details > span,
.admin-engagements-club-swimmer-license-value {
  color: #263940;
  font-size: 0.79rem;
  line-height: 1.1;
}

.admin-engagements-club-swimmer-row small {
  color: #5f746f;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-swimmer-row input[type="text"] {
  min-height: 20px;
  padding: 1px 6px;
  font-size: 0.79rem;
  line-height: 1.1;
}

.admin-engagements-club-swimmer-license-cell {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.admin-engagements-club-swimmer-license-cell small {
  display: block;
  min-width: 0;
  color: #5f746f;
  font-size: 0.58rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-swimmer-license-status {
  flex: 0 0 auto;
  color: #0b7285;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1;
}

.admin-engagements-club-swimmer-license-status[aria-label*="contrôler" i],
.admin-engagements-club-swimmer-license-status[aria-label*="vérifier" i],
.admin-engagements-club-swimmer-license-status[aria-label*="Rejetée" i],
.admin-engagements-club-swimmer-license-status[aria-label*="Conflit" i],
.admin-engagements-club-swimmer-license-status[aria-label*="invalide" i] {
  color: #b35a00;
}

.admin-engagements-club-swimmer-license-cell input {
  width: 100%;
  min-width: 0;
}

.admin-engagements-club-swimmer-license-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-swimmer-details {
  display: contents;
}

.admin-engagements-club-swimmer-mobile-meta,
.admin-engagements-club-swimmer-details-toggle {
  display: none;
}

.admin-engagements-club-swimmer-events {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  padding-top: 0;
}

.admin-engagements-club-swimmer-events[hidden] {
  display: none;
}

.admin-engagements-club-swimmer-events-head {
  display: none;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: #5f746f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-engagements-club-swimmer-events-grid {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-engagements-club-swimmer-event-choice {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 2px 4px;
  align-items: center;
  border: 1px solid #dce7e4;
  border-radius: 5px;
  min-width: 108px;
  min-height: 24px;
  padding: 1px 4px;
  background: #ffffff;
}

.admin-engagements-club-swimmer-event-choice[data-event-selected="true"] {
  border-color: #0b7285;
  background: #f7fcfd;
  min-width: 170px;
}

.admin-engagements-club-entry-time {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) auto;
  gap: 2px;
  align-items: center;
}

.admin-engagements-club-entry-time[hidden] {
  display: none;
}

.admin-engagements-club-entry-time-value {
  min-height: 20px;
  border: 1px solid #dce7e4;
  border-radius: 5px;
  padding: 2px 5px;
  background: #f8fbfa;
  color: #073b44;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.admin-engagements-club-entry-time-value[data-entry-time-mode="known"] {
  border-color: #b7d8c1;
  background: #f3fbf5;
  color: #20502c;
}

.admin-engagements-club-entry-time-value[data-entry-time-mode="manual"] {
  border-color: #d7c58b;
  background: #fffaf0;
  color: #6e4b00;
}

.admin-engagements-club-entry-time-value[data-entry-time-mode="default595999"] {
  border-color: #d7dfe3;
  background: #f7f9fa;
  color: #5d6b70;
}

.admin-engagements-club-entry-time-edit {
  min-height: 20px;
  min-width: 24px;
  padding: 1px 5px;
}

.admin-engagements-club-swimmer-events-grid label {
  display: flex;
  gap: 4px;
  align-items: center;
  color: #12312d;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-engagements-club-swimmer-events-grid input[type="checkbox"] {
  width: 13px;
  height: 13px;
}

.admin-engagements-club-swimmer-event-choice input[type="text"] {
  grid-column: 1 / -1;
  min-height: 22px;
  padding: 2px 5px;
  font-size: 0.72rem;
}

.admin-engagements-club-swimmer-event-choice small {
  display: none;
}

.admin-engagements-club-swimmer-events-empty {
  margin: 0;
  color: #6b7c78;
  font-size: 0.84rem;
}

.admin-engagements-club-relays-table {
  display: grid;
  gap: 3px;
  min-width: 920px;
}

.admin-engagements-club-relay-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 0.8fr) minmax(94px, 0.8fr) 82px minmax(190px, 1.25fr) 28px;
  gap: 4px;
  align-items: center;
  border: 1px solid #edf3f1;
  border-radius: 5px;
  padding: 3px 5px;
  background: #ffffff;
}

.admin-engagements-club-relay-row[data-gender="female"] {
  background: #fff7fb;
  box-shadow: inset 3px 0 0 #cf6f9b;
}

.admin-engagements-club-relay-row[data-gender="male"] {
  background: #f5fbff;
  box-shadow: inset 3px 0 0 #4f8fc5;
}

.admin-engagements-club-relay-row[data-gender="mixed"] {
  background: #f7fbf9;
}

.admin-engagements-club-relay-row select,
.admin-engagements-club-relay-row input[type="text"] {
  width: 100%;
  min-height: 24px;
  padding: 2px 6px;
  font-size: 0.72rem;
  line-height: 1.1;
}

.admin-engagements-club-relay-event {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-engagements-club-relay-event small {
  overflow: hidden;
  color: #6b7c82;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-relay-row [data-engagement-club-relay-gender][data-gender="female"] {
  border-color: #dc9cba;
  background: #fff7fb;
}

.admin-engagements-club-relay-row [data-engagement-club-relay-gender][data-gender="male"] {
  border-color: #91b9db;
  background: #f5fbff;
}

.admin-engagements-club-relay-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.admin-engagements-club-relay-compose {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-engagements-club-relay-compose small {
  overflow: hidden;
  color: #617279;
  font-size: 0.66rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-club-relay-compose button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  white-space: nowrap;
}

.admin-engagements-club-relay-compose svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-engagements-club-relay-members select[data-expected-sex="F"] {
  background: #fff7fb;
}

.admin-engagements-club-relay-members select[data-expected-sex="M"] {
  background: #f5fbff;
}

.admin-engagements-club-relay-remove {
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.admin-engagements-club-relay-issues {
  display: grid;
  gap: 4px;
  border: 1px solid #efc8bb;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff7f3;
  color: #8c2d12;
  font-size: 0.82rem;
}

.admin-engagements-club-relay-issues ul {
  margin: 0;
  padding-left: 18px;
}

.admin-engagements-club-person-form {
  display: grid;
  gap: 12px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.admin-engagements-club-person-form[hidden] {
  display: none;
}

.admin-engagements-club-person-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.admin-engagements-club-people-list {
  display: grid;
  gap: 0;
}

.admin-engagements-events-form[data-club-program-view="true"] {
  gap: 0;
}

.admin-engagements-events-form[data-club-program-view="true"] > .admin-engagements-events-head,
.admin-engagements-events-form[data-club-program-view="true"] #adminEngagementsProgramSection > summary,
.admin-engagements-events-form[data-club-program-view="true"] #adminEngagementsEventsMessage {
  display: none;
}

.admin-engagements-events-form[data-club-program-view="true"] #adminEngagementsProgramSection {
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-engagements-events-form[data-club-program-view="true"] #adminEngagementsProgramSection[open] {
  padding-bottom: 0;
}

.admin-engagements-events-form[data-club-program-view="true"] #adminEngagementsProgramSection > .admin-engagements-program-sessions {
  margin-right: 0;
  margin-left: 0;
}

.admin-engagements-events-section {
  display: grid;
  gap: 8px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
}

.admin-engagements-events-section[hidden] {
  display: none;
}

.admin-engagements-events-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  padding: 8px 10px;
  color: #173b35;
  cursor: pointer;
  list-style-position: inside;
}

.admin-engagements-events-section summary span {
  display: inline-grid;
  gap: 2px;
  margin-left: 5px;
  vertical-align: middle;
}

.admin-engagements-events-section summary strong,
.admin-engagements-events-section summary small {
  display: block;
}

.admin-engagements-events-section summary small {
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-engagements-section-toggle {
  min-height: 28px;
  padding: 0 9px;
  font-size: 0.72rem;
}

.admin-engagements-events-section[open] {
  padding-bottom: 8px;
}

.admin-engagements-events-section[data-warning="true"] summary small {
  color: #8a5a00;
}

.admin-engagements-events-section > fieldset,
.admin-engagements-events-section > .admin-engagements-program-head,
.admin-engagements-events-section > .admin-engagements-program-sessions {
  margin-right: 8px;
  margin-left: 8px;
}

.admin-engagements-events-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-events-head strong,
.admin-engagements-events-head small {
  display: block;
}

.admin-engagements-events-head small {
  margin-top: 3px;
  color: #5f746f;
  font-weight: 760;
}

.admin-engagements-events-head button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #0b7285;
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.admin-engagements-events-head button[hidden] {
  display: none;
}

.admin-engagements-events-head button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.admin-engagements-program-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-program-head strong,
.admin-engagements-program-head small {
  display: block;
}

.admin-engagements-program-head small {
  margin-top: 1px;
  color: #5f746f;
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-engagements-program-sessions {
  display: grid;
  gap: 5px;
}

.admin-engagements-program-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.admin-engagements-program-day-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-items: start;
}

.admin-engagements-program-builder-row {
  display: grid;
  grid-template-columns: minmax(164px, 0.3fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  align-self: start;
}

.admin-engagements-program-builder-row[data-has-palette="true"] {
  grid-column: 1 / -1;
}

.admin-engagements-program-builder-row[data-has-palette="false"] {
  grid-template-columns: 1fr;
}

.admin-engagements-program-available,
.admin-engagements-program-timeline,
.admin-engagements-program-available-slot {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-engagements-program-available-slot:empty {
  min-height: 1px;
}

.admin-engagements-program-available {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 5px;
  background: #f8fbfa;
}

.admin-engagements-program-available > strong {
  color: #173b35;
  font-size: 0.7rem;
}

.admin-engagements-program-available-event {
  display: grid;
  grid-template-columns: minmax(48px, 0.5fr) minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  border-top: 1px solid #dce7e4;
  padding-top: 4px;
}

.admin-engagements-program-available-event:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-engagements-program-available-event strong {
  color: #31524c;
  font-size: 0.68rem;
  line-height: 1.1;
}

.admin-engagements-program-available-event > div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.admin-engagements-program-session {
  display: grid;
  gap: 4px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 5px;
  background: #ffffff;
}

.admin-engagements-program-session[data-active="true"] {
  border-color: #6aa89a;
  box-shadow: inset 3px 0 0 #2f7d6d;
}

.admin-engagements-program-session-head,
.admin-engagements-program-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.95fr) 120px 78px auto;
  gap: 5px;
  align-items: end;
}

.admin-engagements-program-session-head label,
.admin-engagements-program-session-title {
  display: grid;
  gap: 2px;
  color: #455d58;
  font-size: 0.64rem;
  font-weight: 850;
}

.admin-engagements-program-session-title strong {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: #173b35;
  font-size: 0.78rem;
}

.admin-engagements-program-session-title span {
  color: #455d58;
}

.admin-engagements-program-read-value {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: #173b35;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-engagements-program-session input,
.admin-engagements-program-row select {
  min-height: 24px;
  border: 1px solid #cddbd8;
  border-radius: 5px;
  padding: 2px 5px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
  font-size: 0.72rem;
}

.admin-engagements-program-session input:disabled,
.admin-engagements-program-row select:disabled {
  background: #eef5f3;
  color: #5f746f;
}

.admin-engagements-program-rows {
  display: grid;
  gap: 3px;
}

.admin-engagements-program-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #e7efed;
  border-radius: 5px;
  padding: 2px 3px;
  background: #ffffff;
}

.admin-engagements-program-row-main {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.admin-engagements-program-row-main > span {
  min-width: 20px;
  color: #31524c;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-engagements-program-row-main > strong {
  min-width: 0;
  overflow: hidden;
  color: #173b35;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-program-row-main > i {
  color: #8a9b97;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
}

.admin-engagements-program-row-main > em {
  border: 1px solid #dce7e4;
  border-radius: 999px;
  padding: 1px 6px;
  background: #eef5f3;
  color: #31524c;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.admin-engagements-program-row-main > em[data-gender-tone="female"] {
  border-color: #f0cad8;
  background: #fff1f6;
  color: #9a315d;
}

.admin-engagements-program-row-main > em[data-gender-tone="male"] {
  border-color: #c8dcf6;
  background: #f1f7ff;
  color: #245c9a;
}

.admin-engagements-program-row-main > em[data-gender-tone="relay-mixed"] {
  border-color: #c9e4d2;
  background: #f0faf3;
  color: #256b3d;
}

.admin-engagements-program-row-main > em[data-gender-tone="combined"] {
  border-color: #eadb9d;
  background: #fff8df;
  color: #775711;
}

.admin-engagements-program-format {
  position: relative;
  flex: 0 0 auto;
}

.admin-engagements-program-format-trigger,
.admin-engagements-program-format-read-value {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  border: 1px solid #cddbd8;
  border-radius: 5px;
  padding: 2px 7px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 760;
}

.admin-engagements-program-format-trigger {
  cursor: pointer;
}

.admin-engagements-program-format-trigger i {
  font-size: 0.72rem;
  font-style: normal;
}

.admin-engagements-program-format-trigger:focus-visible {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

.admin-engagements-program-format-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 3px);
  left: 0;
  display: grid;
  min-width: 208px;
  overflow: hidden;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(29, 61, 56, 0.18);
}

.admin-engagements-program-format-menu[hidden] {
  display: none;
}

.admin-engagements-program-format-menu button {
  min-height: 30px;
  border: 0;
  border-bottom: 1px solid #e4ecea;
  padding: 5px 9px;
  background: #ffffff;
  color: #173b35;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 720;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.admin-engagements-program-format-menu button:last-child {
  border-bottom: 0;
}

.admin-engagements-program-format-menu button:hover,
.admin-engagements-program-format-menu button:focus-visible,
.admin-engagements-program-format-menu button[aria-current="true"] {
  background: #eef7f7;
  color: #0b7285;
  outline: 0;
}

.admin-engagements-program-phase {
  border: 1px solid #cddbd8;
  border-radius: 5px;
  padding: 3px 7px;
  background: #f4f8f7;
  color: #31524c;
  font-size: 0.7rem;
  line-height: 1.2;
}

.admin-engagements-program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
}

.admin-engagements-program-row > .admin-engagements-program-actions {
  flex-wrap: nowrap;
}

.admin-engagements-program-actions button {
  min-height: 22px;
  padding: 0 5px;
  font-size: 0.66rem;
}

.admin-engagements-program-available-event button {
  min-height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
}

.admin-engagements-program-available-event button:disabled,
.admin-engagements-program-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-engagements-events-form fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
}

.admin-engagements-events-form legend {
  padding: 0 6px;
  color: #31524c;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-engagements-events-section > fieldset {
  border: 0;
  border-radius: 0;
  padding: 4px 0 0;
}

.admin-engagements-events-section > fieldset legend {
  padding: 0;
}

.admin-engagements-events-list {
  display: grid;
  grid-template-columns: 1fr;
  overflow-x: auto;
}

.admin-engagements-events-table {
  display: grid;
  min-width: 520px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-event-row {
  display: grid;
  min-height: 28px;
  border-bottom: 1px solid #e7efed;
}

.admin-engagements-events-table-individual .admin-engagements-event-row {
  grid-template-columns: minmax(86px, 0.75fr) repeat(var(--engagement-category-count, 12), minmax(26px, 0.28fr));
}

.admin-engagements-events-table-relay .admin-engagements-event-row {
  grid-template-columns: minmax(86px, 0.75fr) minmax(44px, 0.34fr) minmax(58px, 0.42fr) repeat(var(--engagement-category-count, 10), minmax(26px, 0.28fr));
}

.admin-engagements-event-row:last-child {
  border-bottom: 0;
}

.admin-engagements-event-row[data-selected="true"] {
  background: #f8fbfa;
}

.admin-engagements-event-row-head {
  min-height: 28px;
  background: #eef5f3;
  color: #31524c;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-engagements-event-row-head > span,
.admin-engagements-event-row-head > div,
.admin-engagements-category-column-control,
.admin-engagements-event-main,
.admin-engagements-mixed-cell,
.admin-engagements-event-restrictions label,
.admin-engagements-category-blocked {
  border-right: 1px solid #e7efed;
}

.admin-engagements-event-row-head > span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.admin-engagements-event-row-head > span:first-child {
  justify-content: flex-start;
}

.admin-engagements-event-row-head > div,
.admin-engagements-event-restrictions {
  display: contents;
}

.admin-engagements-category-column-control,
.admin-engagements-event-restrictions label {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-engagements-category-column-control {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 2px;
  cursor: pointer;
}

.admin-engagements-category-column-control input {
  width: 12px;
  height: 12px;
  min-height: 0;
  margin: 0;
  accent-color: #0b7285;
}

.admin-engagements-category-column-control input:disabled {
  cursor: default;
  opacity: 0.38;
}

.admin-engagements-category-column-control span {
  line-height: 1;
}

.admin-engagements-event-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 3px 6px;
}

.admin-engagements-event-main input,
.admin-engagements-event-restrictions input {
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 0;
}

.admin-engagements-event-main strong,
.admin-engagements-event-main small {
  display: block;
}

.admin-engagements-event-main strong {
  color: #173b35;
  font-size: 0.74rem;
}

.admin-engagements-mixed-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #31524c;
  font-size: 0.68rem;
  font-weight: 850;
}

.admin-engagements-mixed-choice {
  min-width: 0;
  margin: 0;
  padding: 0 3px;
}

.admin-engagements-mixed-choice select {
  width: 100%;
  min-width: 0;
  min-height: 22px;
  border: 1px solid #cddbd8;
  border-radius: 5px;
  padding: 1px 2px;
  background: #ffffff;
  color: #31524c;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 850;
}

.admin-engagements-mixed-choice select:disabled {
  background: #eef5f3;
  color: #7d8e8a;
}

.admin-engagements-mixed-choice input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  accent-color: #0b7285;
}

.admin-engagements-event-main small {
  color: #5f746f;
  font-size: 0.68rem;
  font-weight: 760;
}

.admin-engagements-event-restrictions[hidden] {
  display: contents;
}

.admin-engagements-event-restrictions[hidden] label {
  opacity: 0.24;
  pointer-events: none;
}

.admin-engagements-event-restrictions label {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.admin-engagements-event-restrictions label:last-child,
.admin-engagements-category-blocked:last-child,
.admin-engagements-event-row-head > div .admin-engagements-category-column-control:last-child {
  border-right: 0;
}

.admin-engagements-event-restrictions span {
  display: none;
}

.admin-engagements-event-restrictions .admin-engagements-category-blocked {
  display: block;
}

.admin-engagements-event-restrictions input:disabled {
  opacity: 0.32;
}

/* Consultation : garder les coches natives et mettre en évidence les cellules retenues. */
.admin-engagements-event-restrictions input:disabled,
.admin-engagements-category-column-control input:disabled {
  opacity: 0.72;
}

.admin-engagements-event-restrictions label:has(input:checked),
.admin-engagements-category-column-control:has(input:checked) {
  background: #dcefeb;
}

.admin-engagements-category-blocked {
  display: block;
  min-height: 100%;
  border-right: 1px solid #e7efed;
  background: #eef1f0;
}

.admin-engagements-fees-form {
  display: grid;
  gap: 12px;
}

.admin-engagements-fees-form[data-readonly="true"] {
  gap: 10px;
}

.admin-engagements-no-fees-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafb;
  color: #40545c;
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-engagements-no-fees-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0b7285;
}

.admin-engagements-fees-grid[hidden],
.admin-engagements-payment-note[hidden] {
  display: none;
}

.admin-engagements-fees-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-engagements-fees-grid label {
  display: grid;
  gap: 6px;
  color: #455d58;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-engagements-fees-grid input {
  min-height: 40px;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  padding: 8px 10px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
}

.admin-engagements-read-value {
  display: none;
  min-height: 22px;
  color: #173b35;
  font-size: 0.86rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-engagements-fees-grid input:disabled {
  background: #eef5f3;
  color: #5f746f;
}

.admin-engagements-fees-form[data-readonly="true"] .admin-engagements-fees-grid {
  gap: 8px 14px;
}

.admin-engagements-fees-form[data-readonly="true"] .admin-engagements-fees-grid label {
  gap: 2px;
  border-bottom: 1px solid #edf4f2;
  padding-bottom: 7px;
}

.admin-engagements-fees-form[data-readonly="true"] .admin-engagements-fees-grid input:disabled {
  display: none;
}

.admin-engagements-fees-form[data-readonly="true"] .admin-engagements-read-value {
  display: block;
}

.admin-engagements-payment-note {
  margin: 0;
  border: 1px solid #e5d8b5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff9e8;
  color: #6f5715;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.4;
}

.admin-engagements-documents {
  display: grid;
  gap: 12px;
}

.admin-engagements-documents-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-documents-head strong,
.admin-engagements-documents-head small {
  display: block;
}

.admin-engagements-documents-head small,
.admin-engagements-documents-head span {
  color: #5f746f;
  font-weight: 760;
}

.admin-engagements-documents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.admin-engagements-documents-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid #dce7e4;
  padding-top: 10px;
}

.admin-engagements-documents-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-engagements-documents-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-documents-section-head strong,
.admin-engagements-documents-section-head small {
  display: block;
}

.admin-engagements-documents-section-head strong {
  color: #12312d;
  font-size: 0.95rem;
}

.admin-engagements-documents-section-head small {
  color: #5f746f;
  font-size: 0.78rem;
  font-weight: 740;
}

.admin-engagements-documents-list,
.admin-engagements-generated-files {
  display: grid;
  gap: 8px;
}

.admin-engagements-document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.admin-engagements-document-card strong,
.admin-engagements-document-card small {
  display: block;
}

.admin-engagements-document-card small {
  margin-top: 3px;
  color: #5f746f;
  font-size: 0.78rem;
  font-weight: 740;
}

.admin-engagements-document-card > span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef5f3;
  color: #31524c;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-engagements-document-card[data-document-status="generated"] > span {
  background: #e4f7ec;
  color: #1d6b3f;
}

.admin-engagements-document-card[data-document-status="sent"] > span {
  background: #e8f1ff;
  color: #24509b;
}

.admin-engagements-closure-card {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
}

.admin-engagements-closure-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-engagements-closure-card-head strong {
  font-size: 0.88rem;
}

.admin-engagements-closure-card-head span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef5f3;
  color: #31524c;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-engagements-closure-card[data-closure-status="sent"] .admin-engagements-closure-card-head span {
  background: #e8f1ff;
  color: #24509b;
}

.admin-engagements-closure-card[data-closure-status="warning"] .admin-engagements-closure-card-head span,
.admin-engagements-closure-card[data-closure-status="processing"] .admin-engagements-closure-card-head span {
  background: #fff4d6;
  color: #7b5a08;
}

.admin-engagements-closure-card[data-closure-status="failed"] .admin-engagements-closure-card-head span {
  background: #ffe7dc;
  color: #a12b0b;
}

.admin-engagements-closure-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}

.admin-engagements-closure-card dl > div {
  min-width: 0;
}

.admin-engagements-closure-card dt,
.admin-engagements-closure-card dd {
  margin: 0;
}

.admin-engagements-closure-card dt {
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-closure-card dd {
  margin-top: 2px;
  color: #0d2f2b;
  font-size: 0.84rem;
  font-weight: 820;
}

.admin-engagements-generated-files a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #dce7e4;
  border-radius: 7px;
  padding: 6px 9px;
  background: #ffffff;
  color: #0b7285;
  font-weight: 850;
}

.admin-engagements-advanced-actions {
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #fbfdfc;
}

.admin-engagements-advanced-actions summary {
  cursor: pointer;
  padding: 9px 10px;
  color: #31524c;
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-engagements-advanced-actions[open] summary {
  border-bottom: 1px solid #dce7e4;
}

.admin-engagements-advanced-actions > .admin-engagements-documents-actions,
.admin-engagements-advanced-actions > .admin-engagements-mail-jobs {
  padding: 10px;
}

.admin-engagements-advanced-actions > .admin-engagements-mail-jobs {
  padding-top: 0;
}

.admin-engagements-club-recap-files {
  display: grid;
  gap: 8px;
}

.admin-engagements-club-recap-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.admin-engagements-club-recap-head strong,
.admin-engagements-club-recap-head small {
  display: block;
}

.admin-engagements-club-recap-head small {
  color: #5f746f;
  font-size: 0.8rem;
  font-weight: 760;
}

.admin-engagements-club-recap-table {
  display: grid;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-club-recap-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 64px 64px 58px 92px 136px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 9px;
  border-top: 1px solid #e7efed;
  color: #173b35;
  font-size: 0.82rem;
}

.admin-engagements-club-recap-row[data-recap-pdf-ready="true"] {
  background: #fbfffe;
}

.admin-engagements-club-recap-row > span:last-child {
  display: grid;
  gap: 2px;
  align-items: center;
}

.admin-engagements-club-recap-row:first-child {
  border-top: 0;
}

.admin-engagements-club-recap-row-head {
  min-height: 32px;
  background: #f2f7f6;
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-club-recap-row strong,
.admin-engagements-club-recap-row small {
  display: block;
}

.admin-engagements-club-recap-row small {
  margin-top: 2px;
  color: #6b7f7a;
  font-size: 0.72rem;
  font-weight: 720;
}

.admin-engagements-mail-jobs {
  display: grid;
  gap: 8px;
}

.admin-engagements-mail-jobs-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.admin-engagements-mail-jobs-head strong,
.admin-engagements-mail-jobs-head small {
  display: block;
}

.admin-engagements-mail-jobs-head small {
  color: #5f746f;
  font-size: 0.8rem;
  font-weight: 760;
}

.admin-engagements-mail-jobs-table {
  display: grid;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-mail-jobs-row {
  display: grid;
  grid-template-columns: 92px minmax(220px, 1.4fr) minmax(150px, 0.8fr) 150px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px 9px;
  border-top: 1px solid #e7efed;
  color: #173b35;
  font-size: 0.8rem;
}

.admin-engagements-mail-jobs-row:first-child {
  border-top: 0;
}

.admin-engagements-mail-jobs-row-head {
  min-height: 30px;
  background: #f2f7f6;
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-mail-jobs-row strong,
.admin-engagements-mail-jobs-row small {
  display: block;
}

.admin-engagements-mail-jobs-row small {
  margin-top: 2px;
  color: #6b7f7a;
  font-size: 0.72rem;
  font-weight: 720;
}

.admin-engagements-mail-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff6dd;
  color: #76570f;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-engagements-mail-jobs-row[data-mail-status="ready"] .admin-engagements-mail-status {
  background: #e8f1ff;
  color: #24509b;
}

.admin-engagements-mail-jobs-row[data-mail-status="sent"] .admin-engagements-mail-status {
  background: #e4f7ec;
  color: #1d6b3f;
}

.admin-engagements-mail-jobs-row[data-mail-status="failed"] .admin-engagements-mail-status {
  background: #ffe9df;
  color: #9a3412;
}

.admin-engagements-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-engagements-detail-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  border-top: 1px solid #e7efed;
}

.admin-engagements-detail-list > div:first-child {
  border-top: 0;
}

.admin-engagements-detail-list dt {
  display: flex;
  align-items: center;
  border-right: 1px solid #e7efed;
  padding: 8px 10px;
  background: #f8fbfa;
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-engagements-detail-list dd {
  margin: 0;
  padding: 8px 10px;
  color: #173b35;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.admin-engagements-detail-list[hidden],
.admin-engagements-edit-form[hidden] {
  display: none;
}

.admin-engagements-club-summary {
  gap: 10px;
}

.admin-access-preview[hidden] {
  display: none;
}

.admin-access-list-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-access-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-access-list-head-actions,
.admin-access-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-access-list-head-actions button {
  min-height: 40px;
}

.admin-access-count {
  display: block;
  margin-top: 3px;
  color: #5f746f;
}

.admin-access-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #f9fbfa;
}

.admin-access-filters label {
  display: grid;
  gap: 5px;
  color: #455d58;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-access-filters input,
.admin-access-filters select,
.admin-access-filters button {
  min-height: 40px;
}

.admin-access-list {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.admin-access-table {
  min-width: 940px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  overflow: hidden;
}

.admin-access-table-head,
.admin-access-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.7fr) minmax(150px, 1.25fr) minmax(180px, 1.5fr) 90px 135px minmax(230px, auto);
  gap: 12px;
  align-items: center;
}

.admin-access-table-head {
  padding: 9px 12px;
  background: #eef5f3;
  color: #455d58;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-access-row {
  padding: 10px 12px;
  border-top: 1px solid #e3ece9;
  background: #fff;
}

.admin-access-row.inactive {
  background: #f6f7f7;
  color: #667773;
}

.admin-access-row strong,
.admin-access-row small {
  display: block;
}

.admin-access-row small {
  color: #5f746f;
  line-height: 1.35;
}

.admin-access-row > div {
  min-width: 0;
}

.admin-access-row .admin-access-login,
.admin-access-rights-summary {
  color: #31524c;
  font-size: 0.8rem;
  font-weight: 760;
}

.admin-access-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-access-status.active {
  background: #dff4ea;
  color: #16633f;
}

.admin-access-status.inactive {
  background: #ecefee;
  color: #5f6f6b;
}

.admin-access-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-access-row-actions button {
  min-height: 36px;
}

.admin-access-row-actions .danger-button {
  border-color: #e0b3a5;
  color: #9a3412;
}

.admin-access-row-actions .danger-button:hover,
.admin-access-row-actions .danger-button:focus-visible {
  border-color: #c2410c;
  background: #fff1ed;
}

.admin-access-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cddbd7;
  border-radius: 8px;
  background: #f9fbfa;
  color: #5f746f;
  font-weight: 760;
  text-align: center;
}

.admin-access-pagination {
  justify-content: center;
}

.admin-access-pagination span {
  min-width: 74px;
  color: #455d58;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.admin-access-form {
  grid-template-columns: 1fr;
}

.admin-access-section,
.admin-access-rights,
.admin-access-reset-choice,
.admin-access-submit,
#adminAccessMessage {
  grid-column: 1 / -1;
}

.admin-access-section {
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 14px;
}

.admin-access-section legend {
  padding: 0 6px;
  color: #5f746f;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-access-identity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-access-rights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 12px;
}

.admin-access-rights legend {
  padding: 0 6px;
  color: #5f746f;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-access-rights label,
.admin-access-reset-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #12312d;
}

.admin-access-rights input,
.admin-access-reset-choice input {
  min-height: 0;
  width: 18px;
  height: 18px;
}

.admin-portal-card[hidden],
[data-capability-panel][hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .admin-portal-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-portal-brand {
    grid-column: 2;
    justify-self: center;
  }

  .admin-portal-account-menu {
    grid-column: 3;
  }

  .admin-portal-grid,
  .admin-access-form,
  .admin-account-grid,
  .admin-engagements-grid {
    grid-template-columns: 1fr;
  }

  .admin-access-identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-account-scope-list {
    grid-template-columns: 1fr;
  }

  .admin-access-filters {
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr));
  }

  .admin-engagements-competition {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .admin-engagements-calendar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-engagements-request-card {
    grid-template-columns: 1fr;
  }

  .admin-engagements-national-filters {
    grid-template-columns: 1fr;
  }

  .admin-engagements-request-card.admin-engagements-national-swimmer-card,
  .admin-engagements-request-card.admin-engagements-national-person-card {
    grid-template-columns: 1fr;
  }

  .admin-engagements-national-merge {
    grid-template-columns: 1fr;
  }

  .admin-engagements-club-person-card {
    grid-template-columns: 1fr;
  }

  .admin-engagements-request-actions {
    justify-content: center;
  }

  .admin-engagements-competition-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-engagements-detail-list {
    grid-template-columns: 1fr;
  }

  .admin-engagements-detail-meta,
  .admin-engagements-form-section-grid {
    grid-template-columns: 1fr;
  }

  .admin-engagements-closure-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-engagements-events-list {
    grid-template-columns: 1fr;
  }

  .admin-engagements-fees-grid {
    grid-template-columns: 1fr;
  }

  .admin-engagements-document-card {
    grid-template-columns: 1fr;
  }

  .admin-engagements-program-builder,
  .admin-engagements-program-day-group,
  .admin-engagements-program-builder-row {
    grid-template-columns: 1fr;
  }

  .admin-engagements-program-available-slot:empty {
    display: none;
  }

  .admin-engagements-program-session-head {
    grid-template-columns: minmax(62px, 0.8fr) minmax(104px, 1.35fr) minmax(68px, 0.8fr);
  }

  .admin-engagements-program-session-head > .admin-engagements-program-actions {
    grid-column: 1 / -1;
  }

  .admin-engagements-program-session-head label,
  .admin-engagements-program-session-title,
  .admin-engagements-program-session-head input {
    min-width: 0;
  }

  .admin-engagements-program-session-head input {
    width: 100%;
  }

  .admin-engagements-program-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-engagements-program-actions {
    justify-content: flex-start;
  }

  .admin-engagements-program-row > .admin-engagements-program-actions {
    justify-content: flex-end;
  }

  .admin-engagements-form {
    grid-template-columns: 1fr;
  }

  .admin-portal-layout {
    grid-template-columns: 1fr;
  }

  .admin-portal-sidebar {
    position: static;
    padding: 8px;
  }

  .admin-portal-sidebar:not(.is-open) {
    display: none;
  }

  .admin-portal-nav-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid #dfe5e7;
    border-radius: 8px;
    padding: 9px;
    background: #ffffff;
    color: #12312d;
    cursor: pointer;
  }

  .admin-portal-nav-toggle:hover,
  .admin-portal-nav-toggle[aria-expanded="true"] {
    border-color: #8fc4ca;
    background: #eef7f8;
  }

  .admin-portal-nav-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .admin-portal-nav-current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .admin-portal-nav {
    display: none;
    width: 100%;
    margin-top: 6px;
  }

  .admin-portal-sidebar.is-open .admin-portal-nav {
    display: grid;
  }

  .admin-portal-nav-title {
    display: none;
  }

  .admin-portal-nav-group {
    display: grid;
    gap: 3px;
    padding: 5px 0 7px;
  }

  .admin-portal-nav-group + .admin-portal-nav-group {
    border-top: 1px solid #e7efed;
    border-left: 0;
  }

  .admin-portal-nav-group h2 {
    display: block;
  }

  .admin-portal-nav a {
    min-width: 0;
  }

  .admin-portal-nav a.active,
  .admin-portal-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 #0b7285;
  }

  .admin-records-workspace-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-records-workspace-head .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .admin-portal-session {
    align-items: stretch;
  }

  .admin-access-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-access-list-head-actions button {
    flex: 1 1 auto;
  }

  .admin-access-table {
    min-width: 0;
    border: 0;
    overflow: visible;
  }

  .admin-access-table-head {
    display: none;
  }

  .admin-access-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
    border: 1px solid #dce7e4;
    border-radius: 8px;
  }

  .admin-access-row > div::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #6a7e79;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .admin-access-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-access-row-actions button {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .admin-portal-topbar {
    gap: 8px 12px;
    padding: 12px 16px;
  }

  .admin-portal-topbar h1 {
    font-size: 1.25rem;
  }

  .admin-portal-federal-logo {
    width: 58px;
  }

  .admin-portal-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .admin-portal-account-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-portal-livepalmes-logo {
    display: none;
  }

  .admin-portal-shell {
    width: min(100% - 20px, 1120px);
    margin-top: 14px;
  }

  .admin-portal-page.performance-admin-page .admin-portal-shell {
    width: min(100% - 20px, 1120px);
    margin-top: 14px;
  }

  .admin-access-filters,
  .admin-engagements-calendar-filters,
  .admin-access-row {
    grid-template-columns: 1fr;
  }

  .admin-access-filters button,
  .admin-engagements-calendar-filters button,
  .admin-access-row-actions {
    width: 100%;
  }

  .admin-engagements-detail-list > div {
    grid-template-columns: 1fr;
  }

  .admin-engagements-detail-list dt {
    border-right: 0;
    border-bottom: 1px solid #eef4f2;
    padding-bottom: 4px;
  }

  .admin-engagements-detail-list dd {
    padding-top: 5px;
  }

  .admin-engagements-closure-card dl {
    grid-template-columns: 1fr;
  }

  .admin-engagements-club-recap-files,
  .admin-engagements-mail-jobs {
    overflow-x: auto;
  }

  .admin-engagements-club-recap-table,
  .admin-engagements-mail-jobs-table {
    min-width: 680px;
  }

  .admin-engagements-form-section-grid > label,
  .admin-engagements-check {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .admin-engagements-form-section-grid > label > input,
  .admin-engagements-form-section-grid > label > select,
  .admin-engagements-field-note,
  .admin-engagements-check input,
  .admin-engagements-check span {
    grid-column: 1;
  }

  .admin-engagements-check input {
    grid-row: 2;
  }

  .admin-access-row-actions {
    grid-column: auto;
  }

  .admin-portal-brand {
    gap: 8px;
  }

  .admin-portal-account-menu > button {
    min-height: 40px;
    padding: 0 10px;
  }

  .admin-portal-account-menu > button strong {
    display: none;
  }

  .admin-portal-account-short {
    display: inline;
  }

  .admin-portal-access-view {
    padding: 12px;
  }

  .admin-portal-dtn-view {
    padding: 12px;
  }

  .admin-access-identity-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Portail v2 — socle commun.
 * Les blocs de modules qui suivent sont ordonnes par cascade : ne pas les
 * deplacer sans controle visuel des vues desktop et mobile.
 */
.admin-portal-page {
  background: var(--portal-color-background);
  color: var(--portal-color-text);
}

.admin-portal-page .admin-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 14px;
  padding: 6px max(var(--portal-page-gutter), calc((100vw - var(--portal-shell-max)) / 2));
  border-color: var(--portal-color-header-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(18, 49, 45, 0.03);
  backdrop-filter: blur(10px);
}

.admin-portal-page .admin-portal-topbar h1 {
  color: var(--portal-color-brand);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 800;
  white-space: nowrap;
}

.admin-portal-page .admin-portal-brand {
  gap: 4px;
}

.admin-portal-page .admin-portal-federal-logo {
  width: 72px;
}

.admin-portal-page .admin-portal-livepalmes-logo {
  width: 42px;
}

.admin-portal-page .admin-portal-account-menu > button {
  min-height: 40px;
  border-color: var(--portal-color-field-border);
  color: #31454c;
}

.admin-portal-page .admin-portal-account-menu > button:hover,
.admin-portal-page .admin-portal-account-menu > button[aria-expanded="true"] {
  border-color: var(--portal-color-hover-border);
  background: #eef7f8;
}

.admin-portal-page .admin-portal-shell,
.admin-portal-page.performance-admin-page .admin-portal-shell {
  width: min(var(--portal-shell-max), calc(100% - var(--portal-page-gutter) - var(--portal-page-gutter)));
  margin: 18px auto 40px;
  padding: 0;
}

.admin-portal-page .admin-portal-layout {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
}

.admin-portal-page .admin-portal-login,
.admin-portal-page .admin-portal-session,
.admin-portal-page .admin-portal-card,
.admin-portal-page .admin-access-preview,
.admin-portal-page .admin-access-list-panel,
.admin-portal-page .admin-portal-account-view,
.admin-portal-page .admin-portal-access-view,
.admin-portal-page .admin-portal-engagements-view,
.admin-portal-page .admin-portal-dtn-view,
.admin-portal-page .admin-portal-records-view > .admin-portal-workspace-head,
.admin-portal-page .admin-portal-import-view > .admin-portal-workspace-head {
  border-color: #dfe5e7;
  border-radius: 10px;
  box-shadow: none;
}

.admin-portal-page .admin-portal-login {
  box-shadow: 0 12px 32px rgba(20, 48, 58, 0.08);
}

.admin-portal-page .admin-portal-sidebar {
  top: 62px;
  padding: 11px;
  border-color: #dfe5e7;
  border-radius: 10px;
  box-shadow: none;
}

.admin-portal-page .admin-portal-nav {
  gap: 3px;
}

.admin-portal-page .admin-portal-nav-title {
  padding: 7px 10px 5px;
  color: #7a888d;
}

.admin-portal-page .admin-portal-nav-group {
  gap: 3px;
  padding-block: 6px;
}

.admin-portal-page .admin-portal-nav-group + .admin-portal-nav-group {
  border-color: #edf0f1;
}

.admin-portal-page .admin-portal-nav-group h2 {
  padding: 5px 10px 3px;
  color: #7a888d;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.admin-portal-page .admin-portal-nav a,
.admin-portal-page .admin-portal-nav-parent {
  min-height: 40px;
  border-radius: 7px;
  padding: 8px 10px;
  color: #4f6067;
}

.admin-portal-page .admin-portal-nav a:has(.admin-portal-nav-icon),
.admin-portal-page .admin-portal-nav-parent {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
}

.admin-portal-page .admin-portal-nav a:hover,
.admin-portal-page .admin-portal-nav-parent:hover {
  background: #f0f6f7;
}

.admin-portal-page .admin-portal-nav a.active,
.admin-portal-page .admin-portal-nav a[aria-current="page"] {
  color: #075866;
  background: #e8f4f5;
  box-shadow: inset 3px 0 #0b7285;
}

.admin-portal-page .admin-portal-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #52727a;
  background: #f0f5f6;
}

.admin-portal-page .admin-portal-nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-portal-page .admin-portal-nav a.active .admin-portal-nav-icon,
.admin-portal-page .admin-portal-nav a[aria-current="page"] .admin-portal-nav-icon {
  color: #ffffff;
  background: #0b7285;
}

.admin-portal-page .admin-portal-nav-parent > span:last-child {
  display: inline;
  color: #87969b;
  font-size: 1rem;
  transition: transform 150ms ease;
}

.admin-portal-page .admin-portal-nav-parent {
  position: relative;
  cursor: pointer;
}

.admin-portal-page .admin-portal-nav-parent[aria-expanded="true"] > span:last-child {
  transform: rotate(180deg);
}

.admin-portal-page .admin-portal-nav-parent.active,
.admin-portal-page .admin-portal-nav-parent[aria-current="page"] {
  color: var(--portal-color-accent-strong);
  background: #e8f4f5;
  box-shadow: inset 3px 0 var(--portal-color-accent);
}

.admin-portal-page .admin-portal-nav-parent.active .admin-portal-nav-icon,
.admin-portal-page .admin-portal-nav-parent[aria-current="page"] .admin-portal-nav-icon {
  color: #ffffff;
  background: var(--portal-color-accent);
}

.admin-portal-page .admin-portal-nav-submenu {
  margin-left: 23px;
  padding-left: 13px;
  border-left-color: #dce6e8;
}

.admin-portal-page .admin-portal-nav-submenu > a {
  min-height: 34px;
  padding: 6px 9px;
  color: #607077;
}

@media (min-width: 1081px) and (max-width: 1439px) {
  .admin-portal-page .admin-portal-layout {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-portal-page .admin-portal-layout:has(.admin-portal-sidebar.is-pinned) {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .admin-portal-page .admin-portal-sidebar {
    z-index: 35;
    box-sizing: border-box;
    width: 64px;
    max-height: calc(100vh - 96px);
    padding: 7px;
    overflow: hidden;
    transition: width 180ms ease, box-shadow 180ms ease;
  }

  .admin-portal-page .admin-portal-sidebar:not(.is-collapsed-after-navigation):is(:hover, :focus-within, .is-pinned) {
    width: 248px;
    box-shadow: 0 16px 34px rgba(25, 52, 61, 0.14);
  }

  .admin-portal-page .admin-portal-nav {
    width: 232px;
    max-height: calc(100vh - 112px);
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .admin-portal-page .admin-portal-nav-head {
    min-height: 32px;
  }

  .admin-portal-page .admin-portal-nav-pin {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    padding: 0;
    opacity: 0;
    color: #66777e;
    background: transparent;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 120ms ease, color 120ms ease, background 120ms ease;
  }

  .admin-portal-page .admin-portal-nav-pin svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .admin-portal-page .admin-portal-sidebar:not(.is-collapsed-after-navigation):is(:hover, :focus-within, .is-pinned) .admin-portal-nav-pin {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-portal-page .admin-portal-nav-pin:hover,
  .admin-portal-page .admin-portal-nav-pin:focus-visible,
  .admin-portal-page .admin-portal-nav-pin[aria-pressed="true"] {
    color: var(--portal-color-accent-strong);
    background: #e8f4f5;
  }

  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-title,
  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-group h2,
  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav a > span:not(.admin-portal-nav-icon),
  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-parent > span:not(.admin-portal-nav-icon),
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-title,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-group h2,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav a > span:not(.admin-portal-nav-icon),
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-parent > span:not(.admin-portal-nav-icon) {
    opacity: 0;
    visibility: hidden;
  }

  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-title,
  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-group h2,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-title,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-group h2 {
    max-height: 0;
    padding-block: 0;
    overflow: hidden;
  }

  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-submenu,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-submenu {
    display: none;
  }

  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav a,
  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-parent,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav a,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-parent {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .admin-portal-page .admin-portal-sidebar.is-collapsed-after-navigation .admin-portal-nav-parent > .admin-pending-badge-nav,
  .admin-portal-page .admin-portal-sidebar:not(:hover):not(:focus-within):not(.is-pinned) .admin-portal-nav-parent > .admin-pending-badge-nav {
    position: absolute;
    top: 3px;
    left: 29px;
    min-width: 16px;
    height: 16px;
    padding-inline: 4px;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 0.58rem;
  }
}


@media (min-width: 1440px) {
  .admin-portal-page .admin-portal-layout,
  .admin-portal-page .admin-portal-layout:has(.admin-portal-sidebar.is-pinned) {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .admin-portal-page .admin-portal-sidebar {
    z-index: 35;
    box-sizing: border-box;
    width: 248px;
    max-height: calc(100vh - 96px);
    padding: 7px;
    overflow: hidden;
  }

  .admin-portal-page .admin-portal-nav {
    width: 232px;
    max-height: calc(100vh - 112px);
    padding-right: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .admin-portal-page .admin-portal-nav-head {
    min-height: 32px;
  }

  .admin-portal-page .admin-portal-nav-pin {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-portal-page .admin-portal-sidebar,
  .admin-portal-page .admin-portal-nav-pin {
    transition: none;
  }
}

.admin-portal-page .admin-portal-nav-club-link {
  border-bottom-color: #edf0f1;
}

.admin-portal-page .admin-portal-workspace {
  min-width: 0;
}

.admin-portal-page .admin-portal-workspace-head {
  padding: 14px 16px;
}

.admin-portal-page .admin-portal-workspace-head > span {
  color: #0b7285;
  letter-spacing: 0.06em;
}

.admin-portal-page .admin-portal-workspace-head h2 {
  margin: 4px 0 5px;
  color: #263940;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

.admin-portal-page .admin-portal-workspace-head p {
  color: #6b7b81;
  line-height: 1.45;
}

.admin-portal-page .admin-records-workspace-head,
.admin-portal-page .admin-module-workspace-head {
  min-height: 66px;
  padding: 14px 16px;
}

.admin-portal-page .admin-records-workspace-head h2,
.admin-portal-page .admin-module-workspace-head h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.admin-portal-page .admin-account-card,
.admin-portal-page .admin-engagements-card,
.admin-portal-page .admin-dtn-toolbar,
.admin-portal-page .admin-dtn-grid,
.admin-portal-page .admin-dtn-qualifiers,
.admin-portal-page .admin-record-module-status,
.admin-portal-page .import-card {
  border-color: var(--portal-color-border);
  border-radius: var(--portal-radius-card);
  box-shadow: none;
}

.admin-portal-page .admin-portal-actions button[type="submit"],
.admin-portal-page .admin-primary-button {
  background: var(--portal-color-accent);
}

.admin-portal-page .ghost-button {
  border-color: #d5dde0;
  color: #3f535b;
  background: #ffffff;
}

.admin-portal-page .ghost-button:hover {
  border-color: var(--portal-color-hover-border);
  color: var(--portal-color-accent-strong);
  background: #eef7f8;
}

.admin-portal-page button:focus-visible,
.admin-portal-page a:focus-visible,
.admin-portal-page input:focus-visible,
.admin-portal-page select:focus-visible,
.admin-portal-page textarea:focus-visible {
  outline: 2px solid var(--portal-color-accent);
  outline-offset: 2px;
}

.admin-portal-page :is(a[href], button, summary, [role="tab"]) {
  touch-action: manipulation;
}

.admin-portal-page .admin-portal-form input:focus,
.admin-portal-page .admin-access-form input:focus,
.admin-portal-page .admin-access-form select:focus,
.admin-portal-page .admin-account-form input:focus,
.admin-portal-page .admin-engagements-form input:focus,
.admin-portal-page .admin-engagements-form select:focus {
  border-color: #6eb4bc;
  box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.1);
}

@media (max-width: 1080px) {
  .admin-portal-page .admin-portal-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-portal-page .admin-portal-sidebar {
    position: static;
  }

  .admin-portal-page .admin-portal-nav-toggle {
    border: 1px solid #dfe5e7;
    background: #f4f8f8;
  }

  .admin-portal-page .admin-portal-nav-parent > span:last-child {
    display: inline;
  }
}

/* Finition des vues administratives et des etats transversaux du portail. */
#adminEngagementsCreatePanel .admin-engagements-card,
#adminEngagementsAccessRequestsPanel .admin-engagements-card,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card {
  gap: 16px;
  border-color: #dfe5e7;
  border-radius: 10px;
  padding: 0 0 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

#adminEngagementsCreatePanel .admin-engagements-card > div:first-child,
#adminEngagementsAccessRequestsPanel .admin-engagements-card-head,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card-head {
  min-height: 68px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e9eb;
}

#adminEngagementsCreatePanel .admin-engagements-card > div:first-child > span,
#adminEngagementsAccessRequestsPanel .admin-engagements-card-head span,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card-head span {
  color: #0b7285;
}

#adminEngagementsCreatePanel .admin-engagements-card h3,
#adminEngagementsAccessRequestsPanel .admin-engagements-card h3,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card h3 {
  color: #263940;
}

#adminEngagementsCreatePanel .admin-engagements-form,
#adminEngagementsAccessRequestsPanel .admin-engagements-card > .admin-portal-message,
#adminEngagementsAccessRequestsPanel .admin-engagements-request-list,
#adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card > .admin-portal-message,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card > .admin-engagements-request-list,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card > .admin-engagements-national-filters,
#adminEngagementsDeletionRequestsPanel .admin-engagements-card > .admin-engagements-national-bulk-actions {
  margin-right: var(--portal-card-gutter);
  margin-left: var(--portal-card-gutter);
}

#adminEngagementsCreatePanel .admin-engagements-form-section {
  border-color: #dfe5e7;
  border-radius: 9px;
}

#adminEngagementsCreatePanel .admin-engagements-form-section legend {
  color: #0b7285;
}

#adminEngagementsCreatePanel .admin-engagements-form-section-grid > label {
  min-height: 50px;
  border-color: #e7ecee;
  padding: 8px 12px;
  color: #52636a;
}

#adminEngagementsCreatePanel .admin-engagements-form-section-grid > label:nth-child(even) {
  background: #fbfcfc;
}

#adminEngagementsCreatePanel .admin-engagements-form input,
#adminEngagementsCreatePanel .admin-engagements-form select,
#adminEngagementsAccessRequestsPanel .admin-access-form input,
#adminEngagementsAccessRequestsPanel .admin-access-form select,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters input,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters select {
  border-color: #d8e0e3;
  background: #f8fafb;
}

#adminEngagementsCreatePanel .admin-engagements-form input:focus,
#adminEngagementsCreatePanel .admin-engagements-form select:focus,
#adminEngagementsAccessRequestsPanel .admin-access-form input:focus,
#adminEngagementsAccessRequestsPanel .admin-access-form select:focus,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters input:focus,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters select:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminEngagementsCreatePanel .admin-engagements-form > .admin-portal-actions {
  justify-content: flex-end;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-list,
#adminEngagementsDeletionRequestsPanel .admin-engagements-request-list {
  gap: 8px;
}

#adminEngagementsAccessRequestsPanel > .admin-engagements-card {
  border: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-card > .admin-portal-message,
#adminEngagementsAccessRequestsPanel .admin-engagements-request-list {
  margin-right: 0;
  margin-left: 0;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-card > .admin-portal-message {
  min-height: 0;
  margin-bottom: 8px;
  color: #607279;
  font-size: 0.8rem;
  font-weight: 650;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-card,
#adminEngagementsDeletionRequestsPanel .admin-engagements-request-card {
  border-color: #dfe5e7;
  border-radius: 9px;
  padding: 12px;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-card {
  grid-template-columns: minmax(220px, 1.15fr) minmax(220px, 1fr) auto auto;
  gap: 8px 14px;
  min-height: 58px;
  padding: 9px 10px;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-main,
#adminEngagementsAccessRequestsPanel .admin-engagements-request-scope {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-main strong,
#adminEngagementsAccessRequestsPanel .admin-engagements-request-scope strong,
#adminEngagementsAccessRequestsPanel .admin-engagements-request-main small,
#adminEngagementsAccessRequestsPanel .admin-engagements-request-scope small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-scope strong {
  color: #334c53;
  font-size: 0.84rem;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-scope small {
  color: #6c7d83;
  font-size: 0.75rem;
}

.admin-engagements-request-badges {
  display: flex;
  align-items: center;
}

.admin-access-request-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #e5c873;
  border-radius: 999px;
  padding: 2px 8px;
  color: #765509;
  background: #fff8df;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-actions {
  flex-wrap: nowrap;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-engagements-request-details {
  grid-column: 1 / -1;
  border-top: 1px solid #e8edef;
  padding-top: 7px;
  color: #617279;
  font-size: 0.77rem;
}

.admin-engagements-request-details summary {
  width: fit-content;
  cursor: pointer;
  color: #315f69;
  font-weight: 750;
}

.admin-engagements-request-details p {
  margin: 7px 0 0;
  line-height: 1.4;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-request-card:hover,
#adminEngagementsDeletionRequestsPanel .admin-engagements-request-card:hover {
  border-color: #b7d8dc;
  background: #fbfdfd;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  padding: 14px;
  background: #f8fafb;
}

.admin-access-request-review-dialog {
  width: min(760px, calc(100vw - 24px));
  padding: 0;
}

#adminEngagementsAccessRequestsPanel .admin-access-request-review-dialog .admin-engagements-access-request-edit {
  gap: 14px;
  margin: 0;
  border: 0;
  padding: 18px;
  background: #ffffff;
}

.admin-access-request-review-head {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8ea;
}

.admin-access-request-review-head span {
  color: #0b7285;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-access-request-review-head h3,
.admin-access-request-review-head p {
  margin: 0;
}

.admin-access-request-review-head p {
  color: #687980;
  font-size: 0.82rem;
}

#adminEngagementsAccessRequestsPanel .admin-access-request-review-dialog .admin-access-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#adminEngagementsAccessRequestsPanel .admin-access-request-review-dialog .admin-portal-actions {
  justify-content: flex-end;
}

#adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit .admin-access-identity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-tabs {
  flex-wrap: nowrap;
  gap: 6px;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 9px;
  overflow-x: auto;
  background: #f7f9fa;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border-color: #d8e0e3;
  border-radius: 8px;
  background: #ffffff;
  color: #50636a;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-tabs button[aria-selected="true"] {
  border-color: #0b7285;
  background: #0b7285;
  color: #ffffff;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  padding: 11px 12px;
  background: #f8fafb;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-bulk-actions {
  min-height: 48px;
  border: 1px solid #cfe3e6;
  border-radius: 9px;
  padding: 10px 12px;
  background: #f0f8f9;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-choice input {
  accent-color: #0b7285;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-table-wrap,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-table,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-merge {
  border-color: #dfe5e7;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-table th {
  background: #eef3f4;
  color: #52636a;
}

#adminEngagementsDeletionRequestsPanel .admin-engagements-national-table th,
#adminEngagementsDeletionRequestsPanel .admin-engagements-national-table td {
  border-color: #e4eaec;
  padding: 7px 9px;
}

#adminEngagementsDetailDocumentsPanel .admin-engagements-advanced-actions,
#adminEngagementsDetailDocumentsPanel .admin-engagements-closure-card,
#adminEngagementsDetailDocumentsPanel .admin-engagements-club-recap-table,
#adminEngagementsDetailDocumentsPanel .admin-engagements-mail-jobs-table {
  border-color: #dfe5e7;
  border-radius: 9px;
  box-shadow: none;
}

#adminEngagementsDetailDocumentsPanel .admin-engagements-advanced-actions {
  overflow: hidden;
  background: #f8fafb;
}

#adminEngagementsDetailDocumentsPanel .admin-engagements-advanced-actions summary {
  min-height: 46px;
  padding: 12px;
  color: #40545c;
}

#adminEngagementsDetailDocumentsPanel .admin-engagements-advanced-actions[open] summary {
  border-color: #e3e9eb;
  background: #f1f7f8;
}

#adminEngagementsDetailDocumentsPanel .admin-engagements-closure-card {
  padding: 12px;
  background: #f8fafb;
}

#adminEngagementsDetailDocumentsPanel .admin-engagements-club-recap-row-head,
#adminEngagementsDetailDocumentsPanel .admin-engagements-mail-jobs-row-head {
  background: #eef3f4;
  color: #52636a;
}

.admin-portal-page .admin-portal-message[data-tone="loading"] {
  color: #52636a;
}

.admin-portal-page .admin-portal-message[data-tone="ok"] {
  color: #17603e;
}

.admin-portal-page .admin-portal-message[data-tone="warning"] {
  color: #79590d;
}

.admin-portal-page .admin-portal-message[data-tone="error"] {
  color: #a4371b;
}

.admin-portal-page .admin-engagements-empty,
.admin-portal-page .admin-access-empty {
  border-color: #d8e0e3;
  border-radius: 9px;
  background: #f8fafb;
  color: #64747a;
}

.admin-portal-page #adminPortalLoginPanel {
  width: min(680px, 100%);
  border-color: #dfe5e7;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 16px 42px rgba(31, 55, 62, 0.08);
}

.admin-portal-page #adminPortalLoginPanel > div:first-child {
  padding-bottom: 4px;
  border-bottom: 1px solid #e7ecee;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-login-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-public-link {
  flex: 0 0 auto;
  padding: 3px 0;
  color: #0b7285;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-public-link:hover {
  color: #075b6a;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-experiment-notice {
  margin-top: -4px;
  border: 1px solid #cce3e6;
  border-radius: 9px;
  padding: 11px 13px;
  background: #f1f8f9;
  color: #40575d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-experiment-notice p {
  margin: 0;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-experiment-notice a {
  color: #0b7285;
  font-weight: 750;
}

.admin-portal-page #adminPortalLoginPanel > div:first-child span,
.admin-portal-page #adminPortalLoginPanel > div:first-child strong,
.admin-portal-page #adminPortalLoginPanel > div:first-child h2 {
  color: #0b7285;
}

.admin-portal-page #adminPortalLoginPanel > div:first-child strong,
.admin-portal-page #adminPortalLoginPanel > div:first-child h2 {
  margin-top: 5px;
  color: #263940;
  font-size: 1.25rem;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-form input,
.admin-portal-page #adminPortalLoginPanel .admin-access-form input,
.admin-portal-page #adminPortalLoginPanel .admin-access-form select,
.admin-portal-page #adminPortalLoginPanel .admin-access-form textarea {
  border-color: #d8e0e3;
  background: #f8fafb;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-login-access {
  border-color: #e3e9eb;
  border-radius: 9px;
  padding: 0;
  overflow: hidden;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-login-access summary {
  min-height: 46px;
  padding: 12px;
  background: #f8fafb;
  color: #0b7285;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-login-access[open] summary {
  border-bottom: 1px solid #e3e9eb;
  background: #f1f7f8;
}

.admin-portal-page #adminPortalLoginPanel .admin-portal-login-access .admin-access-form {
  margin: 0;
  padding: 12px;
}

@media (max-width: 1080px) {
  #adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit .admin-access-identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters {
    grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.5fr);
  }
}

@media (max-width: 700px) {
  .admin-portal-page #adminPortalLoginPanel .admin-portal-login-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #adminEngagementsCreatePanel .admin-engagements-card > div:first-child,
  #adminEngagementsAccessRequestsPanel .admin-engagements-card-head,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-card-head,
  #adminEngagementsAccessRequestsPanel .admin-engagements-request-card,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-request-card,
  #adminEngagementsAccessRequestsPanel .admin-engagements-request-actions,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-request-actions,
  #adminEngagementsCreatePanel .admin-engagements-form > .admin-portal-actions,
  #adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit .admin-portal-actions,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-national-bulk-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-request-card,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-request-card,
  #adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit .admin-access-identity-grid,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters {
    grid-template-columns: 1fr;
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-request-card {
    gap: 8px;
    padding: 11px;
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-request-badges {
    min-height: 0;
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-request-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-request-actions button {
    width: 100%;
  }

  #adminEngagementsAccessRequestsPanel .admin-access-request-review-dialog .admin-access-identity-grid {
    grid-template-columns: 1fr;
  }

  #adminEngagementsCreatePanel .admin-engagements-form-section-grid > label {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
  }

  #adminEngagementsCreatePanel .admin-engagements-form-section-grid > label > input,
  #adminEngagementsCreatePanel .admin-engagements-form-section-grid > label > select,
  #adminEngagementsCreatePanel .admin-engagements-field-note {
    grid-column: 1;
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-card-head button,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-card-head button,
  #adminEngagementsAccessRequestsPanel .admin-engagements-request-actions button,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-request-actions button,
  #adminEngagementsCreatePanel .admin-engagements-form > .admin-portal-actions button,
  #adminEngagementsAccessRequestsPanel .admin-engagements-access-request-edit .admin-portal-actions button,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-national-filters button,
  #adminEngagementsDeletionRequestsPanel .admin-engagements-national-bulk-actions button,
  #adminEngagementsDetailDocumentsPanel .admin-engagements-advanced-actions .admin-engagements-documents-actions button {
    width: 100%;
  }

  #adminEngagementsDetailDocumentsPanel .admin-engagements-closure-card dl {
    grid-template-columns: 1fr;
  }

  .admin-portal-page #adminPortalLoginPanel .admin-portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-portal-page #adminPortalLoginPanel .admin-portal-actions button,
  .admin-portal-page #adminPortalLoginPanel .admin-portal-login-access .admin-access-identity-grid {
    width: 100%;
  }

  .admin-portal-page #adminPortalLoginPanel .admin-portal-login-access .admin-access-identity-grid {
    grid-template-columns: 1fr;
  }
}

/* Annuaires club integres au langage visuel du portail. */
#adminEngagementsClubPeoplePanel .admin-engagements-card,
#adminEngagementsClubSwimmersPanel .admin-engagements-card {
  gap: 16px;
  border-color: #dfe5e7;
  border-radius: 10px;
  padding: 0 0 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
}

#adminEngagementsClubPeoplePanel .admin-engagements-card,
#adminEngagementsClubSwimmersPanel .admin-engagements-card {
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form,
#adminEngagementsClubSwimmersPanel .admin-engagements-card > .admin-portal-message,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-list {
  margin-right: var(--portal-card-gutter);
  margin-left: var(--portal-card-gutter);
}

#adminEngagementsClubPeoplePanel .admin-engagements-card > .admin-portal-message,
#adminEngagementsClubPeoplePanel .admin-engagements-club-people-list,
#adminEngagementsClubSwimmersPanel .admin-engagements-card > .admin-portal-message,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-list {
  margin-right: 0;
  margin-left: 0;
}

#adminEngagementsClubPeopleStatus:empty {
  display: none;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form {
  gap: 14px;
  border-color: #dfe5e7;
  border-radius: 9px;
  padding: 14px;
  background: #f8fafb;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form .admin-engagements-form-section-grid {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form .admin-engagements-club-person-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-identity-grid > label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: stretch;
  border-top: 1px solid #e7efed;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-identity-grid > label > input,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-identity-grid > label > select {
  grid-column: 1;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-source,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-roles {
  grid-column: 1 / -1;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e7ecee;
  background: #fbfcfc;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-source label {
  display: grid;
  gap: 5px;
  color: #52636a;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-source small {
  margin-top: 0;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results {
  display: grid;
  max-height: 230px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  overflow-y: auto;
  background: #ffffff;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results[hidden] {
  display: none;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #edf1f2;
  border-radius: 0;
  padding: 7px 10px;
  background: #ffffff;
  color: #243b42;
  text-align: left;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results button:first-child {
  border-top: 0;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results button:hover,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results button:focus-visible {
  background: #eef7f8;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results button:disabled {
  color: #7a898e;
  cursor: not-allowed;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-results button small {
  color: #64747a;
  font-size: 0.74rem;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-empty,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-more {
  margin: 0;
  padding: 9px 10px;
  color: #64747a;
  font-size: 0.76rem;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-more {
  border-top: 1px solid #edf1f2;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form input,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form select,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools input {
  border-color: #d8e0e3;
  background: #ffffff;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form input:focus,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-form select:focus,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools input:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-roles {
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e7ecee;
  background: #fbfcfc;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-roles label {
  min-height: 40px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-roles input {
  accent-color: #0b7285;
}

@media (max-width: 700px) {
  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-form .admin-engagements-club-person-identity-grid {
    grid-template-columns: 1fr;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-swimmer-source {
    grid-template-columns: 1fr;
  }
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-people-list {
  gap: 0;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-people-table {
  display: grid;
  gap: 0;
  max-height: 70vh;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  overflow: auto;
  background: #ffffff;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(125px, 0.65fr) minmax(150px, 0.85fr) 78px auto;
  gap: 8px;
  align-items: center;
  min-width: 790px;
  min-height: 42px;
  border-top: 1px solid #e7ecee;
  padding: 6px 10px;
  background: #ffffff;
  font-size: 0.82rem;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 36px;
  border-top: 0;
  background: #eef3f4;
  color: #52636a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-details {
  display: contents;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-toggle {
  display: none;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-row strong {
  overflow: hidden;
  color: #12312d;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-status,
#adminEngagementsClubPeoplePanel .admin-engagements-club-person-role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e9eff1;
  color: #52636a;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-status[data-active="true"] {
  background: #e7f6ef;
  color: #176447;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-status[data-active="false"] {
  background: #edf0f1;
  color: #687980;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-row > .admin-engagements-club-person-details > span:last-child {
  justify-self: end;
}

#adminEngagementsClubPeoplePanel .admin-engagements-request-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

#adminEngagementsClubPeoplePanel .admin-engagements-request-actions button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.78rem;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-row:not(.admin-engagements-club-person-head):hover {
  background: #f8fbfb;
}

#adminEngagementsClubPeoplePanel .admin-engagements-club-person-row[data-active="false"] {
  background: #f3f5f6;
  opacity: 0.76;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field {
  position: relative;
  display: block;
  min-width: 0;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field > svg {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #64747a;
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools label {
  color: #52636a;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field input {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  padding-inline: 34px 38px;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field input::-webkit-search-cancel-button {
  appearance: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field > button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  color: #64747a;
  cursor: pointer;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field > button[hidden] {
  display: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field > button:hover {
  background: #e8eef0;
  color: #263940;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field > button:focus-visible {
  outline: 3px solid rgba(11, 114, 133, 0.2);
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-search-field > button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter {
  display: inline-flex;
  align-items: stretch;
  min-height: 40px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter button {
  min-height: 38px;
  border: 0;
  border-left: 1px solid #e1e7e9;
  padding: 6px 12px;
  background: transparent;
  color: #52636a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter button:first-child {
  border-left: 0;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter button:hover {
  background: #f2f7f7;
  color: #0b7285;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter button[aria-pressed="true"] {
  background: #0b7285;
  color: #ffffff;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(11, 114, 133, 0.24);
  outline-offset: -3px;
}

#adminEngagementsClubSwimmersDirectoryStatus:empty {
  display: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-table {
  gap: 0;
  max-height: 70vh;
  overflow-anchor: none;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  overflow: auto;
  background: #ffffff;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row {
  grid-template-columns: minmax(210px, 1.4fr) 92px 48px 54px minmax(110px, 0.7fr) 166px;
  min-width: 796px;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #e7ecee;
  border-radius: 0;
  padding: 8px 10px;
  transition: background-color 120ms ease;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-separator {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 796px;
  padding: 4px 12px;
  border-top: 1px solid #d9e2e4;
  background: #f5f8f8;
  color: #36544f;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-separator span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #64747a;
  font-size: inherit;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-separator span::before {
  content: "·";
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-inactive-toggle {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  padding: 4px 12px;
  background: #f5f8f8;
  color: #36544f;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: left;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-inactive-toggle span {
  padding: 0;
  background: transparent;
  color: #64747a;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-inactive-toggle i {
  margin: 0 2px 3px 4px;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details {
  display: contents;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-license-content {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-toggle {
  display: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-name-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #12312d;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-profile-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #75868b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-name-button:hover,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-name-button:focus-visible {
  color: #0b7285;
  text-decoration-color: currentColor;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-license-missing {
  color: #8a6410;
  font-size: 0.76rem;
  font-weight: 650;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: flex-end;
  transform: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions {
  display: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-change-pending {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff1d6;
  color: #80580a;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-change-pending-short {
  display: inline;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-change-pending-long {
  display: none;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-delete-button,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-edit-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: #a23a3a;
  cursor: pointer;
  touch-action: manipulation;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  border: 1px solid #d5dddf;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f7f9f9;
  color: #68787d;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-button[data-engagement-club-swimmer-activity-status="inactive"] {
  border-color: #b9d4cf;
  background: #f3faf8;
  color: #176454;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-button[data-engagement-club-swimmer-activity-status="inactive"]:hover {
  border-color: #d6b785;
  background: #fff8ed;
  color: #8a5a14;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-button[data-engagement-club-swimmer-activity-status="active"]:hover {
  border-color: #79b7aa;
  background: #e4f5f1;
  color: #176454;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-button:focus-visible {
  outline: 3px solid rgba(23, 100, 84, 0.2);
  outline-offset: 1px;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-edit-button {
  color: #0b7285;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-edit-button:hover {
  border-color: #a9d7dd;
  background: #eaf8fa;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-edit-button:disabled {
  background: transparent;
  color: #8a999d;
  cursor: default;
  opacity: 0.65;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-delete-button:hover {
  border-color: #e4b8b8;
  background: #fff1f1;
  color: #842b2b;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-delete-button:focus-visible {
  outline: 3px solid rgba(162, 58, 58, 0.2);
  outline-offset: 1px;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-delete-button svg,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-edit-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-engagements-swimmer-change-requests {
  display: grid;
  gap: 8px;
  border: 1px solid #cfe1df;
  border-radius: 9px;
  padding: 10px;
  background: #f7fbfa;
}

.admin-engagements-swimmer-change-requests[hidden] {
  display: none;
}

.admin-engagements-swimmer-change-requests-head,
.admin-engagements-swimmer-change-request-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-swimmer-change-requests-head {
  cursor: pointer;
  list-style: none;
}

.admin-engagements-swimmer-change-requests-head::-webkit-details-marker {
  display: none;
}

.admin-engagements-swimmer-change-requests-head h4::before {
  display: inline-block;
  margin-right: 7px;
  color: #0b7285;
  content: "›";
  transition: transform 160ms ease;
}

.admin-engagements-swimmer-change-requests[open] .admin-engagements-swimmer-change-requests-head h4::before {
  transform: rotate(90deg);
}

.admin-engagements-swimmer-change-requests-head h4 {
  margin: 0;
  color: #183d38;
  font-size: 0.92rem;
}

.admin-engagements-swimmer-change-requests-head > span,
.admin-engagements-swimmer-change-request-head span {
  color: #60746f;
  font-size: 0.74rem;
}

.admin-engagements-swimmer-change-request-head .admin-engagements-request-status {
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff3c8;
  color: #76570b;
  font-weight: 750;
  white-space: nowrap;
}

.admin-engagements-swimmer-change-request {
  display: grid;
  gap: 9px;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.admin-engagements-swimmer-change-request-head > div {
  display: grid;
  gap: 2px;
}

.admin-engagements-swimmer-change-diff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-engagements-swimmer-change-diff > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  border-radius: 6px;
  padding: 6px 8px;
  background: #f6f8f8;
  font-size: 0.76rem;
}

.admin-engagements-swimmer-change-diff > div > span {
  color: #64747a;
  font-weight: 700;
}

.admin-engagements-swimmer-change-diff > div > del {
  overflow: hidden;
  color: #8b5050;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-swimmer-change-diff > div > del::after {
  float: right;
  color: #78908b;
  content: "→";
  text-decoration: none;
}

.admin-engagements-swimmer-change-diff > div > strong {
  overflow: hidden;
  color: #176352;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-swimmer-change-resolution-note {
  display: grid;
  gap: 4px;
  color: #52636a;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-engagements-swimmer-change-resolution-note input {
  min-height: 36px;
}

.admin-engagements-swimmer-correction-dialog {
  position: fixed;
  inset: 0;
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  border: 1px solid #cfdcda;
  border-radius: 10px;
  padding: 0;
  overflow: auto;
  background: #ffffff;
  color: #243b42;
  box-shadow: 0 24px 70px rgba(18, 49, 45, 0.24);
}

.admin-engagements-swimmer-correction-dialog:not([open]) {
  display: none;
}

.admin-engagements-swimmer-correction-dialog::backdrop {
  background: rgba(18, 38, 43, 0.48);
  backdrop-filter: blur(2px);
}

.admin-engagements-swimmer-correction-form {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.admin-engagements-swimmer-correction-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 -16px;
  border-bottom: 1px solid #e1e8e7;
  padding: 12px 16px;
  background: #ffffff;
}

.admin-engagements-swimmer-correction-head > div {
  display: grid;
  gap: 2px;
}

.admin-engagements-swimmer-correction-head strong {
  color: #153b36;
  font-size: 1rem;
}

.admin-engagements-swimmer-correction-head span {
  color: #60746f;
  font-size: 0.76rem;
}

.admin-engagements-swimmer-correction-head button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 1.2rem;
}

.admin-engagements-swimmer-correction-form fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  padding: 10px 12px 12px;
}

.admin-engagements-swimmer-correction-form legend {
  padding: 0 5px;
  color: #0b7285;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-engagements-swimmer-correction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-engagements-swimmer-correction-grid label,
.admin-engagements-swimmer-correction-reason {
  display: grid;
  gap: 5px;
  color: #52636a;
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-engagements-swimmer-correction-license {
  grid-column: 1 / -1;
  max-width: calc(50% - 5px);
}

.admin-engagements-swimmer-correction-grid input,
.admin-engagements-swimmer-correction-grid select,
.admin-engagements-swimmer-correction-reason textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfddda;
  border-radius: 7px;
  padding: 8px 10px;
  background: #f8fbfa;
  color: #243b42;
  font: inherit;
}

.admin-engagements-swimmer-correction-reason textarea {
  min-height: 76px;
  resize: vertical;
}

.admin-engagements-swimmer-correction-warning {
  margin: 0;
  border-left: 3px solid #d4a72c;
  padding: 7px 9px;
  background: #fff9e8;
  color: #6d5819;
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .admin-engagements-swimmer-change-request-head {
    align-items: flex-start;
  }

  .admin-engagements-swimmer-change-diff {
    grid-template-columns: 1fr;
  }

  .admin-engagements-swimmer-correction-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .admin-engagements-swimmer-correction-form {
    gap: 12px;
    padding: 0 12px 12px;
  }

  .admin-engagements-swimmer-correction-head {
    margin: 0 -12px;
    padding: 10px 12px;
  }

  .admin-engagements-swimmer-correction-grid {
    grid-template-columns: 1fr;
  }

  .admin-engagements-swimmer-correction-license {
    grid-column: auto;
    max-width: none;
  }

  .admin-engagements-swimmer-correction-form .admin-portal-actions button {
    width: 100%;
  }
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-sex="F"] {
  background: #fff7fb;
  box-shadow: inset 3px 0 0 #b01762;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-sex="M"] {
  background: #f5fbff;
  box-shadow: inset 3px 0 0 #1769aa;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row:not(.admin-engagements-club-swimmers-directory-head):hover {
  background: #f8fbfb;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-sex="F"]:hover {
  background: #fff2f7;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-sex="M"]:hover {
  background: #eff7ff;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-activity-status="inactive"] {
  background: #f7f8f8;
  box-shadow: inset 3px 0 0 #aab4b7;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-activity-status="inactive"] .admin-engagements-club-swimmers-directory-name-button,
#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-activity-status="inactive"] .admin-engagements-club-swimmers-directory-details > span:not(:last-child) {
  color: #6d7a7f;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-activity-status="inactive"] .admin-engagements-club-swimmers-directory-profile-icon {
  stroke: #9aa5a8;
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-activity-status="inactive"]:hover {
  background: #eef1f1;
}

@media (prefers-reduced-motion: reduce) {
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row {
    transition: none;
  }
}

#adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 36px;
  border-top: 0;
  background: #eef3f4;
  color: #52636a;
}

@media (max-width: 700px) {
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter {
    display: flex;
    width: 100%;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-filter button {
    flex: 1 1 0;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-form .admin-portal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-form .admin-portal-actions button {
    width: 100%;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-people-table {
    max-height: none;
    overflow: hidden;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-head {
    display: none;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-row:not(.admin-engagements-club-person-head) {
    display: block;
    min-width: 0;
    min-height: 44px;
    border-top: 1px solid #e7ecee;
    padding: 0;
    overflow: hidden;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-head + .admin-engagements-club-person-row {
    border-top: 0;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    padding: 8px 11px 8px 14px;
    background: transparent;
    color: #12312d;
    font: inherit;
    text-align: left;
    touch-action: manipulation;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-toggle-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-role-badge {
    display: block;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-chevron {
    color: #64747a;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 160ms ease;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-row[data-expanded="true"] .admin-engagements-club-person-chevron {
    transform: rotate(90deg);
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-toggle:focus-visible {
    outline: none;
    box-shadow: inset var(--portal-focus-ring);
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details {
    display: none;
    border-top: 1px solid #e7ecee;
    background: rgba(255, 255, 255, 0.78);
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-row[data-expanded="true"] .admin-engagements-club-person-details {
    display: grid;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 7px 11px 7px 14px;
    border-top: 1px solid #edf1f2;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:first-child {
    display: none;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:nth-child(2) {
    border-top: 0;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span::before {
    color: #64747a;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:nth-child(2)::before {
    content: "Licence";
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:nth-child(3)::before {
    content: "Rôle";
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:nth-child(4)::before {
    content: "Statut";
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:nth-child(5)::before {
    content: "Actions";
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-club-person-details > span:last-child {
    justify-self: stretch;
  }

  #adminEngagementsClubPeoplePanel .admin-engagements-request-actions {
    justify-content: flex-start;
  }

  @media (prefers-reduced-motion: reduce) {
    #adminEngagementsClubPeoplePanel .admin-engagements-club-person-chevron {
      transition: none;
    }
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-table {
    gap: 0;
    max-height: none;
    border: 1px solid #dfe5e7;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-activity-separator {
    min-width: 0;
    padding: 4px 11px;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-actions {
    transform: none;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-delete-button,
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-edit-button {
    width: 40px;
    height: 40px;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-head {
    display: none;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row:not(.admin-engagements-club-swimmers-directory-head) {
    display: block;
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-top: 1px solid #e7ecee;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-head + .admin-engagements-club-swimmers-directory-row {
    border-top: 0;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    padding: 8px 11px 8px 14px;
    background: transparent;
    color: #12312d;
    font: inherit;
    text-align: left;
    touch-action: manipulation;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-toggle > .admin-engagements-club-swimmers-directory-name-button {
    min-width: 0;
    min-height: 32px;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-toggle strong {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-toggle-meta {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions {
    display: flex;
    gap: 2px;
    align-items: center;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions .admin-engagements-club-swimmers-directory-delete-button,
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions .admin-engagements-club-swimmers-directory-edit-button {
    width: 32px;
    height: 32px;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions .admin-engagements-club-swimmers-directory-activity-button {
    min-height: 28px;
    padding-inline: 7px;
    font-size: 0.68rem;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions .admin-engagements-club-swimmers-directory-change-pending {
    white-space: nowrap;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions .admin-engagements-club-swimmers-directory-change-pending-long {
    display: none;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-mobile-actions .admin-engagements-club-swimmers-directory-change-pending-short {
    display: inline;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex-category {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-width: 47px;
    border: 1px solid #d7e1e3;
    border-radius: 999px;
    padding: 3px 7px;
    background: #edf2f3;
    color: #52636a;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-sex,
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-category {
    min-width: 0;
    padding: 0;
    background: transparent;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details-button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: transparent;
    color: #64747a;
    cursor: pointer;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-sex="F"] .admin-engagements-club-swimmers-directory-sex {
    color: #b01762;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-sex="M"] .admin-engagements-club-swimmers-directory-sex {
    color: #1769aa;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-chevron {
    color: #64747a;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 160ms ease;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-expanded="true"] .admin-engagements-club-swimmers-directory-chevron {
    transform: rotate(90deg);
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-name-button:focus-visible,
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details-button:focus-visible {
    outline: none;
    box-shadow: var(--portal-focus-ring);
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details {
    display: none;
    border-top: 1px solid #e7ecee;
    background: rgba(255, 255, 255, 0.78);
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-row[data-expanded="true"] .admin-engagements-club-swimmers-directory-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 11px 9px 14px;
    border-top: 1px solid #edf1f2;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:first-child {
    display: none;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(2),
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(5) {
    border-top: 0;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(3),
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(4),
  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(6) {
    display: none;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span::before {
    color: #64747a;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(2)::before {
    content: "Naissance";
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(3)::before {
    content: "Sexe";
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(4)::before {
    content: "Catégorie";
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(5)::before {
    content: "Licence";
  }

  #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-details > span:nth-child(6)::before {
    content: "Action";
  }

  @media (prefers-reduced-motion: reduce) {
    #adminEngagementsClubSwimmersPanel .admin-engagements-club-swimmers-directory-chevron {
      transition: none;
    }
  }
}

/* Courses, relais et recapitulatif integres au langage visuel du portail. */
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-list,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relays-list {
  gap: 8px;
  padding-bottom: 3px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relays-table {
  gap: 5px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row {
  border-color: #dfe5e7;
  border-radius: 8px;
  padding: 7px 9px;
  box-shadow: none;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row:hover,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row:hover {
  border-color: #b7d8dc;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row[data-sex="F"],
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row[data-gender="female"] {
  background: #fff8fb;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row[data-gender="female"] {
  box-shadow: inset 3px 0 0 #cf6f9b;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row[data-sex="M"],
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row[data-gender="male"] {
  background: #f7fbff;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row[data-gender="male"] {
  box-shadow: inset 3px 0 0 #4f8fc5;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row[data-gender="mixed"] {
  background: #f7fbf9;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-name strong {
  color: #263940;
  font-size: 0.8rem;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-swimmer-event-choice {
  min-height: 32px;
  border-color: #dfe5e7;
  border-radius: 7px;
  padding: 4px 6px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-swimmer-event-choice[data-event-selected="true"] {
  border-color: #77b6be;
  background: #f2f9fa;
  min-width: 190px;
}

#adminEngagementsDetailEntriesPanel input[type="checkbox"] {
  accent-color: #0b7285;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-time-value {
  display: flex;
  align-items: center;
  min-height: 26px;
  border-radius: 7px;
  padding: 4px 7px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-time-value[data-entry-time-mode="pending"] {
  border-color: #b8d9dd;
  background: #f2f9fa;
  color: #49666b;
  font-weight: 750;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-time-value[data-entry-time-mode="error"] {
  border-color: #e3b8b8;
  background: #fff5f5;
  color: #9b2c2c;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-time-edit {
  min-width: 30px;
  min-height: 28px;
  border-radius: 7px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-swimmer-event-choice input[type="text"],
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row select,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row input[type="text"] {
  min-height: 30px;
  border-color: #d8e0e3;
  border-radius: 6px;
  background: #ffffff;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-swimmer-event-choice input[type="text"]:focus,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row select:focus,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row input[type="text"]:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-inline-actions,
#adminEngagementsDetailEntriesPanel .admin-engagements-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relays-table {
  min-width: 760px;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row {
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 0.8fr) minmax(94px, 0.8fr) 82px minmax(210px, 1.35fr) 64px;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-readonly {
  align-items: start;
  background-image: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28));
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-event > strong,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-read-value > strong,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-compose-readonly > strong {
  color: #263940;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-read-value {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-read-value > small,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-compose-readonly > small {
  color: #6b7c82;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.1;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-compose-readonly > strong {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-member-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  color: #263940;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
  list-style: none;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-remove,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-edit,
#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-cancel-edit {
  min-width: 30px;
  min-height: 30px;
  border-radius: 7px;
  padding: 0;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-draft-notice {
  grid-column: 1 / -1;
  border-left: 3px solid #d49a18;
  padding: 5px 8px;
  background: #fff9e8;
  color: #72520d;
  font-size: 0.76rem;
  font-weight: 650;
}

#adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-issues {
  border-color: #efc8bb;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff7f3;
}

#adminEngagementsDetailSummaryPanel .admin-engagements-club-summary {
  gap: 10px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

#adminEngagementsDetailSummaryPanel .admin-engagements-club-summary > h3 {
  margin: 0;
  color: #263940;
  font-size: 0.95rem;
}

#adminEngagementsDetailSummaryPanel .admin-engagements-detail-list dd {
  font-size: 0.82rem;
  font-weight: 500;
}

#adminEngagementsDetailSummaryPanel .admin-engagements-club-summary > .admin-portal-message {
  margin: 0;
}

#adminEngagementsDetailSummaryPanel .admin-engagements-club-summary-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table {
    min-width: 100%;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-inline-actions,
  #adminEngagementsDetailEntriesPanel .admin-engagements-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-inline-actions button,
  #adminEngagementsDetailEntriesPanel .admin-engagements-inline-actions button {
    width: 100%;
  }

  #adminEngagementsDetailSummaryPanel .admin-engagements-club-summary > .admin-engagements-detail-list > div {
    grid-template-columns: 1fr;
  }

  #adminEngagementsDetailSummaryPanel .admin-engagements-club-summary > .admin-engagements-detail-list dt {
    border-right: 0;
    border-bottom: 1px solid #e3e9eb;
  }

  #adminEngagementsDetailSummaryPanel .admin-engagements-club-summary-actions button {
    width: 100%;
  }
}

/* Acteurs de la competition integres au langage visuel du portail. */
#adminEngagementsDetailTeamPanel .admin-engagements-club-choice,
#adminEngagementsDetailTeamPanel .admin-engagements-club-renunciation,
#adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-table,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-table {
  border-color: #dfe5e7;
  border-radius: 9px;
  box-shadow: none;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-choice {
  min-height: 46px;
  padding: 10px 12px;
  background: #f8fafb;
  color: #40545c;
  cursor: pointer;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-choice:hover,
#adminEngagementsDetailTeamPanel .admin-engagements-club-choice:focus-within {
  border-color: #8fc4ca;
  background: #f1f8f9;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-choice input,
#adminEngagementsDetailTeamPanel .admin-engagements-club-renunciation input,
#adminEngagementsDetailOfficialsPanel input[type="checkbox"],
#adminEngagementsDetailSwimmersPanel input[type="checkbox"] {
  accent-color: #0b7285;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid > label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid > label > input,
#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid > label > select {
  grid-column: 1;
  min-height: 36px;
  padding-block: 6px;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-club-team-search {
  grid-column: 1;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonFields {
  grid-template-columns: minmax(0, 640px);
  gap: 10px;
  max-width: 680px;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults {
  display: grid;
  grid-column: 1;
  max-height: 230px;
  overflow: auto;
  border: 1px solid #d8e2e5;
  border-radius: 10px;
  background: #ffffff;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults[hidden] {
  display: none;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid #e5edef;
  padding: 10px 12px;
  background: #ffffff;
  color: #26383f;
  text-align: left;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults button:first-child {
  border-top: 0;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults button:hover,
#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults button:focus-visible {
  background: #eef7f8;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults strong {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults small {
  color: #64747a;
  font-size: 0.74rem;
  white-space: nowrap;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonResults .admin-engagements-empty {
  margin: 0;
  padding: 10px 12px;
  color: #64747a;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonCreate {
  grid-column: 1;
  justify-self: start;
  min-height: 0;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: #087f8c;
  font-size: 0.82rem;
  font-weight: 650;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonCreate:hover,
#adminEngagementsDetail #adminEngagementsDetailTeamPanel #adminEngagementsClubTeamPersonCreate:focus-visible {
  color: #075d66;
  text-decoration: underline;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-club-team-picker {
  grid-column: 2 / -1;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid > .admin-engagements-check {
  display: flex !important;
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  min-height: 32px;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid > .admin-engagements-check > input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  order: 0;
}

#adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid > .admin-engagements-check > span {
  order: 1;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-validation {
  margin-top: -2px;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-external-open {
  justify-self: start;
  width: auto;
  min-height: 30px;
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: #60747a;
  font-size: 0.76rem;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #bdcacc;
  text-underline-offset: 3px;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-external-open:hover,
#adminEngagementsDetailTeamPanel .admin-engagements-club-team-external-open:focus-visible {
  color: #0b7285;
  text-decoration-color: currentColor;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-add {
  justify-self: start;
  width: auto;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-remove {
  align-self: center;
  color: #8a4b3f;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-remove:not(:disabled):hover {
  border-color: #dfb7af;
  background: #fff5f3;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-remove:disabled {
  color: #8a999d;
  cursor: not-allowed;
  opacity: 0.62;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 5px;
  border: 1px solid #c9e4e5;
  border-radius: 7px;
  padding: 4px 9px;
  background: #f0faf9;
  color: #086d78;
  font-size: 0.82rem;
  font-weight: 700;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-team-summary[data-complete="false"] {
  border-color: #eadb9d;
  background: #fff8df;
  color: #80620d;
}

#adminEngagementsClubTeamExternalDialog {
  width: min(92vw, 520px);
}

#adminEngagementsClubTeamExternalDialog .admin-engagements-club-external-team-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

#adminEngagementsClubTeamExternalDialog .admin-engagements-club-external-team-note {
  margin: 14px 0 0;
  border: 1px solid #eadb9d;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff8df;
  color: #705a12;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
}

#adminEngagementsDetailTeamPanel .admin-engagements-club-renunciation {
  min-height: 48px;
  background: #fffae9;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-list,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-list {
  gap: 12px;
  padding-bottom: 3px;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-section,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-section {
  gap: 7px;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-section h5,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-section h5 {
  color: #0b7285;
  letter-spacing: 0.03em;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-head,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-head {
  min-height: 34px;
  padding: 7px 10px;
  border-color: #dfe5e7;
  background: #eef3f4;
  color: #52636a;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-head {
  min-height: 28px;
  padding: 4px 8px;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-official-row {
  min-height: 25px;
  padding: 0 8px;
  border-color: #e7ecee;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-official-row:hover,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row:hover {
  background: #f8fbfb;
}

#adminEngagementsDetailOfficialsPanel .admin-engagements-club-official-row[data-selected="true"],
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row[data-selected="true"] {
  background: #f2f9fa;
  box-shadow: inset 3px 0 0 #0b7285;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row[data-selected="true"][data-sex="F"] {
  background: #fff7fb;
  box-shadow: inset 3px 0 0 #cf6f9b;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row[data-selected="true"][data-sex="M"] {
  background: #f5fbff;
  box-shadow: inset 3px 0 0 #4f8fc5;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-search {
  gap: 7px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px 9px;
  background: transparent;
  color: #52636a;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-tools {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  overflow: hidden;
  background: #f8fafb;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-search input {
  min-height: 40px;
  border-color: #d8e0e3;
  background: #ffffff;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-search input:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-open {
  display: flex;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 36px;
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: #40545c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-open span {
  color: #0b7285;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-open:hover {
  background: #f1f7f8;
  color: #0b7285;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-open:disabled {
  color: #8a999d;
  cursor: not-allowed;
  opacity: 0.68;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-open:focus-visible {
  outline: 3px solid rgba(11, 114, 133, 0.18);
  outline-offset: -3px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog {
  width: min(680px, calc(100vw - 32px));
  border-radius: 12px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #e1e7e9;
  padding: 14px 16px 12px;
  background: #f7fafb;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head h3,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head p {
  margin: 0;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head h3 {
  color: #263940;
  font-size: 1.05rem;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head p {
  margin-top: 5px;
  color: #65777d;
  font-size: 0.76rem;
  line-height: 1.4;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head > button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: #52636a;
  font-size: 1.25rem;
  cursor: pointer;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head > button:hover {
  background: #e8eef0;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-engagements-form-section-grid,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-engagements-club-new-swimmer-actions,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-engagements-club-swimmer-alerts,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-portal-message {
  margin-right: 14px;
  margin-left: 14px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-engagements-form-section-grid {
  margin-top: 14px;
  border: 0;
  overflow: visible;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-engagements-club-new-swimmer-actions {
  margin-bottom: 14px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-portal-message:empty {
  display: none;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog > .admin-portal-message:not(:empty) {
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-dialog-head {
    padding: 12px;
  }
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 14px;
  border: 0;
  background: transparent;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > label {
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #4c6067;
  font-size: 0.8rem;
  font-weight: 750;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > label > input,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > label > select {
  grid-column: 1;
  min-width: 0;
  min-height: 40px;
  border-color: #d8e0e3;
  padding-top: 7px;
  padding-bottom: 7px;
  background: #f8fafb;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > label > input:focus,
#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > label > select:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.14);
  outline-offset: 1px;
  background: #ffffff;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > .admin-engagements-club-new-swimmer-license {
  grid-column: 1 / -1;
  max-width: calc(50% - 7px);
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #edf1f2;
  padding-top: 11px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-actions button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-actions #adminEngagementsClubNewSwimmerSaveButton {
  border: 0;
  background: #0b7285;
  color: #ffffff;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-alert-list article {
  border-color: #eadcae;
  border-radius: 9px;
  background: #fffae9;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-table {
  min-width: 600px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row {
  min-height: 25px;
  padding: 0 8px;
  border-color: #e7ecee;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row input[type="text"] {
  min-height: 28px;
  border-color: #d8e0e3;
  border-radius: 6px;
  background: #ffffff;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-event-choice {
  min-height: 30px;
  border-color: #dfe5e7;
  border-radius: 7px;
  padding: 4px 6px;
}

#adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-event-choice[data-event-selected="true"] {
  border-color: #77b6be;
  background: #f2f9fa;
}

@media (max-width: 700px) {
  #adminEngagementsDetailTeamPanel .admin-engagements-club-choice-list {
    gap: 8px;
  }

  #adminEngagementsDetailTeamPanel .admin-engagements-club-team-primary-choices {
    grid-template-columns: 1fr;
  }

  #adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-section {
    min-width: 0;
  }

  #adminEngagementsDetailOfficialsPanel .admin-engagements-club-officials-head,
  #adminEngagementsDetailOfficialsPanel .admin-engagements-club-official-row {
    grid-template-columns: minmax(0, 1fr) 88px 104px;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-step-form,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-list {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-list {
    margin-right: -4px;
    padding-right: 4px;
    overflow-x: visible;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-inactive,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-section,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-head {
    display: none;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 7px;
    min-height: 42px;
    padding: 2px 7px 2px 9px;
    overflow: hidden;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row > label:first-child {
    min-height: 38px;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-mobile-meta {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-mobile-meta b {
    min-width: 24px;
    border-radius: 999px;
    padding: 2px 6px;
    background: #e9eff1;
    color: #52636a;
    font-size: 0.65rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    border: 1px solid #cfdadc;
    border-radius: 7px;
    padding: 0;
    background: #ffffff;
    color: #0b7285;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    border-top: 1px solid #dfe7e9;
    padding: 8px 2px 7px;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row[data-expanded="true"] .admin-engagements-club-swimmer-details {
    display: grid;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details > [data-label] {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details > [data-label]::before {
    content: attr(data-label);
    color: #687980;
    font-size: 0.61rem;
    font-weight: 650;
    line-height: 1;
    text-transform: uppercase;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details > .admin-engagements-club-swimmer-license-cell {
    grid-column: 1 / -1;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-actions {
    justify-content: stretch;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-grid > .admin-engagements-club-new-swimmer-license {
    max-width: none;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-new-swimmer-actions button {
    flex: 1 1 auto;
  }

}

@container (max-width: 759px) {
  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relays-table {
    min-width: 0;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    padding: 10px 76px 10px 10px;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-readonly {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, 1.25fr);
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-event,
  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row > select,
  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row > input {
    min-width: 0;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-event {
    grid-column: 1 / -1;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-members {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-compose {
    grid-column: 1 / -1;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-compose button {
    justify-self: stretch;
    width: 100%;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row > .admin-engagements-club-relay-remove,
  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row > .admin-engagements-club-relay-cancel-edit {
    position: absolute;
    top: 10px;
    right: 7px;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-actions {
    position: absolute;
    top: 8px;
    right: 7px;
    display: flex;
    gap: 4px;
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-readonly .admin-engagements-club-relay-compose {
    grid-column: auto;
  }
}

@container (max-width: 520px) {
  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-readonly {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relay-row-readonly .admin-engagements-club-relay-compose {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  #adminEngagementsDetailRelaysPanel .admin-engagements-club-relays-add button {
    width: 100%;
  }
}

/* Fiche competition integree au langage visuel du portail. */
#adminEngagementsDetail .admin-engagements-detail-list,
#adminEngagementsDetail .admin-engagements-form-section,
#adminEngagementsDetail .admin-engagements-events-section,
#adminEngagementsDetail .admin-engagements-events-form fieldset,
#adminEngagementsDetail .admin-engagements-program-available,
#adminEngagementsDetail .admin-engagements-program-session,
#adminEngagementsDetail .admin-engagements-document-card {
  border-color: #dfe5e7;
  border-radius: 9px;
  box-shadow: none;
}

#adminEngagementsDetail .admin-engagements-detail-list dt {
  border-color: #e3e9eb;
  background: #f5f8f9;
  color: #64747a;
}

#adminEngagementsDetail .admin-engagements-detail-list dd {
  color: #263940;
}

#adminEngagementsDetailGeneralPanel .admin-engagements-detail-list dt {
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
}

#adminEngagementsDetailGeneralPanel .admin-engagements-detail-list dd {
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-engagements-cancellation-alert {
  display: flex;
  gap: 6px 12px;
  align-items: baseline;
  margin: 0 var(--portal-panel-gutter) 10px;
  border: 1px solid #f0b7ad;
  border-radius: 9px;
  padding: 9px 11px;
  color: #7f1d1d;
  background: #fff1ee;
}

.admin-engagements-cancellation-alert[hidden] {
  display: none;
}

.admin-engagements-cancellation-alert strong {
  flex: 0 0 auto;
  font-weight: var(--portal-font-weight-semibold);
}

.admin-engagements-cancellation-alert span {
  font-size: 0.82rem;
}

.admin-engagements-public-info {
  margin: 0 0 10px;
  border: 1px solid #b9dde2;
  border-left: 3px solid #0b8192;
  border-radius: 9px;
  padding: 10px 12px;
  color: #263940;
  background: #f1fafb;
}

.admin-engagements-public-info[hidden] {
  display: none;
}

.admin-engagements-public-info strong {
  color: #075f6b;
  font-size: 0.82rem;
  font-weight: var(--portal-font-weight-semibold);
}

.admin-engagements-public-info p {
  margin: 5px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-line;
}

.admin-engagements-payment-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #75c5ba;
  border-radius: 7px;
  padding: 2px 10px;
  color: #075f6b;
  background: #eefaf7;
  font-weight: var(--portal-font-weight-semibold);
  text-decoration: none;
}

.admin-engagements-payment-link:hover,
.admin-engagements-payment-link:focus-visible {
  border-color: #0b8192;
  background: #dff5f1;
}

.admin-engagements-contact-link {
  color: #075f6b;
  font-weight: var(--portal-font-weight-medium);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .admin-engagements-cancellation-alert {
    align-items: flex-start;
    flex-direction: column;
  }
}

#adminEngagementsEditForm .admin-engagements-entry-status-field {
  border-left: 3px solid #0b7285;
  background: #eef8fa;
  color: #174f59;
}

.admin-engagements-max-events-unlimited {
  background: #f8fafb;
}

.admin-engagements-invited-regions-field {
  display: grid;
  gap: 8px;
  min-height: 50px;
  border-top: 1px solid #e7ecee;
  padding: 8px 12px;
  color: #52636a;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-engagements-invited-regions-field small {
  color: #5f746f;
  font-size: 0.74rem;
}

.admin-engagements-region-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px 12px;
  max-height: 168px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d8e0e3;
  border-radius: 7px;
  background: #f8fafb;
}

.admin-engagements-region-choices label,
.admin-engagements-inline-control-values {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-engagements-region-choices input {
  min-height: 18px;
  width: 18px;
}

.admin-engagements-inline-control {
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr) !important;
  align-items: center;
}

.admin-engagements-inline-control-values input[type="number"] {
  width: 76px;
  min-height: 36px;
}


/* Création : une fiche compacte limitée aux informations du calendrier. */
.admin-engagements-create-form {
  gap: 12px;
}

.admin-engagements-create-header {
  padding: 2px 2px 12px;
  border-bottom: 1px solid #dce7e8;
}

.admin-engagements-create-header h2 {
  margin: 0;
  color: #12312d;
  font-size: 1.12rem;
  line-height: 1.25;
}

.admin-engagements-create-form .admin-engagements-form-section {
  overflow: hidden;
}

.admin-engagements-create-form .admin-engagements-form-section-grid {
  gap: 0;
}

.admin-engagements-create-form .admin-engagements-form-section-grid > label,
.admin-engagements-create-form .admin-engagements-invited-regions-field {
  min-height: 58px;
}

.admin-engagements-create-more {
  border: 1px solid #d8e0e3;
  border-radius: 9px;
  background: #fbfcfc;
}

.admin-engagements-create-more > summary {
  cursor: pointer;
  padding: 12px;
  color: #174f59;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-engagements-create-more[open] > summary {
  border-bottom: 1px solid #e7ecee;
}

.admin-engagements-create-more .admin-engagements-form-section {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.admin-engagements-create-form > .admin-portal-actions {
  justify-content: flex-end;
}

.admin-engagements-create-form > #adminEngagementsCreateMessage:empty {
  display: none;
}

.admin-engagements-invited-regions-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-engagements-invited-regions-summary small {
  color: #5f746f;
  font-weight: 700;
}

.admin-engagements-region-dialog {
  width: min(620px, calc(100vw - 24px));
  border: 1px solid #cfe1e3;
  border-radius: 12px;
  padding: 0;
  color: #12312d;
  box-shadow: 0 20px 60px rgba(18, 49, 45, 0.24);
}

.admin-engagements-region-dialog::backdrop {
  background: rgba(12, 35, 32, 0.45);
}

.admin-engagements-region-dialog form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-engagements-region-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-engagements-region-dialog h3,
.admin-engagements-region-dialog p {
  margin: 0;
}

.admin-engagements-create-checklist {
  width: min(460px, calc(100vw - 24px));
  border: 1px solid #cfe1e3;
  border-radius: 12px;
  padding: 0;
  color: #12312d;
  box-shadow: 0 20px 60px rgba(18, 49, 45, 0.24);
}

.admin-engagements-create-checklist::backdrop {
  background: rgba(12, 35, 32, 0.45);
}

.admin-engagements-create-checklist form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-engagements-create-checklist h3,
.admin-engagements-create-checklist p {
  margin: 0;
}

.admin-engagements-create-checklist p,
.admin-engagements-create-checklist li {
  color: #52636a;
}

.admin-engagements-create-checklist ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.admin-engagements-create-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid #cfe1e3;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(18, 49, 45, 0.24);
}

.admin-engagements-create-dialog::backdrop {
  background: rgba(12, 35, 32, 0.45);
}

.admin-engagements-unsaved-dialog {
  width: min(520px, calc(100vw - 24px));
  border: 1px solid #d7e1df;
  border-radius: 12px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(18, 49, 45, 0.24);
}

.admin-engagements-unsaved-dialog::backdrop {
  background: rgba(12, 35, 32, 0.45);
}

.admin-engagements-unsaved-dialog > div {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.admin-engagements-unsaved-dialog h3,
.admin-engagements-unsaved-dialog p {
  margin: 0;
}

.admin-engagements-unsaved-dialog p {
  color: #52636a;
}

.admin-engagements-unsaved-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 560px) {
  .admin-engagements-unsaved-dialog-actions button {
    width: 100%;
  }
}

.admin-engagements-create-optional {
  margin-top: 8px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
}

.admin-engagements-create-optional > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #174f59;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-engagements-region-dialog p {
  margin-top: 4px;
  color: #5f746f;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .admin-engagements-invited-regions-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

#adminEngagementsDetail .admin-engagements-form {
  gap: 14px;
}

#adminEngagementsDetail .admin-engagements-form-section {
  background: #ffffff;
}

#adminEngagementsDetail .admin-engagements-form-section legend,
#adminEngagementsDetail .admin-engagements-events-form legend {
  color: #0b7285;
}

#adminEngagementsDetail .admin-engagements-form-section-grid > label {
  min-height: 50px;
  border-color: #e7ecee;
  padding: 8px 12px;
  color: #52636a;
}

#adminEngagementsDetail .admin-engagements-form-section-grid > label:nth-child(even) {
  background: #fbfcfc;
}

#adminEngagementsDetail .admin-engagements-form input,
#adminEngagementsDetail .admin-engagements-form select,
#adminEngagementsDetail .admin-engagements-fees-grid input,
#adminEngagementsDetail .admin-engagements-program-session input,
#adminEngagementsDetail .admin-engagements-program-row select {
  border-color: #d8e0e3;
  background: #f8fafb;
}

#adminEngagementsDetail .admin-engagements-form input:focus,
#adminEngagementsDetail .admin-engagements-form select:focus,
#adminEngagementsDetail .admin-engagements-fees-grid input:focus,
#adminEngagementsDetail .admin-engagements-program-session input:focus,
#adminEngagementsDetail .admin-engagements-program-row select:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminEngagementsDetail .admin-engagements-form input:disabled,
#adminEngagementsDetail .admin-engagements-form select:disabled,
#adminEngagementsDetail .admin-engagements-fees-grid input:disabled,
#adminEngagementsDetail .admin-engagements-program-session input:disabled,
#adminEngagementsDetail .admin-engagements-program-row select:disabled {
  background: #eef2f3;
  color: #68787e;
}

#adminEngagementsDetail .admin-engagements-inline-save-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

#adminEngagementsDetail .admin-engagements-events-head,
#adminEngagementsDetail .admin-engagements-documents-head {
  min-height: 58px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  padding: 11px 12px;
  background: #f8fafb;
}

#adminEngagementsDetail .admin-engagements-events-head strong,
#adminEngagementsDetail .admin-engagements-documents-head strong {
  color: #263940;
}

#adminEngagementsDetail .admin-engagements-events-section {
  gap: 10px;
  overflow: hidden;
}

#adminEngagementsDetail .admin-engagements-events-section summary {
  min-height: 50px;
  padding: 10px 12px;
  background: #f8fafb;
}

#adminEngagementsDetail .admin-engagements-events-section[open] > summary {
  border-bottom: 1px solid #e3e9eb;
  background: #f1f7f8;
}

#adminEngagementsDetail .admin-engagements-events-section[open] {
  padding-bottom: 10px;
}

#adminEngagementsDetail .admin-engagements-program-head,
#adminEngagementsDetail .admin-engagements-program-sessions,
#adminEngagementsDetail .admin-engagements-events-section > fieldset {
  margin-right: 10px;
  margin-left: 10px;
}

#adminEngagementsDetail .admin-engagements-program-available {
  padding: 8px;
  background: #f6f9fa;
}

#adminEngagementsDetail .admin-engagements-program-session {
  gap: 6px;
  padding: 8px;
}

#adminEngagementsDetail .admin-engagements-program-session[data-active="true"] {
  border-color: #77b6be;
  background: #f4fafb;
  box-shadow: inset 3px 0 0 #0b7285;
}

#adminEngagementsDetail .admin-engagements-program-row {
  border-color: #e4eaec;
  border-radius: 7px;
  padding: 5px 6px;
}

#adminEngagementsDetail .admin-engagements-fees-grid {
  gap: 10px;
}

#adminEngagementsDetail .admin-engagements-fees-grid label {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  padding: 11px 12px;
  background: #ffffff;
  color: #52636a;
}

#adminEngagementsDetail .admin-engagements-fees-form[data-readonly="true"] .admin-engagements-fees-grid label {
  border-bottom: 1px solid #dfe5e7;
  padding: 11px 12px;
  background: #f8fafb;
}

#adminEngagementsDetail .admin-engagements-payment-note {
  border-color: #eadcae;
  border-radius: 9px;
  background: #fffae9;
}

#adminEngagementsDetail .admin-engagements-documents-section {
  gap: 10px;
  border-color: #e3e9eb;
  padding-top: 14px;
}

#adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsDetail .admin-engagements-detail-step-bar > button span {
  display: none;
}

#adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsDetail [data-engagement-step-button="participants"],
#adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsDetail [data-engagement-step-button="entries"],
#adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsDetail [data-engagement-step-button="summary"],
#adminEngagementsView[data-engagements-mode="club"] #adminEngagementsDetail [data-engagement-step-button="statistics"],
#adminEngagementsView[data-engagements-mode="club"] #adminEngagementsDetail [data-engagement-step-button="delivery"] {
  display: none !important;
}

#adminEngagementsView[data-engagements-mode="club"] .admin-engagements-shared-documents-admin,
#adminEngagementsView[data-engagements-mode="club"] .admin-engagements-generated-documents-admin {
  display: none !important;
}

#adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsDetail .admin-engagements-detail-step-bar > button {
  min-height: 38px;
  font-size: 0.76rem;
}

#adminEngagementsView:not([data-engagements-tab="calendar"]) #adminEngagementsCalendarActions {
  display: none !important;
}

.admin-engagements-statistics,
.admin-engagements-documents {
  display: grid;
  gap: 14px;
}

.admin-engagements-statistics-head,
.admin-engagements-statistics-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-engagements-statistics-head > div,
.admin-engagements-statistics-section-head > div,
.admin-engagements-ged-card > div {
  display: grid;
  gap: 3px;
}

.admin-engagements-statistics-head small,
.admin-engagements-statistics-section-head small,
.admin-engagements-ged-card small {
  color: #64767c;
  font-size: 0.75rem;
}

.admin-engagements-statistics-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-engagements-statistics-summary article {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #dfe7e9;
  border-radius: 9px;
  padding: 10px 11px;
  background: #f8fafb;
}

.admin-engagements-statistics-summary article small,
.admin-engagements-statistics-summary article span {
  overflow: hidden;
  color: #607278;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-statistics-summary article strong {
  color: #12312d;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.admin-engagements-statistics-warning,
.admin-engagements-statistics-ok {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border: 1px solid #eadcae;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffae9;
  color: #70590b;
  font-size: 0.75rem;
}

.admin-engagements-statistics-ok {
  border-color: #b9dfd2;
  background: #f1faf7;
  color: #15624c;
}

.admin-engagements-statistics-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e2e8ea;
  padding-top: 13px;
}

.admin-engagements-statistics-section-head label,
.admin-engagements-ged-club-choice label {
  display: grid;
  gap: 4px;
  min-width: min(330px, 100%);
  color: #53666c;
  font-size: 0.7rem;
}

.admin-engagements-statistics-section-head select,
.admin-engagements-ged-club-choice select {
  min-height: 36px;
}

.admin-engagements-statistics-table {
  overflow-x: auto;
  border: 1px solid #dfe6e8;
  border-radius: 8px;
}

.admin-engagements-statistics-row,
.admin-engagements-statistics-club-row {
  display: grid;
  grid-template-columns: 54px minmax(170px, 1.4fr) minmax(90px, 0.65fr) minmax(140px, 1fr) minmax(105px, 0.7fr);
  min-width: 720px;
  border-top: 1px solid #e7ecee;
  background: #ffffff;
}

.admin-engagements-statistics-club-row {
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 0.9fr) 75px 65px 75px minmax(145px, 1fr);
  min-width: 800px;
}

.admin-engagements-statistics-row:first-child,
.admin-engagements-statistics-club-row:first-child {
  border-top: 0;
}

.admin-engagements-statistics-individual-row {
  grid-template-columns: 42px minmax(190px, 1.65fr) minmax(80px, 0.55fr) minmax(90px, 0.65fr) minmax(90px, 0.55fr);
  min-width: 620px;
}

.admin-engagements-statistics-gender-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 620px;
  border-top: 2px solid currentColor;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.admin-engagements-statistics-gender-heading span {
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.admin-engagements-statistics-gender-heading.is-female {
  color: #9a315d;
  background: #fff1f6;
}

.admin-engagements-statistics-gender-heading.is-male {
  color: #245c9a;
  background: #f1f7ff;
}

.admin-engagements-statistics-gender-heading.is-unknown {
  color: #775711;
  background: #fff8df;
}

.admin-engagements-statistics-individual-row[data-sex="F"] {
  background: #fff7fb;
}

.admin-engagements-statistics-individual-row[data-sex="M"] {
  background: #f5fbff;
}

.admin-engagements-statistics-row > span,
.admin-engagements-statistics-club-row > span {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  color: #354b52;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.admin-engagements-statistics-row > span + span,
.admin-engagements-statistics-club-row > span + span {
  border-left: 1px solid #edf1f2;
}

.admin-engagements-statistics-row small,
.admin-engagements-statistics-club-row small {
  overflow: hidden;
  color: #6c7d82;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-engagements-statistics-row-head {
  background: #f1f6f7;
}

.admin-engagements-statistics-row-head > span {
  min-height: 32px;
  color: #4f6268;
  font-size: 0.68rem;
  font-weight: 500;
}

.admin-engagements-statistics-individual-row > span {
  min-height: 30px;
  padding-block: 4px;
}

.admin-engagements-ged-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-engagements-ged-card {
  display: grid;
  gap: 13px;
  align-content: start;
  border: 1px solid #dfe6e8;
  border-radius: 9px;
  padding: 13px;
  background: #ffffff;
}

.admin-engagements-ged-card > button {
  justify-self: start;
}

.admin-engagements-ged-club-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.admin-engagements-ged-card #adminEngagementsClubRecapFiles small {
  display: block;
}

.admin-engagements-shared-documents {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe6e8;
  border-radius: 9px;
  padding: 13px;
  background: #ffffff;
}

.admin-engagements-document-form {
  display: grid;
  gap: 12px;
  border: 1px solid #bcd9dd;
  border-radius: 9px;
  padding: 12px;
  background: #f5fafb;
}

.admin-engagements-document-form[hidden] {
  display: none;
}

.admin-engagements-document-file-field,
.admin-engagements-document-file-field label {
  display: grid;
  gap: 5px;
}

.admin-engagements-document-file-field label {
  color: #425b62;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-engagements-document-file-field input[type="file"] {
  min-height: 42px;
  border: 1px solid #ccdadd;
  border-radius: 8px;
  padding: 7px;
  background: #ffffff;
}

.admin-engagements-document-file-field small,
.admin-engagements-document-draft-file,
.admin-engagements-shared-document-meta {
  color: #64767c;
  font-size: 0.72rem;
}

.admin-engagements-document-drafts,
.admin-engagements-shared-documents-list {
  display: grid;
  gap: 8px;
}

.admin-engagements-document-draft {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.75fr) minmax(220px, 1.5fr);
  gap: 8px;
  border-top: 1px solid #dce7e8;
  padding-top: 10px;
}

.admin-engagements-document-draft:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-engagements-document-draft > label {
  display: grid;
  gap: 4px;
  color: #53666c;
  font-size: 0.7rem;
}

.admin-engagements-document-draft-file {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.admin-engagements-document-draft textarea {
  min-height: 38px;
  resize: vertical;
}

.admin-engagements-document-notify {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #304a50;
  font-size: 0.78rem;
}

.admin-engagements-document-notify input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.admin-engagements-document-form-actions,
.admin-engagements-shared-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.admin-engagements-shared-document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e0e7e9;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.admin-engagements-shared-document-card:hover {
  border-color: #b7d8dc;
  background: #fbfdfd;
}

.admin-engagements-shared-document-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-engagements-shared-document-main > a {
  color: #075f70;
  font-size: 0.88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-engagements-shared-document-main p {
  margin: 0;
  color: #52666c;
  font-size: 0.76rem;
  line-height: 1.4;
}

.admin-engagements-shared-document-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-engagements-shared-document-badges span {
  border-radius: 999px;
  padding: 3px 7px;
  background: #edf5f4;
  color: #31524c;
  font-size: 0.65rem;
  font-weight: 500;
}

.admin-engagements-shared-document-actions a,
.admin-engagements-shared-document-actions button {
  min-height: 34px;
}

#adminEngagementsDetail .admin-engagements-document-card {
  padding: 11px 12px;
  background: #ffffff;
}

#adminEngagementsDetail .admin-engagements-document-card:hover {
  border-color: #b7d8dc;
  background: #fbfdfd;
}

@media (max-width: 700px) {
  #adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-form-section-grid {
    grid-template-columns: 1fr;
  }

  #adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-club-team-picker {
    grid-column: 1;
  }

  #adminEngagementsDetail #adminEngagementsDetailTeamPanel .admin-engagements-club-team-search {
    grid-column: 1;
  }

  #adminEngagementsDetail .admin-engagements-form-section-grid > label {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
  }

  #adminEngagementsDetail .admin-engagements-form-section-grid > label > input,
  #adminEngagementsDetail .admin-engagements-form-section-grid > label > select,
  #adminEngagementsDetail .admin-engagements-field-note {
    grid-column: 1;
  }

  #adminEngagementsDetail .admin-engagements-events-head,
  #adminEngagementsDetail .admin-engagements-documents-head,
  #adminEngagementsDetail .admin-engagements-documents-actions,
  #adminEngagementsDetail .admin-engagements-inline-save-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #adminEngagementsDetail .admin-engagements-events-head button,
  #adminEngagementsDetail .admin-engagements-documents-actions button,
  #adminEngagementsDetail .admin-engagements-inline-save-actions button {
    width: 100%;
  }

  #adminEngagementsDetail .admin-engagements-events-section summary {
    grid-template-columns: 1fr;
  }

  #adminEngagementsDetail .admin-engagements-section-toggle {
    width: 100%;
  }

  #adminEngagementsDetail .admin-engagements-document-card {
    grid-template-columns: 1fr;
  }

  .admin-engagements-statistics-head,
  .admin-engagements-statistics-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-engagements-statistics-head button,
  .admin-engagements-statistics-section-head label,
  .admin-engagements-ged-card > button,
  .admin-engagements-ged-club-choice button {
    width: 100%;
  }

  .admin-engagements-statistics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-engagements-statistics-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-engagements-ged-grid,
  .admin-engagements-ged-club-choice {
    grid-template-columns: 1fr;
  }

  .admin-engagements-document-draft,
  .admin-engagements-shared-document-card {
    grid-template-columns: 1fr;
  }

  .admin-engagements-document-form-actions,
  .admin-engagements-shared-document-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-engagements-document-form-actions button,
  .admin-engagements-shared-document-actions a,
  .admin-engagements-shared-document-actions button {
    width: 100%;
  }
}

/* Calendrier des engagements integre au langage visuel du portail. */
#adminEngagementsView {
  gap: 14px;
  padding: 0;
}

#adminEngagementsView > .admin-portal-workspace-head,
#adminEngagementsCalendarCard {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

#adminEngagementsView > .admin-portal-workspace-head {
  padding: 16px 18px;
}

#adminEngagementsCalendarCard {
  gap: 16px;
  padding: 0 0 16px;
  overflow: hidden;
}

.admin-engagements-calendar-head-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.admin-engagements-refresh-meta {
  color: #77878d;
  font-size: 0.7rem;
  font-weight: var(--portal-font-weight-regular);
  white-space: nowrap;
}

#adminEngagementsDetail .admin-engagements-detail-head > div > span {
  color: #0b7285;
}

#adminEngagementsDetail .admin-engagements-detail-head h4 {
  color: #263940;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-filters {
  margin: 0 var(--portal-card-gutter);
  border-color: #dfe6e8;
  border-radius: 9px;
  background: #f7f9fa;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-filters label {
  color: #52636a;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-filters select {
  border-color: #d8e0e3;
  background: #ffffff;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-filters select:focus,
#adminEngagementsCalendarCard .admin-engagements-filter-check:focus-within {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminEngagementsCalendarCard .admin-engagements-filter-check {
  border-color: #d8e0e3;
  border-radius: 8px;
  background: #ffffff;
}

#adminEngagementsCalendarCard .admin-engagements-filter-check input {
  accent-color: #0b7285;
}

#adminEngagementsCalendarCard > .admin-portal-message,
#adminEngagementsCalendarCard > .admin-engagements-calendar-list {
  margin-right: var(--portal-card-gutter);
  margin-left: var(--portal-card-gutter);
}

#adminEngagementsCalendarCard .admin-engagements-calendar-list {
  gap: 8px;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-loading {
  display: grid;
  gap: 9px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  padding: 15px;
  background: #f8fbfb;
  color: #52666c;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-loading > span {
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(90deg, #edf2f3, #e3ebed 50%, #edf2f3);
}

#adminEngagementsCalendarCard .admin-engagements-competition {
  grid-template-columns: 104px minmax(220px, 1fr) 104px 112px minmax(190px, auto);
  border-color: #dfe5e7;
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

#adminEngagementsCalendarCard .admin-engagements-competition:hover {
  border-color: #b7d8dc;
  background: #fbfdfd;
}

#adminEngagementsCalendarCard .admin-engagements-competition.selected {
  border-color: #77b6be;
  background: #f2f9fa;
  box-shadow: inset 3px 0 0 #0b7285;
}

#adminEngagementsCalendarCard .admin-engagements-competition time {
  color: #0b7285;
}

#adminEngagementsCalendarCard .admin-engagements-competition [data-entry-status] {
  font-size: 0.75rem;
}

#adminEngagementsCalendarCard .admin-engagements-competition-actions small {
  color: #68787e;
  font-size: 0.73rem;
}

#adminEngagementsDetail {
  margin: 0 var(--portal-card-gutter);
  border-color: #dfe5e7;
  border-radius: 9px;
  padding: 0;
  overflow: clip;
}

#adminEngagementsDetail .admin-engagements-detail-head {
  padding: var(--portal-panel-gutter);
  border-bottom: 1px solid #e3e9eb;
}

#adminEngagementsDetail .admin-engagements-detail-meta {
  padding: 0 var(--portal-panel-gutter);
}

#adminEngagementsDetail .admin-engagements-detail-tabs {
  position: sticky;
  top: 52px;
  z-index: 20;
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid #e7ecee;
  border-bottom: 1px solid #e3e9eb;
  background: #f7f9fa;
  box-shadow: 0 4px 9px rgba(18, 49, 45, 0.06);
}

#adminEngagementsDetail .admin-engagements-detail-step-bar {
  display: flex;
  min-width: 0;
  border-bottom: 1px solid #dce5e7;
  background: #eef3f4;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button {
  display: flex;
  flex: 1 1 0;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-right: 1px solid #dce5e7;
  border-radius: 0;
  padding: 4px 7px;
  background: transparent;
  color: #586b72;
  font-size: 0.69rem;
  cursor: pointer;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button:last-child {
  border-right: 0;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button span {
  display: grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #dce7e9;
  font-size: 0.62rem;
  font-weight: 800;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button strong {
  min-width: 0;
  overflow: hidden;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button:hover,
#adminEngagementsDetail .admin-engagements-detail-step-bar > button:focus-visible,
#adminEngagementsDetail .admin-engagements-detail-step-bar > button[aria-pressed="true"] {
  background: #e4f2f4;
  color: #075f70;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button[aria-pressed="true"] {
  box-shadow: inset 0 -2px 0 #0b7285;
}

#adminEngagementsDetail .admin-engagements-detail-step-bar > button[aria-pressed="true"] span {
  background: #0b7285;
  color: #ffffff;
}

#adminEngagementsDetail .admin-engagements-detail-tab-group {
  padding: 5px var(--portal-panel-gutter);
  background: #ffffff;
}

#adminEngagementsDetail .admin-engagements-detail-tab-group[hidden],
#adminEngagementsDetail .admin-engagements-detail-tab-group:not(:has(button:not([hidden]))) {
  display: none;
}

#adminEngagementsDetail .admin-engagements-detail-tab-group-items {
  display: flex;
  gap: 5px;
}

#adminEngagementsDetail .admin-engagements-detail-tab-group-items button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #d8e0e3;
  border-radius: 7px;
  padding: 5px 10px;
  background: #ffffff;
  color: #50636a;
}

#adminEngagementsDetail .admin-engagements-detail-tab-group-items button:hover,
#adminEngagementsDetail .admin-engagements-detail-tab-group-items button:focus-visible,
#adminEngagementsDetail .admin-engagements-detail-tab-group-items button[aria-selected="true"] {
  border-color: #0b7285;
  background: #0b7285;
  color: #ffffff;
}

#adminEngagementsDetail .admin-engagements-detail-panel {
  padding: 0 var(--portal-panel-gutter) var(--portal-panel-gutter);
}

#adminEngagementsDetail[data-club-entry-loading] .admin-engagements-detail-tabs,
#adminEngagementsDetail[data-club-entry-loading] .admin-engagements-detail-panel {
  display: none !important;
}

#adminEngagementsDetail[data-club-entry-loading] #adminEngagementsDetailStatus {
  display: grid;
  gap: 12px;
  min-height: 116px;
  margin: 12px var(--portal-panel-gutter) var(--portal-panel-gutter);
  border: 1px solid #dfe8ea;
  border-radius: 9px;
  padding: 16px;
  background: #f8fbfb;
  align-content: center;
}

#adminEngagementsDetail[data-club-entry-loading="loading"] #adminEngagementsDetailStatus::after {
  width: min(100%, 620px);
  height: 42px;
  border-radius: 6px;
  background:
    linear-gradient(#e5edef 0 0) 0 0 / 78% 8px no-repeat,
    linear-gradient(#edf2f3 0 0) 0 17px / 100% 8px no-repeat,
    linear-gradient(#edf2f3 0 0) 0 34px / 62% 8px no-repeat;
  content: "";
}

@media (max-width: 1120px) {
  #adminEngagementsCalendarCard .admin-engagements-calendar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-areas:
      "date title title status"
      "level level actions actions";
    grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr) 120px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition time {
    grid-area: date;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition > div:first-of-type {
    grid-area: title;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition > span:not([data-entry-status]) {
    grid-area: level;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition [data-entry-status] {
    grid-area: status;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-actions {
    grid-area: actions;
  }
}

@media (max-width: 700px) {
  #adminEngagementsView > .admin-portal-workspace-head {
    padding: 13px;
  }

  #adminEngagementsCalendarCard .admin-engagements-calendar-filters button {
    width: 100%;
  }

  #adminEngagementsCalendarCard .admin-engagements-calendar-filters {
    grid-template-columns: 1fr;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-areas:
      "date status"
      "title title"
      "level level"
      "actions actions";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-actions button {
    width: 100%;
  }

  #adminEngagementsDetail .admin-engagements-detail-head,
  #adminEngagementsDetail .admin-engagements-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #adminEngagementsDetail .admin-engagements-detail-actions button {
    width: 100%;
  }
}

/* Gestion des acces integree au langage visuel du portail. */
#adminAccessView {
  gap: 14px;
  padding: 0;
}

#adminAccessView > .admin-portal-workspace-head,
#adminAccessView .admin-access-list-panel,
#adminAccessView .admin-access-preview {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

#adminAccessView > .admin-portal-workspace-head {
  padding: 11px 14px;
}

#adminAccessView .admin-access-tool-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

#adminAccessView .admin-access-add-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

#adminAccessView .admin-access-list-panel,
#adminAccessView .admin-access-preview {
  gap: 7px;
  padding: 0;
  overflow: hidden;
}

#adminAccessView .admin-access-list-panel {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

#adminAccessView .admin-access-list-head,
#adminAccessView .admin-access-preview-head {
  min-height: 68px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e9eb;
}

#adminAccessView .admin-access-list-head span,
#adminAccessView .admin-access-preview-head span {
  color: #0b7285;
}

#adminAccessView .admin-access-list-head strong,
#adminAccessView .admin-access-preview-head strong {
  color: #263940;
}

#adminAccessView .admin-access-list-head-actions button {
  min-height: 38px;
}

#adminAccessView .admin-access-filters {
  grid-template-columns: minmax(240px, 2fr) 130px minmax(180px, 1fr) auto auto;
  gap: 7px;
  margin: 0;
  border-color: #dfe6e8;
  border-radius: 7px;
  padding: 6px;
  background: #ffffff;
}

#adminAccessView .admin-access-filters input,
#adminAccessView .admin-access-filters select,
#adminAccessView .admin-access-filters button {
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}

#adminAccessView .admin-access-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#adminAccessView .admin-access-filters label,
#adminAccessView .admin-access-form label {
  color: #52636a;
}

#adminAccessView .admin-access-filters input,
#adminAccessView .admin-access-filters select,
#adminAccessView .admin-access-form input,
#adminAccessView .admin-access-form select {
  border-color: #d8e0e3;
  background: #f8fafb;
}

#adminAccessView .admin-access-filters input:focus,
#adminAccessView .admin-access-filters select:focus,
#adminAccessView .admin-access-form input:focus,
#adminAccessView .admin-access-form select:focus,
#adminAccessView .admin-access-rights label:focus-within,
#adminAccessView .admin-access-reset-choice:focus-within {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminAccessView .admin-access-list {
  margin: 0;
  gap: 0;
}

#adminAccessView .admin-access-directory-summary {
  justify-self: end;
  margin: 0 2px;
  color: #64747a;
  font-size: 0.74rem;
}

#adminAccessView .admin-access-alphabet {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  padding: 4px 2px 7px;
  scrollbar-width: thin;
}

#adminAccessView .admin-access-alphabet[hidden] {
  display: none;
}

#adminAccessView .admin-access-alphabet button {
  flex: 0 0 auto;
  min-width: 27px;
  min-height: 27px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 2px 6px;
  background: transparent;
  color: #0b7285;
  font-size: 0.74rem;
  font-weight: 700;
}

#adminAccessView .admin-access-alphabet button:first-child {
  min-width: 44px;
}

#adminAccessView .admin-access-alphabet button:hover:not(:disabled) {
  border-color: #b8d7dc;
  background: #eef7f8;
}

#adminAccessView .admin-access-alphabet button[aria-pressed="true"] {
  border-color: #0b7285;
  background: #0b7285;
  color: #ffffff;
}

#adminAccessView .admin-access-alphabet button:disabled {
  color: #aeb9bd;
  cursor: default;
  opacity: 0.55;
}

#adminAccessView .admin-access-table {
  display: grid;
  gap: 0;
  max-height: none;
  min-width: 850px;
  border: 1px solid #dfe5e7;
  border-radius: 6px;
  overflow: visible;
  background: #ffffff;
}

#adminAccessView .admin-access-table-head,
#adminAccessView .admin-access-row-summary {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(95px, 0.75fr) minmax(190px, 1.35fr) minmax(155px, 1.1fr) 118px 62px 30px;
  gap: 8px;
  align-items: center;
}

#adminAccessView .admin-access-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 30px;
  padding: 5px 8px;
  background: #f0f3f4;
  color: #40545c;
  font-size: 0.68rem;
}

#adminAccessView .admin-access-row {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e4eaec;
  border-radius: 0;
  font-size: 0.78rem;
}

#adminAccessView .admin-access-row > div::before {
  display: none;
  content: none;
}

#adminAccessView .admin-access-row-summary {
  min-height: 38px;
  padding: 4px 8px;
  background: #ffffff;
}

#adminAccessView .admin-access-row-summary:hover {
  background: #f9fbfb;
}

#adminAccessView .admin-access-row.inactive .admin-access-row-summary {
  background: #f5f7f7;
}

#adminAccessView .admin-access-status {
  padding: 3px 7px;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

#adminAccessView .admin-access-row-summary > div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminAccessView .admin-access-row-disclosure {
  display: grid;
  place-items: center;
}

#adminAccessView .admin-access-row-disclosure button {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #52636a;
}

#adminAccessView .admin-access-row-chevron {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 160ms ease;
}

#adminAccessView .admin-access-row[data-expanded="true"] .admin-access-row-chevron {
  transform: rotate(90deg);
}

#adminAccessView .admin-access-row-expanded {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 10px 12px;
  border-top: 1px solid #dfe7e9;
  background: #f7fafb;
}

#adminAccessView .admin-access-row[data-expanded="true"] .admin-access-row-expanded {
  display: grid;
}

#adminAccessView .admin-access-row-expanded-data {
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(180px, 1fr) minmax(240px, 1.8fr);
  gap: 18px;
}

#adminAccessView .admin-access-row-expanded-data > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#adminAccessView .admin-access-row-expanded-data span {
  color: #64747a;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#adminAccessView .admin-access-row-expanded-data strong {
  overflow: visible;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: normal;
}

#adminAccessView .admin-access-row-expanded-data small {
  color: #64747a;
  font-size: 0.7rem;
}

#adminAccessView .admin-access-row-toggle {
  display: none;
}

#adminAccessView .admin-access-row strong {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminAccessView .admin-access-row small,
#adminAccessView .admin-access-login,
#adminAccessView .admin-access-rights-summary {
  font-size: 0.72rem;
}

#adminAccessView .admin-access-row-actions {
  grid-column: auto;
  gap: 3px;
}

#adminAccessView .admin-access-action-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: auto;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

#adminAccessView .admin-access-action-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#adminAccessView .admin-access-pagination {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 8px 16px 16px;
  border-top: 1px solid #e3e9eb;
  background: #ffffff;
}

#adminAccessView .admin-access-preview-head {
  display: grid;
  gap: 2px;
}

#adminAccessView .admin-access-dialog {
  position: fixed;
  inset: 0;
  width: min(940px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #243b42;
  box-shadow: 0 24px 70px rgba(18, 49, 45, 0.24);
}

#adminAccessView .admin-access-dialog:not([open]) {
  display: none;
}

#adminAccessView .admin-access-dialog::backdrop {
  background: rgba(18, 38, 43, 0.48);
  backdrop-filter: blur(2px);
}

#adminAccessView .admin-access-dialog .admin-access-preview-head {
  position: sticky;
  top: 0;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 14px;
  background: #ffffff;
}

#adminAccessView .admin-access-dialog .admin-access-preview-head strong {
  margin: 0;
  font-size: 1rem;
}

#adminAccessView .admin-access-dialog-close {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

#adminAccessView .admin-access-form {
  gap: 14px;
  padding: 0 16px 16px;
}

#adminAccessView .admin-access-section,
#adminAccessView .admin-access-rights {
  border-color: #dfe5e7;
  border-radius: 9px;
  padding: 14px;
  background: #ffffff;
}

#adminAccessView .admin-access-section legend,
#adminAccessView .admin-access-rights legend {
  color: #0b7285;
}

#adminAccessView .admin-access-identity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#adminAccessView .admin-access-rights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#adminAccessView .admin-access-rights label {
  min-height: 44px;
  border: 1px solid #e0e7e9;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fafb;
}

#adminAccessView .admin-access-rights label:hover {
  border-color: #b7d8dc;
  background: #f1f8f9;
}

#adminAccessView .admin-access-rights input,
#adminAccessView .admin-access-reset-choice input {
  accent-color: #0b7285;
}

#adminAccessView .admin-access-reset-choice {
  min-height: 48px;
  border: 1px solid #cfe3e6;
  border-radius: 9px;
  padding: 11px 12px;
  background: #f0f8f9;
  color: #31545c;
}

#adminAccessView .admin-access-submit {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  #adminAccessView .admin-access-identity-grid,
  #adminAccessView .admin-access-rights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #adminAccessView > .admin-portal-workspace-head {
    padding: 10px 12px;
  }

  #adminAccessView .admin-access-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  #adminAccessView .admin-access-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  #adminAccessView .admin-access-list-head-actions,
  #adminAccessView .admin-access-list-head-actions button {
    width: 100%;
  }

  #adminAccessView .admin-access-list-head-actions button {
    flex: 1 1 180px;
  }

  #adminAccessView .admin-access-filters,
  #adminAccessView .admin-access-identity-grid,
  #adminAccessView .admin-access-rights {
    grid-template-columns: 1fr;
  }

  #adminAccessView .admin-access-filter-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  #adminAccessView .admin-access-filters button {
    width: 100%;
  }

  #adminAccessView .admin-access-list {
    overflow: visible;
  }

  #adminAccessView .admin-access-table {
    max-height: none;
    min-width: 0;
    overflow: hidden;
  }

  #adminAccessView .admin-access-table-head {
    display: none;
  }

  #adminAccessView .admin-access-row {
    display: block;
    min-height: 44px;
    border-top: 1px solid #e7ecee;
    padding: 0;
    overflow: hidden;
  }

  #adminAccessView .admin-access-row-summary {
    display: none;
  }

  #adminAccessView .admin-access-table-head + .admin-access-row {
    border-top: 0;
  }

  #adminAccessView .admin-access-row-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    padding: 7px 10px 7px 12px;
    background: transparent;
    color: #12312d;
    font: inherit;
    text-align: left;
    touch-action: manipulation;
  }

  #adminAccessView .admin-access-row-toggle-user {
    min-width: 0;
  }

  #adminAccessView .admin-access-row-toggle-user strong,
  #adminAccessView .admin-access-row-toggle-user small {
    display: block;
  }

  #adminAccessView .admin-access-row-toggle-user small {
    overflow: hidden;
    color: #64747a;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminAccessView .admin-access-row-toggle-meta {
    display: flex;
    gap: 7px;
    align-items: center;
  }

  #adminAccessView .admin-access-row-chevron {
    color: #64747a;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 160ms ease;
  }

  #adminAccessView .admin-access-row[data-expanded="true"] .admin-access-row-chevron {
    transform: rotate(90deg);
  }

  #adminAccessView .admin-access-row-toggle:focus-visible {
    outline: none;
    box-shadow: inset var(--portal-focus-ring);
  }

  #adminAccessView .admin-access-row-expanded {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    border-top: 1px solid #e7ecee;
    background: rgba(255, 255, 255, 0.8);
  }

  #adminAccessView .admin-access-row[data-expanded="true"] .admin-access-row-expanded {
    display: grid;
  }

  #adminAccessView .admin-access-row-expanded-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  #adminAccessView .admin-access-row-expanded-data > div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 11px 7px 12px;
    border-top: 1px solid #edf1f2;
  }

  #adminAccessView .admin-access-row-expanded-data > div:first-child {
    border-top: 0;
  }

  #adminAccessView .admin-access-row-expanded-data > div > span {
    grid-row: 1 / span 2;
  }

  #adminAccessView .admin-access-row-expanded .admin-access-row-actions {
    padding: 0 11px 10px 12px;
  }

  #adminAccessView .admin-access-row-actions {
    justify-content: flex-start;
  }

  #adminAccessView .admin-access-row-actions button {
    min-height: 38px;
  }
}

@media (max-width: 520px) {
  #adminAccessView .admin-access-list-head-actions,
  #adminAccessView .admin-access-submit {
    align-items: stretch;
    flex-direction: column;
  }

  #adminAccessView .admin-access-list-head-actions button,
  #adminAccessView .admin-access-submit button {
    width: 100%;
    flex-basis: auto;
  }

  #adminAccessView .admin-access-row-expanded-data > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  #adminAccessView .admin-access-row-expanded-data > div > span {
    grid-row: auto;
  }
}

/* Espace DTN integre au langage visuel du portail. */
#adminDtnView {
  gap: 14px;
  padding: 0;
}

#adminDtnView > .admin-portal-workspace-head {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 16px 18px;
  background: #ffffff;
}

#adminDtnView > .admin-dtn-workspace-head {
  padding: 7px 10px;
}

#adminDtnView .admin-dtn-toolbar,
#adminDtnView .admin-dtn-grid,
#adminDtnView .admin-dtn-qualifiers {
  border-color: #dfe5e7;
  border-radius: 10px;
  box-shadow: none;
}

#adminDtnView .admin-dtn-toolbar {
  gap: 12px;
  padding: 14px;
  background: #ffffff;
}

#adminDtnView .admin-dtn-toolbar label {
  color: #52636a;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

#adminDtnView .admin-dtn-toolbar select {
  min-height: 40px;
  border-color: #d8e0e3;
  background: #f8fafb;
}

#adminDtnView .admin-dtn-toolbar select:focus,
#adminDtnView .admin-dtn-segment button:focus-visible,
#adminDtnView .admin-dtn-edf-tabs button:focus-visible,
#adminDtnView .admin-dtn-summary-group-head:focus-visible {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

#adminDtnView .admin-dtn-segment {
  border-color: #d8e0e3;
  border-radius: 8px;
  background: #f8fafb;
}

#adminDtnView .admin-dtn-segment button {
  min-height: 40px;
  border-color: #d8e0e3;
  color: #43575f;
}

#adminDtnView .admin-dtn-segment button[aria-pressed="true"] {
  background: #0b7285;
  color: #ffffff;
}

#adminDtnView .admin-dtn-definitions {
  gap: 8px;
}

#adminDtnView .admin-dtn-definitions span {
  border-color: #dbe4e6;
  border-radius: 8px;
  padding: 7px 10px;
  background: #f5f9f9;
  color: #617178;
}

#adminDtnView .admin-dtn-definitions .admin-dtn-competition-scope {
  background: #eef7f8;
}

#adminDtnView .admin-dtn-grid-head,
#adminDtnView .admin-dtn-qualifiers-head {
  min-height: 64px;
  padding: 13px 16px;
  border-color: #e3e9eb;
}

#adminDtnView .admin-dtn-grid-actions {
  display: flex;
  grid-auto-flow: initial;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

#adminDtnView .admin-dtn-grid-actions .admin-dtn-sex-segment,
#adminDtnView .admin-dtn-grid-actions .admin-dtn-refresh {
  margin-left: 0;
}

#adminDtnView .admin-dtn-grid-actions .admin-dtn-segment button,
#adminDtnView .admin-dtn-grid-actions .admin-dtn-refresh button {
  min-height: 36px;
}

#adminDtnView .admin-dtn-grid-head span,
#adminDtnView .admin-dtn-qualifiers-head span,
#adminDtnView .admin-dtn-edf-standard-head span {
  color: #0b7285;
}

#adminDtnView .admin-dtn-grid-head strong,
#adminDtnView .admin-dtn-qualifiers-head h3,
#adminDtnView .admin-dtn-edf-standard-head strong {
  color: #263940;
}

#adminDtnView .admin-dtn-edf-tabs {
  gap: 6px;
  padding: 10px 12px;
  border-color: #e3e9eb;
  background: #f7f9fa;
}

#adminDtnView .admin-dtn-edf-tabs button {
  min-height: 36px;
  border-radius: 8px;
}

#adminDtnView .admin-dtn-listing-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d5e1e4;
  background: #eef3f4;
}

#adminDtnView .admin-dtn-listing-tabs button {
  position: relative;
  min-height: 44px;
  border: 0;
  border-right: 1px solid #d5e1e4;
  padding: 8px 12px;
  background: transparent;
  color: #40545c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

#adminDtnView .admin-dtn-listing-tabs button:last-child {
  border-right: 0;
}

#adminDtnView .admin-dtn-listing-tabs button:hover,
#adminDtnView .admin-dtn-listing-tabs button:focus-visible {
  background: #f5f9fa;
  color: #0b7285;
}

#adminDtnView .admin-dtn-listing-tabs button[aria-selected="true"] {
  background: #e8f5f6;
  color: #087184;
  font-weight: 700;
}

#adminDtnView .admin-dtn-listing-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #0b879a;
  content: "";
}

#adminDtnView .admin-dtn-export {
  gap: 10px;
  padding: 0;
  border-color: #e3e9eb;
  background: #f8fafb;
}

#adminDtnView .admin-dtn-export > summary {
  position: relative;
  padding: 10px 38px 10px 14px;
  color: #0b7285;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

#adminDtnView .admin-dtn-export > summary::-webkit-details-marker {
  display: none;
}

#adminDtnView .admin-dtn-export > summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 120ms ease;
}

#adminDtnView .admin-dtn-export[open] > summary::after {
  transform: translateY(-30%) rotate(225deg);
}

#adminDtnView .admin-dtn-export > summary:hover,
#adminDtnView .admin-dtn-export > summary:focus-visible {
  background: #eef7f8;
}

#adminDtnView .admin-dtn-export-content {
  display: grid;
  gap: 10px;
  padding: 0 14px 12px;
}

#adminDtnView .admin-dtn-standards-table thead th,
#adminDtnView .admin-dtn-results-table thead th,
#adminDtnView .admin-dtn-standards-table thead th:first-child {
  border-color: #dfe6e8;
  background: #eef3f4;
  color: #40545c;
  font-size: 0.68rem;
}

#adminDtnView .admin-dtn-standards-table th,
#adminDtnView .admin-dtn-standards-table td,
#adminDtnView .admin-dtn-results-table th,
#adminDtnView .admin-dtn-results-table td {
  border-color: #e4eaec;
  padding: 7px 8px;
}

#adminDtnView .admin-dtn-time {
  min-height: 32px;
  border-radius: 7px;
}

#adminDtnView .admin-dtn-summary-list {
  gap: 8px;
  padding: 12px;
  background: #f6f8f9;
}

#adminDtnView .admin-dtn-summary-group {
  border-color: #dfe5e7;
  border-radius: 9px;
}

#adminDtnView .admin-dtn-summary-group-head {
  min-height: 54px;
  padding: 10px 12px;
}

#adminDtnView .admin-dtn-qualifiers > .admin-record-module-status {
  border-color: #e3e9eb;
  background: #f8fafb;
}

#adminDtnView .admin-dtn-listing-filters {
  display: grid;
  justify-content: start;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid #e3e9eb;
  background: #f8fafb;
}

#adminDtnView .admin-dtn-listing-filters[data-listing-tab="espoir"] {
  grid-template-columns: minmax(110px, 120px) auto minmax(105px, 130px) minmax(115px, 145px) auto;
}

#adminDtnView .admin-dtn-listing-filters[data-listing-tab="releve"] {
  grid-template-columns: auto minmax(105px, 130px) minmax(115px, 145px) auto;
}

#adminDtnView .admin-dtn-listing-sex {
  margin-left: 0;
}

#adminDtnView .admin-dtn-listing-sex button {
  min-width: 92px;
  white-space: nowrap;
}

#adminDtnView .admin-dtn-listing-filters label {
  display: grid;
  gap: 4px;
  color: #52636a;
  font-size: 0.7rem;
  font-weight: 500;
}

#adminDtnView .admin-dtn-listing-filters select {
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  padding: 0 9px;
  background: #fff;
  color: #263940;
}

#adminDtnView .admin-dtn-listing-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
}

#adminDtnView .admin-dtn-listing-table td {
  vertical-align: top;
}

#adminDtnView .admin-dtn-listing-table th:nth-child(1),
#adminDtnView .admin-dtn-listing-table td:nth-child(1) {
  width: 13%;
}

#adminDtnView .admin-dtn-listing-table th:nth-child(2),
#adminDtnView .admin-dtn-listing-table td:nth-child(2) {
  width: 12%;
}

#adminDtnView .admin-dtn-listing-table th:nth-child(3),
#adminDtnView .admin-dtn-listing-table td:nth-child(3) {
  width: 8%;
}

#adminDtnView .admin-dtn-listing-table th:nth-child(4),
#adminDtnView .admin-dtn-listing-table td:nth-child(4) {
  width: 6%;
}

#adminDtnView .admin-dtn-listing-table th:nth-child(5),
#adminDtnView .admin-dtn-listing-table td:nth-child(5),
#adminDtnView .admin-dtn-listing-table th:nth-child(6),
#adminDtnView .admin-dtn-listing-table td:nth-child(6) {
  width: 10%;
}

#adminDtnView .admin-dtn-listing-table th:nth-child(7),
#adminDtnView .admin-dtn-listing-table td:nth-child(7) {
  width: 41%;
  max-width: none;
}

#adminDtnView .admin-dtn-listing-table tbody tr[data-sex="F"] > td {
  background: #fff7fb;
}

#adminDtnView .admin-dtn-listing-table tbody tr[data-sex="M"] > td {
  background: #f5fbff;
}

#adminDtnView .admin-dtn-listing-table tbody tr[data-sex="F"] > td:first-child {
  box-shadow: inset 3px 0 #b01762;
}

#adminDtnView .admin-dtn-listing-table tbody tr[data-sex="M"] > td:first-child {
  box-shadow: inset 3px 0 #1769aa;
}

#adminDtnView .admin-dtn-listing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e9f7f5;
  color: #08635f;
  font-size: 0.68rem;
  font-weight: 500;
}

#adminDtnView .admin-dtn-listing-badge[data-level="TEP"] {
  background: #f2eefb;
  color: #5a428e;
}

#adminDtnView .admin-dtn-listing-badge[data-level="TEC1"] {
  background: #fff4e3;
  color: #8a4b08;
}

#adminDtnView .admin-dtn-listing-details summary {
  color: #0b7285;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

#adminDtnView .admin-dtn-listing-details .admin-dtn-qualified-courses {
  display: grid;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
}

#adminDtnView .admin-dtn-listing-details .admin-dtn-qualified-course {
  border-radius: 8px;
  cursor: default;
  white-space: normal;
}

#adminDtnView .admin-dtn-listing-details .admin-dtn-qualified-course small {
  max-height: none;
  margin-top: 2px;
  opacity: 1;
}

@media (max-width: 820px) {
  #adminDtnView .admin-dtn-toolbar {
    align-items: stretch;
  }

  #adminDtnView .admin-dtn-sex-segment,
  #adminDtnView .admin-dtn-refresh {
    margin-left: 0;
  }

  #adminDtnView .admin-dtn-refresh {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  #adminDtnView .admin-dtn-listing-filters[data-listing-tab] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #adminDtnView > .admin-portal-workspace-head {
    padding: 13px;
  }

  #adminDtnView .admin-dtn-toolbar label,
  #adminDtnView .admin-dtn-toolbar select,
  #adminDtnView .admin-dtn-segment,
  #adminDtnView .admin-dtn-refresh,
  #adminDtnView .admin-dtn-refresh button {
    width: 100%;
  }

  #adminDtnView .admin-dtn-segment button {
    flex: 1 1 50%;
  }

  #adminDtnView .admin-dtn-refresh {
    align-items: stretch;
    flex-direction: column;
  }

  #adminDtnView .admin-dtn-refresh span {
    max-width: none;
  }

  #adminDtnView .admin-dtn-grid-head,
  #adminDtnView .admin-dtn-qualifiers-head,
  #adminDtnView .admin-dtn-export-head {
    align-items: stretch;
    flex-direction: column;
  }

  #adminDtnView .admin-dtn-grid-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  #adminDtnView .admin-dtn-grid-actions .admin-dtn-sex-segment,
  #adminDtnView .admin-dtn-grid-actions .admin-dtn-refresh,
  #adminDtnView .admin-dtn-grid-actions .admin-dtn-refresh button {
    width: 100%;
  }

  #adminDtnView .admin-dtn-qualifiers-head button,
  #adminDtnView .admin-dtn-export-head button {
    width: 100%;
  }

  #adminDtnView .admin-dtn-listing-filters[data-listing-tab] {
    grid-template-columns: minmax(0, 1fr);
  }

  #adminDtnView .admin-dtn-listing-sex button {
    flex: 1 1 33.333%;
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.72rem;
  }

  #adminDtnView .admin-dtn-listing-filters button {
    width: 100%;
  }

  #adminDtnView .admin-dtn-listing-table th:first-child,
  #adminDtnView .admin-dtn-listing-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 1px solid #d9e3e6;
  }

  #adminDtnView .admin-dtn-listing-table th:first-child {
    z-index: 2;
    background: #eef3f4;
  }
}

/* Matrice des engagements individuels : nageurs en lignes, programme en colonnes. */
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-list {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  overflow: visible;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  border-left: 3px solid #8ba0a7;
  padding: 5px 9px;
  background: #f5f8f9;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group[data-entry-sex="F"] .admin-engagements-club-entry-group-head {
  border-left-color: #cf6f9b;
  background: #fff8fb;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group[data-entry-sex="M"] .admin-engagements-club-entry-group-head {
  border-left-color: #4f8fc5;
  background: #f7fbff;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group-head h4 {
  margin: 0;
  color: #263940;
  font-size: 0.9rem;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group-head span {
  color: #64777c;
  font-size: 0.74rem;
  font-weight: 500;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  background: #ffffff;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table-shell:focus-visible {
  outline: 3px solid rgba(11, 114, 133, 0.18);
  outline-offset: 2px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table {
  display: table;
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table th,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table td {
  height: 42px;
  border-right: 1px solid #edf1f2;
  border-bottom: 1px solid #e5eaec;
  padding: 5px 8px;
  color: #263940;
  font-size: 0.76rem;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-table thead th {
  background: #f5f8f9;
  color: #50646a;
  font-weight: 500;
  text-align: center;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-session-head th {
  height: 38px;
  border-bottom-color: #d7e0e2;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-session {
  color: #0b7285;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-session span,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-session small,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course-head span,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course-head small {
  display: block;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-session small,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course-head small {
  margin-top: 2px;
  color: #718188;
  font-size: 0.63rem;
  font-weight: 500;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course-head th,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course {
  width: 76px;
  min-width: 76px;
  text-align: center;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-identity:nth-child(1),
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row > :nth-child(1) {
  width: 158px;
  min-width: 158px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-identity:nth-child(2),
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row > :nth-child(2) {
  width: 86px;
  min-width: 86px;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-identity:nth-child(3),
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row > :nth-child(3) {
  width: 56px;
  min-width: 56px;
  text-align: center;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row {
  display: table-row;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row:hover > * {
  background-color: #f8fbfb;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row > th {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 500;
  text-overflow: ellipsis;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-swimmer :is(strong, span) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-swimmer strong {
  font-weight: 500;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-swimmer span {
  margin-top: 2px;
  color: #65777d;
  font-size: 0.68rem;
  font-weight: 400;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-last-name {
  position: sticky;
  z-index: 3;
  left: 0;
  background: #ffffff;
  box-shadow: 5px 0 8px -8px rgba(24, 55, 64, 0.55);
}

#adminEngagementsDetailEntriesPanel thead .admin-engagements-club-entry-last-name {
  z-index: 5;
  background: #f5f8f9;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-action {
  position: sticky;
  z-index: 3;
  right: 0;
  width: 74px;
  min-width: 74px;
  background: #ffffff;
  text-align: center;
  box-shadow: -5px 0 8px -8px rgba(24, 55, 64, 0.55);
}

#adminEngagementsDetailEntriesPanel thead .admin-engagements-club-entry-action {
  z-index: 5;
  background: #f5f8f9;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row[data-sex="F"] > .admin-engagements-club-entry-last-name,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row[data-sex="F"] > .admin-engagements-club-entry-action {
  background: #fff8fb;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row[data-sex="M"] > .admin-engagements-club-entry-last-name,
#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row[data-sex="M"] > .admin-engagements-club-entry-action {
  background: #f7fbff;
}

#adminEngagementsDetailEntriesPanel .is-session-start {
  border-left: 2px solid #a9cdd2;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course label {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 32px;
  border-radius: 7px;
  font-weight: 500;
  cursor: pointer;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course label:hover {
  background: #edf7f8;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: #0b7285;
}

#adminEngagementsDetailEntriesPanel [data-engagement-club-entry-cell-time] {
  display: block;
  max-width: 58px;
  overflow: hidden;
  color: #52676d;
  font-size: 0.57rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
}

#adminEngagementsDetailEntriesPanel [data-engagement-club-entry-cell-time][hidden] {
  display: none;
}

#adminEngagementsDetailEntriesPanel [data-engagement-club-entry-cell-time][data-entry-time-mode="manual"] {
  color: #8a4b08;
}

#adminEngagementsDetailEntriesPanel [data-engagement-club-entry-cell-time][data-entry-time-mode="pending"] {
  color: #64777c;
  font-weight: 500;
}

#adminEngagementsDetailEntriesPanel [data-engagement-club-entry-cell-time][data-entry-time-mode="error"] {
  color: #9b2c2c;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-course.is-unavailable {
  background: #f6f7f7;
  color: #a2adb0;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-times-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 54px;
  min-height: 30px;
  border-radius: 7px;
  padding: 3px 7px;
  font-weight: 500;
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-times-open :is(span, b) {
  font-size: 0.7rem;
  font-weight: 500;
}

.admin-engagements-club-times-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 32px));
  margin: auto;
  border: 1px solid #cfdadd;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  color: #263940;
  box-shadow: 0 24px 60px rgba(24, 55, 64, 0.25);
}

.admin-engagements-club-times-dialog::backdrop {
  background: rgba(21, 41, 47, 0.45);
  backdrop-filter: blur(2px);
}

.admin-engagements-club-times-dialog-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #e1e7e9;
  padding: 15px 17px 13px;
  background: #f7fafb;
}

.admin-engagements-club-times-dialog-head span {
  color: #0b7285;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-engagements-club-times-dialog-head h3,
.admin-engagements-club-times-dialog-head p {
  margin: 0;
}

.admin-engagements-club-times-dialog-head h3 {
  margin-top: 3px;
  color: #263940;
  font-size: 1.05rem;
}

.admin-engagements-club-times-dialog-head p {
  margin-top: 4px;
  color: #65777d;
  font-size: 0.74rem;
}

.admin-engagements-club-times-dialog-list {
  display: grid;
  max-height: min(500px, calc(100vh - 230px));
  overflow-y: auto;
  padding: 8px 17px;
}

.admin-engagements-club-time-dialog-row {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(260px, 1.6fr);
  gap: 5px 14px;
  align-items: center;
  border-bottom: 1px solid #e8edef;
  padding: 10px 0;
}

.admin-engagements-club-time-dialog-course strong,
.admin-engagements-club-time-dialog-course small {
  display: block;
}

.admin-engagements-club-time-dialog-course strong {
  color: #263940;
  font-size: 0.82rem;
}

.admin-engagements-club-time-dialog-course small,
.admin-engagements-club-time-dialog-help {
  color: #6a7b80;
  font-size: 0.68rem;
}

.admin-engagements-club-time-dialog-value {
  display: grid;
  grid-template-columns: minmax(72px, auto) auto minmax(90px, 115px);
  gap: 6px;
  align-items: center;
}

.admin-engagements-club-time-dialog-value > span {
  border: 1px solid #d9e2e4;
  border-radius: 6px;
  padding: 5px 7px;
  background: #f7faf9;
  color: #173f46;
  font-size: 0.75rem;
  font-weight: 850;
  text-align: center;
}

.admin-engagements-club-time-dialog-value > span[data-entry-time-mode="manual"] {
  border-color: #d7c58b;
  background: #fffaf0;
  color: #6e4b00;
}

.admin-engagements-club-time-history-select {
  width: min(100%, 170px);
  min-height: 30px;
  border: 1px solid #b7d8c1;
  border-radius: 6px;
  padding: 4px 28px 4px 7px;
  background-color: #f3fbf5;
  color: #20502c;
  font-size: 0.75rem;
  font-weight: 850;
}

.admin-engagements-club-time-history-select[data-has-alternatives="false"] {
  appearance: none;
  padding-right: 7px;
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: currentColor;
}

.admin-engagements-club-time-history-select[data-entry-time-mode="manual"] {
  border-color: #d7c58b;
  background-color: #fffaf0;
  color: #6e4b00;
}

.admin-engagements-club-time-dialog-value input {
  min-height: 30px;
  padding: 4px 7px;
  font-size: 0.78rem;
}

.admin-engagements-club-time-dialog-help {
  grid-column: 2;
}

.admin-engagements-club-times-dialog > .admin-portal-message {
  margin: 0;
  padding: 7px 17px;
}

.admin-engagements-club-times-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid #e1e7e9;
  padding: 11px 17px 13px;
  background: #ffffff;
}

.admin-engagements-club-relay-dialog {
  width: min(720px, calc(100vw - 28px));
}

.admin-engagements-club-relay-dialog-body {
  display: grid;
  gap: 12px;
  max-height: min(520px, calc(100vh - 210px));
  overflow-y: auto;
  padding: 14px 17px;
}

.admin-engagements-club-relay-dialog-fields {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(120px, 1fr) minmax(105px, 0.85fr) minmax(100px, 0.8fr);
  gap: 10px;
}

.admin-engagements-club-relay-dialog-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #52636a;
  font-size: 0.72rem;
  font-weight: 750;
}

.admin-engagements-club-relay-dialog-fields select,
.admin-engagements-club-relay-dialog-fields input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d8e0e3;
  border-radius: 7px;
  padding: 5px 8px;
  background: #ffffff;
  color: #263940;
  font: inherit;
}

.admin-engagements-club-relay-dialog-fields select {
  padding-right: 28px;
}

.admin-engagements-club-relay-dialog-fields select[data-gender="female"] {
  border-color: #e3b5ca;
  background: #fff8fb;
}

.admin-engagements-club-relay-dialog-fields select[data-gender="male"] {
  border-color: #b4cfe5;
  background: #f7fbff;
}

.admin-engagements-club-relay-dialog-fields select:focus,
.admin-engagements-club-relay-dialog-fields input:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

.admin-engagements-club-relay-dialog-members {
  border: 1px solid #dfe6e8;
  border-radius: 8px;
  background: #f9fbfb;
}

.admin-engagements-club-relay-dialog-members summary {
  padding: 10px 12px;
  color: #29464d;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-engagements-club-relay-dialog-members.is-unavailable summary {
  color: #7d8b90;
}

.admin-engagements-club-relay-dialog-members-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e4eaec;
  padding: 8px 12px 0;
}

.admin-engagements-club-relay-dialog-members-head p {
  margin: 0;
  color: #617279;
  font-size: 0.71rem;
  line-height: 1.35;
}

#adminEngagementsClubRelayDialogReset {
  min-height: 30px;
}

.admin-engagements-club-relay-dialog-list {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
}

.admin-engagements-club-relay-dialog-help {
  margin: 0;
  color: #617279;
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-engagements-club-relay-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.admin-engagements-club-relay-dialog-grid label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #52636a;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-engagements-club-relay-dialog-grid label > span {
  color: #0b7285;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.admin-engagements-club-relay-dialog-grid select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d8e0e3;
  border-radius: 7px;
  padding: 6px 32px 6px 9px;
  background: #ffffff;
  color: #263940;
  font: inherit;
}

.admin-engagements-club-relay-dialog-grid label[data-expected-sex="F"] select {
  border-color: #e3b5ca;
  background: #fff8fb;
}

.admin-engagements-club-relay-dialog-grid label[data-expected-sex="M"] select {
  border-color: #b4cfe5;
  background: #f7fbff;
}

.admin-engagements-club-relay-dialog-grid select:focus {
  border-color: #0b7285;
  outline: 3px solid rgba(11, 114, 133, 0.16);
  outline-offset: 1px;
}

@media (max-width: 620px) {
  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-identity:nth-child(1),
  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-row > :nth-child(1) {
    width: 118px;
    min-width: 118px;
  }

  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-action {
    position: static;
    width: 64px;
    min-width: 64px;
    box-shadow: none;
  }

  .admin-engagements-club-times-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .admin-engagements-club-times-dialog-list {
    max-height: calc(100vh - 250px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-engagements-club-time-dialog-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-engagements-club-time-dialog-value {
    grid-template-columns: minmax(72px, auto) auto minmax(88px, 110px);
  }

  .admin-engagements-club-time-history-select {
    width: 100%;
  }

  .admin-engagements-club-time-dialog-help {
    grid-column: 1;
  }

  .admin-engagements-club-times-dialog-actions button {
    flex: 1 1 0;
  }

  .admin-engagements-club-relay-dialog-list {
    padding: 8px 9px 10px;
  }

  .admin-engagements-club-relay-dialog-body {
    max-height: calc(100vh - 210px);
    padding: 12px;
  }

  .admin-engagements-club-relay-dialog-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-engagements-club-relay-dialog-grid {
    grid-template-columns: 1fr;
  }

}

/* Vues simples : compte et demande d'acces. */
#adminAccountView,
#adminAccessRequestView {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#adminAccountView > .admin-portal-workspace-head,
#adminAccessRequestView > .admin-portal-workspace-head {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  background: #ffffff;
}

#adminAccountView .admin-account-grid {
  gap: 14px;
}

#adminAccountView .admin-account-card,
#adminAccessRequestView .admin-access-preview {
  border-color: #dfe5e7;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
}

#adminAccountView .admin-account-card {
  gap: 16px;
  padding: 17px;
}

.admin-simple-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-simple-card-head > div {
  min-width: 0;
}

.admin-simple-card-head > div > span {
  display: block;
  color: #718087;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-simple-card-head h3,
.admin-simple-card-head strong {
  display: block;
  margin: 4px 0 5px;
  color: #263940;
}

.admin-simple-card-head p {
  margin: 0;
  color: #66777e;
  line-height: 1.45;
}

.admin-simple-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.admin-simple-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-simple-card-icon.tone-profile {
  color: #0b7285;
  background: #e4f3f5;
}

.admin-simple-card-icon.tone-email {
  color: #1769aa;
  background: #e9f3fb;
}

.admin-simple-card-icon.tone-security {
  color: #6741d9;
  background: #f0edff;
}

.admin-simple-card-icon.tone-request {
  color: #2f7d6d;
  background: #e8f5f1;
}

#adminAccountView .admin-account-scope-list > div {
  border-color: #e2e7e9;
  background: #f8fafb;
}

#adminAccountView .admin-account-capabilities span {
  border-color: #cfe1e4;
  color: #315b64;
  background: #f0f8f9;
}

#adminAccountView .admin-account-form label,
#adminAccessRequestView .admin-access-form label {
  color: #51636a;
}

#adminAccountView .admin-account-form input,
#adminAccessRequestView .admin-access-form input,
#adminAccessRequestView .admin-access-form select,
#adminAccessRequestView .admin-access-form textarea {
  border-color: #d5dde0;
  background: #fbfcfd;
}

.admin-account-notification-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #dce5e7;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafb;
}

.admin-account-notification-setting > div {
  display: grid;
  gap: 4px;
}

.admin-account-notification-setting strong {
  color: #183f47;
  font-size: 0.9rem;
}

.admin-account-notification-setting span {
  color: #607279;
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-account-notification-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 82px;
  min-height: 42px;
  border: 1px solid #b8c7ca;
  border-radius: 999px;
  padding: 5px 9px 5px 6px;
  background: #e7ecee;
  color: #53666c;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-account-notification-switch-track {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #a8b5b8;
  transition: background 160ms ease;
}

.admin-account-notification-switch-track > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(21 54 61 / 24%);
  transition: transform 160ms ease;
}

.admin-account-notification-switch[aria-checked="true"] {
  border-color: #69aa9d;
  background: #e7f5f1;
  color: #196556;
}

.admin-account-notification-switch[aria-checked="true"] .admin-account-notification-switch-track {
  background: #238b78;
}

.admin-account-notification-switch[aria-checked="true"] .admin-account-notification-switch-track > span {
  transform: translateX(16px);
}

.admin-account-notification-switch:focus-visible {
  outline: 3px solid rgb(11 114 133 / 24%);
  outline-offset: 2px;
}

.admin-account-notification-switch:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-account-notification-switch-state {
  min-width: 24px;
  color: inherit !important;
  font-size: 0.72rem !important;
}

#adminAccessRequestView .admin-access-preview {
  gap: 18px;
  padding: 17px;
}

#adminAccessRequestView .admin-access-preview-head {
  align-items: center;
}

#adminAccessRequestView .admin-access-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#adminAccessRequestView .admin-access-section {
  border-color: #e0e6e8;
  background: #f8fafb;
}

#adminAccessRequestView .admin-access-section legend {
  color: #617178;
}

@media (max-width: 720px) {
  #adminAccountView .admin-account-grid,
  #adminAccountView .admin-account-scope-list,
  #adminAccessRequestView .admin-access-identity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .admin-simple-card-head {
    grid-template-columns: 1fr;
  }
}

/* Module Records / MPF integre au langage visuel du portail. */
#adminRecordsView > .admin-records-workspace-head {
  min-height: 0;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  background: #ffffff;
}

#adminRecordsView .admin-records-workspace-head > div > span {
  display: block;
  color: #0b7285;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#adminRecordsView .admin-records-workspace-head h2 {
  margin-top: 4px;
  color: #263940;
}

#adminRecordsView .admin-records-workspace-head p {
  margin: 4px 0 0;
  color: #687980;
  font-size: 0.86rem;
  line-height: 1.4;
}

#adminRecordsView .admin-record-module-status,
#adminRecordsView .admin-finder-card,
#adminRecordsView .admin-table-card,
#adminRecordsView .admin-edit-card,
#adminRecordsView .admin-history-panel-global {
  border-color: #dfe5e7;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
}

#adminRecordsView .admin-record-module-status {
  padding: 14px 16px;
  color: #66777e;
}

#adminRecordsView .admin-workbench {
  gap: 14px;
}

#adminRecordsView .admin-finder-card {
  gap: 16px;
  padding: 16px;
}

.admin-records-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid #e6eaec;
}

.admin-records-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #0b7285;
  background: #e4f3f5;
}

.admin-records-section-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-records-section-head span,
.admin-records-section-head strong,
.admin-records-section-head p {
  display: block;
}

.admin-records-section-head span {
  color: #718087;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-records-section-head strong {
  margin-top: 3px;
  color: #263940;
}

.admin-records-section-head p {
  margin: 3px 0 0;
  color: #687980;
  font-size: 0.84rem;
}

#adminRecordsView .admin-filter-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

#adminRecordsView .admin-filter-grid label,
#adminRecordsView .admin-filter-scope {
  color: #52646b;
}

#adminRecordsView .admin-filter-grid select,
#adminRecordsView .admin-filter-grid input {
  min-height: 40px;
  border-color: #d5dde0;
  border-radius: 7px;
  color: #263940;
  background: #fbfcfd;
}

#adminRecordsView .segmented {
  min-height: 40px;
  border-color: #d5dde0;
  border-radius: 7px;
}

#adminRecordsView .segment.active:not(.sex-f):not(.sex-m) {
  background: #0b7285;
}

#adminRecordsView .admin-table-card {
  overflow: hidden;
}

#adminRecordsView .table-head {
  padding: 15px 16px;
  border-color: #e4e9eb;
  background: #fbfcfd;
}

#adminRecordsView .table-head .admin-label,
#adminRecordsView .admin-edit-head .admin-label {
  color: #0b7285;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#adminRecordsView .table-head h2 {
  margin-top: 3px;
  color: #263940;
}

#adminRecordsView .admin-record-table thead th {
  border-color: #e5eaec;
  color: #66777e;
  background: #f6f8f9;
}

#adminRecordsView .admin-record-table td {
  border-color: #e8ecee;
}

#adminRecordsView .admin-table-row:hover,
#adminRecordsView .admin-table-row.active {
  outline-color: rgba(11, 114, 133, 0.28);
  background: #f3f9fa;
}

#adminRecordsView .admin-inline-edit-row > td {
  background: #f7f9fa;
}

#adminRecordsView .admin-edit-head {
  padding: 15px 16px;
  border-color: #e4e9eb;
  background: #fbfcfd;
}

#adminRecordsView .admin-edit-head h2 {
  color: #263940;
}

#adminRecordsView .admin-edit-head > span {
  color: #075866;
  background: #e4f3f5;
}

#adminRecordsView .admin-form-stacked {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

#adminRecordsView .admin-form-stacked label {
  color: #52646b;
}

#adminRecordsView .admin-form-stacked input,
#adminRecordsView .admin-form-stacked select {
  border-color: #d5dde0;
  background: #fbfcfd;
}

#adminRecordsView .admin-actions {
  padding: 0 16px 16px;
}

#adminRecordsView .admin-drafts-panel {
  border-color: #8cc8c0;
  border-left-color: #0b7285;
  border-radius: 9px;
  background: #f2f9f8;
}

#adminRecordsView .admin-drafts-head {
  border-color: #cee4e1;
}

#adminRecordsView .admin-global-alert {
  border-radius: 9px;
}

#adminRecordsView .admin-history-head {
  border-color: #e4e9eb;
  background: #fbfcfd;
}

#adminRecordsView .status-pill {
  min-height: 24px;
  align-items: center;
  padding-inline: 8px;
}

@media (max-width: 1180px) {
  #adminRecordsView .admin-filter-grid,
  #adminRecordsView .admin-form-stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #adminRecordsView .admin-records-workspace-head,
  #adminRecordsView .admin-drafts-head,
  #adminRecordsView .table-head,
  #adminRecordsView .admin-edit-head {
    align-items: stretch;
    flex-direction: column;
  }

  #adminRecordsView .admin-records-workspace-head .ghost-button {
    width: 100%;
    min-width: 0;
  }

  #adminRecordsView .admin-filter-grid,
  #adminRecordsView .admin-form-stacked {
    grid-template-columns: 1fr;
  }

  .admin-records-section-head {
    grid-template-columns: 1fr;
  }
}

/* Modules Import et Correction integres au langage visuel du portail. */
#adminImportView > .admin-module-workspace-head,
#adminCorrectionView > .admin-module-workspace-head {
  min-height: 0;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  background: #ffffff;
}

#adminImportView .admin-module-workspace-head > span,
#adminCorrectionView .admin-module-workspace-head > span {
  display: block;
  color: #0b7285;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#adminImportView .admin-module-workspace-head h2,
#adminCorrectionView .admin-module-workspace-head h2 {
  margin-top: 4px;
  color: #263940;
}

#adminImportView .admin-module-workspace-head p,
#adminCorrectionView .admin-module-workspace-head p {
  margin: 4px 0 0;
  color: #687980;
  font-size: 0.86rem;
  line-height: 1.4;
}

#adminImportView .admin-record-module-status,
#adminCorrectionView .admin-record-module-status,
#adminImportView .import-card,
#adminCorrectionView .import-card {
  border-color: #dfe5e7;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
}

#adminImportView .admin-record-module-status,
#adminCorrectionView .admin-record-module-status {
  padding: 14px 16px;
  color: #66777e;
}

#adminImportView .import-workbench,
#adminCorrectionView .import-workbench {
  gap: 14px;
}

#adminImportView .import-card,
#adminCorrectionView .import-card {
  gap: 16px;
  padding: 17px;
}

#adminImportView .import-card-head > span,
#adminImportView .import-card-head > div > span,
#adminCorrectionView .import-card-head > span,
#adminCorrectionView .import-card-head > div > span {
  color: #0b7285;
  letter-spacing: 0.05em;
}

#adminImportView .import-card-head strong,
#adminCorrectionView .import-card-head strong {
  color: #263940;
}

#adminImportView .import-card-head p,
#adminCorrectionView .import-card-head p {
  color: #687980;
  line-height: 1.45;
}

#adminImportView .competition-import-form label,
#adminImportView .competition-import-history-filters label,
#adminCorrectionView .performance-correction-search label,
#adminCorrectionView .performance-correction-grid label,
#adminCorrectionView .performance-correction-reason {
  color: #52646b;
}

#adminImportView .competition-import-form input,
#adminImportView .competition-import-form select,
#adminImportView .competition-import-history-filters input,
#adminImportView .competition-import-history-filters select,
#adminCorrectionView .performance-correction-search input,
#adminCorrectionView .performance-correction-search select,
#adminCorrectionView .performance-correction-grid input,
#adminCorrectionView .performance-correction-reason textarea,
#adminCorrectionView .performance-correction-split input {
  min-height: 40px;
  border-color: #d5dde0;
  border-radius: 7px;
  color: #263940;
  background: #fbfcfd;
}

#adminImportView .competition-import-form input:focus,
#adminImportView .competition-import-form select:focus,
#adminImportView .competition-import-history-filters input:focus,
#adminImportView .competition-import-history-filters select:focus,
#adminCorrectionView .performance-correction-search input:focus,
#adminCorrectionView .performance-correction-search select:focus,
#adminCorrectionView .performance-correction-grid input:focus,
#adminCorrectionView .performance-correction-reason textarea:focus,
#adminCorrectionView .performance-correction-split input:focus {
  border-color: #6eb4bc;
  box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.1);
}

#adminImportView .import-summary-grid div {
  border-color: #e0e6e8;
  border-radius: 8px;
  background: #f8fafb;
}

#adminImportView .import-table-wrap,
#adminCorrectionView .import-table-wrap {
  border-color: #e0e6e8;
  border-radius: 8px;
}

#adminImportView .import-preview-table th,
#adminCorrectionView .import-preview-table th {
  border-color: #e5eaec;
  color: #66777e;
  background: #f6f8f9;
}

#adminImportView .import-preview-table td,
#adminCorrectionView .import-preview-table td {
  border-color: #e8ecee;
}

#adminImportView .competition-import-history-filters {
  padding: 13px;
  border: 1px solid #e2e7e9;
  border-radius: 8px;
  background: #f8fafb;
}

#adminImportView .competition-import-row {
  border-color: #e0e6e8;
  border-radius: 8px;
  background: #ffffff;
}

#adminImportView .competition-import-row summary:hover,
#adminImportView .competition-import-row summary:focus-visible {
  background: #f1f7f8;
}

#adminImportView .super-admin-maintenance {
  border-color: #c9e0dc;
  background: #f5faf9;
}

#adminImportView .advanced-tools-summary::after {
  color: #075866;
  background: #e4f3f5;
}

#adminCorrectionView .performance-correction-suggestions button,
#adminCorrectionView .performance-correction-results-button {
  border-color: #dfe5e7;
  border-radius: 8px;
  color: #263940;
}

#adminCorrectionView .performance-correction-suggestions button:hover,
#adminCorrectionView .performance-correction-results-button:hover,
#adminCorrectionView .performance-correction-row:hover,
#adminCorrectionView .performance-correction-row:focus-visible {
  border-color: #86c0c7;
  background: #f1f7f8;
}

#adminCorrectionView .performance-correction-form {
  margin-top: 2px;
  padding: 16px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  background: #f8fafb;
}

#adminCorrectionView .performance-correction-form > .import-card-head-inline {
  padding-bottom: 13px;
  border-bottom: 1px solid #e2e7e9;
}

#adminCorrectionView .performance-correction-split {
  border-color: #e0e6e8;
  background: #ffffff;
}

#adminCorrectionView .danger-button {
  border-color: #e2aaa5 !important;
  color: #9f1d16 !important;
  background: #fff4f3 !important;
}

@media (max-width: 1120px) {
  #adminImportView .competition-import-form,
  #adminCorrectionView .performance-correction-search,
  #adminCorrectionView .performance-correction-grid,
  #adminImportView .competition-import-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #adminImportView .competition-import-form,
  #adminCorrectionView .performance-correction-search,
  #adminCorrectionView .performance-correction-grid,
  #adminImportView .competition-import-history-filters {
    grid-template-columns: 1fr;
  }

  #adminImportView .import-card-head-inline,
  #adminCorrectionView .import-card-head-inline {
    align-items: stretch;
    flex-direction: column;
  }

  #adminImportView .import-card-actions,
  #adminCorrectionView .admin-portal-actions {
    justify-content: flex-start;
  }
}

/* Vues d'accueil du portail et de ses espaces. */
.admin-portal-overview-view,
.admin-portal-space-home {
  display: grid;
  gap: 16px;
}

.admin-portal-overview-view[hidden],
.admin-portal-space-home[hidden],
.admin-overview-card[hidden] {
  display: none;
}

.admin-portal-page .admin-overview-head {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  background: #ffffff;
}

.admin-portal-page .admin-portal-space-home > .admin-overview-head {
  padding: 10px 14px;
  border-color: #cfe3e6;
  background: linear-gradient(135deg, #f0f8f9 0%, #f7fbfb 100%);
  box-shadow: inset 4px 0 0 #0b7285;
}

.admin-portal-page .admin-portal-space-home > .admin-overview-head > span {
  font-size: 0.7rem;
  line-height: 1.2;
}

.admin-portal-page .admin-portal-space-home > .admin-overview-head h2 {
  margin: 2px 0 3px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.admin-portal-page .admin-portal-space-home > .admin-overview-head p {
  font-size: 0.9rem;
  line-height: 1.32;
}

.admin-overview-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.admin-overview-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.admin-overview-spaces {
  align-items: start;
}

.admin-overview-space-card {
  overflow: hidden;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  background: #ffffff;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.admin-overview-space-card[hidden] {
  display: none;
}

.admin-overview-space-card:hover,
.admin-overview-space-card:focus-within,
.admin-overview-space-card.is-expanded {
  border-color: #86c0c7;
  box-shadow: 0 8px 22px rgba(24, 64, 73, 0.08);
  transform: translateY(-1px);
}

.admin-overview-space-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  min-height: 164px;
  padding: 17px;
  color: #263940;
  text-decoration: none;
}

.admin-overview-space-main > .admin-overview-card-icon {
  grid-column: 1;
}

.admin-overview-space-main > strong {
  grid-column: 1 / -1;
  margin-top: 5px;
  font-size: 1.05rem;
}

.admin-overview-space-main > strong:has(+ .admin-pending-badge-card),
.admin-overview-card > strong:has(+ .admin-pending-badge-card) {
  padding-right: 38px;
}

.admin-pending-badge-card {
  position: absolute;
  top: 61px;
  right: 17px;
  z-index: 1;
}

.admin-overview-space-main > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #66777e;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-overview-space-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 34px);
  min-height: 38px;
  margin: 0 17px;
  border: 0;
  border-top: 1px solid #e5ecee;
  padding: 8px 0;
  color: #456069;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-overview-space-toggle-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #0b7285;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.admin-overview-space-toggle-icon-vertical {
  transform-box: view-box;
  transform-origin: center;
  transition: opacity 120ms ease, transform 150ms ease;
}

.admin-overview-space-toggle[aria-expanded="true"] .admin-overview-space-toggle-icon-vertical {
  opacity: 0;
  transform: scaleY(0);
}

.admin-overview-space-tools {
  display: grid;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  gap: 4px;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transition: max-height 220ms ease, padding 220ms ease, opacity 150ms ease;
}

.admin-overview-space-card.is-expanded .admin-overview-space-tools {
  visibility: visible;
  max-height: 320px;
  padding-top: 4px;
  padding-bottom: 14px;
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .admin-overview-space-card:hover .admin-overview-space-tools {
    visibility: visible;
    max-height: 320px;
    padding-top: 4px;
    padding-bottom: 14px;
    opacity: 1;
    pointer-events: auto;
  }
}

.admin-overview-space-tools a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-radius: 7px;
  padding: 7px 9px;
  color: #31545c;
  background: #f4f8f8;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.admin-overview-space-tools a[hidden] {
  display: none;
}

.admin-overview-space-tools a:hover,
.admin-overview-space-tools a:focus-visible {
  color: #075d6d;
  background: #e7f3f4;
}

.admin-overview-space-tools a > span {
  flex: 0 0 auto;
  color: #0b7285;
  font-weight: 900;
}

.admin-overview-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  min-height: 178px;
  padding: 17px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  color: #263940;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.admin-overview-card:hover,
.admin-overview-card:focus-visible {
  border-color: #86c0c7;
  box-shadow: 0 8px 22px rgba(24, 64, 73, 0.08);
  transform: translateY(-1px);
}

.admin-overview-card-icon {
  grid-column: 1;
}

.admin-overview-card-label {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  color: #718087;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-overview-card > strong {
  grid-column: 1 / -1;
  margin-top: 5px;
  font-size: 1.05rem;
}

.admin-overview-card > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #66777e;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-overview-card-arrow {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  color: #0b7285;
  font-size: 1.1rem;
  font-weight: 900;
}

.admin-overview-card-icon.tone-neutral {
  color: #526b73;
  background: #edf3f4;
}

.admin-overview-card-icon.tone-performance {
  color: #0b7285;
  background: #e4f3f5;
}

.admin-overview-card-icon.tone-import {
  color: #2f7d6d;
  background: #e8f5f1;
}

.admin-overview-card-icon.tone-dtn {
  color: #1769aa;
  background: #e9f3fb;
}

.admin-overview-card-icon.tone-engagements {
  color: #b54a35;
  background: #fff0ed;
}

.admin-overview-card-icon.tone-access {
  color: #6741d9;
  background: #f0edff;
}

@media (max-width: 620px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-card {
    min-height: 158px;
  }
}

@media (max-width: 520px) {
  .admin-portal-page .admin-portal-topbar {
    padding: 7px 10px;
  }

  .admin-portal-page .admin-portal-topbar h1 {
    font-size: 1.08rem;
  }

  .admin-portal-page .admin-portal-federal-logo {
    width: 46px;
  }

  .admin-portal-page .admin-portal-shell,
  .admin-portal-page.performance-admin-page .admin-portal-shell {
    width: calc(100% - 16px);
    margin-top: 10px;
  }

  .admin-portal-page .admin-portal-workspace-head,
  .admin-portal-page .admin-records-workspace-head,
  .admin-portal-page .admin-module-workspace-head {
    padding: 12px;
  }
}

/* Le nom du portail reste lisible sur une ligne, même sur les mobiles étroits. */
@media (max-width: 380px) {
  .admin-portal-page .admin-portal-topbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 6px;
    padding-inline: 8px;
  }

  .admin-portal-page .admin-portal-topbar h1 {
    font-size: 0.94rem;
  }

  .admin-portal-page .admin-portal-federal-logo {
    width: 38px;
  }

  .admin-portal-page .admin-portal-topbar-actions {
    gap: 4px;
  }

  .admin-portal-page .admin-portal-nav-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 8px;
  }

  .admin-portal-page .admin-portal-account-menu > button {
    min-height: 36px;
    padding-inline: 7px;
  }
}

/* Hiérarchie typographique du portail : le gras reste réservé aux titres. */
.admin-portal-page {
  font-weight: var(--portal-font-weight-regular);
}

.admin-portal-page :is(h1, h2, h3, h4) {
  font-weight: var(--portal-font-weight-bold);
}

.admin-portal-page :is(strong, label, legend, th, button) {
  font-weight: var(--portal-font-weight-semibold);
}

.admin-portal-page :is(input, select, textarea) {
  font-weight: var(--portal-font-weight-regular);
}

.admin-portal-page .admin-portal-nav :is(a, .admin-portal-nav-parent) {
  font-weight: var(--portal-font-weight-medium);
}

.admin-portal-page .admin-portal-nav :is(a.active, a[aria-current="page"], .admin-portal-nav-parent.active, .admin-portal-nav-parent[aria-current="page"]) {
  font-weight: var(--portal-font-weight-semibold);
}

.admin-portal-page :is(
  .admin-portal-nav-title,
  .admin-portal-nav-group h2,
  .admin-portal-workspace-head > span,
  .admin-overview-card-label,
  [class*="-eyebrow"],
  [class*="-label"],
  [class*="-badge"],
  [class*="-status"]
) {
  font-weight: var(--portal-font-weight-semibold);
}

.admin-portal-page :is([class*="-meta"], small) {
  font-weight: var(--portal-font-weight-medium);
}

.admin-portal-page :is(.admin-overview-space-toggle, .admin-overview-space-tools a) {
  font-weight: var(--portal-font-weight-medium);
}

/* Les tableaux s'appuient sur l'alignement et les surfaces, pas sur le gras. */
.admin-portal-page table td {
  font-weight: var(--portal-font-weight-regular);
}

.admin-portal-page table th,
.admin-portal-page table :is(
  strong,
  b,
  button,
  [class*="-code"],
  [class*="-count"],
  [class*="-badge"],
  [class*="-name"],
  [class*="-status"],
  [class*="-threshold"],
  [class*="-time"]
) {
  font-weight: var(--portal-font-weight-medium);
}

.admin-portal-page [role="tab"] {
  font-weight: var(--portal-font-weight-regular);
}

.admin-portal-page [role="tab"][aria-selected="true"] {
  font-weight: var(--portal-font-weight-medium);
}

#adminDtnView :is(
  .admin-dtn-grid-head strong,
  .admin-dtn-qualifiers-head h3,
  .admin-dtn-edf-standard-head strong
) {
  font-weight: var(--portal-font-weight-medium);
}

/* Repérage et fil d'Ariane du portail. */
.admin-portal-topbar-actions {
  display: flex;
  grid-column: 3;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

.admin-portal-topbar-actions .admin-portal-account-menu {
  grid-column: auto;
}

.admin-portal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 5px 8px;
  color: #6a7b81;
  font-size: 0.78rem;
}

.admin-portal-breadcrumb[hidden] {
  display: none;
}

.admin-portal-breadcrumb a {
  color: #456069;
  font-weight: var(--portal-font-weight-medium);
  text-decoration: none;
}

.admin-portal-breadcrumb a:hover {
  color: var(--portal-color-accent-strong);
  text-decoration: underline;
}

.admin-portal-breadcrumb [aria-current="page"] {
  color: #263940;
  font-weight: var(--portal-font-weight-medium);
}

.admin-portal-breadcrumb-separator {
  color: #9aa7ab;
}

/* Confort opérationnel : filtres persistants dans la vue et chargements lisibles. */
.admin-portal-results-count {
  margin: 0;
  padding: 2px 2px 0;
  color: #66777e;
  font-size: 0.78rem;
  font-weight: var(--portal-font-weight-regular);
}

@media (min-width: 821px) {
  #adminEngagementsCalendarCard .admin-engagements-calendar-filters,
  #adminDtnView .admin-dtn-toolbar,
  #adminImportView .competition-import-history-filters {
    position: sticky;
    z-index: 12;
    top: 62px;
    box-shadow: 0 7px 14px rgba(24, 55, 64, 0.06);
  }
}

.admin-portal-page [aria-live].is-loading::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--portal-color-accent);
  content: "";
  animation: admin-portal-loading-pulse 900ms ease-in-out infinite alternate;
}

@keyframes admin-portal-loading-pulse {
  from { opacity: 0.3; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1); }
}

.admin-portal-page .admin-long-operation {
  position: sticky;
  top: 12px;
  z-index: 18;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin: 12px 0;
  border: 1px solid #e3b64d;
  border-radius: 10px;
  padding: 13px 15px 11px;
  background: #fff8df;
  box-shadow: 0 8px 24px rgba(38, 54, 50, 0.14);
  color: #634700;
}

.admin-portal-page .admin-long-operation[hidden] { display: none; }

.admin-portal-page .admin-long-operation-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 3px solid rgba(151, 104, 0, 0.24);
  border-top-color: #976800;
  border-radius: 999px;
  animation: admin-long-operation-spin 0.85s linear infinite;
}

.admin-portal-page .admin-long-operation-copy { min-width: 0; }

.admin-portal-page .admin-long-operation-copy strong,
.admin-portal-page .admin-long-operation-copy p {
  display: block;
  margin: 0;
}

.admin-portal-page .admin-long-operation-copy strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.admin-portal-page .admin-long-operation-copy p {
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-portal-page .admin-long-operation-elapsed {
  min-width: 105px;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: right;
}

.admin-portal-page .admin-long-operation-bar {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 104, 0, 0.18);
}

.admin-portal-page .admin-long-operation-bar > span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: #bd8000;
  animation: admin-long-operation-slide 1.35s ease-in-out infinite;
}

.admin-portal-page .admin-long-operation:is([data-state="success"], [data-state="error"], [data-state="background"]) {
  position: static;
  box-shadow: none;
}

.admin-portal-page .admin-long-operation[data-state="success"] {
  border-color: #90cbbd;
  background: #effaf6;
  color: #0f5f57;
}

.admin-portal-page .admin-long-operation[data-state="error"] {
  border-color: #efb3aa;
  background: #fff1ef;
  color: #9f2f21;
}

.admin-portal-page .admin-long-operation[data-state="background"] {
  border-color: #9fc7dc;
  background: #eef8fc;
  color: #245c75;
}

.admin-portal-page .admin-long-operation:is([data-state="success"], [data-state="error"], [data-state="background"]) .admin-long-operation-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  background: currentColor;
  color: #ffffff;
  animation: none;
}

.admin-portal-page .admin-long-operation[data-state="success"] .admin-long-operation-icon::before { content: "✓"; }
.admin-portal-page .admin-long-operation[data-state="error"] .admin-long-operation-icon::before { content: "!"; }
.admin-portal-page .admin-long-operation[data-state="background"] .admin-long-operation-icon::before { content: "…"; }

.admin-portal-page .admin-long-operation:is([data-state="success"], [data-state="error"], [data-state="background"]) .admin-long-operation-bar {
  display: none;
}

@keyframes admin-long-operation-spin {
  to { transform: rotate(360deg); }
}

@keyframes admin-long-operation-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}

@media (max-width: 760px) {
  .admin-portal-page .admin-long-operation {
    top: 6px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .admin-portal-page .admin-long-operation-elapsed {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .admin-portal-responsive-table,
  .admin-portal-responsive-table tbody,
  .admin-portal-responsive-table tr,
  .admin-portal-responsive-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-portal-responsive-table {
    min-width: 0 !important;
    border-spacing: 0 9px;
  }

  .admin-portal-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .admin-portal-responsive-table tr {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--portal-color-border);
    border-radius: 9px;
    background: #ffffff;
  }

  .admin-portal-responsive-table td[data-label] {
    display: grid;
    grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
    gap: 10px;
    border-right: 0 !important;
    padding: 8px 10px !important;
    text-align: left !important;
  }

  .admin-portal-responsive-table td[data-label]::before {
    color: #718087;
    font-size: 0.7rem;
    font-weight: var(--portal-font-weight-medium);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    content: attr(data-label);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-portal-page [aria-live].is-loading::before {
    animation: none;
  }

  .admin-portal-page .admin-long-operation-icon,
  .admin-portal-page .admin-long-operation-bar > span {
    animation: none;
  }

  .admin-portal-page .admin-long-operation-bar > span {
    width: 100%;
  }
}

@media (max-width: 620px) {
  #adminDtnView .admin-dtn-listing-table {
    display: table;
    width: 100%;
    min-width: 860px !important;
    border-spacing: 0;
  }

  #adminDtnView .admin-dtn-listing-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  #adminDtnView .admin-dtn-listing-table tbody {
    display: table-row-group;
    width: auto;
  }

  #adminDtnView .admin-dtn-listing-table tr {
    display: table-row;
    width: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  #adminDtnView .admin-dtn-listing-table th,
  #adminDtnView .admin-dtn-listing-table td,
  #adminDtnView .admin-dtn-listing-table td[data-label] {
    display: table-cell;
    min-width: 0;
    padding: 7px 8px !important;
    text-align: left !important;
  }

  #adminDtnView .admin-dtn-listing-table td[data-label]::before {
    content: none;
  }
}

/* En-tetes de vues compacts et fiche compte progressive. */
.admin-portal-page :is(
  .admin-portal-workspace-head,
  .admin-records-workspace-head,
  .admin-module-workspace-head
) {
  min-height: 0;
  padding: 9px 12px;
}

.admin-portal-page :is(
  .admin-portal-workspace-head,
  .admin-records-workspace-head,
  .admin-module-workspace-head
) > span,
.admin-portal-page :is(
  .admin-records-workspace-head,
  .admin-module-workspace-head
) > div > span {
  font-size: 0.66rem;
}

.admin-portal-page :is(
  .admin-portal-workspace-head,
  .admin-records-workspace-head,
  .admin-module-workspace-head
) h2 {
  margin: 2px 0 3px;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.2;
}

.admin-portal-page :is(
  .admin-portal-workspace-head,
  .admin-records-workspace-head,
  .admin-module-workspace-head
) p {
  font-size: 0.84rem;
  line-height: 1.35;
}

#adminAccountView .admin-account-identity {
  display: grid;
  gap: 4px;
}

#adminAccountView .admin-account-identity > strong {
  color: #263940;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: var(--portal-font-weight-semibold);
}

#adminAccountView .admin-account-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #66777e;
  font-size: 0.84rem;
}

#adminAccountView .admin-account-identity-meta > span + span::before {
  margin-right: 14px;
  color: #b4bec2;
  content: "•";
}

#adminAccountView .admin-account-scope-sentence {
  margin: 0;
  border-left: 3px solid #8fc4ca;
  border-radius: 0 7px 7px 0;
  padding: 8px 10px;
  background: #f4f9fa;
  color: #3f565e;
  font-size: 0.88rem;
  line-height: 1.4;
}

#adminAccountView .admin-account-scope-sentence strong {
  color: #173b35;
  font-weight: var(--portal-font-weight-bold);
}

#adminAccountView .admin-account-capabilities-details {
  border-top: 1px solid #edf0f1;
  padding-top: 10px;
}

#adminAccountView .admin-account-capabilities-details > summary {
  color: #456069;
  font-size: 0.82rem;
  font-weight: var(--portal-font-weight-medium);
  cursor: pointer;
}

#adminAccountView .admin-account-capabilities-details[open] > summary {
  margin-bottom: 10px;
}

#adminAccountView .admin-account-edit-card {
  display: block;
  overflow: hidden;
  padding: 0;
}

#adminAccountView .admin-account-edit-card > summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 13px 14px;
  list-style: none;
  cursor: pointer;
}

#adminAccountView .admin-account-edit-card > summary::-webkit-details-marker {
  display: none;
}

#adminAccountView .admin-account-edit-card > summary::after {
  color: #718087;
  font-size: 1.25rem;
  content: "›";
  transition: transform 160ms ease;
}

#adminAccountView .admin-account-edit-card[open] > summary::after {
  transform: rotate(90deg);
}

#adminAccountView .admin-account-edit-card > summary h3 {
  margin: 2px 0;
  font-size: 1rem;
}

#adminAccountView .admin-account-edit-card > summary p {
  font-size: 0.8rem;
}

#adminAccountView .admin-account-edit-card > .admin-account-form {
  margin: 0 14px 14px;
  border-top: 1px solid #edf0f1;
  padding-top: 13px;
}

@media (max-width: 520px) {
  .admin-portal-page :is(
    .admin-portal-workspace-head,
    .admin-records-workspace-head,
    .admin-module-workspace-head
  ) {
    padding: 8px 10px;
  }

  #adminAccountView .admin-account-identity-meta {
    display: grid;
    gap: 3px;
  }

  #adminAccountView .admin-account-identity-meta > span + span::before {
    display: none;
  }

  #adminAccountView .admin-account-edit-card > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

/* En-tête commun des pages-outils : un titre unique, compact et immédiatement lisible. */
.admin-portal-page .admin-tool-workspace-head {
  min-height: 0;
  border: 1px solid #dfe5e7;
  border-left: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 9px 12px;
  background: #ffffff;
  box-shadow: none;
}

.admin-portal-page .admin-tool-workspace-head > div {
  min-width: 0;
}

.admin-portal-page .admin-tool-workspace-head h2 {
  margin: 0;
  color: #263940;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.2;
}

/* Calendrier club : priorité à l'action, filtres progressifs et saison longue. */
#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] {
  gap: 14px;
}

#adminEngagementsView[data-engagements-tab="calendar"] > .admin-portal-workspace-head {
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 9px 12px;
  background: #ffffff;
}

#adminEngagementsView[data-engagements-tab="calendar"] > .admin-portal-workspace-head h2 {
  margin: 2px 0 3px;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

#adminEngagementsView[data-engagements-tab="calendar"] > .admin-portal-workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

#adminEngagementsView[data-engagements-tab="calendar"] > .admin-portal-workspace-head > :not(.admin-engagements-workspace-back) {
  grid-column: 1;
}

#adminEngagementsView #adminEngagementsCalendarActions {
  grid-column: 2;
  grid-row: 1 / span 3;
}

#adminEngagementsView[data-engagements-tab="clubPeople"] > .admin-portal-workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

#adminEngagementsView #adminEngagementsClubPeopleActions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

#adminEngagementsView #adminEngagementsClubPeopleActions button {
  min-height: 36px;
}

#adminEngagementsView .admin-engagements-workspace-back {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: auto;
  white-space: nowrap;
}

#adminEngagementsView .admin-engagements-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid #d6e1e3;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eef3f4;
  color: #40565d;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail {
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-head {
  padding: 10px var(--portal-panel-gutter);
  border-bottom: 0;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-head > div:first-child {
  display: grid;
  flex: 1 1 auto;
  grid-template-areas:
    "context context"
    "title badges"
    "subtitle badges";
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  min-width: 0;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-head h4 {
  grid-area: title;
  margin-top: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-subtitle {
  grid-area: subtitle;
  margin-top: 2px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-state-row {
  grid-area: badges;
  align-self: start;
  justify-content: flex-end;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-level-badge,
#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-entry-status,
#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-save-state {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-level-badge,
#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-entry-status {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: var(--portal-font-weight-semibold);
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-head {
  padding-bottom: 2px;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-tabs {
  margin-top: -8px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-tabs {
  border: 1px solid #e3e9eb;
}

.admin-engagements-official-swimmer-picker {
  border: 1px solid #dce5e7;
  border-radius: 9px;
  padding: 9px 11px;
  background: #f7f9fa;
}

.admin-engagements-official-swimmer-picker > summary {
  color: #435960;
  font-weight: 650;
  cursor: pointer;
}

.admin-engagements-official-swimmer-picker > div {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 9px;
}

.admin-engagements-official-swimmer-picker label,
.admin-engagements-club-person-swimmer-source {
  display: grid;
  gap: 5px;
}

.admin-engagements-official-swimmer-picker select,
.admin-engagements-club-person-swimmer-source select {
  width: 100%;
}

.admin-engagements-official-swimmer-picker > small,
.admin-engagements-club-person-swimmer-source small {
  display: block;
  margin-top: 6px;
  color: #667980;
  font-size: 0.72rem;
}

.admin-engagements-club-person-swimmer-source {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  #adminEngagementsView[data-engagements-tab="calendar"] > .admin-portal-workspace-head {
    grid-template-columns: 1fr;
  }

  #adminEngagementsView .admin-engagements-workspace-back {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 5px;
  }

  #adminEngagementsView #adminEngagementsCalendarActions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 5px;
  }

  .admin-engagements-official-swimmer-picker > div {
    grid-template-columns: 1fr;
  }

  .admin-engagements-official-swimmer-picker button {
    width: 100%;
  }
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarCard {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #dfe5e7;
  border-radius: 10px;
  padding: 0 0 16px;
  overflow: hidden;
  background: #ffffff;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarCard[data-detail-open="true"] {
  gap: 0;
  border: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
  grid-column: 1;
  grid-row: auto;
  margin: 16px 16px 0;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsStatus {
  grid-column: 1;
  grid-row: auto;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsStatus[data-tone="neutral"] {
  display: none;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarList,
#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsDetail {
  grid-column: 1;
  grid-row: auto;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarCard[data-detail-open="true"] #adminEngagementsStatus {
  display: none;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarCard[data-detail-open="true"] > .admin-engagements-card-head {
  display: none;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
  margin: 16px 16px 0;
  border: 1px solid #dfe6e8;
  border-radius: 9px;
  padding: 12px;
  background: #f7f9fa;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarList {
  margin: 0 var(--portal-card-gutter);
  padding: 0;
}

#adminEngagementsCalendarCard .admin-engagements-filter-primary,
#adminEngagementsCalendarCard .admin-engagements-advanced-filters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

#adminEngagementsCalendarCard .admin-engagements-filter-primary > label {
  min-width: 150px;
}

#adminEngagementsCalendarCard .admin-engagements-status-segments {
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

#adminEngagementsCalendarCard .admin-engagements-status-segments[hidden] {
  display: none;
}

#adminEngagementsCalendarCard .admin-engagements-status-segments button {
  min-height: 40px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  padding: 7px 14px;
  background: #ffffff;
  color: #50636a;
  font-weight: 750;
}

#adminEngagementsCalendarCard .admin-engagements-status-segments button:hover,
#adminEngagementsCalendarCard .admin-engagements-status-segments button:focus-visible,
#adminEngagementsCalendarCard .admin-engagements-status-segments button[aria-pressed="true"] {
  border-color: #0b7285;
  background: #0b7285;
  color: #ffffff;
}

#adminEngagementsCalendarCard .admin-engagements-advanced-filters {
  border-top: 1px solid #e1e7e9;
  padding-top: 6px;
}

#adminEngagementsCalendarCard .admin-engagements-advanced-filters > summary {
  width: fit-content;
  padding: 3px 0;
  color: #0b7285;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

#adminEngagementsCalendarCard .admin-engagements-advanced-filters > div {
  padding-top: 10px;
}

#adminEngagementsCalendarCard .admin-engagements-advanced-filters label {
  min-width: 190px;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group {
  display: grid;
  gap: 7px;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group > h4 {
  margin: 8px 2px 0;
  padding: 0;
  color: #53666d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group:first-child > h4 {
  color: #0b7285;
}

#adminEngagementsCalendarCard .admin-engagements-competition-group > div {
  display: grid;
  gap: 8px;
}

#adminEngagementsCalendarCard .admin-engagements-competition {
  grid-template-columns: 145px minmax(250px, 1fr) minmax(220px, auto);
  gap: 14px;
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  padding: 12px 14px;
}

#adminEngagementsCalendarCard .admin-engagements-competition:hover {
  border-color: #b7d8dc;
  background: #fbfdfd;
}

#adminEngagementsCalendarCard .admin-engagements-competition.selected {
  border-color: #77b6be;
  border-radius: 9px;
  background: #f2f9fa;
  box-shadow: inset 3px 0 0 #0b7285;
}

#adminEngagementsCalendarCard .admin-engagements-competition-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competition-main strong {
  color: #263940;
  font-size: 0.95rem;
}

#adminEngagementsCalendarCard .admin-engagements-competition-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

#adminEngagementsCalendarCard .admin-engagements-competition-metadata span {
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef3f4;
  color: #5b6d73;
  font-size: 0.69rem;
  font-weight: 700;
}

#adminEngagementsCalendarCard .admin-engagements-competition [data-entry-status] {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

#adminEngagementsCalendarCard .admin-engagements-competition-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  justify-items: end;
  align-self: center;
  text-align: right;
}

#adminEngagementsCalendarCard .admin-engagements-competition-side [data-entry-status],
#adminEngagementsCalendarCard .admin-engagements-competition-side .admin-engagements-competition-actions {
  grid-area: auto;
  max-width: none;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-empty {
  display: grid;
  justify-items: start;
  gap: 5px;
  background: #f7f9fa;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarCard .admin-engagements-calendar-empty {
  border: 1px solid #dfe5e7;
  border-radius: 9px;
  background: #f7f9fa;
}

#adminEngagementsCalendarCard .admin-engagements-calendar-empty strong {
  color: #34484f;
}

#adminEngagementsCalendarCard .admin-engagements-show-more {
  justify-self: center;
  margin-top: 5px;
}

@media (max-width: 1120px) {
  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-areas:
      "date side"
      "title side";
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  }

  #adminEngagementsCalendarCard .admin-engagements-competition time {
    grid-area: date;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-main {
    grid-area: title;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-side {
    grid-area: side;
  }
}

@media (max-width: 700px) {
  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsStatus {
    margin-left: 12px;
  }

  #adminEngagementsCalendarCard .admin-engagements-calendar-filters,
  #adminEngagementsCalendarCard > .admin-portal-message,
  #adminEngagementsCalendarCard > .admin-engagements-calendar-list {
    margin-right: 12px;
    margin-left: 12px;
  }

  .admin-engagements-calendar-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters,
  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarList {
    margin-right: 12px;
    margin-left: 12px;
  }

  #adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
    margin-top: 12px;
  }

  #adminEngagementsCalendarCard .admin-engagements-filter-primary,
  #adminEngagementsCalendarCard .admin-engagements-advanced-filters > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  #adminEngagementsCalendarCard .admin-engagements-status-segments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsCalendarCard .admin-engagements-status-segments button {
    width: auto;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition {
    grid-template-areas:
      "date"
      "title"
      "side";
    grid-template-columns: minmax(0, 1fr);
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-side {
    justify-items: start;
    text-align: left;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition [data-entry-status] {
    justify-self: start;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition-side,
  #adminEngagementsCalendarCard .admin-engagements-competition-actions,
  #adminEngagementsCalendarCard .admin-engagements-competition-actions button {
    width: 100%;
  }
}

/* Le programme conserve ses deux colonnes jusqu'aux petits mobiles. */
@media (min-width: 521px) and (max-width: 1080px) {
  .admin-engagements-program-day-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Les nageurs ne passent en accordéon que sur les petits mobiles. */
@media (min-width: 521px) and (max-width: 700px) {
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-list {
    overflow-x: auto;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-section,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-table {
    min-width: 500px;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-head {
    display: grid;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmers-head,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row {
    grid-template-columns: minmax(145px, 1fr) 72px 30px 38px minmax(130px, 0.55fr);
    gap: 4px;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row {
    min-height: 25px;
    padding: 0 8px;
    overflow: visible;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row > label:first-child {
    min-height: 100%;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-mobile-meta,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details-toggle {
    display: none;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row .admin-engagements-club-swimmer-details,
  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-row[data-expanded="true"] .admin-engagements-club-swimmer-details {
    display: contents;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details > span[data-label] {
    display: block;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details > .admin-engagements-club-swimmer-license-cell {
    grid-column: auto;
  }

  #adminEngagementsDetailSwimmersPanel .admin-engagements-club-swimmer-details > [data-label]::before {
    display: none;
  }
}

/* Priorité finale du calendrier : bandeau plat, cinq colonnes et mini-fiches mobiles. */
#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarCard:not([data-detail-open="true"]) {
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarCard:not([data-detail-open="true"]) > .admin-engagements-card-head {
  border: 0;
  padding: 0 0 4px;
  background: transparent;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
  margin: 0;
  border: 1px solid #dfe5e7;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding: 8px 10px;
  background: #f7f9fa;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary {
  flex: 1 1 620px;
  gap: 6px;
  align-items: end;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary > label {
  min-width: 122px;
  max-width: 150px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters select,
#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters button {
  min-height: 34px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-status-segments {
  flex: 1 1 380px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-status-segments button {
  min-height: 34px;
  padding: 5px 11px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters {
  flex: 0 0 auto;
  border: 0;
  padding: 0 0 4px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters[open] {
  flex-basis: 100%;
  border-top: 1px solid #e1e7e9;
  padding-top: 6px;
}

#adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarList {
  margin: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table {
  border: 0;
  border-top: 1px solid #dfe5e7;
  border-bottom: 1px solid #dfe5e7;
  border-radius: 0;
  overflow: clip;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competitions-table-head,
#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition {
  grid-template-areas: none;
  grid-template-columns: 100px minmax(240px, 1.6fr) minmax(125px, 0.65fr) minmax(190px, 0.85fr) minmax(220px, 1fr);
  gap: 10px;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competitions-table-head {
  display: grid;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group {
  gap: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > h4,
#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group:first-of-type > h4 {
  margin: 0;
  border-bottom: 1px solid #dfe5e7;
  padding: 5px 10px;
  background: transparent;
  color: #0b7285;
  font-size: 0.7rem;
  font-weight: 700;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition {
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid #e5eaec;
  border-radius: 0;
  padding: 7px 10px;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition.selected {
  border-color: transparent;
  border-radius: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-main {
  grid-area: auto;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-main strong {
  font-size: 0.83rem;
  font-weight: 650;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-main .admin-engagements-competition-location {
  overflow: hidden;
  color: #62747a;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-status small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-actions {
  min-width: 0;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-actions button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

#adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-actions svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1120px) and (min-width: 761px) {
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competitions-table-head,
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition {
    grid-template-columns: 92px minmax(200px, 1fr) minmax(105px, 0.55fr) minmax(155px, 0.75fr) minmax(180px, 1fr);
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition {
    grid-template-areas: none;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > * {
    grid-area: auto;
  }
}

@media (max-width: 760px) {
  #adminEngagementsCalendarCard .admin-engagements-competitions-table {
    border: 0;
    overflow: visible;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competitions-table-head {
    display: none;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group {
    gap: 7px;
    margin-bottom: 12px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > h4,
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group:first-of-type > h4 {
    border: 0;
    padding: 4px 2px 0;
    background: transparent;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition {
    grid-template-areas:
      "date scope"
      "name name"
      "status status"
      "action action";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    min-height: 0;
    border: 1px solid #dfe5e7;
    border-radius: 9px;
    padding: 9px 10px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition.selected {
    border-color: #77b6be;
    border-radius: 9px;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > * { grid-area: auto; }
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > .admin-engagements-competition-date { grid-area: date; }
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > .admin-engagements-competition-main { grid-area: name; }
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > .admin-engagements-competition-scope { grid-area: scope; }
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > .admin-engagements-competition-status { grid-area: status; }
  #adminEngagementsCalendarCard .admin-engagements-competitions-table > .admin-engagements-competition-group > .admin-engagements-competition > .admin-engagements-competition-actions { grid-area: action; }

  #adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
    padding: 8px;
  }

  #adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary,
  #adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-status-segments {
    flex-basis: 100%;
  }

  #adminEngagementsCalendarCard .admin-engagements-competitions-table .admin-engagements-competition-main .admin-engagements-competition-location {
    white-space: normal;
  }
}

/* Aplatissement final du calendrier, prioritaire sur les anciennes cartes Club. */
#adminEngagementsView[data-engagements-mode][data-engagements-tab="calendar"] {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#adminEngagementsView[data-engagements-mode][data-engagements-tab="calendar"] #adminEngagementsCalendarCard:not([data-detail-open="true"]) {
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#adminEngagementsView[data-engagements-mode][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
  display: flex;
  margin: 0;
  border: 1px solid #dfe5e7;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  padding: 8px 10px;
  background: #f7f9fa;
}

#adminEngagementsView[data-engagements-mode][data-engagements-tab="calendar"] #adminEngagementsCalendarList {
  margin: 0;
}

@media (max-width: 760px) {
  #adminEngagementsView[data-engagements-mode][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
    margin: 0;
    padding: 8px;
  }

  #adminEngagementsView[data-engagements-mode][data-engagements-tab="calendar"] #adminEngagementsCalendarList {
    margin: 0;
  }
}

/* Administration nationale : navigation par tache et annuaires compacts. */
.admin-national-home-groups,
.admin-national-home-group {
  display: grid;
  gap: 9px;
}

.admin-national-home-groups {
  gap: 16px;
}

.admin-national-home-group-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px;
}

.admin-national-home-group-head h3 {
  margin: 0;
  color: #263940;
  font-size: 0.95rem;
}

.admin-national-home-group-head span {
  color: #718087;
  font-size: 0.76rem;
}

.admin-national-home .admin-overview-card {
  min-height: 118px;
  padding: 13px 15px;
}

.admin-national-home .admin-overview-card > strong {
  margin-top: 1px;
}

.admin-national-home .admin-overview-card > p {
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-national-home-card-primary {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: 3px 12px;
  border-color: #c9dde0;
  background: linear-gradient(120deg, #ffffff 0%, #f2f8f9 100%);
}

.admin-national-home-card-primary > .admin-overview-card-icon {
  grid-column: 1;
  grid-row: 1 / 3;
}

.admin-national-home-card-primary > .admin-overview-card-label {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.admin-national-home-card-primary > strong {
  grid-column: 2;
  grid-row: 2;
}

.admin-national-home-card-primary > p {
  grid-column: 2;
  grid-row: 3;
}

.admin-national-home-card-primary > .admin-overview-card-arrow {
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: center;
}

.admin-national-overview-counts {
  display: grid;
  grid-column: 3;
  grid-row: 1 / 4;
  gap: 2px;
  align-content: center;
  justify-items: end;
  min-width: 160px;
  margin-right: 25px;
}

.admin-national-overview-counts > span {
  color: #52636a;
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-national-overview-counts > span strong {
  color: #0b7285;
  font-size: 1.35rem;
}

.admin-national-overview-counts .admin-pending-badge-large {
  min-width: 26px;
  height: 26px;
  color: #ffffff;
  background: #c92a2a;
  font-size: 0.8rem;
}

.admin-national-overview-counts small {
  max-width: 260px;
  color: #718087;
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: right;
}

.admin-national-reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-national-home-card-journal {
  width: min(100%, 620px);
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] {
  gap: 8px;
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] > .admin-portal-workspace-head {
  border-radius: 8px;
  padding: 9px 12px;
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] .admin-engagements-national-workspace,
#adminEngagementsView[data-engagements-tab="deletionRequests"] .admin-national-page-card {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] .admin-engagements-national-workspace[hidden] {
  display: none;
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] .admin-national-page-card[hidden] {
  display: none;
}

.admin-national-directory-toolbar,
.admin-national-audit-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(135px, 180px) auto auto;
  gap: 7px;
  margin: 0 0 5px;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  padding: 8px;
  background: #f7f9fa;
}

.admin-national-audit-filters {
  grid-template-columns: minmax(140px, 1.6fr) repeat(5, minmax(72px, 1fr)) auto;
  align-items: end;
}

.admin-national-audit-filters > label:first-child {
  grid-column: auto;
}

.admin-national-audit-filter-actions {
  display: flex;
  grid-column: auto;
  gap: 0;
  justify-content: flex-end;
}

.admin-national-audit-filter-actions button {
  width: auto;
}

.admin-national-audit-user-picker {
  position: relative;
  display: block;
}

.admin-national-audit-user-picker input {
  width: 100%;
  padding-right: 28px;
}

.admin-national-audit-user-picker input[data-selected="true"] {
  border-color: #68a99d;
  background: #f4fbf9;
}

.admin-national-audit-user-selected {
  position: absolute;
  top: 50%;
  right: 9px;
  color: #187463;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.admin-national-audit-user-selected[hidden] {
  display: none;
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] > .admin-portal-workspace-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

#adminEngagementsView[data-engagements-tab="deletionRequests"] > .admin-portal-workspace-head h2 {
  margin-right: auto;
}

.admin-national-audit-head-refresh {
  flex: 0 0 auto;
  width: auto;
  min-height: 26px;
  border-color: #d7e1e4;
  padding: 3px 8px;
  color: #49646d;
  background: #ffffff;
  font-size: 0.7rem;
  line-height: 1;
}

.admin-national-audit-head-refresh[hidden] {
  display: none;
}

.admin-national-audit-filter-actions .admin-national-reset-button {
  min-height: 22px;
  border: 0;
  padding: 1px 3px;
  color: #829096;
  background: transparent;
  font-size: 0.64rem;
}

.admin-national-audit-filter-actions .admin-national-reset-button:hover,
.admin-national-audit-filter-actions .admin-national-reset-button:focus-visible {
  color: #526a73;
  text-decoration: underline;
}

.admin-national-directory-toolbar label,
.admin-national-audit-filters label {
  gap: 2px;
  font-size: 0.66rem;
}

.admin-national-directory-toolbar input,
.admin-national-directory-toolbar select,
.admin-national-audit-filters input,
.admin-national-audit-filters select,
.admin-national-directory-toolbar button,
.admin-national-audit-filters button {
  min-height: 32px;
}

.admin-national-reset-button {
  border-color: transparent;
  padding-inline: 8px;
  color: #66777e;
  background: transparent;
  font-size: 0.74rem;
}

.admin-national-merge-mode-button[aria-pressed="true"] {
  border-color: #0b7285;
  color: #075d6d;
  background: #e9f8fb;
}

.admin-national-page-status {
  min-height: 0;
  margin: 2px 2px 5px !important;
  padding: 0;
  color: #718087;
  background: transparent;
  font-size: 0.7rem;
  line-height: 1.3;
}

.admin-national-page-status:empty {
  display: none;
}

.admin-national-page-status[data-tone="error"],
.admin-national-page-status[data-tone="warning"] {
  border-left: 3px solid currentColor;
  padding: 5px 8px;
  background: #fffaf7;
}

.admin-national-page-card .admin-engagements-national-bulk-actions {
  min-height: 0 !important;
  margin: 5px 0 !important;
  padding: 7px 9px !important;
}

.admin-national-page-card .admin-engagements-national-table-wrap {
  border-radius: 6px;
}

.admin-national-page-card .admin-engagements-national-table {
  min-width: 880px;
  font-size: 0.78rem;
}

.admin-national-page-card .admin-engagements-national-table th,
.admin-national-page-card .admin-engagements-national-table td {
  height: 34px;
  padding: 4px 7px !important;
}

.admin-national-page-card .admin-engagements-national-table th {
  font-size: 0.66rem;
}

.admin-national-clubs-list {
  display: grid;
  gap: 6px;
}

.admin-national-clubs-show-more {
  justify-self: center;
  margin-top: 8px;
}

.admin-national-club-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(150px, 0.7fr) minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.admin-national-club-card-main,
.admin-national-club-card-reference,
.admin-national-club-card-administrators {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-national-club-card-main strong,
.admin-national-club-card-reference strong,
.admin-national-club-card-administrators strong {
  color: #153f47;
  font-size: 0.84rem;
}

.admin-national-club-card-main span,
.admin-national-club-card-main small,
.admin-national-club-card-reference span,
.admin-national-club-card-reference small,
.admin-national-club-card-administrators > span,
.admin-national-club-card-administrators > small,
.admin-national-club-card-administrators > small span {
  overflow: hidden;
  color: #6a7a80;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-national-club-card-administrators > small {
  display: grid;
  gap: 0;
}

.admin-national-club-card-administrators > small + small {
  margin-top: 3px;
}

.admin-national-club-status {
  border-radius: 999px;
  padding: 3px 7px;
  color: #66777e;
  background: #eef2f3;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-national-club-status[data-active="true"] {
  color: #176447;
  background: #e7f6ee;
}

.admin-national-club-dialog {
  width: min(680px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(10, 44, 53, 0.24);
}

.admin-national-club-dialog::backdrop {
  background: rgba(7, 38, 45, 0.45);
}

.admin-national-club-dialog form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-national-club-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-national-club-form-wide,
.admin-national-club-active {
  grid-column: 1 / -1;
}

.admin-national-club-active {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
}

.admin-national-club-active input {
  width: auto;
}

@media (max-width: 700px) {
  .admin-access-new-club-fields {
    grid-template-columns: 1fr;
  }

  .admin-national-club-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-national-club-card-reference,
  .admin-national-club-card-administrators {
    grid-column: 1;
  }

  .admin-national-club-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-national-club-form-wide,
  .admin-national-club-active {
    grid-column: 1;
  }
}

.admin-engagements-national-table[data-merge-mode="false"] .admin-engagements-national-choice,
.admin-engagements-national-table[data-merge-mode="false"] .admin-engagements-national-merge-only {
  display: none;
}

.admin-engagements-national-table-actions {
  position: relative;
  justify-content: center;
  width: 46px;
  min-width: 46px;
}

.admin-national-row-menu {
  position: relative;
}

.admin-national-row-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #456069;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.admin-national-row-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-national-row-menu > summary:hover,
.admin-national-row-menu > summary:focus-visible,
.admin-national-row-menu[open] > summary {
  border-color: #bfd8dc;
  color: #075d6d;
  background: #edf6f7;
}

.admin-national-row-menu > div {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 160px;
  margin-top: 5px;
  padding: 6px;
  border: 1px solid #d8e0e3;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 55, 62, 0.12);
}

.admin-national-row-menu > div button {
  justify-content: flex-start;
  width: 100%;
  min-height: 30px;
  white-space: nowrap;
}

.admin-national-row-no-action {
  color: #9aa7aa;
}

.admin-national-requests-page {
  display: grid !important;
  gap: 8px;
}

.admin-national-requests-page[hidden] {
  display: none !important;
}

.admin-national-request-group {
  border: 1px solid #dfe5e7;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.admin-national-request-group[hidden] {
  display: none;
}

.admin-national-request-group > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 9px 12px;
  color: #263940;
  background: #f7f9fa;
  cursor: pointer;
}

.admin-national-request-group > summary h3 {
  margin: 0;
  font-size: 0.88rem;
}

.admin-national-request-group > summary span {
  color: #0b7285;
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-national-request-group[open] > summary {
  border-bottom: 1px solid #e3e9eb;
  background: #eef6f7;
}

.admin-national-request-group > .admin-national-page-status,
.admin-national-request-group > .admin-engagements-request-list {
  margin-right: 10px !important;
  margin-left: 10px !important;
}

.admin-national-request-group > .admin-national-page-status {
  margin-top: 8px !important;
}

.admin-national-request-group > .admin-engagements-request-list {
  margin-top: 9px;
  margin-bottom: 10px;
}

.admin-national-requests-empty {
  margin: 0;
  padding: 22px 14px;
  text-align: center;
}

.admin-national-audit-list {
  display: grid;
  gap: 5px;
}

.admin-national-audit-entry {
  border: 1px solid #dfe6e8;
  border-left: 3px solid #8ba4aa;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.admin-national-audit-entry[data-audit-category="access"],
.admin-national-audit-entry[data-audit-category="requests"] {
  border-left-color: #d28a22;
}

.admin-national-audit-entry[data-audit-category="performances"] {
  border-left-color: #7356a8;
}

.admin-national-audit-entry[data-audit-category="technical"] {
  border-left-color: #6f7d82;
}

.admin-national-audit-entry > summary {
  display: grid;
  grid-template-columns: 128px minmax(210px, 1.4fr) minmax(150px, 0.8fr) minmax(140px, 0.7fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 7px 10px;
  color: #263d44;
  list-style: none;
  cursor: pointer;
}

.admin-national-audit-entry > summary::-webkit-details-marker {
  display: none;
}

.admin-national-audit-entry > summary:hover,
.admin-national-audit-entry > summary:focus-visible,
.admin-national-audit-entry[open] > summary {
  background: #f3f8f9;
}

.admin-national-audit-entry > summary time,
.admin-national-audit-actor,
.admin-national-audit-club {
  overflow: hidden;
  color: #65777d;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-national-audit-entry-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-national-audit-entry-main strong,
.admin-national-audit-entry-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-national-audit-entry-main strong {
  color: #173e47;
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-national-audit-entry-main small {
  color: #718087;
  font-size: 0.68rem;
}

.admin-national-audit-count {
  border-radius: 999px;
  padding: 3px 7px;
  color: #075d6d;
  background: #e5f3f5;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-national-audit-chevron {
  color: #557178;
  font-size: 0.9rem;
  transition: transform 140ms ease;
}

.admin-national-audit-entry[open] .admin-national-audit-chevron {
  transform: rotate(180deg);
}

.admin-national-audit-entry-details {
  border-top: 1px solid #e4eaec;
  padding: 10px 12px 12px;
  background: #fbfcfc;
}

.admin-national-audit-detail-grid,
.admin-national-audit-grouped-actions dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  margin: 0;
}

.admin-national-audit-detail-grid > div,
.admin-national-audit-grouped-actions dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
  padding: 3px 0;
}

.admin-national-audit-entry-details dt,
.admin-national-audit-entry-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.69rem;
}

.admin-national-audit-entry-details dt {
  color: #728188;
}

.admin-national-audit-entry-details dd {
  color: #263d44;
}

.admin-national-audit-summary-sentence {
  margin: 0 0 9px;
  color: #29464d;
  font-size: 0.75rem;
}

.admin-national-audit-action-summary {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-national-audit-action-summary > li {
  border-left: 3px solid #b8d1d5;
  padding: 5px 0 5px 9px;
}

.admin-national-audit-action-summary > li > div:first-child {
  display: flex;
  gap: 5px 10px;
  align-items: baseline;
  justify-content: space-between;
}

.admin-national-audit-action-summary strong {
  color: #21464e;
  font-size: 0.73rem;
}

.admin-national-audit-action-summary span,
.admin-national-audit-action-summary small {
  color: #718087;
  font-size: 0.65rem;
}

.admin-national-audit-action-summary small {
  display: block;
  margin-top: 5px;
}

.admin-national-audit-action-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
  margin: 2px 0 0;
}

.admin-national-audit-action-summary dl > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.55fr) minmax(0, 1fr);
  gap: 7px;
}

.admin-national-audit-change {
  grid-column: 1 / -1;
  border-bottom: 1px solid #e7eeee;
}

.admin-national-audit-change dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.admin-national-audit-change dd > span:first-child {
  color: #6f7d82;
  text-decoration: line-through;
  text-decoration-color: #b7c1c4;
}

.admin-national-audit-change dd > strong {
  color: #176856;
  font-weight: 750;
}

.admin-national-audit-change-arrow {
  color: #8b999e;
}

.admin-national-audit-grouped-actions {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.admin-national-audit-grouped-actions li {
  padding-left: 4px;
}

.admin-national-audit-grouped-actions li > time {
  margin-right: 8px;
  color: #728188;
  font-size: 0.67rem;
}

.admin-national-audit-grouped-actions li > strong {
  color: #26464d;
  font-size: 0.72rem;
}

.admin-national-audit-grouped-actions li > dl {
  margin-top: 4px;
}

.admin-national-audit-technical {
  margin: 9px 0 0;
  color: #879397;
  font-size: 0.63rem;
}

.admin-national-audit-technical-disclosure {
  margin-top: 9px;
  border-top: 1px solid #e5ebed;
  padding-top: 6px;
}

.admin-national-audit-technical-disclosure > summary {
  width: fit-content;
  color: #7d8b90;
  font-size: 0.64rem;
  cursor: pointer;
}

.admin-national-audit-technical-disclosure > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
  margin: 6px 0 0;
}

.admin-national-audit-technical-disclosure > dl > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.45fr) minmax(0, 1fr);
  gap: 7px;
}

.admin-national-audit-technical code,
.admin-national-audit-entry-details code {
  overflow-wrap: anywhere;
  font-size: inherit;
}

.admin-national-audit-pagination {
  display: flex;
  justify-content: center;
  padding-top: 9px;
}

.admin-national-audit-pagination button {
  min-width: 140px;
}

@media (max-width: 780px) {
  .admin-national-home-group-head {
    display: grid;
    gap: 2px;
  }

  .admin-national-reference-grid {
    grid-template-columns: 1fr;
  }

  .admin-national-home-card-primary {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .admin-national-overview-counts {
    grid-column: 1 / -1;
    grid-row: 4;
    align-content: start;
    justify-items: start;
    margin: 5px 0 0;
    padding-top: 7px;
    border-top: 1px solid #dfe8ea;
  }

  .admin-national-overview-counts small {
    max-width: none;
    text-align: left;
  }

  .admin-national-directory-toolbar,
  .admin-national-audit-filters {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.5fr);
  }

  .admin-national-audit-filters > label:first-child {
    grid-column: 1 / -1;
  }

  .admin-national-audit-entry > summary {
    grid-template-columns: 105px minmax(0, 1fr) auto;
    gap: 5px 9px;
  }

  .admin-national-audit-actor,
  .admin-national-audit-club {
    grid-column: 2;
  }

  .admin-national-audit-count {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-national-audit-chevron {
    grid-column: 3;
    grid-row: 2 / span 2;
  }

  .admin-national-audit-detail-grid,
  .admin-national-audit-grouped-actions dl,
  .admin-national-audit-action-summary dl,
  .admin-national-audit-technical-disclosure > dl {
    grid-template-columns: 1fr;
  }

  .admin-national-directory-toolbar button,
  .admin-national-audit-filters button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .admin-national-home .admin-overview-card {
    min-height: 0;
  }

  .admin-national-directory-toolbar,
  .admin-national-audit-filters {
    grid-template-columns: 1fr;
  }

  .admin-national-audit-entry > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px;
  }

  .admin-national-audit-entry > summary time,
  .admin-national-audit-entry-main,
  .admin-national-audit-actor,
  .admin-national-audit-club {
    grid-column: 1;
  }

  .admin-national-audit-count,
  .admin-national-audit-chevron {
    grid-column: 2;
  }

  .admin-national-audit-detail-grid > div,
  .admin-national-audit-grouped-actions dl > div,
  .admin-national-audit-action-summary dl > div,
  .admin-national-audit-technical-disclosure > dl > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .admin-national-audit-action-summary > li > div:first-child {
    display: grid;
    gap: 1px;
  }

  .admin-national-audit-change dd {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  .admin-national-request-group > summary {
    align-items: flex-start;
  }
}

/* Parcours compact des engagements club */
#adminEngagementsDetail .admin-engagements-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf3f4;
  color: #51646b;
  font-size: 0.72rem;
  font-weight: 700;
}

#adminEngagementsDetail .admin-engagements-save-state[data-state="saving"]::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #0b7285;
  animation: admin-engagement-save-pulse 0.9s ease-in-out infinite alternate;
}

#adminEngagementsDetail .admin-engagements-save-state[data-state="saved"] {
  background: #e4f6ed;
  color: #197044;
}

#adminEngagementsDetail .admin-engagements-save-state[data-state="error"] {
  background: #fdebea;
  color: #b42318;
}

@keyframes admin-engagement-save-pulse {
  to { opacity: 0.3; transform: scale(0.78); }
}

#adminEngagementsDetailEntriesPanel .admin-engagements-club-entries-scroll-hint {
  display: none;
}

#adminEngagementsCalendarCard .admin-engagements-competition-mobile-meta {
  display: none;
}

@media (max-width: 700px) {

  #adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-head > div:first-child {
    grid-template-areas:
      "context"
      "title"
      "subtitle"
      "badges";
    grid-template-columns: minmax(0, 1fr);
  }

  #adminEngagementsView[data-engagements-tab="calendar"] #adminEngagementsDetail .admin-engagements-detail-state-row {
    justify-content: flex-start;
    margin-top: 5px;
  }

  #adminEngagementsDetail .admin-engagements-detail-step-bar > button {
    gap: 3px;
    min-height: 34px;
    padding: 3px 4px;
    font-size: 0.61rem;
    line-height: 1.05;
  }

  #adminEngagementsDetail .admin-engagements-detail-step-bar > button span {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
    font-size: 0.57rem;
  }

  #adminEngagementsDetail .admin-engagements-detail-step-bar > button strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  #adminEngagementsDetail .admin-engagements-detail-tab-group {
    padding: 4px 7px;
  }

  #adminEngagementsDetail .admin-engagements-detail-tab-group-items button {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  #adminEngagementsCalendarCard .admin-engagements-competition[data-engagement-competition-card-id] {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(11, 114, 133, 0.12);
  }

  #adminEngagementsCalendarCard .admin-engagements-competition[data-engagement-competition-card-id]:active {
    background: #edf7f8;
  }

  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group {
    position: relative;
  }

  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group:first-child .admin-engagements-club-entries-scroll-hint:not([hidden]) {
    display: flex;
    align-items: center;
    margin: 6px 0;
    color: #60747b;
    font-size: 0.7rem;
  }

  #adminEngagementsDetailEntriesPanel .admin-engagements-club-entry-group:has(.admin-engagements-club-entries-table-shell[data-scrollable="true"][data-at-end="false"])::after {
    content: "";
    position: absolute;
    z-index: 6;
    top: 64px;
    right: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(18, 71, 82, 0.13));
  }
}

/* Calendrier Club mobile : filtres et compétitions en lecture dense. */
@media (max-width: 760px) {
  .admin-portal-breadcrumb {
    gap: 4px;
    min-height: 26px;
    margin-bottom: 5px;
    padding: 2px 4px;
    font-size: 0.7rem;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] {
    gap: 7px;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] > .admin-portal-workspace-head {
    border: 0;
    border-radius: 0;
    padding: 2px 1px 4px;
    background: transparent;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] > .admin-portal-workspace-head h2 {
    margin: 0;
    font-size: 1.05rem;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
    gap: 5px;
    margin: 0;
    padding: 6px 0;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    flex-basis: 100%;
    gap: 6px;
    align-items: end;
    min-width: 0;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary > label {
    min-width: 0;
    max-width: none;
    font-size: 0.68rem;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters select,
  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters button {
    min-height: 32px;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-status-segments {
    display: flex;
    flex-basis: auto;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-status-segments::-webkit-scrollbar {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-status-segments button {
    flex: 0 0 auto;
    width: auto;
    min-height: 32px;
    padding: 5px 10px;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters {
    flex-basis: 100%;
    padding: 0;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters > summary {
    padding: 1px 0;
    font-size: 0.72rem;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarList {
    margin: 0;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competitions-table {
    border: 1px solid #dfe5e7;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-group {
    display: contents;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-group > h4 {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-group > .admin-engagements-competition {
    display: grid;
    grid-template-areas:
      "date status action"
      "name name action";
    grid-template-columns: auto minmax(0, 1fr) 30px;
    gap: 3px 7px;
    min-height: 66px;
    border: 0;
    border-bottom: 1px solid #e5eaec;
    border-radius: 0;
    padding: 7px 8px 6px 10px;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-group:last-child > .admin-engagements-competition:last-child {
    border-bottom: 0;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-date {
    grid-area: date;
    align-self: center;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-main {
    grid-area: name;
    gap: 1px;
    min-width: 0;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-main strong,
  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-mobile-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-main strong {
    font-size: 0.8rem;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-mobile-meta {
    color: #62747a;
    font-size: 0.68rem;
    font-weight: 400;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-location,
  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-scope {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-status {
    display: flex;
    grid-area: status;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-status small {
    min-width: 0;
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-entry-badge {
    flex: 0 0 auto;
    padding: 2px 6px;
    font-size: 0.64rem;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-actions {
    display: grid;
    grid-area: action;
    align-self: stretch;
    min-width: 30px;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button {
    display: grid;
    width: 30px;
    min-height: 100%;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #0b7285;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button svg,
  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button span {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="club"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button::after {
    font-size: 1.4rem;
    line-height: 1;
    content: "›";
  }
}

/* Densité mobile commune à toutes les pages du portail. */
@media (max-width: 760px) {
  .admin-portal-page [data-admin-view] {
    gap: 8px;
  }

  .admin-portal-page :is(
    .admin-tool-workspace-head,
    .admin-overview-head,
    .admin-records-workspace-head,
    .admin-module-workspace-head
  ) {
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 2px 1px 4px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-portal-page :is(
    .admin-tool-workspace-head,
    .admin-overview-head,
    .admin-records-workspace-head,
    .admin-module-workspace-head
  ) h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .admin-portal-page .admin-overview-head > span {
    margin-bottom: 1px;
    font-size: 0.62rem;
  }

  .admin-portal-page .admin-overview-head > p {
    display: none;
  }

  .admin-portal-overview-view,
  .admin-portal-space-home,
  .admin-national-home-groups,
  .admin-national-home-group {
    gap: 7px;
  }

  .admin-overview-grid {
    gap: 6px;
  }

  .admin-portal-space-home .admin-overview-card,
  .admin-national-home .admin-overview-card {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    grid-template-rows: auto;
    gap: 0 8px;
    min-height: 58px;
    border-radius: 8px;
    padding: 8px 10px;
  }

  .admin-portal-space-home .admin-overview-card-icon,
  .admin-national-home .admin-overview-card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 30px;
    height: 30px;
    align-self: center;
  }

  .admin-portal-space-home .admin-overview-card-icon svg,
  .admin-national-home .admin-overview-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .admin-portal-space-home .admin-overview-card-label,
  .admin-national-home .admin-overview-card-label,
  .admin-portal-space-home .admin-overview-card > p,
  .admin-national-home .admin-overview-card > p {
    display: none;
  }

  .admin-portal-space-home .admin-overview-card > strong,
  .admin-national-home .admin-overview-card > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-portal-space-home .admin-overview-card-arrow,
  .admin-national-home .admin-overview-card-arrow {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .admin-national-home-group-head {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 3px 1px 1px;
  }

  .admin-national-home-group-head h3 {
    font-size: 0.82rem;
  }

  .admin-national-home-group-head > span {
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-national-home .admin-national-home-card-primary {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    grid-template-rows: auto auto;
    min-height: 78px;
  }

  .admin-national-home-card-primary > .admin-overview-card-icon {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .admin-national-home-card-primary > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-national-home-card-primary > .admin-national-overview-counts {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    gap: 5px;
    align-items: center;
    justify-items: start;
    min-width: 0;
    margin: 1px 0 0;
    padding: 0;
    border: 0;
  }

  .admin-national-overview-counts > span {
    font-size: 0.68rem;
  }

  .admin-national-overview-counts > span strong {
    font-size: 0.68rem;
  }

  .admin-national-overview-counts small {
    max-width: 190px;
    overflow: hidden;
    font-size: 0.62rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-national-home-card-primary > .admin-overview-card-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .admin-overview-space-card {
    border-radius: 8px;
  }

  .admin-overview-space-main {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    grid-template-rows: auto;
    gap: 0 8px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .admin-overview-space-main > .admin-overview-card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 30px;
    height: 30px;
    align-self: center;
  }

  .admin-overview-space-main > .admin-overview-card-label,
  .admin-overview-space-main > p {
    display: none;
  }

  .admin-overview-space-main > strong,
  .admin-overview-space-main > strong:has(+ .admin-pending-badge-card) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    margin: 0;
    padding-right: 0;
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-overview-space-main > .admin-overview-card-arrow {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .admin-overview-space-main > .admin-pending-badge-card {
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 0.58rem;
  }

  .admin-overview-space-toggle {
    width: calc(100% - 20px);
    min-height: 30px;
    margin: 0 10px;
    padding: 5px 0;
    font-size: 0.7rem;
  }

  .admin-overview-space-card.is-expanded .admin-overview-space-tools {
    gap: 3px;
    padding: 3px 9px 9px;
  }

  .admin-overview-space-tools a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  #adminEngagementsAccessRequestsPanel > .admin-engagements-card,
  .admin-national-page-card,
  #adminAccessView .admin-access-list-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  #adminEngagementsAccessRequestsPanel .admin-engagements-directory-toolbar:has(#adminEngagementsAccessRequestsRefresh[hidden]) {
    display: none;
  }

  #adminAccessView .admin-access-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-radius: 8px;
    padding: 7px;
  }

  #adminAccessView .admin-access-filters .admin-access-search {
    grid-column: 1 / -1;
  }

  #adminAccessView .admin-access-filters label {
    gap: 2px;
    min-width: 0;
  }

  #adminAccessView .admin-access-filter-label,
  .admin-national-directory-toolbar label > span,
  .admin-national-audit-filters label > span {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  #adminAccessView .admin-access-filters :is(input, select, button) {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.72rem;
  }

  #adminAccessView .admin-access-filter-submit,
  #adminAccessView .admin-access-filter-reset {
    width: 100%;
  }

  .admin-national-directory-toolbar,
  .admin-national-audit-filters {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 0.45fr);
    gap: 6px;
    padding: 7px;
  }

  .admin-national-directory-toolbar > label:first-child,
  .admin-national-audit-filters > label:first-child {
    grid-column: 1 / -1;
  }

  .admin-national-directory-toolbar :is(input, select, button),
  .admin-national-audit-filters :is(input, select, button) {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.72rem;
  }

  .admin-national-directory-toolbar > label:nth-child(2) {
    grid-column: 1;
  }

  .admin-national-directory-toolbar > .admin-national-merge-mode-button {
    grid-column: 2;
  }

  .admin-national-directory-toolbar > .admin-national-reset-button {
    grid-column: 1 / -1;
  }

  #adminImportView .competition-import-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #adminImportView .competition-import-history-filters > label:first-child {
    grid-column: 1 / -1;
  }

  #adminImportView .competition-import-history-filters :is(input, select) {
    min-height: 34px;
    font-size: 0.72rem;
  }

  #adminDtnView .admin-dtn-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 6px 0;
    background: transparent;
  }

  #adminDtnView .admin-dtn-toolbar label {
    min-width: 0;
    font-size: 0.68rem;
  }

  #adminDtnView .admin-dtn-toolbar :is(select, button) {
    min-height: 34px;
  }

  #adminDtnView .admin-dtn-segment {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
  }

  #adminDtnView .admin-dtn-refresh {
    grid-column: 1 / -1;
  }

  #adminDtnView .admin-dtn-season-picker {
    min-width: 112px;
    min-height: 32px;
  }
}

/* Calendrier organisateur mobile : mêmes lignes denses que le calendrier Club. */
@media (max-width: 760px) {
  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] {
    gap: 7px;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] .admin-engagements-calendar-head-actions {
    width: auto;
    gap: 4px;
    justify-content: flex-end;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] .admin-engagements-refresh-meta {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsRefreshButton {
    display: grid;
    width: 36px;
    min-height: 36px;
    place-items: center;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsRefreshButton::before {
    font-size: 1.08rem;
    line-height: 1;
    content: "↻";
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
    gap: 5px;
    padding: 6px 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    flex-basis: 100%;
    gap: 6px;
    align-items: end;
    min-width: 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary > label {
    min-width: 0;
    max-width: none;
    font-size: 0.68rem;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters select,
  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters button {
    min-height: 32px;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters {
    flex-basis: 100%;
    padding: 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters > summary {
    padding: 1px 0;
    font-size: 0.72rem;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsFiltersReset,
  #adminEngagementsView[data-engagements-mode="admin"][data-engagements-tab="calendar"] #adminEngagementsMineFilterLabel {
    grid-column: 1 / -1;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competitions-table {
    border: 1px solid #dfe5e7;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-group {
    display: contents;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-group > h4 {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-group > .admin-engagements-competition {
    display: grid;
    grid-template-areas:
      "date status action"
      "name name action";
    grid-template-columns: auto minmax(0, 1fr) 30px;
    gap: 3px 7px;
    min-height: 66px;
    border: 0;
    border-bottom: 1px solid #e5eaec;
    border-radius: 0;
    padding: 7px 8px 6px 10px;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-group:last-child > .admin-engagements-competition:last-child {
    border-bottom: 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-date {
    grid-area: date;
    align-self: center;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-main {
    grid-area: name;
    gap: 1px;
    min-width: 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-main strong,
  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-mobile-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-main strong {
    font-size: 0.8rem;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-mobile-meta {
    color: #62747a;
    font-size: 0.68rem;
    font-weight: 400;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-location,
  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-scope {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-status {
    display: flex;
    grid-area: status;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-status small {
    min-width: 0;
    overflow: hidden;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-entry-badge {
    flex: 0 0 auto;
    padding: 2px 6px;
    font-size: 0.64rem;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-actions {
    display: grid;
    grid-area: action;
    align-self: stretch;
    min-width: 30px;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button {
    display: grid;
    width: 30px;
    min-height: 100%;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #0b7285;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button svg,
  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button span {
    display: none;
  }

  #adminEngagementsView[data-engagements-mode="admin"] #adminEngagementsCalendarCard .admin-engagements-competition-actions button::after {
    font-size: 1.4rem;
    line-height: 1;
    content: "›";
  }
}

.admin-portal-field {
  display: grid;
  gap: 6px;
}

.admin-portal-form label,
.admin-access-form label,
.admin-account-form label {
  display: grid;
  gap: 6px;
  color: #455d58;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-portal-form input,
.admin-access-form input,
.admin-access-form select,
.admin-account-form input {
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #cbd9d6;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #12312d;
  font: inherit;
}

/* Bandeau portail : marque, périmètre et compte restent lisibles à toutes les largeurs. */
.admin-portal-page .admin-portal-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 60px;
  padding: 8px max(var(--portal-page-gutter), calc((100vw - var(--portal-shell-max)) / 2));
}

.admin-portal-page .admin-portal-federal-logo {
  grid-column: 1;
  width: 46px;
}

.admin-portal-page .admin-portal-brand {
  grid-column: 2;
  justify-self: start;
  gap: 0;
}

.admin-portal-page .admin-portal-brand h1 {
  font-size: 1.12rem;
}

.admin-portal-page .admin-portal-livepalmes-logo {
  display: none;
}

.admin-portal-page .admin-portal-topbar-actions {
  display: flex;
  grid-column: 3;
  gap: 8px;
  justify-self: end;
}

.admin-portal-page .admin-portal-scope-context {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  border-color: #cfe1e3;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f3fafb;
  color: #31454c;
  font-size: 0.76rem;
  line-height: 1;
  white-space: nowrap;
}

.admin-portal-page .admin-portal-scope-context[hidden] {
  display: none;
}

.admin-portal-page .admin-portal-scope-prefix {
  color: #61757c;
}

.admin-portal-page .admin-portal-scope-club-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.admin-portal-page .admin-portal-scope-club-button:not(:disabled) {
  cursor: pointer;
}

.admin-portal-page .admin-portal-scope-club-button:not(:disabled):hover strong {
  text-decoration: underline;
}

.admin-portal-page .admin-portal-scope-club-button:focus-visible {
  outline: 3px solid var(--portal-focus-ring);
  outline-offset: 2px;
}

.admin-portal-page .admin-portal-scope-club-button:disabled {
  cursor: default;
}

.admin-portal-page .admin-portal-scope-club-button > strong {
  color: var(--portal-color-accent-strong);
  font-weight: var(--portal-font-weight-semibold);
}

.admin-portal-club-switch-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid #cfe1e3;
  border-radius: 12px;
  padding: 0;
  color: #12312d;
  box-shadow: 0 20px 60px rgba(12, 35, 32, 0.24);
}

.admin-portal-club-switch-dialog::backdrop {
  background: rgba(12, 35, 32, 0.45);
}

.admin-portal-club-switch-dialog form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-portal-club-switch-dialog h2,
.admin-portal-club-switch-dialog p {
  margin: 0;
}

.admin-portal-club-switch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-portal-club-switch-head > div > span {
  color: #5f746f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-portal-club-switch-dialog label {
  display: grid;
  gap: 6px;
  color: #36544f;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-portal-club-switch-dialog input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
}

.admin-portal-club-switch-results {
  display: grid;
  max-height: min(48vh, 380px);
  overflow: auto;
  border: 1px solid #d9e5e3;
  border-radius: 8px;
}

.admin-portal-club-switch-result {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e3ebea;
  padding: 10px 12px;
  background: #ffffff;
  color: #243b42;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-portal-club-switch-result:last-child {
  border-bottom: 0;
}

.admin-portal-club-switch-result:hover,
.admin-portal-club-switch-result[aria-pressed="true"] {
  background: #f0f8f7;
}

.admin-portal-club-switch-result:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--portal-focus-ring);
  outline-offset: -3px;
}

.admin-portal-club-switch-result strong {
  color: var(--portal-color-accent-strong);
}

.admin-portal-club-switch-result span {
  min-width: 0;
}

.admin-portal-club-switch-result small {
  color: #176454;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .admin-portal-club-switch-dialog form {
    padding: 14px;
  }

  .admin-portal-club-switch-result {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-portal-club-switch-result span {
    grid-column: 1 / -1;
    font-size: 0.84rem;
  }
}

.admin-portal-page .admin-portal-scope-role {
  display: none;
}

.admin-portal-page .admin-portal-account-menu > button strong {
  max-width: min(22vw, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .admin-portal-page .admin-portal-topbar {
    min-height: 54px;
    gap: 8px;
    padding-block: 6px;
  }

  .admin-portal-page .admin-portal-federal-logo {
    width: 40px;
  }

  .admin-portal-page .admin-portal-brand h1 {
    font-size: 1rem;
  }

  .admin-portal-page .admin-portal-scope-prefix {
    display: none;
  }

  .admin-portal-page .admin-portal-scope-context {
    min-width: 0;
    padding-inline: 8px;
  }

  .admin-portal-page .admin-portal-account-menu > button strong {
    max-width: 150px;
  }
}

@media (max-width: 680px) {
  .admin-portal-page .admin-portal-topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 48px;
    gap: 6px;
    padding: 4px 8px;
  }

  .admin-portal-page .admin-portal-federal-logo {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
  }

  .admin-portal-page .admin-portal-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .admin-portal-page .admin-portal-brand h1 {
    font-size: 0.92rem;
  }

  .admin-portal-page .admin-portal-topbar-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
  }

  .admin-portal-page .admin-portal-scope-context {
    display: none;
  }

  .admin-portal-page .admin-portal-account-menu > button {
    min-height: 36px;
    border-color: transparent;
    padding-inline: 7px;
    background: transparent;
  }

  .admin-portal-page .admin-portal-account-menu > button strong {
    display: none;
  }

  .admin-portal-page .admin-portal-account-short {
    display: inline-block;
    max-width: 72px;
    overflow: hidden;
    color: var(--portal-color-accent-strong);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .admin-portal-page .admin-portal-title-prefix {
    display: none;
  }
}

/* Les deux informations d'engagement restent visuellement équivalentes. */
#adminEngagementsCalendarCard .admin-engagements-competition-status small[data-entry-status] {
  padding: 2px 7px;
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.35;
}

/* Espace Club : les quatre filtres du calendrier restent visibles sur une ligne compacte. */
#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters {
  padding-block: 6px;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
  flex: 1 1 100%;
  gap: 6px;
  min-width: 0;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary > label {
  min-width: 0;
  max-width: none;
  gap: 3px;
  font-size: 0.68rem;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 6px;
  font-size: 0.75rem;
}

#adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-advanced-filters {
  display: none;
}

@media (max-width: 420px) {
  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary {
    gap: 4px;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary > label {
    font-size: 0.62rem;
  }

  #adminEngagementsView[data-engagements-mode="club"][data-engagements-tab="calendar"] #adminEngagementsCalendarFilters .admin-engagements-filter-primary select {
    padding-inline: 3px;
    font-size: 0.68rem;
  }
}

/* Journal d'activité : filtres sur une ligne, actions sur la ligne suivante. */
@media (min-width: 621px) {
  #adminEngagementsView .admin-national-audit-filters {
    grid-template-columns: minmax(140px, 1.6fr) repeat(5, minmax(72px, 1fr)) auto;
  }

  #adminEngagementsView .admin-national-audit-filters > label:first-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  #adminEngagementsView .admin-national-audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsView .admin-national-audit-filters > label:first-child {
    grid-column: 1 / -1;
  }

  #adminEngagementsView .admin-national-audit-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  #adminEngagementsView .admin-national-audit-filters {
    grid-template-columns: 1fr;
  }

  #adminEngagementsView .admin-national-audit-filters > label:first-child,
  #adminEngagementsView .admin-national-audit-filter-actions {
    grid-column: auto;
  }

  .admin-national-audit-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-national-audit-filter-actions button {
    width: 100%;
  }
}
/* Fiche des événements du calendrier public. */
.admin-calendar-event-dialog { width:min(680px, calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }
.admin-calendar-event-dialog .admin-engagements-form { margin:0; }
.admin-calendar-event-dialog > .admin-engagements-form { gap:8px; }
.admin-calendar-event-dialog [data-calendar-event-message]:empty { display:none; }
.admin-calendar-event-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:0 0 8px; }
.admin-calendar-event-header > div { min-width:0; }
.admin-calendar-event-header h2 { overflow-wrap:anywhere; }
.admin-calendar-event-close { display:grid; flex:0 0 36px; place-items:center; width:36px; min-height:36px; padding:0; }
.admin-calendar-event-close svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:2; }
.admin-calendar-readonly { display:grid; gap:6px; }
.admin-calendar-readonly h3 { margin:0; color:#173b35; font-size:.86rem; }
.admin-calendar-readonly-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; overflow:hidden; border:1px solid #dce7e4; border-radius:9px; background:#dce7e4; }
.admin-calendar-readonly-item { display:grid; align-content:start; gap:3px; min-width:0; padding:7px 9px; background:#fff; }
.admin-calendar-readonly-item--full { grid-column:1 / -1; }
.admin-calendar-readonly-item dt { color:#647873; font-size:.7rem; font-weight:850; letter-spacing:.02em; text-transform:uppercase; }
.admin-calendar-readonly-item dd { margin:0; color:#173b35; font-size:.86rem; font-weight:750; line-height:1.35; overflow-wrap:anywhere; }
.admin-calendar-readonly-item a { color:#0d6672; }
.admin-calendar-status { display:inline-flex; align-items:center; min-height:24px; width:max-content; max-width:100%; border-radius:999px; padding:3px 8px; background:#e7f2f1; color:#174f59; font-size:.76rem; font-weight:850; }
.admin-calendar-status[data-tone="success"] { background:#e5f3ea; color:#24613d; }
.admin-calendar-status[data-tone="danger"] { background:#fde9e7; color:#8a2f27; }
.admin-calendar-readonly-program { display:grid; gap:8px; }
.admin-calendar-readonly-program > h3 { margin:0; color:#173b35; font-size:.86rem; }
.admin-calendar-program-details { border:1px solid #dce7e4; border-radius:9px; background:#fff; }
.admin-calendar-program-details > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; padding:9px 11px; color:#173b35; list-style-position:inside; }
.admin-calendar-program-details > summary span { display:grid; gap:2px; }
.admin-calendar-program-details small { color:#647873; font-size:.72rem; font-weight:750; }
.admin-calendar-program-details > p { margin:0; padding:0 11px 10px; color:#455d58; font-size:.8rem; }
.admin-calendar-program-details > ul { display:grid; gap:0; margin:0; padding:0 11px 10px; list-style:none; }
.admin-calendar-program-details li { display:flex; justify-content:space-between; gap:12px; border-top:1px solid #edf2f1; padding:6px 0; color:#294b45; font-size:.78rem; }
.admin-calendar-event-description { grid-column:1 / -1; }
.admin-calendar-event-check { align-content:center; }
.admin-calendar-program-row { display:grid; grid-template-columns:1fr 140px 105px 105px minmax(180px,2fr) auto; align-items:end; gap:10px; padding:12px 0; border-bottom:1px solid var(--admin-border, #dce7e9); }
.admin-calendar-program-row label { display:grid; gap:5px; }
.admin-calendar-documents { gap:10px; margin-top:8px; padding:12px; }
.admin-calendar-documents > h3 { margin-bottom:4px; }
.admin-calendar-documents > p { margin-top:0; color:#5f746f; font-size:.8rem; }
.admin-calendar-document { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:8px 0; border-top:1px solid var(--admin-border, #dce7e9); }
.admin-calendar-document div:first-child { display:grid; min-width:0; gap:3px; }
.admin-calendar-document div:first-child strong,
.admin-calendar-document div:first-child small { overflow-wrap:anywhere; }
.admin-calendar-document > .admin-portal-actions { flex-wrap:nowrap; justify-content:flex-end; gap:8px; }
.admin-calendar-document > .admin-portal-actions > a { min-width:66px; justify-content:center; }
.admin-calendar-document > .admin-portal-actions > [data-calendar-document-edit] { min-width:136px; justify-content:center; }
.admin-calendar-document-editor { margin-top:4px; border:1px solid #dce7e4; border-radius:9px; background:#fbfcfc; }
.admin-calendar-document-editor > summary { cursor:pointer; padding:8px 10px; color:#174f59; font-size:.8rem; font-weight:850; }
.admin-calendar-document-editor[open] > summary { border-bottom:1px solid #dce7e4; }
.admin-calendar-document-editor > form { gap:8px; padding:8px; }
.admin-calendar-document-editor .admin-engagements-form-section-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.admin-calendar-document-editor .admin-engagements-form-section-grid > label { display:grid; grid-template-columns:1fr; align-items:start; gap:4px; min-height:0; border:0; padding:0; }
.admin-calendar-document-editor .admin-engagements-form-section-grid > label:first-child,
.admin-calendar-document-editor .admin-engagements-form-section-grid > label:last-child { grid-column:1 / -1; }
.admin-calendar-document-editor .admin-engagements-form-section-grid > label > input,
.admin-calendar-document-editor .admin-engagements-form-section-grid > label > select { grid-column:auto; min-height:36px; padding:6px 8px; }
.admin-calendar-document-editor .admin-portal-actions button { min-height:36px; }
@media (max-width:800px) { .admin-calendar-program-row { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-calendar-program-summary { grid-column:1/-1; } }
@media (max-width:600px) { .admin-calendar-readonly-grid { grid-template-columns:1fr; }.admin-calendar-readonly-item--full { grid-column:auto; }.admin-calendar-document { grid-template-columns:1fr; align-items:start; }.admin-calendar-document > .admin-portal-actions { flex-wrap:wrap; justify-content:flex-start; }.admin-calendar-document-editor .admin-engagements-form-section-grid { grid-template-columns:1fr; }.admin-calendar-document-editor .admin-engagements-form-section-grid > label { grid-column:auto; }.admin-calendar-event-dialog { width:calc(100% - 12px); max-height:calc(100dvh - 12px); padding:12px; }.admin-calendar-event-header { gap:10px; } }

/* Échelle commune des boutons du portail. */
.admin-portal-page {
  --admin-button-height-compact: 36px;
  --admin-button-height-standard: 40px;
  --admin-button-height-large: 44px;
  --admin-button-padding-compact: 10px;
  --admin-button-padding-standard: 14px;
}

.admin-portal-page .admin-button-compact,
.admin-portal-page .admin-tool-workspace-head button,
#adminEngagementsDetail .admin-engagements-detail-actions button,
#adminEngagementsDetail .admin-engagements-events-head > button,
#adminEngagementsDetail .admin-engagements-documents-head button {
  width: auto;
  min-height: var(--admin-button-height-compact);
  padding-right: var(--admin-button-padding-compact);
  padding-left: var(--admin-button-padding-compact);
  font-size: 0.82rem;
  line-height: 1.1;
}

.admin-portal-page .admin-tool-workspace-head > .admin-button-compact {
  align-self: center;
  justify-self: start;
}

#adminRecordsView .admin-records-workspace-head .admin-button-compact {
  width: auto;
  min-width: 0;
}

#adminEngagementsView .admin-engagements-workspace-back {
  column-gap: 5px;
}

.admin-button-label-short {
  display: none;
}

/* Paramétrage général d'une compétition : grille dense et lisible. */
#adminEngagementsEditForm {
  gap: 10px;
}

#adminEngagementsEditForm .admin-engagements-compact-section > legend {
  font-weight: 800;
}

#adminEngagementsEditForm .admin-engagements-compact-field--readonly input[readonly] {
  min-height: 38px;
  border-style: dashed;
  background: #f2f6f6;
  color: #40545c;
  font-weight: 750;
}

#adminEngagementsEditForm .admin-engagements-compact-check {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-content: center;
  align-items: center;
  justify-content: start;
}

#adminEngagementsEditForm .admin-engagements-compact-check > input {
  grid-column: 1;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #0b7285;
}

#adminEngagementsEditForm .admin-engagements-compact-check > span {
  grid-column: 2;
  justify-self: start;
  text-align: left;
}

#adminEngagementsEditForm [data-engagements-conditional-region][hidden] {
  display: none;
}

#adminEngagementsDetail .admin-engagements-inline-save-actions {
  gap: 8px;
  border: 1px solid rgba(216, 224, 227, 0.92);
  border-radius: 9px;
  margin-top: 2px;
  padding: 8px;
  background: #f8fafb;
}

#adminEngagementsDetail .admin-engagements-no-fees-choice {
  width: fit-content;
}

#adminEngagementsEditForm .admin-engagements-embedded-fees {
  display: grid;
  gap: 8px;
  border-top: 1px solid #dfe5e7;
  padding: 9px 10px 10px;
  background: #ffffff;
}

#adminEngagementsEditForm .admin-engagements-embedded-fees-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#adminEngagementsEditForm .admin-engagements-embedded-fees-head strong {
  color: #174f59;
  font-size: 0.82rem;
  font-weight: 800;
}

#adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-no-fees-choice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 650;
}

#adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-no-fees-choice input {
  flex: 0 0 auto;
  min-height: 18px;
}

#adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-fees-grid {
  gap: 8px 10px;
}

#adminEngagementsDetail #adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-fees-grid label {
  gap: 5px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

#adminEngagementsDetail #adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-fees-grid input {
  min-height: 36px;
}

@media (min-width: 701px) {
  #adminEngagementsEditForm .admin-engagements-compact-section > .admin-engagements-form-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #e7ecee;
  }

  #adminEngagementsEditForm .admin-engagements-compact-section--documents > .admin-engagements-form-section-grid,
  #adminEngagementsEditForm .admin-engagements-compact-section--engagements > .admin-engagements-form-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field,
  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-invited-regions-field {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    gap: 5px;
    min-height: 0;
    border: 0;
    padding: 8px 10px;
    background: #ffffff;
  }

  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field:nth-child(even) {
    background: #ffffff;
  }

  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field > input:not([type="checkbox"]),
  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field > select,
  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field > textarea,
  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-field-note {
    grid-column: 1;
    width: 100%;
  }

  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field > input:not([type="checkbox"]),
  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field > select {
    min-height: 38px;
  }

  #adminEngagementsEditForm .admin-engagements-compact-section .admin-engagements-compact-field > textarea {
    min-height: 74px;
    resize: vertical;
  }

  #adminEngagementsEditForm .admin-engagements-compact-field--full {
    grid-column: 1 / -1;
  }

  #adminEngagementsEditForm .admin-engagements-entry-status-field {
    border-left: 3px solid #0b7285;
    padding-left: 8px;
    background: #eef8fa;
  }

  #adminEngagementsEditForm .admin-engagements-compact-check {
    grid-template-columns: 18px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    min-height: 59px;
  }

  #adminEngagementsDetail .admin-engagements-fees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminEngagementsDetail .admin-engagements-fees-grid label {
    padding: 9px 10px;
  }

  #adminEngagementsDetail .admin-engagements-fees-grid input {
    min-height: 38px;
  }

  #adminEngagementsDetail #adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-fees-grid input {
    min-height: 36px;
  }
}

@media (min-width: 900px) {
  #adminEngagementsDetail #adminEngagementsEditForm .admin-engagements-embedded-fees .admin-engagements-fees-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  #adminEngagementsEditForm .admin-engagements-compact-section--competition > .admin-engagements-form-section-grid,
  #adminEngagementsEditForm .admin-engagements-compact-section--sports > .admin-engagements-form-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #adminEngagementsDetail .admin-engagements-fees-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #adminEngagementsEditForm .admin-engagements-compact-check {
    grid-template-columns: 18px minmax(0, 1fr);
    min-height: 44px;
  }

  #adminEngagementsDetail .admin-engagements-no-fees-choice {
    width: 100%;
  }

  #adminEngagementsDetail .admin-engagements-detail-actions {
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
  }

  #adminEngagementsDetail .admin-engagements-detail-actions button {
    width: auto;
    min-height: 38px;
    padding-right: 12px;
    padding-left: 12px;
  }

  #adminEngagementsDetail #adminEngagementsEditButton {
    border-color: #0b7285;
    background: #0b7285;
    color: #ffffff;
    font-weight: 800;
  }

  #adminEngagementsView .admin-engagements-workspace-back {
    align-self: start;
    min-height: 38px;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 0.84rem;
  }

  .admin-portal-page .admin-tool-workspace-head > .admin-button-compact {
    align-self: flex-start;
  }

  #adminEngagementsView .admin-engagements-workspace-back .admin-button-label-long {
    display: none;
  }

  #adminEngagementsView .admin-engagements-workspace-back .admin-button-label-short {
    display: inline;
  }
}

/* Bandeau mobile du portail : navigation, marque puis compte. */
@media (max-width: 680px) {
  .admin-portal-page .admin-portal-topbar {
    grid-template-columns: 38px 38px minmax(82px, 1fr) auto;
    gap: 7px;
    min-height: 54px;
    padding: 5px 8px;
  }

  .admin-portal-page .admin-portal-topbar-actions {
    display: contents;
  }

  .admin-portal-page .admin-portal-nav-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-color: transparent;
    border-radius: 10px;
    padding: 9px;
    background: #e7f5f6;
    color: var(--portal-color-accent-strong);
  }

  .admin-portal-page .admin-portal-nav-toggle:hover,
  .admin-portal-page .admin-portal-nav-toggle[aria-expanded="true"] {
    border-color: transparent;
    background: #cfe9ec;
  }

  .admin-portal-page .admin-portal-nav-toggle:focus-visible {
    outline: 3px solid var(--portal-focus-ring);
    outline-offset: 2px;
  }

  .admin-portal-page .admin-portal-nav-toggle svg path {
    transform-box: view-box;
    transform-origin: center;
    transition: transform 160ms ease, opacity 120ms ease;
  }

  .admin-portal-page .admin-portal-nav-toggle[aria-expanded="true"] svg path:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .admin-portal-page .admin-portal-nav-toggle[aria-expanded="true"] svg path:nth-child(2) {
    opacity: 0;
  }

  .admin-portal-page .admin-portal-nav-toggle[aria-expanded="true"] svg path:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .admin-portal-page .admin-portal-federal-logo {
    grid-column: 2;
    grid-row: 1;
    width: 38px;
  }

  .admin-portal-page .admin-portal-brand {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
  }

  .admin-portal-page .admin-portal-brand h1 {
    font-size: 1.08rem;
  }

  .admin-portal-page .admin-portal-title-prefix {
    display: none;
  }

  .admin-portal-page .admin-portal-account-menu {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }

  .admin-portal-page .admin-portal-account-menu > button {
    min-height: 36px;
    padding-inline: 6px;
  }

  .admin-portal-page .admin-portal-account-short {
    max-width: 72px;
    font-size: 0.8rem;
  }

  .admin-portal-page .admin-portal-account-icon {
    width: 17px;
    height: 17px;
  }

  #adminOverviewView > .admin-overview-head {
    display: none !important;
  }

  .admin-portal-page .admin-portal-overview-view {
    gap: 4px;
  }

  .admin-portal-page .admin-overview-grid {
    gap: 4px;
  }

  .admin-portal-page .admin-overview-space-main {
    min-height: 50px;
    padding-block: 5px;
  }

  .admin-portal-page .admin-overview-space-toggle {
    min-height: 28px;
    padding-block: 4px;
  }

  .admin-portal-page .admin-portal-shell {
    margin-top: 6px;
  }
}

@media (max-width: 360px) {
  .admin-portal-page .admin-portal-topbar {
    grid-template-columns: 36px 34px minmax(72px, 1fr) auto;
    gap: 5px;
    padding-inline: 6px;
  }

  .admin-portal-page .admin-portal-nav-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .admin-portal-page .admin-portal-federal-logo {
    width: 34px;
  }

  .admin-portal-page .admin-portal-brand h1 {
    font-size: 1rem;
  }

  .admin-portal-page .admin-portal-account-short {
    max-width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-portal-page .admin-portal-nav-toggle svg path,
  .admin-portal-page .admin-overview-space-toggle-icon-vertical {
    transition: none;
  }
}
