/* Tarjetas KPI de Resumen Interactivas */
.green-wall-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  flex-shrink: 0;
}

.green-wall-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 94px;
  max-height: 104px;
  height: 96px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.green-wall-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.green-wall-stat-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 4px 12px rgba(0, 155, 219, 0.12);
}

.green-wall-stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.green-wall-stat-num {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.green-wall-stat-sub {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  margin-top: 2px;
}

/* Barra de herramientas / Toolbar */
.green-wall-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.green-wall-toolbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.green-wall-filters,
.green-wall-social-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.green-wall-social-filters {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.filter-count {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.admin-filter.is-active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

.green-wall-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.green-wall-view-switch {
  display: inline-flex;
  padding: 2px;
  background: #edf2f5;
  border-radius: 8px;
  gap: 2px;
}

.green-wall-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.green-wall-view-btn.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.green-wall-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
}

.green-wall-search-box .search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  pointer-events: none;
}

.green-wall-search-box input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fdfdfd;
}

/* Barra de acciones en lote */
.green-wall-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  animation: fadeIn 0.15s ease;
}

.green-wall-bulk-info {
  font-weight: 700;
  color: #065f46;
  font-size: 0.88rem;
}

.green-wall-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.green-wall-bulk-actions .button {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Tabla de moderación */
.green-wall-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

.green-wall-admin-table {
  min-width: 960px;
}

.table-select-col {
  width: 44px;
  text-align: center;
}

.green-wall-admin-table tr.is-selected-row {
  background: #f0fdf4 !important;
}

.green-wall-photo-button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.green-wall-admin-thumb {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f6;
  transition: transform 0.15s ease;
}

.green-wall-photo-button:hover .green-wall-admin-thumb {
  transform: scale(1.04);
}

.photo-zoom-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.green-wall-photo-button:hover .photo-zoom-badge {
  opacity: 1;
}

.green-wall-admin-thumb.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.green-wall-author-cell {
  display: grid;
  gap: 3px;
}

.green-wall-ref-date {
  font-size: 0.76rem;
  color: var(--muted);
}

.green-wall-admin-message {
  max-width: 320px;
  margin-top: 4px !important;
  color: var(--ink) !important;
  font-style: italic;
  line-height: 1.35;
  font-size: 0.82rem;
}

.green-wall-permissions-cell {
  display: grid;
  gap: 6px;
}

.green-wall-email {
  font-size: 0.82rem;
  color: var(--ink);
  word-break: break-all;
}

.permission-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.permission-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
}

.permission-pill.web {
  background: #e0f2fe;
  color: #0369a1;
}

.permission-pill.social {
  background: #dbeafe;
  color: #1d4ed8;
}

.permission-pill.muted {
  background: #f1f5f9;
  color: #64748b;
}

.green-wall-status-cell {
  display: grid;
  gap: 4px;
}

.green-wall-reviewer {
  font-size: 0.74rem;
  color: var(--muted);
}

.green-wall-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.button.is-success {
  color: #059669 !important;
  border-color: #a7f3d0 !important;
}

.button.is-success:hover {
  background: #ecfdf5 !important;
}

.button.is-success-solid {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.button.icon-only-btn {
  padding: 6px 9px;
  min-height: auto;
}

/* Vista Galería / Cuadrícula (Mosaico) */
.green-wall-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.green-wall-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.green-wall-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.green-wall-card.is-selected {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #10b981, 0 6px 16px rgba(16, 185, 129, 0.15);
}

.green-wall-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  background: #eef4f6;
  overflow: hidden;
}

.green-wall-card-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.green-wall-card-checkbox input {
  cursor: pointer;
}

.green-wall-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.green-wall-card-img-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.green-wall-card-img-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.green-wall-card:hover .green-wall-card-img-btn img {
  transform: scale(1.05);
}

.green-wall-card-no-img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.8rem;
}

.green-wall-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 14px;
}

.green-wall-card-header {
  display: grid;
  gap: 2px;
}

.green-wall-card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.green-wall-card-loc {
  font-size: 0.78rem;
  margin: 0;
}

.green-wall-card-msg {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.green-wall-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.green-wall-card-permissions {
  margin-top: 4px;
}

.green-wall-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.green-wall-card-footer .button {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.78rem;
  justify-content: center;
}

/* Lightbox Modal */
.green-wall-lightbox {
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 860px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 0.9fr);
  max-height: 90vh;
  overflow-y: auto;
}

.lightbox-image-wrap {
  display: grid;
  place-items: center;
  background: #0f172a;
  padding: 20px;
  min-height: 320px;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: #ffffff;
  overflow-y: auto;
}

.lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lightbox-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.lightbox-message {
  padding: 12px;
  background: #f8fafc;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0;
}

.lightbox-badges {
  margin-top: 4px;
}

.lightbox-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.lightbox-actions .button {
  flex: 1;
  justify-content: center;
}

/* Empty State */
.green-wall-empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 48px 24px;
  text-align: center;
}

.green-wall-empty-icon {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.green-wall-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.green-wall-empty-sub {
  font-size: 0.85rem;
  margin: 0;
}

.green-wall-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.green-wall-review-photo {
  display: grid;
  align-content: start;
  gap: 14px;
}

.green-wall-review-photo > img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef4f6;
}

.green-wall-review-form {
  align-content: start;
}

.green-wall-consent-summary {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 8px 14px;
  padding: 14px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
}

.green-wall-consent-summary strong {
  color: var(--ink);
}

.admin-meeting-reports-view {
  align-content: start;
}

@media (max-width: 900px) {
  .lightbox-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .green-wall-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .green-wall-toolbar,
  .admin-green-wall-title,
  .admin-congress-title,
  .admin-lightup-title,
  .admin-meeting-reports-title {
    align-items: stretch;
    flex-direction: column;
  }

  .green-wall-social-filters {
    padding-left: 0;
    border-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    width: 100%;
  }

  .green-wall-toolbar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .green-wall-search-box {
    width: 100%;
    flex: 1;
  }

  .green-wall-review-layout,
  .green-wall-consent-summary {
    grid-template-columns: 1fr;
  }
}

.admin-meeting-reports-title {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-meeting-report-form {
  padding: 22px;
}

.admin-meeting-report-form .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.admin-meeting-report-form small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.admin-meeting-report-form .admin-field > span,
.meeting-report-prompt-heading {
  display: flex;
  align-items: center;
  min-height: 22px;
  height: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.meeting-report-prompt-heading {
  justify-content: space-between;
  gap: 12px;
}

.meeting-report-prompt-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.meeting-report-prompt-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 22px;
}

.meeting-report-prompt-actions .button {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  height: 22px;
  padding: 0 4px;
  margin: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.meeting-report-prompt-actions .button:hover:not(:disabled) {
  text-decoration: underline;
  background: transparent;
  border-color: transparent;
}

.meeting-report-prompt-actions .button:disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}

.admin-meeting-report-form input[type="text"],
.admin-meeting-report-form input[type="date"],
.admin-meeting-report-form select {
  height: 46px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 13px;
  line-height: 1.3;
}

.meeting-report-prompt-summary {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-meeting-prompt-modal {
  max-width: 760px;
}

.admin-meeting-prompt-form .admin-form-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
}

.meeting-prompt-editor-field textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.55;
}

.meeting-prompt-modal-actions {
  margin: 24px -24px -24px;
  gap: 10px;
  align-items: center;
}

.meeting-prompt-modal-actions .button {
  width: auto;
}

.meeting-prompt-modal-spacer {
  flex: 1;
}

.meeting-prompt-delete {
  border-color: #efb6b2;
  color: #a93632;
}

.meeting-type-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.meeting-type-field legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.meeting-type-segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 46px;
  padding: 3px;
  background: #eaf3f7;
  border: 1px solid #d5e3e9;
  border-radius: 7px;
}

.meeting-type-segments label {
  display: grid;
  place-items: center;
  position: relative;
  margin: 0;
  color: #40535e;
  cursor: pointer;
}

.meeting-type-segments input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.meeting-type-segments span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 38px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 800;
}

.meeting-type-segments input:checked + span {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 57, 78, 0.12);
}

.meeting-type-segments input:focus-visible + span {
  outline: 3px solid rgba(0, 155, 219, 0.22);
  outline-offset: 1px;
}

.meeting-report-file-field input[type="file"] {
  padding: 8px;
  background: #ffffff;
  border: 1px dashed #9fb9c5;
}

.meeting-report-file-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--blue);
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.meeting-report-history {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.meeting-report-history-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.meeting-report-history-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meeting-report-filter-select {
  width: auto;
  min-width: 190px;
  min-height: 36px;
  height: 36px;
  padding: 6px 12px;
  border: 1px solid #c8d8df;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.meeting-report-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meeting-report-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
  display: block;
}

.meeting-report-file {
  color: #8395a1;
  font-size: 0.74rem;
  margin-top: 1px;
  display: block;
}

.meeting-report-history-heading h3,
.meeting-report-history-heading p {
  margin: 0;
}

.meeting-report-history-heading p {
  margin-top: 4px;
}

.button-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meeting-report-recipient-list {
  display: grid;
  gap: 3px;
}

.meeting-report-recipient-list span {
  overflow-wrap: anywhere;
}

.meeting-report-detail {
  display: grid;
  gap: 22px;
}

.meeting-report-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.meeting-report-detail-header h4,
.meeting-report-detail-header p {
  margin: 0;
}

.meeting-report-detail-header .admin-muted {
  margin-top: 5px;
}

.meeting-report-document {
  display: grid;
  gap: 22px;
  max-width: 900px;
}

.meeting-report-document section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.meeting-report-document section:first-child {
  padding-top: 0;
  border-top: 0;
}

.meeting-report-document h5,
.meeting-report-document p,
.meeting-report-document ul {
  margin: 0;
}

.meeting-report-prompt-detail {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.meeting-report-prompt-detail summary {
  width: fit-content;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.meeting-report-prompt-detail pre {
  margin: 14px 0 0;
  padding: 16px;
  max-height: 360px;
  overflow: auto;
  color: #40535e;
  background: #f4f8fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.meeting-report-document h5 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 1rem;
}

.meeting-report-document p,
.meeting-report-document li {
  color: #40535e;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.meeting-report-document ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.meeting-report-resend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.meeting-report-resend .admin-field {
  margin: 0;
}

.admin-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-export-buttons .button,
.admin-title-actions .button,
.meeting-report-history-toolbar .button,
.meeting-report-history-heading .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
}

.admin-title-actions .button .button-icon,
.meeting-report-history-toolbar .button .button-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.admin-search input {
  min-height: 40px;
}

.admin-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.admin-page-button:disabled {
  opacity: 0.45;
}

.admin-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-request-note {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: #f7fbfd;
  border-bottom: 1px solid var(--line);
}

.admin-request-note strong,
.admin-request-note span {
  display: block;
}

.admin-request-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-requests-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background: #ffffff;
}

.admin-requests-view.is-hidden {
  display: none;
}

.admin-request-section {
  overflow: hidden;
  background: #ffffff;
  flex: 1 1 auto;
}

.admin-request-workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.admin-request-workflow-tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 14px;
  color: #40535e;
  background: #ffffff;
  border: 1px solid #d5e3e9;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-request-workflow-tab:hover {
  color: var(--blue);
  background: rgba(0, 155, 219, 0.05);
  border-color: rgba(0, 155, 219, 0.35);
}

.admin-request-workflow-tab:focus-visible {
  outline: 3px solid rgba(0, 155, 214, 0.24);
  outline-offset: 2px;
}

.admin-request-workflow-tab.is-active {
  color: #0b6f98;
  background: #eef9fd;
  border-color: #8ccde5;
}

.admin-request-workflow-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #49616e;
  background: #e7eef2;
  border-radius: 11px;
  font-size: 0.72rem;
  line-height: 1;
}

.admin-request-workflow-tab.is-active .admin-request-workflow-count {
  color: #ffffff;
  background: #009bd6;
}

.admin-request-workflow-panel.is-hidden {
  display: none;
}

.admin-request-workflow-panel .admin-request-note {
  padding: 22px 24px;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-request-message {
  max-width: 420px;
  white-space: pre-wrap;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #40535e;
  background: #f5f9fb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-badge {
  display: inline-flex !important;
  width: max-content;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: #40535e;
  background: #edf4f7;
  border: 1px solid #d5e3e9;
  border-radius: 999px;
  font-size: 0.78rem !important;
  font-weight: 900;
}

.admin-badge.is-success {
  color: #61750e;
  background: #f4f8df;
  border-color: rgba(163, 189, 49, 0.35);
}

.admin-badge.is-warning {
  color: #7a6214;
  background: #fff8dc;
  border-color: #eadc9b;
}

.admin-badge.is-danger {
  color: #9a3030;
  background: #fff0f0;
  border-color: #efc2c2;
}

.admin-badge.is-muted {
  color: var(--muted);
  background: #f7fbfd;
}

.admin-action-button {
  min-height: 34px;
  margin-right: 6px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.admin-action-button.is-danger {
  color: #b63a3a;
  border-color: #efc2c2;
  background: #fff7f7;
}

.admin-action-button.is-danger:hover {
  color: #ffffff;
  border-color: #b63a3a;
  background: #b63a3a;
}

.admin-table code {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: #40535e;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-embedded-table {
  margin: 12px 0 0;
  border-radius: 8px;
  box-shadow: none;
}

.admin-embedded-table .admin-table {
  min-width: 0;
}

.admin-embedded-table .admin-table th,
.admin-embedded-table .admin-table td {
  padding: 10px 12px;
}

.activity-registration-header {
  margin-bottom: 20px;
}

.activity-registration-header h4 {
  margin: 4px 0 6px;
}

.activity-registration-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.activity-registration-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.activity-registration-reminder-status:empty {
  display: none;
}

.activity-registration-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border-block: 1px solid var(--line);
}

.activity-registration-summary div {
  padding: 14px 16px;
}

.activity-registration-summary div + div {
  border-left: 1px solid var(--line);
}

.activity-registration-summary dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.activity-registration-summary dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
}

.activity-registration-table-wrap {
  overflow-x: auto;
}

.activity-registration-table {
  min-width: 680px !important;
}

.activity-registration-email {
  overflow-wrap: anywhere;
}

.activity-registration-cell > * + * {
  margin-top: 3px;
}

.activity-registration-empty {
  padding: 28px 16px;
  border-block: 1px solid var(--line);
}

.admin-crm-payment-group {
  margin-top: 16px;
}

.admin-crm-payment-group h5 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.92rem;
}

.admin-empty {
  padding: 24px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.admin-detail-modal {
  width: min(100%, 980px);
  max-width: min(980px, calc(100vw - 24px));
}

.admin-detail-body {
  display: grid;
  gap: 18px;
}

.admin-priority-modal {
  width: min(100%, 680px);
  max-width: min(680px, calc(100vw - 24px));
}

.admin-priority-context {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.admin-priority-context h4 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 1.15rem;
}

.admin-priority-context p:not(.eyebrow) {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-priority-context > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-priority-form {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.admin-priority-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.admin-priority-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-detail-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.admin-detail-card h4 {
  min-width: 0;
  margin: 0 0 12px;
  font-size: 1.25rem;
  overflow-wrap: break-word;
}

.admin-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-detail-list div {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--ink);
  font-weight: 700;
}

.admin-detail-list dd .admin-badge {
  white-space: normal;
}

.admin-detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.admin-detail-actions .button {
  width: 100%;
}

.admin-history {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.admin-history-item {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.admin-history-item strong,
.admin-history-item span {
  display: block;
}

.admin-history-item span,
.admin-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .admin-request-workflow-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .admin-request-workflow-tab {
    display: inline-flex;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
    flex: 0 0 auto;
    align-self: center;
  }

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

  .admin-toolbar {
    display: contents;
  }

  .admin-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    --admin-content-gutter: 14px;
  }

  .admin-sidebar-nav,
  .admin-content-tools,
  .admin-panel > .admin-table-wrap,
  .admin-panel > .admin-stack-view,
  .admin-panel > .admin-settings-view,
  .admin-panel > .admin-analytics-view,
  .admin-panel > .admin-dashboard-view,
  .admin-panel > .admin-pagination,
  .admin-toolbar > .admin-table-wrap,
  .admin-toolbar > .admin-stack-view,
  .admin-toolbar > .admin-settings-view,
  .admin-toolbar > .admin-analytics-view,
  .admin-toolbar > .admin-dashboard-view,
  .admin-toolbar > .admin-pagination {
    grid-column: 1;
  }

  .admin-sidebar-nav {
    grid-row: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-content-tools {
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .admin-panel > .admin-table-wrap,
  .admin-panel > .admin-stack-view,
  .admin-panel > .admin-settings-view,
  .admin-panel > .admin-analytics-view,
  .admin-panel > .admin-dashboard-view,
  .admin-panel > .admin-pagination,
  .admin-toolbar > .admin-table-wrap,
  .admin-toolbar > .admin-stack-view,
  .admin-toolbar > .admin-settings-view,
  .admin-toolbar > .admin-analytics-view,
  .admin-toolbar > .admin-dashboard-view,
  .admin-toolbar > .admin-pagination {
    grid-row: auto;
  }

  .admin-search {
    width: 100%;
  }

  .admin-tools {
    justify-items: stretch;
  }

  .member-data-layout,
  .admin-form-grid,
  .admin-settings-grid,
  .admin-backup-stats,
  .admin-security-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-danger-zone {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-danger-zone .button {
    width: 100%;
    justify-content: center;
  }

  .admin-activity-form .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-meeting-report-form .admin-form-grid,
  .meeting-report-resend {
    grid-template-columns: 1fr;
  }

  .meeting-report-prompt-picker,
  .admin-meeting-prompt-form .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .meeting-report-prompt-actions {
    justify-content: flex-start;
  }

  .meeting-prompt-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-prompt-modal-actions .button {
    width: 100%;
  }

  .meeting-prompt-modal-spacer {
    display: none;
  }

  .meeting-report-detail-header,
  .meeting-report-history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-report-history-heading .button {
    align-self: flex-start;
  }

  .meeting-reports-table {
    min-width: 0 !important;
  }

  .meeting-reports-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .meeting-reports-table tbody,
  .meeting-reports-table tr,
  .meeting-reports-table td {
    display: block;
    width: 100%;
  }

  .meeting-reports-table tr {
    padding: 12px 0;
  }

  .meeting-reports-table tr + tr {
    border-top: 1px solid var(--line);
  }

  .meeting-reports-table td:not(.admin-empty) {
    display: grid;
    grid-template-columns: minmax(104px, 0.4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 0;
    overflow-wrap: anywhere;
  }

  .meeting-reports-table td:not(.admin-empty)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    overflow-wrap: normal;
    text-transform: uppercase;
    word-break: normal;
  }

  .meeting-reports-table .meeting-report-recipient-list {
    min-width: 0;
  }

  .admin-field-wide {
    grid-column: auto;
  }

  .member-update-column {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .admin-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-pagination-controls {
    justify-content: space-between;
  }

  .admin-password-form,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .activity-registration-summary {
    grid-template-columns: 1fr;
  }

  .activity-registration-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-registration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-registration-summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .activity-registration-table {
    min-width: 0 !important;
  }

  .activity-registration-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .activity-registration-table tbody,
  .activity-registration-table tr,
  .activity-registration-table td {
    display: block;
    width: 100%;
  }

  .activity-registration-table tr {
    padding: 10px 0;
  }

  .activity-registration-table tr + tr {
    border-top: 1px solid var(--line);
  }

  .activity-registration-table td {
    display: grid;
    grid-template-columns: minmax(88px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 0;
  }

  .activity-registration-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .activity-registration-cell {
    min-width: 0;
  }

  .admin-priority-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-priority-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .admin-priority-actions .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .settings-tabs {
    padding: 0 10px;
  }

  .settings-tab {
    min-height: 62px;
    padding: 10px;
  }

  .settings-tab span {
    font-size: 0.65rem;
  }

  .settings-tab strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .settings-section-heading {
    margin-bottom: 20px;
    padding-left: 12px;
  }

  .settings-section-heading h3 {
    font-size: 1.08rem;
  }

  .member-data-list {
    grid-template-columns: 1fr;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-body {
    padding: 18px;
  }

  .admin-detail-modal {
    max-width: calc(100vw - 16px);
    border-radius: 10px;
  }

  .admin-detail-card {
    padding: 14px;
  }

  .admin-detail-card h4 {
    font-size: 1.05rem;
  }

  .admin-detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .admin-detail-list dd {
    font-size: 0.95rem;
  }

  .admin-main {
    padding: 24px 14px 48px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-header {
    grid-template-columns: 1fr auto;
    align-items: flex-start;
  }

  .admin-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

