/* ===== COLOR PALETTE ===== */
:root {
  /* Primary Blues */
  --primary-dark: #1f4fa3;
  --primary-blue: #203a7a;
  --accent-blue: #4d7cff;
  --sky-blue: #39b8ff;
  
  /* Blue */
  --purple: #4d7cff;
  --purple-light: #e8f0ff;
  --purple-border: #a8c6ff;
  
  /* Blue */
  --green: #4d9fe8;
  --green-light: #e8f0ff;
  --pink-light: #e8f0ff;
  --yellow-light: #fff7e6;
  --orange-light: #e8f0ff;
  
  /* Blue */
  --blue-light: #e8f0ff;
  --blue-border: #a8c6ff;
  
  /* Backgrounds */
  --bg-light: #edf6ff;
  --bg-white: #fff;
  --bg-hover: #f8fafd;
  
  /* Borders & Text */
  --border-light: #d8e3f0;
  --border-subtle: #cfd9e8;
  --text-dark: #123;
  --text-secondary: #5a8fd8;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html.portal-login-locked {
  overflow: hidden;
}

body.portal-locked > :not(#portalLoginView) {
  display: none;
}

body.portal-locked {
  padding: 0;
  width: 100vw;
  overflow: hidden;
}

.portal-login-view {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  min-width: 320px;
  padding: 24px;
  overflow: hidden;
  color: #16382e;
  background: url("backround portal image.png") center / cover no-repeat;
  font-family: 'DM Sans', sans-serif;
}

.portal-login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  min-height: min(602px, calc(100vh - 48px));
  padding: 40px clamp(28px, 5vw, 44px);
  border: 2px solid #1f4fa3;
  border-radius: 20px;
  background: #fbfaf4;
  box-shadow: 0 24px 80px rgba(5, 45, 32, .16);
}

.portal-login-logo {
  display: block;
  width: min(150px, 100%);
  height: auto;
  margin: 0 auto 4px;
  object-fit: contain;
}

.portal-login-card h1 {
  margin: 4px 0;
  color: #16382e;
  font: 800 clamp(30px, 4.5vw, 45px)/1 Manrope, sans-serif;
  letter-spacing: -.05em;
  text-align: left;
}

.portal-login-card h1 em {
  display: block;
  color: #1f4fa3;
  font-style: normal;
}

.portal-login-card > p {
  margin: 0 0 10px;
  color: #6b8278;
}

.portal-login-card label {
  display: block;
  margin-bottom: 5px;
  color: #16382e;
  font-size: 13px;
  font-weight: 700;
}

.portal-login-card input {
  width: 100%;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid #dce7df;
  border-radius: 10px;
  outline: none;
  color: #16382e;
  background: #fff;
  font: inherit;
}

.portal-login-card input:focus {
  border-color: #4d7cff;
  box-shadow: 0 0 0 3px rgba(77, 124, 255, .15);
}

body .portal-login-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #1f4fa3;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body .portal-login-card button:hover {
  background: #173d85;
}

body .portal-login-card .portal-reset-password {
  display: block;
  width: auto;
  min-height: 0;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #1f4fa3;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

body .portal-login-card .portal-reset-password:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

#portalLoginMessage {
  min-height: 0;
  margin: 5px 0 0;
  color: #c14e43;
  font-size: 13px;
}

#portalLoginMessage.is-success {
  color: #1f4fa3;
}

@media (max-width: 520px) {
  .portal-login-view { padding: 20px; }
  .portal-login-card { min-height: min(602px, calc(100vh - 40px)); padding: 36px 20px; border-radius: 16px; }
  .portal-login-logo { width: min(150px, 100%); margin-bottom: 3px; }
  .portal-login-card h1 { margin-top: 4px; }
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  background: #ffffff;
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  height: auto;
  position: relative;
  overflow-x: clip;
  padding-top: 157px;
  padding-bottom: 20px;
}

body::before,
body::after {
  content: none;
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  transform: rotate(22deg);
}

body::before {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -20vw;
  right: -10vw;
  background: rgba(166, 220, 247, 0.62);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

body::after {
  width: 34vw;
  height: 34vw;
  left: -8vw;
  bottom: -14vw;
  background: rgba(12, 54, 105, 0.48);
  clip-path: polygon(0 0, 100% 20%, 80% 100%, 20% 80%);
}

/* ===== BACKGROUND DECORATIONS ===== */
.bg-decoration {
  display: none;
}

.bg-top-left {
  top: -80px;
  left: -100px;
  width: 500px;
  height: 500px;
  animation: float 6s ease-in-out infinite;
}

.bg-bottom-right {
  bottom: -100px;
  right: -120px;
  width: 550px;
  height: 550px;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

/* ===== HEADER ===== */
header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 42px 16px;
  background: rgba(220, 239, 255, 0.58);
  border: 1px solid rgba(129, 176, 220, 0.42);
  box-shadow: 0 4px 12px rgba(62, 109, 170, 0.08);
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  isolation: isolate;
  min-height: 157px;
  overflow: visible;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.header-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(201, 228, 255, 0.48);
  border: 1px solid rgba(143, 196, 243, 0.72);
  padding: 16px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
/* =====title Remote/ vistual assessment header ===== */
.header-text-box h1 {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 900;
  margin: 0;
  color: #173b73;
  line-height: 1.2;
}

.header-text-box h1 span {
  color: #39b8ff;
}

.header-text-box p {
  font-size: 17px;
  color: #14589b;
  margin: 0;
  font-weight: 400;
}

.header-text-box p:not(.header-credit) {
  font-size: 12px;
  font-style: italic;
}

.header-credit {
  font-size: 15px !important;
  color: #4d7cff !important;
  font-weight: 400 !important;
}

nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 390px;
  flex-shrink: 0;
}

nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid rgba(77, 124, 255, 0.28);
  border-radius: 10px;
  background: #d8eeff;
  white-space: nowrap;
}

.typing-results-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  justify-content: flex-start;
}

.card .typing-results-filters input {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  min-width: 0 !important;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  text-align: center;
}

.card .typing-results-filters select {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  min-width: 0;
  padding: 8px 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-blue) 50%), linear-gradient(135deg, var(--accent-blue) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  color: var(--text-dark);
  text-align: center;
}

@media (max-width: 600px) {
  .card .typing-results-filters {
    gap: 8px;
  }

  .card .typing-results-filters input {
    flex: 1 1 140px !important;
    width: 140px !important;
    max-width: 100% !important;
    font-size: 12px;
  }

  .card .typing-results-filters select {
    flex: 1 1 140px;
    width: 140px;
    max-width: 100%;
    font-size: 12px;
  }
}

.typing-results-section {
  text-align: left;
}

.typing-results-table-wrap {
  height: 700px;
  max-height: 700px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.typing-results-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
  table-layout: fixed;
  font-size: 11px;
}

.typing-results-table th,
.typing-results-table td {
  text-align: center !important;
}

.typing-results-table th:last-child,
.typing-results-table td:last-child {
  width: 48px;
  min-width: 48px;
}

.typing-results-table th:nth-child(2),
.typing-results-table td:nth-child(2) {
  width: 360px;
  min-width: 360px;
}

.typing-results-table th:first-child,
.typing-results-table td:first-child,
.typing-results-table th:last-child,
.typing-results-table td:last-child {
  width: 48px;
  min-width: 48px;
}

.typing-results-table th:nth-child(3) {
  width: 130px;
}

.typing-results-table th:nth-child(4),
.typing-results-table th:nth-child(5),
.typing-results-table th:nth-child(6),
.typing-results-table th:nth-child(7) {
  width: 140px;
}

.typing-results-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

.typing-results-table td:last-child {
  text-align: center !important;
  vertical-align: middle;
}

.typing-results-table td:last-child .typing-result-checkbox {
  display: block;
  margin: 0 auto;
}

.typing-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #dceeff;
}

.typing-results-chart {
  width: calc(100% + 56px);
  margin: 18px -28px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  color: var(--primary-blue);
}

.typing-chart-toggle {
  width: auto;
  margin: 10px 0 0;
  padding: 7px 12px;
  border: 1px solid var(--accent-blue);
  border-radius: 6px;
  background: #edf5ff;
  color: var(--primary-blue);
  font-size: 12px;
  cursor: pointer;
}

.typing-chart-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  margin-top: 4px;
}

.typing-chart-hint {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 230px;
  padding: 9px 13px;
  border: 1px solid #a9d9f5;
  border-radius: 14px 14px 14px 4px;
  background: #e5f6ff;
  color: #17618c;
  box-shadow: 0 8px 18px rgba(65, 156, 207, 0.2);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.typing-chart-hint::after,
.typing-chart-hint::before {
  position: absolute;
  content: '';
  border-radius: 50%;
  background: #b9e5fa;
}

.typing-chart-hint::before {
  width: 7px;
  height: 7px;
  left: 8px;
  bottom: -10px;
}

.typing-chart-hint::after {
  width: 4px;
  height: 4px;
  left: 1px;
  bottom: -16px;
}

.typing-chart-hint.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.typing-chart-toggle:hover {
  background: #dceeff;
}

.typing-results-chart.is-collapsed {
  display: none;
}

.typing-chart-title {
  margin: 0 28px 8px;
  font-size: 13px;
  font-weight: 700;
}

.typing-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 28px 4px;
  color: var(--text-secondary);
  font-size: 11px;
}

.typing-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.typing-chart-legend-swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.typing-chart-scroll {
  width: 100%;
  overflow: hidden;
}

.typing-chart-scroll svg {
  display: block;
  width: 100%;
  height: 220px;
}

.typing-chart-grid-line {
  stroke: #d8e2ef;
  stroke-width: 1;
}

.typing-chart-axis-label {
  fill: var(--text-secondary);
  font-size: 11px;
}

@media (max-width: 600px) {
  .typing-results-chart {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .typing-chart-title,
  .typing-chart-legend {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Keep all nine result columns inside the card without horizontal scrolling. */
.typing-results-table th,
.typing-results-table td {
  min-width: 0 !important;
  padding: 7px 3px;
  overflow-wrap: anywhere;
}

.typing-results-table th:nth-child(1),
.typing-results-table td:nth-child(1) { width: 4%; }
.typing-results-table th:nth-child(2),
.typing-results-table td:nth-child(2) { width: 17%; }
.typing-results-table th:nth-child(3),
.typing-results-table td:nth-child(3) { width: 12%; }
.typing-results-table th:nth-child(4),
.typing-results-table td:nth-child(4) { width: 10%; }
.typing-results-table th:nth-child(5),
.typing-results-table td:nth-child(5) { width: 17%; }
.typing-results-table th:nth-child(6),
.typing-results-table td:nth-child(6) { width: 11%; }
.typing-results-table th:nth-child(7),
.typing-results-table td:nth-child(7) { width: 11%; }
.typing-results-table th:nth-child(8),
.typing-results-table td:nth-child(8) { width: 11%; }
.typing-results-table th:nth-child(9),
.typing-results-table td:nth-child(9) { width: 7%; }

nav a svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

nav a:hover {
  color: var(--accent-blue);
  background: var(--bg-hover);
}

.logout-btn {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(31, 79, 163, 0.35);
  border-radius: 9px;
  color: #1f4fa3;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.logout-btn svg {
  width: 14px;
  height: 14px;
}

.logout-btn:hover {
  color: #173d85;
  background: #dceeff;
  transform: translateY(-1px);
}

.admin-logout-link {
  align-self: flex-start;
  margin: 2px 0 0;
  color: #1f4fa3;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
}

.admin-logout-link:hover {
  color: #173d85;
}

nav a[href*="assessment-instructions"] {
  white-space: normal;
  line-height: 1.05;
  font-size: 9px;
  text-align: center;
}

.header-location-select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(77, 124, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.header-location-select:focus {
  outline: 2px solid rgba(77, 124, 255, 0.45);
  outline-offset: 1px;
}

.header-location-select:invalid {
  color: #8a969e;
}

.location-control-wrap {
  position: relative;
  display: inline-flex;
}

.location-reminder-bubble {
  top: calc(100% + 10px);
  bottom: auto;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -6px) scale(0.96);
}

.location-reminder-bubble::before {
  top: -10px;
  right: 18px;
  bottom: auto;
  left: auto;
}

.location-reminder-bubble::after {
  top: -16px;
  right: 10px;
  bottom: auto;
  left: auto;
}

.location-reminder-bubble.is-visible {
  transform: translate(-50%, 0) scale(1);
}

/* ===== HERO SECTION ===== */
section.hero {
  background: transparent;
  padding: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  display: none;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-blue);
}

.hero p {
  font-size: 16px;
  color: #70a0d0;
  margin: 0;
  font-weight: 500;
}

.hero-credit {
  font-size: 13px !important;
  color: #8dd3f7 !important;
  font-weight: 400 !important;
  margin-top: 12px !important;
}

.hero-illustration {
  flex: 0 0 200px;
  height: 200px;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

/* ===== MAIN GRID ===== */
main.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1472px;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.send-email-page-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 60px;
  padding: 10px 16px;
  border: 1px solid #78a8d8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 79, 163, .12);
  color: #1f4fa3;
  opacity: 1;
  isolation: isolate;
}

.send-email-page-heading::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -1;
  background: #ffffff;
  pointer-events: none;
}

.send-email-page-heading svg {
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}

.send-email-page-heading h1 {
  margin: 0;
  color: #1f4fa3;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* ===== LEFT COLUMN ===== */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* ===== RIGHT COLUMN ===== */
.right-column {
  display: contents;
}

/* ===== ASSESSMENT PACKAGES FULL WIDTH ===== */
.assessment-packages-full {
  width: calc(100% - 48px);
  max-width: 1424px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.seat-manager-card {
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 0 auto 24px;
}

.embedded-tool-section {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 0 auto 24px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 6px 18px rgba(52, 109, 175, 0.08);
}

.embedded-tool-frame {
  display: block;
  width: 100%;
  height: max(78vh, 720px);
  border: 0;
  border-radius: inherit;
  background-color: #fff;
  opacity: 1;
}

.seat-manager-card.is-maximized {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: auto;
  border-radius: 0;
  box-shadow: none;
}

.seat-manager-card.is-maximized > .card-header,
.seat-manager-card.is-maximized > .seat-grid,
.seat-manager-card.is-maximized > .seat-manager-actions {
  width: 100%;
  max-width: 1800px;
}

body.seat-manager-maximized {
  overflow: hidden;
}

.seat-manager-card .card-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.seat-manager-card .card-header h2 {
  margin: 0;
}

.seat-manager-expand-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.seat-manager-expand-button:hover {
  background: #dbeeff;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 22px;
}

.seat-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
  padding: 12px 10px 10px;
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.seat-card h3 {
  margin: 0;
  color: var(--primary-blue);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.seat-card input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #aeb8c4;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.seat-card input:focus {
  outline: 2px solid rgba(77, 124, 255, 0.35);
  outline-offset: 1px;
  border-color: var(--accent-blue);
  box-shadow: none;
}

button.seat-call-button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #aeb8c4;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

button.seat-call-button:hover,
button.seat-call-button:active {
  transform: none;
  box-shadow: none;
  background: #eef4ff;
  color: var(--primary-blue);
}

button.seat-call-button.called {
  background: #2daa43;
  border-color: #238b36;
  color: #fff;
}

.seat-manager-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 20px;
}

button.seat-manager-action {
  width: auto;
  min-width: 112px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

button.clear-data-action {
  background: #d9534f;
  color: #fff;
}

button.view-display-action {
  background: #337ab7;
  color: #fff;
}

button.clear-data-action:hover,
button.view-display-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(31, 79, 163, 0.2);
}

.reports-section {
  margin: 24px auto 30px;
  width: calc(100% - 32px);
  max-width: 1800px;
  scroll-margin-top: 150px;
}

.reports-section {
  margin: 0 auto 40px;
  width: calc(100% - 32px);
  max-width: 1800px;
  min-width: 0;
  scroll-margin-top: 150px;
}

.weekly-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.weekly-report-month {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.weekly-report-month input {
  width: 142px;
  padding: 8px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--primary-blue);
  background: var(--bg-white);
}

.weekly-report-chart {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.weekly-chart-title {
  margin: 2px 0 8px;
  padding-left: 28px;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
}

.weekly-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 8px;
  padding-left: 28px;
  padding-right: 28px;
  color: var(--primary-blue);
  font-size: 12px;
}

.weekly-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.weekly-legend-swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.weekly-legend-swatch.half-first {
  background: #333;
}

.weekly-legend-swatch.half-second {
  background: #999;
}

.weekly-chart-scroll {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.weekly-chart-scroll svg {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 220px;
}

.weekly-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.weekly-chart-card {
  min-width: 0;
  padding: 8px 10px 6px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.weekly-chart-card h3 {
  margin: 0 0 4px;
  color: var(--primary-blue);
  font-size: 13px;
}

.weekly-chart-card h3 span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.weekly-week-1 {
  border-top: 3px solid #333;
}

.weekly-week-2 {
  border-top: 3px solid #666;
}

.weekly-week-3 {
  border-top: 3px solid #999;
}

.weekly-week-4 {
  border-top: 3px solid #444;
}

.weekly-chart-card svg {
  display: block;
  width: 100%;
  height: 300px;
  overflow: visible;
}

.weekly-grid-line {
  stroke: #dce7f3;
  stroke-width: 1;
}

.weekly-axis-label,
.weekly-day-label,
.weekly-week-label {
  fill: var(--primary-blue);
  font-size: 12px;
}

.weekly-week-label {
  fill: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
}

.weekly-line {
  fill: none;
  stroke: #666;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weekly-point {
  fill: #ffffff;
  stroke: #666;
  stroke-width: 3;
}

.notification-report-section {
  margin-top: 26px;
  margin-bottom: 20px;
}

.monthly-reports-section {
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 24px auto 40px;
  scroll-margin-top: 150px;
}

.harver-masterfile-section {
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 24px auto 40px;
  scroll-margin-top: 150px;
}

.harver-masterfile-section .monthly-reports-heading {
  align-items: center;
}

.masterfile-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--primary-dark);
  border-radius: 6px;
  color: #fff;
  background: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.masterfile-open-link:hover,
.masterfile-open-link:focus-visible {
  background: var(--primary-blue);
}

.masterfile-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-hover);
}

.masterfile-frame-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(520px, 75vh, 900px);
  border: 0;
  background: var(--bg-white);
}

.masterfile-fallback-note {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.assessment-process-section {
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 24px auto 40px;
  scroll-margin-top: 150px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(57, 184, 255, .08), transparent 48%),
    var(--bg-white);
}

.assessment-process-heading {
  position: fixed;
  top: 0;
  right: 16px;
  left: calc(var(--report-sticky-sidebar-width, 0px) + 16px);
  z-index: 30;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 8px 0;
  background: #ffffff;
}

.assessment-process-heading h2 {
  margin: 0 0 5px;
  color: var(--primary-blue);
  font-size: 26px;
}

.assessment-process-heading .packages-subtitle {
  margin: 0;
}

.assessment-process-eyebrow,
.process-step-label,
.process-branch-label {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.assessment-process-eyebrow {
  margin: 0 0 6px;
}

.assessment-process-heading .packages-subtitle {
  font-size: 15px;
}

.assessment-process-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #d5e5fb;
  border-radius: 999px;
  color: var(--primary-blue);
  background: #f0f7ff;
  font-size: 14px;
  font-weight: 700;
}

.process-flow {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.process-step-card,
.process-branch-card,
.process-score-card,
.process-outcome-card {
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 16px rgba(32, 58, 122, .06);
}

.process-step-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  border-left: 4px solid #4d7cff;
}

.process-step-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, #39b8ff, #4d7cff);
  font-size: 15px;
  font-weight: 800;
}

.process-step-content {
  min-width: 0;
}

.process-step-content h3,
.process-branch-card h3,
.process-score-card h3,
.process-outcome-card h3 {
  margin: 4px 0 6px;
  color: var(--primary-blue);
  font-size: 20px;
}

.process-step-content > p,
.process-score-card p,
.process-outcome-card p {
  margin: 0;
  color: #526782;
  font-size: 16px;
  line-height: 1.6;
}

.process-location-note {
  margin-top: 11px !important;
  padding: 9px 11px;
  border-radius: 7px;
  color: #334e6c !important;
  background: #f2f7fd;
}

.process-location-note strong {
  color: var(--primary-blue);
}

.process-step-assessment {
  border-left-color: #1d9a83;
  background: linear-gradient(110deg, #f3fbf9, #fff 60%);
}

.process-step-assessment .process-step-number {
  background: linear-gradient(140deg, #20b89a, #168a78);
}

.process-detail-list {
  display: grid;
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  color: #526782;
  font-size: 15px;
  line-height: 1.6;
  list-style: none;
}

.process-detail-list li {
  position: relative;
  padding-left: 19px;
}

.process-detail-list li::before {
  position: absolute;
  top: .56em;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d7cff;
  content: "";
}

.process-flow-connector {
  position: relative;
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: #b6c8e3;
}

.process-flow-connector::after,
.process-merge-connector::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7f9bc1;
  border-bottom: 2px solid #7f9bc1;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.process-branch-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 5px 0 16px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
}

.process-branch-line {
  flex: 1;
  height: 1px;
  background: #d9e5f3;
}

.process-branch-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 30px;
}

.process-branch-grid::before {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 30px;
  border-left: 2px solid #b6c8e3;
  content: "";
}

.process-branch-grid::after {
  position: absolute;
  right: 25%;
  bottom: 0;
  left: 25%;
  border-top: 2px solid #b6c8e3;
  content: "";
}

.process-branch-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
}

.process-branch-card::after {
  position: absolute;
  bottom: -30px;
  left: 50%;
  height: 30px;
  border-left: 2px solid #b6c8e3;
  content: "";
}

.process-branch-icon,
.process-score-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #2672d5;
  background: #eaf3ff;
}

.process-branch-icon svg,
.process-score-icon svg {
  width: 23px;
  height: 23px;
}

.process-branch-label {
  color: #2672d5;
}

.process-branch-card h3 {
  margin-top: 5px;
}

.process-branch-card .process-detail-list {
  margin-top: 10px;
}

.process-onsite-card {
  border-top: 3px solid #4d7cff;
}

.process-remote-card {
  border-top: 3px solid #20a891;
}

.process-remote-card .process-branch-icon {
  color: #168a78;
  background: #e8f8f4;
}

.process-remote-card .process-branch-label {
  color: #168a78;
}

.process-merge-connector {
  position: relative;
  width: 2px;
  height: 32px;
  margin: 0 auto;
  background: #b6c8e3;
}

.process-score-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  border-color: #ccece3;
  background: #f4fbf9;
}

.process-score-icon {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  color: #168a78;
  background: #dcf4ee;
}

.process-score-card .process-step-label {
  color: #168a78;
}

.process-score-card h3 {
  margin-top: 4px;
}

.process-flow-connector-short {
  height: 24px;
}

.process-outcome-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-color: #cdebdc;
  background: linear-gradient(105deg, #f0fbf5, #fff);
}

.process-outcome-check {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #23956a;
  font-size: 22px;
  font-weight: 700;
}

.process-outcome-card .process-step-label {
  color: #21865f;
}

.process-return-arrow {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 4px;
  margin-left: auto;
  color: #21865f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.process-return-arrow svg {
  width: 25px;
  height: 25px;
}

.monthly-reports-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.monthly-reports-heading h2 {
  margin-bottom: 4px;
}

.monthly-reports-heading .packages-subtitle {
  margin: 0;
}

.monthly-assessment-chart {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
}

.monthly-chart-scroll,
.monthly-dashboard-scroll {
  overflow-x: auto;
}

.monthly-chart-scroll svg {
  display: block;
  width: 100%;
  min-width: 1100px;
  height: auto;
}

.monthly-chart-title {
  fill: #15336b;
  font: 700 20px "Manrope", sans-serif;
}

.monthly-chart-grid {
  stroke: #d7d7d7;
  stroke-width: 1;
}

.monthly-chart-axis,
.monthly-chart-value,
.monthly-chart-month,
.monthly-chart-legend {
  fill: #555;
  font: 12px "DM Sans", sans-serif;
}

.monthly-chart-value {
  font-size: 10px;
}

.monthly-chart-line-value {
  fill: #008ab9;
  font: 600 10px "DM Sans", sans-serif;
}

.monthly-chart-month {
  font-size: 11px;
}

.monthly-chart-bar.total {
  fill: #17688d;
}

.monthly-chart-bar.passed {
  fill: #00c69a;
}

.monthly-chart-bar.failed {
  fill: #858585;
}

.monthly-chart-line {
  fill: none;
  stroke: #08a4de;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monthly-chart-line-point {
  fill: #08a4de;
}

.monthly-chart-legend text {
  fill: #555;
  font: 11px "DM Sans", sans-serif;
}

.monthly-report-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  align-items: end;
  gap: 8px;
  margin-top: 10px;
}

.monthly-report-add-form label {
  display: grid;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.monthly-report-add-form input,
.monthly-report-data-table input,
.monthly-dashboard-table input {
  box-sizing: border-box;
  min-width: 0;
  height: 30px;
  padding: 4px 7px;
  border: 1px solid #c4cfdd;
  border-radius: 4px;
  background: #fff;
  color: #101820;
  font: inherit;
}

.monthly-report-add-form button,
.monthly-report-save-row button,
.monthly-report-remove-row {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #0b4772;
  border-radius: 4px;
  background: #0b4772;
  color: #fff;
  font: 600 12px "DM Sans", sans-serif;
  cursor: pointer;
}

.monthly-report-add-form button:hover,
.monthly-report-save-row button:hover,
.monthly-report-remove-row:hover {
  background: #083659;
}

.monthly-report-add-form button:disabled,
.monthly-report-save-row button:disabled {
  opacity: .55;
  cursor: wait;
}

.monthly-report-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 6px;
}

.monthly-report-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.monthly-report-actions button {
  min-height: 32px;
  white-space: nowrap;
}

.monthly-report-add-form button {
  justify-self: end;
  width: auto;
  min-width: 116px;
  white-space: nowrap;
}

.monthly-report-save-row p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.monthly-report-data-scroll {
  overflow-x: auto;
  border: 1px solid #c4cfdd;
  border-radius: 5px;
}

.monthly-report-data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.monthly-report-data-table th,
.monthly-report-data-table td {
  padding: 5px;
  border-bottom: 1px solid #d9e0e8;
}

.monthly-report-data-table th {
  background: #f1f5f8;
  color: #334154;
}

.monthly-report-data-table input {
  width: 100%;
}

.monthly-report-data-table input[type="month"] {
  min-width: 136px;
}

.monthly-report-remove-row {
  min-height: 30px;
  padding: 4px 8px;
  border-color: #d98a91;
  background: #fff;
  color: #a52b38;
}

.monthly-report-remove-row:hover {
  border-color: #bd4350;
  background: #fff0f1;
}

.monthly-dashboard-scroll {
  margin-top: 24px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid #d2e2f1;
  border-radius: 10px;
  background: #edf6ff;
}

.monthly-dashboard-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0 2px;
  overflow: hidden;
  border: 1px solid #c4d5e7;
  border-radius: 8px;
  background: #fff;
  color: #101820;
  text-align: center;
  font-size: 13px;
}

.monthly-dashboard-table caption {
  padding: 12px;
  border-radius: 7px 7px 0 0;
  background: #0b2c68;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.monthly-dashboard-table th,
.monthly-dashboard-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #cfdae6;
  white-space: nowrap;
}

.monthly-dashboard-table td {
  padding: 0;
}

.monthly-dashboard-table input {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.monthly-dashboard-table .monthly-dashboard-total input {
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-align: center;
}

.monthly-dashboard-table th {
  color: #fff;
  font-weight: 700;
}

.monthly-dashboard-table th:first-child,
.monthly-dashboard-table td:first-child {
  background: #0b2c68;
  color: #fff;
  font-weight: 700;
}

.monthly-dashboard-table tbody tr:not(.monthly-dashboard-total) td:first-child {
  background: #fff;
  color: #101820;
}

.monthly-dashboard-table .level-one-heading {
  background: #107f9b;
}

.monthly-dashboard-table .level-one-subheading {
  background: #55bfdf;
}

.monthly-dashboard-table .level-two-heading,
.monthly-dashboard-table .level-two-subheading {
  background: #666;
}

.monthly-dashboard-table .overall-heading {
  background: #00c6a0;
  color: #041e28;
}

.monthly-dashboard-table tbody tr:not(.monthly-dashboard-total) td:last-child {
  background: #b5e6a9;
}

.monthly-dashboard-table tbody tr:not(.monthly-dashboard-total) td:first-child {
  border-radius: 7px 0 0 7px;
}

.monthly-dashboard-table tbody tr:not(.monthly-dashboard-total) td:last-child {
  border-radius: 0 7px 7px 0;
}

.monthly-dashboard-table tbody tr:nth-child(4) td:last-child {
  background: #7fdf8a;
}

.monthly-dashboard-table tbody tr:nth-child(5) td:last-child {
  background: #d9f0d3;
}

.monthly-dashboard-table .monthly-dashboard-total td {
  background: #0b2c68;
  color: #fff;
  font-weight: 700;
}

.monthly-dashboard-table .monthly-dashboard-total td:nth-child(5),
.monthly-dashboard-table .monthly-dashboard-total td:nth-child(6),
.monthly-dashboard-table .monthly-dashboard-total td:nth-child(7) {
  background: #666;
}

.monthly-dashboard-table .monthly-dashboard-total td:last-child {
  background: #00c6a0;
  color: #041e28;
  border-radius: 0 7px 7px 0;
}

.monthly-dashboard-table .monthly-dashboard-total td:first-child {
  border-radius: 7px 0 0 7px;
}

.notification-report-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notification-report-heading .packages-subtitle {
  margin: 4px 0 18px;
}

.notification-report-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: absolute;
  top: 0;
  right: 0;
}

.notification-candidate-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.notification-candidate-login:disabled {
  cursor: default;
  opacity: 0.7;
}

.notification-candidate-login:hover {
  color: var(--accent-blue);
}

.notification-candidate-login svg {
  width: 16px;
  height: 16px;
}

.notification-report-reset {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-report-reset input {
  width: 220px;
  flex: 0 0 220px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  font-size: 11px;
}

.notification-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
}

.notification-search-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-details-search-controls {
  justify-content: flex-end;
  margin-top: 16px;
}

.notification-search-button {
  width: 86px;
  height: 38px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #1f4fa3;
  border-radius: 6px;
  background: #dbeeff;
  color: #1f4fa3;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}

.notification-search-button:hover {
  background: #c7e3ff;
}

.notification-search-field svg {
  position: absolute;
  left: 9px;
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
  pointer-events: none;
}

.card .notification-search-field input,
.card .notification-status-filter-field select,
.card .notification-location-filter-field select {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  background-color: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
}

.card .notification-status-filter-field select,
.card .notification-location-filter-field select {
  padding-right: 36px;
}

.card .notification-status-filter-field select {
  width: 180px;
}

.card .notification-location-filter-field select {
  width: 180px;
}

.notification-report-actions .history-delete-selected {
  margin-top: 0;
}

.notification-report-reset .history-delete-selected {
  width: 86px;
  height: 42px;
  padding: 6px 10px;
  font-weight: 400;
}

.notification-search-input {
  width: min(100%, 420px);
  margin: 16px 0 0;
}

.reports-content {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--primary-blue);
  font-size: 13px;
}

.reports-table th,
.reports-table td {
  padding: 7px 10px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.reports-table th {
  background: #dceeff;
  font-weight: 700;
}

.notification-summary-table,
.notification-details-table {
  display: table;
  width: 100%;
  margin-top: 18px;
}

.notification-details-table {
  margin-top: 22px;
  border-collapse: separate;
  border-spacing: 0;
}

.notification-summary-table {
  width: 100%;
  margin-top: 0;
}

.notification-report-overview {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

.notification-status-chart {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 0 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.notification-mini-chart {
  min-width: 0;
  overflow: hidden;
}

.notification-mini-chart-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-blue);
  font-size: 11px;
  margin-bottom: 8px;
}

.notification-chart-legend {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  color: var(--primary-blue);
  font-size: 11px;
}

.notification-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notification-chart-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.notification-chart-swatch.count,
.notification-chart-bar.count {
  background: #4d9fe8;
}

.notification-chart-bar.notification-count-0 {
  background: #4d7cff;
}

.notification-chart-bar.notification-count-1 {
  background: #8be0a8;
}

.notification-chart-bar.notification-count-2 {
  background: #ffe27a;
}

.notification-chart-bar.notification-count-3 {
  background: #8b5cf6;
}

.notification-chart-swatch.no-status,
.notification-chart-bar.no-status {
  background: #c68be8;
}

.notification-chart-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  justify-content: stretch;
  gap: 2px;
  align-items: end;
  height: 190px;
  margin-top: 12px;
  padding: 0 2px;
  border-bottom: 1px solid var(--border-subtle);
}

.notification-chart-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  color: var(--primary-blue);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.notification-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 155px;
  border-bottom: 1px solid #d8e3f0;
}

.notification-chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 20px;
  height: 100%;
  gap: 3px;
}

.notification-chart-bar-wrap strong {
  min-height: 13px;
  color: var(--primary-blue);
  font-size: 10px;
  font-weight: 500;
}

.notification-chart-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.notification-summary-table th:nth-child(1),
.notification-summary-table td:nth-child(1) {
  width: 52%;
  text-align: left;
}

.notification-summary-table th:nth-child(2),
.notification-summary-table td:nth-child(2),
.notification-summary-table th:nth-child(3),
.notification-summary-table td:nth-child(3) {
  width: 24%;
  text-align: center;
}

.notification-summary-table td:last-child,
.notification-summary-table th:last-child {
  width: 24%;
}

.notification-details-table th:nth-child(1),
.notification-details-table td:nth-child(1) {
  width: 52px;
  text-align: center;
}

.notification-details-table th:nth-child(2),
.notification-details-table td:nth-child(2) {
  width: 15%;
}

.notification-details-table th:nth-child(3),
.notification-details-table td:nth-child(3) {
  width: 22%;
}

.notification-details-table th:nth-child(4),
.notification-details-table td:nth-child(4) {
  width: 18%;
}

.notification-details-table th:nth-child(5),
.notification-details-table td:nth-child(5) {
  width: 18%;
}

.notification-details-table th:nth-child(6),
.notification-details-table td:nth-child(6) {
  width: 140px;
  text-align: center;
}

.notification-details-table th:nth-child(7),
.notification-details-table td:nth-child(7) {
  width: 52px;
  text-align: center;
}

.notification-details-table th {
  text-align: center;
}

.notification-details-scroll {
  max-height: 430px;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.notification-details-scroll .notification-details-table {
  margin-top: 0;
}

.notification-details-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf4ff;
}

.notification-status-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  color: #28506f;
  font-size: 12px;
}

.notification-status-checkbox {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #18734d;
  cursor: pointer;
}

.report-chart {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.report-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr 24px;
  gap: 10px;
  align-items: center;
  color: var(--primary-blue);
  font-size: 12px;
}

.report-bar-label {
  overflow-wrap: anywhere;
}

.report-bar-track {
  height: 22px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7f1fb;
}

.report-bar {
  height: 100%;
  min-width: 8px;
  border-radius: 4px;
}

.bar-0 { background: #4d7cff; }
.bar-1 { background: #8be0a8; }
.bar-2 { background: #ffe27a; }
.bar-3 { background: #8b5cf6; }
.bar-4 { background: #e4d8ff; }
.bar-5 { background: #ffd9bd; }

.report-empty {
  margin: 0;
  color: var(--text-secondary);
  text-align: center;
}

.reports-total {
  margin-top: 18px;
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 600;
}

.reports-total strong {
  color: var(--accent-blue);
  font-size: 16px;
}

.export-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--primary-blue);
  font-size: 13px;
}

.notification-delete-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.notification-delete-controls .history-delete-selected {
  margin: 0;
}

.notification-export-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.notification-export-controls {
  margin-top: 0;
}

.export-controls input {
  width: 150px !important;
  flex: 0 0 150px;
  padding: 9px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-dark);
  background: var(--bg-white);
  font: inherit;
}

.export-data-btn {
  width: auto !important;
  padding: 10px 16px !important;
  border: 1px solid #79aee8 !important;
  border-radius: 8px !important;
  background: #dceeff !important;
  color: #205a9e !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.export-label-mobile {
  display: inline;
}

.export-label-desktop {
  display: none;
}

.export-data-btn:hover {
  background: #c8e3ff !important;
  box-shadow: none !important;
  transform: none !important;
}

.export-status {
  margin: 0;
  font-size: 12px;
}

.export-status.success { color: #29945f; }
.export-status.error { color: #c85c70; }

/* ===== CARDS ===== */
section.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96));
  border: 1px solid rgba(120, 168, 224, 0.32);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(52, 109, 175, 0.08);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

section.card.time-picker-open {
  z-index: 5;
}

.grid.time-picker-open {
  z-index: 2;
}

section.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

section.card h2 {
  color: var(--primary-blue);
  font-size: 18px;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-header h2 {
  margin: 0 !important;
  line-height: 1.2;
}

.card-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
  color: var(--green);
}

.candidate-info-card .card-icon {
  color: var(--accent-blue);
}

.selected-packages-card .card-icon {
  color: var(--accent-blue);
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
  padding: 0 4px;
}

.form-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.card input,
.card select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-white);
  color: var(--text-dark);
}

.card input:focus,
.card select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.1);
}

.card input::placeholder {
  color: #bbb;
}

.card select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d7cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

.card select:invalid {
  color: #aeb8c4;
}

.card select option {
  color: var(--text-dark);
}

.time-picker {
  position: relative;
}

.time-picker input {
  padding-right: 44px;
}

#virtualAssessmentTimeToggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent-blue);
  transform: translateY(-50%);
  box-shadow: none;
}

#virtualAssessmentTimeToggle:hover {
  background: #edf4ff;
  transform: translateY(-50%);
  box-shadow: none;
}

#virtualAssessmentTimeToggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#virtualAssessmentTimeOptions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 220px;
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 55, 91, 0.16);
}

#virtualAssessmentTimeOptions[hidden] {
  display: none;
}

#virtualAssessmentTimeOptions li {
  margin: 0;
}

#virtualAssessmentTimeOptions .time-picker-option {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transform: none;
  box-shadow: none;
}

#virtualAssessmentTimeOptions .time-picker-option:hover,
#virtualAssessmentTimeOptions .time-picker-option[aria-selected="true"] {
  background: #edf4ff;
  color: var(--primary-blue);
  transform: none;
  box-shadow: none;
}

#virtualAssessmentTimeOptions .time-picker-option:focus-visible,
#virtualAssessmentTimeToggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
}

/* ===== SELECTED PACKAGES CARD ===== */
.selected-packages-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
}

.selected-packages-card #selectedPackagesContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 8px 4px;
  max-height: none;
}

.selected-packages-card #selectedPackagesContainer::-webkit-scrollbar {
  width: 6px;
}

.selected-packages-card #selectedPackagesContainer::-webkit-scrollbar-track {
  background: var(--bg-hover);
  border-radius: 3px;
}

.selected-packages-card #selectedPackagesContainer::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 3px;
}

.sent-history-card {
  flex-shrink: 0;
  height: 100%;
  min-height: 260px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.email-preview {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #f8fbff;
  color: #243b64;
  font-size: 10px;
  line-height: 1.35;
}

.sent-history-card .email-preview {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.email-preview-heading {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
}

.email-preview-subject {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.email-preview-body {
  height: 0;
  max-height: none;
  flex: 1 1 0;
  min-height: 0;
  margin: 5px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  font: 11px/1.35 Arial, sans-serif;
  color: #202124;
}

.email-preview-body::-webkit-scrollbar {
  width: 6px;
}

.email-preview-body::-webkit-scrollbar-track {
  background: #eaf2fb;
  border-radius: 3px;
}

.email-preview-body::-webkit-scrollbar-thumb {
  background: #9bbce2;
  border-radius: 3px;
}

.email-preview-body p {
  margin: 0 0 10px;
}

.email-preview-body h3 {
  margin: 14px 0 7px;
  font-size: 12px;
  color: #202124;
}

.email-preview-body ol,
.email-preview-body ul {
  margin: 0 0 12px;
  padding-left: 24px;
}

.email-preview-body li {
  margin-bottom: 4px;
}

.email-preview-body a {
  color: #4285f4;
  text-decoration: underline;
}

.sent-history-card .card-header {
  margin-bottom: 12px;
}

.sent-history-card .card-icon {
  color: var(--accent-blue);
}

.history-search-input {
  margin: 0 0 12px;
  padding: 9px 12px !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.sent-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #1c2a3a;
  font-size: 12px;
  background: transparent !important;
  background-image: none !important;
}

.sent-history-list::-webkit-scrollbar {
  width: 8px;
}

.sent-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.sent-history-list::-webkit-scrollbar-thumb {
  background: #d5d9e8;
  border-radius: 999px;
}

.sent-history-list li {
  padding: 0;
  border: 1px solid #e5e8f0;
  border-radius: 8px;
  background: #ffffff !important;
  background-image: none !important;
  overflow-wrap: anywhere;
}

.history-item {
  display: block;
  padding: 0;
  background: #ffffff !important;
  background-image: none !important;
}

.recent-history-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 6px !important;
}

.recent-history-delete-checkbox {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #d93048;
  cursor: pointer;
}

.history-select-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  min-height: 26px;
}

.history-select-checkbox {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #d93048;
  cursor: pointer;
}

.history-item-text {
  min-width: 0;
  word-break: break-word;
  font-size: 10px;
  line-height: 1.2;
  color: #1d2c3f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent !important;
}

.history-delete-selected {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0 auto;
  padding: 6px 12px;
  border: 1px solid #d93048;
  border-radius: 6px;
  background: #fce7ee;
  color: #d93048;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.history-delete-selected:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 30px;
  margin-top: 8px;
}

.table-page-button {
  width: auto;
  min-width: 64px;
  padding: 5px 10px;
  border: 1px solid #397ef4;
  border-radius: 6px;
  color: #2455a0;
  background: #eef6ff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.table-page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.table-page-status {
  min-width: 82px;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: center;
}

.table-delete-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.table-delete-actions .history-delete-selected {
  margin: 0;
}

.table-select-all-button {
  width: auto !important;
  min-width: 0;
  margin-left: 4px;
  padding: 6px 12px !important;
  border: 1px solid #397ef4 !important;
  border-radius: 6px !important;
  color: #2455a0 !important;
  background: #eef6ff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.table-delete-actions .table-select-all-button,
.notification-delete-controls .table-select-all-button {
  margin: 0;
}

.sent-history-empty {
  list-style: none;
  margin-left: -24px;
  text-align: center;
  color: var(--text-secondary);
}

.selected-packages-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.no-packages {
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  padding: 20px;
  background: var(--bg-hover);
  border-radius: 10px;
  margin: 0;
}

/* ===== PACKAGE PILLS ===== */
.pkg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  gap: 10px;
  border: 2px solid;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 100%;
  min-height: 48px;
}

.pkg-name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pkg-check {
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.pkg-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.pkg-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.pkg-remove:hover {
  opacity: 1;
}

.pkg.green {
  background: #ebfff1;
  border-color: #8bd8a5;
  color: #2d7a4a;
}

.pkg.purple {
  background: #f3ebff;
  border-color: #c6a3ff;
  color: #6b3fa0;
}

.pkg.blue {
  background: #eaf4ff;
  border-color: #9bbdf0;
  color: #003d99;
}

.pkg.yellow {
  background: #fff7e6;
  border-color: #f2d98b;
  color: #74610e;
}

.pkg.pink {
  background: var(--pink-light);
  border-color: #f0a6b8;
  color: #b34f6c;
}

.pkg.yellow {
  background: var(--yellow-light);
  border-color: #e8ce73;
  color: #8a6b00;
}

.pkg.orange {
  background: var(--orange-light);
  border-color: #efb37a;
  color: #a65d22;
}

/* ===== SEND EMAIL BUTTON ===== */
.selected-packages-send-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.selected-packages-send-action .email-status {
  flex: 1 1 120px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.send-email-btn {
  width: auto;
  min-width: 108px;
  align-self: flex-end;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #35c98a 0%, #159b68 100%);
  color: var(--bg-white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.email-action-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: auto;
}

.email-action-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 74px;
}

.retake-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: normal;
}

.retake-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary-dark);
}

.send-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(31, 175, 111, 0.3);
}

.send-email-btn:active {
  transform: translateY(0);
}

.send-email-btn svg {
  width: 18px;
  height: 18px;
}

.clear-data-btn {
  margin-top: 36px;
  margin-bottom: 12px;
  padding: 10px 16px !important;
  border: 1px solid #ed91aa !important;
  border-radius: 8px !important;
  background: #ffe7ee !important;
  color: #c34f6d !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.clear-data-btn:hover {
  background: #ffe4eb !important;
  border-color: #df7f99 !important;
  box-shadow: none !important;
  transform: none !important;
}

.send-email-btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.email-status {
  min-height: 0;
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.email-status.sending {
  color: #78a9d9;
}

.email-status.success {
  color: #55b97b;
}

.email-status.error {
  color: #d86f78;
}

.email-status-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 52, 90, 0.22);
}

.email-status-popup.hidden {
  display: none;
}

.email-status-popup-card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px 42px;
  border: 2px solid currentColor;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(18, 52, 90, 0.22);
  text-align: center;
}

.email-status-popup-message {
  font-size: 18px;
  font-weight: 700;
}

.email-status-popup.sending { color: #246fe5; }
.email-status-popup.success { color: #16854d; }
.email-status-popup.error { color: #c33b54; }

.email-status-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: auto !important;
  padding: 0 5px !important;
  border: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  font-size: 24px !important;
  line-height: 1;
}

.email-status-popup-close:hover,
.email-status-popup-close:active {
  transform: none !important;
  box-shadow: none !important;
}

/* ===== ASSESSMENT PACKAGES CARD ===== */
.assessment-packages-card {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.packages-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -16px 0 16px 0;
  font-weight: 400;
}

.packages-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
}

.packages-category {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg-white);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 10px 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  text-align: left;
}

.category-title svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.categories-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.packages-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.categories-wrapper > .packages-category {
  border-width: 2px;
  box-shadow: 0 8px 18px rgba(45, 103, 177, 0.08);
}

.category-level1 {
  background: linear-gradient(160deg, #f2f8ff 0%, #ffffff 72%);
  border-color: #b9d5f5;
  box-shadow: 0 8px 18px rgba(72, 145, 224, 0.12);
}

.category-level3-clinical {
  background: linear-gradient(160deg, #fffbea 0%, #ffffff 72%);
  border-color: #ead68a;
  box-shadow: 0 8px 18px rgba(214, 177, 56, 0.14);
}

.category-level2 {
  background: linear-gradient(160deg, #f2fff8 0%, #ffffff 72%);
  border-color: #b8e4ca;
  box-shadow: 0 8px 18px rgba(83, 180, 119, 0.12);
}

.category-standalone {
  background: linear-gradient(160deg, #faf5ff 0%, #ffffff 72%);
  border-color: #d7baf5;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.12);
}

.category-level1 .category-title {
  color: #2768ae;
}

.category-level3-clinical .category-title {
  color: #987400;
}

.category-level2 .category-title {
  color: #28784b;
}

.category-standalone .category-title {
  color: #7441a8;
}

/* ===== PACKAGE ITEMS ===== */
.package-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-white);
  position: relative;
  min-height: 58px;
  width: 100%;
  min-width: 0;
  height: auto;
}

.package-item:hover {
  border-color: var(--accent-blue);
  background: var(--bg-hover);
}

.package-item.checked {
  border: 2px solid var(--accent-blue);
  background: var(--bg-hover);
}

.package-item.checked[data-color="blue"] {
  border: 1px solid #9bbdf0;
  background: #eaf4ff;
  color: #003d99;
}

.package-item.checked[data-color="green"] {
  border: 1px solid #8bd8a5;
  background: #ebfff1;
  color: #2d7a4a;
}

.package-item.checked[data-color="purple"] {
  border: 1px solid #c6a3ff;
  background: #f3ebff;
  color: #6b3fa0;
}

.package-item.checked[data-color="yellow"] {
  border: 1px solid #f2d98b;
  background: #fff7e6;
  color: #74610e;
}

#packagesList-level1 .package-item.checked {
  background: #eaf4ff;
  border-color: #9bc1ff;
}

#packagesList-level2 .package-item.checked {
  background: #ebfff1;
  border-color: #8bd8a5;
}

#packagesList-level3-clinical .package-item.checked {
  background: #fffbe8;
  border-color: #e8ce73;
}

#packagesList-standalone .package-item.checked {
  background: #f5ecff;
  border-color: #c8aaf8;
}

#packagesList-level1 .package-checkbox {
  accent-color: #4d7cff;
}

#packagesList-level2 .package-checkbox {
  accent-color: #4bb06b;
}

#packagesList-level3-clinical .package-checkbox {
  accent-color: #d2ab22;
}

#packagesList-standalone .package-checkbox {
  accent-color: #9c6ae8;
}

.package-checkbox {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-blue);
}

.package-checkbox-visual {
  display: none;
}

.package-item.checked .package-checkbox-visual {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.package-checkbox-visual svg {
  width: 11px;
  height: 11px;
  color: white;
  stroke-width: 3;
  display: none;
}

.package-item.checked .package-checkbox-visual svg {
  display: block;
}

.package-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.package-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.package-details {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.package-desc {
  font-size: 12px;
  color: var(--text-secondary);
  display: none;
}

/* ===== BUTTONS ===== */
button {
  font-family: inherit;
}

button:not(.send-email-btn):not(.pkg-remove):not(.history-delete-btn):not(.history-delete-selected):not(.notification-search-button):not(.seat-call-button):not(.seat-manager-action):not(.seat-manager-expand-button):not(.notes-add-button):not(.notes-click-button):not(.notes-save-button):not(.notes-delete-button):not(.typing-chart-toggle):not(.table-page-button):not(.table-select-all-button):not(.portal-login-submit):not(.portal-reset-password):not(.logout-btn):not(.resources-toggle):not(.resources-dialog-close):not(.monthly-report-add-button):not(.monthly-report-toggle-button):not(.monthly-report-save-button):not(.monthly-report-remove-row):not(.package-resend-button):not(.my-notes-add-button):not(.my-note-copy-button):not(.my-note-delete-button) {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--sky-blue) 0%, var(--purple) 100%);
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:not(.send-email-btn):not(.pkg-remove):not(.history-delete-selected):not(.notification-search-button):not(.seat-call-button):not(.seat-manager-action):not(.seat-manager-expand-button):not(.portal-login-submit):not(.portal-reset-password):not(.table-page-button):not(.table-select-all-button):not(.logout-btn):not(.resources-toggle):not(.resources-dialog-close):not(.monthly-report-add-button):not(.monthly-report-toggle-button):not(.monthly-report-save-button):not(.monthly-report-remove-row):not(.package-resend-button):not(.my-notes-add-button):not(.my-note-copy-button):not(.my-note-delete-button):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(57, 184, 255, 0.3);
}

button:not(.send-email-btn):not(.pkg-remove):not(.history-delete-selected):not(.notification-search-button):not(.seat-call-button):not(.seat-manager-action):not(.seat-manager-expand-button):not(.portal-login-submit):not(.portal-reset-password):not(.table-page-button):not(.table-select-all-button):not(.logout-btn):not(.resources-toggle):not(.resources-dialog-close):not(.monthly-report-add-button):not(.monthly-report-toggle-button):not(.monthly-report-save-button):not(.monthly-report-remove-row):not(.package-resend-button):not(.my-notes-add-button):not(.my-note-copy-button):not(.my-note-delete-button):active {
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  body {
    padding-top: 110px;
  }

  header.top {
    padding: 12px 24px;
    gap: 16px;
    min-height: 110px;
  }
  
  .logo-img {
    width: 100px;
    height: 100px;
  }
  
  .header-text-box {
    padding: 16px 20px;
  }
  
  .header-text-box h1 {
    font-size: 19px;
  }
  
  .header-text-box p {
    font-size: 13px;
  }
  
  nav {
    gap: 6px;
    width: 330px;
  }
  
  nav a {
    font-size: 10px;
    padding: 5px 6px;
  }
  
  .hero-content {
    gap: 30px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-illustration {
    flex: 0 0 160px;
    height: 160px;
  }
  
  .categories-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .seat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .assessment-packages-full {
    margin: 0 24px 24px 24px;
  }
}

@media (max-width: 1024px) {
  body {
    padding-top: 96px;
  }

  header.top {
    padding: 10px 20px;
    gap: 12px;
    min-height: 96px;
  }
  
  .logo-img {
    width: 82px;
    height: 82px;
  }
  
  .header-text-box {
    padding: 12px 16px;
  }
  
  .header-text-box h1 {
    font-size: 18px;
  }
  
  .header-text-box p {
    font-size: 12px;
  }
  
  nav {
    gap: 6px;
    width: 300px;
  }
  
  nav a {
    font-size: 11px;
    padding: 5px 6px;
  }
  
  main.grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .hero-illustration {
    flex: 0 0 180px;
    height: 180px;
    margin: 0 auto;
  }
  
  main.grid {
    padding: 24px;
    gap: 16px;
  }
  
  .categories-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .assessment-packages-full {
    margin: 0 0 24px 0;
  }

  .seat-manager-card {
    width: calc(100% - 32px);
  }
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .notification-report-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .notification-report-heading {
    display: block;
    position: relative;
  }

  .notification-report-heading > div:first-child {
    padding-right: 108px;
  }

  .notification-report-actions {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    align-items: flex-end;
    margin: 0;
  }

  .notification-report-overview {
    grid-template-columns: 1fr;
    order: 2;
    gap: 14px;
  }

  .notification-details-search-controls {
    order: 3;
    flex-wrap: wrap;
  }

  .notification-details-search-controls .notification-search-field {
    flex: 1 1 100%;
    width: auto;
  }

  .notification-details-search-controls .notification-status-filter-field,
  .notification-details-search-controls .notification-location-filter-field {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .notification-details-search-controls .notification-status-filter-field select,
  .notification-details-search-controls .notification-location-filter-field select {
    width: 100%;
  }

  .notification-details-search-controls .notification-search-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .notification-details-scroll {
    order: 4;
  }

  .notification-export-row {
    order: 5;
    flex-direction: column;
    align-items: stretch;
  }

  .notification-delete-controls {
    order: 1;
    justify-content: flex-end;
  }

  .notification-export-controls {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px;
  }

  .export-controls input {
    width: 112px !important;
    flex: 0 0 112px;
    height: 32px;
    padding: 6px 7px;
    font-size: 10px;
  }

  .export-controls .export-data-btn {
    width: 76px !important;
    min-width: 76px;
    height: 32px;
    padding: 5px 6px !important;
    font-size: 10px !important;
  }

  .export-label-desktop {
    display: none;
  }

  .export-label-mobile {
    display: inline;
  }

  .reports-section > .export-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
  }

  .reports-section > .export-controls .export-status,
  .notification-export-controls .export-status {
    flex-basis: 100%;
  }

  .notification-report-actions {
    order: 6;
  }

  .notification-chart-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 0 2px;
  }

  .notification-chart-location {
    min-width: 0;
  }

  .notification-chart-bar-wrap {
    width: 18px;
  }

  .notification-details-scroll {
    order: 4;
  }

  header.top {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3px 12px 5px;
    gap: 0;
    min-height: 0;
  }
  
  .logo-img {
    width: 156px;
    height: auto;
    display: block;
    margin: 0;
  }

  .logo {
    width: auto;
    justify-content: center;
    margin: 0 auto;
    line-height: 0;
    padding: 0;
  }
  
  .header-text-box {
    flex: 1 1 100%;
    padding: 8px 12px;
    margin-top: 0;
  }
  
  .header-text-box h1 {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  
  .header-text-box p {
    font-size: 9px;
    line-height: 1.3;
  }

  .header-credit {
    font-size: 9px !important;
  }
  
  nav {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  
  nav a {
    font-size: 10px;
    min-width: 0;
    padding: 6px 8px;
  }
  
  section.hero {
    padding: 16px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 13px;
  }
  
  .hero-illustration {
    flex: 0 0 140px;
    height: 140px;
  }
  
  section.card {
    padding: 20px;
  }
  
  section.card h2 {
    font-size: 16px;
  }

  main.grid {
    display: contents;
  }

  main.grid > section:first-child {
    order: 1;
    width: calc(100% - 32px);
    margin: 16px 16px 16px;
  }

  .right-column {
    display: contents;
  }

  .selected-packages-card {
    order: 3;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    height: auto;
  }

  .sent-history-card {
    order: 4;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    height: auto;
  }

  .assessment-packages-full {
    order: 2;
    width: calc(100% - 32px);
  }

  .sent-email-history-section {
    order: 3;
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .seat-manager-card {
    order: 99;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  .monthly-reports-section {
    order: 100;
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .harver-masterfile-section {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .harver-masterfile-section .monthly-reports-heading {
    align-items: flex-start;
  }

  .masterfile-open-link {
    flex: 0 0 auto;
  }

  .masterfile-frame-wrap iframe {
    height: 70vh;
    min-height: 420px;
  }

  .seat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .packages-category {
    padding: 9px;
  }

  .category-title {
    font-size: 12px;
    margin-bottom: 7px;
  }

  .category-title svg {
    width: 13px;
    height: 13px;
  }

  .package-item {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-height: 42px;
    padding: 6px 8px;
  }

  .card .package-checkbox {
    display: block;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    max-width: 14px;
    margin: 2px 0 0;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
  }

  .package-name {
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
  }

  .package-info {
    text-align: left;
    min-width: 0;
    overflow: hidden;
  }

  .selected-packages-card #selectedPackagesContainer {
    gap: 8px;
  }

  .pkg {
    padding: 9px 10px;
    font-size: 12px;
    min-height: 40px;
    border-radius: 8px;
    gap: 8px;
  }

  .pkg-check {
    font-size: 12px;
  }

  .pkg-remove {
    font-size: 14px;
    width: 16px;
    height: 16px;
  }

  .send-email-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

  .reports-section {
    order: 4;
    width: calc(100% - 32px);
  }
  
  .categories-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .packages-column {
    display: contents;
  }

  .category-level1 {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  .category-level2 {
    grid-column: 1;
    grid-row: 2;
    order: 2;
  }

  .category-standalone {
    grid-column: 1;
    grid-row: 3;
    order: 3;
  }

  .category-level3-clinical {
    grid-column: 1;
    grid-row: 4;
    order: 4;
  }
  
  main.grid {
    padding: 16px;
  }
  
  .assessment-packages-full {
    width: calc(100% - 32px);
    margin: 0 16px 16px 16px;
  }

  .reports-section {
    margin: 0 16px 24px;
  }

  .weekly-report-heading {
    flex-direction: column;
    gap: 8px;
  }

  .weekly-report-month {
    width: 100%;
    justify-content: space-between;
  }

  .weekly-report-month input {
    flex: 1;
    max-width: 180px;
  }

  .weekly-chart-title,
  .weekly-legend {
    padding-left: 0;
    padding-right: 0;
  }

  .weekly-report-chart {
    margin-right: 0;
    margin-left: 0;
  }

  .weekly-chart-grid {
    grid-template-columns: 1fr;
  }

  .reports-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .export-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.export-controls input[type="month"] {
  width: 130px !important;
  flex-basis: 130px;
}

.weekly-week-1 .weekly-line {
  stroke: #333;
}

.weekly-week-1 .weekly-point {
  stroke: #333;
}

.weekly-week-2 .weekly-line {
  stroke: #666;
}

.weekly-week-2 .weekly-point {
  stroke: #666;
}

.weekly-week-3 .weekly-line {
  stroke: #999;
}

.weekly-week-3 .weekly-point {
  stroke: #999;
}

.weekly-week-4 .weekly-line {
  stroke: #444;
}

.weekly-week-4 .weekly-point {
  stroke: #444;
}

.weekly-line.half-first {
  stroke: #333;
}

.weekly-line.half-second {
  stroke: #999;
}

.weekly-point.half-first {
  stroke: #333;
}

.weekly-point.half-second {
  stroke: #999;
}

.sent-email-history-section {
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 0 auto 40px;
  scroll-margin-top: 150px;
}

.sent-email-history-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.history-filter-box {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
}

.history-filter-box > span {
  display: none;
}

.history-filter-box input,
.history-filter-box select {
  box-sizing: border-box;
  width: 180px;
  min-width: 180px;
  min-height: 26px;
  height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--primary-blue);
  background: var(--bg-white);
  font: inherit;
  font-weight: 400;
}

.history-date-filter-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-date-filter-fields label {
  color: var(--text-secondary);
  font-size: 11px;
}

.history-date-filter-fields input {
  flex: 0 0 120px;
  width: 120px;
}

.history-export-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 34px;
  margin: 0 0 14px;
}

.history-export-row .export-status {
  margin: 0;
}

.history-export-row .export-data-btn {
  width: auto;
  min-width: 100px;
  padding: 8px 12px;
  font-size: 12px;
}

.history-export-row .export-status {
  text-align: right;
}

.history-export-row .export-status:empty {
  display: none;
}

.sent-email-history-toolbar .history-search-input {
  width: 100%;
}

.history-date-filter-box {
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-date-filter-box > span {
  display: none;
}

.history-filter-box:focus-within {
  border-color: #9bbdf0;
  box-shadow: 0 0 0 2px rgba(77, 124, 255, .1);
}

.sent-email-history-scroll {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.sent-email-history-table {
  width: 100%;
  min-width: 1280px;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 11px;
}

.sent-email-history-table th,
.sent-email-history-table td {
  vertical-align: middle;
  border: 1px solid var(--border-light);
  padding: 7px 8px;
  white-space: nowrap;
  line-height: 1.2;
}

.sent-email-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf9f0;
  box-shadow: inset 0 -1px 0 var(--border-light);
}

.sent-email-history-table th:first-child,
.sent-email-history-table td:first-child,
.sent-email-history-table th:last-child,
.sent-email-history-table td:last-child {
  width: 58px;
  text-align: center;
}

.sent-email-history-table th:nth-child(8),
.sent-email-history-table td:nth-child(8),
.sent-email-history-table th:nth-child(9),
.sent-email-history-table td:nth-child(9) {
  width: 82px;
  text-align: center;
}

.sent-email-history-table th:nth-child(7),
.sent-email-history-table td:nth-child(7) {
  min-width: 130px;
}

.sent-email-history-table th:nth-child(4),
.sent-email-history-table td:nth-child(4) {
  width: 280px;
  min-width: 220px;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Recruiter-style scrollable tables: keep headings visible while rows scroll. */
.reports-table {
  border-collapse: collapse;
}

.reports-table thead th,
.applicant-details-table thead th,
.rncf-records-table thead th,
.typing-results-table thead th,
.notification-details-table thead th,
.my-notes-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf4ff;
  box-shadow: inset 0 -1px 0 var(--border-light);
}

.history-row-button {
  width: auto !important;
  min-width: 58px;
  padding: 6px 9px !important;
  border: 1px solid var(--accent-blue) !important;
  border-radius: 6px !important;
  background: #e8f0ff !important;
  color: var(--primary-blue) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.history-row-button:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #d8e7ff !important;
}

.history-delete-checkbox {
  width: 14px !important;
  height: 14px;
  margin: 0 auto;
}

.package-view-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-dark);
  background: var(--bg-white);
  box-shadow: 0 18px 50px rgba(22, 62, 108, .24);
}

.package-view-dialog::backdrop {
  background: rgba(18, 52, 90, .35);
}

.package-view-dialog h2 {
  margin: 0 0 16px;
  color: var(--primary-blue);
  font-size: 18px;
}

.package-view-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: auto !important;
  padding: 2px 7px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--primary-blue) !important;
  font-size: 24px !important;
}

#packageViewList {
  display: grid;
  gap: 8px;
}

#packageViewList .package-view-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-hover);
}

#packageViewList .package-resend-checkbox {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-blue);
}

#packageViewList a {
  flex: 1;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.package-resend-hint {
  margin: 14px 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.package-resend-button {
  display: block;
  width: auto;
  min-height: 30px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid #347ff0;
  border-radius: 5px;
  color: #fff;
  background: #347ff0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.package-resend-button:disabled {
  border-color: #9aa8bd;
  background: #9aa8bd;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .sent-email-history-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-date-filter-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .assessment-process-section {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
    padding: 18px;
  }

  .assessment-process-heading {
    align-items: flex-start;
  }

  .assessment-process-heading h2 {
    font-size: 23px;
  }

  .assessment-process-heading .packages-subtitle {
    font-size: 14px;
  }

  .assessment-process-badge {
    padding: 7px 9px;
    font-size: 12px;
  }

  .process-flow {
    width: 100%;
  }

  .process-step-card,
  .process-branch-card,
  .process-score-card,
  .process-outcome-card {
    padding: 15px;
  }

  .process-step-card {
    gap: 12px;
  }

  .process-step-number {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .process-branch-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 0;
  }

  .process-branch-grid::before,
  .process-branch-grid::after {
    display: none;
  }

  .process-branch-card::after {
    bottom: -24px;
    height: 24px;
  }

  .process-branch-card:last-child::after {
    display: none;
  }

  .process-outcome-card {
    flex-wrap: wrap;
  }

  .process-outcome-card > div:nth-child(2) {
    flex: 1 1 calc(100% - 60px);
  }

  .process-return-arrow {
    flex-basis: 100%;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    margin: 4px 0 0 56px;
  }

  .process-return-arrow svg {
    transform: rotate(90deg);
  }

  .sent-email-history-section {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .sent-email-history-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .history-date-filter-fields {
    flex-wrap: wrap;
  }

  .history-date-filter-fields label {
    flex: 0 0 auto;
  }

  .history-date-filter-fields input {
    flex: 1 1 120px;
  }

  .history-export-row {
    justify-content: space-between;
  }

  .history-export-row .export-status {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .sent-email-history-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-date-filter-box {
    grid-column: auto;
  }
}

nav.section-quick-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 12px;
  overflow-x: auto;
  border-top: 1px solid #d8e3f0;
  background: transparent;
  scrollbar-width: thin;
}

nav.section-quick-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 11px 10px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--primary-blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

nav.section-quick-nav a:hover,
nav.section-quick-nav a:focus-visible {
  border-bottom-color: var(--accent-blue);
  background: transparent;
  color: var(--primary-dark);
}

nav.section-quick-nav a[aria-current="page"] {
  border-bottom-color: var(--accent-blue);
  border-radius: 6px 6px 0 0;
  background: #e8f1ff;
  color: var(--primary-dark);
}

[data-dashboard-view][hidden] {
  display: none !important;
}

body.dashboard-section-active > [data-dashboard-view]:not([hidden]):not(.is-maximized) {
  margin-top: 0;
}

.sent-email-history-section,
.reports-section,
.monthly-reports-section,
.harver-masterfile-section,
.assessment-process-section {
  scroll-margin-top: 165px;
}

main#sendEmail {
  scroll-margin-top: 165px;
}

.header-primary {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 18px;
  min-width: 0;
}

.header-primary-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e3f0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
}

.header-text-box {
  flex: 1 1 auto;
  padding: 10px 16px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.header-primary .logo {
  align-self: center;
}

.header-primary .logo-img {
  width: 132px;
  height: auto;
}

header.top {
  align-items: stretch;
  gap: 22px;
  min-height: 0;
  padding: 10px 24px;
}

.header-controls {
  position: relative;
  z-index: 1002;
  display: flex;
  flex: 0 0 150px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.header-controls .location-control-wrap {
  position: relative;
  z-index: 1003;
  display: flex;
  width: 100%;
}

.header-controls .location-reminder-bubble {
  z-index: 1004;
}

.header-controls .header-location-select,
.header-controls .logout-btn,
.header-controls .resources-toggle {
  width: 100%;
  min-height: 36px;
  justify-content: center;
  border: 1px solid #b8cfff;
  border-radius: 9px;
  background: #edf4ff;
  color: var(--primary-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.header-controls .logout-btn,
.header-controls .resources-toggle {
  cursor: pointer;
}

.header-controls .header-location-select:focus,
.header-controls .header-location-select:hover,
.header-controls .logout-btn:hover {
  border-color: var(--accent-blue);
  background: #dce9ff;
  color: var(--primary-dark);
}

.header-controls .header-location-select {
  padding: 7px 10px;
  text-align: center;
  text-align-last: center;
}

.resources-toggle {
  display: flex;
  align-items: center;
  align-self: stretch;
  width: 100% !important;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #4d7cff !important;
  background: linear-gradient(110deg, #39b8ff, #4d7cff) !important;
  color: #fff !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.header-controls .resources-toggle:hover,
.header-controls .resources-toggle:focus-visible {
  border-color: #3470eb !important;
  background: linear-gradient(110deg, #25a8f3, #3e6feb) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(77, 124, 255, 0.24);
}

.resources-dialog {
  position: fixed;
  inset: 132px 20px auto auto;
  width: min(340px, calc(100vw - 32px));
  max-height: min(540px, calc(100vh - 150px));
  margin: 0;
  padding: 44px 10px 10px;
  overflow-y: auto;
  border: 1px solid #d8e3f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 79, 163, 0.18);
}

.resources-dialog::backdrop {
  background: rgba(31, 79, 163, 0.08);
}

.resources-dialog-close-form {
  position: absolute;
  top: 8px;
  right: 12px;
}

.resources-dialog-close {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e3f0;
  border-radius: 9px;
  background: linear-gradient(110deg, #39b8ff, #4d7cff);
  color: #fff;
  line-height: 1;
  font-size: 20px;
  cursor: pointer;
}

.resources-dialog-close span {
  transform: translateY(-2px);
}

.resources-list {
  display: grid;
  gap: 5px;
}

.resources-list a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #d8e3f0;
  border-radius: 9px;
  background: #f3f7ff;
  color: var(--primary-blue);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.resources-list a:hover,
.resources-list a:focus-visible {
  border-color: #a8c6ff;
  background: #e8f0ff;
}

.resources-list .admin-logout-link {
  margin-top: 8px;
  border-color: #a8c6ff;
  background: #edf4ff;
  color: var(--primary-dark);
  text-decoration: none;
}

@media (max-width: 1200px) {
  body {
    padding-top: 165px;
  }

  header.top {
    gap: 14px;
    padding: 10px 18px;
  }

  .header-primary {
    gap: 12px;
  }

  .header-primary .logo-img {
    width: 92px;
    height: auto;
  }

  .header-controls {
    flex-basis: 132px;
  }

  nav.section-quick-nav {
    padding: 0 6px;
  }

  nav.section-quick-nav a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  header.top {
    position: static;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .header-primary {
    flex: 1 1 100%;
    gap: 10px;
  }

  .header-primary .logo-img {
    width: 68px;
  }

  .header-primary-content {
    border-radius: 10px;
  }

  .header-text-box {
    padding: 8px 10px 6px;
  }

  .header-text-box h1 {
    font-size: 16px;
  }

  .header-text-box p:not(.header-credit) {
    font-size: 9px;
  }

  .header-credit {
    font-size: 10px !important;
  }

  nav.section-quick-nav {
    gap: 0;
    padding: 0 4px;
  }

  nav.section-quick-nav a {
    padding: 9px 8px 7px;
    font-size: 10px;
  }

  .header-controls {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 8px;
  }

  .header-controls > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .header-controls .header-location-select,
  .header-controls .logout-btn,
  .header-controls .resources-toggle {
    min-height: 34px;
    font-size: 11px;
  }

  .resources-dialog {
    inset: 12px 12px auto auto;
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  .sent-email-history-section,
  .reports-section,
  .monthly-reports-section,
  .harver-masterfile-section,
  .assessment-process-section,
  main#sendEmail {
    scroll-margin-top: 16px;
  }

  nav.section-quick-nav {
    position: static;
  }
}

.my-notes-section {
  min-width: 0;
  margin-inline: 16px;
}

.my-notes-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.my-notes-heading .card-header {
  margin-bottom: 8px;
}

.my-notes-heading .card-header h2 {
  font-size: 20px;
}

.my-notes-heading .packages-subtitle {
  margin: 0;
}

.my-notes-add-button,
.my-note-copy-button,
.my-note-delete-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #a8c6ff;
  border-radius: 8px;
  color: #1f4fa3;
  background: #e8f0ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.my-notes-add-button {
  flex: 0 0 auto;
  width: 27px;
  min-width: 27px;
  min-height: 27px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  border-color: #176b4a;
  background: #176b4a;
  font-size: 18px;
  line-height: 1;
}

.my-notes-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.my-notes-add-button:hover:not(:disabled) {
  background: #10583d;
}

.my-notes-add-button:disabled,
.my-note-copy-button:disabled,
.my-note-delete-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.my-note-copy-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.my-note-copy-button.is-copied {
  color: #176b4a;
  border-color: #8bc7a7;
  background: #e4f6ed;
}

.my-note-delete-button {
  color: #b4233c;
  border-color: #ed91aa;
  background: #fce7ee;
}

.my-notes-delete-selected-button {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.my-notes-status {
  min-height: 20px;
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.my-notes-status.error {
  color: #b4233c;
}

.my-notes-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
}

.my-notes-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--primary-blue);
  font-size: 13px;
}

.my-notes-table th,
.my-notes-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.my-notes-table th {
  background: #dceeff;
  font-weight: 700;
}

.my-notes-table th:nth-child(4n + 1),
.my-notes-table td:nth-child(4n + 1),
.my-notes-table th:nth-child(4n + 3),
.my-notes-table td:nth-child(4n + 3) {
  width: 32%;
}

.my-notes-table th:nth-child(4n + 2),
.my-notes-table td:nth-child(4n + 2),
.my-notes-table th:nth-child(4n),
.my-notes-table td:nth-child(4n) {
  width: 18%;
}

.my-notes-table input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-dark);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.my-notes-table input:not([type="checkbox"]):focus {
  outline: 2px solid rgba(77, 124, 255, .28);
  border-color: var(--accent-blue);
}

.my-notes-note-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.my-notes-table .my-note-select-checkbox {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.my-notes-note-controls input:not([type="checkbox"]) {
  flex: 1 1 auto;
  min-width: 0;
}

.my-note-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.my-notes-empty {
  padding: 22px !important;
  color: var(--text-secondary);
  text-align: center !important;
}

@media (max-width: 600px) {
  .my-notes-section {
    margin-inline: 8px;
  }

  .my-notes-heading {
    flex-direction: column;
  }

  .my-notes-table-wrap {
    overflow-x: hidden;
  }

  .my-notes-table {
    min-width: 0;
  }

  .my-notes-table thead {
    display: none;
  }

  .my-notes-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 9px;
  }

  .my-notes-table tbody td {
    width: auto !important;
    padding: 0;
    border-bottom: 0;
  }

  .my-notes-table tbody td.my-notes-content-cell {
    display: block;
  }

  .my-notes-table tbody td.my-notes-empty-slot {
    display: none;
  }

  .my-notes-table tbody td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
  }

  .my-notes-table tbody td[data-label="Notes"]::before {
    content: "Notes";
  }

  .my-notes-table tbody td[data-label="Actions"]::before {
    content: "Actions";
  }
}

/* Assessment portal: fixed left navigation, matching the screenshot layout. */
@media (min-width: 480px) {
  body {
    display: block;
    padding: 8px 0 24px 240px;
  }

  header.top {
    position: fixed;
    inset: 0 auto 0 0;
    right: auto;
    width: 240px;
    min-height: 100vh;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 18px 10px 10px;
    border: 0;
    border-right: 1px solid #d7e3ef;
    border-radius: 0;
    background: #eaf4ff;
    box-shadow: none;
  }

  .header-primary {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
  }

  .header-primary .logo {
    align-self: center;
    height: 124px;
  }

  .header-primary .logo-img {
    width: 100px;
  }

  .header-primary-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .header-text-box {
    flex: 0 0 auto;
    padding: 0 4px 8px;
    text-align: center;
  }

  .header-text-box h1 {
    max-width: 190px;
    margin: 0 auto;
    color: #173b73;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
  }

  .header-text-box p:not(.header-credit) {
    display: none;
  }

  .header-credit {
    display: block;
    margin: 2px 0 0;
    color: #4d7cff;
    font-size: 9px !important;
    line-height: 1.2;
    text-align: center;
  }

  nav.section-quick-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 0 0;
    overflow: visible;
    border: 0;
  }

  nav.section-quick-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    color: #263f54;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
  }

  nav.section-quick-nav a svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #274c66;
  }

  nav.section-quick-nav a[aria-current="page"] {
    color: #174a83;
    background: #dceeff;
    font-weight: 700;
  }

  nav.section-quick-nav a[aria-current="page"] svg {
    color: #1f4fa3;
  }

  nav.section-quick-nav a:hover,
  nav.section-quick-nav a:focus-visible,
  nav.section-quick-nav a[aria-current="page"] {
    border: 0;
    background: #f0f7ff;
    color: #174a83;
  }

  .header-controls {
    flex: 0 0 auto;
    width: 100%;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #dce8e2;
  }

  .header-controls .location-control-wrap {
    display: block;
    width: 100%;
  }

  .header-controls .header-location-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #b8c6cf;
    border-radius: 8px;
    background: #ffffff;
    color: #263f54;
    font-size: 12px;
    font-weight: 600;
  }

  .header-controls .logout-btn,
  .header-controls .resources-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: #263f54 !important;
    font-size: 13px;
    font-weight: 500;
  }

  .header-controls .logout-btn svg,
  .header-controls .resources-toggle svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #274c66;
  }

  .header-controls .logout-btn:hover,
  .header-controls .resources-toggle:hover {
    border: 0;
    background: #e3f3eb !important;
    color: #075a43 !important;
  }

  .resources-dialog {
    inset: auto auto 12px 182px;
  }

  main.grid,
  .sent-email-history-section,
  .reports-section,
  .monthly-reports-section,
  .harver-masterfile-section,
  .assessment-process-section {
    width: calc(100% - 32px);
  }
}

@media (min-width: 560px) and (max-width: 768px) {
  body {
    padding-left: 220px;
  }

  header.top {
    width: 220px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .header-primary .logo {
    height: 96px;
  }

  .header-primary .logo-img {
    width: 76px;
  }

  .header-text-box h1 {
    max-width: 188px;
    font-size: 16px;
  }

  nav.section-quick-nav a {
    min-height: 36px;
    gap: 8px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .header-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .header-controls > * {
    flex: 0 0 auto;
    min-width: 0;
  }

  .resources-dialog {
    inset: auto 12px 12px 232px;
    width: min(340px, calc(100vw - 256px));
  }
}

@media (min-width: 480px) and (max-width: 559px) {
  body {
    padding-left: 180px;
  }

  header.top {
    width: 180px;
    gap: 6px;
    padding: 14px 6px 8px;
  }

  .header-primary .logo {
    height: 70px;
  }

  .header-primary .logo-img {
    width: 60px;
  }

  .header-text-box {
    padding: 0 2px 6px;
  }

  .header-text-box h1 {
    max-width: 168px;
    font-size: 14px;
  }

  nav.section-quick-nav {
    gap: 3px;
    padding-top: 4px;
  }

  nav.section-quick-nav a {
    min-height: 32px;
    gap: 6px;
    padding: 5px 6px;
    font-size: 9.5px;
    line-height: 1.15;
  }

  .header-controls {
    gap: 2px;
    padding-top: 6px;
  }

  .header-controls .header-location-select,
  .header-controls .logout-btn,
  .header-controls .resources-toggle {
    min-height: 34px;
    font-size: 10px;
  }

  .header-controls .logout-btn,
  .header-controls .resources-toggle {
    gap: 6px;
    padding: 6px 8px;
  }

  .resources-dialog {
    inset: auto 8px 8px 188px;
    width: min(300px, calc(100vw - 204px));
  }
}

.package-selection-modal[hidden] {
  display: none !important;
}

.package-selection-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 48, 38, 0.42);
  backdrop-filter: blur(3px);
}

.package-selection-dialog {
  width: min(1080px, calc(100vw - 80px));
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d5e8dc;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 61, 50, 0.22);
}

.package-selection-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 6px 12px;
  border-bottom: 1px solid #e3eee7;
}

.package-selection-header h2 {
  grid-column: 2;
  margin: 0;
  color: #24513f;
  font-size: 20px;
  text-align: center;
}

.package-selection-close {
  grid-column: 3;
  justify-self: end;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #d93025;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.package-selection-close:hover {
  color: #b42318;
  background: #fff0ef;
}

.package-selection-content {
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.package-selection-content .assessment-packages-full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  box-shadow: none;
}

.package-selection-content .assessment-packages-full .packages-subtitle {
  display: none;
}

.package-selection-content .package-item {
  min-height: 40px;
  padding: 6px 8px;
  grid-template-columns: 16px minmax(0, 1fr);
  border-width: 1px;
  border-radius: 8px;
}

.package-selection-content .package-name {
  font-size: 12px;
  line-height: 1.2;
}

.package-selection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  border-top: 1px solid #e3eee7;
  background: #ffffff;
}

#packageQueueStatus {
  color: #5f756b;
  font-size: 12px;
}

#queueAssessmentCandidateBtn {
  width: auto;
  min-height: 34px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #176b4a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#queueAssessmentCandidateBtn:hover {
  background: #125739;
}

.assessment-email-queue {
  margin: 8px 4px 10px;
  border: 1px solid #d7e6dd;
  border-radius: 8px;
  background: #ffffff;
}

.assessment-email-queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  color: #24513f;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #e5eee8;
}

.assessment-email-queue-heading strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 10px;
  color: #176b4a;
  background: #edf7f1;
  font-size: 11px;
}

.assessment-email-queue-list {
  max-height: 112px;
  overflow-y: auto;
}

.assessment-email-queue-list p {
  margin: 0;
  padding: 8px 9px;
  color: #7a867f;
  font-size: 11px;
  text-align: center;
}

.assessment-email-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid #edf3ef;
  color: #263f54;
  font-size: 11px;
}

.assessment-email-queue-item:last-child {
  border-bottom: 0;
}

.assessment-email-queue-panel {
  width: calc(100% - 32px);
  max-width: 1560px;
  margin: 0 auto 24px;
  border: 1px solid #174a83 !important;
  border-radius: 12px !important;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(34, 86, 62, .06);
}

.assessment-email-queue-panel .assessment-email-queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.assessment-email-queue-panel .assessment-email-queue-heading h2 {
  margin: 0;
  color: #174a83;
  font-size: 16px;
  font-weight: 700;
}

.assessment-email-queue-heading strong {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #174a83;
  color: #ffffff;
  font-size: 11px;
  line-height: 24px;
  text-align: center;
}

.assessment-email-queue-columns,
.assessment-email-queue-item {
  display: grid;
  grid-template-columns: 50px minmax(180px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) 140px;
  align-items: center;
  gap: 8px;
}

.assessment-email-queue-columns {
  min-height: 34px;
  margin: 0 12px;
  padding: 6px 8px;
  border-bottom: 1px solid #c9dcf5;
  color: #174a83;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 700;
}

.assessment-email-queue-list {
  margin: 0 12px 12px;
  max-height: none;
  overflow: visible;
}

.assessment-email-queue-list .assessment-email-queue-empty {
  margin: 0;
  padding: 12px 8px;
  color: #7a867f;
  text-align: center;
}

.assessment-email-queue-item {
  min-height: 38px;
  margin: 0;
  padding: 6px 8px;
  border-bottom: 1px solid #edf3ef;
  color: #263f54;
  font-size: 11px;
  border-radius: 0;
}

.assessment-email-queue-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.selected-packages-card .card-header .select-package-btn {
  flex: 0 0 auto;
  display: inline-flex;
  width: 108px;
  min-width: 108px;
  min-height: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #103b70;
  border-radius: 6px;
  color: #ffffff;
  background: #174a83;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.selected-packages-card .card-header .select-package-btn:hover {
  background: #103b70;
  box-shadow: none;
  transform: none;
}

.package-selection-close:hover,
.package-selection-close:focus-visible {
  color: #b42318 !important;
  background: #fff0ef !important;
  box-shadow: none !important;
  transform: none !important;
}

.package-selection-close {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #d93025 !important;
  background: transparent !important;
  font-size: 30px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Data pages match the recruiter portal: no outer card/section box. */
#sentEmailHistory,
#typingResults,
#reports,
#notificationReport,
#applicantDetailsSection,
#rncfRecordsSection,
.my-notes-section,
.monthly-reports-section,
.harver-masterfile-section,
.assessment-process-section,
.history-trend-section {
  padding: 10px 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

section.card.assessment-process-section {
  padding: calc(var(--assessment-process-heading-height, 116px) + 38px) 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

section.card.monthly-reports-section {
  padding: 10px 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#sentEmailHistory .card-header,
#typingResults .card-header,
#reports .card-header,
#notificationReport .card-header,
#applicantDetailsSection .card-header,
#rncfRecordsSection .card-header,
.my-notes-section .card-header,
.history-trend-section .history-trend-heading {
  margin-bottom: 8px;
}

#sentEmailHistory .sent-email-history-scroll,
#applicantDetailsSection .sent-email-history-scroll,
#rncfRecordsSection .sent-email-history-scroll,
.typing-results-table-wrap,
.notification-details-scroll,
.my-notes-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

#sentEmailHistory .sent-email-history-table,
#applicantDetailsSection .sent-email-history-table,
#rncfRecordsSection .sent-email-history-table,
.typing-results-table,
.notification-details-table,
.my-notes-table {
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
}

#typingResults .typing-results-table-wrap {
  height: auto;
  max-height: none;
  overflow: visible;
}

#typingResults .typing-results-table thead th {
  position: static;
  top: auto;
  z-index: auto;
  background: #edf4ff;
  box-shadow: none;
}

@media (min-width: 480px) {
  #typingResults {
    padding-top: 10px;
  }

  #typingResults .typing-results-sticky-header {
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: none;
    margin: 0;
    padding: 8px 0 4px;
    background: #ffffff;
  }
}

#typingResults .typing-results-filters input,
#typingResults .typing-results-filters select {
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  height: 40px;
  min-height: 40px;
  font-size: 14px;
}

@media (max-width: 600px) {
  #typingResults .typing-results-filters input,
  #typingResults .typing-results-filters select {
    flex: 1 1 200px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px;
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  #typingResults .typing-results-table thead th {
    top: auto;
  }
}

/* Embedded tools and My Notes use the full page with no outer card box. */
#seatManager,
#rncf,
#myNotes {
  width: calc(100% - 32px);
  max-width: 1800px;
  margin: 24px auto 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#seatManager {
  margin-top: 0;
  margin-bottom: 0;
}

.embedded-tool-frame {
  width: 100%;
  height: calc(100vh - 48px);
  min-height: 720px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#myNotes .my-notes-heading {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body {
  --report-sticky-sidebar-width: 0px;
}

@media (min-width: 480px) {
  body {
    --report-sticky-sidebar-width: 240px;
  }

  body.sidebar-collapsed {
    --report-sticky-sidebar-width: 64px;
  }

  .reports-page-heading,
  .notification-report-heading {
    position: fixed;
    top: 0;
    right: 16px;
    left: calc(var(--report-sticky-sidebar-width) + 16px);
    max-width: 1560px;
    margin-right: auto;
    margin-left: auto;
    z-index: 20;
    padding: 8px 0 1px;
    background: #fff;
  }

  .send-email-page-heading {
    position: fixed;
    top: 0;
    right: 12px;
    left: calc(var(--report-sticky-sidebar-width) + 12px);
    z-index: 20;
    width: auto;
    min-height: 84px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    opacity: 1;
    margin: 0;
    padding: 10px 16px;
    overflow: visible;
    box-shadow: none;
  }

  .send-email-page-heading::before {
    inset: -12px -12px 0;
  }

  main#sendEmail {
    padding-top: var(--send-email-page-heading-height, 84px);
  }

  #reports,
  #notificationReport {
    padding-top: 90px;
  }
}

#reports,
#notificationReport {
  z-index: 20;
}

@media (min-width: 560px) and (max-width: 768px) {
  body {
    --report-sticky-sidebar-width: 220px;
  }

  body.sidebar-collapsed {
    --report-sticky-sidebar-width: 56px;
  }
}

@media (min-width: 480px) and (max-width: 559px) {
  body {
    --report-sticky-sidebar-width: 180px;
  }

  body.sidebar-collapsed {
    --report-sticky-sidebar-width: 56px;
  }
}

@media (max-width: 479px) {
  .reports-page-heading,
  .notification-report-heading {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 8px 0 1px;
    background: #fff;
  }

  .send-email-page-heading {
    position: sticky;
    top: 8px;
    z-index: 20;
    width: calc(100% - 32px);
    min-height: 54px;
    margin: 8px 16px 16px;
  }

  .send-email-page-heading h1 {
    font-size: 16px;
  }
}

#myNotes .my-notes-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

@media (min-width: 769px) {
  .assessment-sidebar-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 3px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #174a83;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .assessment-sidebar-toggle svg {
    width: 17px;
    height: 17px;
  }

  .assessment-sidebar-toggle:hover,
  .assessment-sidebar-toggle:focus-visible {
    color: #103b70;
    background: #e7f5ed;
    box-shadow: none;
    transform: none;
  }

  body,
  header.top {
    transition: width .2s ease, padding-left .2s ease, left .2s ease;
  }

  body.sidebar-collapsed {
    padding-left: 64px;
  }

  body.sidebar-collapsed header.top {
    width: 64px;
  }

  body.sidebar-collapsed .header-primary .logo {
    height: 72px;
  }

  body.sidebar-collapsed .header-primary .logo-img {
    width: 34px;
  }

  body.sidebar-collapsed .header-text-box,
  body.sidebar-collapsed nav.section-quick-nav a span,
  body.sidebar-collapsed .header-controls .location-control-wrap,
  body.sidebar-collapsed .header-controls button span {
    display: none;
  }

  body.sidebar-collapsed nav.section-quick-nav a,
  body.sidebar-collapsed .header-controls .logout-btn,
  body.sidebar-collapsed .header-controls .resources-toggle {
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 8px 4px;
  }

  body.sidebar-collapsed nav.section-quick-nav a svg,
  body.sidebar-collapsed .header-controls button svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

/* Final compact-control overrides: keep these independent of global button styles. */
#openPackageSelectionBtn,
button#openPackageSelectionBtn {
  display: inline-flex !important;
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 0 auto !important;
  padding: 4px 8px !important;
  border: 1px solid #103b70 !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  background: #174a83 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

#openPackageSelectionBtn:hover,
#openPackageSelectionBtn:focus-visible {
  background: #103b70 !important;
  box-shadow: none !important;
  transform: none !important;
}

#assessmentSidebarToggle,
button#assessmentSidebarToggle {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  display: grid !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 3px !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #174a83 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#assessmentSidebarToggle svg {
  width: 17px !important;
  height: 17px !important;
  color: #174a83 !important;
}

#assessmentSidebarToggle:hover,
#assessmentSidebarToggle:focus-visible {
  color: #103b70 !important;
  background: #e7f5ed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Recruiter-reference Send Email card geometry. */
@media (min-width: 769px) {
  main#sendEmail.grid {
    grid-template-columns: 1.04fr 1fr 1fr;
    gap: 24px;
    width: calc(100% - 24px);
    max-width: 1560px;
    min-height: 0;
    margin: 0 auto;
    padding: var(--send-email-page-heading-height, 84px) 0 24px;
  }

  main#sendEmail.grid > .card,
  main#sendEmail.grid .right-column > .card,
  main#sendEmail.grid .selected-packages-card,
  main#sendEmail.grid .sent-history-card {
    border: 1px solid #174a83;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(34, 86, 62, .06);
  }

  main#sendEmail.grid .candidate-info-card,
  main#sendEmail.grid .selected-packages-card,
  main#sendEmail.grid .sent-history-card {
    min-height: 560px;
    height: 560px;
    padding: 28px;
  }

  main#sendEmail.grid .card-header {
    margin-bottom: 12px;
  }

  main#sendEmail.grid .card-header h2 {
    margin: 0 !important;
    color: #495057;
    font-size: 18px;
  }

  main#sendEmail.grid .selected-packages-card #selectedPackagesContainer {
    flex: 1 1 auto;
    max-height: 470px;
  }

  main#sendEmail.grid > .card:hover,
  main#sendEmail.grid .right-column > .card:hover {
    box-shadow: 0 3px 12px rgba(34, 86, 62, .06);
  }

  .assessment-email-queue-panel {
    width: calc(100% - 24px);
    max-width: 1560px;
    border: 1px solid #174a83;
    border-radius: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  main#sendEmail.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main#sendEmail.grid .candidate-info-card,
  main#sendEmail.grid .selected-packages-card,
  main#sendEmail.grid .sent-history-card {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 20px;
  }

  main#sendEmail.grid .sent-history-card {
    grid-column: 1 / -1;
  }

  main#sendEmail.grid .sent-history-card .email-preview {
    flex: 0 0 auto;
    min-height: 180px;
  }

  main#sendEmail.grid .sent-history-card .email-preview-body {
    height: auto;
    flex: 1 1 auto;
    min-height: 120px;
    max-height: 320px;
  }

  main#sendEmail.grid .selected-packages-card #selectedPackagesContainer {
    max-height: none;
  }

  .candidate-assessment-options .email-action-controls {
    min-height: 0;
  }

  .candidate-assessment-options .retake-option {
    width: 100%;
    align-items: flex-start;
  }

  .candidate-assessment-options .retake-option input {
    flex: 0 0 18px;
    margin-top: 2px;
  }

  .assessment-email-queue-columns,
  .assessment-email-queue-item {
    grid-template-columns: 32px minmax(90px, .9fr) minmax(120px, 1.2fr) minmax(120px, 1.2fr) 105px;
  }
}

@media (max-width: 768px) {
  main#sendEmail.grid > .candidate-info-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  main#sendEmail.grid .sent-history-card .email-preview {
    flex: 0 0 auto;
    min-height: 180px;
  }

  main#sendEmail.grid .sent-history-card .email-preview-body {
    height: auto;
    flex: 1 1 auto;
    min-height: 120px;
    max-height: 320px;
  }

  nav.section-quick-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  nav.section-quick-nav a {
    min-width: 0;
    justify-content: flex-start;
    white-space: normal;
  }

  .header-controls .resources-toggle svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .assessment-email-queue-panel {
    order: 5;
    min-width: 0;
    overflow-x: hidden;
  }

  .assessment-email-queue-columns,
  .assessment-email-queue-item {
    min-width: 0;
    grid-template-columns: 24px minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr) 76px;
    gap: 4px;
  }

  .assessment-email-queue-columns {
    margin-right: 6px;
    margin-left: 6px;
    padding-right: 4px;
    padding-left: 4px;
    font-size: 10px;
  }

  .assessment-email-queue-list {
    margin-right: 6px;
    margin-left: 6px;
  }

  .assessment-email-queue-item {
    padding-right: 4px;
    padding-left: 4px;
  }

  .assessment-email-queue-item > span,
  .assessment-email-queue-status {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

#clearDataBtn + .candidate-assessment-options {
  margin-top: 12px;
}

.candidate-assessment-options,
.candidate-assessment-options .email-action-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

/* Recruiter-style compact filters used by every data page. */
.typing-results-filters,
.applicant-details-toolbar,
.rncf-records-toolbar,
.rncf-filter-controls,
.notification-details-search-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.typing-results-filters input,
.typing-results-filters select,
.applicant-details-toolbar input,
.applicant-details-toolbar textarea,
.rncf-records-toolbar input,
.rncf-records-toolbar textarea,
.rncf-filter-controls select,
.notification-details-search-controls input,
.notification-details-search-controls select {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 26px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
  background: #ffffff;
  font-size: 10px;
  line-height: 1.1;
  text-align: left;
}

.rncf-filter-controls select {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.rncf-records-toolbar textarea,
.applicant-details-toolbar textarea {
  height: 26px;
  resize: none;
}

@media (max-width: 768px) {
  .typing-results-filters input,
  .typing-results-filters select,
  .applicant-details-toolbar input,
  .applicant-details-toolbar textarea,
  .rncf-records-toolbar input,
  .rncf-records-toolbar textarea,
  .rncf-filter-controls select,
  .notification-details-search-controls input,
  .notification-details-search-controls select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

#sentEmailHistory .sent-email-history-sticky-header {
  flex: 0 0 auto;
  position: fixed;
  top: 0;
  right: 16px;
  left: calc(var(--report-sticky-sidebar-width, 0px) + 16px);
  max-width: 1560px;
  margin-right: auto;
  margin-left: auto;
  z-index: 30;
  padding: 8px 0 4px;
  background: #ffffff;
}

#sentEmailHistory .sent-email-history-sticky-header .card-header {
  margin-bottom: 8px;
}

#sentEmailHistory .sent-email-history-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#sentEmailHistory .history-filter-box {
  flex: 0 0 auto;
}

#sentEmailHistory .history-filter-box input,
#sentEmailHistory .history-filter-box select {
  box-sizing: border-box;
  width: 180px;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #a8c6ff;
  border-radius: 6px;
  background: #ffffff;
  color: #263f54;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
}

#sentEmailHistory .history-filter-box[for="historySearchInput"] input {
  width: 205px;
}

#sentEmailHistory .history-filter-box[for="historyLocationFilter"] select {
  width: 165px;
}

#sentEmailHistory .history-filter-box[for="historyAssessmentTypeFilter"] select {
  width: 180px;
}

#sentEmailHistory .history-filter-box .history-search-input {
  margin: 0 !important;
  padding: 5px 9px !important;
  border: 1px solid #a8c6ff !important;
  border-radius: 6px !important;
  font-size: 11px !important;
}

#sentEmailHistory .history-date-filter-box {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

#sentEmailHistory .history-date-filter-fields {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

#sentEmailHistory .history-date-filter-fields label {
  color: #53645a;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

#sentEmailHistory .history-date-filter-fields input {
  flex: 0 1 130px;
  width: 130px;
  min-width: 120px;
}

#sentEmailHistory .history-filter-box input:focus-visible,
#sentEmailHistory .history-filter-box select:focus-visible {
  border-color: #4d7cff;
  box-shadow: 0 0 0 2px rgba(77, 124, 255, .16);
  outline: none;
}

@media (min-width: 769px) {
  #sentEmailHistory {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 88px);
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  #sentEmailHistory .history-export-row,
  #sentEmailHistory #sentEmailHistoryPagination,
  #sentEmailHistory .table-delete-actions {
    flex: 0 0 auto;
  }

  #sentEmailHistory .history-export-row {
    min-height: 30px;
    margin-bottom: 2px;
  }

  #sentEmailHistory .history-export-row .export-data-btn {
    height: 30px;
    min-height: 30px;
    padding: 5px 10px !important;
    font-size: 11px !important;
  }

  #sentEmailHistory .sent-email-history-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    border: 1px solid var(--border-light);
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  #sentEmailHistory .history-filter-box {
    flex: 1 1 180px;
  }

  #sentEmailHistory .history-filter-box input,
  #sentEmailHistory .history-filter-box select {
    width: 100%;
  }

  #sentEmailHistory .history-date-filter-box {
    flex-basis: 100%;
  }

  #sentEmailHistory .history-date-filter-fields {
    flex: 1 1 auto;
  }

  #sentEmailHistory .history-date-filter-fields input {
    flex: 1 1 120px;
    width: auto;
  }
}

@media (max-width: 480px) {
  #sentEmailHistory .history-filter-box {
    flex-basis: 100%;
  }

  #sentEmailHistory .history-date-filter-fields {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
  }
}

@media (min-width: 769px) {
  .header-controls .resources-toggle {
    border: 0 !important;
    box-shadow: none !important;
  }

  .header-controls .resources-toggle:hover,
  .header-controls .resources-toggle:focus-visible {
    border: 0 !important;
    background: #e8f0ff !important;
    color: #174a83 !important;
  }

  .header-controls .resources-toggle:focus-visible {
    outline: 2px solid #4d7cff;
    outline-offset: 2px;
  }
}

.location-control-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #174a83;
  pointer-events: none;
  transform: translateY(-50%);
}

.header-controls .header-location-select {
  padding-left: 36px !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 480px) and (max-width: 768px) {
  nav.section-quick-nav {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
  }

  body,
  header.top {
    transition: width .2s ease, padding-left .2s ease;
  }

  body.sidebar-collapsed {
    padding-left: 56px;
  }

  body.sidebar-collapsed header.top {
    width: 56px;
    padding-right: 4px;
    padding-left: 4px;
  }

  body.sidebar-collapsed .header-primary .logo {
    height: 58px;
    margin-top: 24px;
  }

  body.sidebar-collapsed .header-primary .logo-img {
    width: 38px;
  }

  body.sidebar-collapsed .header-text-box,
  body.sidebar-collapsed nav.section-quick-nav a span,
  body.sidebar-collapsed .header-controls .location-control-wrap,
  body.sidebar-collapsed .header-controls button span {
    display: none;
  }

  body.sidebar-collapsed nav.section-quick-nav a,
  body.sidebar-collapsed .header-controls .logout-btn,
  body.sidebar-collapsed .header-controls .resources-toggle {
    justify-content: center;
    gap: 0;
    width: 100%;
    padding: 8px 4px;
  }

  body.sidebar-collapsed nav.section-quick-nav a svg,
  body.sidebar-collapsed .header-controls button svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 480px) and (max-width: 559px) {
  .header-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .header-controls > * {
    flex: 0 0 auto;
    width: 100%;
  }
}

body.sidebar-collapsed #assessmentSidebarToggle {
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

body.sidebar-collapsed #assessmentSidebarToggle svg {
  width: 18px !important;
  height: 18px !important;
}

#sentEmailHistory {
  padding-top: calc(var(--sent-history-toolbar-height, 74px) + 10px);
  height: auto;
  min-height: 0;
  overflow: visible;
}

#sentEmailHistory .sent-email-history-scroll {
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}

#sentEmailHistory .sent-email-history-toolbar > .history-export-row {
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

#sentEmailHistory .sent-email-history-table thead {
  position: static;
}

#sentEmailHistory .sent-email-history-table thead th {
  position: static;
  top: auto;
  z-index: auto;
}

@media (min-width: 1400px) {
  #sentEmailHistory .sent-email-history-scroll {
    overflow: visible;
  }
}

@media (max-width: 479px) {
  #sentEmailHistory .sent-email-history-sticky-header {
    right: 16px;
    left: 16px;
  }
}

@media (min-width: 769px) {
  #sentEmailHistory {
    height: auto;
    overflow: visible;
  }
}

#sentEmailHistory .sent-email-history-scroll {
  flex: 0 0 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: visible;
}

#myNotes,
#sentEmailHistory,
#typingResults,
#notificationReport,
#reports,
#rncf {
  width: calc(100% - 32px);
  max-width: 1560px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 480px) {
  #rncf:not([hidden]) .embedded-tool-frame {
    position: fixed;
    top: 0;
    left: calc(var(--report-sticky-sidebar-width, 240px) + 16px);
    right: 16px;
    z-index: 900;
    width: calc(100vw - var(--report-sticky-sidebar-width, 240px) - 32px);
    max-width: 1560px;
    height: 100vh;
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  header.top nav.section-quick-nav {
    gap: 2px;
  }

  header.top nav.section-quick-nav a {
    min-height: 34px;
    gap: 8px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.15;
  }
}

#sentEmailHistory .sent-email-history-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

#sentEmailHistory .sent-email-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #edf4ff;
}

#typingResults .typing-results-table-wrap {
  height: 700px;
  max-height: 700px;
  overflow-x: auto;
  overflow-y: auto;
}

#typingResults .typing-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background-color: #edf4ff !important;
  background-image: none !important;
  box-shadow: none;
}

#typingResults .typing-results-table th:first-child,
#typingResults .typing-results-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: 2px 0 4px rgba(29, 43, 58, .12);
}

#typingResults .typing-results-table th:last-child,
#typingResults .typing-results-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: -2px 0 4px rgba(29, 43, 58, .12);
}

#typingResults .typing-results-table thead th:first-child,
#typingResults .typing-results-table thead th:last-child {
  z-index: 5;
  background-color: #edf4ff !important;
}

@media (min-width: 480px) {
  #reports > .reports-page-heading {
    left: var(--report-sticky-sidebar-width, 0px);
    right: 0;
    max-width: none;
    box-sizing: border-box;
    padding-right: 16px;
    padding-left: 16px;
    background-color: #ffffff;
  }
}

