@import url("./tokens.css");

body.mpc-volunteers-renovated .volunteers-module-layout {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.mpc-volunteers-renovated .volunteers-module-layout .module-sidebar,
body.mpc-volunteers-renovated .volunteers-page-header,
body.mpc-volunteers-renovated #volunteerhub-notice,
body.mpc-volunteers-renovated #view-volunteerhub,
body.mpc-volunteers-renovated .volunteers-footer {
  display: none !important;
}

body.mpc-volunteers-renovated .volunteers-module-layout .module-content {
  width: 100%;
  min-width: 0;
}

body.mpc-volunteers-renovated .page-wrap {
  padding: 0 !important;
  background: transparent !important;
}

.mpc-volunteers-screen {
  --module-accent: var(--volunteers);
  --module-tint: var(--volunteers-tint);
  width: 100%;
  min-width: 0;
  color: var(--text-strong);
  font-family: var(--font-ui);
}

.mpc-volunteers-screen :where(button, input, select, textarea) {
  font: inherit;
}

.mpc-volunteers-screen :where(a) {
  color: inherit;
  text-decoration: none;
}

.mpc-volunteers-screen :focus-visible {
  outline: 2px solid var(--volunteers);
  outline-offset: 2px;
}

.mpc-volunteers-screen .num {
  font-variant-numeric: tabular-nums;
}

.mpc-volunteers-screen .volunteers-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}

.mpc-volunteers-screen .volunteers-eyebrow {
  color: var(--volunteers);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mpc-volunteers-screen .volunteers-title {
  margin: 6px 0 0;
  color: var(--text-strong);
  font: 700 27px/1.08 var(--font-display);
  letter-spacing: 0;
}

.mpc-volunteers-screen .volunteers-sub {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.mpc-volunteers-screen .volunteers-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.mpc-volunteers-screen .volunteers-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.mpc-volunteers-screen .volunteers-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--page-bg) 64%, var(--surface));
}

.mpc-volunteers-screen .volunteers-seg button {
  border: 0;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 84%, var(--text-faint));
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.mpc-volunteers-screen .volunteers-seg .is-active {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
}

.mpc-volunteers-screen .volunteers-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mpc-volunteers-screen .volunteers-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.mpc-volunteers-screen .volunteers-btn.is-primary {
  border-color: var(--volunteers);
  background: var(--volunteers);
  color: var(--surface);
}

.mpc-volunteers-screen .volunteers-btn.is-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
}

.mpc-volunteers-screen .volunteers-btn.is-small {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.mpc-volunteers-screen .volunteers-tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.mpc-volunteers-screen .volunteers-tabs button {
  position: relative;
  border: 0;
  padding: 10px 14px;
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text-faint));
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mpc-volunteers-screen .volunteers-tabs .is-active {
  color: var(--text-strong);
  font-weight: 600;
}

.mpc-volunteers-screen .volunteers-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--volunteers);
}

.mpc-volunteers-screen .volunteers-panel {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mpc-volunteers-screen .volunteers-panel.is-table {
  overflow: visible;
}

.mpc-volunteers-screen .volunteers-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.mpc-volunteers-screen .volunteers-panel-head h2 {
  margin: 0;
  color: var(--text-strong);
  font: 700 15px/1.15 var(--font-display);
}

.mpc-volunteers-screen .volunteers-panel-head .volunteers-count {
  color: var(--text-muted);
  font-size: 12px;
}

.mpc-volunteers-screen .volunteers-task {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  border-left: 3px solid transparent;
}

.mpc-volunteers-screen .volunteers-task:last-child {
  border-bottom: 0;
}

.mpc-volunteers-screen .volunteers-task:hover {
  background: var(--hover);
}

.mpc-volunteers-screen .volunteers-task.is-warn {
  border-left-color: var(--warning);
}

.mpc-volunteers-screen .volunteers-task.is-info {
  border-left-color: var(--line);
}

.mpc-volunteers-screen .volunteers-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--line);
}

.mpc-volunteers-screen .volunteers-dot.is-volunteers {
  background: var(--volunteers);
}

.mpc-volunteers-screen .volunteers-dot.is-programs {
  background: var(--programs);
}

.mpc-volunteers-screen .volunteers-text {
  flex: 1 1 auto;
  min-width: 0;
}

.mpc-volunteers-screen .volunteers-task-title {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-volunteers-screen .volunteers-task-sub {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-volunteers-screen .volunteers-flag {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--hover);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.mpc-volunteers-screen .volunteers-flag.is-warn {
  color: color-mix(in srgb, var(--volunteers) 78%, var(--text-strong));
  background: var(--warning-tint);
}

.mpc-volunteers-screen .volunteers-go {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--volunteers);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.mpc-volunteers-screen .volunteers-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.mpc-volunteers-screen .volunteers-kpi {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 16px;
  background: var(--surface);
}

.mpc-volunteers-screen .volunteers-kpi-label {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-volunteers-screen .volunteers-kpi-value {
  margin-top: 6px;
  color: var(--text-strong);
  font: 700 24px/1 var(--font-display);
  letter-spacing: 0;
}

.mpc-volunteers-screen .volunteers-kpi-note {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.mpc-volunteers-screen .volunteers-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
}

.mpc-volunteers-screen .volunteers-shift {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-volunteers-screen .volunteers-shift:last-child {
  border-bottom: 0;
}

.mpc-volunteers-screen .volunteers-shift.has-gap {
  background: var(--warning-tint);
}

.mpc-volunteers-screen .volunteers-shift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mpc-volunteers-screen .volunteers-shift-name {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
}

.mpc-volunteers-screen .volunteers-shift-when {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.mpc-volunteers-screen .volunteers-shift-right {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mpc-volunteers-screen .volunteers-fillcount {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mpc-volunteers-screen .volunteers-fillcount.is-short {
  color: color-mix(in srgb, var(--volunteers) 78%, var(--text-strong));
}

.mpc-volunteers-screen .volunteers-fillcount.is-full {
  color: var(--success);
}

.mpc-volunteers-screen .volunteers-track {
  width: 88px;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--hairline);
}

.mpc-volunteers-screen .volunteers-track i {
  display: block;
  height: 100%;
  background: var(--volunteers);
}

.mpc-volunteers-screen .volunteers-track i.is-short {
  background: var(--warning);
}

.mpc-volunteers-screen .volunteers-track i.is-full {
  background: var(--success);
}

.mpc-volunteers-screen .volunteers-signup {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
}

.mpc-volunteers-screen .volunteers-signup:last-child {
  border-bottom: 0;
}

.mpc-volunteers-screen .volunteers-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--volunteers-tint);
  color: color-mix(in srgb, var(--volunteers) 78%, var(--text-strong));
  font-size: 11px;
  font-weight: 700;
}

.mpc-volunteers-screen .volunteers-signup-info {
  flex: 1 1 auto;
  min-width: 0;
}

.mpc-volunteers-screen .volunteers-signup-name {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-volunteers-screen .volunteers-signup-extra {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpc-volunteers-screen .volunteers-empty {
  padding: 18px 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mpc-volunteers-screen .volunteers-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.mpc-volunteers-screen .volunteers-public-device {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--hover) 72%, var(--surface));
}

.mpc-volunteers-screen .volunteers-pubbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.mpc-volunteers-screen .volunteers-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  font: 700 13px/1 var(--font-display);
}

.mpc-volunteers-screen .volunteers-pub-name {
  color: var(--navy);
  font: 700 15px/1.1 var(--font-display);
}

.mpc-volunteers-screen .volunteers-pub-right {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}

.mpc-volunteers-screen .volunteers-pubwrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 30px 24px 40px;
}

.mpc-volunteers-screen .volunteers-opp-hero,
.mpc-volunteers-screen .volunteers-signcard {
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: var(--surface);
}

.mpc-volunteers-screen .volunteers-opp-hero {
  overflow: hidden;
  margin-bottom: 16px;
}

.mpc-volunteers-screen .volunteers-opp-banner {
  height: 84px;
  background: linear-gradient(120deg, var(--gold), var(--volunteers));
}

.mpc-volunteers-screen .volunteers-opp-inner {
  padding: 20px 22px;
}

.mpc-volunteers-screen .volunteers-opp-kick {
  color: var(--volunteers);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mpc-volunteers-screen .volunteers-opp-title {
  margin-top: 6px;
  color: var(--text-strong);
  font: 700 22px/1.15 var(--font-display);
}

.mpc-volunteers-screen .volunteers-opp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.mpc-volunteers-screen .volunteers-opp-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
}

.mpc-volunteers-screen .volunteers-opp-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--volunteers);
  stroke-width: 2;
}

.mpc-volunteers-screen .volunteers-opp-desc {
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.mpc-volunteers-screen .volunteers-spots {
  margin-top: 14px;
  color: color-mix(in srgb, var(--volunteers) 78%, var(--text-strong));
  font-size: 13px;
  font-weight: 600;
}

.mpc-volunteers-screen .volunteers-signcard {
  padding: 22px;
}

.mpc-volunteers-screen .volunteers-signcard h3 {
  margin: 0 0 4px;
  color: var(--text-strong);
  font: 700 17px/1.2 var(--font-display);
}

.mpc-volunteers-screen .volunteers-signcard-sub {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.mpc-volunteers-screen .volunteers-field {
  margin-bottom: 13px;
}

.mpc-volunteers-screen .volunteers-field label {
  display: block;
  margin-bottom: 6px;
  color: color-mix(in srgb, var(--text) 84%, var(--text-muted));
  font-size: 13px;
  font-weight: 600;
}

.mpc-volunteers-screen .volunteers-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 14px;
}

.mpc-volunteers-screen .volunteers-input:focus {
  outline: none;
  border-color: var(--volunteers);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--volunteers) 14%, transparent);
}

.mpc-volunteers-screen .volunteers-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mpc-volunteers-screen .volunteers-agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 6px 0 16px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--volunteers-tint) 70%, var(--line));
  border-radius: 10px;
  background: var(--volunteers-tint);
}

.mpc-volunteers-screen .volunteers-agree svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--volunteers);
  stroke-width: 2;
}

.mpc-volunteers-screen .volunteers-agree-text {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
}

.mpc-volunteers-screen .volunteers-agree-text b {
  color: var(--text-strong);
}

.mpc-volunteers-screen .volunteers-btn.is-big {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
}

.mpc-volunteers-screen .mpc-data-table__bulk {
  background: var(--volunteers-tint);
}

.mpc-volunteers-screen .mpc-data-table tbody tr:hover .mpc-data-table__kebab,
.mpc-volunteers-screen .mpc-data-table__kebab:focus-visible {
  background: var(--volunteers-tint);
}

.mpc-volunteers-screen .mpc-data-table__page.is-active {
  border-color: var(--volunteers);
  background: var(--volunteers);
}

@media (max-width: 900px) {
  .mpc-volunteers-screen .volunteers-head {
    flex-direction: column;
  }

  .mpc-volunteers-screen .volunteers-actions {
    width: 100%;
    align-items: stretch;
  }

  .mpc-volunteers-screen .volunteers-action-row,
  .mpc-volunteers-screen .volunteers-seg {
    justify-content: flex-start;
  }

  .mpc-volunteers-screen .volunteers-tabs {
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .mpc-volunteers-screen .volunteers-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mpc-volunteers-screen .volunteers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .mpc-volunteers-screen .volunteers-head {
    margin-bottom: 14px;
  }

  .mpc-volunteers-screen .volunteers-title {
    font-size: 25px;
  }

  .mpc-volunteers-screen .volunteers-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mpc-volunteers-screen .volunteers-btn {
    width: 100%;
  }

  .mpc-volunteers-screen .volunteers-kpis {
    grid-template-columns: 1fr;
  }

  .mpc-volunteers-screen .volunteers-task,
  .mpc-volunteers-screen .volunteers-shift-top,
  .mpc-volunteers-screen .volunteers-signup {
    align-items: flex-start;
  }

  .mpc-volunteers-screen .volunteers-task,
  .mpc-volunteers-screen .volunteers-shift-top {
    flex-direction: column;
  }

  .mpc-volunteers-screen .volunteers-shift-right {
    width: 100%;
    justify-content: space-between;
  }

  .mpc-volunteers-screen .volunteers-track {
    flex: 1 1 auto;
  }

  .mpc-volunteers-screen .volunteers-task-title,
  .mpc-volunteers-screen .volunteers-task-sub,
  .mpc-volunteers-screen .volunteers-signup-name,
  .mpc-volunteers-screen .volunteers-signup-extra {
    white-space: normal;
  }

  .mpc-volunteers-screen .volunteers-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mpc-volunteers-screen .volunteers-pubbar {
    padding: 14px 16px;
  }

  .mpc-volunteers-screen .volunteers-pubwrap {
    padding: 24px 14px 32px;
  }
}
