/*
 * V3 feature styles: activity pricing tiers, parties grid, after-party form, bottom nav.
 * Loaded by: public/index.html (after styles.css)
 */

.v3-subhead {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.v3-pricing-hint {
  margin: 0 0 0.75rem;
  font-size: 12px;
}

.activity-pricing-wrap,
.custom-fields-wrap {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
}

.tier-fieldset {
  border: 1px solid var(--border, #d8dee9);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  background: #faf9f7;
}

.tier-fieldset legend {
  font-weight: 700;
  padding: 0 6px;
}

.tier-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

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

.tier-grid--prices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tier-grid label {
  font-size: 12px;
  gap: 6px;
}

.tier-grid input {
  min-height: 44px;
}

@media (max-width: 720px) {
  .tier-grid--prices {
    grid-template-columns: 1fr;
  }
}

.tracking-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  flex: 1 1 100%;
}

.tracking-search-input {
  min-width: 200px;
  min-height: 48px;
  border: 1px solid #ddd8d2;
  border-radius: 8px;
  padding: 10px 14px;
}

.kpi-card--registered {
  background: linear-gradient(145deg, #fff8e8, #ffefd0);
  border: 1px solid #e8d4a8;
}

.kpi-card--registered strong {
  color: #8a5a00;
}

.custom-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.opt-in-feed {
  display: grid;
  gap: 1rem;
}

.opt-in-card h4 {
  margin: 0 0 0.35rem;
}

.v3-total {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 0;
}

.user-track-hours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 0.5rem;
}

.user-track-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-track-stat-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #757575);
  line-height: 1.2;
}

.user-track-stat-value {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink, #1a1a1a);
}

.user-track-incomplete {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-style: normal;
}

/* Bottom nav base — visual design fully managed in mobile.css */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0;
}

.form-select-wide,
.form-stack select,
.after-party-card select,
#assignStaffEventSelect,
#assignLeadSelect,
.tracking-period-select {
  width: 100%;
  min-width: min(100%, 280px);
  min-height: 48px;
}

.form-select-label,
.event-picker-field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  min-width: 0;
}

.parties-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.parties-plan-head h3 {
  margin: 0;
}

.parties-history-head {
  margin: 28px 0 14px;
}

.parties-history-head h3 {
  margin: 0;
}

.parties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.party-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  border-left-width: 3px;
  border-left-style: solid;
}

.party-box--assignment-pending {
  background: linear-gradient(135deg, #faf8ff 0%, #fff 55%);
  border-left-color: #c4b5e8;
}

.party-box--upcoming {
  background: linear-gradient(135deg, #eef4ff 0%, #fff 55%);
  border-left-color: #9eb8e8;
}

.party-box--ongoing {
  background: linear-gradient(135deg, #edf8f0 0%, #fff 55%);
  border-left-color: #8ecfaa;
}

.party-box--completed {
  background: linear-gradient(135deg, #f4f4f4 0%, #fff 55%);
  border-left-color: #c5c5c5;
}

.party-box--settlement-pending {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 55%);
  border-left-color: #e57373;
}

.party-box--deleted,
.party-box--is-deleted {
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 55%);
  border-left-color: #9e9e9e;
  opacity: 0.92;
}

.party-box--is-deleted h4 {
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

.party-box h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.party-box__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.party-box__acts {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.party-box__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.event-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.event-meta-bar .muted-line {
  margin: 0;
}

.event-details-maps {
  margin-top: 8px;
}

.maps-link-btn {
  flex-shrink: 0;
}

.maps-link-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.party-box__view,
.party-box__edit {
  min-height: 36px;
  padding-inline: 14px;
}

.party-edit-form--readonly input,
.party-edit-form--readonly textarea {
  background: #f7f6f4;
  color: var(--ink, #1a1a1a);
  cursor: default;
}

.party-edit-form--readonly input:focus,
.party-edit-form--readonly textarea:focus {
  box-shadow: none;
  border-color: #ddd8d2;
}

.event-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line, #e7e5e1);
  white-space: nowrap;
}

.event-tag--upcoming {
  background: #eef4ff;
  color: #1a4a8a;
  border-color: #c8daf5;
}

.event-tag--ongoing {
  background: #eef8f0;
  color: #1a6b3a;
  border-color: #bfe8cb;
}

.event-tag--completed {
  background: #f2f2f2;
  color: #555;
  border-color: #ddd;
}

.event-tag--settlement {
  background: #ffebee;
  color: #b71c1c;
  border-color: #ef9a9a;
}

.event-tag--assignment {
  background: #f3efff;
  color: #5a3d9a;
  border-color: #d4c8f5;
}

.event-tag--draft {
  background: #fff8e8;
  color: #8a6a00;
  border-color: #ecdca0;
}

.event-tag--deleted {
  background: #eceff1;
  color: #546e7a;
  border-color: #cfd8dc;
}

/* Lifecycle progress flow */
.lifecycle-flow {
  margin: 0 0 16px;
}

.track-lifecycle-flow {
  margin-top: 12px;
}

.lifecycle-flow__track {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lifecycle-flow__step {
  flex: 1 1 0;
  min-width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 8px;
  background: #f0eeeb;
  color: #888;
  text-align: center;
  border: 1px solid #e3ddd4;
}

.lifecycle-flow__label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.lifecycle-flow__step--past {
  background: #e8f0fa;
  color: #1a4a8a;
  border-color: #c8daf5;
}

.lifecycle-flow__step--current {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(26, 74, 138, 0.22);
}

.lifecycle-flow__step--assignment.lifecycle-flow__step--current {
  background: #5a3d9a;
  box-shadow: 0 2px 10px rgba(90, 61, 154, 0.25);
}

.lifecycle-flow__step--upcoming.lifecycle-flow__step--current {
  background: #1a4a8a;
}

.lifecycle-flow__step--ongoing.lifecycle-flow__step--current {
  background: #1a6b3a;
  box-shadow: 0 2px 10px rgba(26, 107, 58, 0.22);
}

.lifecycle-flow__step--settlement.lifecycle-flow__step--current {
  background: #b71c1c;
  box-shadow: 0 2px 10px rgba(183, 28, 28, 0.2);
}

.lifecycle-flow__step--completed.lifecycle-flow__step--current {
  background: #455a64;
}

.lifecycle-flow__step--future {
  opacity: 0.72;
}

.lifecycle-flow__arrow {
  flex: 0 0 18px;
  align-self: center;
  position: relative;
  height: 2px;
  margin: 0 -1px;
  background: #d8d2ca;
  list-style: none;
}

.lifecycle-flow__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left: 7px solid #d8d2ca;
}

.event-summary .lifecycle-flow {
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .lifecycle-flow__step {
    min-width: 72px;
    padding: 8px 4px;
  }

  .lifecycle-flow__label {
    font-size: 9px;
  }

  .lifecycle-flow__arrow {
    flex-basis: 10px;
  }
}

.events-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background: #f5f3f0;
  border-radius: 12px;
  border: 1px solid var(--line, #e7e5e1);
}

.events-mode-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-weight: 650;
  font-size: 14px;
  color: var(--muted, #666);
  cursor: pointer;
}

.events-mode-btn.is-active {
  background: #fff;
  color: var(--ink, #1a1a1a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.events-history-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr));
  gap: 14px 16px;
  align-items: end;
  margin-bottom: 16px;
}

.events-history-toolbar .event-tag-filters {
  grid-column: 1 / -1;
}

.event-tag-filters__label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted, #666);
  margin-bottom: 8px;
}

.event-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-tag-chip {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line, #e7e5e1);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.event-tag-chip.is-active {
  background: #1a2744;
  color: #fff;
  border-color: #1a2744;
}

.event-tag-chip--deleted.is-active {
  background: #546e7a;
  border-color: #546e7a;
  color: #fff;
}

.parties-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .events-history-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .events-history-toolbar {
    grid-template-columns: 1fr;
  }

  .events-mode-btn {
    flex: 1 1 100%;
  }
}

.event-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 1fr));
  gap: 14px 16px;
  align-items: end;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line, #e7e5e1);
}

.event-picker-field--search {
  grid-column: 1 / -1;
}

.event-picker-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ddd8d2;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
}

.event-picker-list {
  display: grid;
  gap: 10px;
  max-height: min(420px, 50vh);
  overflow: auto;
  padding: 4px 2px;
}

.event-picker-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line, #e7e5e1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.event-picker-item:hover {
  border-color: #cfc7bc;
  background: #faf9f7;
}

.event-picker-item.is-selected {
  border-color: #ffc2b6;
  background: #fff8f6;
  box-shadow: 0 0 0 2px #ffe8e2;
}

.event-picker-item__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.event-picker-item__main strong {
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.event-picker-item__main .muted-line {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.event-picker-item__acts {
  font-size: 12px;
}

.event-picker-empty {
  margin: 0;
  padding: 12px 4px;
}

.tier-legend {
  margin: 0 0 0.5rem;
  font-size: 11px;
}

.after-party-form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e7e5e1);
}

.after-party-submitted {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e7e5e1);
}

.after-party-submitted-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.after-party-submitted-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.after-party-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
}

.after-party-volunteer-pay summary {
  cursor: pointer;
  font-weight: 600;
}

.volunteer-pay-row {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #e7e5e1);
}

.volunteer-pay-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.volunteer-pay-meta {
  display: grid;
  gap: 2px;
}

.volunteer-pay-amount input {
  max-width: 140px;
}

.after-party-pay-summary h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.ap-photo-field {
  display: grid;
  gap: 8px;
}

.ap-photo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ap-photo-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-lite {
  border: 1px solid var(--line, #e7e5e1);
  border-radius: 10px;
  padding: 16px;
  background: #faf9f7;
  display: grid;
  gap: 12px;
}

.after-party-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.after-party-activity {
  display: grid;
  gap: 10px;
}

.after-party-activity legend {
  font-weight: 700;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 4px 0 8px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #757575);
  margin-bottom: 4px;
}

.party-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.event-summary-view {
  padding: 4px 0;
}

.event-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.event-summary__head h4 {
  margin: 0;
  font-size: 18px;
}

.event-summary__section {
  margin-bottom: 20px;
}

.event-summary__section h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #757575);
}

.event-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
}

.event-summary__row {
  margin: 0;
}

.event-summary__row dt {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted, #757575);
  margin-bottom: 2px;
}

.event-summary__row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.event-summary__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.event-summary__notes {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.event-summary__meta {
  margin-top: 8px;
  font-size: 12px;
}

.event-summary__deleted-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eceff1;
  color: #455a64;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .event-summary__grid,
  .party-edit-modal .event-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .event-summary__grid,
  .party-edit-modal .event-summary__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .event-picker-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .after-party-meta {
    grid-template-columns: 1fr;
  }

  .event-picker-toolbar {
    grid-template-columns: 1fr;
  }
}

/* Event summary pricing table */
.event-summary__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.5rem 0 1rem;
}

.event-summary__table th,
.event-summary__table td {
  border-bottom: 1px solid #ebe6e0;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.event-summary__table th.num,
.event-summary__table td.num {
  text-align: right;
  white-space: nowrap;
}

.event-summary__table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a746e;
  background: #faf8f5;
}

.event-summary__totals {
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 2px solid #ebe6e0;
  display: grid;
  gap: 0.35rem;
  max-width: min(420px, 100%);
  margin-left: auto;
}

.event-summary__totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.event-summary__totals-row dt {
  color: #6b6560;
  margin: 0;
}

.event-summary__totals-row dd {
  margin: 0;
  font-weight: 600;
}

.event-summary__totals-row--net {
  font-size: 1.05rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #ddd8d2;
}

.event-summary__totals-row--net dd {
  color: #1a4d8f;
}

.event-summary__hint {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

/* Event gallery */
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.gallery-sidebar {
  padding: 1rem;
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.gallery-search-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

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

.gallery-event-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.5rem;
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.gallery-event-item.is-selected {
  border-color: #1a4d8f;
  background: #f3f8ff;
}

.gallery-event-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.gallery-event-thumb--empty {
  display: grid;
  place-items: center;
  background: #f0ebe4;
  font-size: 1.25rem;
}

.gallery-event-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.gallery-event-copy strong {
  font-size: 0.92rem;
}

.gallery-event-copy em {
  font-size: 0.78rem;
  color: #7a746e;
  font-style: normal;
}

.gallery-detail-empty {
  padding: 2rem 1rem;
  text-align: center;
}

.gallery-detail {
  padding: 1rem 1.25rem;
}

.gallery-detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gallery-detail-head h3 {
  margin: 0 0 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.gallery-tile {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ebe6e0;
  background: #f8f6f3;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-tile-meta {
  display: block;
  font-size: 0.68rem;
  color: #7a746e;
  padding: 0.35rem 0.45rem;
}

.gallery-section {
  margin-top: 1rem;
  border: 1px solid var(--border, #e3ddd4);
  border-radius: 10px;
  overflow: hidden;
}

.gallery-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.gallery-section__head::-webkit-details-marker {
  display: none;
}

.gallery-section__meta {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7a746e;
}

.gallery-section__download {
  margin-left: 0.35rem;
}

.gallery-section .gallery-grid {
  padding: 0 0.85rem 0.85rem;
}

.gallery-section-empty {
  padding: 0 0.85rem 0.85rem;
}

.gallery-section--payment {
  border-color: #c8daf5;
  background: #fafcff;
}

.custom-activities-block {
  margin-top: 0.5rem;
}

.custom-activities-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.custom-activities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.custom-activity-row {
  padding: 0.85rem 1rem;
}

.custom-activity-row__head {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.custom-activity-row__head label {
  flex: 1 1 12rem;
}

.settlement-pending {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f5f3ef;
  font-style: normal;
}

.pdf-activity-block {
  margin-bottom: 1rem;
}

.pdf-activity-name {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 600;
  color: #1a4a8a;
}

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

  .gallery-sidebar {
    max-height: none;
  }
}

/* Volunteer dashboard */
.volunteer-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.volunteer-dash-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.volunteer-dash-intro h3 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.volunteer-dash-city {
  margin: 0.35rem 0 0;
  color: var(--muted, #6b6560);
  font-size: 0.95rem;
}

.volunteer-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.volunteer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.volunteer-kpi {
  background: #fff;
  border: 1px solid #e8e2db;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.volunteer-kpi span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a746e;
}

.volunteer-kpi strong {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: #1a1714;
}

.volunteer-kpi em {
  font-size: 0.8rem;
  font-style: normal;
  color: #8a847c;
}

.volunteer-kpi--assigned {
  border-color: #c5d9f0;
  background: linear-gradient(160deg, #f6faff, #eef5fc);
}

.volunteer-kpi--hours {
  border-color: #d4e8d8;
  background: linear-gradient(160deg, #f6fcf7, #edf7ef);
}

.volunteer-kpi--settlement.volunteer-kpi--alert {
  border-color: #e8b4b4;
  background: linear-gradient(160deg, #fff6f6, #ffeded);
}

.volunteer-kpi--settlement.volunteer-kpi--alert strong {
  color: #b42318;
}

.volunteer-dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.volunteer-role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.volunteer-role-badge--lead {
  background: #e8f0ff;
  color: #1d4ed8;
}

.volunteer-role-badge--volunteer {
  background: #edf7ef;
  color: #166534;
}

.volunteer-empty {
  margin: 0.75rem 1rem 1rem;
  color: #7a746e;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .volunteer-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .volunteer-kpi-grid,
  .volunteer-dash-panels {
    grid-template-columns: 1fr;
  }
}

/* Reason dialog + Activity bin */
.reason-dialog textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #ddd8d2;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

.reason-dialog textarea.is-invalid {
  border-color: #c0392b;
}

.reason-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ops-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ops-log-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.ops-log-item {
  border: 1px solid #ebe6e0;
  border-radius: 10px;
  background: #faf8f5;
  padding: 0;
}

.ops-log-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.ops-log-item summary::-webkit-details-marker {
  display: none;
}

.ops-log-item__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eef8;
  color: #1a4d8f;
}

.ops-log-item--delete .ops-log-item__badge {
  background: #fdecea;
  color: #9b2c2c;
}

.ops-log-item__title {
  font-weight: 600;
  font-size: 14px;
}

.ops-log-item__meta {
  font-size: 12px;
  color: #7a746e;
  white-space: nowrap;
}

.ops-log-item__body {
  padding: 0 14px 14px;
  border-top: 1px dashed #ebe6e0;
}

.ops-log-item__reason {
  margin: 10px 0 6px;
  font-size: 14px;
}

.ops-log-item__changes {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}

.user-track-phone {
  margin: 0;
  font-size: 12px;
  padding: 0 10px 8px;
}

.party-box__delete {
  margin-left: 4px;
}

/* ─── Assign volunteers chip picker ─── */

.assign-volunteers-picker {
  display: grid;
  gap: 8px;
}

.assign-volunteers-picker > .form-select-label {
  margin-bottom: 0;
}

.assign-vol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  align-items: center;
}

.assign-vol-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft, #ffe3dc);
  color: var(--ink);
  border: 1px solid rgba(255, 90, 61, 0.2);
  border-radius: 16px;
  padding: 4px 8px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.assign-vol-chip-remove {
  border: none;
  background: none;
  color: var(--accent, #ff5a3d);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  border-radius: 50%;
}

.assign-vol-chip-remove:hover {
  background: rgba(255, 90, 61, 0.15);
}

.assign-vol-dropdown {
  position: relative;
}

.assign-vol-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.1);
  max-height: 240px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.assign-vol-search {
  border: none;
  border-bottom: 1px solid #ebe6df;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.assign-vol-options {
  overflow-y: auto;
  padding: 6px 0;
}

.assign-vol-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background 100ms;
}

.assign-vol-option:hover {
  background: #faf8f5;
}

.assign-vol-option input[type="checkbox"] {
  accent-color: var(--accent, #ff5a3d);
  width: 16px;
  height: 16px;
}

/* ─── Form required fields legend ─── */

.form-required-legend {
  font-size: 12px;
  color: var(--muted, #757575);
  margin: 0;
  grid-column: 1 / -1;
}

.form-required-legend .req-mark {
  color: var(--accent, #ff5a3d);
  font-weight: 700;
}

/* ─── Toast error variant ─── */

.toast.toast--error {
  background: #d32f2f;
  color: #fff;
}
