.sp-workspace { color: #123b62; }
.sp-workspace button {
  min-height: 40px; border: 1px solid #bed7e8; border-radius: 9px;
  background: #fff; color: #075e93; padding: 8px 13px; font: inherit; font-weight: 650; cursor: pointer;
}
.sp-workspace button.sp-primary, .sp-form-actions button[type="submit"] {
  background: #0588c3; color: #fff; border-color: #0588c3;
}
.sp-workspace button:disabled { opacity: .55; cursor: default; }
.sp-form, .sp-list {
  background: #fff; border: 1px solid #cfe2ed; border-radius: 16px;
  padding: 22px; margin: 18px 0; box-shadow: 0 8px 24px #0d456010;
}
.sp-workspace [data-sp-create] { flex: 0 0 auto; }
.sp-form { scroll-margin-top: 92px; }
.sp-form h2, .sp-list h2 { font-size: 18px; margin: 0 0 16px; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sp-stage-field { max-width: 210px; margin-bottom: 14px; }
.sp-recipient { display: grid; gap: 7px; margin-bottom: 14px; position: relative; font-size: 13px; }
.sp-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 650; }
.sp-form input, .sp-form select, .sp-form textarea, .sp-list [data-sp-filter] {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #c3dae9; border-radius: 9px;
  background: #fff; padding: 9px 12px; color: #123b62; font: inherit;
}
.sp-volunteer-results {
  position: absolute; z-index: 5; inset: calc(100% + 4px) 0 auto;
  max-height: 260px; overflow-y: auto; padding: 4px 0;
  background: #fff; border: 1px solid #c3dae9; border-radius: 9px; box-shadow: 0 8px 24px #163d5329;
}
.sp-volunteer-results [role="option"] { padding: 9px 12px; cursor: pointer; overflow-wrap: anywhere; }
.sp-volunteer-results [role="option"]:hover, .sp-volunteer-results [aria-selected="true"] { background: #e8f5fd; }
.sp-volunteer-results small { display: block; color: #617b90; }
.sp-no-volunteers { margin: 0; color: #617b90; }
.sp-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sp-form fieldset { min-width: 0; margin: 20px 0 0; padding: 14px; border: 1px solid #cfe2ed; border-radius: 12px; }
.sp-form legend { padding: 0 5px; font-size: 15px; font-weight: 700; }
.sp-form [hidden] { display: none; }
.sp-reason-hint { margin: 0 0 10px; font-size: 13px; color: #526e84; }
.sp-reason-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 10px; align-items: start; margin-bottom: 10px; }
.sp-reason-row textarea { resize: vertical; }
.sp-reason-row [data-sp-remove-row] { color: #a02525; font-size: 16px; }
.sp-form .sp-approval { flex-direction: row; align-items: flex-start; margin-top: 14px; }
.sp-form .sp-approval input { width: auto; min-height: 0; margin: 3px 0 0; }
.sp-appendix-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 42px;
  align-items: start; gap: 10px; margin-bottom: 12px;
}
.sp-appendix-row input, .sp-appendix-row select, .sp-appendix-row textarea { height: 46px; min-height: 46px; }
.sp-appendix-row textarea { resize: vertical; }
.sp-appendix-row [data-sp-remove-row] {
  color: #a02525; align-self: stretch; height: 46px; margin-top: 25px; font-size: 16px;
}
.sp-list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.sp-list .sp-list-tools input { flex: 0 1 280px; min-height: 40px; /* Matches the stage buttons. */ }
.sp-stage-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-stage-tabs [aria-pressed="true"] { color: #055981; border-color: #5eb6dd; background: #e5f4fc; }
.sp-card { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid #e0edf4; padding: 14px 0; }
.sp-card > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.sp-card strong, .sp-card span, .sp-card small { display: block; }
.sp-card strong { font-size: 15px; }
.sp-card span, .sp-card small { color: #617b90; font-size: 12px; margin-top: 3px; }
.sp-card p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; font-size: 13px; }
.sp-card-side { display: flex; flex: 0 0 auto; align-items: center; align-self: flex-start; gap: 8px; }
.sp-card-side button { font-size: 13px; }
.sp-card-side .sp-status { margin: 0; border-radius: 99px; padding: 4px 9px; background: #edf3f8; color: #416176; font-weight: 700; }
.sp-card-side .sp-status.sent { background: #ffebeb; color: #ab2121; }
.sp-card-side .sp-status.cleared { background: #e2f5ed; color: #087e53; }
.sp-card-menu { position: relative; flex: 0 0 auto; }
.sp-card-menu[open] { z-index: 4; }
.sp-card-menu > summary {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #bed7e8;
  border-radius: 9px; color: #075e93; cursor: pointer; list-style: none; font-size: 22px; line-height: 1;
}
.sp-card-menu summary::-webkit-details-marker { display: none; }
.sp-card-menu-items {
  position: absolute; top: calc(100% + 5px); right: 0; display: grid; width: 216px;
  overflow: hidden; padding: 4px 0; background: #fff; border: 1px solid #cfe2ed; border-radius: 9px;
  box-shadow: 0 8px 24px #163d5329;
}
.sp-workspace .sp-card-menu-items button {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 0; background: transparent;
  text-align: left; white-space: nowrap;
}
.sp-export-options > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 40px;
  list-style: none; padding: 8px 12px; color: #075e93; font-size: 13px; font-weight: 650; cursor: pointer;
}
.sp-export-options > summary::after {
  content: ""; width: 6px; height: 6px; margin: 0 3px 4px 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.sp-export-options[open] > summary::after { margin: 4px 3px 0 0; transform: rotate(225deg); }
.sp-export-options > summary:hover, .sp-export-options > summary:focus-visible { background: #edf6fb; outline-offset: -3px; }
.sp-export-formats { display: grid; padding: 2px 0 4px; border-block: 1px solid #e0edf4; background: #f5fafd; }
.sp-card-menu-items .sp-output-marks {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 38px; background: #f5fafd;
  font-size: 12px; cursor: pointer;
}
.sp-output-marks input { margin: 0; accent-color: #0588c3; }
.sp-card-menu-items .sp-export-formats button { padding-left: 32px; }
.sp-card-menu-items button:focus-visible { outline-offset: -3px; }
.sp-card-menu-items button:hover, .sp-card-menu-items button:focus-visible { background: #edf6fb; }
.sp-card-menu-items [data-sp-action="delete"] { color: #a02525; }
.sp-error, .sp-notice { padding: 11px 14px; border-radius: 8px; margin: 14px 0; }
.sp-error { background: #ffebeb; color: #a02525; }
.sp-notice { background: #e2f5ed; color: #0d7553; }
.sp-empty { color: #617b90; }
@media (max-width: 760px) {
  .sp-form, .sp-list { padding: 16px; }
  .sp-appendix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #cfe2ed; padding-bottom: 12px; }
  .sp-appendix-row [data-sp-remove-row] { height: 36px; width: 42px; margin: 0; grid-column: 2; justify-self: end; }
  .sp-card { display: block; }
  .sp-card-side { justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-list .sp-list-tools input { flex: 1 0 100%; }
}
