/* =========================================================
   ATS - Area Enti Dashboard
========================================================= */

.ats-area-enti-dashboard {
  margin: 0 auto;
  color: var(--ats-text);
}

/* Hero area enti */

.ats-area-enti-hero {
  margin-bottom: 30px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--ats-border);
  border-radius: var(--ats-radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  background:
    radial-gradient(circle at top left, rgba(39, 75, 122, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--ats-bg-soft) 100%);
  box-shadow: var(--ats-shadow-card);
}

.ats-area-enti-hero h1,
.ats-area-enti-card__header h1 {
  margin: 0 0 16px;
  color: var(--ats-green);
  font-size: var(--ats-title-lg);
  font-weight: 700;
  line-height: 1;
}

.ats-area-enti-hero p,
.ats-area-enti-card__header p {
  max-width: 760px;
  margin: 0;
  color: var(--ats-muted);
  font-size: var(--ats-text-lg);
  line-height: 1.35;
}

.ats-area-enti-hero strong {
  color: var(--ats-text);
  font-weight: 700;
}

/* Eyebrow */

.ats-area-enti-card__eyebrow {
  margin: 0 0 12px;
  color: var(--ats-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Stato area riservata */

.ats-area-enti-status {
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(41, 122, 56, 0.10);
  color: var(--ats-green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ats-area-enti-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ats-green);
}

/* Griglia azioni dashboard */

.ats-area-enti-grid {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ats-area-enti-action-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--ats-border);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background: #ffffff;
  color: var(--ats-text);
  text-decoration: none;
  box-shadow: var(--ats-shadow-soft);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.ats-area-enti-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 75, 122, 0.28);
  color: var(--ats-text);
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(18, 52, 59, 0.12);
}

.ats-area-enti-action-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 75, 122, 0.10);
  color: var(--ats-primary);
  font-size: clamp(26px, 1.5vw, 30px);
}

.ats-area-enti-action-card strong {
  margin-bottom: 8px;
  display: block;
  color: var(--ats-primary-dark);
  font-size: var(--ats-text-lg);
  font-weight: 700;
  line-height: 1.1;
}

.ats-area-enti-action-card small {
  display: block;
  color: var(--ats-muted);
  font-size: var(--ats-text-lg);
  line-height: 1.3;
}

/* Card primaria */

.ats-area-enti-action-card--primary {
  background: var(--ats-green);
  border-color: var(--ats-green);
  color: #ffffff;
}

.ats-area-enti-action-card--primary:hover {
  background: var(--ats-green-dark);
  border-color: var(--ats-green-dark);
  color: #ffffff;
}

.ats-area-enti-action-card--primary .ats-area-enti-action-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.ats-area-enti-action-card--primary strong,
.ats-area-enti-action-card--primary small {
  color: #ffffff;
}

/* Card logout */

.ats-area-enti-action-card--logout .ats-area-enti-action-card__icon {
  background: rgba(180, 35, 24, 0.08);
  color: var(--ats-danger);
}

/* Statistiche base */

.ats-area-enti-stats {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ats-area-enti-stat {
  padding: 26px;
  border: 1px solid var(--ats-border);
  border-radius: var(--ats-radius-md);
  background: #ffffff;
  box-shadow: var(--ats-shadow-soft);
}

.ats-area-enti-stat span {
  margin-bottom: 8px;
  display: block;
  color: var(--ats-primary-dark);
  font-size: var(--ats-title-md);
  font-weight: 700;
  line-height: 1;
}

.ats-area-enti-stat p {
  margin: 0;
  color: var(--ats-primary-dark);
  font-size: var(--ats-text-lg);
  font-weight: 800;
  line-height: 1.35;
}

/* Box informativo */

.ats-area-enti-info {
  padding: 26px;
  border: 1px solid var(--ats-border);
  border-radius: 26px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  background: var(--ats-bg-soft);
  align-items: center;
}

.ats-area-enti-info__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 75, 122, 0.10);
  color: var(--ats-primary);
  font-size: clamp(26px, 1.5vw, 30px);
}

.ats-area-enti-info h2 {
  margin: 0 0 8px;
  color: var(--ats-primary-dark);
  font-size: var(--ats-title-md);
  font-weight: 700;
  line-height: 1.2;
}

.ats-area-enti-info p {
  margin: 0;
  color: var(--ats-muted);
  font-size: var(--ats-text-lg);
  line-height: 1.35;
}

/* Card accesso riservato / account non abilitato */

.ats-area-enti-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--ats-border);
  border-radius: var(--ats-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(39, 75, 122, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--ats-bg-soft) 100%);
  box-shadow: var(--ats-shadow-card);
}

.ats-area-enti-card__header {
  text-align: center;
}

.ats-area-enti-actions {
  margin-top: 28px;
}

.ats-area-enti-btn {
  width: 100%;
  min-height: 56px;
  padding: 17px 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ats-green);
  color: #ffffff !important;
  font-size: var(--ats-text-lg);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.ats-area-enti-btn:hover {
  background: var(--ats-green-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(41, 122, 56, 0.24);
}

/* Responsive dashboard */

@media (max-width: 1050px) {
  .ats-area-enti-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ats-area-enti-dashboard {
    padding: 42px 16px;
  }

  .ats-area-enti-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    border-radius: var(--ats-radius-md);
  }

  .ats-area-enti-status {
    width: fit-content;
  }

  .ats-area-enti-grid,
  .ats-area-enti-stats {
    grid-template-columns: 1fr;
  }

  .ats-area-enti-action-card {
    min-height: auto;
  }

  .ats-area-enti-info {
    grid-template-columns: 1fr;
  }

  .ats-area-enti-card {
    padding: 28px 20px;
    border-radius: var(--ats-radius-md);
  }
}


/* =========================================================
   ATS - I miei eventi
========================================================= */

.ats-my-events-page {
  color: var(--ats-text);
}

/* Azioni principali */

.ats-my-events-actions {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ats-my-events-action {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--ats-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--ats-primary-dark);
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ats-my-events-action span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 75, 122, 0.10);
  color: var(--ats-primary);
  font-size: 14px;
}

.ats-my-events-action:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 75, 122, 0.28);
  color: var(--ats-primary-dark);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18, 52, 59, 0.10);
}

.ats-my-events-action--primary {
  background: var(--ats-green);
  border-color: var(--ats-green);
  color: #ffffff !important;
}

.ats-my-events-action--primary span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.ats-my-events-action--primary:hover {
  background: var(--ats-green-dark);
  border-color: var(--ats-green-dark);
  color: #ffffff !important;
}

.ats-my-events-action--logout {
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.ats-my-events-action--logout:hover {
  color: #b42318!important;
}

.ats-my-events-action--logout span {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

/* Statistiche */

.ats-my-events-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Card contenitore lista */

.ats-my-events-list-card {
  margin-bottom: 30px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--ats-border);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(18, 52, 59, 0.08);
}

.ats-my-events-list-card__header {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ats-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ats-my-events-list-card__header h2 {
  margin: 0;
  color: var(--ats-green);
  font-weight: 700;
  line-height: 1;
}

.ats-my-events-list-card__header a {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ats-green);
  color: #ffffff !important;
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.ats-my-events-list-card__header a:hover {
  background: var(--ats-green-dark);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(41, 122, 56, 0.24);
}

/* Lista custom */

.ats-my-events-custom-list {
  width: 100%;
}

/* Ricerca */

.ats-my-events-search {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.ats-my-events-search input[type="search"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--ats-border-dark);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ats-text);
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 500;
  line-height: 1.35;
  outline: none;
  box-shadow: none;
}

.ats-my-events-search input[type="search"]:focus {
  border-color: var(--ats-primary);
  box-shadow: 0 0 0 4px rgba(39, 75, 122, 0.12);
}

.ats-my-events-search button {
  min-height: 54px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ats-green);
  color: #ffffff;
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.ats-my-events-search button:hover {
  background: var(--ats-green-dark);
  transform: translateY(-2px);
}

/* Tabs */

.ats-my-events-tabs {
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ats-my-events-tabs a {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ats-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--ats-primary);
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.ats-my-events-tabs a:hover,
.ats-my-events-tabs a.is-active {
  background: var(--ats-primary);
  border-color: var(--ats-primary);
  color: #ffffff;
  text-decoration: none;
}

/* Tabella */

.ats-my-events-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ats-my-events-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.ats-my-events-table th {
  padding: 0 16px 10px;
  color: var(--ats-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ats-my-events-table td {
  padding: 18px 16px;
  background: var(--ats-bg-soft);
  color: var(--ats-text);
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  vertical-align: middle;
}

.ats-my-events-table td:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.ats-my-events-table td:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.ats-my-events-table td strong {
  color: var(--ats-primary-dark);
  font-size: clamp(19px, 1.4vw, 23px);
  font-weight: 800;
}

/* Stati evento */

.ats-event-status {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: clamp(16px, 1.04vw, 20px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ats-event-status--publish,
.ats-status-published {
  background: rgba(41, 122, 56, 0.12);
  color: var(--ats-green);
}

.ats-event-status--pending,
.ats-status-pending {
  background: rgba(245, 157, 12, 0.14);
  color: #9a5b00;
}

.ats-event-status--draft,
.ats-status-draft {
  background: rgba(39, 75, 122, 0.10);
  color: var(--ats-primary);
}

.ats-event-status--future,
.ats-status-future {
  background: rgba(39, 75, 122, 0.10);
  color: var(--ats-primary);
}

.ats-status-rejected {
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff4f2;
  color: #b42318;
}

/* Azioni riga */

.ats-my-events-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ats-my-events-row-actions a,
.ats-my-events-no-action {
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid var(--ats-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--ats-primary);
  font-size: clamp(16px, 1.04vw, 20px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.ats-my-events-row-actions a:hover {
  background: var(--ats-primary);
  border-color: var(--ats-primary);
  color: #ffffff;
  text-decoration: none;
}

.ats-my-events-no-action {
  background: rgba(39, 75, 122, 0.08);
  color: var(--ats-muted);
}

.ats-my-events-no-action--rejected {
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff4f2;
  color: #b42318;
}

/* Motivazione non approvazione */

.ats-my-events-rejection-row td {
  padding-top: 0;
  background: transparent;
}

.ats-my-event-rejection-reason {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-left: 5px solid #b42318;
  border-radius: 16px;
  background: #fff4f2;
  color: var(--ats-text);
  font-size: 15px;
  line-height: 1.45;
}

.ats-my-event-rejection-reason strong {
  display: block;
  margin-bottom: 6px;
  color: #5f1f18;
  font-weight: 900;
}

.ats-my-event-rejection-reason span {
  display: block;
}

/* Stato vuoto */

.ats-my-events-empty {
  margin: 0;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--ats-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(39, 75, 122, 0.08), transparent 34%),
    var(--ats-bg-soft);
  color: var(--ats-text);
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* Info finale */

.ats-my-events-info {
  margin-top: 0;
}

/* Responsive */

@media (max-width: 1100px) {
  .ats-my-events-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ats-my-events-list-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ats-my-events-list-card__header a {
    width: 100%;
  }

  .ats-my-events-table-wrap {
    overflow-x: visible;
  }

  .ats-my-events-table,
  .ats-my-events-table thead,
  .ats-my-events-table tbody,
  .ats-my-events-table tr,
  .ats-my-events-table th,
  .ats-my-events-table td {
    display: block;
    width: 100%;
  }

  .ats-my-events-table thead {
    display: none;
  }

  .ats-my-events-table tbody tr {
    margin-bottom: 16px;
    padding: 16px;
    display: block;
    border-radius: 20px;
    background: var(--ats-bg-soft);
  }

  .ats-my-events-table tbody tr.ats-my-events-rejection-row {
    margin-top: -12px;
    padding-top: 0;
    background: transparent;
  }

  .ats-my-events-table td {
    padding: 10px 0;
    border-radius: 0 !important;
    background: transparent;
  }

  .ats-my-events-table td::before {
    content: attr(data-label);
    margin-bottom: 4px;
    display: block;
    color: var(--ats-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .ats-my-events-table td + td {
    border-top: 1px solid rgba(18, 52, 59, 0.10);
  }

  .ats-my-events-rejection-row td::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .ats-my-events-actions,
  .ats-my-events-search,
  .ats-my-events-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ats-my-events-action,
  .ats-my-events-search button,
  .ats-my-events-tabs a {
    width: 100%;
  }

  .ats-my-events-stats {
    grid-template-columns: 1fr;
  }

  .ats-my-events-list-card {
    padding: 22px 16px;
    border-radius: 24px;
  }
}








.quicktags-toolbar {
  display: flex;
  flex-wrap: wrap;
}

.quicktags-toolbar .ed_button {
  width: fit-content !important;
}

/* Paginazione elenco eventi: limita il numero di righe caricate per richiesta. */
.ats-my-events-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ats-my-events-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--ats-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ats-primary);
  text-decoration: none;
  font-weight: 700;
}

.ats-my-events-pagination .page-numbers.current {
  border-color: var(--ats-primary);
  background: var(--ats-primary);
  color: #fff;
}


/* ATS - Stato evento in sospeso nell'area enti */

.ats-status-suspended {
  background: rgba(245, 157, 12, 0.12);
  color: #7a4f00;
}

.ats-event-status-note--suspended {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--ats-warning);
  border-radius: 14px;
  background: rgba(245, 157, 12, 0.10);
  color: var(--ats-text);
  font-size: 15px;
  line-height: 1.45;
}

.ats-event-status-note--suspended strong {
  color: var(--ats-primary);
  font-weight: 900;
}


/* ATS - Stato evento in sospeso nell'area enti */

.ats-status-suspended {
  background: rgba(245, 157, 12, 0.12);
  color: #7a4f00;
}

.ats-my-events-no-action--suspended {
  color: #7a4f00;
  font-weight: 800;
}

.ats-my-events-suspension-row td {
  padding-top: 0 !important;
}

.ats-my-event-suspension-reason {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--ats-warning);
  border-radius: 14px;
  background: rgba(245, 157, 12, 0.10);
  color: var(--ats-text);
  font-size: 15px;
  line-height: 1.45;
}

.ats-my-event-suspension-reason strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ats-primary);
  font-weight: 900;
}

.ats-my-event-suspension-reason span {
  display: block;
}

.ats-my-events-suspension-row td{
    padding:0;
}

/* ATS - Card statistiche eventi in sospeso */

.ats-area-enti-stat--suspended span {
  color: #7a4f00;
}

.ats-area-enti-stat--suspended {
  background: rgba(245, 157, 12, 0.08);
}