.allocation-wrapper{
  margin-bottom:0px;
}

.allocation-heading{
  margin-left:5px;
  margin-bottom:-15px;
}

.allocation-controls{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:-15px;
}

.allocation-dropdown{
  min-width:220px;
  height:40px;
  padding:0 12px;
  border-radius:8px;
  border:1px solid #c9d0d8;
  background:#fff;
}

body.profile-status-panel-open {
  overflow: hidden;
}

.profile-status-clickable-row {
  cursor: pointer;
}

.profile-status-clickable-row:hover td {
  background: #fff7f7;
}

.profile-status-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 22, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.profile-status-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-status-slideover {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 100%;
  background: #fff;
  box-shadow: -10px 0 40px rgba(31, 20, 22, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
  z-index: 1010;
  display: flex;
  flex-direction: column;
}

.profile-status-slideover.open {
  transform: translateX(0);
}

/* ─── Panel Header ──────────────────────────────────────────────────────── */

.ps-header {
  background: linear-gradient(180deg, #8b0000 0%, #5c0000 100%);
  color: #fff;
  padding: 18px 20px 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 12px;
}

.ps-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ps-case-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 500;
}

.ps-case-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-close-btn {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .15s;
}

.ps-close-btn:hover {
  background: rgba(255,255,255,.24);
}

/* ─── Panel body ────────────────────────────────────────────────────────── */

.profile-status-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  background: #FBF1F1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-status-section {
  background: #fff;
  border: 1px solid #ECDADA;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(92,0,0,.03), 0 4px 12px rgba(92,0,0,.04);
}

.ps-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #8A7B7E;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.profile-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  background: #fff;
  border: 1px solid #ecdada;
  border-radius: 14px;
  padding: 18px;
}

.profile-status-item .label {
  font-size: 11.5px;
  color: #8a7b7e;
  margin-bottom: 4px;
}

.profile-status-item .value {
  font-size: 13.5px;
  color: #1f1416;
  font-weight: 600;
  word-break: break-word;
}

.profile-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-status-btn {
  border: 1px solid #ECDADA;
  background: #fff;
  color: #8B0000;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.profile-status-btn:hover,
.profile-status-btn.is-active {
  background: #8B0000;
  border-color: #8B0000;
  color: #fff;
}

.profile-status-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.profile-status-message {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #ECF8F1;
  color: #1F8F4D;
  font-size: 13px;
  font-weight: 600;
}

.profile-status-message.is-error {
  background: #FDECEC;
  color: #A30E0E;
}

.profile-status-slideover.is-loading .profile-status-body {
  opacity: 0.65;
}

/* ─── Candidate / Education info grid ────────────────────────────────────── */

.ps-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.ps-info-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-info-cell:nth-child(even) { }

.ps-info-cell--full {
  grid-column: span 2;
}

.ps-cell-label {
  font-size: 11.5px;
  color: #8A7B7E;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.ps-cell-value {
  font-size: 13.5px;
  color: #1F1416;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.4;
}

/* ─── Education card in panel ─────────────────────────────────────────────── */

.ps-edu-card {
  background: #FDF6F6;
  border: 1px solid #ECDADA;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ps-edu-card:last-child { margin-bottom: 0; }

.ps-edu-card-head {
  background: #FAE6E6;
  border-bottom: 1px solid #ECDADA;
  padding: 8px 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: #8B0000;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ps-edu-card .ps-info-grid {
  padding: 12px 14px;
}

/* ─── Save button section ─────────────────────────────────────────────────── */

.ps-save-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ps-save-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #8b0000 0%, #5c0000 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(139,0,0,.28);
  transition: opacity .15s, box-shadow .15s;
}

.ps-save-btn:hover {
  opacity: .88;
  box-shadow: 0 5px 14px rgba(139,0,0,.34);
}

.ps-save-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ─── Education Details ───────────────────────────────────────────────────── */

.profile-edu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-edu-item {
  background: #fff;
  border: 1px solid #ecdada;
  border-radius: 12px;
  overflow: hidden;
}

.profile-edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #f5e5e5;
}

.profile-edu-row:last-child {
  border-bottom: 0;
}

.profile-edu-row--status {
  background: #fdf6f6;
}

.profile-edu-label {
  font-size: 11.5px;
  color: #8a7b7e;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 120px;
}

.profile-edu-value {
  font-size: 13px;
  color: #1f1416;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Education status badges */
.profile-edu-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.edu-status--initiated  { background: rgba(139,0,0,.08);   color: #8b0000; }
.edu-status--wip        { background: rgba(80,102,181,.12); color: #3f4f8f; }
.edu-status--completed  { background: rgba(31,143,77,.12);  color: #156a38; }
.edu-status--negative   { background: rgba(200,16,46,.1);   color: #a30e0e; }
.edu-status--minor      { background: rgba(182,105,26,.12); color: #8e5318; }
.edu-status--muted      { background: #f0e8e8;              color: #8a7b7e; }

/* ─── Executive Notes ─────────────────────────────────────────────────────── */

.profile-notes-wrap {
  background: #fff;
  border: 1px solid #ECDADA;
  border-radius: 9px;
  overflow: hidden;
}

.profile-notes-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  color: #1F1416;
  border: 0;
  resize: vertical;
  min-height: 90px;
  background: transparent;
  outline: none;
  line-height: 1.55;
}

.profile-notes-input::placeholder {
  color: #C6B6B8;
}

.profile-notes-input:focus {
  background: #FFFAFA;
}


/* ─── Notes History icon/button ──────────────────────────────────────────── */

.ps-notes-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid #d9b9b9;
  border-radius: 20px;
  color: #8b0000;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  line-height: 1;
}

.ps-notes-history-btn:hover {
  background: rgba(139,0,0,.06);
  border-color: #8b0000;
}

.ps-notes-history-btn svg {
  flex-shrink: 0;
}

.ps-notes-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #8b0000;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ─── Notes History inline FAQ panel ─────────────────────────────────────── */

.ps-notes-history-btn.is-open {
  background: rgba(139,0,0,.08);
  border-color: #8b0000;
}

.ps-notes-chevron {
  margin-left: auto;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.ps-notes-history-btn.is-open .ps-notes-chevron {
  transform: rotate(180deg);
}

.ps-notes-history-panel {
  margin-top: 8px;
  border: 1px solid #ecdada;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ps-notes-loading {
  padding: 14px 16px;
  color: #8a7b7e;
  font-size: 12px;
  font-style: italic;
}

.ps-notes-empty {
  padding: 14px 16px;
  color: #8a7b7e;
  font-size: 12px;
  font-style: italic;
}

.ps-notes-empty.is-error {
  color: #a30e0e;
}

/* FAQ list */
.ps-notes-faq {
  display: flex;
  flex-direction: column;
}

.ps-faq-item {
  border-bottom: 1px solid #f5e5e5;
}

.ps-faq-item:last-child {
  border-bottom: 0;
}

.ps-faq-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: #fdf6f6;
  border-bottom: 1px solid #f5e5e5;
}

.ps-faq-dt {
  font-size: 10.5px;
  color: #8a7b7e;
  font-weight: 500;
}

.ps-faq-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(139,0,0,.08);
  color: #8b0000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ps-faq-note {
  padding: 9px 14px;
  font-size: 12.5px;
  color: #1f1416;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ─── Uploaded Documents section ─────────────────────────────────────────── */

.ps-doc-group {
  margin-bottom: 10px;
}

.ps-doc-group:last-child {
  margin-bottom: 0;
}

.ps-doc-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a7b7e;
  margin-bottom: 6px;
}

.ps-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #8b0000;
  text-decoration: none;
  background: rgba(139,0,0,.06);
  border: 1px solid #ecdada;
  border-radius: 8px;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  transition: background .15s, color .15s;
}

.ps-doc-link:hover {
  background: #8b0000;
  color: #fff;
  border-color: #8b0000;
}

.ps-doc-icon {
  font-size: 12px;
  line-height: 1;
}

/* ─── Upload Report section ───────────────────────────────────────────────── */

.ps-report-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-existing-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a7b7e;
  margin-bottom: 6px;
}

.ps-doc-link--report {
  background: rgba(31,143,77,.07);
  border-color: #b7dfbc;
  color: #156a38;
}

.ps-doc-link--report:hover {
  background: #156a38;
  color: #fff;
  border-color: #156a38;
}

.ps-upload-area {
  background: #fff;
  border: 1px dashed #d9b9b9;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: #8a7b7e;
  padding: 8px 12px;
  background: #fdf6f6;
  border: 1px solid #ecdada;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}

.ps-upload-label:hover {
  background: #f5e0e0;
  border-color: #d9b9b9;
}

.ps-upload-label .ps-upload-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.ps-report-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ps-upload-msg {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ecf8f1;
  color: #1f8f4d;
}

.ps-upload-msg.is-error {
  background: #fdecec;
  color: #a30e0e;
}

.ps-upload-btn {
  align-self: flex-start;
}

/* ─── Success message variant ─────────────────────────────────────────────── */

.profile-status-message:not(.is-error) {
  background: #ecf8f1;
  color: #1f8f4d;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .profile-status-slideover {
    width: 100vw;
  }

  .profile-status-grid {
    grid-template-columns: 1fr;
  }

  .profile-edu-row {
    flex-direction: column;
    gap: 2px;
  }

  .profile-edu-value {
    text-align: left;
  }

}

/* ─── Stat link (clickable KPI number) ───────────────────────────────────── */

a.stat-link {
  text-decoration: none;
  transition: opacity .15s ease;
  display: inline-block;
}

a.stat-link:hover {
  opacity: .7;
  text-decoration: underline;
}

/* ─── OPE Candidate List page ────────────────────────────────────────────── */

.ope-list-page {
  max-width: 1200px;
}

.ope-list-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ope-list-breadcrumb a {
  font-size: 13px;
  color: #8B0000;
  text-decoration: none;
  font-weight: 500;
}

.ope-list-breadcrumb a:hover {
  text-decoration: underline;
}

.ope-list-title {
  margin: 0;
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 600;
  font-size: 22px;
  color: #1F1416;
}

.ope-list-count {
  font-size: 13px;
  color: #8A7B7E;
  margin-left: auto;
}

.ope-sr {
  color: #8A7B7E;
  font-size: 12px;
  width: 36px;
}

/* ─── Report Review section (slide-over panel) ───────────────────────────── */

.ps-rr-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-rr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ps-rr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-rr-field--full {
  grid-column: span 2;
}

.ps-rr-field label {
  font-size: 11px;
  font-weight: 600;
  color: #4A3A3D;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ps-rr-input {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #ECDADA;
  border-radius: 8px;
  background: #fff;
  color: #1F1416;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.ps-rr-input:focus {
  border-color: #8B0000;
  box-shadow: 0 0 0 3px rgba(139,0,0,.08);
}

.ps-rr-textarea {
  resize: vertical;
  min-height: 70px;
}

.ps-rr-card {
  border: 1px solid #ECDADA;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}

.ps-rr-card:last-child {
  margin-bottom: 0;
}

.ps-rr-card-head {
  background: #FAE6E6;
  border-bottom: 1px solid #ECDADA;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #8B0000;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ps-rr-card .ps-rr-grid {
  padding: 14px;
}

.ps-rr-loading {
  padding: 14px;
  font-size: 13px;
  color: #7A6467;
}

.ps-rr-empty {
  padding: 14px;
  font-size: 13px;
  color: #7A6467;
  margin: 0;
}

.ps-rr-empty.is-error {
  color: #8B0000;
}

/* ─── Executive Dashboard — action strip ─────────────────────────────────── */

.exec-action-strip {
  background: #fff;
  border: 1px solid #ECDADA;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(92,0,0,.04), 0 8px 24px rgba(92,0,0,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.exec-total-pill {
  font-size: 13px;
  color: #4A3A3D;
}

.exec-total-pill strong {
  color: #8B0000;
  font-weight: 700;
}

/* ─── Executive Dashboard — filter bar ───────────────────────────────────── */

.exec-filters {
  background: #fff;
  border: 1px solid #ECDADA;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(92,0,0,.04), 0 8px 24px rgba(92,0,0,.06);
  margin-bottom: 18px;
}

.exec-filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: flex-end;
}

.exec-field {
  display: flex;
  flex-direction: column;
}

.exec-field label {
  font-size: 12px;
  font-weight: 600;
  color: #4A3A3D;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.exec-filter-input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid #ECDADA;
  background: #fff;
  color: #1F1416;
  width: 100%;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.exec-filter-input:focus {
  border-color: #8B0000;
  box-shadow: 0 0 0 3px rgba(139,0,0,.1);
}

.exec-field--btn {
  justify-content: flex-end;
}

.exec-search-btn {
  background: #8B0000;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9px;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(139,0,0,.2);
}

.exec-search-btn:hover {
  background: #5C0000;
  transform: translateY(-1px);
}

/* ─── Executive Dashboard — table card ───────────────────────────────────── */

.table-card {
  background: #fff;
  border: 1px solid #ECDADA;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(92,0,0,.04), 0 8px 24px rgba(92,0,0,.06);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid #ECDADA;
  flex-wrap: wrap;
  gap: 10px;
}

.table-tools h3 {
  margin: 0;
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 600;
  font-size: 18px;
  color: #1F1416;
}

.right-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── Chip tabs ───────────────────────────────────────────────────────────── */

.chip-tab {
  background: transparent;
  border: 1px solid #ECDADA;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #4A3A3D;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  font-family: inherit;
}

.chip-tab:hover {
  background: #FAE6E6;
}

.chip-tab.active {
  background: #8B0000;
  color: #fff;
  border-color: #8B0000;
}

/* ─── Table reset ─────────────────────────────────────────────────────────── */

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card thead th {
  text-align: left;
  background: #FAE6E6;
  color: #1F1416;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 13px 14px;
  border-bottom: 1px solid #ECDADA;
  white-space: nowrap;
}

.table-card thead th:first-child { padding-left: 22px; }

.table-card tbody td {
  padding: 14px;
  font-size: 13px;
  border-bottom: 1px solid #F5E5E5;
  color: #4A3A3D;
  vertical-align: middle;
}

.table-card tbody tr.exec-row {
  transition: background .12s ease;
  cursor: pointer;
}

.table-card tbody tr.exec-row:hover { background: #FFFAFA; }
.table-card tbody td:first-child { padding-left: 22px; }
.table-card tbody td:last-child  { padding-right: 22px; }
.table-card tbody td.id-col   { font-weight: 700; color: #1F1416; font-variant-numeric: tabular-nums; }
.table-card tbody td.name-col { font-weight: 600; color: #1F1416; }

/* ─── Status badges ───────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.wip     { background: rgba(80,102,181,.12);  color: #3F4F8F; }
.badge.hold    { background: rgba(182,105,26,.14);  color: #8E5318; }
.badge.closed  { background: rgba(31,143,77,.12);   color: #156A38; }
.badge.insuff  { background: rgba(139,0,0,.10);     color: #8B0000; }
.badge.pending { background: rgba(138,123,126,.12); color: #5A4D50; }
.badge.new     { background: linear-gradient(135deg,#FFE3E3,#FFC9C9); color: #8B0000; }

/* ─── Action button ───────────────────────────────────────────────────────── */

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #ECDADA;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  color: #4A3A3D;
  font-size: 15px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
  vertical-align: middle;
}

.icon-btn:hover {
  background: #8B0000;
  color: #fff;
  border-color: #8B0000;
}

/* ─── Newly assigned row indicator ───────────────────────────────────────── */

tr.exec-row.fresh td.id-col {
  position: relative;
  padding-left: 32px;
}

tr.exec-row.fresh td.id-col::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8B0000;
  animation: exec-pulse 1.6s ease-in-out infinite;
}

@keyframes exec-pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50%       { opacity: .4; transform: translateY(-50%) scale(1.4); }
}

/* ─── Empty state row ─────────────────────────────────────────────────────── */

.exec-empty-text {
  text-align: center;
  color: #C6B6B8;
  font-style: italic;
  font-size: 12.5px;
  padding: 40px 14px !important;
}

/* ─── Quick action bar (bottom of slide panel) ───────────────────────────── */

.ps-action-bar {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #ECDADA;
  background: #FDF6F6;
  flex-shrink: 0;
}

.ps-qaction {
  flex: 1;
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
  justify-content: center;
}

.ps-qaction--hold {
  background: #fff;
  border: 1px solid #ECDADA;
  color: #8E5318;
}

.ps-qaction--hold:hover {
  background: #FDF4EE;
  border-color: #d4956b;
}

.ps-qaction--insuff {
  background: #fff;
  border: 1px solid #ECDADA;
  color: #8b0000;
}

.ps-qaction--insuff:hover {
  background: #FDF6F6;
  border-color: #c8a0a0;
}

.ps-qaction--close {
  background: #8b0000;
  border: 1px solid #8b0000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,0,0,.2);
}

.ps-qaction--close:hover {
  background: #5c0000;
  border-color: #5c0000;
  transform: translateY(-1px);
}

.ps-qaction:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

@media (max-width: 767px) {
  .profile-status-slideover { width: 100vw; }
}

/* ─── Exec dashboard responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .exec-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .exec-field--btn {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .exec-filter-row {
    grid-template-columns: 1fr;
  }
  .exec-field--btn {
    grid-column: span 1;
  }
  .table-tools {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Gin admin-theme override (scoped to panel) ─────────────────────────── */

/* Box model reset for all panel children */
#profile-status-slideover *,
#profile-status-slideover *::before,
#profile-status-slideover *::after {
  box-sizing: border-box;
}

/* Strip Gin's global input resets inside the panel */
#profile-status-slideover input[type="text"],
#profile-status-slideover input[type="email"],
#profile-status-slideover input[type="search"],
#profile-status-slideover textarea {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  max-width: none;
  min-height: 0;
}

/* ── h2 title in panel header (Gin overrides h2 globally) ── */
#profile-status-slideover .ps-case-title {
  font-family: 'Fraunces', 'Georgia', serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

/* ── Section label ── */
#profile-status-slideover .ps-section-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #8A7B7E !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 12px !important;
}

/* ── Info grid cell labels and values ── */
#profile-status-slideover .ps-cell-label {
  font-size: 11.5px !important;
  color: #8A7B7E !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

#profile-status-slideover .ps-cell-value {
  font-size: 13.5px !important;
  color: #1F1416 !important;
  font-weight: 500 !important;
}

/* ── Label reset inside panel ── */
#profile-status-slideover label {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

#profile-status-slideover .ps-rr-field > label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #8A7B7E !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 5px !important;
  line-height: 1.3 !important;
}

/* ── Verifier field label ── */
#profile-status-slideover .ps-rr-field--verifier > label {
  color: #5C0000 !important;
}

/* ── Applicant data display cell ── */
#profile-status-slideover .ps-rr-field--display > label {
  color: #A08888 !important;
}

/* ── Applicant data value box ── */
#profile-status-slideover .ps-rr-value {
  font-size: 13px;
  font-weight: 500;
  color: #4A3A3D;
  padding: 8px 10px;
  background: #FBF1F1;
  border: 1px solid #ECDADA;
  border-radius: 8px;
  min-height: 35px;
  word-break: break-word;
  line-height: 1.4;
}

.ps-rr-empty {
  color: #C0A0A0;
  font-weight: 400;
  font-style: italic;
}

/* ── Verifier input fields ── */
#profile-status-slideover .ps-rr-input {
  display: block !important;
  width: 100% !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #1F1416 !important;
  padding: 8px 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #C8A8A8 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s;
}

#profile-status-slideover .ps-rr-input:focus {
  border-color: #8B0000 !important;
  box-shadow: 0 0 0 3px rgba(139,0,0,.08) !important;
  background: #FFFAFA !important;
  outline: none !important;
}

/* ── Report Review column header row ── */
.ps-rr-col-heads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #ECDADA;
  background: #FAE6E6;
}

.ps-rr-col-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8A7B7E;
}

.ps-rr-col-head--verifier {
  color: #5C0000;
}

/* ── Notes textarea ── */
#profile-status-slideover .profile-notes-input {
  display: block !important;
  width: 100% !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #1F1416 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  resize: vertical !important;
  min-height: 90px !important;
}

#profile-status-slideover .profile-notes-input:focus {
  background: #FFFAFA !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Button resets (Gin overrides font/text-transform on buttons) ── */
#profile-status-slideover .ps-save-btn,
#profile-status-slideover .ps-qaction,
#profile-status-slideover .profile-status-btn,
#profile-status-slideover .ps-close-btn,
#profile-status-slideover .ps-notes-history-btn {
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ── Profile-status action chips ── */
#profile-status-slideover .profile-status-btn {
  display: inline-block !important;
  font-size: 12.5px !important;
  padding: 8px 14px !important;
  border-radius: 9px !important;
  border: 1px solid #ECDADA !important;
  background: #fff !important;
  color: #8B0000 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .15s, color .15s, border-color .15s !important;
  box-shadow: none !important;
  outline: none !important;
}

#profile-status-slideover .profile-status-btn:hover,
#profile-status-slideover .profile-status-btn.is-active {
  background: #8B0000 !important;
  border-color: #8B0000 !important;
  color: #fff !important;
}

/* ── Quick action footer buttons ── */
#profile-status-slideover + .ps-action-bar,
.ps-action-bar {
  font-family: inherit;
}

/* ── Upload area ── */
#profile-status-slideover .ps-upload-area {
  border: 1px dashed #C8A8A8;
  border-radius: 9px;
  background: #FBF1F1;
}

/* ── Responsive: narrow screens ── */
@media (max-width: 767px) {
  .profile-status-slideover {
    width: 100vw !important;
  }
  .ps-rr-row {
    grid-template-columns: 1fr;
  }
  .ps-rr-field--full {
    grid-column: span 1;
  }
  .ps-rr-col-heads {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   SO-* design system — matches executive.html design tokens
   ══════════════════════════════════════════════════════════════ */

/* ── Panel header ── */
.so-head {
  background: linear-gradient(180deg, #8B0000 0%, #5C0000 100%);
  color: #fff;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.so-eyebrow {
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

#profile-status-slideover .so-head h2,
#profile-status-slideover #ps-case-title {
  font-family: 'Fraunces', 'Georgia', serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#profile-status-slideover .so-close {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  cursor: pointer !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
#profile-status-slideover .so-close:hover {
  background: rgba(255,255,255,.22) !important;
}

/* ── Scrollable body ── */
.so-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  background: #FBF1F1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-status-slideover.is-loading .so-body {
  opacity: 0.65;
}

/* ── White card sections ── */
.so-section {
  background: #fff;
  border: 1px solid #ECDADA;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(92,0,0,.03), 0 4px 12px rgba(92,0,0,.04);
}

#profile-status-slideover .so-section > h4 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #8A7B7E !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: inherit !important;
  line-height: 1.3 !important;
}

/* ── Two-column data grid ── */
.so-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

#profile-status-slideover .so-grid .so-label {
  font-size: 11.5px !important;
  color: #8A7B7E !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 2px !important;
  line-height: 1.3 !important;
}

#profile-status-slideover .so-grid .so-value {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1F1416 !important;
  word-break: break-word !important;
  line-height: 1.4 !important;
}

.so-span2 {
  grid-column: span 2;
}

/* ── Education card ── */
.so-edu-card {
  border: 1px solid #ECDADA;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}
.so-edu-card:last-child { margin-bottom: 0; }

.so-edu-head {
  background: #FAE6E6;
  border-bottom: 1px solid #ECDADA;
  padding: 8px 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: #8B0000;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.so-edu-grid {
  padding: 12px 14px;
}

/* ── Notes textarea ── */
#profile-status-slideover .so-notes {
  display: block !important;
  width: 100% !important;
  min-height: 90px !important;
  resize: vertical !important;
  padding: 10px 12px !important;
  border: 1.5px solid #C8A8A8 !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #1F1416 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1.55 !important;
  transition: border-color .15s !important;
  margin-top: 0 !important;
}
#profile-status-slideover .so-notes:focus {
  border-color: #8B0000 !important;
  box-shadow: 0 0 0 3px rgba(139,0,0,.08) !important;
  outline: none !important;
}

/* ── Message bar (success / error) ── */
.so-msg-bar {
  padding: 10px 12px;
  border-radius: 9px;
  background: #ECF8F1;
  color: #1F8F4D;
  font-size: 13px;
  font-weight: 600;
}
.so-msg-bar.is-error {
  background: #FDECEC;
  color: #A30E0E;
}

/* ── Upload section ── */
.so-upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.so-upload-curr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8A7B7E;
  margin-bottom: 4px;
}

.so-file-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: #8A7B7E;
  padding: 10px 14px;
  background: #FBF1F1;
  border: 1px dashed #C8A8A8;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.so-file-label:hover {
  background: #FAE6E6;
  border-color: #8B0000;
}
.so-file-icon { font-size: 15px; }

#profile-status-slideover .so-upload-btn {
  align-self: flex-start;
  padding: 8px 16px !important;
  background: #fff !important;
  border: 1px solid #ECDADA !important;
  border-radius: 8px !important;
  color: #8B0000 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: background .15s, border-color .15s;
  box-shadow: none !important;
}
#profile-status-slideover .so-upload-btn:hover:not(:disabled) {
  background: #FAE6E6 !important;
  border-color: #8B0000 !important;
}
#profile-status-slideover .so-upload-btn:disabled {
  opacity: .55;
  cursor: wait;
}

/* ── Save wrapper and button ── */
.so-save-wrap { /* transparent — no card */ }

#profile-status-slideover .so-save-btn {
  display: block !important;
  width: 100% !important;
  padding: 13px !important;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: 0 3px 10px rgba(139,0,0,.28) !important;
  transition: opacity .15s, box-shadow .15s !important;
}
#profile-status-slideover .so-save-btn:hover {
  opacity: .88 !important;
  box-shadow: 0 5px 14px rgba(139,0,0,.34) !important;
}
#profile-status-slideover .so-save-btn:disabled {
  opacity: 0.6 !important;
  cursor: wait !important;
}

/* ── Footer action bar ── */
.so-foot {
  padding: 16px 20px;
  border-top: 1px solid #ECDADA;
  display: flex;
  gap: 10px;
  background: #FDF6F6;
  flex-shrink: 0;
}

#profile-status-slideover .so-btn {
  flex: 1;
  padding: 10px 8px !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center;
  border: 1px solid #ECDADA !important;
  background: #fff !important;
  color: #1F1416 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: all .15s ease;
  box-shadow: none !important;
}

#profile-status-slideover .so-btn--hold { color: #8E5318 !important; }
#profile-status-slideover .so-btn--hold:hover { background: #FDF4EE !important; border-color: #d4956b !important; }

#profile-status-slideover .so-btn--insuff { color: #8B0000 !important; }
#profile-status-slideover .so-btn--insuff:hover { background: #FDF6F6 !important; border-color: #C8A0A0 !important; }

#profile-status-slideover .so-btn--close {
  background: #8B0000 !important;
  color: #fff !important;
  border-color: #8B0000 !important;
  box-shadow: 0 4px 12px rgba(139,0,0,.2) !important;
}
#profile-status-slideover .so-btn--close:hover {
  background: #5C0000 !important;
  border-color: #5C0000 !important;
  transform: translateY(-1px);
}

#profile-status-slideover .so-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

@media (max-width: 767px) {
  .so-grid { grid-template-columns: 1fr; }
  .so-span2 { grid-column: span 1; }
}
