button,
a,
.primary,
.secondary,
.review,
.approve,
.reject,
.view,
.move,
.edit,
.ghost,
.mini,
.tab,
.link {
  max-width: 100%;
}

.shell > main,
.shell > .main,
.layout > *,
.grid2 > * {
  min-width: 0;
}

button,
.primary,
.secondary,
.review,
.approve,
.reject,
.view,
.move,
.edit,
.ghost,
.mini,
.tab {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: center;
}

.actions,
.modal-actions,
.subscription-actions,
.saved-job-actions,
.social-account-actions,
.detail-actions,
.bar {
  min-width: 0;
  flex-wrap: wrap;
}

.actions > *,
.modal-actions > *,
.subscription-actions > *,
.saved-job-actions > *,
.social-account-actions > *,
.detail-actions > *,
.bar > * {
  min-width: 0;
}

.row,
.job,
.candidate,
.social-account,
.history-row {
  min-width: 0;
}

.row > *,
.job > *,
.candidate > *,
.social-account > *,
.history-row > * {
  min-width: 0;
}

.tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  border-radius: 999px;
  padding-left: 10px;
  padding-right: 10px;
}

.head,
.table-head,
.top,
.jobtop,
.bottom {
  min-width: 0;
}

@media (max-width: 1120px) {
  .table-card .row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .table-card .row > div:not(:first-child):not(.actions) {
    display: block;
  }

  .table-card .actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .jobs .job {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .jobs .job .hide-mobile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .top,
  .head,
  .table-head,
  .jobtop,
  .bottom,
  .social-account {
    align-items: stretch;
    flex-direction: column;
  }

  .actions,
  .modal-actions,
  .social-account-actions,
  .detail-actions,
  .bottom {
    justify-content: flex-start;
  }

  .actions button,
  .actions a,
  .modal-actions button,
  .social-account-actions button,
  .detail-actions button,
  .bottom button,
  .bottom a {
    width: 100%;
  }

  .jobs .job,
  .row,
  .history-row {
    grid-template-columns: 1fr;
  }

  .row > .actions,
  .table-card .actions {
    grid-column: auto;
  }

  .candidate .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: stretch;
  }

  .candidate .actions button,
  .candidate .actions a {
    width: 100%;
  }
}


/* Stronger overlap protection for dense dashboard rows. */
.tab {
  min-height: 34px;
}

.head,
.table-head,
.top,
.jobtop,
.bottom,
.modal-actions {
  gap: 10px;
}

.table-card .row,
.jobs .job,
.applications .app,
.job,
.row {
  overflow: visible;
}

.table-card .actions,
.row .actions,
.jobs .actions {
  row-gap: 7px;
}

.table-card .actions button,
.table-card .actions a,
.row .actions button,
.row .actions a,
.jobs .job button,
.candidate .actions button,
.candidate .actions a {
  min-height: 34px;
}

.table-card .name,
.table-card .sub,
.job h3,
.job p,
.candidate h3,
.candidate p,
.saved-job h3,
.saved-job p,
.social-account strong,
.social-account span {
  overflow-wrap: anywhere;
}

.table-card .pill,
.badge,
.status,
.tag,
.level {
  white-space: normal;
  width: fit-content;
  max-width: 100%;
  line-height: 1.25;
}

.modal-actions {
  align-items: stretch;
}

.modal-actions button {
  min-width: 120px;
}

@media (max-width: 1120px) {
  .table-card .actions button,
  .table-card .actions a {
    flex: 1 1 112px;
  }
}

@media (max-width: 760px) {
  .table-card .actions button,
  .table-card .actions a,
  .jobs .job button {
    width: 100%;
  }
}


/* BERMISA panel polish: clean, premium action layout. */
:root {
  --bermisa-action-gap: 8px;
  --bermisa-action-radius: 10px;
  --bermisa-action-min: 36px;
}

.actions,
.modal-actions,
.detail-actions,
.saved-job-actions,
.social-account-actions,
.subscription-actions,
.candidate .actions,
.bottom,
.bar {
  display: flex;
  gap: var(--bermisa-action-gap);
  align-items: center;
}

.actions,
.modal-actions,
.detail-actions,
.saved-job-actions,
.social-account-actions,
.candidate .actions,
.bottom {
  flex-wrap: wrap;
}

.actions button,
.actions a,
.modal-actions button,
.modal-actions a,
.detail-actions button,
.detail-actions a,
.saved-job-actions button,
.saved-job-actions a,
.social-account-actions button,
.social-account-actions a,
.subscription-actions button,
.candidate .actions button,
.candidate .actions a,
.bottom button,
.bottom a,
.bar button,
.primary,
.secondary,
.review,
.approve,
.reject,
.view,
.move,
.edit,
.ghost,
.mini {
  min-height: var(--bermisa-action-min);
  border-radius: var(--bermisa-action-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  vertical-align: middle;
}

.actions button,
.actions a,
.table-card .actions button,
.table-card .actions a,
.row .actions button,
.row .actions a {
  flex: 0 1 auto;
}

.table-card .actions,
.row .actions {
  justify-content: flex-end;
}

.head,
.table-head,
.top {
  flex-wrap: wrap;
  align-items: flex-start;
}

.head > *,
.table-head > *,
.top > * {
  min-width: 0;
}

.head h2,
.table-head h2,
.top h1,
.card h2,
.panel h2 {
  text-wrap: balance;
}

p,
.sub,
.hint,
.card small,
.panel small,
.metric span,
.stat span {
  overflow-wrap: anywhere;
}

.table-card .row {
  grid-auto-rows: minmax(36px, auto);
}

.table-card .actions button,
.table-card .actions a {
  padding-inline: 10px;
}

.candidate .actions {
  justify-content: space-between;
  row-gap: 8px;
}

.candidate .view,
.candidate .move {
  padding: 8px 10px;
}

.tabs {
  row-gap: 8px;
}

.tab {
  background: #fff;
  border: 1px solid var(--line, #dce6f1);
}

.tab.active {
  background: #edf4ff;
}

@media (min-width: 761px) {
  .table-card .actions button,
  .table-card .actions a,
  .row .actions button,
  .row .actions a {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .actions,
  .modal-actions,
  .detail-actions,
  .saved-job-actions,
  .social-account-actions,
  .subscription-actions,
  .candidate .actions,
  .bottom,
  .bar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .head a,
  .table-head a,
  .top .actions,
  .top a,
  .top button {
    width: 100%;
  }

  .table-card .row,
  .jobs .job,
  .history-row {
    gap: 10px;
    padding-block: 18px;
  }

  .table-card .actions,
  .row .actions {
    justify-content: stretch;
  }
}


/* Candidate and team action cleanup. */
#candidateFallbackModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 20, 38, .66);
}

#candidateFallbackModal .dialog {
  width: min(720px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--l, #dce6f1);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(7, 20, 38, .24);
}

#candidateFallbackModal .dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--l, #dce6f1);
}

#candidateFallbackModal h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

#candidateFallbackModal p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

#candidateFallbackModal .stat {
  border: 1px solid var(--l, #dce6f1);
  border-radius: 12px;
  padding: 14px;
  background: #fbfdff;
}

#candidateFallbackModal .stat span,
#candidateFallbackModal .stat b {
  display: block;
}

#candidateFallbackModal .close {
  flex: 0 0 auto;
}

.team-action-cell,
.row .edit,
.candidate .actions .view,
.candidate .actions .move {
  flex-shrink: 0;
}

.row .edit {
  width: 100%;
  max-width: 150px;
  justify-self: end;
}

.permissions {
  min-width: 0;
  align-items: center;
}

.permission,
.skills {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

@media (max-width: 1020px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row .edit {
    max-width: none;
  }
}

@media (max-width: 640px) {
  #candidateFallbackModal .dialog {
    padding: 18px;
  }

  #candidateFallbackModal .dialog [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .board {
    grid-template-columns: 1fr;
  }
}


.admin-prompt,
.skill-inline-form,
.social-account-email-form {
  border: 1px solid var(--line, #dce6f1);
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
}

.admin-prompt label,
.social-account-email-form label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink, #10233f);
  margin-bottom: 8px;
}

.admin-prompt-field,
.skill-inline-form input,
.social-account-email-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line, #dce6f1);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #10233f);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.admin-prompt-field:focus,
.skill-inline-form input:focus,
.social-account-email-form input:focus {
  border-color: #2866ef;
  box-shadow: 0 0 0 3px rgba(40, 102, 239, .12);
}

.skill-inline-form,
.social-account-email-form div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.skill-inline-form button,
.social-account-email-form button {
  border: 1px solid var(--line, #dce6f1);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #10233f);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.skill-inline-form button:first-of-type,
.social-account-email-form button:first-of-type {
  border-color: #2866ef;
  background: #2866ef;
  color: #fff;
}

@media (max-width: 640px) {
  .skill-inline-form,
  .social-account-email-form div {
    align-items: stretch;
  }

  .skill-inline-form input,
  .skill-inline-form button,
  .social-account-email-form input,
  .social-account-email-form button {
    width: 100%;
  }
}


/* Calm UI layer: keeps BERMISA panels focused and less tiring. */
:root {
  --bermisa-calm-bg: #f7f9fc;
  --bermisa-calm-surface: #ffffff;
  --bermisa-calm-line: #dce6f1;
  --bermisa-calm-ink: #10233f;
  --bermisa-calm-muted: #65768f;
  --bermisa-calm-blue: #2866ef;
}

body {
  text-rendering: optimizeLegibility;
}

.card,
.panel,
.table-card,
.metric,
.stat,
.job,
.candidate,
.opening,
.application,
.saved-job,
.social-account,
.history-row,
.detail-card,
.box,
.dialog,
.modal,
.float {
  box-shadow: none !important;
  border-color: var(--bermisa-calm-line, #dce6f1) !important;
}

.card,
.panel,
.table-card,
.metric,
.stat,
.job,
.candidate,
.opening,
.application,
.saved-job,
.social-account,
.history-row,
.detail-card {
  border-radius: 10px !important;
}

.main,
.shell main {
  background: var(--bermisa-calm-bg, #f7f9fc);
}

.top h1,
.hero h1,
.table-head h2,
.head h2,
.card h2,
.panel h2 {
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
}

.top p,
.card > p,
.panel p,
.table-head span,
.head span,
.sub,
small {
  color: var(--bermisa-calm-muted, #65768f) !important;
  line-height: 1.55 !important;
}

.actions,
.modal-actions,
.bar,
.bottom,
.demo-actions {
  gap: 8px !important;
}

.actions button,
.actions a,
.modal-actions button,
.bar button,
.bottom button,
.bottom a,
.demo-actions button {
  min-height: 38px;
  border-radius: 8px !important;
}

.tabs,
.pill-row,
.skill-list,
.permissions {
  gap: 7px !important;
}

.pill,
.tag,
.permission,
.skills,
.tab {
  border-radius: 999px !important;
}

/* Sidebar identity cards: prevents admin, employer and candidate account text from overlapping. */
.side {
  position: relative;
  padding-bottom: 132px !important;
}

.side .admin,
.side .company,
.side .user {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 20px !important;
  margin: 0 !important;
  width: auto !important;
  max-width: calc(100% - 36px) !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .06) !important;
}

.side .user {
  display: block !important;
}

.side .admin > div:last-child,
.side .company > div:last-child,
.side .user {
  min-width: 0 !important;
  max-width: 100% !important;
}

.side .admin .avatar,
.side .company .avatar,
.side .avatar {
  flex: 0 0 35px !important;
}

.side .admin b,
.side .company b,
.side .user b,
.side .admin small,
.side .company small,
.side .user small {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

.side .admin b,
.side .company b,
.side .user b {
  color: #fff !important;
  font-size: 13px !important;
}

.side .admin small,
.side .company small,
.side .user small {
  margin-top: 3px !important;
  color: #9fb0c8 !important;
  font-size: 11px !important;
}

/* Shared panel tools stay in document flow, so language, notifications and logout never overlap. */
.bermisa-utility-bar {
  box-sizing: border-box;
  clear: both;
  isolation: isolate;
  min-width: 0;
}

.bermisa-utility-bar > * {
  min-width: 0;
}

.bermisa-utility-bar .bermisa-language-slot,
.bermisa-utility-bar .notify-center,
.bermisa-utility-bar .bermisa-logout {
  position: static !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

.bermisa-utility-bar .bermisa-logout {
  min-height: 40px;
  white-space: normal;
}

@media (max-width: 520px) {
  main:not(.main):not(.wrap) > .bermisa-utility-bar {
    padding-inline: 15px;
  }

  .bermisa-utility-bar {
    align-items: stretch;
    row-gap: 8px;
  }
}

/* Subtle role-specific visuals for the two primary dashboards. */
.candidate-dashboard .main,
.employer-dashboard .main {
  position: relative;
  isolation: isolate;
}

.candidate-dashboard .main::before,
.employer-dashboard .main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(440px, 42vw);
  height: 250px;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 20%, rgba(87, 217, 230, .13) 0 58px, transparent 59px),
    radial-gradient(circle at 40% 42%, rgba(40, 102, 239, .08) 0 92px, transparent 93px);
}

.candidate-dashboard .top {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff 0%, #f5f9ff 68%, #eef7fb 100%);
}

.candidate-dashboard .top::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(40, 102, 239, .07);
  border-radius: 50%;
  pointer-events: none;
}

.candidate-dashboard .top > * {
  position: relative;
  z-index: 1;
}

.candidate-dashboard .search {
  border-color: #d8e4f1;
  box-shadow: 0 10px 24px rgba(36, 73, 107, .06) !important;
}

.candidate-dashboard .job {
  position: relative;
  overflow: hidden;
}

.candidate-dashboard .job::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #2866ef, #57d9e6);
  opacity: .55;
}

.candidate-dashboard .company {
  background: linear-gradient(145deg, #e8efff, #edf9fb);
  box-shadow: inset 0 0 0 1px rgba(40, 102, 239, .08);
}

.employer-dashboard .hero {
  box-shadow: 0 16px 32px rgba(7, 23, 44, .12) !important;
}

.employer-dashboard .hero::before {
  content: "";
  position: absolute;
  left: 48%;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.employer-dashboard .hero > * {
  position: relative;
  z-index: 1;
}

.employer-dashboard .stat {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
}

.employer-dashboard .stat::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #2866ef;
  opacity: .7;
}

.employer-dashboard .stat:nth-child(2)::before {
  background: #57a6b6;
}

.employer-dashboard .stat:nth-child(3)::before {
  background: #8a70cf;
}

.employer-dashboard .stat:nth-child(4)::before {
  background: #df9c42;
}

.employer-dashboard .candidate,
.employer-dashboard .quick a {
  transition: border-color .2s ease, background-color .2s ease;
}

.employer-dashboard .candidate:hover,
.employer-dashboard .quick a:hover {
  transform: none;
  border-color: #b9cae0 !important;
  background: #fbfdff;
}

@media (max-width: 900px) {
  .candidate-dashboard .top {
    padding: 19px;
  }

  .candidate-dashboard .main::before,
  .employer-dashboard .main::before {
    width: 72vw;
    opacity: .7;
  }
}


/* Role color system: candidate, employer and admin keep one family with distinct identities. */
.candidate-dashboard {
  --role-primary: #0b9d90;
  --role-secondary: #2866ef;
  --role-soft: #e9fbf8;
  --role-line: #b9e5df;
}

.candidate-dashboard .side {
  background:
    radial-gradient(circle at 18% 4%, rgba(57, 214, 202, .18), transparent 22%),
    linear-gradient(180deg, #071b35 0%, #0a2947 58%, #0b3752 100%) !important;
}

.candidate-dashboard .brand i {
  background: linear-gradient(135deg, var(--role-secondary), #25b9a9) !important;
  box-shadow: 0 8px 18px rgba(30, 166, 163, .28);
}

.candidate-dashboard .side a {
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.candidate-dashboard .side a.active,
.candidate-dashboard .side a:hover {
  border-color: rgba(113, 230, 216, .18);
  background: linear-gradient(90deg, rgba(40, 102, 239, .28), rgba(18, 169, 154, .24));
  color: #fff;
}

.candidate-dashboard .main {
  background:
    radial-gradient(circle at 92% 2%, rgba(44, 208, 193, .18), transparent 24%),
    radial-gradient(circle at 58% 9%, rgba(40, 102, 239, .12), transparent 22%),
    #f4f9fd !important;
}

.candidate-dashboard .top {
  border-color: var(--role-line) !important;
  background:
    radial-gradient(circle at 92% 20%, rgba(40, 102, 239, .11), transparent 24%),
    linear-gradient(120deg, #ecfcf8 0%, #edf5ff 62%, #f6f2ff 100%) !important;
  box-shadow: 0 18px 42px rgba(17, 117, 132, .12) !important;
}

.candidate-dashboard .top h1 {
  color: #0b3d58;
}

.candidate-dashboard .alert {
  border-color: #a8ded7;
  color: #087c73;
  background: #f3fffd;
}

.candidate-dashboard .search {
  border-color: #b9dfdc !important;
  box-shadow: 0 18px 42px rgba(17, 117, 132, .12) !important;
}

.candidate-dashboard .search button {
  background: linear-gradient(110deg, var(--role-secondary), var(--role-primary));
  box-shadow: 0 10px 22px rgba(14, 145, 137, .22);
}

.candidate-dashboard .chip.active {
  color: #087c73;
  border-color: #9edbd4;
  background: #e5faf6;
}

.candidate-dashboard .filters,
.candidate-dashboard .job {
  border-color: #cfe5e5 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 32px rgba(19, 96, 116, .08) !important;
}

.candidate-dashboard .job {
  background: linear-gradient(145deg, #fff 0%, #f8fffd 100%);
}

.candidate-dashboard .job:hover {
  border-color: #79cfc4 !important;
  box-shadow: 0 20px 38px rgba(19, 96, 116, .13) !important;
}

.candidate-dashboard .view,
.candidate-dashboard .salary {
  color: #087f75;
}

.employer-dashboard {
  --role-primary: #e8675d;
  --role-secondary: #7357d9;
  --role-soft: #fff1ed;
  --role-line: #f0c2b9;
}

.employer-dashboard .side {
  background:
    radial-gradient(circle at 16% 5%, rgba(237, 108, 93, .2), transparent 24%),
    linear-gradient(180deg, #1d1938 0%, #272047 58%, #38254f 100%) !important;
}

.employer-dashboard .brand span {
  background: linear-gradient(135deg, var(--role-primary), var(--role-secondary)) !important;
  box-shadow: 0 8px 18px rgba(187, 77, 100, .3);
}

.employer-dashboard .side a {
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.employer-dashboard .side a.active,
.employer-dashboard .side a:hover {
  border-color: rgba(255, 186, 174, .17);
  background: linear-gradient(90deg, rgba(237, 108, 93, .26), rgba(115, 87, 217, .25));
  color: #fff;
}

.employer-dashboard .main {
  background:
    radial-gradient(circle at 92% 2%, rgba(237, 108, 93, .15), transparent 24%),
    radial-gradient(circle at 57% 10%, rgba(115, 87, 217, .12), transparent 22%),
    #fbf7fa !important;
}

.employer-dashboard .top {
  padding: 22px 24px;
  border: 1px solid #f0d2cb;
  border-radius: 15px;
  background: linear-gradient(120deg, #fff8f4 0%, #f8f2ff 66%, #fff 100%);
  box-shadow: 0 16px 38px rgba(136, 63, 93, .09);
}

.employer-dashboard .top h1 {
  color: #462446;
}

.employer-dashboard .primary {
  background: linear-gradient(110deg, var(--role-primary), var(--role-secondary));
  box-shadow: 0 11px 24px rgba(169, 70, 103, .22);
}

.employer-dashboard .hero {
  border: 1px solid rgba(255, 255, 255, .15);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 176, 151, .3), transparent 31%),
    linear-gradient(135deg, #302042 0%, #66386f 52%, #e8675d 100%) !important;
  box-shadow: 0 24px 52px rgba(83, 40, 82, .23) !important;
}

.employer-dashboard .hero::after {
  background: rgba(255, 191, 172, .2);
}

.employer-dashboard .stat {
  border-color: #efd7d2 !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #fff, #fff8f5);
  box-shadow: 0 14px 31px rgba(130, 59, 88, .09) !important;
}

.employer-dashboard .stat::before {
  background: linear-gradient(90deg, var(--role-primary), var(--role-secondary));
  opacity: .9;
}

.employer-dashboard .panel {
  border-color: #ead8e4 !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 36px rgba(93, 52, 103, .08) !important;
}

.employer-dashboard .panel .head {
  background: linear-gradient(90deg, #fff8f5, #f8f4ff);
}

.employer-dashboard .head a,
.employer-dashboard .score {
  color: #b44f61;
}

.employer-dashboard .progress i {
  background: linear-gradient(90deg, var(--role-primary), var(--role-secondary));
}

.employer-dashboard .candidate,
.employer-dashboard .quick a {
  border-color: #ead9e4 !important;
  background: linear-gradient(145deg, #fff, #fffaf8);
}

.employer-dashboard .candidate:hover,
.employer-dashboard .quick a:hover {
  border-color: #dd9da6 !important;
  background: #fff7f4;
}

body:has(> .shell > .side .admin) {
  --admin-primary: #2866ef;
  --admin-secondary: #6554bd;
  --admin-accent: #dfa33a;
}

body:has(> .shell > .side .admin) .side {
  background:
    radial-gradient(circle at 20% 3%, rgba(223, 163, 58, .16), transparent 21%),
    linear-gradient(180deg, #091c3a 0%, #10284c 58%, #182b50 100%) !important;
  color: #c8d5e8;
  border-right: 0;
  box-shadow: 9px 0 30px rgba(15, 38, 73, .11);
}

body:has(> .shell > .side .admin) .brand {
  color: #fff;
}

body:has(> .shell > .side .admin) .brand span {
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
  box-shadow: 0 7px 17px rgba(40, 102, 239, .3);
}

body:has(> .shell > .side .admin) .side a {
  color: #bac9df;
  border: 1px solid transparent;
}

body:has(> .shell > .side .admin) .side a.active,
body:has(> .shell > .side .admin) .side a:hover {
  color: #fff;
  border-color: rgba(255, 216, 143, .16);
  background: linear-gradient(90deg, rgba(40, 102, 239, .28), rgba(223, 163, 58, .2));
  box-shadow: inset 3px 0 #e2aa43;
  transform: none;
}

body:has(> .shell > .side .admin) .label {
  color: #8196b4;
}

body:has(> .shell > .side .admin) .main {
  background:
    radial-gradient(circle at 91% 3%, rgba(40, 102, 239, .2), transparent 24%),
    radial-gradient(circle at 58% 10%, rgba(223, 163, 58, .12), transparent 21%),
    #f3f7fc !important;
}

body:has(> .shell > .side .admin) .top {
  border-color: #d6e3f5;
  background:
    radial-gradient(circle at 90% 0%, rgba(223, 163, 58, .14), transparent 26%),
    linear-gradient(120deg, #e7f1ff 0%, #efedff 58%, #fff8e9 100%) !important;
  box-shadow: 0 17px 40px rgba(41, 82, 139, .13);
}

body:has(> .shell > .side .admin) .top h1 {
  color: #123d73;
}

body:has(> .shell > .side .admin) .stat {
  border: 1px solid #d9e5f4 !important;
  background: linear-gradient(145deg, #fff, #eef5ff);
  box-shadow: 0 13px 30px rgba(41, 82, 139, .1) !important;
}

body:has(> .shell > .side .admin) .stat:nth-child(2) {
  background: linear-gradient(145deg, #fff, #f1eeff);
}

body:has(> .shell > .side .admin) .stat:nth-child(3) {
  background: linear-gradient(145deg, #fff, #eef9f7);
}

body:has(> .shell > .side .admin) .stat:nth-child(4) {
  background: linear-gradient(145deg, #fff, #fff7e7);
}

body:has(> .shell > .side .admin) .stat b {
  color: #2466b2;
}

body:has(> .shell > .side .admin) .stat.alert b {
  color: #b57818;
}

body:has(> .shell > .side .admin) .tabs {
  border-color: #d8e5f5;
  background: rgba(239, 245, 255, .91);
}

body:has(> .shell > .side .admin) .tab.active {
  border-color: var(--admin-primary);
  background: linear-gradient(110deg, var(--admin-primary), var(--admin-secondary));
  color: #fff;
  box-shadow: 0 8px 19px rgba(63, 83, 181, .25);
}

body:has(> .shell > .side .admin) .table-card {
  border-color: #d8e5f4 !important;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 16px 38px rgba(41, 82, 139, .1) !important;
}

body:has(> .shell > .side .admin) .table-head {
  background: linear-gradient(90deg, #edf5ff, #fff9ec);
}

body:has(> .shell > .side .admin) .approve,
body:has(> .shell > .side .admin) .access-tools button,
body:has(> .shell > .side .admin) .access-form button {
  background: linear-gradient(110deg, var(--admin-primary), var(--admin-secondary));
}

.admin-mobile-menu,
.admin-mobile-backdrop {
  display: none;
}

@media (max-width: 850px) {
  body:has(> .shell > .side .admin) .admin-mobile-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-height: 44px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid #cfddf0;
    border-radius: 12px;
    background: #fff;
    color: #123d73;
    font-weight: 800;
    cursor: pointer;
  }

  body:has(> .shell > .side .admin) .side {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 140;
    width: min(84vw, 310px);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  html[dir="rtl"] body:has(> .shell > .side .admin) .side {
    inset: 0 0 0 auto;
    transform: translateX(105%);
  }

  body:has(> .shell > .side .admin) .side.admin-mobile-open {
    transform: translateX(0);
  }

  body:has(> .shell > .side .admin) .admin-mobile-backdrop.admin-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(7, 20, 38, .55);
  }

  body.admin-mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .employer-dashboard .top {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-dashboard .side a,
  .candidate-dashboard .job,
  .employer-dashboard .side a,
  .employer-dashboard .candidate,
  .employer-dashboard .quick a {
    transition: none;
  }
}
