/* ===== COLOR PALETTE ===== */
:root {
  /* Strong green + light green palette */
  --primary-dark: #123d32;
  --primary-blue: #2d6f55;
  --accent-blue: #f5fff7;
  --sky-blue: #cfead8;
  --accent-green: #2f7d5d;
  --accent-green-mid: #78b890;
  --accent-green-light: #edfdf3;

  --purple: #5aa67d;
  --purple-light: #f3fff7;
  --purple-border: #d5f0dd;

  --green: #4d9a6d;
  --green-light: #edf9f0;
  --pink-light: #f7fff9;
  --yellow-light: #f7fff9;
  --orange-light: #f5fff7;

  --blue-light: #edfdf3;
  --blue-border: #d3edda;

  /* Backgrounds */
  --bg-light: #edfaf1;
  --bg-white: #ffffff;
  --bg-hover: #e6f8eb;

  /* Borders & Text */
  --border-light: #d4ecdc;
  --border-subtle: #c7e6d1;
  --text-dark: #1d1d1d;
  --text-secondary: #4d504e;
  --shadow-light: 0 2px 10px rgba(23, 86, 65, 0.08);
  --shadow-medium: 0 8px 20px rgba(23, 86, 65, 0.12);
  --shadow-card: 0 4px 12px rgba(23, 86, 65, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary-dark: #f2f2ee;
  --primary-blue: #e4e4df;
  --accent-blue: #f4f4ef;
  --sky-blue: #b9b9b2;
  --accent-green: #f0f0eb;
  --accent-green-mid: #c6c6bf;
  --accent-green-light: #30302d;
  --purple: #f0f0eb;
  --purple-light: #30302d;
  --purple-border: #4a4a45;
  --green: #d7d7d0;
  --green-light: #30302d;
  --pink-light: #382f2e;
  --yellow-light: #39372e;
  --orange-light: #39322c;
  --blue-light: #30302d;
  --blue-border: #4a4a45;
  --bg-light: #111110;
  --bg-white: #1c1c1a;
  --bg-hover: #2a2a27;
  --border-light: #393936;
  --border-subtle: #4a4a45;
  --text-dark: #eeeeea;
  --text-secondary: #c0c0b9;
}

html[data-theme="dark"] body {
  color: var(--text-dark);
  background: #111110;
}

html[data-theme="dark"] body::before { opacity: .08; }

html[data-theme="dark"] section.card {
  color: var(--text-dark);
  background: linear-gradient(145deg, #20201e, #191918);
  border-color: #41413c;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .card input,
html[data-theme="dark"] .card select,
html[data-theme="dark"] .card textarea,
html[data-theme="dark"] .select-search-input {
  color: var(--text-dark);
  background-color: #171716;
  border-color: #4a4a45;
}

html[data-theme="dark"] .resource-menu-panel,
html[data-theme="dark"] .select-search-options,
html[data-theme="dark"] .recruiter-search-options {
  color: var(--text-dark);
  background: #20201e;
  border-color: #41413c;
}

html[data-theme="dark"] .resource-menu-panel a,
html[data-theme="dark"] .select-search-option,
html[data-theme="dark"] .recruiter-search-option {
  color: var(--text-dark);
  background-color: transparent;
  border-color: #393936;
}

html[data-theme="dark"] .resource-menu-panel a:hover,
html[data-theme="dark"] .select-search-option:hover,
html[data-theme="dark"] .select-search-option:focus,
html[data-theme="dark"] .recruiter-search-option:hover,
html[data-theme="dark"] .recruiter-search-option:focus {
  background: #30302d;
}

html[data-theme="dark"] .portal-login-card {
  color: #eeeeea;
  background: #1c1c1a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .portal-login-view {
  color: #eeeeea;
  background:
    linear-gradient(rgba(7, 7, 7, .84), rgba(10, 10, 9, .9)),
    url('background%20image%20green.png') center / cover no-repeat;
}

html[data-theme="dark"] .portal-login-card h1,
html[data-theme="dark"] .portal-login-card input {
  color: #eeeeea;
}

html[data-theme="dark"] .portal-login-card > p { color: #c0c0b9; }

html[data-theme="dark"] .portal-login-card input { background: #111110; }

html[data-theme="dark"] body .portal-login-card button:not(.portal-reset-password) {
  color: #f4f4ef;
  background: #383835;
}

html[data-theme="dark"] body .portal-login-card button:not(.portal-reset-password):hover {
  background: #4a4a45;
}

html[data-theme="dark"] .theme-switch {
  border-color: rgba(210, 210, 202, .2);
  background: rgba(35, 35, 32, .9);
}

html[data-theme="dark"] .theme-switch button { color: #d2d2cb; }

html[data-theme="dark"] .theme-switch button[aria-pressed="true"] {
  color: #20201f;
  background: #f2f2ee;
}

/* ===== GLOBAL STYLES ===== */
html:not(.portal-login-locked) {
  zoom: 1.1;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.portal-page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  grid-template-columns: none;
  gap: 20px;
  order: initial;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 4px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(72, 139, 103, 0.18);
}

.portal-page-nav a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--primary-dark);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: color .2s ease;
}

.portal-page-nav a[hidden] {
  display: none !important;
}

.portal-page-nav a:hover,
.portal-page-nav a[aria-current="page"] {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.table-pagination .table-page-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 70px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  color: #1d4ed8;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.table-pagination .table-page-control:hover:not(:disabled) {
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: none;
  transform: none;
}

.table-pagination .table-page-control:disabled {
  border-color: #bfdbfe;
  color: #93a8cb;
  background: #f8fbff;
  cursor: default;
}

html.portal-login-locked {
  overflow: hidden;
}

body.portal-locked > :not(#portalLoginView) {
  display: none;
}

body.portal-locked {
  padding: 0;
  width: 100vw;
  overflow: hidden;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(70, 70, 65, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.theme-switch button {
  min-width: 54px;
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  color: #55554f;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
  color: #fff;
  background: #252523;
}

.theme-switch button:focus-visible {
  outline: 2px solid #777770;
  outline-offset: 2px;
}

body .portal-logout-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(35, 115, 86, 0.3);
  border-radius: 8px;
  color: #1c4d3c;
  background: linear-gradient(180deg, #e9f9ee 0%, #d7f1e2 100%);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body .portal-logout-btn:hover {
  background: #cfeedd;
}

.portal-login-view {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #111111;
  background: url('background%20image%20green.png') center / cover no-repeat;
  font-family: 'DM Sans', sans-serif;
}

.portal-login-view::before,
.portal-login-view::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}

.portal-login-view::before {
  opacity: .8;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(120, 184, 144, .06) 0 30px, rgba(120, 184, 144, .2) 31px 34px, transparent 35px),
    radial-gradient(circle at 90% 22%, rgba(120, 184, 144, .03) 0 46px, rgba(120, 184, 144, .18) 47px 50px, transparent 51px),
    radial-gradient(circle at 16% 78%, rgba(120, 184, 144, .05) 0 24px, rgba(120, 184, 144, .16) 25px 27px, transparent 28px);
}

.portal-login-view::after {
  opacity: .72;
  background-image:
    radial-gradient(circle at 82% 76%, rgba(120, 184, 144, .05) 0 34px, rgba(120, 184, 144, .17) 35px 38px, transparent 39px),
    radial-gradient(circle at 30% 42%, rgba(120, 184, 144, .03) 0 13px, rgba(120, 184, 144, .14) 14px 16px, transparent 17px),
    radial-gradient(circle at 70% 46%, rgba(120, 184, 144, .10) 0 9px, transparent 11px);
}

.portal-login-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  flex: 0 0 auto;
  margin: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 2px solid #2f9f6b;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(52, 126, 93, 0.12);
}

.motivation-toast[hidden] {
  display: none !important;
}

.motivation-toast {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  min-height: 38px;
  margin-top: 6px;
  padding: 6px 18px;
  overflow: hidden;
  border: 1px solid #b6e1c2;
  border-radius: 18px;
  color: #245c42;
  background-image:
    radial-gradient(circle at 8% 20%, rgba(120, 184, 144, .22) 0 3px, transparent 4px),
    radial-gradient(circle at 94% 78%, rgba(120, 184, 144, .18) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .8) 0 2px, transparent 3px),
    linear-gradient(135deg, #ffffff 0%, #effaf2 100%);
  box-shadow: 0 10px 28px rgba(38, 103, 72, .14);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease;
}

.motivation-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-login-logo {
  display: block;
  width: min(170px, 100%);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}

.portal-login-eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 700;
}

.portal-login-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green-mid);
}

.portal-login-card h1 {
  margin: 18px 0 10px;
  color: #1a1a1a;
  font: 800 clamp(30px, 4.5vw, 48px)/1 Manrope, sans-serif;
  letter-spacing: -.05em;
}

.portal-login-card h1 em {
  color: #2f8769;
  font-style: normal;
}

.portal-login-card > p {
  margin: 0 0 25px;
  color: #2f2f2f;
}

.portal-login-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1c;
}

.portal-login-card input {
  width: 100%;
  margin-bottom: 17px;
  padding: 13px 15px;
  border: 1px solid #d9d9d2;
  border-radius: 10px;
  outline: none;
  color: #1b1b1b;
  background: #fff;
  font: inherit;
}

.portal-login-card input:focus {
  border-color: var(--accent-green-mid);
  box-shadow: 0 0 0 3px rgba(47, 159, 107, .15);
}

.portal-password-field {
  position: relative;
  margin-bottom: 17px;
}

.portal-password-field input {
  margin-bottom: 0;
  padding-right: 52px;
}

#portalLoginView .portal-login-card form .portal-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: #426b56;
  background: transparent;
  box-shadow: none;
}

#portalLoginView .portal-login-card form .portal-password-toggle:hover {
  transform: translateY(-50%);
  background: #e8f5ed;
  box-shadow: none;
}

.portal-password-toggle svg {
  width: 20px;
  height: 20px;
}

.portal-password-toggle[aria-pressed="true"] .password-eye-slash {
  display: none;
}

body .portal-login-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 47px;
  margin-top: 6px;
  padding: 0 20px;
  border: 1px solid #d5e9dc;
  border-radius: 9px;
  color: #1d1d1d;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body .portal-login-card button:hover { background: #eefcf4; }
body .portal-login-card button:disabled { cursor: wait; opacity: 1; }

#portalLoginView .portal-login-card form button[type="submit"] {
  justify-content: center;
  border: 1px solid #28764f;
  color: #123d2b;
  background: #d9f0e2;
  font-weight: 800;
}

#portalLoginView .portal-login-card form button[type="submit"]:hover {
  background: #c5e8d2;
}

#portalLoginView .portal-login-card form button[type="submit"]:disabled {
  color: #123d2b;
  background: #d9f0e2;
}

body .portal-login-card .portal-reset-password {
  width: auto;
  min-height: 0;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-green);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

body .portal-login-card .portal-reset-password:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

#portalLoginMessage {
  min-height: 22px;
  margin: 14px 0 0;
  color: #c14e43;
  font-size: 13px;
}

#portalLoginView .portal-login-card [role="alert"]:not(:empty):not(.is-success) {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #c83e3e;
  border-radius: 9px;
  color: #7a1717;
  background: #fff0f0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#portalLoginView .portal-login-card #portalLoginMessage.is-success {
  border-color: #31845a;
  color: #145437;
  background: #eaf8ef;
}

html[data-theme="dark"] #portalLoginView .portal-login-card [role="alert"]:not(:empty):not(.is-success) {
  border-color: #ef7777;
  color: #ffe2e2;
  background: #4a2020;
}

html[data-theme="dark"] #portalLoginView .portal-login-card #portalLoginMessage.is-success {
  border-color: #66bd8b;
  color: #d8f8e4;
  background: #183b29;
}

html[data-theme="dark"] #portalLoginView .portal-login-card form button[type="submit"],
html[data-theme="dark"] #portalLoginView .portal-login-card form button[type="submit"]:disabled {
  border-color: #80c99e;
  color: #f4fff7;
  background: #245c3e;
}

@media (min-width: 701px) and (max-height: 900px) {
  .portal-login-card {
    box-sizing: border-box;
    height: 570px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 14px 38px;
  }

  .portal-login-logo {
    width: 120px;
    margin-bottom: 8px;
  }

  .portal-login-card h1 {
    margin: 8px 0 6px;
    font-size: 34px;
  }

  .portal-login-card > p {
    margin-bottom: 12px;
  }

  .portal-login-card input {
    margin-bottom: 8px;
    padding: 9px 13px;
  }

  .portal-password-field {
    margin-bottom: 8px;
  }

  .portal-password-field input {
    margin-bottom: 0;
    padding-right: 52px;
  }

  body .portal-login-card button {
    min-height: 44px;
  }

  body .portal-login-card .portal-reset-password {
    margin-top: 10px;
  }

  #portalLoginMessage {
    min-height: 0;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .portal-login-view { padding: 20px; }
  .portal-login-card { padding: 20px; border-radius: 18px; }
  .portal-login-logo { width: min(110px, 100%); margin-bottom: 16px; }
  .portal-login-card h1 { margin-top: 10px; }
  #portalLoginMessage:empty { display: none; }
}

@media (max-width: 768px) {
  .motivation-toast {
    width: min(380px, 100%);
    min-height: 34px;
    margin-top: 5px;
    padding: 5px 14px;
    font-size: 12px;
  }
}

@media (min-width: 769px) {
  body {
    padding: 140px 0 24px 144px;
  }

  .portal-sidebar {
    width: 144px;
    padding: 14px 4px 10px;
  }

  .sidebar-brand {
    min-height: 98px;
    padding-bottom: 8px;
  }

  .sidebar-brand .logo-img {
    width: 52px;
    height: 46px;
  }

  .sidebar-brand span {
    font-size: 12px;
  }

  .portal-sidebar .portal-page-nav {
    padding-top: 4px;
  }

  .portal-sidebar .portal-page-nav a,
  .sidebar-footer .resource-menu summary,
  .sidebar-footer .portal-logout-btn {
    min-height: 34px;
    gap: 9px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .portal-sidebar .portal-page-nav a svg,
  .sidebar-footer .resource-menu summary svg,
  .sidebar-footer .portal-logout-btn svg {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  header.top {
    left: 144px;
    min-height: 140px;
    padding: 8px 16px;
  }

  .header-text-box h1 {
    font-size: 22px;
  }

  main.grid {
    width: calc(100% - 80px);
    max-width: 1294px;
    padding-top: 0;
  }

  section.card {
    padding: 20px 22px;
  }

  .card-header {
    gap: 8px;
    margin-bottom: 16px;
  }

  .card-header h2 {
    font-size: 16px;
  }

  .card-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-label {
    gap: 5px;
    margin-bottom: 5px;
    padding: 0 2px;
    font-size: 11px;
  }

  .form-icon {
    width: 14px;
    height: 14px;
  }

  .card input,
  .card select {
    min-height: 39px;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 7px;
    font-size: 12px;
  }

  .card select {
    padding-right: 32px;
    background-size: 16px;
  }

  .form-row {
    gap: 10px;
  }

  .account-fields-row {
    grid-template-columns: minmax(100px, .7fr) minmax(0, 1.8fr) !important;
  }

  .medical-information-heading {
    margin: 14px 0 11px;
    font-size: 14px;
  }

  .medical-date-row .form-label {
    min-height: 0;
    font-size: 9px;
  }

  .clear-data-btn {
    min-height: 36px;
    margin-bottom: 12px;
    padding: 7px 14px !important;
    font-size: 11px !important;
  }

  .selected-packages-card {
    border-color: #e1ece6;
  }

  .selected-packages-card .card-header {
    margin-bottom: 14px;
  }

  .send-email-btn {
    min-height: 39px;
    padding: 8px 12px;
  }

  .email-queue-panel {
    padding: 14px;
  }

  .email-queue-heading h2 {
    font-size: 12px;
  }

  .assessment-packages-full,
  .pre-employment-requirements-inline,
  .medical-forms-full,
  .sent-email-history-section,
  .history-trend-section,
  .applicant-details-section,
  .my-notes-section {
    width: calc(100% - 80px);
    max-width: 1294px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  body {
    padding-left: 144px;
  }

  .portal-sidebar {
    width: 144px;
  }

  header.top {
    left: 144px;
  }
}

@media (max-width: 768px) {
  .sidebar-brand span {
    font-size: 8px;
  }

  .sidebar-brand-text {
    max-width: 105px;
  }

  .sidebar-brand-credit {
    font-size: 7px;
  }

  .portal-sidebar .portal-page-nav a {
    min-height: 34px;
    padding: 6px;
  }
}

.sidebar-brand {
  position: relative;
}

.portal-sidebar-toggle {
  position: absolute;
  top: -8px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 4px;
  border: 1px solid #dcebe3;
  border-radius: 7px;
  color: #365c4e;
  background: #fff;
  cursor: pointer;
}

.portal-sidebar-toggle svg {
  width: 14px;
  height: 14px;
}

.portal-sidebar-toggle svg,
.portal-sidebar .portal-page-nav a svg,
.sidebar-footer .resource-menu summary svg,
.sidebar-footer .portal-logout-btn svg {
  display: block;
  margin: 0 auto;
  align-self: center;
  justify-self: center;
}

.portal-sidebar-toggle:hover {
  color: #087c59;
  background: #e7f5ed;
}

@media (min-width: 769px) {
  .portal-sidebar,
  header.top {
    transition: width .2s ease, left .2s ease;
  }

  body {
    transition: padding-left .2s ease;
  }

  body.sidebar-collapsed {
    padding-left: 64px;
  }

  body.sidebar-collapsed .portal-sidebar {
    width: 64px;
    padding-right: 5px;
    padding-left: 5px;
  }

  body.sidebar-collapsed .sidebar-brand {
    min-height: 72px;
    padding-bottom: 4px;
  }

  body.sidebar-collapsed .sidebar-brand .logo-img {
    width: 34px;
    height: 34px;
  }

  body.sidebar-collapsed .sidebar-brand-text {
    display: none;
  }

  body.sidebar-collapsed .portal-sidebar .portal-page-nav a,
  body.sidebar-collapsed .sidebar-footer .resource-menu summary,
  body.sidebar-collapsed .sidebar-footer .portal-logout-btn {
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
    font-size: 0;
  }

  body.sidebar-collapsed .portal-sidebar .portal-page-nav a svg,
  body.sidebar-collapsed .sidebar-footer .resource-menu summary svg,
  body.sidebar-collapsed .sidebar-footer .portal-logout-btn svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    margin-right: auto;
    margin-left: auto;
  }

  body.sidebar-collapsed header.top {
    left: 64px;
  }

  body.sidebar-collapsed .sidebar-footer .resource-menu-panel {
    left: 72px;
  }
}

@media (max-width: 768px) {
  .portal-sidebar-toggle {
    display: none;
  }
}

html, body {
  width: 100%;
  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: 216px;
  padding-bottom: 20px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .75;
  background-image:
    radial-gradient(circle at 7% 16%, rgba(120, 184, 144, .05) 0 28px, rgba(120, 184, 144, .20) 29px 32px, transparent 33px),
    radial-gradient(circle at 93% 18%, rgba(120, 184, 144, .03) 0 42px, rgba(120, 184, 144, .18) 43px 46px, transparent 47px),
    radial-gradient(circle at 14% 58%, rgba(120, 184, 144, .04) 0 19px, rgba(120, 184, 144, .16) 20px 22px, transparent 23px),
    radial-gradient(circle at 88% 63%, rgba(120, 184, 144, .03) 0 27px, rgba(120, 184, 144, .16) 28px 31px, transparent 32px),
    radial-gradient(circle at 34% 88%, rgba(120, 184, 144, .10) 0 12px, transparent 14px),
    radial-gradient(circle at 68% 34%, rgba(120, 184, 144, .09) 0 8px, transparent 10px);
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  body::before,
  .portal-login-view::before,
  .portal-login-view::after {
    opacity: .48;
  }
}

/* ===== 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;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 6% 18%, rgba(120, 184, 144, .08) 0 16px, rgba(120, 184, 144, .16) 17px 19px, transparent 20px),
    radial-gradient(circle at 94% 82%, rgba(120, 184, 144, .06) 0 22px, rgba(120, 184, 144, .15) 23px 25px, transparent 26px);
  border: 1px solid rgba(72, 139, 103, 0.26);
  box-shadow: 0 10px 30px rgba(38, 103, 72, 0.08);
  gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  isolation: isolate;
  min-height: 132px;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-text-box {
  order: 1;
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  align-items: flex-start;
}

.header-right-actions {
  order: 2;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 120px;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.header-text-box {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e0eee4;
  padding: 16px 26px;
  border-radius: 12px;
  backdrop-filter: none;
  margin-left: 10px;
  margin-right: 10px;
}
/* =====title Remote/ vistual assessment header ===== */
.header-text-box h1 {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 900;
  margin: 0;
  color: #123d32;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.header-text-box h1 span {
  color: #2f7d5d;
}

.header-text-box p {
  font-size: 17px;
  color: #315a43;
  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: var(--text-secondary) !important;
  font-weight: 400 !important;
}

.header-notes-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(60, 136, 100, 0.35);
  border-radius: 8px;
  background: #e7f8eb;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-notes-link:hover,
.header-notes-link:focus-visible {
  background: #d4f0dd;
  border-color: var(--accent-green);
}

.header-right-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 150px;
  margin-left: auto;
}

.resource-menu {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}

.resource-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 36px;
  width: 100%;
  padding: 6px 14px;
  border: 1px solid rgba(50, 120, 89, .35);
  border-radius: 8px;
  background: linear-gradient(180deg, #ebfaf0 0%, #d9f2e2 100%);
  color: #1a4d3a;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: none;
}

.resource-menu summary::-webkit-details-marker {
  display: none;
}

.resource-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 78vw);
  max-height: min(70vh, 500px);
  display: grid;
  gap: 7px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(18, 59, 117, 0.18);
  z-index: 1100;
}

.resource-menu-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  padding: 0 2px;
}

.resource-menu-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0 0 1px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: #ffffff;
  color: #1f4fa3;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(18, 59, 117, 0.08);
}

.resource-menu-close:hover {
  background: #eef6ff;
  color: #123b75;
}

.resource-menu-panel a {
  display: block;
  min-height: 38px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #dfeee1;
  background: #f2faf4;
  color: #1a4f3b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.resource-menu-panel a:hover,
.resource-menu-panel a:focus-visible {
  background: #e3f6e8;
  border-color: #b7dcc1;
  transform: translateX(2px);
}

@media (max-width: 720px) {
  header.top {
    padding-bottom: 10px;
  }

  .header-right-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1 1 100%;
    width: 100%;
    gap: 8px;
    margin-left: 0;
    margin-top: 4px;
  }

  .resource-menu {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .resource-menu summary,
  body .portal-logout-btn {
    width: 92px;
    min-width: 92px;
    min-height: 36px;
    box-sizing: border-box;
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
  }

  .header-resource-nav a {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11px;
  }
}

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;
}

.medical-notes-nav {
  width: auto;
  display: block;
}

.medical-notes-nav a {
  min-width: 128px;
  padding: 9px 12px;
  font-size: 12px;
}

.medical-notes-nav a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .medical-notes-nav {
    width: 100%;
  }

  .medical-notes-nav a {
    width: 100%;
  }
}

.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;
}

.subsection-title {
  margin: 18px 0 12px;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.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: 350px;
  max-height: 350px;
  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);
}

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;
  width: calc(100% - 48px);
  max-width: 1530px;
  padding: 12px 0 24px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

/* ===== LEFT COLUMN ===== */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* ===== RIGHT COLUMN ===== */
.right-column {
  display: contents;
}

.selected-package-column {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

/* ===== ASSESSMENT PACKAGES FULL WIDTH ===== */
.assessment-packages-full {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.assessment-packages-full .category-level3-clinical,
.assessment-packages-full .category-level2,
.assessment-packages-full .category-standalone {
  display: none;
}

.assessment-packages-full .categories-wrapper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.assessment-packages-full .packages-category.package-column {
  display: flex;
}

.assessment-packages-full .packages-category.package-column {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.assessment-packages-full .category-title {
  display: none;
}

.pre-employment-requirements-section {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
}

.pre-employment-requirements-inline {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
}

.pre-employment-requirements-inline > h3 {
  margin: 0 0 20px;
  color: #495057;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.pre-employment-requirements-inline .package-item {
  width: calc((100% - 48px) / 3);
}

.esign-modal[hidden] {
  display: none;
}

.esign-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 2vh 2vw;
  background: rgba(9, 24, 48, 0.72);
}

.esign-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f5f6;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.esign-frame {
  width: 100%;
  height: 100%;
}

#esignFrame {
  width: 100%;
  height: 100%;
  border: 0;
}

.esign-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  padding: 8px 14px;
  border: 1px solid #efb5ba;
  border-radius: 5px;
  background: #fff1f2;
  color: #8f2732;
  cursor: pointer;
  font-weight: 700;
}

.package-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 4px 0 0 28px;
}

.candidate-link {
  min-width: 0;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-link-btn {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--blue-border);
  border-radius: 4px;
  background: var(--blue-light);
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 11px;
}

.seat-manager-card {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 24px;
}

.seat-manager-card .card-header {
  margin-bottom: 18px;
}

.seat-manager-card .card-header h2 {
  margin: 0;
}

.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% - 48px);
  max-width: 1530px;
  scroll-margin-top: 150px;
}

.reports-section {
  margin: 0 auto 40px;
  width: calc(100% - 48px);
  max-width: 1530px;
  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% - 48px);
  max-width: 1530px;
  margin: 24px auto 40px;
  scroll-margin-top: 150px;
}

.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-reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.monthly-report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-blue);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.monthly-report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(52, 109, 175, 0.14);
}

.monthly-report-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: top;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
}

.monthly-report-card:first-child img {
  height: 500px;
}

.monthly-report-card:nth-child(2) img {
  height: 280px;
}

.monthly-report-card strong {
  padding: 0 3px 2px;
  font-size: 13px;
}

.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: 42px;
  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;
}

.notification-search-field input {
  width: 100%;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #c8d1dc;
  border-radius: 6px;
  font-size: 12px;
}

.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: #dceeff;
}

.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: var(--accent-blue);
  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;
  justify-content: flex-end;
}

.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: #ffffff;
  border: 1px solid rgba(175, 175, 166, 0.42);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

section.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

section.card h2 {
  color: #495057;
  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;
}

.sent-email-history-section.card h2 {
  color: #495057;
}

.card-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
  color: var(--green);
}

.candidate-info-card {
  display: flex;
  flex-direction: column;
}

.medical-information-heading {
  margin: 22px 0 16px;
  color: #495057;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 721px) {
  .form-row.medical-date-row {
    column-gap: 20px;
  }

  .medical-date-row .form-label {
    min-height: 32px;
    align-items: flex-start;
  }
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 16px;
}
.select-search-container {
  position: relative;
}

.select-search-container select[hidden] {
  display: none !important;
}

.select-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-dark);
  background: var(--bg-white);
  font: inherit;
  font-size: 12px;
}
.select-search-input:focus {
  outline: 2px solid rgba(77, 124, 255, 0.28);
  outline-offset: 1px;
}
.select-search-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: 0 8px 18px rgba(31, 79, 163, 0.18);
}
.select-search-option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.select-search-option:last-child { border-bottom: 0; }
.select-search-option:hover,
.select-search-option:focus { background: #e8f0ff; }

.recruiter-search-container {
  position: relative;
}

.recruiter-search-input {
  width: 100%;
  padding: 10px 40px 10px 12px !important;
}

.recruiter-search-input:focus {
  border-color: #78c994 !important;
  outline: 2px solid rgba(77, 154, 109, 0.18);
  outline-offset: 1px;
}

.recruiter-options-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 30px !important;
  height: 30px;
  min-height: 30px !important;
  place-items: center;
  padding: 0 !important;
  transform: translateY(-50%);
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #2d7a4a !important;
  cursor: pointer;
}

.recruiter-options-toggle:hover,
.recruiter-options-toggle:focus-visible {
  background: #edf9f0 !important;
  box-shadow: none !important;
  transform: translateY(-50%);
}

.recruiter-options-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.recruiter-search-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  color-scheme: light;
  border: 1px solid #a8dcb8;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(28, 91, 52, 0.16);
}

.recruiter-search-options[hidden] {
  display: none;
}

.recruiter-search-option {
  display: block;
  width: 100% !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8f3eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #285d3c !important;
  font: inherit !important;
  font-size: 13px !important;
  text-align: left;
  cursor: pointer;
}

.recruiter-search-option:last-child {
  border-bottom: 0 !important;
}

.recruiter-search-option:hover,
.recruiter-search-option:focus-visible {
  background: #edf9f0 !important;
  color: #205a36 !important;
  box-shadow: none !important;
  outline: 0;
  transform: none !important;
}

.form-group.field-invalid .form-label {
  color: #c33b54;
}

.form-group.field-invalid input,
.form-group.field-invalid select {
  border-color: #2d7a4a;
  box-shadow: 0 0 0 2px rgba(45, 122, 74, 0.12);
}

.selected-packages-card.field-invalid {
  border-color: #2d7a4a;
  box-shadow: 0 0 0 2px rgba(45, 122, 74, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row .form-group {
  min-width: 0;
}

.account-fields-row {
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.8fr) !important;
}

.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;
}

@media (max-width: 720px) {
  section.card {
    padding: 12px;
    border-radius: 12px;
  }

  section.card h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .card-header {
    gap: 6px;
    margin-bottom: 10px;
  }

  .card-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .form-group {
    margin-bottom: 7px;
  }

  .form-label {
    gap: 5px;
    font-size: 11px;
    margin-bottom: 3px;
    padding: 0 2px;
  }

  .form-icon {
    width: 13px;
    height: 13px;
  }

  .card input,
  .card select {
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 12px;
    min-height: 40px;
  }

  .medical-information-heading {
    margin: 12px 0 7px;
    font-size: 13px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .medical-date-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .account-fields-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .candidate-name-email-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.card select:invalid {
  color: #aeb8c4;
}

.card select option {
  color: var(--text-dark);
}

/* ===== SELECTED PACKAGES CARD ===== */
.selected-packages-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(60% - 14.4px);
  height: calc(60% - 14.4px);
  min-height: 0;
}

.selected-packages-card #selectedPackagesContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 8px 4px;
}

.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;
  color: #495057;
}

.email-preview-body a {
  color: #4285f4;
  text-decoration: underline;
}

.preview-email-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  flex: 0 0 auto;
}

.preview-email-action .email-status {
  margin: 0;
  text-align: left;
}

.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-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.history-bulk-actions .history-delete-selected {
  margin: 0;
}

.history-select-all {
  width: auto !important;
  flex: 0 0 auto;
  margin-top: 0;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid #2d7a4a !important;
  border-radius: 6px !important;
  background: #2d7a4a !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
}

.history-select-all:hover,
.history-select-all:active {
  background: #2d7a4a !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.history-select-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.history-delete-selected:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.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: 24px;
  background: var(--bg-hover);
  border-radius: 10px;
  margin: 0;
}

/* ===== PACKAGE PILLS ===== */
.pkg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  gap: 8px;
  border: 2px solid;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 100%;
  min-height: 40px;
}

.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: var(--purple-light);
  border-color: var(--purple-border);
  color: #6b3fa0;
}

.pkg.blue {
  background: var(--blue-light);
  border-color: var(--blue-border);
  color: #003d99;
}

.pkg.pink {
  background: var(--pink-light);
  border-color: #f0a6b8;
  color: #b34f6c;
}

.pkg.requirements-pink {
  background: #ffe8ee;
  border-color: #ef8fa5;
  color: #b52f52;
}

.pkg.requirements-yellow {
  background: #fff7df;
  border-color: #e8ce73;
  color: #8a6b00;
}

.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 ===== */
.send-email-btn {
  width: auto;
  min-width: 108px;
  align-self: flex-end;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: #18864b;
  color: #fff;
  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;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
}

.email-queue-panel {
  flex: 0 0 calc(40% - 9.6px);
  height: calc(40% - 9.6px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0;
  padding: 12px;
  border: 1px solid #b8cdef;
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.86);
  overflow: hidden;
}

.email-queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.email-queue-heading > div {
  min-width: 0;
}

.email-queue-heading h2 {
  margin: 0;
  color: var(--primary-blue);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.email-queue-heading h2.queue-sending {
  color: #d93048;
}

.email-queue-heading h2.queue-empty {
  color: #25794b;
}

.email-queue-heading h2.queue-complete {
  color: #25794b;
}

.email-queue-heading p {
  margin: 3px 0 0;
  color: #687a9a;
  font-size: 10px;
}

.email-queue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 50%;
  background: #dce8ff;
  color: var(--primary-blue);
  font-size: 11px;
  font-weight: 700;
}

.email-queue-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
  overflow: auto;
}

.email-queue-columns,
.email-queue-item {
  display: grid;
  grid-template-columns: 44px minmax(140px, 1fr) minmax(180px, 1.3fr) minmax(220px, 2fr) minmax(110px, auto);
  align-items: center;
  gap: 10px;
  min-width: 760px;
}

.email-queue-columns {
  padding: 6px 10px;
  border-bottom: 1px solid #d5e8dc;
  color: #355c49;
  background: #edf8f1;
  font-size: 11px;
  font-weight: 700;
}

.email-queue-item {
  align-items: center;
  padding: 7px 10px;
  border-left: 3px solid #f0b429;
  border-radius: 6px;
  background: #fffaf0;
  font-size: 10px;
}

.email-queue-number {
  color: #687a72;
  text-align: center;
}

.email-queue-name,
.email-queue-email,
.email-queue-packages {
  min-width: 0;
}

.email-queue-name {
  overflow: hidden;
  color: var(--primary-blue);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-queue-email,
.email-queue-packages {
  overflow-wrap: anywhere;
  color: #687a9a;
  font-size: 9px;
  line-height: 1.25;
}

.email-queue-status {
  color: #a06b00;
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.email-queue-item.sending {
  border-left-color: #4d7cff;
  background: #f0f5ff;
}

.email-queue-item.sending .email-queue-status {
  color: #315fcc;
}

.email-queue-item.success {
  border-left-color: #36a269;
  background: #effbf3;
}

.email-queue-item.success .email-queue-status {
  color: #25794b;
}

.email-queue-item.error {
  border-left-color: #d93048;
  background: #fff1f3;
}

.email-queue-item.error .email-queue-status {
  color: #b4233b;
}

.email-queue-empty {
  margin: 0;
  color: #7a8ba8;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 1024px) {
  .selected-package-column {
    grid-column: auto;
  }

  .selected-packages-card,
  .email-queue-panel {
    flex: 0 0 auto;
    height: auto;
  }
}

.retake-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 220px;
  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);
  background: #0f6b3a;
  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: auto;
  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 {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #4caf68;
  border-radius: 8px;
  background: linear-gradient(90deg, #c9f2cf 0%, #75d184 100%);
  color: #145c26;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

.send-email-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, #aee9b7 0%, #4fbe61 100%);
  border-color: #328b47;
  color: #0d451b;
}

.send-email-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.email-status {
  min-height: 20px;
  width: 100%;
  margin: 14px 0 0;
  padding: 8px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.send-email-btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.email-status {
  min-height: 20px;
  width: 100%;
  margin: 14px 0 0;
  padding: 8px 10px;
  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: 16px;
  color: var(--text-secondary);
  margin: -16px 0 16px 0;
  font-weight: 400;
}

.packages-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  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: 10px;
  background: var(--bg-white);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #495057;
  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: 1fr;
  gap: 12px;
  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: #495057;
}

.category-level3-clinical .category-title {
  color: #495057;
}

.category-level2 .category-title {
  color: #495057;
}

.category-standalone .category-title {
  color: #495057;
}

/* ===== PACKAGE ITEMS ===== */
.package-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-white);
  position: relative;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  height: auto;
}

.package-item[hidden],
.medical-group-heading[hidden] {
  display: none !important;
}

.package-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-muted);
}

.package-item.checked {
  border: 2px solid #8bd8a5;
  background: #edf9f0;
}

#packagesList-level1 .package-item.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

#packagesList-level2 .package-item.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

#packagesList-level3-clinical .package-item.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

#packagesList-standalone .package-item.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

#packagesList-level1 .package-checkbox {
  accent-color: #2d7a4a;
}

#packagesList-level2 .package-checkbox {
  accent-color: #2d7a4a;
}

#packagesList-level3-clinical .package-checkbox {
  accent-color: #2d7a4a;
}

#packagesList-standalone .package-checkbox {
  accent-color: #2d7a4a;
}

.package-checkbox {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2d7a4a;
}

.package-checkbox-visual {
  display: none;
}

.package-item.checked .package-checkbox-visual {
  background: #2d7a4a;
  border-color: #2d7a4a;
}

.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: #495057;
  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;
}

/* ===== MY NOTES ===== */
.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-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.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-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-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 {
  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:focus {
  outline: 2px solid rgba(77, 124, 255, .28);
  border-color: var(--accent-blue);
}

.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: block;
  }

  .my-notes-table thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-notes-table thead th {
    display: block;
    width: auto !important;
  }

  .my-notes-table thead th:nth-child(2),
  .my-notes-table thead th:nth-child(4) {
    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-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";
  }
}

/* ===== BUTTONS ===== */
button {
  font-family: inherit;
}

button:not(.send-email-btn):not(.select-package-btn):not(.package-selection-close):not(.pkg-remove):not(.history-delete-btn):not(.history-delete-selected):not(.notification-search-button):not(.seat-call-button):not(.seat-manager-action):not(.notes-add-button):not(.notes-click-button):not(.notes-save-button):not(.notes-delete-button):not(.my-notes-add-button):not(.my-note-copy-button):not(.my-note-delete-button):not(.typing-chart-toggle):not(.select-search-option):not(.recruiter-options-toggle):not(.recruiter-search-option):not(.portal-login-submit):not(.portal-logout-btn):not(.portal-reset-password):not(.resource-menu-close):not(.table-page-control) {
  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(.select-package-btn):not(.package-selection-close):not(.pkg-remove):not(.history-delete-selected):not(.notification-search-button):not(.seat-call-button):not(.seat-manager-action):not(.my-notes-add-button):not(.my-note-copy-button):not(.my-note-delete-button):not(.select-search-option):not(.recruiter-options-toggle):not(.recruiter-search-option):not(.portal-login-submit):not(.portal-logout-btn):not(.portal-reset-password):not(.resource-menu-close):not(.table-page-control):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(57, 184, 255, 0.3);
}

button:not(.send-email-btn):not(.select-package-btn):not(.package-selection-close):not(.pkg-remove):not(.history-delete-selected):not(.notification-search-button):not(.seat-call-button):not(.seat-manager-action):not(.my-notes-add-button):not(.my-note-copy-button):not(.my-note-delete-button):not(.select-search-option):not(.recruiter-options-toggle):not(.recruiter-search-option):not(.table-page-control):active {
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  body {
    padding-top: 216px;
  }

  header.top {
    padding: 12px 24px;
    gap: 16px;
    min-height: 110px;
  }
  
  .logo-img {
    width: 88px;
    height: 88px;
  }

  .logo {
    width: 100px;
  }
  
  .header-text-box {
    padding: 16px 22px;
  }
  
  .header-text-box h1 {
    font-size: 26px;
  }
  
  .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: 216px;
  }

  header.top {
    padding: 10px 20px;
    gap: 12px;
    min-height: 96px;
  }
  
  .logo-img {
    width: 72px;
    height: 72px;
  }

  .logo {
    width: 84px;
  }
  
  .header-text-box {
    padding: 14px 18px;
  }
  
  .header-text-box h1 {
    font-size: 22px;
  }
  
  .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% - 48px);
  }
}

@media (max-width: 768px) {
  main.grid > .candidate-info-card {
    order: 1;
  }

  main.grid > .other-info-card {
    order: 2;
  }

  body > .assessment-packages-full {
    order: 3;
  }

  body > .medical-forms-full {
    order: 5;
  }

  main.grid > .selected-package-column {
    display: contents;
  }

  main.grid .selected-packages-card {
    order: 6;
  }

  main.grid .email-queue-panel {
    order: 6;
  }

  body > .sent-email-history-section {
    order: 7;
  }

  body > .history-trend-section {
    order: 8;
  }

  body {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 20px;
  }

  header.top {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    min-height: auto;
    z-index: auto;
    margin-bottom: 16px;
  }

  main.grid {
    padding-top: 16px;
  }

  main.grid > .candidate-info-card {
    margin-top: 18px;
  }

  .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;
  }

  .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 {
    flex-wrap: wrap;
    justify-content: center;
    padding: 3px 12px 5px;
    gap: 0;
    min-height: 0;
  }
  
  .logo-img {
    width: 100px;
    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: 16px;
    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: 16px;
  }
  
  section.card h2 {
    font-size: 16px;
  }

  main.grid {
    display: contents;
  }

  main.grid > section:first-child {
    order: 1;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  main.grid > .other-info-card {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  .right-column {
    display: contents;
  }

  .selected-packages-card {
    order: 6;
    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);
    margin: 0 16px 24px;
  }

  .medical-forms-full,
  .pre-employment-requirements-inline,
  .history-trend-section {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  body > .pre-employment-requirements-inline {
    order: 4;
  }

  .email-queue-panel {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 16px;
  }

  .sent-email-history-section {
    order: 3;
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  body > .applicant-details-results-link {
    order: 9;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
  }

  body > .applicant-details-section {
    order: 10;
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .seat-manager-card {
    order: 99;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  .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);
  }
}

@media (max-width: 768px) {
  .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,
.history-trend-section {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
}

.sent-email-history-section {
  scroll-margin-top: 150px;
}

.sent-email-history-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sent-email-history-toolbar .history-search-input,
.sent-email-history-toolbar .history-filter-input {
  width: 250px !important;
  min-width: 0;
  height: 36px;
  margin: 0 !important;
  box-sizing: border-box;
  padding: 9px 12px !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.name-list-filter {
  box-sizing: border-box;
  min-height: 66px;
  max-height: 45vh;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
}

.sent-email-history-toolbar .name-list-filter {
  width: 250px;
  max-width: 100%;
}

.history-export-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 600;
}

.history-export-range-bottom {
  justify-content: flex-start;
  margin-top: 10px;
}

.history-export-range select {
  width: 230px;
  height: 34px;
  min-width: 230px;
  padding: 7px 30px 7px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-white);
  color: inherit;
  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.5' 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 8px center;
  background-size: 16px 16px;
}

.history-export-range input {
  width: 135px;
  padding: 7px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--primary-blue);
  background: var(--bg-white);
}

.history-export-range .export-data-btn {
  width: auto;
  min-width: 92px;
  padding: 8px 12px;
  border-color: #8bd8a5 !important;
  background: #edf9f0 !important;
  color: #2d7a4a !important;
  font-size: 12px;
}

.history-export-range .export-data-btn:hover {
  background: #e6f8eb !important;
}

.history-export-range .export-status {
  flex-basis: 100%;
  text-align: right;
}

.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: 2;
  background: #edf9f0;
}

.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(1),
.sent-email-history-table td:nth-child(1) { width: 40px; }
.sent-email-history-table th:nth-child(2),
.sent-email-history-table td:nth-child(2) { min-width: 120px; }
.sent-email-history-table th:nth-child(3),
.sent-email-history-table td:nth-child(3) { min-width: 180px; }
.sent-email-history-table th:nth-child(4),
.sent-email-history-table td:nth-child(4) { min-width: 125px; width: 125px; }
.sent-email-history-table th:nth-child(5),
.sent-email-history-table td:nth-child(5) { min-width: 105px; width: 105px; }
.sent-email-history-table th:nth-child(6),
.sent-email-history-table td:nth-child(6) { min-width: 200px; text-align: left; }
.sent-email-history-table th:nth-child(7),
.sent-email-history-table td:nth-child(7) { min-width: 150px; text-align: left; }
.sent-email-history-table th:nth-child(8),
.sent-email-history-table td:nth-child(8) { min-width: 110px; width: 110px; text-align: center; }
.sent-email-history-table th:nth-child(9),
.sent-email-history-table td:nth-child(9) { min-width: 110px; text-align: center; }
.sent-email-history-table th:nth-child(11),
.sent-email-history-table td:nth-child(11),
.sent-email-history-table th:nth-child(12),
.sent-email-history-table td:nth-child(12),
.sent-email-history-table th:nth-child(13),
.sent-email-history-table td:nth-child(13) { text-align: center; }

.history-row-button {
  width: auto !important;
  min-width: 58px;
  padding: 6px 9px !important;
  border: 1px solid #8bd8a5 !important;
  border-radius: 6px !important;
  background: #edf9f0 !important;
  color: #495057 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.history-row-button:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #e6f8eb !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 #dfeee3;
  border-radius: 12px;
  color: var(--text-dark);
  background: #f4fbf6;
  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-hint {
  margin: -6px 0 12px;
  color: #606b65;
  font-size: 13px;
}

.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-name {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 9px 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--primary-blue);
  background: #e8f0ff;
  font-size: 13px;
  font-weight: 600;
}

.package-view-checkbox {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2d7a4a;
  cursor: pointer;
}

.package-view-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.package-view-actions button {
  width: auto !important;
  min-width: 76px;
  padding: 7px 14px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.package-view-send {
  border: 1px solid #9cc8a6 !important;
  background: #eaf8ee !important;
  color: #0d5d3b !important;
}

.package-view-close-action {
  border: 1px solid #e8a7b3 !important;
  background: #fdecef !important;
  color: #a63b4d !important;
}

.package-view-status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.package-view-status.sending { color: #246fe5; }
.package-view-status.success { color: #16854d; }
.package-view-status.error { color: #c33b54; }

.history-delete-status {
  display: inline-block;
  margin: 8px 0 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.history-delete-status.deleting { color: #246fe5; }
.history-delete-status.success { color: #16854d; }
.history-delete-status.error { color: #c33b54; }

@media (max-width: 768px) {
  .sent-email-history-section {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .sent-email-history-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sent-email-history-toolbar .history-search-input,
  .sent-email-history-toolbar .history-filter-input {
    width: 100%;
  }

  .sent-email-history-toolbar .name-list-filter {
    width: 100%;
  }

  .history-export-range {
    justify-content: flex-start;
  }

  .history-export-range .export-status {
    text-align: left;
  }
}

.medical-forms-full {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
}

.medical-forms-full .package-item.medical-iloilo.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

.medical-forms-full .package-item.medical-bohol.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

.medical-forms-full .package-item.medical-others.checked {
  background: #edf9f0;
  border-color: #8bd8a5;
}

.medical-forms-full .package-item.medical-iloilo .package-checkbox {
  accent-color: #2d7a4a !important;
}

.medical-forms-full .package-item.medical-bohol .package-checkbox {
  accent-color: #2d7a4a !important;
}

.medical-forms-full .package-item.medical-others .package-checkbox {
  accent-color: #2d7a4a !important;
}

.pkg.medical-iloilo {
  background: #f3f4f6;
  border-color: #a6aeb9;
  color: #495057;
}

.pkg.medical-bohol {
  background: #f3f4f6;
  border-color: #a6aeb9;
  color: #495057;
}

.pkg.medical-others {
  background: #f3f4f6;
  border-color: #a6aeb9;
  color: #495057;
}

.medical-form-column-headings h3:nth-child(1) { color: #495057; }
.medical-form-column-headings h3:nth-child(2) { color: #495057; }
.medical-form-column-headings h3:nth-child(3) { color: #495057; }

.medical-forms-list {
  grid-template-columns: 1fr;
}

.medical-group-heading {
  grid-column: 1;
  margin: 8px 0 2px;
  font-size: 14px;
  font-weight: 800;
}

.medical-group-heading.medical-group-iloilo {
  color: #495057;
}

.medical-group-heading.medical-group-bohol {
  color: #495057;
}

.medical-form-column-headings {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.medical-form-column-headings h3 {
  margin: 0;
  color: #495057;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 720px) {
  .medical-date-row,
  .medical-date-row .form-group,
  .medical-date-row input,
  .medical-date-row select,
  .other-info-card input,
  .other-info-card select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .medical-date-row .form-group {
    grid-column: 1;
  }

  .medical-date-row input[type="date"],
  .other-info-card input[type="date"] {
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 7px;
    font-size: 11px;
    letter-spacing: 0;
    margin-right: 50%;
  }

  .assessment-packages-full,
  .medical-forms-full {
    text-align: center;
  }

  .assessment-packages-full .packages-subtitle,
  .medical-forms-full .packages-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .assessment-packages-full .category-title,
  .medical-group-heading {
    justify-content: center;
    text-align: center;
  }

  .assessment-packages-full .package-item,
  .medical-forms-full .package-item {
    width: 100%;
    min-height: 30px;
    margin-left: 0;
    margin-right: 0;
    padding: 4px 6px;
    line-height: 1.15;
    align-items: center;
  }

  .pre-employment-requirements-inline .package-item {
    width: 100%;
    min-height: 26px;
    margin: 0;
    padding: 4px 8px;
    line-height: 1.15;
    align-items: center;
    border-width: 1px;
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .pre-employment-requirements-inline .package-item .package-name {
    font-size: 12px;
    line-height: 1.2;
  }

  .pre-employment-requirements-inline .package-checkbox {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px !important;
    padding: 0 !important;
  }

  .pre-employment-requirements-inline h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    color: #495057;
  }

  .pre-employment-requirements-inline .packages-subtitle {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
  }

  .assessment-packages-full .packages-column {
    gap: 0;
  }

  .assessment-packages-full .packages-category,
  .medical-forms-full .packages-category {
    padding: 6px;
  }

  .assessment-packages-full .packages-list,
  .medical-forms-full .packages-list {
    gap: 0;
  }

  .assessment-packages-full .categories-wrapper {
    gap: 0;
  }

  .assessment-packages-full .package-info,
  .medical-forms-full .package-info {
    text-align: left;
  }

  .assessment-packages-full .package-name,
  .medical-forms-full .package-name {
    font-size: 10px;
    line-height: 1.15;
    text-align: left;
  }

  .assessment-packages-full .package-checkbox,
  .medical-forms-full .package-checkbox {
    min-height: 14px;
  }

  .medical-forms-full {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .assessment-packages-full .categories-wrapper {
    grid-template-columns: 1fr;
  }

  .medical-form-column-headings {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 10px;
  }

  .medical-form-column-headings h3:not(:first-child) {
    display: none;
  }

  .medical-forms-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-resource-nav {
    display: none;
  }

  main.grid > section.candidate-info-card:first-child {
    margin-top: 0;
  }
}

.history-trend-section {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
}

.history-trend-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.history-trend-heading h2 { margin-bottom: 4px; }
.history-trend-heading .packages-subtitle { margin: 0; }

.history-trend-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-trend-account,
.history-trend-month {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.history-trend-month input {
  width: 142px;
  padding: 8px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--primary-blue);
  background: var(--bg-white);
}

.history-trend-account select {
  width: 180px;
  height: 34px;
  padding: 7px 30px 7px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--primary-blue);
  background-color: var(--bg-white);
  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.5' 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 8px center;
  background-size: 16px 16px;
}

.history-trend-charts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.history-trend-section .typing-chart-hint {
  bottom: 0;
  left: calc(100% + 10px);
  max-width: 190px;
}

.history-trend-section .typing-chart-hint::before,
.history-trend-section .typing-chart-hint::after {
  display: none;
}

.history-trend-chart {
  min-width: 0;
  padding: 0;
}

.history-trend-chart h3 {
  margin: 2px 0 8px;
  padding-left: 28px;
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 600;
}

.history-trend-period {
  margin: 0 0 8px;
  padding-left: 28px;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 600;
}

.history-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
  padding: 0 28px;
  color: var(--primary-blue);
  font-size: 11px;
}

.history-trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.history-trend-legend i { width: 18px; height: 3px; border-radius: 2px; }
.history-trend-chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.history-trend-grid-line { stroke: #dce7f3; stroke-width: 1; }
.history-trend-line { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.history-trend-bar {
  opacity: 0.88;
  transition: opacity 0.15s ease;
}
.history-trend-bar:hover { opacity: 1; }
.history-trend-line-point {
  stroke: #ffffff;
  stroke-width: 2;
}
.history-trend-legend .history-trend-total-legend {
  width: 18px;
  height: 3px;
  background: #20aae1;
  border-radius: 2px;
}
.history-trend-point { stroke: #fff; stroke-width: 2; }
.history-trend-axis-label { fill: var(--primary-blue); font-size: 10px; }
.history-trend-value-label,
.history-trend-line-value {
  fill: var(--text-dark);
  font-size: 10px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}
.history-trend-empty { margin: 0; color: var(--text-secondary); }

@media (max-width: 768px) {
  .history-trend-section {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }

  .history-trend-charts { grid-template-columns: minmax(0, 1fr); }

  .history-trend-heading {
    flex-direction: column;
    gap: 14px;
  }
}

.applicant-details-section {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 40px;
}

.rncf-records-table {
  width: 100%;
  min-width: 2250px;
  table-layout: fixed;
  font-size: 10px;
}

.rncf-table-top-scroll {
  height: 17px;
  margin-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #f7fbf8;
}

.rncf-table-top-scroll > div {
  height: 1px;
}

.rncf-table-top-scroll:focus-visible {
  outline: 2px solid #2d7a4a;
  outline-offset: 2px;
}

.rncf-table-end-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.rncf-records-table th,
.rncf-records-table td {
  min-width: 0;
  max-width: none;
  padding: 6px 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rncf-records-table th:nth-child(1),
.rncf-records-table td:nth-child(1) {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
}

.rncf-records-table input.rncf-delete-checkbox {
  display: inline-block;
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  accent-color: #d9534f;
  cursor: pointer;
}

.rncf-records-table th:nth-child(2),
.rncf-records-table td:nth-child(2) {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  text-align: center;
}

.rncf-records-table th:nth-child(3),
.rncf-records-table td:nth-child(3) {
  width: 180px;
  min-width: 180px;
}

.rncf-records-table th:nth-child(4),
.rncf-records-table td:nth-child(4) {
  width: 75px;
}

.rncf-records-table th:nth-child(5),
.rncf-records-table td:nth-child(5) { width: 105px; }

.rncf-records-table th:nth-child(6),
.rncf-records-table td:nth-child(6) { width: 145px; }

.rncf-records-table th:nth-child(7),
.rncf-records-table td:nth-child(7) { width: 150px; }

.rncf-records-table th:nth-child(8),
.rncf-records-table td:nth-child(8) {
  width: 120px;
}

.rncf-records-table th:nth-child(9),
.rncf-records-table td:nth-child(9) {
  width: 160px;
}

.rncf-records-table th:nth-child(10),
.rncf-records-table td:nth-child(10) { width: 125px; }

.rncf-records-table th:nth-child(11),
.rncf-records-table td:nth-child(11) {
  width: 85px;
  min-width: 85px;
}

.rncf-records-table th:nth-child(12),
.rncf-records-table td:nth-child(12),
.rncf-records-table th:nth-child(14),
.rncf-records-table td:nth-child(14) {
  width: 190px;
  min-width: 190px;
}

.rncf-records-table th:nth-child(13),
.rncf-records-table td:nth-child(13),
.rncf-records-table th:nth-child(15),
.rncf-records-table td:nth-child(15) {
  width: 90px;
  min-width: 90px;
  text-align: center;
}

.rncf-records-table td:nth-child(12),
.rncf-records-table td:nth-child(14) {
  white-space: pre-line;
  text-align: left;
  vertical-align: top;
}

.rncf-records-table th:nth-child(13),
.rncf-records-table th:nth-child(15) {
  white-space: normal;
}

.rncf-records-table th:nth-child(16),
.rncf-records-table td:nth-child(16) {
  width: 120px;
  min-width: 120px;
  text-align: center;
}

.rncf-records-table th:nth-child(17),
.rncf-records-table td:nth-child(17) {
  width: 360px;
  min-width: 360px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rncf-records-table th:nth-child(18),
.rncf-records-table td:nth-child(18) {
  width: 100px;
  min-width: 100px;
  text-align: center;
}

.rncf-records-table th:nth-child(19),
.rncf-records-table td:nth-child(19) {
  width: 130px;
  min-width: 130px;
  text-align: center;
}

.rncf-records-table th:nth-child(20),
.rncf-records-table td:nth-child(20),
.rncf-records-table th:nth-child(21),
.rncf-records-table td:nth-child(21) {
  width: 200px;
  min-width: 200px;
}

.rncf-records-table th:nth-child(22),
.rncf-records-table td:nth-child(22) {
  width: 115px;
  min-width: 115px;
}

.rncf-records-table th:nth-child(23),
.rncf-records-table td:nth-child(23) {
  width: 80px;
  min-width: 80px;
}

.rncf-records-table td:nth-child(20),
.rncf-records-table td:nth-child(21) {
  white-space: nowrap;
}

.rncf-download-button {
  display: inline-block;
  width: auto !important;
  min-width: 0;
  min-height: 0 !important;
  padding: 3px 5px !important;
  border: 1px solid #2d7a4a !important;
  border-radius: 5px !important;
  background: #2d7a4a !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
  cursor: pointer;
}

.rncf-download-button:hover {
  background: #24633d;
}

.applicant-details-section .card-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.applicant-details-section .card-header .packages-subtitle {
  margin: 0;
}

.applicant-details-results-link {
  width: calc(100% - 48px);
  max-width: 1530px;
  margin: 0 auto 12px;
}

.applicant-details-results-link .export-data-btn {
  display: inline-flex;
  text-decoration: none;
}

.applicant-details-results-link .export-data-btn,
.applicant-details-toolbar .export-data-btn,
.applicant-details-export .export-data-btn,
.applicant-details-actions .export-data-btn {
  border-color: #8bd8a5 !important;
  background: #edf9f0 !important;
  color: #2d7a4a !important;
}

.applicant-details-results-link .export-data-btn:hover,
.applicant-details-toolbar .export-data-btn:hover,
.applicant-details-export .export-data-btn:hover,
.applicant-details-actions .export-data-btn:hover {
  background: #e6f8eb !important;
}

.applicant-details-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
}

.applicant-details-toolbar input {
  min-width: 240px;
  width: 520px;
  max-width: 100%;
  flex: 0 1 520px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font: inherit;
}

.applicant-details-toolbar .name-list-filter {
  width: 320px;
  max-width: 100%;
  flex: 0 1 320px;
}

.rncf-records-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 10px;
  padding: 18px 0 10px;
}

.rncf-records-toolbar input,
.rncf-records-toolbar .name-list-filter {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: initial;
}

.rncf-records-toolbar input { height: 44px; }
.rncf-records-toolbar .name-list-filter { height: 52px; min-height: 52px; }
.rncf-records-toolbar .export-data-btn { height: 44px; min-height: 44px; }

.rncf-filter-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.rncf-filter-controls select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
}

.applicant-details-table {
  --dob-width: 128px;
  min-width: 1500px;
  table-layout: fixed;
}

.sent-email-history-scroll {
  overflow: auto;
  max-width: 100%;
}

.applicant-details-table th:nth-child(1),
.applicant-details-table td:nth-child(1) {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  text-align: center;
}

.applicant-details-table th:nth-child(2),
.applicant-details-table td:nth-child(2) {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  text-align: center;
}

.applicant-details-table th,
.applicant-details-table td {
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}

.applicant-details-table th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.applicant-details-table td {
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.applicant-details-table th:nth-child(4),
.applicant-details-table td:nth-child(4) {
  min-width: 220px;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.applicant-details-table th:nth-child(5),
.applicant-details-table td:nth-child(5) {
  width: var(--dob-width);
  min-width: var(--dob-width);
  max-width: var(--dob-width);
  white-space: nowrap;
  overflow-wrap: normal;
  text-align: center;
}

.applicant-details-table th:nth-child(3),
.applicant-details-table td:nth-child(3) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  text-align: center;
}

.applicant-details-table th:nth-child(6),
.applicant-details-table td:nth-child(6) {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
}

.applicant-details-table th:nth-child(7),
.applicant-details-table td:nth-child(7) {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.applicant-details-table th:nth-child(8),
.applicant-details-table td:nth-child(8) {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.applicant-details-table th:nth-child(9),
.applicant-details-table td:nth-child(9) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.applicant-details-table th:nth-child(10),
.applicant-details-table td:nth-child(10),
.applicant-details-table th:nth-child(11),
.applicant-details-table td:nth-child(11) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.applicant-details-table th:nth-child(12),
.applicant-details-table td:nth-child(12),
.applicant-details-table th:nth-child(13),
.applicant-details-table td:nth-child(13),
.applicant-details-table th:nth-child(14),
.applicant-details-table td:nth-child(14),
.applicant-details-table th:nth-child(15),
.applicant-details-table td:nth-child(15) {
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.applicant-details-table th:nth-child(16),
.applicant-details-table td:nth-child(16) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.applicant-details-table input.applicant-delete-checkbox {
  display: inline-block;
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  accent-color: #d9534f;
  cursor: pointer;
}

.applicant-details-actions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.applicant-details-actions .history-delete-selected {
  margin: 0;
}

.applicant-details-actions .history-select-all,
.applicant-details-actions .history-delete-selected {
  width: 78px !important;
  min-width: 78px;
  height: 32px;
  min-height: 32px !important;
  margin: 0;
  justify-content: center;
}

.applicant-details-export {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 12px;
}

.applicant-details-export input {
  width: 135px;
  padding: 8px 9px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dark);
  font: inherit;
}

.sent-email-history-section .sent-email-history-table th:first-child,
.sent-email-history-section .sent-email-history-table td:first-child {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  text-align: center;
}

.sent-email-history-section .sent-email-history-table th:nth-child(3),
.sent-email-history-section .sent-email-history-table td:nth-child(3) {
  width: 220px;
  min-width: 220px;
  max-width: 280px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sent-email-history-section .sent-email-history-table th:nth-child(2),
.sent-email-history-section .sent-email-history-table td:nth-child(2) {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  text-align: center;
}

.sent-email-history-section .sent-email-history-table th:nth-child(4),
.sent-email-history-section .sent-email-history-table td:nth-child(4) {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  text-align: center;
}

.sent-email-history-section .sent-email-history-table th:nth-child(10),
.sent-email-history-section .sent-email-history-table td:nth-child(10) {
  min-width: 220px;
  max-width: 320px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sent-email-history-section .sent-email-history-table th:nth-child(11),
.sent-email-history-section .sent-email-history-table td:nth-child(11) {
  min-width: 170px;
  white-space: normal;
}

.sent-email-history-section .history-view-button {
  width: 64px;
  min-width: 64px;
  padding: 6px 8px;
}

.sent-email-history-section .sent-email-history-table td:nth-child(8) {
  text-align: left;
}

.sent-email-history-section .sent-email-history-table th:nth-child(12),
.sent-email-history-section .sent-email-history-table td:nth-child(12) {
  text-align: left;
}

.sent-email-history-section .sent-email-history-table th:nth-child(13),
.sent-email-history-section .sent-email-history-table td:nth-child(13),
.sent-email-history-section .sent-email-history-table th:nth-child(14),
.sent-email-history-section .sent-email-history-table td:nth-child(14),
.sent-email-history-section .sent-email-history-table th:nth-child(15),
.sent-email-history-section .sent-email-history-table td:nth-child(15),
.sent-email-history-section .sent-email-history-table th:nth-child(16),
.sent-email-history-section .sent-email-history-table td:nth-child(16) {
  text-align: center;
}

.sent-email-history-section .history-bulk-actions {
  justify-content: flex-start;
}

.sent-email-history-section .rncf-records-table th:nth-child(3),
.sent-email-history-section .rncf-records-table td:nth-child(3) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  text-align: center;
  white-space: normal;
}

.sent-email-history-section .rncf-records-table th:nth-child(20),
.sent-email-history-section .rncf-records-table td:nth-child(20),
.sent-email-history-section .rncf-records-table th:nth-child(21),
.sent-email-history-section .rncf-records-table td:nth-child(21) {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

@media (max-width: 768px) {
  .applicant-details-results-link {
    width: calc(100% - 32px);
    margin: 0 16px 12px;
  }

  .applicant-details-section {
    width: calc(100% - 32px);
    margin: 0 16px 24px;
  }
}

@media (max-width: 720px) {
  .rncf-records-toolbar { grid-template-columns: 1fr; }

  .applicant-details-toolbar input,
  .applicant-details-toolbar .name-list-filter {
    width: 100%;
    flex-basis: 100%;
  }

  .rncf-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .rncf-filter-controls { grid-template-columns: 1fr; }
}

.rncf-records-table th:nth-child(4),
.rncf-records-table td:nth-child(4),
.rncf-records-table th:nth-child(5),
.rncf-records-table td:nth-child(5) { width: 180px; min-width: 180px; }
.rncf-records-table td:nth-child(4),
.rncf-records-table td:nth-child(5),
.rncf-records-table td:nth-child(6) { white-space: nowrap; }
.rncf-records-table th:nth-child(6),
.rncf-records-table td:nth-child(6) { width: 210px; min-width: 210px; }
.rncf-records-table th:nth-child(7), .rncf-records-table td:nth-child(7) { width: 75px; }
.rncf-records-table th:nth-child(8), .rncf-records-table td:nth-child(8) { width: 105px; }
.rncf-records-table th:nth-child(9), .rncf-records-table td:nth-child(9) { width: 145px; }
.rncf-records-table th:nth-child(10), .rncf-records-table td:nth-child(10) { width: 150px; }
.rncf-records-table th:nth-child(11), .rncf-records-table td:nth-child(11) { width: 120px; }
.rncf-records-table th:nth-child(12), .rncf-records-table td:nth-child(12) { width: 160px; }
.rncf-records-table th:nth-child(13), .rncf-records-table td:nth-child(13) { width: 125px; }
.rncf-records-table th:nth-child(14), .rncf-records-table td:nth-child(14) { width: 85px; min-width: 85px; }
.rncf-records-table th:nth-child(15), .rncf-records-table td:nth-child(15),
.rncf-records-table th:nth-child(17), .rncf-records-table td:nth-child(17) { width: 190px; min-width: 190px; }
.rncf-records-table th:nth-child(16), .rncf-records-table td:nth-child(16),
.rncf-records-table th:nth-child(18), .rncf-records-table td:nth-child(18) { width: 90px; min-width: 90px; }
.rncf-records-table td:nth-child(15), .rncf-records-table td:nth-child(17) {
  white-space: pre-line;
  text-align: left;
  vertical-align: top;
}
.rncf-records-table th:nth-child(19), .rncf-records-table td:nth-child(19) { width: 120px; min-width: 120px; }
.rncf-records-table th:nth-child(20), .rncf-records-table td:nth-child(20) { width: 360px; min-width: 360px; }
.rncf-records-table th:nth-child(21), .rncf-records-table td:nth-child(21) { width: 100px; min-width: 100px; }
.rncf-records-table th:nth-child(22), .rncf-records-table td:nth-child(22) { width: 130px; min-width: 130px; }
.rncf-records-table th:nth-child(23), .rncf-records-table td:nth-child(23) { width: 80px; min-width: 80px; }

.sent-email-history-section .rncf-records-table th:nth-child(4),
.sent-email-history-section .rncf-records-table td:nth-child(4),
.sent-email-history-section .rncf-records-table th:nth-child(5),
.sent-email-history-section .rncf-records-table td:nth-child(5) {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}
.sent-email-history-section .rncf-records-table th:nth-child(6),
.sent-email-history-section .rncf-records-table td:nth-child(6) {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
}
.sent-email-history-section .rncf-records-table th:nth-child(20),
.sent-email-history-section .rncf-records-table td:nth-child(20) {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
}
.sent-email-history-section .rncf-records-table th:nth-child(21),
.sent-email-history-section .rncf-records-table td:nth-child(21) {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

#rncfRecordsSection .rncf-records-table th:nth-child(7),
#rncfRecordsSection .rncf-records-table td:nth-child(7) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  text-align: center;
}

#rncfRecordsSection .rncf-records-table th:nth-child(8),
#rncfRecordsSection .rncf-records-table td:nth-child(8) { width: 75px; }
#rncfRecordsSection .rncf-records-table th:nth-child(9),
#rncfRecordsSection .rncf-records-table td:nth-child(9) { width: 105px; }
#rncfRecordsSection .rncf-records-table th:nth-child(10),
#rncfRecordsSection .rncf-records-table td:nth-child(10) { width: 145px; }
#rncfRecordsSection .rncf-records-table th:nth-child(11),
#rncfRecordsSection .rncf-records-table td:nth-child(11) { width: 150px; }
#rncfRecordsSection .rncf-records-table th:nth-child(12),
#rncfRecordsSection .rncf-records-table td:nth-child(12) { width: 120px; }
#rncfRecordsSection .rncf-records-table th:nth-child(13),
#rncfRecordsSection .rncf-records-table td:nth-child(13) { width: 160px; }
#rncfRecordsSection .rncf-records-table th:nth-child(14),
#rncfRecordsSection .rncf-records-table td:nth-child(14) { width: 125px; }
#rncfRecordsSection .rncf-records-table th:nth-child(15),
#rncfRecordsSection .rncf-records-table td:nth-child(15) { width: 85px; }
#rncfRecordsSection .rncf-records-table th:nth-child(16),
#rncfRecordsSection .rncf-records-table td:nth-child(16),
#rncfRecordsSection .rncf-records-table th:nth-child(18),
#rncfRecordsSection .rncf-records-table td:nth-child(18) { width: 190px; }
#rncfRecordsSection .rncf-records-table th:nth-child(17),
#rncfRecordsSection .rncf-records-table td:nth-child(17),
#rncfRecordsSection .rncf-records-table th:nth-child(19),
#rncfRecordsSection .rncf-records-table td:nth-child(19) { width: 90px; text-align: center; }
#rncfRecordsSection .rncf-records-table td:nth-child(16),
#rncfRecordsSection .rncf-records-table td:nth-child(18) {
  white-space: pre-line;
  text-align: left;
  vertical-align: top;
}
#rncfRecordsSection .rncf-records-table th:nth-child(20),
#rncfRecordsSection .rncf-records-table td:nth-child(20) { width: 120px; }
#rncfRecordsSection .rncf-records-table th:nth-child(21),
#rncfRecordsSection .rncf-records-table td:nth-child(21) { width: 360px; min-width: 360px; }
#rncfRecordsSection .rncf-records-table th:nth-child(22),
#rncfRecordsSection .rncf-records-table td:nth-child(22) { width: 100px; }
#rncfRecordsSection .rncf-records-table th:nth-child(23),
#rncfRecordsSection .rncf-records-table td:nth-child(23) { width: 130px; }
#rncfRecordsSection .rncf-records-table th:nth-child(24),
#rncfRecordsSection .rncf-records-table td:nth-child(24) { width: 80px; }

.rncf-send-email-button {
  display: inline-block;
  width: auto !important;
  min-width: 0;
  min-height: 0 !important;
  padding: 4px 8px !important;
  border: 1px solid #2d7a4a !important;
  border-radius: 5px !important;
  background: #2d7a4a !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
  cursor: pointer;
}

.rncf-send-email-button:disabled { cursor: default; opacity: .7; }

@media (min-width: 769px) {
  .sent-email-history-section,
  .history-trend-section,
  .applicant-details-section {
    width: calc(100% - 48px);
    max-width: 1800px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ===== PORTAL SIDEBAR LAYOUT ===== */
body {
  padding: 24px 0 24px 174px;
  background: #ffffff;
}

body::before {
  opacity: 0;
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  width: 174px;
  min-height: 100vh;
  padding: 20px 10px 12px;
  border-right: 1px solid #dcebe3;
  background: rgba(245, 250, 247, .97);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 112px;
  padding-bottom: 12px;
  color: #07533f;
  text-align: center;
}

.sidebar-brand .logo-img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.sidebar-brand span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sidebar-brand-credit {
  color: #5f756b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.portal-sidebar .portal-page-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
}

.portal-sidebar .portal-page-nav a,
.sidebar-footer .resource-menu summary,
.sidebar-footer .portal-logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #263f54;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.portal-sidebar .portal-page-nav a svg,
.sidebar-footer .resource-menu summary svg,
.sidebar-footer .portal-logout-btn svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #274c66;
}

.portal-sidebar .portal-page-nav a:hover,
.sidebar-footer .resource-menu summary:hover,
.sidebar-footer .portal-logout-btn:hover {
  color: #075a43;
  background: #e3f3eb;
  text-decoration: none;
}

.portal-sidebar .portal-page-nav a[aria-current="page"] {
  color: #07543f;
  background: #d9f1e6;
  font-weight: 700;
  text-decoration: none;
}

.portal-sidebar .portal-page-nav a[aria-current="page"] svg {
  color: #07875d;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid #dce8e2;
}

.sidebar-footer .resource-menu {
  width: 100%;
}

.sidebar-footer .resource-menu summary {
  list-style: none;
  user-select: none;
}

.sidebar-footer .resource-menu summary::-webkit-details-marker {
  display: none;
}

.sidebar-footer .resource-menu-panel {
  position: fixed;
  top: auto;
  right: auto;
  bottom: 14px;
  left: 182px;
  width: min(360px, calc(100vw - 198px));
  max-height: min(70vh, 500px);
}

.sidebar-footer .resource-menu-close {
  width: 30px;
  min-height: 30px;
  padding: 0 0 1px;
}

.sidebar-footer .portal-logout-btn {
  appearance: none;
}

header.top {
  left: 174px;
  right: 0;
  width: auto;
  min-height: 136px;
  padding: 8px 20px;
  border: 0;
  border-bottom: 1px solid #e0ebe5;
  border-radius: 0;
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
}

.header-text-box {
  align-self: stretch;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.header-text-box h1 {
  font-size: 25px;
}

.header-text-box p:not(.header-credit) {
  font-size: 11px;
}

.header-credit {
  font-size: 12px !important;
}

.motivation-toast {
  max-width: 320px;
}

main.grid {
  grid-template-columns: 1.04fr 1fr 1fr;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 1530px;
  padding: 16px 0 24px;
}

section.card {
  border: 1px solid #e1ece6;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 12px rgba(34, 86, 62, .06);
}

.selected-package-column {
  gap: 12px;
}

.send-email-page-heading {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 24px);
  max-width: 1530px;
  min-height: 54px;
  margin: 18px auto 0;
  padding: 10px 16px;
  border: 1px solid #78ad85;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 86, 62, .12);
  color: #24633d;
  opacity: 1;
  isolation: isolate;
}

.send-email-page-heading svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.send-email-page-heading h1 {
  margin: 0;
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  color: #24633d;
}

.send-email-page-heading h1 span {
  font-weight: 700;
}

.send-email-page-heading::before {
  content: '';
  position: absolute;
  inset: -12px -12px -12px;
  z-index: -1;
  background: #ffffff;
  pointer-events: none;
}

@media (min-width: 769px) {
  #sendEmailPage main.grid {
    padding-top: 12px;
  }
}

@media (max-width: 768px) {
  .send-email-page-heading {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .send-email-page-heading h1 {
    font-size: 16px;
  }
}

.assessment-packages-full,
.pre-employment-requirements-inline,
.medical-forms-full,
.sent-email-history-section,
.history-trend-section,
.applicant-details-section,
.my-notes-section {
  width: calc(100% - 24px);
  max-width: 1530px;
}

@media (max-width: 1024px) and (min-width: 769px) {
  body {
    padding-left: 160px;
  }

  .portal-sidebar {
    width: 160px;
  }

  header.top {
    left: 160px;
  }

  main.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-package-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    padding: 0 0 20px;
  }

  .portal-sidebar {
    position: static;
    inset: auto;
    z-index: 1101;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 1px solid #dcebe3;
  }

  .sidebar-brand {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    min-height: 0;
    padding: 0 8px 0 0;
  }

  .sidebar-brand .logo-img {
    width: 34px;
    height: 38px;
  }

  .sidebar-brand span {
    max-width: 105px;
    font-size: 9px;
  }

  .portal-sidebar .portal-page-nav {
    flex: 1 1 auto;
    flex-direction: row;
    gap: 3px;
    width: auto;
    min-width: 0;
    padding: 0;
    overflow-x: auto;
  }

  .portal-sidebar .portal-page-nav a {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    gap: 6px;
    padding: 7px 8px;
    white-space: nowrap;
    font-size: 10px;
  }

  .portal-sidebar .portal-page-nav a svg {
    flex-basis: 15px;
    width: 15px;
    height: 15px;
  }

  .sidebar-footer {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 2px;
    padding: 0 0 0 6px;
    border-top: 0;
    border-left: 1px solid #dce8e2;
  }

  .sidebar-footer .resource-menu,
  .sidebar-footer .portal-logout-btn {
    width: auto;
  }

  .sidebar-footer .resource-menu summary,
  .sidebar-footer .portal-logout-btn {
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    padding: 6px;
    white-space: nowrap;
    font-size: 10px;
  }

  .sidebar-footer .resource-menu summary svg,
  .sidebar-footer .portal-logout-btn svg {
    flex-basis: 15px;
    width: 15px;
    height: 15px;
  }

  .sidebar-footer .resource-menu-panel {
    position: fixed;
    top: 52px;
    right: 10px;
    bottom: auto;
    left: auto;
    width: min(360px, calc(100vw - 20px));
  }

  header.top {
    position: static;
    width: 100%;
    min-height: 0;
    margin-bottom: 8px;
    padding: 8px 16px;
  }

  .header-text-box {
    align-items: flex-start;
    padding: 4px 0;
  }

  .header-text-box h1 {
    font-size: 18px;
  }

  .header-text-box p:not(.header-credit) {
    font-size: 10px;
  }

  main.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 24px);
    padding: 8px 0 20px;
  }

  main.grid > .candidate-info-card,
  main.grid > .other-info-card,
  main.grid > .selected-package-column {
    width: 100%;
    margin: 0;
  }

  main.grid > .selected-package-column {
    display: flex;
    grid-column: auto;
  }

  .assessment-packages-full,
  .pre-employment-requirements-inline,
  .medical-forms-full,
  .sent-email-history-section,
  .history-trend-section,
  .applicant-details-section,
  .my-notes-section {
    width: calc(100% - 24px);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 769px) {
  body {
    padding: 0 0 24px 144px;
    background: #ffffff;
  }

  .portal-sidebar {
    width: 144px;
    padding: 14px 4px 10px;
  }

  .sidebar-brand {
    min-height: 98px;
    padding-bottom: 8px;
  }

  .sidebar-brand .logo-img {
    width: 52px;
    height: 46px;
  }

  .sidebar-brand span {
    font-size: 12px;
  }

  .portal-sidebar .portal-page-nav {
    padding-top: 4px;
  }

  .portal-sidebar .portal-page-nav a,
  .sidebar-footer .resource-menu summary,
  .sidebar-footer .portal-logout-btn {
    min-height: 34px;
    gap: 9px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .portal-sidebar .portal-page-nav a svg,
  .sidebar-footer .resource-menu summary svg,
  .sidebar-footer .portal-logout-btn svg {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  header.top {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    min-height: 140px;
    padding: 8px 16px;
  }

  .header-text-box h1 {
    font-size: 22px;
  }

  main.grid {
    width: calc(100% - 80px);
    max-width: 1294px;
    padding-top: 0;
  }

  section.card {
    padding: 20px 22px;
  }

  .card-header {
    gap: 8px;
    margin-bottom: 16px;
  }

  .card-header h2 {
    font-size: 16px;
  }

  .card-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-label {
    gap: 5px;
    margin-bottom: 5px;
    padding: 0 2px;
    font-size: 11px;
  }

  .form-icon {
    width: 14px;
    height: 14px;
  }

  .card input,
  .card select {
    min-height: 39px;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 7px;
    font-size: 12px;
  }

  .card select {
    padding-right: 32px;
    background-size: 16px;
  }

  .form-row {
    gap: 10px;
  }

  .account-fields-row {
    grid-template-columns: minmax(100px, .7fr) minmax(0, 1.8fr) !important;
  }

  .medical-information-heading {
    margin: 14px 0 11px;
    font-size: 14px;
  }

  .medical-date-row .form-label {
    min-height: 0;
    font-size: 9px;
  }

  .clear-data-btn {
    min-height: 36px;
    margin-bottom: 12px;
    padding: 7px 14px !important;
    font-size: 11px !important;
  }

  .selected-packages-card {
    border-color: #e1ece6;
  }

  .selected-packages-card .card-header {
    margin-bottom: 14px;
  }

  .send-email-btn {
    min-height: 39px;
    padding: 8px 12px;
  }

  .email-queue-panel {
    padding: 14px;
  }

  .email-queue-heading h2 {
    font-size: 12px;
  }

  .assessment-packages-full,
  .pre-employment-requirements-inline,
  .medical-forms-full,
  .sent-email-history-section,
  .history-trend-section,
  .applicant-details-section,
  .my-notes-section {
    width: calc(100% - 80px);
    max-width: 1294px;
  }

  .sidebar-brand {
    position: relative;
  }

  .portal-sidebar-toggle {
    position: absolute;
    top: -8px;
    right: -2px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    min-height: 25px;
    padding: 4px;
    border: 1px solid #dcebe3;
    border-radius: 7px;
    color: #365c4e;
    background: #fff;
    cursor: pointer;
  }

  .portal-sidebar-toggle svg {
    width: 14px;
    height: 14px;
  }

  body {
    transition: padding-left .2s ease;
  }

  body.sidebar-collapsed {
    padding-left: 64px;
  }

  body.sidebar-collapsed .portal-sidebar {
    width: 64px;
    padding-right: 5px;
    padding-left: 5px;
  }

  body.sidebar-collapsed .sidebar-brand {
    min-height: 72px;
    padding-bottom: 4px;
  }

  body.sidebar-collapsed .sidebar-brand .logo-img {
    width: 34px;
    height: 34px;
  }

  body.sidebar-collapsed .sidebar-brand-text {
    display: none;
  }

  body.sidebar-collapsed .portal-sidebar .portal-page-nav a,
  body.sidebar-collapsed .sidebar-footer .resource-menu summary,
  body.sidebar-collapsed .sidebar-footer .portal-logout-btn {
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
    font-size: 0;
  }

  body.sidebar-collapsed .portal-sidebar .portal-page-nav a svg,
  body.sidebar-collapsed .sidebar-footer .resource-menu summary svg,
  body.sidebar-collapsed .sidebar-footer .portal-logout-btn svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  body.sidebar-collapsed .sidebar-footer .resource-menu-panel {
    left: 72px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  main.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-package-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .portal-sidebar-toggle {
    display: none;
  }
}

@media (min-width: 769px) {
  body .portal-sidebar .portal-sidebar-toggle {
    appearance: none;
    display: grid;
    place-items: center;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #285c48 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body .portal-sidebar .portal-sidebar-toggle:hover,
  body .portal-sidebar .portal-sidebar-toggle:focus-visible {
    color: #087c59 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body .portal-sidebar .portal-sidebar-toggle svg {
    display: block;
    width: 17px;
    height: 17px;
  }

  body.sidebar-collapsed .portal-sidebar .portal-sidebar-toggle {
    right: auto;
    left: 50%;
    margin-left: -12px;
  }
}

@media (min-width: 769px) {
  body:not(.sidebar-collapsed) {
    padding-left: 168px;
  }

  body:not(.sidebar-collapsed) .portal-sidebar {
    width: 168px;
  }

  .portal-sidebar .portal-page-nav a,
  .sidebar-footer .resource-menu summary,
  .sidebar-footer .portal-logout-btn {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sidebar-footer .resource-menu-panel {
    left: 228px;
    width: min(360px, calc(100vw - 244px));
  }
}

@media (min-width: 769px) {
  main.grid {
    max-width: 1530px;
  }

  .assessment-packages-full,
  .pre-employment-requirements-inline,
  .medical-forms-full,
  .sent-email-history-section,
  .history-trend-section,
  .applicant-details-section,
  .my-notes-section {
    max-width: 1530px;
  }

  .sidebar-brand span {
    font-size: 14px;
  }

  .portal-sidebar .portal-page-nav a,
  .sidebar-footer .resource-menu summary,
  .sidebar-footer .portal-logout-btn {
    font-size: 12px;
  }

  .header-text-box h1 {
    font-size: 25px;
  }

  .header-text-box p:not(.header-credit) {
    font-size: 12px;
  }

  .header-credit {
    font-size: 14px !important;
  }

  .card-header h2 {
    font-size: 18px;
  }

  .form-label {
    font-size: 12px;
  }

  .card input,
  .card select {
    min-height: 44px;
    font-size: 14px;
  }

  .medical-date-row .form-label {
    font-size: 10px;
  }

  .email-queue-heading h2 {
    font-size: 14px;
  }

  body .portal-sidebar .portal-sidebar-toggle svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 769px) {
  body:not(.sidebar-collapsed) {
    padding-left: 220px;
  }

  body:not(.sidebar-collapsed) .portal-sidebar {
    width: 220px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .sidebar-brand {
    min-height: 124px;
    gap: 7px;
  }

  .sidebar-brand .logo-img {
    width: 70px;
    height: 64px;
  }

  .sidebar-brand span {
    font-size: 16px;
  }

  .portal-sidebar .portal-page-nav {
    gap: 6px;
  }

  .portal-sidebar .portal-page-nav a,
  .sidebar-footer .resource-menu summary,
  .sidebar-footer .portal-logout-btn {
    min-height: 40px;
    gap: 10px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.25;
  }

  .portal-sidebar .portal-page-nav a span {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
  }

  .portal-sidebar .portal-page-nav a svg,
  .sidebar-footer .resource-menu summary svg,
  .sidebar-footer .portal-logout-btn svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .sidebar-footer .resource-menu summary svg,
  .sidebar-footer .portal-logout-btn svg {
    margin: 0;
  }

  .sidebar-footer {
    gap: 5px;
    padding-top: 12px;
  }
}

@media (min-width: 769px) {
  main.grid {
    padding-top: 48px;
  }
}

.selected-packages-card .card-header .select-package-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 28px;
  margin: 0 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #103b70;
  border-radius: 6px;
  color: #ffffff;
  background: #174a83;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.selected-packages-card .card-header .select-package-btn:hover {
  background: #103b70;
}

.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;
  border: 1px solid #d5e8dc;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 61, 50, 0.22);
  overflow: hidden;
}

.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;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.package-selection-close:hover {
  color: #b42318;
  background: #fff0ef;
}

.package-selection-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 13px;
}

.package-selection-content h2 {
  font-size: 18px;
}

.package-selection-content h3 {
  font-size: 15px;
}

.package-selection-content .packages-subtitle {
  margin: 2px 0 8px;
  font-size: 11px;
  line-height: 1.3;
}

.package-selection-content .package-name {
  font-size: 12px;
  line-height: 1.2;
}

.package-selection-content .pre-employment-requirements-inline,
.package-selection-content .assessment-packages-full,
.package-selection-content .medical-forms-full {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 10px;
}

.package-selection-content .assessment-packages-full,
.package-selection-content .medical-forms-full {
  grid-column: 1 / -1;
}

.package-selection-content .pre-employment-requirements-inline > h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
}

.package-selection-content .pre-employment-requirements-inline .package-item {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  grid-template-columns: 16px minmax(0, 1fr);
  border-width: 1px;
  border-radius: 8px;
}

.package-selection-content .assessment-packages-full .package-item,
.package-selection-content .medical-forms-full .package-item {
  min-height: 40px;
  padding: 6px 8px;
  grid-template-columns: 16px minmax(0, 1fr);
  border-width: 1px;
  border-radius: 8px;
}

.package-selection-content .card .package-checkbox {
  display: block;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  max-width: 14px;
  min-height: 14px !important;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
}

.package-selection-content .categories-wrapper {
  gap: 12px;
}

.package-selection-content .packages-column {
  gap: 8px;
}

@media (max-width: 768px) {
  .package-selection-modal {
    align-items: stretch;
    padding: 8px;
  }

  .package-selection-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .package-selection-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .package-selection-content {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
}

@media (min-width: 1025px) {
  main.grid {
    gap: 24px;
  }

  .selected-package-column {
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .selected-package-column .selected-packages-card {
    width: 100%;
    height: 100%;
    flex: none;
  }
}

.portal-page#sendEmailPage > .email-queue-panel {
  width: calc(100% - 80px);
  max-width: 1530px;
  min-height: 160px;
  max-height: 45vh;
  height: auto;
  flex: none;
  margin: 0 auto 24px;
  padding: 16px;
}

#preEmploymentPackagesPage {
  width: 100%;
  height: calc(100vh - 48px);
  overflow: hidden;
}

.pre-employment-packages-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6f7f3;
}

@media (max-width: 768px) {
  .portal-page#sendEmailPage > .email-queue-panel {
    width: calc(100% - 24px);
  }

  #preEmploymentPackagesPage {
    height: calc(100vh - 70px);
  }
}

@media (min-width: 769px) {
  .portal-sidebar {
    height: 91vh;
    min-height: 91vh;
  }
}

#sentEmailPage .sent-email-history-section,
#sentEmailPage .history-trend-section,
#applicantDetailsPage .applicant-details-section,
#rncfRecordsPage .applicant-details-section,
#myNotesPage .my-notes-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#sentEmailPage .sent-email-history-section .card-header,
#sentEmailPage .history-trend-section .history-trend-heading,
#applicantDetailsPage .applicant-details-section .card-header,
#rncfRecordsPage .applicant-details-section .card-header {
  margin-bottom: 8px;
}

#sentEmailPage .sent-email-history-toolbar {
  margin-bottom: 8px;
}

#applicantDetailsPage .applicant-details-toolbar {
  padding: 6px 0;
}

#rncfRecordsPage .rncf-records-toolbar {
  padding: 6px 0;
}

#sentEmailPage .sent-email-history-section,
#applicantDetailsPage .applicant-details-section,
#rncfRecordsPage .applicant-details-section,
#myNotesPage .my-notes-section {
  padding-top: 30px;
}

#sentEmailPage .sent-email-history-toolbar .history-search-input,
#sentEmailPage .sent-email-history-toolbar .history-filter-input,
#sentEmailPage .sent-email-history-toolbar .name-list-filter,
#sentEmailPage .history-export-range select,
#sentEmailPage .history-export-range input {
  border-color: #91b29b !important;
}

#sentEmailPage .sent-email-history-toolbar input:focus-visible,
#sentEmailPage .sent-email-history-toolbar textarea:focus-visible,
#sentEmailPage .history-export-range select:focus-visible,
#sentEmailPage .history-export-range input:focus-visible {
  border-color: #2f7d5d !important;
  box-shadow: 0 0 0 2px rgba(47, 125, 93, .18);
  outline: none;
}

#sentEmailPage .history-export-range {
  gap: 6px;
  font-size: 11px;
}

#sentEmailPage .history-export-range select {
  width: 170px;
  min-width: 170px;
  height: 32px;
  padding: 6px 26px 6px 8px;
}

#sentEmailPage .history-export-range input {
  width: 120px;
  height: 32px;
  padding: 6px 8px;
  box-sizing: border-box;
}

#sentEmailPage .history-export-range .export-data-btn {
  min-width: 82px;
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
}

#sentEmailPage .sent-email-history-toolbar {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

#sentEmailPage .data-page-sticky-header,
#applicantDetailsPage .data-page-sticky-header,
#rncfRecordsPage .data-page-sticky-header {
  position: sticky;
  top: 30px;
  z-index: 20;
  padding: 4px 0 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(23, 86, 65, .12);
}

#sentEmailPage .data-page-sticky-header::before,
#applicantDetailsPage .data-page-sticky-header::before,
#rncfRecordsPage .data-page-sticky-header::before {
  position: absolute;
  top: -30px;
  right: 0;
  left: 0;
  z-index: 1;
  height: 30px;
  background: #ffffff;
  content: "";
}

#myNotesPage .my-notes-sticky-header {
  position: sticky;
  top: 30px;
  z-index: 20;
  padding: 4px 0 6px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(23, 86, 65, .12);
}

#myNotesPage .my-notes-sticky-header::before {
  position: absolute;
  top: -30px;
  right: 0;
  left: 0;
  z-index: 1;
  height: 30px;
  background: #ffffff;
  content: "";
}

#myNotesPage .my-notes-status:empty {
  display: none;
}

#sentEmailPage .sent-email-history-toolbar .history-search-input {
  width: 180px !important;
}

#sentEmailPage .sent-email-history-toolbar #historyLocationFilter,
#sentEmailPage .sent-email-history-toolbar #historyRecruiterFilter {
  width: 150px !important;
}

#sentEmailPage .sent-email-history-toolbar #historyAccountFilter {
  width: 200px !important;
}

#sentEmailPage .sent-email-history-toolbar .name-list-filter {
  width: 220px;
  height: 30px;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.1;
}

#sentEmailPage .sent-email-history-toolbar .history-search-input,
#sentEmailPage .sent-email-history-toolbar .history-filter-input {
  height: 26px !important;
  min-height: 26px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
  line-height: 1.1;
}

#applicantDetailsPage .applicant-details-toolbar input,
#rncfRecordsPage .rncf-records-toolbar input {
  height: 26px !important;
  min-height: 26px !important;
  padding: 4px 8px !important;
  font-size: 10px !important;
  line-height: 1.1;
}

#applicantDetailsPage .applicant-details-table th:nth-child(3),
#applicantDetailsPage .applicant-details-table td:nth-child(3) {
  width: 160px;
  min-width: 160px;
  white-space: nowrap;
}

#applicantDetailsPage .applicant-details-toolbar .name-list-filter,
#rncfRecordsPage .rncf-records-toolbar .name-list-filter {
  height: 30px;
  min-height: 30px;
  padding: 4px 8px !important;
  font-size: 10px;
  line-height: 1.1;
}

#applicantDetailsPage .applicant-details-toolbar .export-data-btn,
#rncfRecordsPage .rncf-records-toolbar .export-data-btn {
  height: 26px !important;
  min-height: 26px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
}

#rncfRecordsPage .rncf-filter-controls select {
  height: 30px;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
}

.sticky-data-table-header {
  position: fixed;
  z-index: 21;
  display: none;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #edf9f0;
  pointer-events: none;
}

.sticky-data-table-header.is-visible {
  display: block;
}

.sticky-data-table-header table {
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.sticky-data-table-header th {
  position: static !important;
  top: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 3px 5px;
  border: 1px solid var(--border-light);
  background: #edf9f0;
  font-size: 10px;
  line-height: 1.05;
}

.sticky-data-table-header.my-notes-sticky-table-header,
.sticky-data-table-header.my-notes-sticky-table-header th {
  background: #dceeff;
}

#sentEmailPage .sent-email-history-scroll,
#applicantDetailsPage .sent-email-history-scroll,
#rncfRecordsPage .sent-email-history-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}

#sentEmailPage .sent-email-history-table th,
#sentEmailPage .sent-email-history-table td,
#applicantDetailsPage .sent-email-history-table th,
#applicantDetailsPage .sent-email-history-table td,
#rncfRecordsPage .sent-email-history-table th,
#rncfRecordsPage .sent-email-history-table td {
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.05;
}

#sentEmailPage .sent-email-history-table td:nth-child(3) {
  white-space: normal;
}

#sentEmailPage .history-sent-items {
  display: block;
  max-width: 210px;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.05;
}

#sentEmailPage .sent-email-history-table thead th:nth-child(3) {
  text-align: center;
}

#sentEmailPage .history-delete-checkbox {
  display: inline-block !important;
  width: 17px !important;
  min-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#sentEmailPage .sent-email-history-table td:nth-child(10),
#sentEmailPage .sent-email-history-table td:nth-child(11) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sentEmailPage .history-row-button {
  min-height: 22px;
  min-width: 48px;
  padding: 2px 6px !important;
  font-size: 10px !important;
}

@media (max-width: 768px) {
  #sentEmailPage .sent-email-history-toolbar .history-search-input,
  #sentEmailPage .sent-email-history-toolbar .history-filter-input,
  #sentEmailPage .sent-email-history-toolbar .name-list-filter {
    width: 100% !important;
  }
}

.selected-packages-card > .send-email-btn {
  width: auto;
  min-width: 132px;
  min-height: 38px;
  align-self: flex-end;
  margin: auto 0 0;
  padding: 8px 16px;
  border: 1px solid #145b35;
  border-radius: 7px;
  color: #ffffff;
  background: #176b3e;
}

.selected-packages-card > .send-email-btn:hover:not(:disabled) {
  background: #10572f;
}

.selected-packages-card > .send-email-btn:disabled {
  color: #ffffff;
  background: #176b3e;
  opacity: 1;
}

.selected-packages-card > .email-status:empty {
  display: none;
}

#sendEmailPage .candidate-info-card,
#sendEmailPage .other-info-card,
#sendEmailPage .selected-packages-card,
#sendEmailPage .email-queue-panel {
  border-color: #78ad85;
}

@media (min-width: 769px) and (max-width: 1400px) {
  #sendEmailPage main.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #sendEmailPage .selected-package-column {
    grid-column: 1 / -1;
    display: block;
    min-width: 0;
  }

  #sendEmailPage .selected-package-column .selected-packages-card {
    width: 100%;
    height: auto;
    min-height: 260px;
    flex: none;
  }
}

#applicantDetailsPage .applicant-details-toolbar,
#rncfRecordsPage .rncf-records-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 0;
}

#applicantDetailsPage .applicant-details-toolbar input,
#rncfRecordsPage .rncf-records-toolbar input {
  width: 180px;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 180px;
  height: 26px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #91b29b;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.1;
}

#applicantDetailsPage .applicant-details-toolbar .name-list-filter,
#rncfRecordsPage .rncf-records-toolbar .name-list-filter {
  width: 220px;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 220px;
  height: 30px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #91b29b;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.1;
}

#rncfRecordsPage .rncf-filter-controls select {
  height: 26px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #91b29b;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.1;
}

#applicantDetailsPage .applicant-details-toolbar input:focus-visible,
#applicantDetailsPage .applicant-details-toolbar .name-list-filter:focus-visible,
#rncfRecordsPage .rncf-records-toolbar input:focus-visible,
#rncfRecordsPage .rncf-records-toolbar .name-list-filter:focus-visible,
#rncfRecordsPage .rncf-filter-controls select:focus-visible {
  border-color: #2f7d5d !important;
  box-shadow: 0 0 0 2px rgba(47, 125, 93, .18);
  outline: none;
}

#sentEmailPage .sent-email-history-table thead th {
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.15;
}

@media (min-width: 601px) {
  #myNotesPage .my-notes-table th,
  #myNotesPage .my-notes-table td {
    padding: 4px 6px;
  }

  #myNotesPage .my-notes-table input {
    height: 32px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
  }

  #myNotesPage .my-notes-add-button,
  #myNotesPage .my-note-copy-button,
  #myNotesPage .my-note-delete-button {
    min-height: 27px;
    padding: 4px 7px;
    font-size: 11px;
  }
}

#myNotesPage .my-notes-add-button {
  width: 27px;
  min-width: 27px;
  min-height: 27px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

#myNotesPage .my-notes-table input.my-note-select-checkbox {
  display: inline-block;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0 2px;
  padding: 0;
  accent-color: #176b4a;
  cursor: pointer;
}

body.sidebar-collapsed .portal-sidebar .portal-page-nav a span {
  display: none;
}

.my-note-content-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.my-note-content-control > input[data-note-field="content"] {
  flex: 1;
  width: 0;
}

.bulk-email-controls {
  display: grid;
  gap: 4px;
  width: calc(100% - 80px);
  max-width: 1530px;
  margin: 10px auto 0;
}

.bulk-email-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.bulk-email-actions button,
.bulk-upload-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 6px;
  font: 700 11px/1.2 "DM Sans", sans-serif;
  cursor: pointer;
}

.bulk-package-footer button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  font: 700 12px/1.2 "DM Sans", sans-serif;
  cursor: pointer;
}

.bulk-email-actions #downloadBulkTemplateBtn {
  width: 142px;
  border: 1px solid #a9d8b8;
  color: #176b3e;
  background: #d9f1e0;
}

.bulk-upload-button {
  width: 132px;
  border: 1px solid #3c9561;
  color: #fff;
  background: #58a978;
}

.bulk-email-actions #sendBulkEmailBtn,
.bulk-package-footer #queueBulkCandidatesBtn {
  border: 1px solid #145b35;
  color: #fff;
  background: #176b3e;
}

.bulk-email-actions #sendBulkEmailBtn {
  width: 112px;
}

.bulk-email-actions button:disabled {
  cursor: not-allowed;
  opacity: .8;
}

.bulk-package-footer button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.bulk-upload-button:hover,
.bulk-email-actions button:hover:not(:disabled),
.bulk-package-footer button:hover:not(:disabled) {
  filter: brightness(.96);
}

.bulk-email-status {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: #52665a;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-email-status[hidden] {
  display: none;
}

.bulk-email-status.error,
.bulk-package-footer #bulkPackageStatus.error {
  color: #a12f42;
}

.bulk-email-status.success,
.bulk-package-footer #bulkPackageStatus.success {
  color: #176b3e;
}

.bulk-package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 14px;
}

.bulk-package-footer #bulkPackageStatus {
  min-width: 0;
  color: #52665a;
  font-size: 12px;
}

.bulk-package-footer #queueBulkCandidatesBtn[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .bulk-email-controls {
    width: calc(100% - 24px);
  }
}

@media (max-width: 600px) {
  .bulk-email-actions #downloadBulkTemplateBtn,
  .bulk-email-actions .bulk-upload-button,
  .bulk-email-actions #sendBulkEmailBtn {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }
}

.bulk-email-actions #downloadBulkTemplateBtn,
.bulk-email-actions .bulk-upload-button,
.bulk-email-actions #sendBulkEmailBtn {
  box-sizing: border-box !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  font: 700 11px/1.1 "DM Sans", sans-serif !important;
  white-space: nowrap !important;
}

.bulk-email-actions #downloadBulkTemplateBtn {
  width: 148px !important;
}

.bulk-email-actions .bulk-upload-button {
  width: 132px !important;
}

.bulk-email-actions #sendBulkEmailBtn {
  width: 112px !important;
}

.bulk-email-actions {
  flex-wrap: nowrap !important;
}

@media (max-width: 600px) {
  .bulk-email-actions #downloadBulkTemplateBtn,
  .bulk-email-actions .bulk-upload-button,
  .bulk-email-actions #sendBulkEmailBtn {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 3px !important;
    font-size: clamp(8px, 2.4vw, 11px) !important;
    flex: 1 1 0 !important;
  }
}

.bulk-email-table-wrap {
  max-height: 40vh;
  overflow: auto;
  border: 1px solid #d6e8da;
  border-radius: 6px;
  background: #fff;
}

.bulk-email-table-wrap[hidden] {
  display: none;
}

.bulk-email-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: #355c49;
  font-size: 11px;
  line-height: 1.3;
}

.bulk-email-table th,
.bulk-email-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e1eee4;
  text-align: left;
  overflow-wrap: anywhere;
}

.bulk-email-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf8f1;
  font-weight: 700;
  white-space: nowrap;
}

.bulk-email-table tbody tr:nth-child(even) {
  background: #f7fbf8;
}

.bulk-package-footer #queueBulkCandidatesBtn {
  box-sizing: border-box !important;
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 180px !important;
  margin-left: auto;
  padding: 0 10px !important;
  font: 700 12px/1.1 "DM Sans", sans-serif !important;
  white-space: nowrap !important;
}

@media (max-width: 600px) {
  .bulk-package-footer #queueBulkCandidatesBtn {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    flex-basis: 140px !important;
  }
}

.portal-tour-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  zoom: 1;
  pointer-events: none;
}

.portal-tour-connector {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.portal-tour-connector path {
  fill: none;
  stroke: #176b3e;
  stroke-width: 2.5;
  stroke-linecap: round;
  marker-end: url(#portalTourArrow);
  filter: drop-shadow(0 1px 2px #fff);
}

.portal-tour-highlight {
  outline: 3px solid #19a65a !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(57, 204, 125, .2), 0 0 18px rgba(57, 204, 125, .48) !important;
}

.portal-tour-popover {
  position: fixed;
  z-index: 2;
  left: 50%;
  width: min(390px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 22px;
  color: #1d2b24;
  background: #fff;
  border: 1px solid #d4ecdc;
  border-radius: 16px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
  font-family: "DM Sans", sans-serif;
  pointer-events: auto;
  transform: translateX(-50%);
}

.portal-tour-popover h2 {
  margin: 0 0 10px;
  color: #145b35;
  font: 800 20px/1.3 "Manrope", sans-serif;
}

.portal-tour-popover p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.portal-tour-progress {
  margin-top: 16px;
  color: #617067;
  font-size: 12px;
}

.portal-tour-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.portal-tour-actions button {
  flex: 0 0 auto;
  width: auto;
  min-width: 72px;
  min-height: 32px;
  height: 32px;
  padding: 5px 11px;
  color: #145b35;
  background: #f1f8f3;
  border: 1px solid #cfe4d5;
  border-radius: 8px;
  font: 600 12px "DM Sans", sans-serif;
  cursor: pointer;
}

#portalTourBack,
#portalTourNext {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 72px !important;
  max-width: 110px !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 5px 11px !important;
  border: 1px solid #cfe4d5 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

#portalTourBack {
  color: #fff !important;
  background: #b4232f !important;
  border-color: #b4232f !important;
}

#portalTourBack:hover:not(:disabled) {
  background: #951b27 !important;
}

.portal-tour-actions button:hover:not(:disabled) {
  background: #e4f2e8;
}

.portal-tour-actions button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.portal-tour-actions #portalTourNext {
  margin-left: 0;
  color: #fff !important;
  background: #176b3e !important;
  border-color: #176b3e !important;
}

#portalTourNext:hover:not(:disabled) {
  background: #105531 !important;
}

.portal-tour-sync-notice {
  position: fixed;
  z-index: 10003;
  right: 16px;
  bottom: 16px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #613a08;
  background: #fff8e8;
  border: 1px solid #ebc981;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  font: 500 13px/1.5 "DM Sans", sans-serif;
}

@media (max-width: 600px) {
  .portal-tour-popover {
    padding: 18px;
  }
}