/* Compact People Hub workspaces: Directory and Performance. */
:root {
  --people-ink: #10292f;
  --people-muted: #637a80;
  --people-navy: #073d46;
  --people-navy-deep: #052f37;
  --people-teal: #00a991;
  --people-teal-dark: #007c70;
  --people-mint: #dcf7f2;
  --people-line: #d3e1e2;
  --people-surface: #ffffff;
  --people-soft: #f3f8f8;
  --people-shadow: 0 14px 34px rgba(16, 61, 70, 0.09);
}

.people-directory-page,
.performance-center-page {
  color: var(--people-ink);
  background:
    radial-gradient(circle at 4% 0%, rgba(0, 169, 145, 0.1), transparent 24%),
    linear-gradient(145deg, #f4faf9 0%, #f7f9fb 56%, #edf7f6 100%) !important;
}

.people-directory-page .wrap,
.performance-center-page .infractions-shell {
  width: min(calc(100% - 28px), 1560px) !important;
  margin-inline: auto;
  padding: 14px 0 42px !important;
}

/* Shared page headers */
.people-directory-page .directory-hero,
.performance-center-page .hero-card {
  min-height: 112px !important;
  margin: 0 0 10px !important;
  padding: 20px 24px !important;
  border: 0 !important;
  border-radius: 20px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 86% 14%, rgba(84, 224, 207, 0.24), transparent 29%),
    linear-gradient(118deg, var(--people-navy-deep), #07525a 66%, #0e7475) !important;
  box-shadow: 0 18px 44px rgba(4, 48, 55, 0.18) !important;
}

.people-directory-page .directory-hero h1,
.performance-center-page .hero-card h1 {
  margin: 2px 0 0 !important;
  color: #fff !important;
  font-size: clamp(2rem, 3.2vw, 3.15rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.05em !important;
}

.people-directory-page .directory-hero .hero-kicker,
.performance-center-page .hero-card .eyebrow {
  color: #72e0d3 !important;
  font-size: 0.66rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.12em !important;
}

.people-directory-page .directory-user-badge,
.performance-center-page #accessBadge {
  margin: 7px 0 0 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.75rem !important;
}

.people-directory-page .header-home-logo,
.performance-center-page .hero-card .logo-link img {
  width: 44px !important;
  height: 44px !important;
  padding: 7px;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.12);
}

.people-directory-page .people-local-nav,
.performance-center-page .people-local-nav {
  min-height: 46px !important;
  margin: 0 0 12px !important;
  padding: 5px 7px !important;
  border: 1px solid rgba(9, 56, 66, 0.11) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 22px rgba(9, 48, 57, 0.06) !important;
}

.people-directory-page .people-local-nav a,
.performance-center-page .people-local-nav a {
  min-height: 34px !important;
  padding: 8px 13px !important;
  border-radius: 9px !important;
}

/* Workforce snapshot */
.people-directory-page .directory-overview {
  display: block !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.people-directory-page .directory-overview-copy {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 13px 16px !important;
  border: 1px solid rgba(9, 56, 66, 0.11) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
}

.people-directory-page .directory-overview-copy h2 {
  margin: 3px 0 0 !important;
  font-size: 1.05rem !important;
}

.people-directory-page .directory-overview .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(110px, 1fr)) !important;
  gap: 7px !important;
  margin: 0 !important;
}

.people-directory-page .directory-overview .stat-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0 !important;
  min-height: 74px !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(9, 56, 66, 0.12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

.people-directory-page .directory-overview .stat-card::before {
  display: none !important;
}

.people-directory-page .directory-overview .stat-val {
  font-size: 1.55rem !important;
  line-height: 1 !important;
}

.people-directory-page .directory-overview .stat-label {
  color: #5c747a !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
  line-height: 1.15;
  text-transform: uppercase;
}

.people-directory-page .directory-overview .stat-card:hover,
.people-directory-page .directory-overview .stat-card:focus-visible {
  transform: none !important;
  border-color: rgba(0, 167, 143, 0.42) !important;
  background: #f0fbf8 !important;
}

.people-directory-page .directory-overview .stat-card.is-active {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #007d70, #00a78f) !important;
  box-shadow: 0 10px 22px rgba(0, 126, 112, 0.18) !important;
}

/* Team directory */
.people-directory-page .table-wrap {
  overflow: hidden;
  border: 1px solid rgba(9, 56, 66, 0.12) !important;
  border-radius: 17px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--people-shadow) !important;
}

.people-directory-page .table-head.directory-head {
  min-height: 76px !important;
  padding: 14px 18px !important;
  background: linear-gradient(100deg, rgba(224, 249, 245, 0.84), rgba(242, 248, 251, 0.94)) !important;
}

.people-directory-page .directory-head h2 {
  margin: 3px 0 0 !important;
  font-size: clamp(1.45rem, 2vw, 2rem) !important;
}

.people-directory-page .directory-result-block {
  min-width: 220px !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
}

.people-directory-page .directory-toolbar {
  align-items: end !important;
  padding: 10px 18px 12px !important;
  border-bottom: 1px solid rgba(9, 56, 66, 0.09);
}

.people-directory-page .directory-toolbar .search-box {
  width: min(720px, 100%) !important;
}

.people-directory-page #searchInput {
  min-height: 42px !important;
  border-radius: 11px !important;
}

.people-directory-page #clearFiltersBtn {
  min-height: 42px !important;
}

.people-directory-page .table-scroll {
  max-height: 650px;
  overflow: auto;
  padding: 0 10px 10px !important;
}

.people-directory-page .tbl {
  border-spacing: 0 5px !important;
  table-layout: fixed;
}

.people-directory-page .tbl th:first-child,
.people-directory-page .tbl td:first-child {
  width: 58%;
}

.people-directory-page .tbl th:nth-child(2),
.people-directory-page .tbl td:nth-child(2) {
  width: 24%;
}

.people-directory-page .tbl th:nth-child(3),
.people-directory-page .tbl td:nth-child(3) {
  width: 18%;
}

.people-directory-page .tbl thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
}

.people-directory-page .tbl thead th {
  height: 38px !important;
}

.people-directory-page .tbl tbody tr,
.people-directory-page .tbl tbody tr:nth-child(even) {
  height: 58px !important;
  cursor: pointer;
}

.people-directory-page .tbl tbody tr:focus-visible {
  outline: 3px solid rgba(0, 169, 145, 0.3);
  outline-offset: 1px;
}

.people-directory-page .tbl tbody td {
  padding: 8px 12px !important;
}

.people-directory-page .directory-employee-identity {
  gap: 10px !important;
  min-width: 0 !important;
}

.people-directory-page .avatar-small {
  width: 40px !important;
  height: 40px !important;
  flex-basis: 40px !important;
  border-radius: 12px !important;
}

.people-directory-page .btn-onboard {
  min-width: 98px;
}

.people-directory-page .directory-mobile-meta {
  display: none;
}

.people-directory-page .directory-record-row[role="link"] td:last-child {
  position: relative;
  padding-right: 38px !important;
}

.people-directory-page .directory-record-row[role="link"] td:last-child::after {
  content: "\203A";
  position: absolute;
  right: 16px;
  top: 50%;
  color: #759096;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-55%);
}

/* Performance filters */
.performance-center-page .hero-actions {
  display: none !important;
}

.performance-center-page .summary-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(112px, 1fr)) !important;
  gap: 7px !important;
  margin: 0 0 12px !important;
  border: 0 !important;
}

.performance-center-page .summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(9, 56, 66, 0.12) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
}

.performance-center-page .summary-card span {
  color: #5c747a !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  line-height: 1.18;
}

.performance-center-page .summary-card strong {
  margin: 0 !important;
  color: var(--people-navy) !important;
  font-size: 1.55rem !important;
}

.performance-center-page .summary-card:hover {
  border-color: rgba(0, 167, 143, 0.42) !important;
  background: #f0fbf8 !important;
}

.performance-center-page .summary-card[aria-pressed="true"] {
  border-color: transparent !important;
  background: linear-gradient(135deg, #007d70, #00a78f) !important;
  box-shadow: 0 10px 22px rgba(0, 126, 112, 0.18) !important;
}

.performance-center-page .summary-card[aria-pressed="true"] span,
.performance-center-page .summary-card[aria-pressed="true"] strong {
  color: #fff !important;
}

/* Performance workspace */
.performance-center-page .workspace-grid {
  grid-template-columns: 310px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.performance-center-page .panel {
  overflow: hidden;
  border: 1px solid rgba(9, 56, 66, 0.12) !important;
  border-top: 3px solid var(--people-teal) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--people-shadow) !important;
}

.performance-center-page .panel-head {
  min-height: 70px;
  padding: 12px 14px !important;
  background: linear-gradient(100deg, rgba(224, 249, 245, 0.82), rgba(242, 248, 251, 0.94)) !important;
}

.performance-center-page .panel-head h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem) !important;
}

.performance-center-page .employee-panel {
  position: sticky !important;
  top: 10px !important;
  max-height: calc(100dvh - 20px) !important;
}

.performance-center-page .employee-panel .search-field {
  padding: 9px 11px !important;
}

.performance-center-page .employee-list {
  max-height: calc(100dvh - 168px) !important;
  overflow: auto;
  padding: 6px;
}

.performance-center-page .employee-row {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  min-height: 62px !important;
  margin-bottom: 4px;
  padding: 8px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
}

.performance-center-page .employee-row:hover,
.performance-center-page .employee-row.is-active {
  border-color: rgba(0, 169, 145, 0.22) !important;
  background: #edf9f7 !important;
}

.performance-center-page .employee-row.is-active {
  box-shadow: inset 3px 0 0 var(--people-teal-dark);
}

.performance-center-page .employee-row-action {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  color: #006d62;
  background: #dcf7f2;
  font-size: 0.66rem;
  font-weight: 900;
}

.performance-center-page .selected-employee {
  min-height: 58px !important;
  padding: 9px 12px !important;
  border-bottom: 1px solid rgba(9, 56, 66, 0.1) !important;
  background: #f8fbfb !important;
}

.performance-center-page .selected-employee.empty {
  min-height: 44px !important;
  padding: 12px 14px !important;
  color: #748a8f !important;
}

.performance-center-page .batch-control-grid {
  grid-template-columns: minmax(190px, 0.9fr) minmax(150px, 0.7fr) minmax(170px, 0.7fr) 150px !important;
  gap: 8px !important;
  padding: 10px !important;
}

.performance-center-page .batch-week-card,
.performance-center-page .week-anchor-field,
.performance-center-page .batch-mini-stats {
  min-height: 66px !important;
  border-radius: 10px !important;
}

.performance-center-page .preview-card {
  margin: 0 10px 10px !important;
  border-radius: 11px !important;
}

.performance-center-page .preview-card .detail-block-head {
  min-height: 56px;
}

.performance-center-page .preview-card .batch-meta-line {
  display: inline-flex;
  margin: 0 12px 8px !important;
  padding: 4px 8px !important;
  border-radius: 7px;
  background: #edf5f5;
  font-size: 0.69rem !important;
}

.performance-center-page .form-actions {
  padding: 10px 12px 12px !important;
}

.performance-center-page .ghost-btn,
.performance-center-page .primary-btn,
.performance-center-page .mini-btn {
  min-height: 38px !important;
  padding: 8px 13px !important;
  border-radius: 10px !important;
  font-weight: 900 !important;
}

.performance-center-page .board-grid {
  margin-top: 12px !important;
}

.performance-center-page .board-toolbar {
  padding: 0 12px !important;
}

.performance-center-page .board-section summary {
  padding: 11px 14px !important;
  background: #f8fbfb;
}

.performance-center-page .case-card {
  margin: 0 8px 6px;
  padding: 10px 12px !important;
  border: 1px solid rgba(9, 56, 66, 0.1) !important;
  border-radius: 10px !important;
}

@media (max-width: 1180px) {
  .people-directory-page .directory-overview {
    grid-template-columns: 1fr !important;
  }

  .people-directory-page .directory-overview-copy {
    min-height: 54px;
  }

  .people-directory-page .directory-overview .stats-grid,
  .performance-center-page .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .performance-center-page .workspace-grid {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }

  .performance-center-page .batch-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .people-directory-page .wrap,
  .performance-center-page .infractions-shell {
    width: calc(100% - 12px) !important;
  }

  .people-directory-page .directory-hero,
  .performance-center-page .hero-card {
    min-height: 94px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .people-directory-page .directory-hero h1,
  .performance-center-page .hero-card h1 {
    font-size: 2rem !important;
  }

  .performance-center-page .workspace-grid {
    grid-template-columns: 1fr !important;
  }

  .performance-center-page .employee-panel {
    position: static !important;
    max-height: none !important;
  }

  .performance-center-page .employee-list {
    max-height: 330px !important;
  }

  .people-directory-page .table-scroll {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .people-directory-page .tbl {
    display: block !important;
    min-width: 0 !important;
    border-spacing: 0 !important;
  }

  .people-directory-page .tbl thead {
    display: none !important;
  }

  .people-directory-page .tbl tbody {
    display: grid !important;
    gap: 0;
    width: 100%;
  }

  .people-directory-page .tbl tbody tr,
  .people-directory-page .tbl tbody tr:nth-child(even) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 9px 42px 9px 11px !important;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(9, 56, 66, 0.1) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .people-directory-page .tbl tbody tr:last-child {
    border-bottom: 0 !important;
  }

  .people-directory-page .tbl tbody tr[role="link"]::after {
    content: "\203A";
    position: absolute;
    right: 14px;
    top: 50%;
    color: #4f7478;
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-54%);
  }

  .people-directory-page .tbl tbody tr:hover,
  .people-directory-page .tbl tbody tr:focus-visible {
    background: #f1faf8 !important;
    box-shadow: inset 4px 0 0 var(--people-teal) !important;
  }

  .people-directory-page .tbl tbody td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .people-directory-page .directory-employee-identity {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .people-directory-page .directory-employee-copy {
    min-width: 0;
  }

  .people-directory-page .emp-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .people-directory-page .directory-employee-identity .avatar-small,
  .people-directory-page .directory-employee-copy .emp-id {
    display: none !important;
  }

  .people-directory-page .tbl tbody td:nth-child(2),
  .people-directory-page .tbl tbody td:nth-child(3) {
    display: none !important;
  }

  .people-directory-page .directory-mobile-meta {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #557177;
    font-size: 0.7rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .people-directory-page .directory-overview .stats-grid,
  .performance-center-page .summary-grid,
  .performance-center-page .batch-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .people-directory-page .directory-overview .stat-card,
  .performance-center-page .summary-card {
    min-height: 58px !important;
  }

  .people-directory-page .directory-toolbar {
    align-items: stretch !important;
  }

  .people-directory-page #clearFiltersBtn {
    width: 100%;
  }

  .people-directory-page .table-head.directory-head {
    padding: 13px !important;
  }

  .people-directory-page .directory-result-block {
    margin-top: 8px !important;
  }

  .people-directory-page .directory-toolbar {
    padding: 10px 12px 12px !important;
  }

  .people-directory-page .avatar-small {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }

  .performance-center-page .employee-row-action {
    display: none;
  }
}

/* Uniform-style workforce directory list */
@media (min-width: 821px) {
  .people-directory-page .table-scroll {
    padding: 2px 10px 10px !important;
  }

  .people-directory-page .tbl {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    table-layout: fixed;
  }

  .people-directory-page .tbl thead {
    display: none !important;
  }

  .people-directory-page .tbl tbody tr,
  .people-directory-page .tbl tbody tr:nth-child(even) {
    height: 54px !important;
    min-height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .people-directory-page .tbl tbody td {
    height: 54px !important;
    min-width: 0 !important;
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border-top: 1px solid #b7e2da !important;
    border-bottom: 1px solid #b7e2da !important;
    background: #fff !important;
  }

  .people-directory-page .tbl tbody td:first-child {
    width: 56% !important;
    border-left: 1px solid #b7e2da !important;
    border-radius: 12px 0 0 12px !important;
  }

  .people-directory-page .tbl tbody td:nth-child(2) {
    width: 20% !important;
  }

  .people-directory-page .tbl tbody td:last-child {
    width: 24% !important;
    border-right: 1px solid #b7e2da !important;
    border-radius: 0 12px 12px 0 !important;
  }

  .people-directory-page .tbl tbody tr:hover td,
  .people-directory-page .tbl tbody tr:focus-visible td {
    border-color: #74cbbd !important;
    background: #f1fbf9 !important;
  }

  .people-directory-page .tbl tbody tr:hover td:first-child,
  .people-directory-page .tbl tbody tr:focus-visible td:first-child {
    box-shadow: inset 3px 0 0 #00a78f;
  }

  .people-directory-page .directory-employee-identity {
    gap: 10px !important;
    min-width: 0 !important;
  }

  .people-directory-page .avatar-small {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border: 1px solid #b7e2da !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .people-directory-page .emp-link {
    max-width: 100%;
    overflow: hidden;
    font-size: .9rem !important;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .people-directory-page .badge {
    min-height: 28px !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(0, 126, 112, .17) !important;
    font-size: .68rem !important;
    line-height: 1;
  }

  .people-directory-page .directory-record-row[role="link"] td:last-child {
    padding-right: 36px !important;
  }

  .people-directory-page .directory-record-row[role="link"] td:last-child::after {
    right: 12px;
    font-size: 1.2rem;
  }
}

@media (max-width: 820px) {
  .people-directory-page .tbl tbody {
    gap: 6px !important;
    padding: 7px !important;
  }

  .people-directory-page .tbl tbody tr,
  .people-directory-page .tbl tbody tr:nth-child(even) {
    min-height: 58px !important;
    margin: 0 !important;
    padding: 8px 38px 8px 10px !important;
    border: 1px solid #b7e2da !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(24, 91, 82, .04) !important;
  }

  .people-directory-page .tbl tbody tr:last-child {
    border-bottom: 1px solid #b7e2da !important;
  }

  .people-directory-page .tbl tbody tr:hover,
  .people-directory-page .tbl tbody tr:focus-visible {
    border-color: #74cbbd !important;
    background: #f1fbf9 !important;
    box-shadow: inset 3px 0 0 #00a78f !important;
  }

  .people-directory-page .directory-employee-identity {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
  }

  .people-directory-page .directory-employee-identity .avatar-small {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border: 1px solid #b7e2da !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .people-directory-page .directory-mobile-meta {
    margin-top: 2px;
  }
}

/* Performance Center library + editor */
.performance-center-page .performance-dashboard .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.performance-center-page .hero-actions {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.performance-center-page .hero-actions .ghost-btn,
.performance-center-page .hero-actions .primary-btn {
  min-height: 42px !important;
  padding: 9px 15px !important;
  border-radius: 10px !important;
}

.performance-center-page .performance-dashboard,
.performance-center-page .performance-editor {
  overflow: hidden;
  border: 1px solid rgba(9, 56, 66, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(11, 57, 65, 0.11);
}

.performance-center-page .performance-dashboard-head,
.performance-center-page .performance-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 116px;
  padding: 22px 26px;
  border-top: 3px solid var(--people-teal);
  border-bottom: 1px solid rgba(9, 56, 66, 0.11);
  background: linear-gradient(105deg, rgba(225, 249, 245, 0.84), rgba(246, 250, 252, 0.96));
}

.performance-center-page .performance-dashboard-head h2,
.performance-center-page .performance-editor-head h2 {
  margin: 3px 0 4px;
  color: var(--people-navy);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.05;
}

.performance-center-page .performance-dashboard-head p,
.performance-center-page .performance-editor-head p {
  margin: 0;
  color: #5c7379;
  font-size: 0.86rem;
  font-weight: 650;
}

.performance-center-page .section-label {
  color: var(--people-teal-dark);
  font-size: 0.69rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.performance-center-page .performance-dashboard-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.performance-center-page .performance-dashboard-counts .summary-card {
  display: grid !important;
  justify-items: start;
  align-content: center;
  gap: 1px;
  min-width: 105px;
  min-height: 70px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(0, 145, 125, 0.2) !important;
  border-right: 1px solid rgba(0, 145, 125, 0.2) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 22px rgba(8, 47, 56, 0.06) !important;
}

.performance-center-page .performance-dashboard-counts .summary-card:last-child {
  border-right: 1px solid rgba(0, 145, 125, 0.2) !important;
}

.performance-center-page .performance-dashboard-counts .summary-card strong {
  order: 0;
  font-size: 1.55rem !important;
}

.performance-center-page .performance-dashboard-counts .summary-card span {
  order: 1;
}

.performance-center-page .performance-dashboard-counts .summary-card[aria-pressed="true"] {
  background: linear-gradient(135deg, #007d70, #00a78f) !important;
}

.performance-center-page .performance-dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(300px, 380px);
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(9, 56, 66, 0.1);
  background: #fff;
}

.performance-center-page .performance-dashboard-search input,
.performance-center-page .performance-dashboard-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbdadb;
  border-radius: 10px;
  background: #f9fcfc;
}

.performance-center-page .performance-dashboard-search input {
  padding: 0 14px;
}

.performance-center-page .performance-dashboard-filter select {
  padding: 0 34px 0 12px;
}

.performance-center-page .performance-dashboard-filter-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 8px;
}

.performance-center-page .performance-dashboard-quick-filters {
  display: flex;
  gap: 7px;
}

.performance-center-page .performance-dashboard-quick-filters button {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cbdadb;
  border-radius: 10px;
  color: #36585e;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.performance-center-page .performance-dashboard-quick-filters button strong {
  margin-left: 4px;
  color: var(--people-navy);
}

.performance-center-page .performance-dashboard-quick-filters button[aria-pressed="true"] {
  border-color: #008f7c;
  color: #fff;
  background: #008f7c;
}

.performance-center-page .performance-dashboard-quick-filters button[aria-pressed="true"] strong {
  color: #fff;
}

.performance-center-page .performance-dashboard-table-head,
.performance-center-page .performance-dashboard-list .case-card {
  display: grid !important;
  grid-template-columns: minmax(230px, 2.1fr) minmax(150px, 1.15fr) minmax(160px, 1.25fr) minmax(130px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
}

.performance-center-page .performance-dashboard-table-head {
  min-height: 38px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(9, 56, 66, 0.1);
  color: #637a80;
  background: #f6fafa;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.performance-center-page .performance-list-section {
  background: #fff;
}

.performance-center-page .performance-list-section + .performance-list-section {
  border-top: 8px solid #eef5f5;
}

.performance-center-page .performance-list-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(9, 56, 66, 0.09);
  background: linear-gradient(90deg, #eefaf8, #f8fbfc);
}

.performance-center-page .performance-list-section > header h3 {
  margin: 1px 0 0;
  color: var(--people-navy);
  font-size: 1.05rem;
}

.performance-center-page .performance-list-section.is-hr-queue:has(.empty-state) {
  display: none;
}

.performance-center-page .performance-dashboard-list .case-card {
  position: relative;
  min-height: 82px;
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(9, 56, 66, 0.1) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.performance-center-page .performance-dashboard-list .case-card:hover {
  background: #f3fbf9 !important;
  box-shadow: inset 4px 0 0 var(--people-teal) !important;
}

.performance-center-page .case-primary,
.performance-center-page .case-week,
.performance-center-page .case-action-summary,
.performance-center-page .case-status-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.performance-center-page .case-primary strong {
  overflow: hidden;
  color: var(--people-navy);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-center-page .case-primary span {
  overflow: hidden;
  color: #365a60;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-center-page .case-primary small,
.performance-center-page .case-week span,
.performance-center-page .case-action-summary span,
.performance-center-page .case-status-summary small {
  color: #71868b;
  font-size: 0.68rem;
  font-weight: 750;
}

.performance-center-page .case-week strong,
.performance-center-page .case-action-summary strong {
  color: #284a50;
  font-size: 0.78rem;
}

.performance-center-page .case-status-summary .status-pill {
  justify-self: start;
  width: fit-content;
}

.performance-center-page .performance-dashboard-list .case-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.performance-center-page .performance-dashboard-list .case-actions .mini-btn {
  min-height: 34px !important;
  padding: 6px 11px !important;
  white-space: nowrap;
}

.performance-center-page .performance-dashboard-list > .empty-state {
  min-height: 110px;
  padding: 38px 20px;
  border: 0;
  color: #72878c;
  background: #fff;
  text-align: center;
}

.performance-center-page .performance-editor-head {
  min-height: 94px;
}

.performance-center-page .performance-editor > .workspace-grid {
  margin: 0;
  padding: 14px;
  background: #f3f8f8;
}

.performance-center-page .performance-editor .employee-panel {
  top: 14px !important;
  max-height: calc(100dvh - 28px) !important;
}

@media (max-width: 1050px) {
  .performance-center-page .performance-dashboard-head {
    grid-template-columns: 1fr;
  }

  .performance-center-page .performance-dashboard-counts {
    width: 100%;
  }

  .performance-center-page .performance-dashboard-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .performance-center-page .performance-dashboard-search {
    grid-column: 1 / -1;
  }

  .performance-center-page .performance-dashboard-table-head,
  .performance-center-page .performance-dashboard-list .case-card {
    grid-template-columns: minmax(210px, 1.7fr) minmax(135px, 1fr) minmax(130px, 1fr) auto;
  }

  .performance-center-page .performance-dashboard-table-head span:nth-child(3),
  .performance-center-page .case-action-summary {
    display: none;
  }
}

@media (max-width: 720px) {
  .performance-center-page .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .performance-center-page .hero-actions .ghost-btn,
  .performance-center-page .hero-actions .primary-btn {
    width: 100%;
  }

  .performance-center-page .performance-dashboard,
  .performance-center-page .performance-editor {
    border-radius: 16px;
  }

  .performance-center-page .performance-dashboard-head,
  .performance-center-page .performance-editor-head {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .performance-center-page .performance-dashboard-head h2,
  .performance-center-page .performance-editor-head h2 {
    font-size: 1.65rem;
  }

  .performance-center-page .performance-dashboard-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .performance-center-page .performance-dashboard-counts .summary-card {
    min-width: 0;
    min-height: 62px !important;
    padding: 8px 10px !important;
  }

  .performance-center-page .performance-dashboard-counts .summary-card strong {
    font-size: 1.25rem !important;
  }

  .performance-center-page .performance-dashboard-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .performance-center-page .performance-dashboard-search {
    grid-column: auto;
  }

  .performance-center-page .performance-dashboard-filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-center-page .performance-dashboard-quick-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .performance-center-page .performance-dashboard-quick-filters button {
    padding: 0 6px;
  }

  .performance-center-page .performance-dashboard-filter select {
    min-width: 0;
  }

  .performance-center-page .performance-dashboard-table-head {
    display: none !important;
  }

  .performance-center-page .performance-dashboard-list .case-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 13px 14px !important;
  }

  .performance-center-page .case-primary {
    grid-column: 1;
  }

  .performance-center-page .case-week {
    grid-column: 1;
    grid-row: 2;
  }

  .performance-center-page .case-action-summary {
    display: none;
  }

  .performance-center-page .case-status-summary {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
  }

  .performance-center-page .performance-dashboard-list .case-actions {
    grid-column: 2;
    grid-row: 2;
  }

  .performance-center-page .performance-dashboard-list .case-actions a {
    display: none;
  }

  .performance-center-page .performance-editor > .workspace-grid {
    padding: 8px;
  }
}

/* Compact Performance Workspace page header. */
.performance-center-page .hero-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 20px;
  min-height: 94px !important;
  padding: 14px 20px !important;
  border-radius: 18px !important;
}

.performance-center-page .hero-card .brand-row,
.performance-center-page .hero-card .brand-row > div {
  min-width: 0;
}

.performance-center-page .hero-card .eyebrow {
  margin: 0 0 5px !important;
  font-size: 0.63rem !important;
}

.performance-center-page .hero-card h1 {
  margin: 0 !important;
  font-size: clamp(2rem, 2.8vw, 2.65rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
}

.performance-center-page #accessBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  margin: 6px 0 0 !important;
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid rgba(114, 224, 211, 0.23);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(1, 39, 46, 0.22);
  font-size: 0.67rem !important;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-center-page .hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.performance-center-page .hero-actions .ghost-btn,
.performance-center-page .hero-actions .primary-btn {
  min-height: 38px !important;
  padding: 7px 13px !important;
  border-radius: 9px !important;
  font-size: 0.74rem;
  white-space: nowrap;
}

.performance-center-page .people-local-nav {
  min-height: 42px !important;
  padding: 4px 6px !important;
}

.performance-center-page .people-local-nav a {
  min-height: 32px !important;
  padding: 7px 12px !important;
}

@media (max-width: 900px) {
  .performance-center-page .hero-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .performance-center-page .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .performance-center-page .hero-actions .ghost-btn,
  .performance-center-page .hero-actions .primary-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .performance-center-page .hero-card {
    gap: 10px;
    min-height: 0 !important;
    padding: 14px !important;
  }

  .performance-center-page .hero-card h1 {
    font-size: clamp(1.75rem, 9vw, 2.1rem) !important;
  }

  .performance-center-page .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .performance-center-page .hero-actions .ghost-btn,
  .performance-center-page .hero-actions .primary-btn {
    min-height: 42px !important;
    padding: 6px 5px !important;
    font-size: 0.62rem;
    line-height: 1.1;
    white-space: normal;
  }
}

/* Individual Performance notices use a date, not a weekly batch control. */
.performance-center-page .performance-editor .batch-control-grid {
  grid-template-columns: minmax(210px, 1.1fr) minmax(180px, 0.85fr) minmax(180px, 0.65fr) !important;
}

@media (max-width: 620px) {
  .performance-center-page .performance-editor .batch-control-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Streamlined Performance notice flow */
.performance-employee-picker-modal {
  width: min(760px, calc(100vw - 28px)) !important;
  max-height: min(88dvh, 760px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(8, 52, 61, 0.16) !important;
  border-top: 4px solid #00a58f !important;
  border-radius: 20px !important;
  background: #f8fcfb !important;
  box-shadow: 0 28px 80px rgba(4, 31, 36, 0.3);
}

.performance-employee-picker-modal .modal-head {
  align-items: center;
  padding: 20px 22px !important;
  background: linear-gradient(120deg, #073f48, #147d79) !important;
  color: #fff;
}

.performance-employee-picker-modal .modal-head h2,
.performance-employee-picker-modal .modal-head .eyebrow,
.performance-employee-picker-modal .modal-head .muted {
  color: #fff !important;
}

.performance-employee-picker-modal .modal-head .muted {
  margin: 4px 0 0;
  opacity: 0.82;
}

.performance-employee-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(8, 52, 61, 0.12);
}

.performance-employee-picker-toolbar .search-field {
  padding: 0 !important;
  border: 0 !important;
}

.performance-employee-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 55dvh;
  padding: 12px 18px 18px;
  overflow: auto;
}

.performance-employee-picker-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid rgba(8, 52, 61, 0.12);
  border-radius: 12px;
  color: #092d35;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.performance-employee-picker-row:hover,
.performance-employee-picker-row:focus-visible {
  border-color: #00a58f;
  background: #eafaf7;
  transform: translateY(-1px);
  outline: none;
}

.performance-employee-picker-row .avatar {
  width: 42px !important;
  height: 42px !important;
}

.performance-employee-picker-row .employee-copy {
  min-width: 0;
}

.performance-employee-picker-row .employee-copy strong,
.performance-employee-picker-row .employee-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-employee-picker-row .employee-copy strong {
  font-size: 0.92rem;
}

.performance-employee-picker-row .employee-copy span {
  margin-top: 3px;
  color: #5e747a;
  font-size: 0.76rem;
  font-weight: 750;
}

.performance-employee-picker-row .employee-copy i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 5px 2px;
  border-radius: 50%;
  background: #00a58f;
}

.performance-employee-picker-open {
  padding: 5px 8px;
  border-radius: 999px;
  color: #087366;
  background: #e1f7f2;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.performance-modal-card {
  width: min(1120px, calc(100vw - 28px)) !important;
  max-height: min(92dvh, 860px) !important;
  overflow-x: hidden !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 90px rgba(4, 31, 36, 0.3) !important;
}

.performance-modal-card .modal-head {
  min-height: 92px !important;
  padding: 17px 20px !important;
  background: linear-gradient(110deg, #e5faf6, #eff8fb) !important;
}

.performance-review-head-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.performance-review-date {
  display: grid;
  gap: 4px;
  min-width: 170px;
  color: #49686e;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.performance-review-date input {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(8, 52, 61, 0.18);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.performance-modal-card > .selected-employee {
  min-height: 64px !important;
  margin: 12px 20px 0 !important;
  padding: 9px 12px !important;
  background: #fff !important;
}

.performance-modal-card .performance-modal-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr) !important;
  padding: 12px 20px !important;
}

.performance-modal-card .performance-options {
  max-height: 43dvh;
  padding: 10px !important;
}

.performance-modal-card .performance-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.performance-modal-card .performance-group + .performance-group {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(8, 52, 61, 0.1) !important;
}

.performance-modal-card .performance-group-head {
  position: sticky;
  top: -10px;
  z-index: 1;
  align-items: center;
  padding: 9px 5px 7px !important;
  background: #fbfefd;
}

.performance-modal-card .performance-option {
  min-height: 74px;
  margin: 0 !important;
  padding: 10px 11px !important;
  border-radius: 12px !important;
}

.performance-modal-card .performance-option:has(.performance-option-check:checked) {
  border-color: #00a58f !important;
  background: #e4f9f4 !important;
  box-shadow: inset 4px 0 #00a58f;
}

.performance-modal-card .performance-option-check {
  width: 20px;
  min-height: 20px;
}

.performance-modal-card .history-mini-list {
  max-height: 43dvh;
  padding: 10px !important;
  background: #f7fbfb;
}

.performance-modal-card .modal-note-field {
  margin: 0 20px !important;
}

.performance-modal-card .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 20px 16px !important;
  background: rgba(248, 252, 251, 0.98);
}

.performance-modal-card .form-actions .primary-btn {
  min-width: 150px;
}

.case-review-modal {
  width: min(1040px, calc(100vw - 28px)) !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  border-radius: 20px !important;
  background: #f7fbfa !important;
  box-shadow: 0 30px 90px rgba(4, 31, 36, 0.3) !important;
}

.case-review-modal > .modal-head {
  align-items: center;
  padding: 20px 22px !important;
  background: linear-gradient(110deg, #e5faf6, #f0f8fa) !important;
}

.case-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 8px;
}

.case-review-summary > div,
.case-review-panel {
  border: 1px solid rgba(8, 52, 61, 0.12);
  border-radius: 12px;
  background: #fff;
}

.case-review-summary > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
}

.case-review-summary span,
.case-review-panel > span {
  color: #087c70;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-review-summary strong {
  color: #092d35;
  font-size: 0.96rem;
}

.case-review-summary small {
  color: #60767b;
  font-size: 0.73rem;
  font-weight: 750;
}

.case-review-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 18px 18px;
}

.case-review-panel {
  min-height: 120px;
  padding: 14px;
}

.case-review-panel.is-concern {
  border-left: 4px solid #00a58f;
  background: linear-gradient(135deg, #fff, #effbf8);
}

.case-review-panel.is-wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.case-review-panel h3 {
  margin: 7px 0 4px;
  color: #092d35;
  font-size: 1.05rem;
}

.case-review-panel p {
  margin: 7px 0 0;
  color: #38575d;
  line-height: 1.45;
}

.case-review-panel .case-review-category {
  display: inline-flex;
  margin: 2px 0 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #087366;
  background: #e2f7f2;
  font-size: 0.72rem;
  font-weight: 850;
}

.case-review-panel .timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.case-review-panel .timeline-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(8, 52, 61, 0.1);
  border-radius: 9px;
  background: #f7fbfb;
}

.case-review-panel .timeline-row strong,
.case-review-panel .timeline-row span {
  display: block;
}

.case-review-panel .timeline-row span {
  color: #5d7479;
  font-size: 0.75rem;
}

@media (max-width: 850px) {
  .performance-employee-picker-list,
  .performance-modal-card .performance-option-list,
  .case-review-content,
  .case-review-panel .timeline-list {
    grid-template-columns: 1fr;
  }

  .performance-modal-card .performance-modal-grid {
    grid-template-columns: 1fr !important;
  }

  .case-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-review-panel.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .performance-employee-picker-modal,
  .performance-modal-card,
  .case-review-modal {
    width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 16px !important;
  }

  .performance-employee-picker-toolbar,
  .performance-review-head-actions,
  .case-review-summary {
    grid-template-columns: 1fr;
  }

  .performance-review-head-actions {
    display: grid;
    width: 100%;
  }

  .performance-review-date {
    min-width: 0;
  }

  .performance-modal-card .modal-head,
  .case-review-modal > .modal-head {
    align-items: stretch !important;
  }

  .performance-modal-card > .selected-employee,
  .performance-modal-card .modal-note-field {
    margin-right: 12px !important;
    margin-left: 12px !important;
  }

  .performance-modal-card .performance-modal-grid {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .case-review-summary,
  .case-review-content {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Performance record: calm, document-first review workspace. */
.case-review-modal {
  width: min(1120px, calc(100vw - 28px)) !important;
  max-height: min(920px, calc(100dvh - 24px)) !important;
  border: 1px solid rgba(20, 89, 91, 0.18) !important;
  border-radius: 24px !important;
  background: #edf6f5 !important;
  box-shadow: 0 28px 80px rgba(7, 36, 42, 0.28) !important;
}

.case-review-modal > .modal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 126px;
  padding: 22px 28px !important;
  border-bottom: 1px solid rgba(9, 90, 87, 0.15) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(23, 183, 166, 0.13), transparent 30%),
    linear-gradient(118deg, #e8faf6 0%, #f5fbfc 65%, #eaf5fa 100%) !important;
}

.case-review-modal > .modal-head .eyebrow {
  margin-bottom: 6px;
  color: #0c8175;
}

.case-review-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.case-review-title-row h2 {
  margin: 0;
  color: #082d34;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.06;
}

.case-review-modal > .modal-head .muted {
  margin: 8px 0 0;
  color: #567178;
  font-size: 0.84rem;
  font-weight: 720;
}

.case-review-modal > .modal-head .ghost-btn {
  align-self: center;
  min-width: 82px;
  border-color: rgba(8, 60, 67, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

.case-review-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #c8d9dc;
  border-radius: 999px;
  color: #53666b;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-review-status.is-pending,
.case-review-status.is-pending-performance-delivery,
.case-review-status.is-pending-da-ack {
  border-color: #e8cf91;
  color: #8b620d;
  background: #fff8e8;
}

.case-review-status.is-acknowledged,
.case-review-status[class*="is-closed"] {
  border-color: #a8ddc8;
  color: #176d51;
  background: #e9f8f1;
}

.case-review-modal .case-detail {
  display: block;
  padding: 18px !important;
  background: #edf6f5;
}

.case-review-document {
  overflow: hidden;
  border: 1px solid rgba(12, 68, 75, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 49, 55, 0.07);
}

.case-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #dce8e8;
  background: linear-gradient(90deg, #f0faf7, #f7fbfc);
}

.case-review-summary > div {
  position: relative;
  min-height: 94px;
  padding: 17px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-review-summary > div + div::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 1px;
  content: "";
  background: #d6e5e4;
}

.case-review-summary span,
.case-review-panel > span {
  color: #0b7c70;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.075em;
}

.case-review-summary strong {
  overflow: hidden;
  color: #102f35;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-review-summary small {
  overflow: hidden;
  color: #6b7f84;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-review-content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.case-review-panel {
  grid-column: span 6;
  min-height: 0;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid #e0eaea;
  border-radius: 0;
  background: #fff;
}

.case-review-panel:nth-child(even):not(.is-wide) {
  border-left: 1px solid #e0eaea;
}

.case-review-panel.is-concern {
  grid-column: span 7;
  margin: 16px 0 16px 16px;
  padding: 18px 20px;
  border: 1px solid #bfe6dc;
  border-left: 5px solid #13a991;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fbf8, #f8fcfc);
}

.case-review-panel.is-supervisor {
  grid-column: span 5;
  margin: 16px 16px 16px 12px;
  padding: 18px 20px;
  border: 1px solid #dbe7e7;
  border-radius: 14px;
  background: #fbfdfd;
}

.case-review-panel.is-wide {
  grid-column: 1 / -1;
}

.case-review-panel.is-notice {
  padding-top: 18px;
  padding-bottom: 22px;
  background: #fff;
}

.case-review-panel h3 {
  margin: 7px 0 3px;
  color: #102f35;
  font-size: 1.04rem;
}

.case-review-panel p {
  max-width: 92ch;
  margin: 7px 0 0;
  color: #3f5a60;
  line-height: 1.55;
}

.case-review-panel.is-notice p {
  color: #183a40;
  font-size: 0.95rem;
  font-weight: 720;
}

.case-review-panel .case-review-category {
  margin: 3px 0 7px;
  padding: 4px 9px;
  background: #dff4ef;
}

.case-review-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem !important;
}

.case-review-state.is-pending {
  color: #8b620d;
  background: #fff5d9;
}

.case-review-state.is-complete {
  color: #176c50;
  background: #e2f6ed;
}

.case-review-panel.is-voice .inline-actions {
  margin-top: 9px;
}

.case-review-panel.is-activity {
  padding-bottom: 24px;
  border-bottom: 0;
  background: #f9fcfc;
}

.case-review-panel .timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  padding-left: 4px;
}

.case-review-panel .timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-review-panel .timeline-row:not(:last-child)::before {
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  width: 2px;
  content: "";
  background: #cce4df;
}

.case-review-panel .timeline-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 3px solid #dff5ef;
  border-radius: 50%;
  background: #0da58e;
  box-shadow: 0 0 0 1px #67cbbb;
}

.case-review-panel .timeline-row strong {
  color: #18383e;
  font-size: 0.83rem;
}

.case-review-panel .timeline-row span:not(.timeline-dot) {
  margin-top: 2px;
  color: #73858a;
  font-size: 0.71rem;
}

@media (max-width: 850px) {
  .case-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-review-summary > div:nth-child(3)::before {
    display: none;
  }

  .case-review-summary > div:nth-child(n + 3) {
    border-top: 1px solid #d6e5e4;
  }

  .case-review-panel,
  .case-review-panel.is-concern,
  .case-review-panel.is-supervisor {
    grid-column: 1 / -1;
  }

  .case-review-panel.is-concern,
  .case-review-panel.is-supervisor {
    margin: 12px 12px 0;
  }

  .case-review-panel.is-supervisor {
    margin-bottom: 12px;
  }

  .case-review-panel:nth-child(even):not(.is-wide) {
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .case-review-modal > .modal-head {
    min-height: 0;
    padding: 17px 16px !important;
  }

  .case-review-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .case-review-modal > .modal-head .ghost-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 66px;
  }

  .case-review-modal > .modal-head > div {
    padding-right: 72px;
  }

  .case-review-modal .case-detail {
    padding: 8px !important;
  }

  .case-review-document {
    border-radius: 14px;
  }

  .case-review-summary > div {
    min-height: 84px;
    padding: 13px;
  }

  .case-review-panel {
    padding: 16px;
  }
}
/* Employee-profile context: keep Performance focused on the selected employee's history. */
.performance-center-page.performance-employee-context .hero-actions #heroImportScorecardBtn,
.performance-center-page.performance-employee-context .hero-actions #newPerformanceBtn,
.performance-center-page.performance-employee-context .performance-dashboard-counts,
.performance-center-page.performance-employee-context .performance-dashboard-toolbar,
.performance-center-page.performance-employee-context .performance-list-section.is-hr-queue {
  display: none !important;
}

.performance-center-page.performance-employee-context .performance-dashboard-head {
  grid-template-columns: minmax(0, 1fr);
}

.performance-center-page.performance-employee-context .performance-list-section:not(.is-hr-queue) {
  margin-top: 0;
}

/* Workforce Directory: compact employee lifecycle workspace. */
.people-directory-page #authActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.people-directory-page .employee-create-launch {
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 143, 125, 0.2);
}

.people-directory-page .process-launch-btn {
  min-height: 44px;
  border-radius: 12px;
}

.people-directory-page .process-modal-dialog {
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(11, 119, 107, 0.2);
  border-top: 4px solid var(--people-teal);
  border-radius: 24px;
  background: #f8fcfb;
  box-shadow: 0 28px 80px rgba(5, 37, 42, 0.28);
}

.people-directory-page .process-modal-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(11, 119, 107, 0.14);
  background:
    radial-gradient(circle at 92% 10%, rgba(25, 189, 166, 0.14), transparent 26%),
    linear-gradient(135deg, #eaf9f6 0%, #f1f8fc 100%);
}

.people-directory-page .process-modal-header h2 {
  margin: 4px 0 3px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.people-directory-page .process-modal-header .process-note {
  max-width: 650px;
  margin: 0;
  color: var(--people-muted);
}

.people-directory-page .process-modal-actions,
.people-directory-page .process-shortcuts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.people-directory-page .process-modal-actions {
  position: relative;
  flex-wrap: nowrap;
  padding-right: 44px;
}

.people-directory-page .process-shortcuts {
  flex-wrap: nowrap;
}

.people-directory-page .process-shortcut-btn,
.people-directory-page .process-modal-actions > .btn-icon-label {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(16, 91, 84, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--people-ink);
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
}

.people-directory-page .process-shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(10, 61, 62, 0.05);
}

.people-directory-page .process-shortcut-btn:hover,
.people-directory-page .process-shortcut-btn:focus-visible {
  border-color: transparent;
  background: rgba(9, 145, 126, 0.1);
  color: #075f55;
}

.people-directory-page .process-shortcut-icon {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding-inline: 4px;
  border-radius: 7px;
  background: rgba(8, 145, 127, 0.11);
  color: #087567;
  font-size: 0.7rem;
  font-weight: 950;
}

.people-directory-page .process-shortcut-btn.employee-create-launch.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #087f70, #0da68f);
  color: #fff;
  box-shadow: 0 7px 16px rgba(0, 126, 110, 0.2);
}

.people-directory-page .process-shortcut-btn.employee-create-launch.is-primary .process-shortcut-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.people-directory-page .process-shortcut-btn.employee-create-launch.is-primary:hover,
.people-directory-page .process-shortcut-btn.employee-create-launch.is-primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #067d70, #0ca68f);
  color: #fff;
}

.people-directory-page #employeeCreateOpen,
.people-directory-page #employeeCreateOpen:focus-visible {
  border-color: transparent;
  outline: 0;
  background: linear-gradient(135deg, #087f70, #0da68f);
  color: #fff;
}

.people-directory-page .process-modal-close {
  width: 38px;
  min-width: 38px;
  padding: 0;
  overflow: hidden;
  color: transparent;
}

.people-directory-page .process-modal-close::before {
  content: "×";
  color: #4f6967;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.people-directory-page .process-modal-close:hover,
.people-directory-page .process-modal-close:focus-visible {
  background: rgba(127, 45, 54, 0.09);
}

.people-directory-page .process-modal-close:hover::before,
.people-directory-page .process-modal-close:focus-visible::before {
  color: #8d313b;
}

/* Compact standalone close control; it is intentionally separated from the
   lifecycle shortcuts so labels never collide at narrower desktop widths. */
.people-directory-page .process-modal-actions > .process-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(16, 91, 84, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #4f6967;
  font-size: 0;
}

.people-directory-page .process-modal-actions > .process-modal-close::before {
  content: none;
}

.people-directory-page .process-modal-close span {
  display: none;
}

.people-directory-page .process-modal-actions > .process-modal-close::after {
  content: "\00d7";
  color: currentColor;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.people-directory-page .process-modal-actions > .process-modal-close:hover,
.people-directory-page .process-modal-actions > .process-modal-close:focus-visible {
  background: rgba(127, 45, 54, 0.09);
  color: #8d313b;
}

.people-directory-page .process-stage-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 24px;
  border: 0;
}

.people-directory-page .process-stage-card {
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 92, 84, 0.13);
  border-radius: 14px;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.people-directory-page .process-stage-card:hover,
.people-directory-page .process-stage-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 167, 145, 0.42);
}

.people-directory-page .process-stage-card.is-active {
  border-color: #27bca8;
  background: linear-gradient(135deg, #dff8f2, #edf9fb);
  box-shadow: inset 4px 0 0 #0aa78f;
}

.people-directory-page .process-stage-card .process-stage-count {
  margin: 3px 0 1px;
  font-size: 1.6rem;
  line-height: 1;
}

.people-directory-page .process-stage-card .process-stage-name {
  font-size: 0.86rem;
  line-height: 1.2;
}

.people-directory-page .process-stage-card .process-stage-text {
  display: none;
}

.people-directory-page .process-board-grid {
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.65fr);
  gap: 14px;
  padding: 0 24px 24px;
}

.people-directory-page .process-panel {
  padding: 18px;
  border: 1px solid rgba(15, 92, 84, 0.13);
  border-radius: 16px;
  background: #fff;
}

.people-directory-page .process-panel .process-guide-list {
  display: none;
}

.people-directory-page .process-stage-copy {
  margin-block: 7px 10px;
  line-height: 1.45;
}

.people-directory-page .process-stage-meta {
  margin-bottom: 0;
}

.people-directory-page .process-queue-list {
  gap: 0;
  border-top: 1px solid var(--people-line);
}

.people-directory-page .process-queue-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  min-height: 68px;
  padding: 10px 4px;
}

.employee-create-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  isolation: isolate;
}

.employee-create-modal.is-open {
  display: grid;
  place-items: center;
  padding: 16px;
}

.employee-create-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 29, 34, 0.58);
  backdrop-filter: blur(9px);
}

.employee-create-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(17, 122, 109, 0.2);
  border-top: 4px solid var(--people-teal);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(5, 37, 42, 0.34);
}

.employee-create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid rgba(11, 119, 107, 0.14);
  background: linear-gradient(135deg, #e9faf6, #f0f8fc);
}

.employee-create-header h2 {
  margin: 4px 0 5px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.employee-create-header p {
  max-width: 520px;
  margin: 0;
  color: var(--people-muted);
  line-height: 1.45;
}

.employee-create-form {
  padding: 24px 26px 26px;
}

.employee-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.employee-create-field {
  display: grid;
  gap: 8px;
  color: var(--people-ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-create-field-wide {
  grid-column: 1 / -1;
}

.employee-create-field small {
  color: var(--people-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.employee-create-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(23, 91, 87, 0.2);
  border-radius: 12px;
  background: #fbfefd;
  color: var(--people-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.employee-create-field input:focus {
  border-color: #12ad98;
  outline: 3px solid rgba(18, 173, 152, 0.13);
}

.employee-create-notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #eef8f6;
  color: #155e55;
  font-weight: 800;
}

.employee-create-notice.is-error {
  background: #fff0f1;
  color: #9f2f40;
}

.employee-create-notice.is-success {
  background: #e7f8ef;
  color: #116c4c;
}

.employee-create-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--people-line);
}

body.process-modal-open,
body.employee-create-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .people-directory-page .process-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .people-directory-page .process-board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .people-directory-page #authActions {
    width: 100%;
    justify-content: flex-start;
  }

  .people-directory-page #authActions > * {
    flex: 1 1 auto;
  }

  .people-directory-page .process-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px 16px;
  }

  .people-directory-page .process-modal-header > div:first-child {
    width: 100%;
    min-width: 0;
    padding-right: 42px;
  }

  .people-directory-page .process-modal-header h2 {
    margin-top: 5px;
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }

  .people-directory-page .process-modal-header .process-note {
    max-width: none;
    margin-top: 7px;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
  }

  .people-directory-page .process-modal-actions {
    position: static;
    width: 100%;
    padding: 0;
  }

  .people-directory-page .process-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 6px;
    overflow: visible;
  }

  .people-directory-page .process-shortcuts > * {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
    justify-content: center;
    overflow: hidden;
  }

  .people-directory-page .process-shortcut-btn {
    font-size: 0.72rem;
  }

  .people-directory-page .process-shortcut-icon {
    min-width: 19px;
    height: 19px;
    padding-inline: 3px;
    font-size: 0.62rem;
  }

  .people-directory-page .process-modal-actions > .process-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .people-directory-page .process-modal-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
    border-radius: 18px;
  }

  .people-directory-page .process-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px;
  }

  .people-directory-page .process-board-grid {
    padding: 0 14px 14px;
  }

  .people-directory-page .process-queue-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .people-directory-page .process-queue-meta,
  .people-directory-page .process-open-btn {
    grid-column: 2;
  }

  .employee-create-modal.is-open {
    padding: 6px;
  }

  .employee-create-dialog {
    max-height: calc(100dvh - 12px);
    border-radius: 18px;
  }

  .employee-create-header {
    padding: 18px;
  }

  .employee-create-header .btn-icon-label {
    width: auto;
    flex: 0 0 auto;
  }

  .employee-create-form {
    padding: 18px;
  }

  .employee-create-grid {
    grid-template-columns: 1fr;
  }

  .employee-create-field-wide {
    grid-column: auto;
  }

  .employee-create-footer > * {
    flex: 1 1 0;
  }
}

@media (max-width: 390px) {
  .people-directory-page .process-shortcut-icon {
    display: none;
  }

  .people-directory-page .process-shortcut-btn {
    padding-inline: 4px;
    font-size: 0.69rem;
  }
}

/* Uniform-style performance notice list */
.performance-center-page .performance-dashboard-table-head {
  display: none !important;
}

.performance-center-page .performance-list-section {
  padding: 8px 12px 12px;
  background: #f8fbfb;
}

.performance-center-page .performance-list-section + .performance-list-section {
  border-top: 1px solid #d9e9e6;
}

.performance-center-page .performance-list-section > header {
  min-height: 46px;
  margin: 0 -12px 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #d9e9e6;
  background: #f3f9f8;
}

.performance-center-page .performance-list-section > header h3 {
  font-size: 0.95rem;
}

.performance-center-page .performance-dashboard-list {
  display: grid;
  gap: 6px;
}

.performance-center-page .performance-dashboard-list .case-card {
  grid-template-columns: minmax(250px, 1.8fr) minmax(125px, 0.75fr) minmax(155px, 0.9fr) minmax(130px, 0.72fr) auto !important;
  gap: 10px 14px;
  min-height: 58px;
  padding: 8px 12px !important;
  border: 1px solid #b7e2da !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(14, 74, 73, 0.035) !important;
}

.performance-center-page .performance-dashboard-list .case-card:hover {
  border-color: #74cbbd !important;
  background: #f1fbf9 !important;
  box-shadow: inset 3px 0 0 var(--people-teal), 0 5px 14px rgba(14, 74, 73, 0.07) !important;
}

.performance-center-page .case-primary,
.performance-center-page .case-week,
.performance-center-page .case-action-summary,
.performance-center-page .case-status-summary {
  gap: 1px;
}

.performance-center-page .case-primary strong {
  font-size: 0.9rem;
}

.performance-center-page .case-primary span,
.performance-center-page .case-week strong,
.performance-center-page .case-action-summary strong {
  font-size: 0.74rem;
}

.performance-center-page .case-primary small,
.performance-center-page .case-week span,
.performance-center-page .case-action-summary span,
.performance-center-page .case-status-summary small {
  font-size: 0.64rem;
}

.performance-center-page .case-status-summary .status-pill {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #b7e2da;
  font-size: 0.66rem;
}

.performance-center-page .performance-dashboard-list .case-actions .mini-btn {
  min-height: 30px !important;
  padding: 5px 9px !important;
  border-radius: 8px;
  font-size: 0.68rem;
}

.performance-center-page .performance-dashboard-list > .empty-state {
  min-height: 82px;
  padding: 26px 18px;
  border: 1px dashed #b7e2da;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1050px) {
  .performance-center-page .performance-dashboard-list .case-card {
    grid-template-columns: minmax(210px, 1.7fr) minmax(125px, 0.8fr) minmax(125px, 0.8fr) auto !important;
  }
}

@media (max-width: 720px) {
  .performance-center-page .performance-list-section {
    padding: 7px 8px 10px;
  }

  .performance-center-page .performance-list-section > header {
    margin: 0 -8px 7px;
    padding-inline: 12px;
  }

  .performance-center-page .performance-dashboard-list .case-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px 10px;
    min-height: 76px;
    padding: 10px 11px !important;
  }

  .performance-center-page .case-week {
    align-self: end;
  }

  .performance-center-page .case-status-summary {
    align-self: start;
  }

  .performance-center-page .performance-dashboard-list .case-actions {
    align-self: end;
  }
}

@media (max-width: 430px) {
  .performance-center-page .case-status-summary small {
    display: none;
  }

  .performance-center-page .performance-dashboard-list .case-actions .mini-btn {
    min-width: 64px;
  }
}

/* Performance record modal actions live inside the modal frame. */
.performance-center-page #caseModal.modal-backdrop {
  align-items: center;
  padding: 12px;
  overflow: hidden;
}

.case-review-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

.case-review-modal > .modal-head {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}

.case-review-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.case-review-scroll > .hr-decision-area {
  margin: 0 18px 16px;
  padding: 16px;
  border: 1px solid #b7e2da;
  border-radius: 14px;
  background: #fff;
}

.case-review-scroll > .hr-decision-area .form-actions {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #d9e9e6;
}

.case-review-footer {
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 12px 20px;
  border-top: 1px solid #cfe2df;
  background: rgba(248, 252, 251, 0.98);
  box-shadow: 0 -10px 28px rgba(8, 49, 55, 0.07);
}

.case-review-footer-note {
  color: #60777c;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-review-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.case-review-footer-actions .ghost-btn,
.case-review-footer-actions .primary-btn {
  min-height: 40px;
  padding: 8px 14px;
}

.performance-center-page .performance-dashboard-list .case-card {
  grid-template-columns: minmax(250px, 1.8fr) minmax(125px, 0.75fr) minmax(155px, 0.9fr) minmax(130px, 0.72fr) !important;
  padding-right: 38px !important;
}

.performance-center-page .performance-dashboard-list .case-card.is-openable {
  cursor: pointer;
}

.performance-center-page .performance-dashboard-list .case-card.is-openable::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #0b8275;
  content: "›";
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.performance-center-page .performance-dashboard-list .case-card.is-openable:focus-visible {
  border-color: #36aa99 !important;
  outline: 3px solid rgba(19, 169, 145, 0.18);
  outline-offset: 1px;
}

@media (max-width: 1050px) {
  .performance-center-page .performance-dashboard-list .case-card {
    grid-template-columns: minmax(210px, 1.7fr) minmax(125px, 0.8fr) minmax(125px, 0.8fr) !important;
  }
}

@media (max-width: 720px) {
  .performance-center-page .performance-dashboard-list .case-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .performance-center-page .performance-dashboard-list .case-card.is-openable::after {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .case-review-modal > .modal-head .ghost-btn {
    right: 14px;
    left: auto;
    width: auto;
    min-width: 66px;
  }

  .case-review-footer {
    padding: 10px 12px;
  }

  .case-review-footer-note {
    display: none;
  }

  .case-review-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .case-review-footer-actions .ghost-btn,
  .case-review-footer-actions .primary-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .case-review-footer-actions:has(.primary-btn.hidden) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-review-footer-actions:has(#openProfileBtn.hidden):has(.primary-btn.hidden) {
    grid-template-columns: 1fr;
  }

  .case-review-scroll > .hr-decision-area {
    margin: 0 8px 10px;
    padding: 12px;
  }
}

/* Softer Performance filters, notice rows, and actions. */
.performance-center-page .performance-main-status-toolbar {
  padding: 14px 18px;
  border-bottom: 1px solid #dbe9e7;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

.performance-center-page .performance-main-status-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.performance-center-page .performance-main-status-grid .history-status-card {
  min-height: 58px;
  border-color: #d4e5e2 !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #ffffff, #f8fcfb) !important;
  box-shadow: 0 5px 16px rgba(8, 47, 56, 0.045) !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.performance-center-page .performance-main-status-grid .history-status-card:hover {
  border-color: #9fd5cd !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(8, 47, 56, 0.08) !important;
  transform: translateY(-1px);
}

.performance-center-page .performance-main-status-grid .history-status-card[aria-pressed="true"] {
  border-color: #79cbbf !important;
  color: #086b62 !important;
  background: linear-gradient(145deg, #e8faf6, #dff5f1) !important;
  box-shadow: 0 7px 18px rgba(7, 108, 99, 0.1) !important;
}

.performance-center-page .performance-main-status-grid .history-status-card[aria-pressed="true"] strong {
  color: #075b54;
}

.performance-center-page .performance-list-section {
  padding: 12px 16px 16px;
  background: #f6faf9;
}

.performance-center-page .performance-list-section > header {
  margin: 0 -16px 12px;
  padding: 10px 18px;
  border-color: #dceae8;
  background: rgba(255, 255, 255, 0.72);
}

.performance-center-page .performance-dashboard-list {
  gap: 8px;
}

.performance-center-page .performance-dashboard-list .case-card {
  min-height: 66px;
  padding: 10px 44px 10px 14px !important;
  border: 1px solid #d4e5e2 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ffffff, #fbfdfd) !important;
  box-shadow: 0 4px 14px rgba(8, 47, 56, 0.045) !important;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.performance-center-page .performance-dashboard-list .case-card:hover {
  border-color: #9dd4cc !important;
  background: #ffffff !important;
  box-shadow: 0 9px 24px rgba(8, 47, 56, 0.09) !important;
  transform: translateY(-1px);
}

.performance-center-page .performance-dashboard-list .case-card.is-openable::after {
  right: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #188678;
  background: #edf8f6;
  font-size: 1.08rem;
}

.performance-center-page .case-status-summary .status-pill {
  min-height: 27px;
  padding: 5px 10px;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 102, 94, 0.16);
}

.performance-center-page .performance-history-open-btn,
.performance-center-page .compact-action-btn {
  border-color: #c7dedb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(8, 47, 56, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.performance-center-page .performance-history-open-btn:hover,
.performance-center-page .compact-action-btn:hover {
  border-color: #9bcfc8 !important;
  box-shadow: 0 7px 16px rgba(8, 47, 56, 0.1);
  transform: translateY(-1px);
}

.performance-center-page .primary-btn.compact-action-btn {
  border-color: transparent !important;
  background: linear-gradient(135deg, #08776c, #0a9583) !important;
}

@media (max-width: 1050px) {
  .performance-center-page .performance-main-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .performance-center-page .performance-main-status-toolbar {
    padding: 10px;
  }

  .performance-center-page .performance-main-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 126px;
    overflow-y: auto;
  }

  .performance-center-page .performance-main-status-grid .history-status-card {
    min-height: 50px;
  }

  .performance-center-page .performance-list-section {
    padding: 9px 10px 12px;
  }

  .performance-center-page .performance-list-section > header {
    margin: 0 -10px 9px;
    padding-inline: 12px;
  }

  .performance-center-page .performance-dashboard-list .case-card {
    min-height: 82px;
    padding: 11px 42px 11px 12px !important;
  }
}

/* Performance Record is presented as a formal paper document, not a dashboard page. */
.performance-center-page #caseModal.modal-backdrop {
  background: rgba(17, 36, 40, 0.64);
  backdrop-filter: blur(7px);
}

.performance-center-page .case-review-modal {
  width: min(1040px, calc(100vw - 28px)) !important;
  border: 1px solid rgba(205, 220, 220, 0.9) !important;
  border-radius: 18px !important;
  background: #e9eeee !important;
  box-shadow: 0 34px 100px rgba(3, 24, 29, 0.36) !important;
}

.performance-center-page .case-review-modal > .modal-head {
  min-height: 92px;
  padding: 15px 22px !important;
  border-bottom: 1px solid #d5dfdf !important;
  background: rgba(255, 255, 255, 0.97) !important;
}

.performance-center-page .case-review-title-row h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.performance-center-page .case-review-modal > .modal-head .muted {
  margin-top: 5px;
  font-size: 0.76rem;
}

.performance-center-page .case-review-scroll {
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    #e5ebeb;
}

.performance-center-page .case-review-modal .case-detail {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 !important;
  background: transparent;
}

.performance-center-page .case-review-document {
  overflow: hidden;
  border: 1px solid #d7dfdf;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(21, 46, 50, 0.14);
}

.case-review-letterhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  border-top: 5px solid #249f8e;
  border-bottom: 1px solid #dce5e4;
}

.case-review-letterhead-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-review-letterhead-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #249f8e;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.case-review-letterhead-brand strong,
.case-review-letterhead-brand small,
.case-review-reference span,
.case-review-reference strong,
.case-review-reference small {
  display: block;
}

.case-review-letterhead-brand strong {
  color: #17383d;
  font-size: 1rem;
}

.case-review-letterhead-brand small {
  margin-top: 2px;
  color: #698085;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-review-reference {
  max-width: 300px;
  text-align: right;
}

.case-review-reference span {
  color: #638086;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-review-reference strong {
  overflow: hidden;
  margin-top: 3px;
  color: #183a40;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-review-reference small {
  margin-top: 4px;
  color: #71858a;
  font-size: 0.68rem;
}

.performance-center-page .case-review-summary {
  margin: 0 28px;
  border-bottom: 2px solid #dbe5e4;
  background: #fff;
}

.performance-center-page .case-review-summary > div {
  min-height: 88px;
  padding: 18px 14px;
}

.performance-center-page .case-review-summary > div:first-child {
  padding-left: 0;
}

.performance-center-page .case-review-summary > div:last-child {
  padding-right: 0;
}

.performance-center-page .case-review-content {
  display: block;
  padding: 0 28px;
}

.performance-center-page .case-review-panel,
.performance-center-page .case-review-panel.is-concern,
.performance-center-page .case-review-panel.is-supervisor {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid #e1e8e7;
  border-radius: 0;
  background: #fff;
}

.performance-center-page .case-review-panel > span {
  grid-column: 1;
  grid-row: 1 / span 4;
  padding-top: 3px;
}

.performance-center-page .case-review-panel > :not(span) {
  grid-column: 2;
}

.performance-center-page .case-review-panel.is-concern {
  border-left: 0;
}

.performance-center-page .case-review-panel.is-concern::before {
  position: absolute;
  content: none;
}

.performance-center-page .case-review-panel.is-activity {
  border-bottom: 0;
}

.case-review-document-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 28px;
  border-top: 1px solid #dce5e4;
  color: #76898d;
  background: #fafcfc;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.performance-center-page .case-review-scroll > .hr-decision-area {
  width: min(900px, 100%);
  margin: 18px auto 0;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 46, 50, 0.08);
}

.performance-center-page .case-review-footer {
  min-height: 60px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.97);
}

@media (max-width: 720px) {
  .performance-center-page .case-review-scroll {
    padding: 8px;
  }

  .case-review-letterhead {
    padding: 18px 16px;
  }

  .case-review-reference {
    display: none;
  }

  .performance-center-page .case-review-summary {
    margin: 0 16px;
  }

  .performance-center-page .case-review-content {
    padding: 0 16px;
  }

  .performance-center-page .case-review-panel,
  .performance-center-page .case-review-panel.is-concern,
  .performance-center-page .case-review-panel.is-supervisor {
    display: block;
    padding: 17px 0;
  }

  .performance-center-page .case-review-panel > span {
    display: block;
    margin-bottom: 7px;
  }
}

/* Softer document treatment: quieter contrast, lighter rules, and less visual weight. */
.performance-center-page .case-review-modal {
  background: #f1f5f4 !important;
  box-shadow: 0 26px 72px rgba(13, 42, 47, 0.26) !important;
}

.performance-center-page .case-review-scroll {
  background: #edf2f1;
}

.performance-center-page .case-review-document {
  border-color: #dde7e5;
  background: #fefefe;
  box-shadow: 0 12px 34px rgba(25, 58, 61, 0.1);
}

.case-review-letterhead {
  border-top-width: 4px;
  border-top-color: #55b8a8;
  border-bottom-color: #e4ecea;
}

.case-review-letterhead-mark {
  color: #176f64;
  background: #e1f4f0;
}

.case-review-letterhead-brand strong {
  color: #26464a;
  font-weight: 800;
}

.case-review-letterhead-brand small,
.case-review-reference span,
.case-review-document-footer {
  color: #789095;
  font-weight: 750;
}

.case-review-reference strong {
  color: #4b666a;
  font-weight: 700;
}

.performance-center-page .case-review-summary {
  border-bottom-color: #e2ebe9;
}

.performance-center-page .case-review-summary > div + div::before {
  background: #e5edeb;
}

.performance-center-page .case-review-summary span,
.performance-center-page .case-review-panel > span {
  color: #62817f;
  font-weight: 800;
  letter-spacing: 0.065em;
}

.performance-center-page .case-review-summary strong {
  color: #254247;
  font-size: 0.96rem;
  font-weight: 780;
}

.performance-center-page .case-review-summary small {
  color: #768b8f;
  font-weight: 600;
}

.performance-center-page .case-review-panel,
.performance-center-page .case-review-panel.is-concern,
.performance-center-page .case-review-panel.is-supervisor {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom-color: #e7edec;
  background: #fefefe;
}

.performance-center-page .case-review-panel h3 {
  color: #29464b;
  font-size: 1rem;
  font-weight: 780;
}

.performance-center-page .case-review-panel p,
.performance-center-page .case-review-panel.is-notice p {
  color: #4d656a;
  font-size: 0.9rem;
  font-weight: 590;
  line-height: 1.58;
}

.performance-center-page .case-review-panel .case-review-category {
  display: inline-flex;
  justify-self: start;
  width: auto;
  padding: 5px 10px;
  border: 1px solid #cfe8e2;
  border-radius: 999px;
  color: #3d6f68;
  background: #edf8f5;
  font-size: 0.72rem;
  font-weight: 720;
}

.performance-center-page .case-review-state {
  justify-self: start;
  width: auto;
  min-height: 27px;
  padding: 5px 11px;
  border: 1px solid transparent;
  font-weight: 760;
}

.performance-center-page .case-review-state.is-pending {
  border-color: #f0dfad;
  color: #82641c;
  background: #fff9e9;
}

.performance-center-page .case-training-actions a {
  border: 1px solid #a9d9d0;
  color: #176f64;
  background: #edf8f5;
  box-shadow: none;
}

.performance-center-page .case-training-actions a:hover {
  border-color: #7ec7ba;
  background: #e4f5f1;
}

.performance-center-page .case-review-panel .timeline-dot {
  border-color: #ebf7f4;
  background: #55b8a8;
  box-shadow: 0 0 0 1px #9bd5cb;
}

.performance-center-page .case-review-panel .timeline-row:not(:last-child)::before {
  background: #deebe8;
}

.performance-center-page .case-review-footer {
  border-top-color: #dde7e5;
  box-shadow: 0 -7px 20px rgba(19, 53, 57, 0.05);
}

.performance-center-page .case-review-footer-actions .ghost-btn {
  border-color: #d5e1df;
  color: #36565a;
  background: #fbfdfc;
  box-shadow: none;
}

.performance-center-page .case-review-footer-actions .primary-btn {
  background: #3aaa98;
  box-shadow: 0 5px 13px rgba(34, 143, 126, 0.16);
}

/* Performance is an informational view: soft cards, concise content, no document table. */
.performance-center-page .case-review-modal {
  width: min(930px, calc(100vw - 28px)) !important;
  background: #f6faf9 !important;
}

.performance-center-page .case-review-modal > .modal-head {
  min-height: 82px;
  padding: 13px 20px !important;
  background: #fbfefd !important;
}

.performance-center-page .case-review-scroll {
  padding: 18px;
  background: #f1f6f5;
}

.performance-center-page .case-review-modal .case-detail {
  width: min(820px, 100%);
}

.performance-center-page .case-review-document.case-review-information {
  overflow: visible;
  border: 1px solid #dce9e6;
  border-radius: 20px;
  background: #fbfefd;
  box-shadow: 0 10px 28px rgba(31, 78, 75, 0.07);
}

.case-review-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2eeeb;
}

.case-review-person-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.case-review-person-avatar {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #bfe3dc;
  border-radius: 14px;
  color: #26796f;
  background: #e9f7f4;
  font-size: 0.72rem;
  font-weight: 850;
}

.case-review-person-summary small,
.case-review-section-heading small,
.case-review-info-card small,
.case-review-training-card small,
.case-review-ack-card small {
  display: block;
  color: #78908f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.case-review-person-summary h3 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #29494d;
  font-size: 1rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-review-person-summary p {
  margin: 2px 0 0;
  color: #718789;
  font-size: 0.72rem;
}

.case-review-meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.case-review-meta-chips > span {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 7px 10px;
  border: 1px solid #d9e8e5;
  border-radius: 11px;
  background: #f5faf9;
}

.case-review-meta-chips small {
  color: #819492;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-review-meta-chips strong {
  color: #39575b;
  font-size: 0.72rem;
  font-weight: 760;
}

.performance-center-page .case-review-information .case-review-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 11px;
  padding: 14px;
}

.performance-center-page .case-review-information .case-review-content > * {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
}

.case-review-focus-card,
.case-review-info-card,
.case-review-training-card,
.case-review-evidence-card,
.case-review-ack-card,
.case-review-activity-card {
  border: 1px solid #dfeae8;
  border-radius: 15px;
  background: #fff;
}

.case-review-focus-card {
  padding: 18px;
  border-color: #cce7e1;
  background: linear-gradient(135deg, #f1faf8, #fbfefd);
}

.case-review-focus-heading,
.case-review-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-review-focus-heading > span {
  color: #5f817e;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.case-review-focus-card .case-review-category {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid #cce8e2;
  border-radius: 999px;
  color: #4f766f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
}

.case-review-focus-card h3 {
  margin: 12px 0 4px;
  color: #28484c;
  font-size: 1.12rem;
  font-weight: 780;
}

.case-review-focus-card > p:last-child {
  max-width: 78ch;
  margin: 0;
  color: #50696d;
  font-size: 0.88rem;
  font-weight: 540;
  line-height: 1.58;
}

.case-review-info-card,
.case-review-training-card,
.case-review-ack-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
}

.case-review-info-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #39786f;
  background: #eaf7f4;
  font-size: 0.66rem;
  font-weight: 900;
}

.case-review-info-card p,
.case-review-training-card p,
.case-review-ack-card p {
  margin: 4px 0 0;
  color: #536b6f;
  font-size: 0.82rem;
  line-height: 1.5;
}

.case-review-training-card h3,
.case-review-ack-card h3,
.case-review-section-heading h3 {
  margin: 3px 0 0;
  color: #304f53;
  font-size: 0.93rem;
  font-weight: 760;
}

.case-review-training-card .case-training-actions {
  margin-top: 9px;
}

.performance-center-page .case-review-training-card .case-training-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #bce0d9;
  border-radius: 10px;
  color: #34776d;
  background: #f2faf8;
  font-size: 0.73rem;
  font-weight: 760;
  text-decoration: none;
}

.case-review-evidence-card {
  padding: 15px 16px;
  border-color: #d5e7e3;
}

.case-review-section-heading > a {
  padding: 6px 9px;
  border-radius: 9px;
  color: #347b70;
  background: #edf8f5;
  font-size: 0.7rem;
  font-weight: 760;
  text-decoration: none;
}

.case-review-evidence-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.case-review-empty-copy,
.case-review-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border-radius: 11px;
  color: #7b8e90;
  background: #f7faf9;
  font-size: 0.78rem;
}

.case-review-evidence-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0eae8;
  border-radius: 11px;
  color: inherit;
  background: #fafcfc;
  text-decoration: none;
}

.case-review-evidence-item > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #437970;
  background: #e9f6f3;
  font-size: 0.54rem;
  font-weight: 850;
}

.case-review-evidence-item strong,
.case-review-evidence-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-review-evidence-item strong {
  color: #3c595d;
  font-size: 0.74rem;
  font-weight: 760;
}

.case-review-evidence-item small {
  margin-top: 2px;
  color: #829395;
  font-size: 0.63rem;
}

.case-review-ack-card {
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  background: #fbfdfc;
}

.case-review-ack-card p {
  margin: 0;
}

.case-review-activity-card {
  overflow: hidden;
}

.case-review-activity-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  color: #526d70;
  font-size: 0.76rem;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.case-review-activity-card summary::-webkit-details-marker {
  display: none;
}

.case-review-activity-card summary::after {
  color: #7c9492;
  content: "+";
  font-size: 1rem;
}

.case-review-activity-card[open] summary::after {
  content: "−";
}

.case-review-activity-card summary small {
  margin-left: auto;
  color: #899a9b;
  font-weight: 650;
}

.case-review-activity-card .timeline-list {
  display: grid;
  gap: 0;
  padding: 4px 15px 12px;
  border-top: 1px solid #edf2f1;
}

.case-review-activity-card .timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 0 0;
}

.case-review-activity-card .timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid #e6f4f1;
  border-radius: 50%;
  background: #62b8aa;
}

.case-review-activity-card .timeline-row strong,
.case-review-activity-card .timeline-row div > span {
  display: block;
}

.case-review-activity-card .timeline-row strong {
  color: #4b6568;
  font-size: 0.73rem;
  font-weight: 740;
}

.case-review-activity-card .timeline-row div > span {
  margin-top: 2px;
  color: #89999a;
  font-size: 0.64rem;
}

.performance-center-page .case-review-footer-note {
  display: none;
}

.performance-center-page .case-review-footer {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .case-review-overview {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }

  .case-review-meta-chips {
    justify-content: flex-start;
    width: 100%;
  }

  .case-review-meta-chips > span {
    flex: 1 1 90px;
  }

  .performance-center-page .case-review-information .case-review-content {
    padding: 10px;
  }

  .case-review-evidence-content {
    grid-template-columns: 1fr;
  }

  .case-review-ack-card {
    grid-template-columns: 1fr;
  }
}

/* Evidence is collected at the moment the supervisor sends the case to HR. */
.performance-review-evidence {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #cce5df;
  border-radius: 14px;
  background: #f5fbf9;
}

.performance-review-evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.performance-review-evidence-head > div {
  display: grid;
  gap: 3px;
}

.performance-review-evidence-head span,
.performance-evidence-upload > span {
  color: #426b68;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.performance-review-evidence-head small,
.performance-evidence-upload small,
.performance-evidence-empty {
  margin: 0;
  color: #778d8d;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
}

.performance-review-evidence-head .ghost-btn {
  min-height: 34px;
  padding: 6px 11px;
  border-color: #b9ddd6;
  border-radius: 10px;
  color: #347a70;
  background: #fff;
  font-size: 0.72rem;
}

.performance-evidence-links {
  display: grid;
  gap: 7px;
}

.performance-evidence-link-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(220px, 1.5fr) auto;
  gap: 7px;
}

.performance-evidence-link-row input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cbdedb;
  border-radius: 10px;
  color: #304f53;
  background: #fff;
}

.performance-evidence-link-row button {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #ead3d6;
  border-radius: 10px;
  color: #9a4b56;
  background: #fffafa;
  font-size: 0.7rem;
  font-weight: 760;
  cursor: pointer;
}

.performance-evidence-upload {
  display: grid !important;
  gap: 6px;
  padding: 12px !important;
  border: 1px dashed #9fcfc6 !important;
  border-radius: 12px;
  background: #fff;
}

.performance-evidence-upload input[type="file"] {
  min-height: 38px;
  padding: 4px;
  border: 0;
  background: transparent;
}

.performance-evidence-files-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 7px;
}

.performance-evidence-file-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #d8e7e4;
  border-radius: 10px;
  background: #fff;
}

.performance-evidence-file-card img,
.performance-evidence-file-card > span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.performance-evidence-file-card img {
  object-fit: cover;
}

.performance-evidence-file-card > span {
  display: grid;
  place-items: center;
  color: #417970;
  background: #e8f6f3;
  font-size: 0.53rem;
  font-weight: 850;
}

.performance-evidence-file-card strong,
.performance-evidence-file-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-evidence-file-card strong {
  color: #3c595d;
  font-size: 0.72rem;
}

.performance-evidence-file-card small {
  margin-top: 2px;
  color: #819394;
  font-size: 0.63rem;
}

@media (max-width: 650px) {
  .performance-review-evidence-head {
    align-items: stretch;
    flex-direction: column;
  }

  .performance-evidence-link-row {
    grid-template-columns: 1fr;
  }
}

/* Performance records remain scannable when an All/Open filter mixes states. */
.performance-center-page .performance-status-group {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid rgba(9, 56, 66, 0.11);
  border-bottom: 1px solid rgba(9, 56, 66, 0.11);
  color: #315f60;
  background: linear-gradient(90deg, #edf8f6, #f8fbfa);
}

.performance-center-page .performance-status-group:first-child {
  border-top: 0;
}

.performance-center-page .performance-status-group:not(:first-child) {
  margin-top: 8px;
}

.performance-center-page .performance-status-group span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.performance-center-page .performance-status-group span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #259f91;
  box-shadow: 0 0 0 3px rgba(37, 159, 145, 0.12);
}

.performance-center-page .performance-status-group strong {
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(37, 159, 145, 0.2);
  border-radius: 999px;
  color: #176b63;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

@media (max-width: 650px) {
  .performance-center-page .performance-status-group {
    min-height: 34px;
    padding: 7px 10px;
  }
}
