.modal-card.modal-wide {
  width: min(1440px, calc(100vw - 32px));
}

.modal-wide .event-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
}

.modal-wide .event-detail-grid > *,
.modal-wide .event-detail-grid section {
  min-width: 0;
}

.modal-wide .schedule-wrap,
.modal-wide .sheet-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.schedule-table {
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td,
.sheet-table th,
.sheet-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.schedule-table td {
  min-width: 0;
}

.schedule-table .table-actions,
.sheet-table .table-actions {
  width: 112px;
  min-width: 112px;
}

.responsibles-sheet,
.team-members-sheet {
  width: 100%;
  min-width: 580px;
  table-layout: fixed;
}

.responsibles-sheet col:first-child {
  width: 34%;
}

.responsibles-sheet col:nth-child(2) {
  width: 66%;
}

.team-members-sheet col:first-child {
  width: 32%;
}

.team-members-sheet col:nth-child(2) {
  width: 68%;
}

.responsibles-sheet td:nth-child(2),
.team-members-sheet td:nth-child(2) {
  font-weight: 600;
}

@media (max-width: 980px) {
  .modal-wide .event-detail-grid {
    grid-template-columns: 1fr;
  }

  .modal-wide .detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .modal-layer {
    padding: 8px;
  }

  .modal-card.modal-wide {
    width: calc(100vw - 16px);
    max-height: 96vh;
  }

  .modal-wide .modal-body {
    padding: 12px;
  }

  .modal-wide .detail-side {
    grid-template-columns: 1fr;
  }

  .sheet-tabs {
    overflow-x: auto;
  }

  .sheet-tabs button {
    flex: 0 0 auto;
  }
}
