/* Pass D — forms access */

/* ===== memberAccessStyle ===== */

.member-access-toggle {
  min-height: 2rem;
  padding: .3rem .5rem;
  border: 1px solid #efc7c4;
  border-radius: 9px;
  background: #fff;
  color: #a63d31;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.member-access-toggle:hover {
  background: #fff4f2;
}

.reactivate-member {
  border-color: #b7dfc8;
  background: #f2fbf5;
  color: var(--deep);
}

.reactivate-member:hover {
  background: #e4f6eb;
}

/* ===== inlineEventEditStyle ===== */

.inline-event-edit {
  margin: .8rem 0;
}

.inline-event-edit summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.inline-event-edit summary::-webkit-details-marker {
  display: none;
}

.inline-event-edit form {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}

/* ===== matchScheduleStyle ===== */

.event-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: .75rem 0;
}

.event-schedule>b {
  font-size: .95rem;
  letter-spacing: -.01em;
}

.match-schedule>div {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.match-schedule span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .48rem;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  background: #ffffff16;
  font-size: .72rem;
}

.match-schedule strong {
  font-size: .82rem;
  color: #fff;
}

.training-schedule span {
  font-size: .82rem;
}

.whistle-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== coachMatchCenterStyle ===== */

.events > .card.detail.match-card > .title {
  display: block;
  text-align: center;
}

.events > .card.detail.match-card > .title > .status,
.events > .card.detail.training-card > .title > .status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: .2rem .38rem;
  border-radius: 999px;
  font-size: .61rem;
  line-height: 1.1;
  white-space: nowrap;
}

.events > .card.detail.match-card > .title > div {
  width: 100%;
}

.events > .card.detail.match-card > .title {
  position: static;
}

.coach-card-menu {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
}

.coach-card-menu-trigger {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--deep);
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
}

.action-sheet[hidden] { display: none; }
body.action-sheet-open { overflow: hidden; overscroll-behavior: none; }
.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 35, 27, .48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  opacity: 0;
  transition: opacity .28s ease;
}
.action-sheet.is-open { opacity: 1; }
.action-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.action-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1rem), 38rem);
  max-height: min(70dvh, 34rem);
  overflow: auto;
  margin-bottom: max(.5rem, env(safe-area-inset-bottom));
  padding: .6rem max(1rem, env(safe-area-inset-right)) .85rem max(1rem, env(safe-area-inset-left));
  border: 1px solid rgba(7, 93, 52, .18);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 -12px 34px rgba(4, 35, 27, .16);
  transform: translateY(100%) scale(.985);
  transition: transform .28s cubic-bezier(.22, .72, .22, 1);
}
.action-sheet.is-open .action-sheet-panel { transform: translateY(0) scale(1); }
.action-sheet-handle {
  display: block;
  width: 2.6rem;
  height: .25rem;
  margin: 0 auto .7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #a7c7b2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.action-sheet-handle:focus-visible { outline: 2px solid #39ae72; outline-offset: 4px; }
.action-sheet-content { display: grid; gap: .2rem; }
.action-sheet-content button {
  width: 100%;
  min-height: 2.8rem;
  padding: .7rem .75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--deep);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.action-sheet-content button:hover,
.action-sheet-content button:focus-visible { background: #edf8f0; outline: none; }
.action-sheet-content button.danger { color: #a13a35; }
@media (prefers-reduced-motion: reduce) {
  .action-sheet { transition: none; }
  .action-sheet-panel { transition: none; }
}

.events > .card.detail.match-card .coach-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .3rem;
}

.events > .card.detail.match-card .coach-summary span {
  min-height: 2rem;
  padding: .28rem .2rem;
  font-size: .64rem;
}

.coach-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: .45rem;
  margin-top: .7rem;
}

.coach-card-actions button {
  min-height: 36px;
  border-radius: 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
}

.coach-card-actions .coach-view-compo {
  flex: 1;
  margin-top: 0;
  border: 1px solid #b8d8c3;
}

.coach-card-actions .coach-edit-compo {
  flex: 0 0 auto;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
}

@media (max-width: 420px) {
  .events > .card.detail.match-card .coach-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .coach-card-actions {
    flex-direction: column;
  }
  .coach-card-actions .coach-edit-compo {
    min-height: 34px;
  }
}

/* ===== pollChoiceStyle ===== */

.poll-preview-form .poll-add-choice {
  justify-self: start;
  min-height: 34px !important;
  border: 1px dashed #89b99a !important;
  background: #fff !important;
  color: var(--deep) !important;
  font-size: .72rem !important;
}
