/* Scholarship admin dashboard styles */

.scholarship-chart-card .card-header {
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
  min-height: 72px;
  align-items: center;
}

.scholarship-chart-card .card-body {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scholarship-chart-card .chartkick {
  width: 100%;
}

.dashboard-empty-state {
  width: 100%;
  text-align: center;
  padding: 1.25rem;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
  background: #f8fafc;
}

/* Stat card hover effects */
.stat-card-link .card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

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

/* Blurred draft applicant names */
.draft-blurred {
  filter: blur(5px);
  user-select: none;
  transition: filter 0.2s ease;
}

.draft-blurred:hover {
  filter: blur(3px);
}
.scholarship-edit-page .card-body {
  overflow-x: hidden;
}

#application-step-navigation .list-group-item {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

#application-step-navigation .step-navigation__item {
  border-left: 3px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#application-step-navigation .step-navigation__label {
  font-weight: 500;
  color: #4b5563;
}

#application-step-navigation .step-navigation__item:hover .step-navigation__label {
  color: #1f2937;
}

#application-step-navigation .step-navigation__item--current {
  background: rgba(32, 107, 196, 0.08);
  border-left-color: #206bc4;
}

#application-step-navigation .step-navigation__item--current:hover {
  background: rgba(32, 107, 196, 0.12);
}

#application-step-navigation .step-navigation__item--current .step-navigation__label {
  color: #1f2937;
  font-weight: 600;
}

#application-step-navigation .step-navigation__item--completed .step-navigation__label {
  color: #374151;
}

#application-step-navigation .step-navigation__item--locked .step-navigation__label,
#application-step-navigation .step-navigation__item.disabled .step-navigation__label {
  color: #9ca3af;
}

#application-step-navigation .step-navigation__marker {
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#application-step-navigation .step-navigation__marker--current {
  font-size: 0.9rem;
  font-weight: 800;
}

/* ── Form navigation bar ── */
.form-nav-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.scholarship-edit-page .form-nav-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
}

.form-nav-primary-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.scholarship-edit-page .form-nav-primary-group {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.form-nav-secondary-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.scholarship-edit-page .form-nav-secondary-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
  align-items: center;
}

.form-nav-actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

.form-nav-actions .btn-step-nav {
  min-width: 138px;
}

.form-nav-primary-group .btn-step-next {
  margin-left: 0 !important;
}

.scholarship-step-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.scholarship-step-toggle__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex-wrap: wrap;
}

.scholarship-step-toggle__icon,
.scholarship-step-toggle__chevron {
  flex: 0 0 auto;
}

.scholarship-submission-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  border-left-width: 3px;
}

.scholarship-submission-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(32, 107, 196, 0.12);
  color: #206bc4;
  flex: 0 0 auto;
  font-size: 1rem;
}

.scholarship-submission-notice__body {
  min-width: 0;
}

.scholarship-submission-notice__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.2rem;
}

.scholarship-submission-notice__message {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.scholarship-submission-notice__pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.scholarship-submission-notice__email {
  font-weight: 600;
  color: #1e3a8a;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .scholarship-submission-notice {
    gap: 0.75rem;
  }

  .scholarship-submission-notice__title {
    font-size: 0.9rem;
  }

  .scholarship-submission-notice__message {
    font-size: 0.875rem;
  }

  .scholarship-submission-notice__pill {
    margin: 0.25rem 0;
  }

  .scholarship-show-page .page-header .container-xl,
  .scholarship-edit-page .page-header .container-xl,
  .scholarship-show-page .page-body .container-xl,
  .scholarship-edit-page .page-body .container-xl {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .scholarship-show-page .page-title,
  .scholarship-edit-page .page-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .scholarship-show-page .page-header .col-auto,
  .scholarship-edit-page .page-header .col-auto {
    width: 100%;
  }

  .scholarship-show-page .scholarship-show-header {
    row-gap: 0.9rem;
  }

  .scholarship-show-page .scholarship-show-header-copy {
    min-width: 0;
  }

  .scholarship-show-page .scholarship-show-tracking {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.95rem;
  }

  .scholarship-show-page .scholarship-show-tracking-label {
    display: block;
  }

  .scholarship-show-page .scholarship-show-tracking-value {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .scholarship-show-page .scholarship-show-header-actions-wrap {
    width: 100%;
  }

  .scholarship-show-page .scholarship-show-header-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
  }

  .scholarship-show-page .scholarship-show-header-actions > * {
    margin: 0 !important;
    width: 100%;
  }

  .scholarship-show-page .scholarship-show-header-actions .btn,
  .scholarship-show-page .scholarship-show-header-actions .button_to,
  .scholarship-show-page .scholarship-show-header-actions .button_to .btn {
    width: 100%;
  }

  .scholarship-show-page .scholarship-show-header-actions .btn {
    min-height: 46px;
    white-space: normal;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    padding: 0.7rem 0.95rem;
  }

  .scholarship-edit-page .page-header .badge {
    margin-top: 0.5rem;
  }

  .scholarship-step-toggle {
    min-height: 46px;
    padding: 0.7rem 0.95rem;
    text-align: left;
  }

  .scholarship-step-toggle__copy {
    justify-content: flex-start;
  }

  #application-step-navigation-panel {
    margin-top: 0.65rem;
  }

  #application-step-navigation {
    border-radius: 0.6rem;
  }

  #application-step-navigation .card-header {
    padding: 0.75rem 0.9rem;
  }

  #application-step-navigation .card-title {
    font-size: 0.95rem;
  }

  #application-step-navigation .list-group {
    max-height: 48vh;
    overflow-y: auto;
  }

  #application-step-navigation .list-group-item {
    padding: 0.72rem 0.85rem;
  }

  #application-step-navigation .step-navigation__marker {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.8rem;
  }

  #application-step-navigation .step-navigation__marker--current {
    font-size: 0.85rem;
  }

  .scholarship-edit-page .card-header,
  .scholarship-edit-page .card-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .scholarship-edit-page .card-title {
    font-size: 1rem;
  }

  .scholarship-edit-page .form-control,
  .scholarship-edit-page .form-select,
  .scholarship-edit-page input[type='date'],
  .scholarship-edit-page textarea {
    font-size: 16px;
  }

  .scholarship-edit-page input[type='date'] {
    min-height: 48px;
  }

  .scholarship-edit-page .row {
    --tblr-gutter-x: 0.75rem;
  }

  /* Sticky bottom bar on mobile */
  .scholarship-edit-page .form-nav-actions {
    position: sticky;
    bottom: 0;
    z-index: 25;
    margin-top: 2rem;
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    margin-bottom: -0.9rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e5e7eb;
    backdrop-filter: blur(4px);
    gap: 0.5rem;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  .scholarship-edit-page .form-nav-actions.form-nav-actions-final {
    position: static;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .scholarship-edit-page .form-nav-primary-group {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    flex-wrap: wrap !important;
  }

  .scholarship-edit-page .form-nav-secondary-group {
    display: block !important;
    flex: 1 1 100% !important;
    width: 100%;
    margin-left: 0 !important;
  }

  .scholarship-edit-page .form-nav-actions .btn {
    font-size: 0.85rem;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    width: 100%;
    white-space: normal;
    line-height: 1.2;
  }

  .scholarship-edit-page .form-nav-actions .btn-step-nav {
    min-width: 0;
  }

  .scholarship-edit-page .form-nav-primary-group .btn-step-submit {
    grid-column: 1 / -1;
  }

  .selected-files-preview .border {
    padding: 0.6rem !important;
  }

  .selected-files-preview .text-truncate {
    max-width: 100% !important;
  }
}

/* ── Extra small (< 576px) ── */
@media (max-width: 575.98px) {
  .scholarship-show-page .page-header .d-flex.align-items-center,
  .scholarship-edit-page .page-header .d-flex.align-items-center {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .scholarship-show-page .progress.flex-fill,
  .scholarship-edit-page .progress.flex-fill {
    min-width: 0;
  }

  .scholarship-show-page .scholarship-show-header-actions {
    gap: 0.65rem;
  }

  .scholarship-show-page .scholarship-show-header-actions .btn {
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
  }

  .form-nav-actions .btn {
    font-size: 0.84rem;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
  }

  .form-nav-actions .btn-step-nav {
    min-width: 0;
  }
}
/* ============================================================
   MSG PANEL — outer container
   ============================================================ */

/* Public panel — match sp-card design language */
.msg-panel--public.card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
}

.msg-panel--public .msg-panel__card-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.msg-panel__header-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.msg-panel--public .card-body.msg-panel__body {
  padding: 1.125rem 1.25rem 1.25rem;
}

.msg-panel__header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1a4f8a;
}

.msg-panel--public .card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.msg-panel__header-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #64748b;
  max-width: 52rem;
}

.msg-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 0.25rem;
}

/* ── Intro banner ──────────────────────────────────────────── */
.msg-panel__banner {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding: 0.625rem 0.875rem;
  border-left: 3px solid;
  border-radius: 0 4px 4px 0;
}

.msg-panel__banner--public  { background: #eff6ff; border-left-color: #1a4f8a; }
.msg-panel__banner--admin   { background: #f0fdf4; border-left-color: #15803d; }

.msg-panel__banner-icon {
  flex-shrink: 0;
  font-size: 0.9375rem;
  margin-top: 0.1rem;
  color: #1a4f8a;
}
.msg-panel__banner--admin .msg-panel__banner-icon { color: #15803d; }

.msg-panel__banner-text {
  margin: 0;
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.55;
}

/* ── Disabled notice ───────────────────────────────────────── */
.msg-panel__disabled {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #64748b;
}

.msg-panel__disabled-icon { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   MSG THREAD — scrollable message list
   ============================================================ */

.msg-thread {
  display: block;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.125rem 0;
}

.msg-thread::-webkit-scrollbar { width: 4px; }
.msg-thread::-webkit-scrollbar-track { background: transparent; }
.msg-thread::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }
.msg-thread::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── Empty state ───────────────────────────────────────────── */
.msg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.msg-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 0.375rem;
}

.msg-empty__heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.msg-empty__sub {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  max-width: 32ch;
}

/* ============================================================
   MSG ITEM — government case feed
   Applicant: blue left-border, white bg, left-aligned header
   Staff:     green right-border, tinted bg, right-aligned header
   ============================================================ */

.msg-item {
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.msg-item:last-child { margin-bottom: 0; }

/* Applicant — left accent, white, left-aligned */
.msg-item--applicant {
  border-left: 3px solid #1a4f8a;
  border-radius: 0 6px 6px 0;
  background: #fff;
  width: 82%;
  margin-left: 0;
  margin-right: auto;
}

/* Staff — right accent, tinted, right-aligned */
.msg-item--staff {
  border-right: 3px solid #15803d;
  border-radius: 6px 0 0 6px;
  background: #f8fdf9;
  width: 82%;
  margin-left: auto;
  margin-right: 0;
}

/* ── Header row ──────────────────────────────────────────────── */

.msg-item__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid #e9f0f8;
}

.msg-item--applicant .msg-item__header {
  background: #f0f6ff;
  flex-direction: row;          /* avatar → name → badge → time */
}

.msg-item--staff .msg-item__header {
  background: #ecfdf5;
  flex-direction: row-reverse;  /* time ← name ← badge ← avatar */
}

/* time stays right for applicant, left for staff */
.msg-item--staff .msg-item__time { margin-left: 0; margin-right: auto; }

.msg-item__avatar {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  user-select: none;
}

.msg-item__avatar--applicant { background: #bfdbfe; color: #1e3a8a; }
.msg-item__avatar--staff     { background: #a7f3d0; color: #065f46; }

.msg-item__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

.msg-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.375rem;
  border-radius: 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.msg-item__badge--applicant { background: #bfdbfe; color: #1e3a8a; }
.msg-item__badge--staff     { background: #a7f3d0; color: #065f46; }

.msg-item__time {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-left: auto;
  white-space: nowrap;
}

/* ── Body ────────────────────────────────────────────────────── */

.msg-item__body {
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.65;
}

.msg-item--staff .msg-item__body {
  color: #1e3a2f;
  text-align: right;
}

.msg-item--staff .msg-item__body > div,
.msg-item--staff .msg-item__body p {
  text-align: inherit;
}

.msg-item__body > div p:last-child,
.msg-item__body p:last-child { margin-bottom: 0; }

/* ============================================================
   Legacy bubble classes — kept for admin views that may still
   use the old partial; safely no-op if not rendered
   ============================================================ */

.msg-bubble-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.msg-bubble-row--staff { flex-direction: row-reverse; }
.msg-avatar {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; user-select: none;
}
.msg-avatar--applicant { background: #dbeafe; color: #1d4ed8; }
.msg-avatar--staff     { background: #dcfce7; color: #065f46; }
.msg-bubble-wrap { display: flex; flex-direction: column; gap: 0.25rem; max-width: min(85%, 600px); }
.msg-bubble-row--staff .msg-bubble-wrap { align-items: flex-end; }
.msg-bubble-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.msg-bubble-row--staff .msg-bubble-meta { flex-direction: row-reverse; }
.msg-bubble-meta__name { font-size: 0.8125rem; font-weight: 600; color: #111827; }
.msg-bubble-meta__badge {
  display: inline-flex; align-items: center; padding: 0.125rem 0.45rem;
  border-radius: 3px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.msg-bubble-meta__badge--applicant { background: #dbeafe; color: #1e40af; }
.msg-bubble-meta__badge--staff     { background: #dcfce7; color: #064e3b; }
.msg-bubble-meta__time { font-size: 0.6875rem; color: #9ca3af; }
.msg-bubble {
  padding: 0.75rem 1rem; border-radius: 6px;
  font-size: 0.875rem; line-height: 1.6; color: #1f2937; word-break: break-word;
}
.msg-bubble--applicant { background: #eff6ff; border: 1px solid #bfdbfe; }
.msg-bubble--staff     { background: #f0fdf4; border: 1px solid #bbf7d0; }
.msg-bubble > div, .msg-bubble p:last-child { margin-bottom: 0; }

/* ============================================================
   MSG COMPOSER
   ============================================================ */

.msg-composer {
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid #e2e8f0;
}

.msg-composer__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.msg-composer__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0;
}

.msg-composer__label .ti { font-size: 0.875rem; color: #64748b; }

.msg-composer__textarea {
  border-radius: 6px !important;
  border-color: #cbd5e1 !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.msg-composer__textarea:focus {
  border-color: #1a4f8a !important;
  box-shadow: 0 0 0 3px rgba(26, 79, 138, 0.1) !important;
  outline: none;
}

.msg-composer__counter-row {
  display: flex;
  justify-content: flex-end;
}

.msg-composer__counter {
  font-size: 0.6875rem;
  color: #94a3b8;
  transition: color 0.15s;
}

.msg-composer__counter--warning { color: #d97706; }
.msg-composer__counter--danger  { color: #dc2626; font-weight: 600; }

.msg-composer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.msg-composer__hint {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 42ch;
}

.msg-composer__hint .ti { flex-shrink: 0; margin-top: 0.1rem; font-size: 0.875rem; }

.msg-composer__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}
.scholarship-edit-page .requested-edit-highlight {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.95rem 0.95rem 0.8rem;
  border: 1px solid rgba(245, 159, 0, 0.38);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 248, 219, 0.92), rgba(255, 252, 241, 0.98));
  box-shadow: 0 10px 24px rgba(245, 159, 0, 0.08);
}

.scholarship-edit-page .requested-edit-highlight .form-label,
.scholarship-edit-page .requested-edit-highlight legend,
.scholarship-edit-page .requested-edit-highlight .form-check-label,
.scholarship-edit-page .requested-edit-highlight > label {
  color: #8a5800;
  font-weight: 700;
}

.scholarship-edit-page .requested-edit-highlight .form-control,
.scholarship-edit-page .requested-edit-highlight .form-select,
.scholarship-edit-page .requested-edit-highlight textarea,
.scholarship-edit-page .requested-edit-highlight input[type="date"] {
  border-color: rgba(245, 159, 0, 0.42);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(245, 159, 0, 0.04);
}

.scholarship-edit-page .requested-edit-highlight .form-control:focus,
.scholarship-edit-page .requested-edit-highlight .form-select:focus,
.scholarship-edit-page .requested-edit-highlight textarea:focus,
.scholarship-edit-page .requested-edit-highlight input[type="date"]:focus {
  border-color: rgba(245, 159, 0, 0.9);
  box-shadow: 0 0 0 0.18rem rgba(245, 159, 0, 0.18);
}

.scholarship-edit-page .requested-edit-highlight__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 159, 0, 0.16);
  color: #9a5f00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scholarship-edit-page .requested-edit-highlight__badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.scholarship-edit-page .requested-edit-highlight.requested-edit-highlight--nested {
  padding-top: 1rem;
}

@media (max-width: 767.98px) {
  .scholarship-edit-page .requested-edit-highlight {
    padding: 0.85rem 0.8rem 0.75rem;
    border-radius: 0.8rem;
  }

  .scholarship-edit-page .requested-edit-highlight__badge {
    font-size: 0.68rem;
  }
}
/* ============================================================
   Scholarship Applicant Tracking — Government Portal
   ODG Montserrat · Institutional design language
   ============================================================ */

/* ── Page ────────────────────────────────────────────────────── */
.sp-page { background: #f1f4f8; }

.sp-page .page-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}

.sp-header-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.sp-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sp-tracking-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.sp-tracking-ref code {
  font-family: "SF Mono", "Fira Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a4f8a;
  background: none;
  border: none;
  padding: 0;
}

/* ── Status notice ───────────────────────────────────────────── */
.sp-status-notice {
  padding: 1rem 1.25rem;
  border-left: 3px solid;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}

.sp-status-notice--info    { border-left-color: #1a4f8a; background: #eff6ff; }
.sp-status-notice--success { border-left-color: #15803d; background: #f0fdf4; }
.sp-status-notice--warning { border-left-color: #d97706; background: #fffbeb; }
.sp-status-notice--danger  { border-left-color: #dc2626; background: #fff5f5; }
.sp-status-notice--neutral { border-left-color: #94a3b8; background: #f8fafc; }

.sp-status-notice__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.375rem;
}

.sp-status-notice__label .ti { font-size: 1.0625rem; flex-shrink: 0; }
.sp-status-notice--info    .sp-status-notice__label .ti { color: #1a4f8a; }
.sp-status-notice--success .sp-status-notice__label .ti { color: #15803d; }
.sp-status-notice--warning .sp-status-notice__label .ti { color: #d97706; }
.sp-status-notice--danger  .sp-status-notice__label .ti { color: #dc2626; }
.sp-status-notice--neutral .sp-status-notice__label .ti { color: #64748b; }

.sp-status-notice__body {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* ── Action required notice ───────────────────────────────────── */
.sp-action-notice {
  padding: 1rem 1.25rem;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}

.sp-action-notice__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 0.5rem;
}

.sp-action-notice__note {
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.sp-action-notice__list {
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 0.625rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.sp-action-notice__meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* ── Content cards ───────────────────────────────────────────── */
.sp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.875rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sp-card__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sp-card__header-icon {
  font-size: 1rem;
  color: #1a4f8a;
  flex-shrink: 0;
}

.sp-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  letter-spacing: 0;
}

.sp-card__body { padding: 1.125rem 1.25rem; }

/* ── Field grid ──────────────────────────────────────────────── */
.sp-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}

.sp-fields--2 { grid-template-columns: repeat(2, 1fr); }
.sp-fields--1 { grid-template-columns: 1fr; }
.sp-field--span2 { grid-column: span 2; }
.sp-field--span3 { grid-column: 1 / -1; }

.sp-field__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.sp-field__value {
  font-size: 0.875rem;
  font-weight: 400;
  color: #1e293b;
  line-height: 1.5;
}

.sp-field__value--em    { font-weight: 600; color: #0f172a; }
.sp-field__value--muted { color: #94a3b8; }

/* ── Section sub-divider ──────────────────────────────────────── */
.sp-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1rem 0;
}

.sp-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.625rem;
}

/* ── Table ───────────────────────────────────────────────────── */
.sp-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}

.sp-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sp-table td {
  padding: 0.625rem 0.75rem;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  line-height: 1.5;
}

.sp-table tr:last-child td { border-bottom: none; }
.sp-table td small { color: #94a3b8; display: block; font-size: 0.75rem; }

/* ── Entry rows (employment / community) ────────────────────── */
.sp-entry {
  padding: 0.875rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.sp-entry:last-child { border-bottom: none; padding-bottom: 0; }
.sp-entry:first-child { padding-top: 0; }

.sp-entry__title { font-size: 0.875rem; font-weight: 600; color: #0f172a; margin: 0 0 0.125rem; }
.sp-entry__sub   { font-size: 0.8125rem; color: #64748b; margin: 0 0 0.5rem; }
.sp-entry__body  { font-size: 0.8125rem; color: #475569; line-height: 1.65; }
.sp-entry__body p:last-child { margin-bottom: 0; }

/* ── Financial rows ──────────────────────────────────────────── */
.sp-cost {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.sp-cost:last-child { border-bottom: none; }

.sp-cost--total {
  font-weight: 600;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  border-bottom: none;
  padding-top: 0.625rem;
  margin-top: 0.125rem;
}

.sp-cost--requested {
  margin-top: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: #eff6ff;
  border-left: 3px solid #1a4f8a;
  font-weight: 600;
  color: #1e3a5f;
  border-bottom: none;
  border-radius: 0 4px 4px 0;
}

.sp-cost__amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}

/* ── Personal statement ──────────────────────────────────────── */
.sp-wordcount {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.625rem;
  display: block;
}

.sp-statement {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.8;
}
.sp-statement p:last-child { margin-bottom: 0; }

/* ── Documents ───────────────────────────────────────────────── */
.sp-doc-group { margin-bottom: 0.875rem; }
.sp-doc-group:last-child { margin-bottom: 0; }

.sp-doc-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.375rem;
}

.sp-doc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}
.sp-doc-item:last-child { border-bottom: none; }
.sp-doc-item a { color: #1a4f8a; text-decoration: none; font-weight: 500; }
.sp-doc-item a:hover { text-decoration: underline; }
.sp-doc-size { font-size: 0.75rem; color: #94a3b8; margin-left: auto; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sp-status-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.875rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Status badge */
.sp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sp-status-badge--info    { background: #dbeafe; color: #1e40af; }
.sp-status-badge--success { background: #dcfce7; color: #166534; }
.sp-status-badge--warning { background: #fef3c7; color: #92400e; }
.sp-status-badge--danger  { background: #fee2e2; color: #991b1b; }
.sp-status-badge--neutral { background: #f1f5f9; color: #475569; }

.sp-status-card__head {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.sp-status-card__desc {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

/* Application progress steps */
.sp-steps {
  padding: 0;
  list-style: none;
  margin: 0;
}

.sp-step {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 1.125rem;
  border-bottom: 1px solid #f1f5f9;
}
.sp-step:last-child { border-bottom: none; }

.sp-step__marker {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

.sp-step__marker--done    { background: #dcfce7; color: #166534; }
.sp-step__marker--active  { background: #1a4f8a; color: #fff; }
.sp-step__marker--pending { background: #f1f5f9; color: #94a3b8; }

.sp-step__body {}

.sp-step__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin: 0;
}
.sp-step__label--muted  { color: #94a3b8; font-weight: 400; }
.sp-step__label--active { color: #1a4f8a; }

.sp-step__date {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.125rem 0 0;
}

/* ── Key dates (inside status card) ─────────────────────────── */
.sp-key-dates {
  padding: 0.875rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}

.sp-key-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.sp-key-date__label { color: #64748b; }
.sp-key-date__value { color: #1e293b; font-weight: 600; font-size: 0.8125rem; white-space: nowrap; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sp-fields { grid-template-columns: repeat(2, 1fr); }
  .sp-field--span2, .sp-field--span3 { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .sp-fields { grid-template-columns: 1fr; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
