/* =============================================================================
   Gestionale – layout e componenti specifici (richiede base.css)
   ============================================================================= */

body.admin-body {
  padding: 0;
  background-color: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Guard (accesso negato)
   ----------------------------------------------------------------------------- */

body.admin-guard {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.guard-card {
  max-width: 480px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2.25rem;
}

.guard-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 0.5rem;
}

.guard-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.guard-card .btn {
  margin-top: 0.75rem;
}

/* -----------------------------------------------------------------------------
   Shell: sidebar + main
   ----------------------------------------------------------------------------- */

.admin-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.admin-sidebar {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
}

.sidebar-brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-xs);
}

.sidebar-brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sidebar-brand small {
  color: var(--text-3);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-2);
  font-weight: 700;
  text-align: left;
  box-shadow: none;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--surface-3);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.nav-item.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.nav-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--text-3);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.nav-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-item:hover .nav-icon {
  color: var(--text);
}

.nav-item.is-active .nav-icon {
  background: var(--brand-500);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.sidebar-link:hover {
  background: var(--surface-3);
  color: var(--text);
  text-decoration: none;
}

.sidebar-link svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--text-3);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.sidebar-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-text strong {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-text small {
  color: var(--text-3);
  font-weight: 600;
}

.sidebar-logout {
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--red-700);
  box-shadow: none;
  font-size: 0.9rem;
}

.sidebar-logout:hover {
  background: var(--red-50);
  transform: none;
  box-shadow: none;
}

.sidebar-logout svg {
  width: 1.05rem;
  height: 1.05rem;
}

.admin-mobile-bar,
.sidebar-backdrop {
  display: none;
}

.admin-main {
  /* Neutralizza le regole generiche di base.css per <main> (max-width 1100px e
     margin auto): senza questo, con contenuti larghi il main si allargava oltre
     la colonna della griglia e la pagina risultava tagliata a destra. */
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.25rem;
}

.admin-topbar h1 {
  margin-bottom: 0.2rem;
}

.admin-topbar-text p {
  margin: 0;
}

.admin-topbar-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}

.view-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.view-panel.hidden {
  display: none;
}

.view-panel > div:empty {
  display: none;
}

.skeleton-block {
  height: 160px;
  border-radius: var(--radius-lg);
}

/* Celle tabella comuni */
.cell-primary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cell-primary small {
  color: var(--text-3);
  font-weight: 500;
}

.cell-primary strong {
  color: var(--text);
}

.cell-actions {
  text-align: right;
  white-space: nowrap;
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.member-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.member-contact-link {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.member-contact-link:hover {
  color: var(--brand-600);
}

.table-search {
  min-height: var(--control-h-sm);
  width: min(260px, 100%);
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
}

.note-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
}

.note-cell-inline {
  flex-direction: row;
  align-items: center;
}

.note-cell-inline input {
  flex: 1;
  min-width: 140px;
}

.avatar-lg {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
}

/* -----------------------------------------------------------------------------
   Panoramica
   ----------------------------------------------------------------------------- */

.stat-card-link {
  text-align: left;
  align-items: flex-start;
  cursor: pointer;
  white-space: normal;
}

.stat-card-link > small {
  line-height: 1.4;
}

.stat-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.dashboard-events {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.todo-item {
  width: 100%;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
  text-align: left;
  font-weight: 600;
  white-space: normal;
}

.todo-item:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  transform: none;
}

.todo-item > span:nth-child(2) {
  flex: 1;
}

.todo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--sky-100);
  color: var(--sky-700);
}

.todo-icon[data-tone='warning'] {
  background: var(--amber-100);
  color: var(--amber-700);
}

.todo-icon svg {
  width: 1rem;
  height: 1rem;
}

.dashboard-quick {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
}

/* -----------------------------------------------------------------------------
   Quote
   ----------------------------------------------------------------------------- */

.progress-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-weight: 700;
  color: var(--text-2);
}

.progress-track {
  height: 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--slate-100);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  transition: width 400ms ease;
}

.quotes-table {
  min-width: 860px;
}

.quotes-table td[data-label]::before,
.members-table td[data-label]::before {
  display: none;
  content: attr(data-label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.25rem;
}

.quotes-table td {
  vertical-align: top;
}

.quote-badges {
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.quote-badges .badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
}

.quote-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 130px;
}

.quote-options .switch {
  gap: 0.45rem;
}

.quote-options .switch-text {
  font-size: 0.82rem;
}

.quote-paid-group {
  align-items: center;
  min-width: 110px;
}

.input-prefix {
  color: var(--text-3);
  font-weight: 700;
}

.quote-paid-input {
  max-width: 120px;
}

.quote-note-input {
  min-width: 170px;
  min-height: 3.2rem;
}

.quotes-table .member-identity strong,
.members-table .member-identity strong {
  white-space: nowrap;
}

.quote-toggles-cell {
  min-width: 140px;
}

.switch-compact .switch-track {
  width: 2.2rem;
  height: 1.25rem;
}

.switch-compact .switch-track::after {
  width: 0.95rem;
  height: 0.95rem;
}

.switch-compact input:checked + .switch-track::after {
  transform: translateX(0.95rem);
}

.quote-row[data-status='warning'] td:first-child {
  box-shadow: inset 3px 0 0 var(--amber-600);
}

.quote-row[data-status='success'] td:first-child {
  box-shadow: inset 3px 0 0 var(--green-600);
}

/* -----------------------------------------------------------------------------
   Eventi: layout, calendario, lista
   ----------------------------------------------------------------------------- */

.events-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.events-list-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.cal-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cal-title {
  text-align: center;
}

.cal-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.cal-cell {
  position: relative;
  min-height: 3.1rem;
  padding: 0.25rem 0.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.cal-cell.is-empty {
  background: transparent;
}

.cal-cell.has-events {
  background: var(--brand-50);
}

.cal-cell.is-selected {
  outline: 2px solid var(--brand-300);
  outline-offset: -2px;
}

.cal-day {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-3);
  padding-left: 0.15rem;
}

.cal-cell.is-today .cal-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  padding: 0;
  background: var(--slate-900);
  color: #fff;
}

.cal-chip {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip:hover {
  transform: none;
  box-shadow: none;
  background: var(--brand-600);
}

.cal-chip.is-past {
  background: var(--slate-400);
}

.cal-chip.is-hidden {
  background: var(--amber-600);
}

.cal-chip.is-active {
  background: var(--slate-900);
}

.event-list-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-list-group h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.25rem 0 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.event-list-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: none;
  white-space: normal;
  font-weight: 600;
}

.event-list-card:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  background: var(--surface);
}

.event-list-card.is-active {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.event-list-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3.2rem;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  color: #fff;
  line-height: 1;
}

.event-list-date strong {
  font-size: 1.15rem;
}

.event-list-date small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.event-list-date.is-past {
  background: var(--slate-300);
  color: var(--slate-800);
}

.event-list-card.is-active .event-list-date {
  background: var(--brand-500);
  color: #fff;
}

.event-list-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.event-list-title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list-meta {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list-badges .badge {
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
}

.event-list-chevron {
  color: var(--slate-400);
  display: inline-flex;
}

.event-list-chevron svg {
  width: 1rem;
  height: 1rem;
}

/* -----------------------------------------------------------------------------
   Scheda evento
   ----------------------------------------------------------------------------- */

.event-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.event-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-50) 100%);
  box-shadow: var(--shadow-xs);
}

.event-hero-media,
.event-preview-media {
  position: relative;
  min-height: 200px;
  border-radius: var(--radius-lg);
  background-color: var(--slate-900);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-hero-media.is-empty,
.event-preview-media.is-empty {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.event-preview-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  line-height: 1;
}

.event-preview-date strong {
  font-size: 2.4rem;
  font-weight: 800;
}

.event-preview-date small {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.event-hero-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.event-hero-body h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin: 0.15rem 0 0.2rem;
}

.event-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-2);
  font-weight: 600;
}

.event-hero-meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-600);
  flex-shrink: 0;
}

.event-hero-actions {
  margin-top: 0.6rem;
}

.event-info-grid {
  display: grid;
  gap: 1.1rem;
}

.event-info-block {
  display: grid;
  gap: 0.4rem;
}

.event-info-block p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

.event-info-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.event-extra-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.event-extra-list > div {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.event-extra-list dt {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-extra-list dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

/* Tabella iscritti */
.attendees-wrap {
  border: none;
  border-radius: 0;
}

.event-attendees-panel:empty {
  display: none;
}

.attendees-table {
  min-width: 780px;
  table-layout: fixed;
}

.attendee-profile-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.attendee-profile-line {
  display: block;
  max-width: 100%;
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-allergy {
  max-width: 100%;
  margin-top: 0.15rem;
  white-space: normal;
  font-size: 0.7rem;
}

.attendees-table .note-cell-inline {
  align-items: stretch;
}

.attendees-table .note-cell-inline textarea {
  flex: 1;
  min-width: 0;
}

.attendees-table .note-cell-inline .save-button {
  width: var(--control-h-sm);
  min-width: var(--control-h-sm);
  padding: 0;
  align-self: center;
}

.attendees-table .note-cell-inline .save-button span {
  display: none;
}

.member-pick-list {
  display: grid;
  gap: 0.4rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.member-pick-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: none;
  white-space: normal;
  font-weight: 600;
}

.member-pick-item:hover {
  transform: none;
  box-shadow: none;
  background: var(--surface);
  border-color: var(--border-strong);
}

.member-pick-item.is-selected {
  border-color: var(--green-600);
  background: var(--green-50);
}

.member-pick-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-pick-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-pick-text small {
  color: var(--text-3);
  font-weight: 600;
}

.member-pick-check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-600);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 140ms ease, transform 140ms ease;
}

.member-pick-check svg {
  width: 0.9rem;
  height: 0.9rem;
}

.member-pick-item.is-selected .member-pick-check {
  opacity: 1;
  transform: scale(1);
}

.add-attendee-form .segmented label svg {
  width: 1rem;
  height: 1rem;
}

.attendee-price-field .field-group {
  align-items: center;
  max-width: 220px;
}

.attendee-add-switches {
  gap: 1.25rem;
}

.attendees-table .cell-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-add-flags {
  display: grid;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.attendees-table td {
  vertical-align: top;
  font-size: 0.86rem;
}

.attendees-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.attendees-table th.sortable:hover {
  color: var(--text);
}

.attendees-table th .sort-indicator {
  display: inline-block;
  width: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.4;
}

.attendees-table th .sort-indicator::after {
  content: '↕';
}

.attendees-table th.is-sorted-asc .sort-indicator,
.attendees-table th.is-sorted-desc .sort-indicator {
  opacity: 1;
  color: var(--brand-600);
}

.attendees-table th.is-sorted-asc .sort-indicator::after {
  content: '↑';
}

.attendees-table th.is-sorted-desc .sort-indicator::after {
  content: '↓';
}

.attendees-table tbody tr td:first-child {
  box-shadow: inset 4px 0 0 transparent;
}

.attendees-table tbody tr[data-state='attended'] {
  background: var(--red-50);
}

.attendees-table tbody tr[data-state='attended'] td:first-child {
  box-shadow: inset 4px 0 0 var(--red-600);
}

.attendees-table tbody tr[data-state='paid'] {
  background: var(--amber-50);
}

.attendees-table tbody tr[data-state='paid'] td:first-child {
  box-shadow: inset 4px 0 0 var(--amber-600);
}

.attendees-table tbody tr[data-state='paid-attended'] {
  background: var(--green-50);
}

.attendees-table tbody tr[data-state='paid-attended'] td:first-child {
  box-shadow: inset 4px 0 0 var(--green-600);
}

.attendee-name-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.attendee-name {
  font-weight: 800;
}

.attendee-subline {
  display: block;
  max-width: 100%;
  font-size: 0.76rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-price-editor {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.attendee-price-editor input {
  flex: 1 1 4.6rem;
  width: 4.6rem;
  min-width: 3.6rem;
  padding-inline: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.attendee-price-editor .save-button {
  width: var(--control-h-sm);
  min-width: var(--control-h-sm);
  padding: 0;
  justify-content: center;
}

.attendee-price-editor .save-button span {
  display: none;
}

.attendee-toggle-cell {
  text-align: center;
}

.attendee-toggle-cell .switch {
  justify-content: center;
}

.attendees-table .note-cell {
  min-width: 0;
}

.attendees-table .note-cell textarea {
  min-height: 2.4rem;
}

.attendees-table .cell-actions .btn-icon {
  width: var(--control-h-sm);
  min-width: var(--control-h-sm);
}

/* -----------------------------------------------------------------------------
   Editor evento (modale)
   ----------------------------------------------------------------------------- */

.event-editor-card {
  padding: 0;
  gap: 0;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
}

.event-editor-header {
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}

.event-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  background: var(--bg);
  min-height: 0;
}

.event-editor-main {
  min-width: 0;
}

.event-editor-form {
  display: grid;
  gap: 1rem;
}

.event-editor-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 0;
}

.event-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.event-editor-footer p {
  margin: 0;
}

.segmented-stack label {
  flex: 1;
  justify-content: center;
}

.segmented label svg {
  width: 1rem;
  height: 1rem;
}

label.is-disabled {
  opacity: 0.55;
}

.field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-2);
}

.interclub-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
}

.club-picker {
  position: relative;
}

.club-payment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.club-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.club-payment-row[data-tone='warn'] {
  border-color: var(--amber-100);
  background: var(--amber-50);
}

.club-payment-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  min-width: 0;
}

.club-payment-info small {
  flex-basis: 100%;
  color: var(--text-3);
  font-weight: 500;
}

.extra-rows {
  display: grid;
  gap: 0.5rem;
}

.extra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.maps-picker {
  display: grid;
  gap: 0.75rem;
}

.maps-picker label {
  position: relative;
}

.maps-suggestions {
  top: 100%;
}

.maps-suggestions .dropdown-item {
  white-space: normal;
  font-size: 0.86rem;
}

/* Locandina / dropzone */
.ai-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}

.ai-drop:hover,
.ai-drop.dragover {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.ai-drop-placeholder {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
}

.ai-drop-placeholder strong {
  color: var(--text-2);
}

.ai-drop-placeholder svg {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--brand-500);
}

.ai-preview:empty {
  display: none;
}

.ai-preview img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.poster-actions {
  gap: 0.4rem;
}

.is-loading {
  position: relative;
}

.is-loading::after {
  content: '';
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Anteprima card evento */
.event-preview {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.event-preview-media {
  min-height: 140px;
  border-radius: 0;
  box-shadow: none;
}

.event-preview-body {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem 1rem;
}

.event-preview-body h4 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.event-preview-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-2);
}

/* -----------------------------------------------------------------------------
   Bilancio
   ----------------------------------------------------------------------------- */

.finance-sections {
  display: grid;
  gap: 1.25rem;
}

.finance-table td {
  vertical-align: middle;
}

.finance-group-row {
  cursor: pointer;
}

.finance-group-row:hover {
  background: var(--brand-50) !important;
}

.finance-group-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--brand-300);
}

.finance-group-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.finance-group-chevron {
  display: inline-flex;
  color: var(--text-3);
  transition: transform var(--transition);
}

.finance-group-chevron svg {
  width: 1rem;
  height: 1rem;
}

.finance-group-row.is-expanded .finance-group-chevron {
  transform: rotate(90deg);
}

.finance-group-row td:nth-child(3) {
  white-space: nowrap;
}

.finance-open-event {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  padding-inline: 0.5rem;
}

.finance-group-details > td {
  padding: 0 0.85rem 0.85rem 2.5rem;
  background: var(--surface-2);
}

.finance-subtable-wrap {
  border-radius: var(--radius);
  background: var(--surface);
}

.finance-subtable th {
  position: static;
  font-size: 0.68rem;
}

.finance-subtable td {
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
}

.finance-subrow:last-child td {
  border-bottom: none;
}

/* -----------------------------------------------------------------------------
   Soci
   ----------------------------------------------------------------------------- */

.members-table {
  table-layout: fixed;
  min-width: 720px;
}

.members-table td {
  vertical-align: middle;
}

.members-table .member-identity {
  min-width: 0;
}

.members-table .member-identity .cell-primary {
  min-width: 0;
}

.members-table .member-identity strong,
.members-table .member-identity small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-table .member-contact-link {
  display: block;
  overflow-wrap: anywhere;
}

.member-allergy {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.members-table .member-actions-cell .btn-sm {
  padding-inline: 0.6rem;
}

@media (max-width: 1400px) and (min-width: 1281px) {
  .members-table .member-actions-cell .btn-sm span {
    display: none;
  }

  .members-table .member-actions-cell .btn-sm {
    width: var(--control-h-sm);
    min-width: var(--control-h-sm);
    padding: 0;
    justify-content: center;
  }
}

.members-table tr.is-on-leave td {
  background: var(--amber-50);
}

.member-danger-zone {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--red-50);
  border: 1px solid var(--red-100);
}

.member-danger-zone .alert {
  background: transparent;
  border: none;
  padding: 0;
}

.member-danger-zone .cluster {
  justify-content: flex-end;
}

/* -----------------------------------------------------------------------------
   Club interclub
   ----------------------------------------------------------------------------- */

.clubs-table td {
  vertical-align: middle;
}

/* -----------------------------------------------------------------------------
   Archivio
   ----------------------------------------------------------------------------- */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.archive-drive-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-50), #fff);
}

.archive-drive-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-100);
  color: var(--teal-700);
}

.archive-drive-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.archive-drive-content h3 {
  margin: 0.1rem 0 0.2rem;
}

.archive-drive-url {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 0.9rem;
}

.archive-drive-access {
  margin: 0.4rem 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.backup-list {
  display: grid;
  gap: 0.75rem;
}

.backup-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.backup-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-50);
  color: var(--indigo-700);
}

.backup-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.backup-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.backup-meta strong {
  overflow-wrap: anywhere;
}

.backup-meta small {
  color: var(--text-3);
}

.backup-note {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-2);
}

.backup-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.backup-actions .btn,
.backup-actions button,
.backup-actions .admin-top-button {
  min-height: var(--control-h-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------------
   Impostazioni sito
   ----------------------------------------------------------------------------- */

.site-settings-form {
  display: grid;
  gap: 1.25rem;
}

.site-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.site-logo-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.site-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.site-logo-preview img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.site-logo-preview.is-empty span {
  color: var(--text-3);
  font-size: 0.82rem;
}

.site-logo-body {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.site-logo-body input[type='file'],
.site-card-editor input[type='file'] {
  max-width: 100%;
  min-width: 0;
}

.site-logo-body p code {
  overflow-wrap: anywhere;
}

.site-logo-body h4 {
  margin: 0;
}

.site-logo-body small {
  color: var(--text-3);
}

.site-editor-list {
  display: grid;
  gap: 0.9rem;
}

.site-card-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.site-card-editor input[type='color'] {
  width: 100%;
  height: var(--control-h);
}

.site-settings-actions {
  position: sticky;
  bottom: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

/* -----------------------------------------------------------------------------
   Dialogo di conferma
   ----------------------------------------------------------------------------- */

.confirm-card {
  max-width: 460px;
  text-align: left;
}

.confirm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-100);
  color: var(--sky-700);
}

.confirm-icon[data-tone='danger'] {
  background: var(--red-100);
  color: var(--red-700);
}

.confirm-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.confirm-body h3 {
  margin-bottom: 0.4rem;
}

.confirm-body p {
  margin: 0;
  color: var(--text-2);
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .event-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-editor-side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 1100px) {
  .events-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .events-list-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .cal-cell {
    min-height: 2.6rem;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .admin-main {
    height: auto;
    overflow: visible;
  }

  .admin-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .admin-mobile-brand img {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: var(--radius-sm);
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(300px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }

  body.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-main {
    padding: 1rem 0.9rem 2.5rem;
  }

  .admin-topbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .event-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-hero-media {
    min-height: 160px;
  }

  .archive-drive-card,
  .backup-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .archive-drive-card > .btn,
  .backup-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-logo-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-editor-card {
    max-height: calc(100vh - 1.5rem);
  }

  .event-editor {
    padding: 1rem;
  }

  .event-editor-header,
  .event-editor-footer {
    padding-inline: 1rem;
  }
}

@media (max-width: 640px) {
  .admin-topbar-actions > button:not(.btn-icon),
  .admin-topbar-actions > .btn:not(.btn-icon) {
    flex: 1;
  }

  .cal-weekdays {
    display: none;
  }

  .cal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cal-cell.is-empty {
    display: none;
  }

  .event-hero-actions button {
    flex: 1 1 45%;
  }

  .extra-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .extra-row input:nth-child(2) {
    grid-column: 1 / -1;
  }

  .segmented {
    display: grid;
    grid-template-columns: 1fr;
  }

  .club-payment-row {
    flex-direction: column;
    align-items: stretch;
  }

  .event-editor-footer .cluster {
    width: 100%;
  }

  .event-editor-footer .cluster button {
    flex: 1;
  }
}

@media print {
  .admin-shell,
  .admin-main {
    height: auto;
    overflow: visible;
  }

  .admin-sidebar,
  .admin-mobile-bar,
  .admin-topbar-actions {
    display: none !important;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .events-list-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* -----------------------------------------------------------------------------
   Tabelle Quote e Soci in modalità "schede" quando lo spazio è poco
   (finestre strette o zoom del browser alto): niente scorrimento laterale.
   ----------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .quotes-table,
  .members-table {
    min-width: 0;
    table-layout: auto;
  }

  .quotes-table thead,
  .members-table thead,
  .members-table colgroup {
    display: none;
  }

  .quotes-table,
  .quotes-table tbody,
  .members-table,
  .members-table tbody {
    display: block;
    width: 100%;
  }

  .quotes-table tbody tr,
  .members-table tbody tr {
    display: grid;
    gap: 0.6rem 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .quotes-table tbody tr {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) max-content;
    grid-template-areas:
      'socio quota versato salva'
      'note note opzioni opzioni';
    align-items: start;
  }

  .members-table tbody tr {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'socio contatti ruolo'
      'quota allergie azioni';
    align-items: start;
  }

  .quotes-table td,
  .members-table td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
  }

  .quotes-table td[data-label]::before,
  .members-table td[data-label]::before {
    display: block;
  }

  .quotes-table tbody tr td:nth-child(1) { grid-area: socio; }
  .quotes-table tbody tr td:nth-child(2) { grid-area: quota; }
  .quotes-table tbody tr td:nth-child(3) { grid-area: versato; }
  .quotes-table tbody tr td:nth-child(4) { grid-area: note; }
  .quotes-table tbody tr td:nth-child(5) { grid-area: opzioni; }
  .quotes-table tbody tr td:nth-child(6) { grid-area: salva; }

  .quotes-table .quote-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
  }

  .quotes-table .quote-note-input {
    min-width: 0;
    width: 100%;
  }

  /* Salva in alto a destra della scheda, allineato alle etichette */
  .quotes-table .quote-save-cell {
    text-align: right;
    align-self: start;
    justify-self: end;
  }

  .quote-row[data-status] td:first-child {
    box-shadow: none;
    padding-left: 0.6rem;
    border-left: 3px solid var(--amber-600);
  }

  .quote-row[data-status='success'] td:first-child {
    border-left-color: var(--green-600);
  }

  .members-table tbody tr td:nth-child(1) { grid-area: socio; }
  .members-table tbody tr td:nth-child(2) { grid-area: contatti; }
  .members-table tbody tr td:nth-child(3) { grid-area: ruolo; }
  .members-table tbody tr td:nth-child(4) { grid-area: quota; }
  .members-table tbody tr td:nth-child(5) { grid-area: allergie; }
  .members-table tbody tr td:nth-child(6) { grid-area: azioni; text-align: right; }

  .members-table tr.is-on-leave td {
    background: transparent;
  }

  .members-table tr.is-on-leave {
    background: var(--amber-50);
  }
}

@media (max-width: 760px) {
  .quotes-table tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
    grid-template-areas:
      'socio socio salva'
      'quota versato versato'
      'note note note'
      'opzioni opzioni opzioni';
  }

  .members-table tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'socio socio'
      'contatti ruolo'
      'quota allergie'
      'azioni azioni';
  }
}

/* Vista backup incorporata nel gestionale */
.backup-embedded {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: none;
}

.backup-embedded .backup-header {
  border: 1px solid var(--border);
}
