:root {
  color-scheme: light;
  --ink: #142339;
  --muted: #6e7c8e;
  --line: #dce3ea;
  --blue: #1d62c9;
  --blue-dark: #164a9a;
  --green-bg: #e9f7ef;
  --green-accent: #43a871;
  --blue-bg: #eaf2fb;
  --blue-accent: #4a89d0;
  --orange-bg: #fff2e6;
  --orange-accent: #e99749;
  --red-bg: #fce9e6;
  --red-accent: #db6a5d;
  font-family: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f6f8fa;
  color: var(--ink);
}

input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
select {
  font: inherit;
}

button {
  color: inherit;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(105, 168, 216, 0.2), transparent 32%),
    linear-gradient(145deg, #eef3f8, #dfe8f1);
}

.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(199, 211, 223, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 65px rgba(28, 52, 79, 0.18);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand h1 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.login-brand h1 span {
  color: var(--blue);
}

.login-intro {
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#login-form {
  display: grid;
  gap: 15px;
}

#login-form label {
  display: grid;
  gap: 6px;
  color: #4d5e72;
  font-size: 12px;
  font-weight: 700;
}

#login-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ced9e4;
  border-radius: 8px;
  outline: none;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 14px;
}

#login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 201, 0.13);
}

.login-error {
  min-height: 18px;
  margin: -3px 0 0;
  color: #b73535;
  font-size: 12px;
  font-weight: 600;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #ffffff;
  color: #2f3f57;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 22, 38, 0.06);
}

#microsoft-login-button {
  transition: box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease;
}

#microsoft-login-button:hover {
  border-color: #bcc8d8;
  box-shadow: 0 4px 12px rgba(15, 22, 38, 0.12);
  transform: translateY(-1px);
}

#microsoft-login-button:focus-visible {
  outline: none;
  border-color: #0f6cbd;
  box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.2);
}

.microsoft-login-label {
  font-size: 14px;
  line-height: 1;
}

.microsoft-logo {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.microsoft-logo-red {
  background: #f35325;
}

.microsoft-logo-green {
  background: #81bc06;
}

.microsoft-logo-blue {
  background: #05a6f0;
}

.microsoft-logo-yellow {
  background: #ffba08;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.demo-accounts {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dce4ec;
  background: #f4f7fb;
  color: #55687d;
  font-size: 11px;
}

.demo-accounts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.demo-accounts-header strong {
  color: #2b3e54;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-password-hint {
  color: #486581;
  font-size: 11px;
}

.demo-password-hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #e2e9f0;
  color: #1a365d;
  font-weight: 700;
}

.demo-accounts-sub {
  margin: 0 0 4px;
  color: #7b8e9f;
  font-size: 10px;
}

.demo-accounts-list {
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 2px;
}

.demo-account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: white;
  color: #334e68;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: all 120ms ease;
}

.demo-account-item:hover,
.demo-account-item:focus-visible {
  border-color: #90b8e2;
  background: #edf5fe;
  color: #124c8c;
}

.demo-account-item code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f0f4f8;
  color: #243b53;
  font-size: 10px;
  font-weight: 700;
}

.scene {
  min-height: 100vh;
  background: #f6f8fa;
}

.tablet {
  width: 100%;
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
  background: #f6f8fa;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
  width: 42px;
  height: 42px;
  padding: 6px;
  border-radius: 10px;
  background: #122c55;
  box-shadow: 0 5px 12px rgba(18, 44, 85, 0.22);
}

.brand-mark span {
  border-radius: 2px;
  background: #60b5ed;
}

.brand-mark span:nth-child(-n + 3) {
  background: #71c28e;
}

.brand-mark span:nth-child(n + 7) {
  background: #f0a257;
}

.eyebrow {
  margin: 0 0 3px;
  color: #748296;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.brand h1 {
  margin-bottom: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand h1 span {
  color: var(--blue);
}

.review-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-align: right;
}

.review-status strong {
  font-size: 12px;
}

.review-status p {
  margin: 2px 0 0;
  color: var(--muted);
}

.review-status p span {
  color: #bc722f;
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 50%;
  background: #ef9b42;
  box-shadow: 0 0 0 3px #fff0dc;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.user-menu > div {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.user-menu strong {
  font-size: 11px;
}

.user-menu small {
  max-width: 210px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu button {
  padding: 7px 9px;
  border: 1px solid #d5dfe8;
  border-radius: 7px;
  background: white;
  color: #4d6076;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.user-menu button:hover {
  border-color: #9eb6cf;
  background: #f6f9fc;
}

.access-control-shortcut {
  margin-top: 1px;
  padding: 3px 7px;
  border-radius: 999px;
  border-color: #c9daee;
  background: #f4f8ff;
  color: #2f5f9e;
  font-size: 9px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.access-control-shortcut:hover {
  border-color: #8fb0d8;
  background: #e9f1ff;
}

.primary-nav {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.primary-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px 11px;
  border: 0;
  background: transparent;
  color: #66758a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-nav button:hover {
  color: var(--blue);
}

.primary-nav .nav-icon {
  flex: none;
  opacity: 0.85;
}

.primary-nav button[aria-current="page"] .nav-icon {
  opacity: 1;
}

.primary-nav button[aria-current="page"] {
  color: var(--blue);
}

.primary-nav button[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}

.primary-nav button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.nav-badge {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e6edf6;
  color: #546577;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-view,
.employee-list-view,
.org-chart-view,
.welcome-view,
.admin-view {
  min-height: calc(100vh - 122px);
  padding: 24px 28px 32px;
}

.welcome-card {
  max-width: 560px;
  padding: 24px;
  border: 1px solid #d5e2ef;
  border-radius: 16px;
  background: #f9fbff;
}

.welcome-card h2 {
  margin: 6px 0 10px;
}

.welcome-card p {
  margin: 0 0 10px;
  color: #4a5b71;
}

.admin-layout {
  display: block;
}

.admin-heading {
  align-items: center;
  gap: 20px;
}

.admin-heading p {
  max-width: 620px;
}

.admin-add-user-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #1f6cd6, #2d86ff);
  box-shadow: 0 8px 18px rgba(31, 108, 214, 0.26);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.admin-add-user-button span {
  font-size: 18px;
  line-height: 1;
}

.admin-add-user-button:hover {
  filter: brightness(1.06);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-dealership-filter {
  flex-wrap: nowrap;
  margin: 0 0 20px;
}

.admin-dealership-filter .dealership-option {
  position: relative;
  flex: 0 0 112px;
}

.admin-filter-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  padding: 2px 4px;
  border-radius: 8px;
  background: #e3ebf7;
  color: #45607f;
  font-size: 9px;
  font-weight: 700;
}

.admin-status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-status-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d4dfeb;
  border-radius: 999px;
  background: #ffffff;
  color: #34506f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.admin-status-option strong {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3f9;
  color: #34506f;
  font-size: 11px;
  text-align: center;
}

.admin-status-option:hover {
  border-color: #9fbde3;
}

.admin-status-option[aria-checked="true"] {
  border-color: #1f6cd6;
  background: #1f6cd6;
  color: #ffffff;
}

.admin-status-option[aria-checked="true"] strong {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.admin-status-option.is-pending:not([aria-checked="true"]) strong {
  background: #fff1dc;
  color: #9a5b00;
}

.admin-search input {
  width: min(340px, 100%);
  min-height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%237a8ca3' d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat 11px center;
  color: #20344f;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-search input:focus {
  outline: none;
  border-color: #2f77de;
  box-shadow: 0 0 0 3px rgba(47, 119, 222, 0.16);
}

.admin-users-panel {
  padding: 0;
  border: 1px solid #d7e3f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 45, 89, 0.06);
  overflow: hidden;
}

.admin-user-cards {
  display: grid;
}

.admin-empty {
  margin: 0;
  padding: 28px;
  color: #5e7189;
  font-size: 13px;
  text-align: center;
}

.admin-user-card {
  border-bottom: 1px solid #e3eaf3;
  border-left: 3px solid transparent;
  background: #ffffff;
  transition: background 150ms ease, border-color 150ms ease;
}

.admin-user-card:last-child {
  border-bottom: 0;
}

.admin-user-card.is-expanded {
  border-left-color: #1f6cd6;
  background: #fbfdff;
}

.admin-user-card.is-new {
  border-left-color: #1a8f5a;
  background: #f5fcf8;
}

.admin-user-header {
  display: flex;
  align-items: center;
}

.admin-user-header > .admin-user-summary {
  flex: 1;
  min-width: 0;
}

.admin-user-quick-delete {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-right: 14px;
  padding: 0;
  border: 1px solid #efc7c2;
  border-radius: 8px;
  background: #fff6f5;
  color: #9c2f26;
  cursor: pointer;
}

.admin-user-quick-delete:hover,
.admin-user-quick-delete:focus-visible {
  border-color: #e79f98;
  background: #ffeceb;
}

.admin-user-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-user-summary:disabled {
  cursor: default;
}

.admin-user-summary:not(:disabled):hover {
  background: #f4f8fd;
}

.admin-user-summary-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5eefb;
  color: #1f5fb8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.admin-user-card[data-status="invited"] .admin-user-avatar {
  background: #efe9fb;
  color: #5b3fa6;
}

.admin-user-card[data-status="pending"] .admin-user-avatar {
  background: #fff1dc;
  color: #9a5b00;
}

.admin-user-card.is-new .admin-user-avatar {
  background: #1a8f5a;
  color: #ffffff;
  font-size: 20px;
}

.admin-user-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-user-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-user-summary strong {
  display: block;
  color: #14253a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-user-summary span {
  font-size: 12px;
  color: #5e7189;
}

.admin-user-identity strong,
.admin-user-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-employee-context {
  order: 3;
  color: #2a4d7f;
  font-weight: 600;
}

.admin-user-identity .admin-user-employee-context {
  font-size: 11px;
}

.admin-user-summary-end {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.admin-user-summary .admin-user-meta {
  color: #7a8ca3;
  font-size: 11px;
}

.admin-user-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eef3f9;
  color: #5f7391;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease;
}

.admin-user-summary[aria-expanded="true"] .admin-user-toggle {
  transform: rotate(180deg);
}

.admin-user-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-badges span {
  padding: 2px 8px;
  border: 1px solid #d3e2f5;
  border-radius: 999px;
  background: #edf4ff;
  color: #2a4d7f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-user-badges .admin-status-badge.is-active {
  border-color: #bfe5cf;
  background: #eaf8f0;
  color: #17744a;
}

.admin-user-badges .admin-status-badge.is-invited {
  border-color: #d9cdf3;
  background: #f3effc;
  color: #5b3fa6;
}

.admin-user-badges .admin-status-badge.is-pending {
  border-color: #f3d4a4;
  background: #fff5e6;
  color: #9a5b00;
}

.admin-user-badges .admin-role-badge.is-master {
  border-color: #1f3a5c;
  background: #1f3a5c;
  color: #ffffff;
}

.admin-user-badges .admin-role-badge.is-hradmin {
  border-color: #6d4bb5;
  background: #f1ebfb;
  color: #4b2d8a;
}

.admin-readonly-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f7f9;
  color: #5b6675;
  font-size: 0.85rem;
}

.admin-user-badges .admin-role-badge.is-none {
  border-color: #e0e5ec;
  background: #f4f6f9;
  color: #6b7a8d;
}

.admin-user-summary:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.24);
  outline-offset: -3px;
}

.admin-user-body {
  display: grid;
  gap: 16px;
  padding: 4px 18px 18px 68px;
}

.admin-user-body[hidden] {
  display: none;
}

.admin-new-user-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-field {
  display: grid;
  gap: 7px;
  color: #5f7085;
}

.admin-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-field > span em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-department-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-department-heading img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.admin-field select,
.admin-field input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #ffffff;
  color: #20344f;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.admin-field > select {
  width: min(320px, 100%);
  min-width: 0;
}

.admin-field select:focus,
.admin-field input:focus {
  outline: none;
  border-color: #2f77de;
  box-shadow: 0 0 0 3px rgba(47, 119, 222, 0.16);
}

.admin-field select[multiple] {
  min-height: 110px;
}

.admin-scoped-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.admin-scoped-departments .admin-field {
  padding: 10px;
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  background: #ffffff;
}

.admin-dealership-picker,
.admin-department-picker {
  margin-top: 2px;
}

.admin-view .dealership-picker {
  padding: 10px;
  border: 1px solid #d4e0ed;
  border-radius: 12px;
  background: #f6f9ff;
}

.admin-view .dealership-option {
  border-radius: 12px;
}

.admin-dealership-option[aria-pressed="true"] {
  border-color: #2f77de;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(33, 96, 189, 0.18);
}

.admin-view .department-picker {
  gap: 8px;
  padding: 8px;
  border: 1px solid #d4dfeb;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-view .department-option {
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 11px;
}

.admin-department-option[aria-pressed="true"] {
  border-color: #2f77de;
  background: #2f77de;
  color: #ffffff;
}

.admin-editor-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5fa;
  color: #4d6179;
  font-size: 12px;
}

.admin-user-body .dialog-error:empty {
  display: none;
}

.admin-user-body .dialog-save {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #1f6cd6, #2d86ff);
  box-shadow: 0 8px 18px rgba(31, 108, 214, 0.24);
}

.admin-user-card.is-new .dialog-save {
  background: linear-gradient(90deg, #17804f, #1fa467);
  box-shadow: 0 8px 18px rgba(23, 128, 79, 0.24);
}

.admin-user-actions {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #e3eaf3;
}

.admin-user-actions .admin-delete-user {
  margin-right: auto;
  border-color: #efc7c2;
  color: #9c2f26;
  background: #fff6f5;
}

.admin-user-actions .admin-delete-user:hover {
  border-color: #e79f98;
  background: #ffeceb;
}

.admin-user-actions .admin-delete-user:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.admin-user-body .dialog-save:hover {
  filter: brightness(1.05);
}

/* Access Control: friendlier editor */
.admin-user-summary .admin-user-access-summary {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3d5877;
  font-size: 11.5px;
  font-weight: 600;
}

.admin-user-summary .admin-user-access-summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
  background: #2f77de;
}

.admin-user-summary .admin-user-access-summary.is-none::before {
  background: #c3ccd8;
}

.admin-user-summary .admin-user-access-summary.is-none {
  color: #8292a6;
}

.admin-user-summary .admin-user-access-summary.is-master::before {
  background: #1f3a5c;
}

.admin-user-summary .admin-user-access-summary.is-hradmin::before {
  background: #6d4bb5;
}

.admin-user-body {
  counter-reset: admin-step;
}

.admin-step > span:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #1c3150;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-step > span:first-child::before {
  counter-increment: admin-step;
  content: counter(admin-step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1f6cd6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.admin-step > span:first-child em {
  color: #7a8ca3;
  font-size: 12px;
}

.admin-role-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-role-option {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #d4dfeb;
  border-radius: 12px;
  background: #ffffff;
  color: #1c3150;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.admin-role-option::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid #b7c6d8;
  border-radius: 999px;
  background: #ffffff;
  box-sizing: border-box;
}

.admin-role-option strong {
  font-size: 13px;
  font-weight: 700;
}

.admin-role-option small {
  color: #62758d;
  font-size: 11.5px;
  line-height: 1.4;
}

.admin-role-option:hover:not(:disabled) {
  border-color: #9fbde3;
  background: #f7faff;
}

.admin-role-option[aria-checked="true"] {
  border-color: #1f6cd6;
  background: #f1f7ff;
  box-shadow: 0 0 0 3px rgba(31, 108, 214, 0.12);
}

.admin-role-option[aria-checked="true"]::before {
  border: 5px solid #1f6cd6;
}

.admin-role-option.is-none[aria-checked="true"] {
  border-color: #8a97a8;
  background: #f6f8fa;
  box-shadow: 0 0 0 3px rgba(110, 125, 145, 0.12);
}

.admin-role-option.is-none[aria-checked="true"]::before {
  border-color: #8a97a8;
}

.admin-role-option.is-hradmin[aria-checked="true"] {
  border-color: #6d4bb5;
  background: #f6f2fd;
  box-shadow: 0 0 0 3px rgba(109, 75, 181, 0.12);
}

.admin-role-option.is-hradmin[aria-checked="true"]::before {
  border-color: #6d4bb5;
}

.admin-role-option:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.admin-role-option:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.3);
  outline-offset: 2px;
}

.admin-view .admin-dealership-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  overflow: visible;
}

.admin-view .admin-dealership-picker .dealership-option {
  min-width: 0;
}

.admin-user-actions-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.admin-unsaved-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9a5b00;
  font-size: 12px;
  font-weight: 700;
}

.admin-unsaved-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f0a020;
}

.admin-discard-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #ffffff;
  color: #34506f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-discard-button:hover {
  background: #f4f8fd;
}

.admin-user-body .dialog-save:disabled {
  background: #c9d6e6;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.admin-user-card.is-dirty {
  border-left-color: #f0a020;
}

@media (max-width: 720px) {
  .admin-user-body {
    padding-left: 18px;
  }

  .admin-new-user-fields {
    grid-template-columns: 1fr;
  }

  .admin-user-summary .admin-user-meta {
    display: none;
  }
}
.view-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.view-heading h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.view-heading > p {
  margin: 0 0 5px;
  color: #637891;
  font-size: 12px;
}

.org-chart-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.org-chart-actions button {
  border: 1px solid #2b4058;
  background: #2b4058;
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
}

.org-chart-actions button:disabled {
  opacity: 0.45;
}

.org-chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-chart-filter-row {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.org-chart-filter-row .org-chart-actions {
  margin-left: auto;
  padding-bottom: 5px;
}

.org-chart-actions .org-chart-secondary-action {
  background: #ffffff;
  color: #2b4058;
}

.org-chart-actions .org-chart-secondary-action[aria-pressed="true"] {
  background: #e8f0fb;
  border-color: #1d62c9;
  color: #1d62c9;
}

#org-chart-salary-access {
  position: relative;
}

.salary-access-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #d93a3a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(217, 58, 58, 0.35);
  box-sizing: content-box;
}

.salary-access-badge[hidden] {
  display: none;
}

.org-chart-filters label {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.org-chart-filters label > span {
  color: #66758a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.org-chart-filters select {
  padding: 9px 11px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #ffffff;
  color: #2b4058;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.org-chart-board {
  display: grid;
  gap: 18px;
}

.org-chart-editor {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.org-chart-editor.is-pool-hidden {
  grid-template-columns: 40px minmax(0, 1fr);
}

.org-chart-editor.is-pool-hidden > .org-chart-pool {
  padding: 6px 4px;
  overflow: hidden;
}

.org-chart-editor.is-pool-hidden > .org-chart-pool > :not(.org-chart-pool-rail),
.org-chart-editor:not(.is-pool-hidden) > .org-chart-pool > .org-chart-pool-rail {
  display: none;
}

.org-chart-pool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.org-chart-pool-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #cbd6e2;
  border-radius: 7px;
  background: #ffffff;
  color: #2b4058;
  cursor: pointer;
}

.org-chart-pool-toggle:hover,
.org-chart-pool-toggle:focus-visible {
  border-color: #1d62c9;
  background: #e8f0fb;
  color: #1d62c9;
}

.org-chart-pool-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 160px;
  padding: 8px 0;
  border-color: transparent;
}

.org-chart-pool-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.org-chart-pool {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 220px);
  border: 1px solid #c7d2df;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  overflow-y: auto;
}

.org-chart-pool h4 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  color: #223142;
  letter-spacing: 0.06em;
}

.org-chart-pool-search {
  padding: 7px 9px;
  border: 1px solid #cbd6e2;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
}

.org-chart-pool.is-drop-target,
.org-chart-department.is-drop-target,
.org-box.is-drop-target,
.org-chart-top-drop.is-drop-target {
  box-shadow: 0 0 0 2px #1d62c9;
  background: #eef5ff;
}

.org-chart-canvas {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d5dde7;
  border-radius: 10px;
  background: #f6f8fb;
}

.org-chart-canvas-hint {
  margin: 0;
  color: #5d6e82;
  font-size: 11px;
}

.org-chart-top-drop {
  padding: 10px;
  border: 1px dashed #9fb0c4;
  border-radius: 8px;
  color: #5d6e82;
  font-size: 11px;
  text-align: center;
}

.org-tree {
  overflow-x: auto;
  padding-bottom: 8px;
}

.org-level {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
}

.org-tree > .org-level {
  width: max-content;
  min-width: 100%;
  padding-top: 0;
}

.org-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px 0;
}

.org-node::before,
.org-node::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 22px;
  border-top: 1px solid #49505a;
}

.org-node::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #49505a;
}

.org-node:only-child::before,
.org-node:only-child::after,
.org-tree > .org-level > .org-node::before,
.org-tree > .org-level > .org-node::after {
  display: none;
}

.org-node:only-child,
.org-tree > .org-level > .org-node {
  padding-top: 0;
}

.org-node:first-child::before,
.org-node:last-child::after {
  border: 0 none;
}

.org-node:last-child::before {
  border-right: 1px solid #49505a;
}

.org-level .org-level::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  border-left: 1px solid #49505a;
}

.org-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 220px;
  padding: 10px;
  border: 1px solid #9ca3ad;
  border-top: 4px solid #2b4058;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(30, 45, 65, 0.08);
}

.org-box.is-dragging {
  opacity: 0.5;
}

.org-box.is-context {
  border-top-color: #9fb0c4;
  background: #f4f6f9;
  opacity: 0.6;
}

.org-box.is-context:hover {
  opacity: 1;
}

.org-box-department {
  justify-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3ecf8;
  color: #1d4f99;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.org-box-department.is-auto {
  background: #eef1f5;
  color: #5d6e82;
}

.org-box-header {
  display: flex;
  gap: 6px;
  align-items: center;
}

.org-box-handle {
  color: #7a8899;
  font-size: 16px;
  line-height: 1;
  cursor: grab;
  user-select: none;
}

.org-box-edit {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #7a8899;
  cursor: pointer;
}

.org-box-edit:hover,
.org-box-edit.is-active {
  border-color: #b9c7d8;
  background: #e8f0fb;
  color: #1d62c9;
}

.org-box-reports-to[hidden] {
  display: none;
}

.org-box-direct-reports {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef3f9;
  color: #4a5d73;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.org-box-direct-reports strong {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #2b4058;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0;
  text-align: center;
}

.org-box-direct-reports.is-empty strong {
  background: #b9c4d1;
}

.org-box-title {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #111923;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.org-box-title:hover:not(:disabled),
.org-box-title:focus {
  border-color: #c8d1db;
  background: #ffffff;
}

.org-box-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.org-box-reports-to {
  grid-column: 1 / -1;
  padding: 5px 6px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2b4058;
  font: inherit;
  font-size: 11px;
}

.org-box-add-child,
.org-box-delete {
  padding: 5px 8px;
  border: 1px solid #c4ccd7;
  border-radius: 6px;
  background: #f5f7fa;
  color: #2b4058;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.org-box-add-child {
  border-color: #2b4058;
  background: #2b4058;
  color: #ffffff;
}

.org-box-delete:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.org-chart-empty {
  margin: 0;
  padding: 20px;
  border: 1px solid #9ca3ad;
  background: #ffffff;
  color: #4f5e70;
  font-weight: 600;
  text-align: center;
}

.org-chart-dealership {
  position: relative;
  display: grid;
  gap: 20px;
  padding-top: 4px;
  border-top: 1px solid #c8d1db;
}

.org-chart-root-card {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 20px 10px;
  border: 1px solid #8f98a4;
  background: #c7d3e6;
  text-align: center;
}

.org-chart-root-card::after {
  content: "";
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: 1px;
  height: 28px;
  background: #49505a;
  transform: translateX(-50%);
}

.org-chart-root-role {
  margin: 0;
  color: #12181f;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.org-chart-root-name {
  margin: 0;
  color: #1f2a36;
  font-size: 19px;
}

.org-chart-root-meta {
  margin: 0;
  color: #1f2a36;
  font-size: 17px;
}

.org-chart-root-count {
  color: #111923;
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
}

.org-chart-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.org-chart-department {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 210px;
  padding: 12px 16px;
  border: 1px solid #9ca3ad;
  background: #ffffff;
  text-align: center;
}

.org-chart-box-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.org-chart-box-title {
  width: 100%;
  border: 1px solid #c8d1db;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.org-chart-box-delete {
  border: 1px solid #c4ccd7;
  background: #f5f7fa;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: #3a4d61;
}

.org-chart-department h4 {
  margin: 0;
  color: #111923;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.org-chart-department-meta {
  margin: 0;
  color: #222e3b;
  font-size: 17px;
}

.org-chart-department-count {
  color: #111923;
  font-size: 33px;
  font-weight: 800;
  line-height: 1;
}

.org-chart-employee-list {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.org-chart-employee {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 6px;
  border: 1px solid #d3d8de;
  background: #f8f9fb;
  cursor: grab;
}

.org-chart-employee-empty {
  color: #5d6e82;
  font-size: 11px;
  cursor: default;
}

.org-chart-employee strong {
  color: #1b2838;
  font-size: 13px;
}

.org-chart-employee span {
  color: #536274;
  font-size: 11px;
}

.org-chart-employee span.org-chart-employee-dealership {
  color: #1f5f99;
  font-size: 10px;
  font-weight: 600;
}

.org-box-employees {
  gap: 4px;
}

.org-box-employees .org-chart-employee {
  justify-items: start;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid #dde3ea;
  border-left: 3px solid #1d62c9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(30, 45, 65, 0.06);
  text-align: left;
}

.org-box-employees .org-chart-employee strong {
  font-size: 12px;
  text-transform: none;
}

.org-box-employees .org-chart-employee span {
  font-size: 10px;
}

.org-box-employees .org-chart-employee-empty {
  justify-items: center;
  border: 1px dashed #c3ccd7;
  border-left: 1px dashed #c3ccd7;
  background: #f8f9fb;
  box-shadow: none;
  text-align: center;
}

.org-box-toggle-item {
  list-style: none;
}

.org-chart-employee.has-salary > .org-salary,
.org-chart-employee.has-salary > .org-salary-editor {
  animation: org-salary-expand 180ms ease-out;
}

@keyframes org-salary-expand {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.org-chart-employee .org-salary {
  justify-self: start;
  margin-top: 3px;
  padding: 2px 7px;
  border: 1px solid #cfd9e5;
  border-radius: 999px;
  background: #f4f7fb;
  color: #2b4058;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.org-chart-employee .org-salary.is-masked {
  color: #7a8899;
  letter-spacing: 0.08em;
}

.org-chart-employee .org-salary.is-revealed {
  border-color: #9fd3b4;
  background: #eaf7ef;
  color: #17603a;
}

.org-chart-employee .org-salary.is-empty {
  border-style: dashed;
  background: #ffffff;
  color: #7a8899;
}

.org-chart-employee span.org-salary {
  cursor: default;
}

.org-salary-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 4px;
}

.org-salary-editor input,
.org-salary-editor select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 3px 5px;
  border: 1px solid #b9c7d8;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
}

.org-salary-editor input {
  grid-column: 1 / -1;
}

.org-salary-editor button {
  padding: 3px 7px;
  border: 1px solid #2b4058;
  border-radius: 5px;
  background: #2b4058;
  color: #ffffff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.org-salary-editor .org-salary-cancel {
  border-color: #cbd6e2;
  background: #ffffff;
  color: #2b4058;
}

.salary-access-dialog {
  width: min(600px, calc(100% - 32px));
  overflow: hidden;
}

.salary-access-content {
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 48px));
}

.salary-access-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #1f3550 0%, #2b4a70 100%);
  color: #ffffff;
}

.salary-access-lock {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffd98a;
}

.salary-access-title {
  flex: 1;
  min-width: 0;
}

.salary-access-title .eyebrow {
  margin: 0 0 2px;
  color: #ffd98a;
}

.salary-access-title h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 21px;
}

.salary-access-header .dialog-close {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.salary-access-header .dialog-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.salary-access-body {
  display: grid;
  gap: 18px;
  padding: 20px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d2df transparent;
}

.salary-access-intro {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e3e9f1;
  border-radius: 10px;
  background: #f7f9fc;
  color: #53657a;
  font-size: 12px;
  line-height: 1.45;
}

.salary-access-intro span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.salary-level-pill {
  display: inline-block;
  min-width: 58px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.salary-level-pill.is-view {
  background: #e3eefc;
  color: #1d62c9;
}

.salary-level-pill.is-manage {
  background: #fff1d6;
  color: #9a5b00;
}

.salary-access-section {
  display: grid;
  gap: 8px;
}

.salary-access-subheading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #66758a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.salary-access-subheading small {
  color: #93a1b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.salary-audit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.salary-audit-heading .salary-access-subheading {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.salary-audit-filter {
  width: 190px;
  min-width: 0;
  max-width: 50%;
  padding: 6px 9px;
  border: 1px solid #cbd6e2;
  border-radius: 7px;
  background: #ffffff;
  color: #2b4058;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.salary-audit-filter:focus {
  border-color: #1d62c9;
  outline: 2px solid rgba(29, 98, 201, 0.18);
}

.salary-access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 8px;
}

.salary-access-form input,
.salary-access-form select,
.salary-access-level {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.salary-access-form input:focus,
.salary-access-form select:focus,
.salary-access-level:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(29, 98, 201, 0.15);
}

.salary-access-grant {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.salary-access-grant:hover {
  filter: brightness(1.08);
}

.salary-access-section .dialog-error:empty {
  display: none;
}

.salary-access-list,
.salary-audit-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.salary-access-list {
  border: 1px solid #e3e9f1;
  border-radius: 10px;
}

.salary-access-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 110px 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.salary-access-row + .salary-access-row {
  border-top: 1px solid #eef2f6;
}

.salary-access-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e3eefc;
  color: #1d62c9;
  font-size: 12px;
  font-weight: 800;
}

.salary-access-avatar.is-manage {
  background: #fff1d6;
  color: #9a5b00;
}

.salary-access-who {
  display: grid;
  min-width: 0;
}

.salary-access-identity {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-access-who small {
  overflow: hidden;
  color: #8290a3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-access-level {
  height: 32px;
}

.salary-access-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8290a3;
  cursor: pointer;
}

.salary-access-remove:hover {
  border-color: #f3c4c4;
  background: #fdf0f0;
  color: #c0392b;
}

.salary-access-empty,
.salary-audit-empty {
  padding: 14px;
  color: #8290a3;
  font-size: 12px;
  text-align: center;
}

.salary-audit-list {
  gap: 0;
  padding-left: 4px;
}

.salary-audit-item {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 7px 8px 7px 22px;
}

.salary-audit-item::before {
  position: absolute;
  top: 12px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d62c9;
  content: "";
}

.salary-audit-item::after {
  position: absolute;
  top: 24px;
  bottom: -8px;
  left: 7px;
  width: 2px;
  background: #e3e9f1;
  content: "";
}

.salary-audit-item:last-child::after {
  display: none;
}

.salary-audit-item.is-change::before {
  background: #1f9d55;
}

.salary-audit-item.is-access::before {
  background: #d08a00;
}

.salary-audit-item.is-denied::before {
  background: #c0392b;
}

.salary-audit-item p {
  margin: 0;
  color: #34465c;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.salary-audit-item strong {
  color: var(--ink);
}

.salary-audit-item time {
  color: #93a1b3;
  font-size: 10px;
}

.salary-access-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid #eef2f6;
  background: #fafbfd;
}

.salary-access-footer button {
  padding: 9px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 520px) {
  .salary-access-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .salary-access-form input {
    grid-column: 1 / -1;
  }

  .salary-access-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .salary-access-level {
    grid-column: 2;
  }
}

.org-box-toggle {
  width: 100%;
  padding: 5px 8px;
  border: 1px dashed #b9c7d8;
  border-radius: 6px;
  background: #f4f7fb;
  color: #1d62c9;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.org-box-toggle:hover {
  background: #e8f0fb;
}

.employee-list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.employee-list-category-filter-field {
  display: grid;
  justify-items: end;
  gap: 5px;
  margin-left: auto;
}

.employee-list-category-picker {
  display: flex;
  overflow: hidden;
  border: 1px solid #d5dfe8;
  border-radius: 8px;
  background: #f7f9fc;
}

.employee-list-category-group {
  min-width: 74px;
  padding: 9px 14px;
  border: 0;
  border-right: 1px solid #d5dfe8;
  background: transparent;
  color: #526277;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.employee-list-category-group:last-child {
  border-right: 0;
}

.employee-list-category-group[data-category-group="all"] {
  --employee-list-group-color: #1d62c9;
}

.employee-list-category-group[data-category-group="green"] {
  --employee-list-group-color: #69c77e;
}

.employee-list-category-group[data-category-group="blue"] {
  --employee-list-group-color: #69a8d8;
}

.employee-list-category-group[data-category-group="orange"] {
  --employee-list-group-color: #f3ad48;
}

.employee-list-category-group[data-category-group="uncategorized"] {
  --employee-list-group-color: #dfe6ee;
}

.employee-list-category-group:hover {
  background: #eaf2fb;
}

.employee-list-category-group[aria-checked="true"] {
  background: var(--employee-list-group-color);
  color: #24354a;
}

.employee-list-category-group[data-category-group="all"][aria-checked="true"] {
  color: white;
}

.employee-list-category-group:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(29, 98, 201, 0.22);
  outline-offset: -3px;
}

.employee-list-category-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 500px;
}

.employee-list-category-options[hidden] {
  display: none;
}

.employee-list-category-options button {
  padding: 6px 9px;
  border: 1px solid #cbd6e2;
  border-radius: 999px;
  background: white;
  color: #526277;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.employee-list-category-options button[aria-pressed="true"] {
  border-color: var(--employee-list-category-color);
  background: var(--employee-list-category-color);
  color: #24354a;
}

.employee-list-category-options button:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.22);
  outline-offset: 1px;
}

.employee-list-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.employee-list-search {
  position: relative;
  display: block;
  flex: 0 1 520px;
  width: min(100%, 520px);
}

.employee-list-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #73849a;
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.employee-list-search input {
  width: 100%;
  padding: 10px 13px 10px 40px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  outline: none;
  background: white;
  color: #22364e;
  font: inherit;
  font-size: 12px;
}

.employee-list-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 201, 0.12);
}

.dashboard-filter-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 16px rgba(31, 54, 79, 0.05);
}

.dashboard-filter-secondary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-filter-bar label {
  display: grid;
  gap: 6px;
}

.dashboard-filter-bar label > span {
  color: #66758a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-position-filter {
  width: min(280px, 100%);
}

.dashboard-position-filter select {
  width: 100%;
  min-width: 0;
  background: #f8fafc;
  font-weight: 700;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-distribution {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 16px rgba(31, 54, 79, 0.05);
}

.dashboard-distribution-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-distribution-summary > strong {
  color: #2b4058;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#dashboard-distribution-ratios {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-distribution-ratio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #40546a;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-distribution-ratio::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--distribution-color);
  content: "";
}

.dashboard-distribution-ratio--green {
  --distribution-color: #69c77e;
}

.dashboard-distribution-ratio--blue {
  --distribution-color: #69a8d8;
}

.dashboard-distribution-ratio--orange {
  --distribution-color: #ed7b59;
}

.dashboard-distribution-bar {
  display: flex;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.dashboard-distribution-bar span {
  min-width: 0;
  transition: width 180ms ease;
}

.dashboard-distribution-green {
  background: #69c77e;
}

.dashboard-distribution-blue {
  background: #69a8d8;
}

.dashboard-distribution-orange {
  background: #ed7b59;
}

.dashboard-benchmark {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0;
  color: #52657a;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-benchmark-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-benchmark-item::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--benchmark-color);
  content: "";
}

.dashboard-benchmark-item--green {
  --benchmark-color: #69c77e;
}

.dashboard-benchmark-item--blue {
  --benchmark-color: #69a8d8;
}

.dashboard-benchmark-item--orange {
  --benchmark-color: #ed7b59;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 16px rgba(31, 54, 79, 0.06);
}

.metric-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--metric-color);
  content: "";
}

.metric-card > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-card > span.has-color::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--metric-color);
  content: "";
}

.metric-card > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-card strong {
  color: #1f334b;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 27px;
}

.metric-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
  gap: 14px;
}

.dashboard-panel {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 16px rgba(31, 54, 79, 0.06);
}

.dashboard-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-panel-heading p {
  margin: 0 0 3px;
  color: #76869a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-panel-heading h2,
.dashboard-panel-heading h3 {
  margin: 0;
  color: #23374e;
  font-family: "Manrope", Arial, sans-serif;
}

.dashboard-panel-heading h2 {
  font-size: 18px;
}

.dashboard-panel-heading h3 {
  font-size: 14px;
}

.dashboard-panel-heading > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.dashboard-matrix-plot {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 38px;
  gap: 7px 8px;
}

.dashboard-talent-matrix {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-x-axis,
.dashboard-y-axis {
  position: relative;
  color: #596d84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-x-axis {
  grid-column: 2;
  grid-row: 2;
  border-top: 2px solid #7f91a5;
  text-align: center;
}

.dashboard-x-axis::after {
  position: absolute;
  top: -5px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid #7f91a5;
  border-right: 2px solid #7f91a5;
  content: "";
  transform: rotate(45deg);
}

.dashboard-x-axis strong {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.dashboard-y-axis {
  grid-column: 1;
  grid-row: 1;
  border-right: 2px solid #7f91a5;
}

.dashboard-y-axis::before {
  position: absolute;
  top: 0;
  right: -5px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #7f91a5;
  border-right: 2px solid #7f91a5;
  content: "";
  transform: rotate(-45deg);
}

.dashboard-y-axis strong {
  position: absolute;
  top: 50%;
  left: 8px;
  padding: 5px 8px;
  background: white;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.dashboard-x-axis-levels {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
}

.dashboard-y-axis-levels {
  position: absolute;
  top: 5px;
  right: 6px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.dashboard-talent-matrix button {
  display: grid;
  align-content: space-between;
  min-height: 115px;
  padding: 14px;
  border: 1px solid rgba(44, 67, 92, 0.14);
  border-top: 5px solid var(--dashboard-category-color);
  border-radius: 9px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    var(--dashboard-category-color);
  color: #25384f;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.dashboard-talent-matrix button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(31, 54, 79, 0.12);
}

.dashboard-talent-matrix button:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.24);
  outline-offset: 2px;
}

.dashboard-talent-matrix strong {
  max-width: 160px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-talent-matrix span {
  color: #53657a;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-insights {
  display: grid;
  gap: 14px;
}

.dashboard-watchlist {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-watchlist > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8edf2;
}

.dashboard-watchlist > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-watchlist strong {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  color: #2f445c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-watchlist span {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-watchlist-actions {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
}

.dashboard-watchlist-action {
  padding: 4px 7px;
  border: 1px solid #cbd7e3;
  border-radius: 6px;
  background: #f7f9fc;
  color: #31506f;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-watchlist-action:hover {
  border-color: #8eafd0;
  background: #edf4fb;
  color: #1d62c9;
}

.dashboard-watchlist-action:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.2);
  outline-offset: 1px;
}

.dashboard-watchlist-action--notes,
.dashboard-watchlist-action[data-watchlist-action="notes"] {
  border-color: #d7b936;
  background: #fff0a0;
  color: #604f00;
}

.dashboard-watchlist-action--notes:hover,
.dashboard-watchlist-action[data-watchlist-action="notes"]:hover {
  border-color: #b69500;
  background: #ffe678;
  color: #4b3d00;
}

.dashboard-watchlist-action--notes:focus-visible,
.dashboard-watchlist-action[data-watchlist-action="notes"]:focus-visible {
  border-color: #b69500;
  background: #ffe678;
  color: #4b3d00;
  outline: 3px solid rgba(182, 149, 0, 0.25);
}

.employee-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 16px rgba(31, 54, 79, 0.06);
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.employee-table th,
.employee-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebf0;
  text-align: left;
  white-space: nowrap;
}

.employee-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e3ebf4;
  color: #4a5f77;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-table tbody tr:nth-child(even) {
  background: #f6f8fb;
}

.employee-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.employee-table-sort::after {
  content: "\2195";
  color: #8b99aa;
  font-size: 12px;
  line-height: 1;
}

.employee-table th[aria-sort="ascending"] .employee-table-sort,
.employee-table th[aria-sort="descending"] .employee-table-sort {
  color: var(--blue);
}

.employee-table th[aria-sort="ascending"] .employee-table-sort::after {
  content: "\2191";
  color: var(--blue);
}

.employee-table th[aria-sort="descending"] .employee-table-sort::after {
  content: "\2193";
  color: var(--blue);
}

.employee-table-sort:hover,
.employee-table-sort:focus-visible {
  color: var(--blue);
}

.employee-table tbody tr:hover {
  background: #edf5ff;
}

.employee-table tbody tr:last-child td {
  border-bottom: 0;
}

.employee-table .employee-table-empty {
  padding: 28px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.employee-table-empty p {
  margin: 0;
}

.employee-list-empty-add {
  margin-top: 12px;
  padding: 8px 10px;
}

.employee-table td:first-child {
  color: #22364e;
  font-weight: 700;
}

.employee-list-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  color: #526277;
  font-size: 11px;
}

.employee-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  font-weight: 700;
}

.employee-page-size select {
  min-width: 72px;
  padding: 7px 28px 7px 9px;
  border: 1px solid #cbd6e2;
  border-radius: 7px;
  background: white;
  color: #2b4058;
  font: inherit;
  font-weight: 700;
}

#employee-page-summary {
  margin: 0;
  text-align: center;
}

.employee-page-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.employee-page-controls button {
  padding: 7px 11px;
  border: 1px solid #9ebce0;
  border-radius: 7px;
  background: #f0f6fd;
  color: #2362a9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.employee-page-controls button:hover:not(:disabled) {
  border-color: var(--blue);
  background: #e2effd;
}

.employee-page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#employee-page-number {
  min-width: 74px;
  color: #2b4058;
  font-weight: 700;
  text-align: center;
}

.employee-table td.employee-table-empty {
  text-align: center;
}

.category-pill {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 20px;
  background: var(--category-pill-color);
  color: #24354a;
  font-size: 10px;
  font-weight: 700;
}

.employee-list-edit,
.employee-list-log,
.employee-list-notes,
.employee-list-delete,
.add-employee-button {
  border: 1px solid #9ebce0;
  border-radius: 7px;
  background: #f0f6fd;
  color: #2362a9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.employee-list-edit,
.employee-list-log,
.employee-list-notes,
.employee-list-delete {
  padding: 6px 9px;
}

.employee-list-edit:hover,
.employee-list-log:hover,
.employee-list-notes:hover,
.add-employee-button:hover {
  border-color: var(--blue);
  background: #e2effd;
}

.employee-list-delete {
  border-color: #eab3b3;
  background: #fdf0f0;
  color: #b3261e;
}

.employee-table tbody td:last-child {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.employee-list-delete:hover,
.employee-list-delete:focus-visible {
  border-color: #b3261e;
  background: #fbe3e3;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 14px 28px 12px;
  background: white;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.pending-panel.drag-over {
  background: #eaf3ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(62, 142, 242, 0.42);
}

.pending-panel.drag-over .pending-list {
  border-color: var(--blue);
  border-style: solid;
}

.toolbar label {
  display: grid;
  gap: 5px;
}

.toolbar label > span {
  color: #66758a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dealership-filter-field {
  display: grid;
  flex: 1 0 100%;
  gap: 5px;
  min-width: 0;
}

.toolbar-field-label {
  color: #66758a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dealership-picker {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  background: #f7f9fc;
  scrollbar-width: thin;
}

.dealership-option {
  display: grid;
  flex: 1 0 104px;
  grid-template-rows: 42px auto;
  place-items: center;
  gap: 4px;
  min-width: 104px;
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #17263a;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.dealership-option img {
  width: 88px;
  height: 42px;
  object-fit: contain;
}

.dealership-option-generic-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eef3f9;
  color: #45607f;
}

.dealership-option-generic-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dealership-option strong {
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.dealership-option:hover {
  background: white;
}

.dealership-option[aria-checked="true"] {
  border-color: #3984ef;
  background: white;
  box-shadow: 0 3px 10px rgba(29, 98, 201, 0.12);
}

.dealership-option:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.22);
  outline-offset: 1px;
}

.dealership-option:disabled {
  cursor: default;
  opacity: 1;
}

.dealership-picker.is-locked {
  width: max-content;
  max-width: 100%;
}

.all-dealers-icon {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
  place-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #173f70;
}

.all-dealers-icon i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #78c5b9;
}

.all-dealers-icon i:nth-child(2n) {
  background: #f3ad48;
}

.all-dealers-icon i:nth-child(3n) {
  background: #69a8d8;
}

.department-filter-field {
  display: grid;
  gap: 5px;
}

.position-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.position-filter-field select {
  min-width: 190px;
  max-width: 240px;
}

.department-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d5dfe8;
  border-radius: 10px;
  background: #f7f9fc;
}

.department-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #526277;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.department-option svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.department-option:hover {
  background: #eaf2fb;
  color: #1d62c9;
}

.department-option[aria-checked="true"] {
  border-color: #1d62c9;
  background: #1d62c9;
  color: white;
}

.department-option:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(29, 98, 201, 0.22);
  outline-offset: 1px;
}

.department-option:disabled {
  cursor: default;
  opacity: 1;
}

.department-picker.is-locked {
  width: max-content;
  max-width: 100%;
}

select {
  min-width: 190px;
  padding: 9px 34px 9px 11px;
  border: 1px solid #d5dfe8;
  border-radius: 7px;
  outline: none;
  background: #fbfcfd;
  color: #213249;
  font-size: 11px;
  font-weight: 600;
}

select:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 201, 0.13);
}

select:disabled {
  cursor: not-allowed;
  background: #edf1f5;
  color: #526277;
  opacity: 1;
}

.grid-legend {
  display: flex;
  gap: 13px;
  margin: 0 0 8px auto;
  color: var(--muted);
  font-size: 9px;
}

.grid-view-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.view-limit-control,
.expand-all-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #526277;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.view-limit-control span:first-child,
.expand-all-control span:first-child {
  cursor: pointer;
  user-select: none;
}

.view-limit-button,
.expand-all-button {
  position: relative;
  width: 42px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #b9c3ce;
  cursor: pointer;
  transition: background 160ms ease;
}

.view-limit-button span,
.expand-all-button span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(29, 48, 69, 0.3);
  transition: transform 160ms ease;
}

.view-limit-button[aria-checked="true"],
.expand-all-button[aria-checked="true"] {
  background: var(--blue);
}

.view-limit-button[aria-checked="true"] span,
.expand-all-button[aria-checked="true"] span {
  transform: translateX(19px);
}

.view-limit-button:focus-visible,
.expand-all-button:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.22);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.sort-menu {
  position: relative;
  width: 230px;
}

.sort-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #aeb6bf;
  border-radius: 7px;
  background: white;
  color: #30353b;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sort-menu-trigger:hover {
  border-color: #7f8994;
}

.sort-menu-trigger[aria-expanded="true"] {
  border-color: #235da5;
  box-shadow: 0 0 0 1px #235da5;
}

.sort-menu-trigger i {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 140ms ease;
}

.sort-menu-trigger[aria-expanded="true"] i {
  transform: rotate(225deg) translate(-2px, -2px);
}

.sort-menu-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 100%;
  min-width: 270px;
  overflow: hidden;
  padding: 8px 0;
  border: 1px solid #edf0f3;
  border-radius: 7px;
  background: white;
  box-shadow: 0 9px 24px rgba(25, 42, 61, 0.18);
}

.sort-menu-options button {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: white;
  color: #242a30;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.sort-menu-options button:hover,
.sort-menu-options button:focus-visible {
  outline: none;
  background: #f2f6fb;
}

.sort-menu-options button span {
  visibility: hidden;
  font-size: 14px;
  line-height: 1;
}

.sort-menu-options button[aria-selected="true"] {
  font-weight: 700;
}

.sort-menu-options button[aria-selected="true"] span {
  visibility: visible;
}

.grid-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot--green { background: var(--green-accent); }
.legend-dot--blue { background: var(--blue-accent); }
.legend-dot--orange { background: var(--orange-accent); }

.workspace {
  position: relative;
  padding: 0 28px 30px 85px;
}

.talent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.talent-box {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.talent-box:hover {
  box-shadow: 0 5px 14px rgba(30, 55, 83, 0.14);
}

.talent-box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25));
}

.talent-box[data-zone="ready-now"] {
  border-color: #48aa66;
  background: #69c77e;
}

.talent-box[data-zone="ready-soon"] {
  border-color: #7abd52;
  background: #9bd66f;
}

.talent-box[data-zone="emerging"] {
  border-color: #d4c43c;
  background: #e7db57;
}

.talent-box[data-zone="high-capacity"] {
  border-color: #51a99e;
  background: #78c5b9;
}

.talent-box[data-zone="solid"] {
  border-color: #4c91c9;
  background: #69a8d8;
}

.talent-box[data-zone="new-role"] {
  border-color: #90b6d2;
  background: #b5d1e6;
}

.talent-box[data-zone="blocker"] {
  border-color: #df922f;
  background: #f3ad48;
}

.talent-box[data-zone="concern"] {
  border-color: #dc6545;
  background: #ed7b59;
}

.talent-box[data-zone="risk"] {
  border-color: #d94749;
  background: #ed5b5e;
}

.talent-box.drag-over,
.talent-box.is-suggested {
  z-index: 2;
  border-color: #3e8ef2;
  box-shadow: 0 0 0 3px rgba(62, 142, 242, 0.2), inset 0 0 24px rgba(74, 143, 224, 0.1);
}

.talent-box.drag-over {
  transform: scale(1.012);
}

.box-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}

.box-heading > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: #5c7083;
  font-size: 8px;
  font-weight: 800;
}

.box-heading h2 {
  margin-bottom: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: -0.02em;
}

.box-heading h2 small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.category-info-button {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1px solid rgba(30, 55, 83, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #243f59;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.category-info-button:hover {
  background: #fff;
}

.category-info-button:focus-visible {
  outline: 2px solid #185cc4;
  outline-offset: 2px;
}

.category-definition-popup {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 24px;
  border: 1px solid #d1dce9;
  border-radius: 14px;
  background: #fff;
  color: #243f59;
  box-shadow: 0 12px 40px rgba(30, 55, 83, 0.24);
}

.category-definition-popup h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.category-definition-popup p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.category-definition-close {
  display: block;
  margin: 0 0 12px auto;
  border: 0;
  background: transparent;
  color: #185cc4;
  font-weight: 700;
  cursor: pointer;
}

.immediate-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid #7f1313;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a4f 0%, #c11616 100%);
  box-shadow: 0 0 0 2px rgba(255, 232, 111, 0.75), 0 4px 10px rgba(112, 12, 12, 0.35);
  color: #fff !important;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.immediate-action-badge::before {
  content: "⚠";
  font-size: 9px;
  line-height: 1;
}

.dashboard-talent-matrix .immediate-action-badge {
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 7px;
}

.dashboard-talent-matrix .immediate-action-badge::before {
  font-size: 8px;
}

.people {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.people:empty::after {
  content: "Drop employees here";
  color: rgba(88, 103, 122, 0.62);
  font-size: 8px;
  font-weight: 600;
}

.more-employees {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px 12px;
  border: 1px dashed rgba(48, 72, 96, 0.34);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.42);
  color: #40556b;
  font-size: 10px;
  font-weight: 800;
}

.person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 178px;
  max-width: 245px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 6px rgba(31, 54, 79, 0.1);
  text-align: left;
  cursor: grab;
  touch-action: pan-y;
}

.person.dragging {
  opacity: 0.32;
}

.person.is-expanded {
  padding-bottom: 34px;
}

.person.is-expanded.is-manageable {
  padding-right: 51px;
}

.person span,
.pending-card span {
  display: grid;
  min-width: 0;
}

.person strong,
.pending-card strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.employee-name-row strong {
  min-width: 0;
}

.employee-card-details {
  display: none;
  margin-top: 3px;
}

.is-expanded .employee-card-details {
  display: grid;
}

.employee-expand {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.employee-expand i {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid #43566c;
  border-bottom: 1.5px solid #43566c;
  transform: rotate(45deg);
  transition: transform 140ms ease, margin 140ms ease;
}

.employee-expand[aria-expanded="true"] i {
  margin-top: 3px;
  transform: rotate(225deg);
}

.employee-expand:hover,
.employee-expand:focus-visible {
  outline: 2px solid rgba(29, 98, 201, 0.2);
  background: white;
}

.person small,
.pending-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 2px;
}

.person .employee-position,
.pending-card .employee-position {
  margin-top: 0;
  font-size: 9px;
  min-width: 0;
}

.person .employee-department,
.pending-card .employee-department {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(67, 86, 108, 0.09);
  color: #3b4e63;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.person .category-age,
.person .last-promotion-age,
.pending-card .last-promotion-age {
  margin-top: 5px;
  color: #33465c;
  font-size: 10px;
  font-weight: 700;
}

.person .employee-dealership,
.pending-card .employee-dealership {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #43566c;
  font-size: 10px;
  font-weight: 600;
}

.employee-card-dealer-logo {
  max-width: 42px;
  max-height: 16px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.employee-card-department-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #43566c;
}

.new-category-badge,
.promoted-badge {
  flex: 0 0 auto;
  padding: 2px 4px;
  border-radius: 8px;
  color: white;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.new-category-badge {
  background: #155fc1;
}

.promoted-badge {
  background: #0f8a63;
}

.drop-hint {
  position: absolute;
  right: 11px;
  bottom: 9px;
  margin: 0;
  color: #397ac7;
  font-size: 8px;
  font-weight: 700;
  opacity: 0.78;
}

.axis-label {
  position: absolute;
  color: #8390a0;
  font-size: 8px;
  text-transform: uppercase;
}

.axis-label strong {
  color: #58677a;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.axis-label--vertical {
  top: 0;
  bottom: 30px;
  left: 18px;
  width: 58px;
  border-right: 2px solid #8390a0;
}

.axis-label--vertical strong {
  position: absolute;
  top: 50%;
  left: -4px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.axis-label--horizontal {
  right: 28px;
  bottom: 3px;
  left: 85px;
  height: 16px;
  border-top: 2px solid #8390a0;
  text-align: center;
}

.axis-label--vertical::before,
.axis-label--horizontal::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: 2px solid #8390a0;
  border-right: 2px solid #8390a0;
  content: "";
}

.axis-label--vertical::before {
  top: 0;
  right: -5px;
  transform: rotate(-45deg);
}

.axis-label--horizontal::after {
  top: -5px;
  right: 0;
  transform: rotate(45deg);
}

.axis-label--horizontal strong {
  display: inline-block;
  margin-top: 8px;
  padding: 0 7px;
  background: white;
}

.axis-levels--vertical {
  position: absolute;
  top: 4px;
  right: 5px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.axis-levels--horizontal {
  position: absolute;
  top: 2px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
}

.pending-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 16px 28px;
  border-top: 2px dashed #9ebce0;
  background: #f7fbff;
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pending-title {
  position: relative;
  align-self: center;
  padding-left: 34px;
}

.pending-title-drop-icon {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcecfd;
  color: #2362a9;
}

.pending-title h2 {
  margin-bottom: 5px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 15px;
}

.pending-title h2 span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: 5px;
  border-radius: 50%;
  background: #edf2f7;
  color: #64768a;
  font-size: 9px;
}

.pending-help {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.add-employee-button {
  margin-top: 10px;
  padding: 8px 10px;
}

.pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.find-employee-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid #9ebce0;
  border-radius: 7px;
  background: white;
  color: #2362a9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.find-employee-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.find-employee-button:hover,
.find-employee-button:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: #eaf3ff;
}

.pending-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 245px));
  align-items: start;
  gap: 9px;
  min-height: 64px;
  padding: 10px;
  border: 2px dashed #b9d3ee;
  border-radius: 12px;
  background: #ffffff;
}

.pending-list:empty::before {
  content: attr(data-empty-hint);
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 14px 8px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    135deg,
    #eef5fd,
    #eef5fd 10px,
    #f7fbff 10px,
    #f7fbff 20px
  );
  color: #4c6d92;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.pending-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 178px;
  max-width: 245px;
  padding: 9px 10px;
  border: 1px solid #d9e1e9;
  border-radius: 7px;
  background: #fafbfd;
  box-shadow: 0 3px 8px rgba(24, 49, 78, 0.07);
  text-align: left;
  cursor: grab;
  touch-action: pan-y;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.pending-card:hover,
.pending-card:focus-visible,
.pending-card.is-featured {
  border-color: #79a9e2;
  outline: none;
  box-shadow: 0 5px 13px rgba(36, 99, 173, 0.16);
  transform: translateY(-2px);
}

.pending-card i {
  color: #9aa7b5;
  font-size: 10px;
  font-style: normal;
  letter-spacing: -3px;
}

.pending-card.dragging {
  opacity: 0.32;
}

.pending-card.is-expanded {
  padding-bottom: 34px;
}

.pending-card.is-expanded.is-manageable {
  padding-right: 51px;
}

.pending-card:not(.is-expanded) > i {
  display: none;
}

.person.is-saving,
.pending-card.is-saving {
  cursor: wait;
  opacity: 0.48;
}

.employee-remove {
  position: absolute;
  top: 4px;
  right: 5px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #6c7683;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.employee-edit {
  position: absolute;
  top: 4px;
  right: 25px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #536d87;
  font-size: 10px;
  cursor: pointer;
}

.employee-remove:hover,
.employee-remove:focus-visible,
.employee-edit:hover,
.employee-edit:focus-visible {
  outline: 2px solid rgba(174, 45, 45, 0.22);
  background: #b73535;
  color: white;
}

.employee-edit:hover,
.employee-edit:focus-visible {
  outline-color: rgba(29, 98, 201, 0.22);
  background: var(--blue);
}

.employee-card-history {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.person:not(.is-expanded) .employee-card-history,
.pending-card:not(.is-expanded) .employee-card-history,
.person:not(.is-expanded) > .employee-edit,
.person:not(.is-expanded) > .employee-remove,
.pending-card:not(.is-expanded) > .employee-edit,
.pending-card:not(.is-expanded) > .employee-remove {
  display: none;
}

.employee-log,
.employee-notes {
  padding: 4px 7px;
  border: 1px solid rgba(66, 91, 117, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #405a73;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.employee-log:hover,
.employee-log:focus-visible,
.employee-notes:hover,
.employee-notes:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: white;
  color: var(--blue);
}

.employee-notes,
.employee-list-notes {
  border-color: #d7b936;
  background: #fff0a0;
  color: #604f00;
}

.employee-notes:hover,
.employee-notes:focus-visible,
.employee-list-notes:hover,
.employee-list-notes:focus-visible {
  border-color: #b69500;
  background: #ffe36a;
  color: #4a3c00;
}

.employee-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(18, 38, 64, 0.3);
}

.employee-dialog::backdrop {
  background: rgba(19, 35, 54, 0.56);
  backdrop-filter: blur(3px);
}

#employee-form,
#notes-form,
.existing-employee-dialog-content,
.move-pending-dialog-content,
.log-dialog-content,
.import-employees-dialog-content,
.remove-dialog-content,
.admin-action-dialog-content {
  padding: 25px;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 21px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #617186;
  font-size: 20px;
  cursor: pointer;
}

.dialog-intro {
  margin: 13px 0 19px;
  color: var(--muted);
  font-size: 12px;
}

.employee-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.employee-fields label {
  display: grid;
  gap: 6px;
}

.employee-fields label > span {
  color: #596b80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.employee-fields input,
.employee-fields select {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d3dde7;
  border-radius: 7px;
  outline: none;
  background: #fbfcfd;
  color: #213249;
  font-size: 12px;
}

.employee-fields input:focus,
.employee-fields select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 201, 0.13);
}

.dialog-error {
  min-height: 17px;
  margin: 12px 0 0;
  color: #b73535;
  font-size: 11px;
  font-weight: 600;
}

.duplicate-warning {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e0bd49;
  border-radius: 9px;
  background: #fff8d9;
  color: #5b4908;
}

.duplicate-warning > strong {
  font-size: 12px;
}

.duplicate-warning > p {
  margin: 4px 0 9px;
  font-size: 10px;
  line-height: 1.45;
}

.duplicate-matches {
  display: grid;
  gap: 5px;
}

.duplicate-matches article {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.duplicate-matches strong {
  font-size: 10px;
}

.duplicate-matches span {
  color: #74631f;
  font-size: 9px;
}

.import-employees-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #9ebce0;
  border-radius: 7px;
  background: white;
  color: #2362a9;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.import-employees-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.import-employees-button:hover,
.import-employees-button:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: #eaf3ff;
}

.import-employees-file-field {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.import-employees-file-field > span {
  color: #596b80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.import-employees-file-field input[type="file"] {
  padding: 9px;
  border: 1px dashed #b9c7d8;
  border-radius: 7px;
  background: #fbfcfd;
  font-size: 11px;
}

.import-employees-filename {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.import-employees-summary {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d5dfe8;
  border-radius: 9px;
  background: #f7f9fc;
  max-height: 220px;
  overflow-y: auto;
}

.import-employees-summary-headline {
  margin: 0;
  color: #17263a;
  font-size: 12px;
  font-weight: 700;
}

.import-employees-summary-skipped-heading {
  margin: 10px 0 4px;
  color: #b73535;
  font-size: 11px;
  font-weight: 700;
}

.import-employees-summary-skipped-list {
  margin: 0;
  padding-left: 18px;
  color: #5b4908;
  font-size: 10px;
  line-height: 1.5;
}

.import-employees-summary-note {
  margin: 7px 0 0;
  color: #52647a;
  font-size: 11px;
  line-height: 1.45;
}

.import-employees-missing-list {
  display: grid;
  gap: 5px;
  max-height: 240px;
  margin-top: 8px;
  overflow: auto;
}

.import-employees-missing-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.import-employees-missing-row:has(input:checked) {
  border-color: #e8a19c;
  background: #fff5f4;
}

.import-employees-missing-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #b83232;
}

.import-employees-missing-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.import-employees-missing-identity strong {
  color: #17263a;
  font-size: 12px;
}

.import-employees-missing-identity span,
.import-employees-missing-row > span:last-child {
  color: #64758a;
  font-size: 10px;
}

.import-employees-missing-row > span:last-child {
  color: #8e3434;
  font-weight: 700;
  text-align: right;
}

/* Keep roster review sections visible together; long employee lists scroll inside their panel. */
.import-employees-dialog {
  width: min(900px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.import-employees-dialog-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  padding: 18px;
}

.import-employees-dialog-content .dialog-intro {
  margin: 8px 0 10px;
  font-size: 11px;
  line-height: 1.4;
}

.import-employees-dialog.is-previewing .dialog-intro,
.import-employees-dialog.is-previewing .import-employees-file-field,
.import-employees-dialog.is-previewing .import-employees-filename {
  display: none;
}

.import-employees-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #52647a;
  font-size: 10px;
  font-weight: 700;
}

.import-employees-preview-bar button {
  padding: 4px 7px;
  border: 1px solid #d8e1eb;
  border-radius: 6px;
  background: #ffffff;
  color: #315d93;
  font: inherit;
  cursor: pointer;
}

.import-employees-dialog-content .import-employees-file-field {
  gap: 5px;
  margin-top: 2px;
}

.import-employees-dialog-content .import-employees-file-field input[type="file"] {
  padding: 6px;
}

.import-employees-dialog-content .import-employees-filename {
  margin-top: 3px;
}

.import-employees-dialog-content .import-employees-summary {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(56vh, 560px);
  margin-top: 9px;
  padding: 9px;
  overflow: auto;
}

.import-employees-review-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.import-employees-review-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #ffffff;
}

.import-employees-review-metric strong {
  flex: none;
  color: #1f4f96;
  font-size: 17px;
  line-height: 1;
}

.import-employees-review-metric span {
  color: #52647a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.import-employees-review-metric.is-recent strong,
.import-employees-review-metric.is-inactive strong {
  color: #a43c39;
}

.import-employees-review-metric.is-attention strong {
  color: #a16c0c;
}

.import-employees-review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.import-employees-mobile-tabs {
  display: none;
}

.import-employees-review-panel {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #ffffff;
}

.import-employees-review-panel.is-eligible {
  border-top: 3px solid #2d8a57;
}

.import-employees-review-panel.is-attention {
  border-top: 3px solid #d6a344;
}

.import-employees-review-panel.is-inactive {
  border-top: 3px solid #bd5550;
}

.import-employees-review-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.import-employees-review-panel-heading h3 {
  min-width: 0;
  margin: 0;
  color: #24364c;
  font-size: 11px;
  font-weight: 800;
}

.import-employees-review-panel-heading > span {
  flex: none;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: #334960;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.import-employees-review-list {
  display: grid;
  max-height: 136px;
  overflow: auto;
  overscroll-behavior: contain;
}

.import-employees-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 5px 2px;
  border-bottom: 1px solid #edf1f5;
}

.import-employees-review-row:last-child {
  border-bottom: 0;
}

.import-employees-review-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.import-employees-review-identity strong {
  overflow: hidden;
  color: #26374b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-employees-review-identity > span {
  overflow: hidden;
  color: #67788d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-employees-review-tag {
  flex: none;
  color: #32724d;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.import-employees-tenure {
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf7f0;
  color: #286744;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.import-employees-override {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 4px 6px;
  border-radius: 6px;
  background: #fff7e6;
  color: #79530f;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.import-employees-override input {
  margin: 0;
  accent-color: #996a18;
}

#org-chart-dealership-picker .dealership-option.is-transfer-target {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  background: #eaf2ff;
}

.transfer-employee-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.transfer-employee-options label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #52647a;
  font-size: 11px;
  font-weight: 700;
}

.transfer-optional-field > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.transfer-employee-options select,
.transfer-employee-options input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #24364c;
  font: inherit;
}

.transfer-employee-options :disabled {
  background: #f1f5f9;
  color: #64748b;
}

.transfer-promotion-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #895c10;
  font-size: 11px;
}

@media (max-width: 560px) {
  .transfer-employee-options {
    grid-template-columns: 1fr;
  }
}

.is-attention .import-employees-review-tag {
  color: #956a22;
}

.import-employees-review-empty {
  margin: 0;
  padding: 9px 2px;
  color: #718196;
  font-size: 10px;
}

.import-employees-missing-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.import-employees-missing-search {
  min-width: 0;
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #d8e1eb;
  border-radius: 6px;
  color: #24364c;
  font: inherit;
  font-size: 10px;
}

.import-employees-selection-count {
  flex: none;
  color: #8e3434;
  font-size: 9px;
  font-weight: 700;
}

.import-employees-missing-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 122px;
  margin-top: 0;
  padding-right: 2px;
}

.import-employees-missing-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 6px;
}

.import-employees-missing-row input {
  width: 14px;
  height: 14px;
}

.import-employees-missing-identity strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-employees-missing-identity span {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-employees-missing-row > span:last-child {
  display: inline-flex;
  grid-column: 3;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff0ef;
  color: #963f3a;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.import-employees-confirm-departure-callout {
  margin: 0 0 7px;
  padding: 7px 9px;
  border: 1px solid #e7b763;
  border-radius: 7px;
  background: #fff7e6;
  color: #6d4c10;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.import-employees-review-note {
  margin: 5px 0 0;
  color: #6a7788;
  font-size: 9px;
  line-height: 1.35;
}

.import-employees-dialog-content .dialog-actions {
  flex: none;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #edf1f5;
  background: #ffffff;
}

@media (max-width: 560px) {
  .import-employees-missing-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .import-employees-missing-row > span:last-child {
    grid-column: 3;
    text-align: left;
  }

  .import-employees-review-stats {
    display: none;
  }

  .import-employees-review-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-employees-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 6px;
  }

  .import-employees-mobile-tab {
    min-width: 0;
    padding: 5px 3px;
    border: 1px solid #d7e1ec;
    border-radius: 6px;
    background: #ffffff;
    color: #53657a;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
  }

  .import-employees-mobile-tab[aria-pressed="true"] {
    border-color: #276bd1;
    background: #edf4ff;
    color: #1d55a0;
  }

  #import-employees-summary[data-mobile-view="missing"] .import-employees-review-columns {
    display: none;
  }

  #import-employees-summary[data-mobile-view="eligible"] .import-employees-review-panel[data-mobile-view="reasons"],
  #import-employees-summary[data-mobile-view="eligible"] > .import-employees-review-panel[data-mobile-view="missing"],
  #import-employees-summary[data-mobile-view="reasons"] .import-employees-review-panel[data-mobile-view="eligible"],
  #import-employees-summary[data-mobile-view="reasons"] > .import-employees-review-panel[data-mobile-view="missing"],
  #import-employees-summary[data-mobile-view="missing"] .import-employees-review-columns {
    display: none;
  }

  #import-employees-summary[data-mobile-view="missing"] > .import-employees-review-panel[data-mobile-view="missing"] {
    display: block;
  }

  .import-employees-review-list {
    max-height: 68px;
  }

  .import-employees-missing-list {
    grid-template-columns: 1fr;
    max-height: 75px;
  }

  .import-employees-review-note {
    display: none;
  }

  .import-employees-dialog-content .import-employees-summary {
    flex: 0 0 auto;
    max-height: 46dvh;
    min-height: 90px;
    padding: 6px;
  }

  .import-employees-review-panel {
    padding: 5px;
  }

  .import-employees-review-panel-heading h3 {
    font-size: 9px;
  }

  .import-employees-review-row {
    align-items: start;
    padding: 4px 1px;
  }

  .import-employees-review-tag {
    display: none;
  }

  .import-employees-tenure {
    padding: 2px 4px;
    font-size: 8px;
  }

  .import-employees-review-identity strong {
    font-size: 9px;
  }

  .import-employees-review-identity > span {
    font-size: 8px;
  }

  .import-employees-missing-toolbar {
    flex-wrap: wrap;
  }

  .import-employees-selection-count {
    width: 100%;
  }
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.dialog-actions button {
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dialog-cancel {
  border: 1px solid #ced9e4;
  background: white;
  color: #53657a;
}

.dialog-save {
  border: 0;
  background: var(--blue);
  color: white;
}

.dialog-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.existing-employee-dialog {
  width: min(720px, calc(100% - 32px));
}

.existing-employee-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.existing-employee-filters label {
  display: grid;
  gap: 5px;
}

.existing-employee-filters label > span {
  color: #66758a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.existing-employee-filters select {
  width: 100%;
  min-width: 0;
  background-color: #f8fafc;
  font-weight: 700;
}

.existing-employee-search {
  position: relative;
  display: block;
}

.existing-employee-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #718197;
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.existing-employee-search input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 1px solid #cfdbe7;
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.existing-employee-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 201, 0.13);
}

.existing-employee-results {
  display: grid;
  gap: 7px;
  max-height: 380px;
  margin-top: 12px;
  overflow-y: auto;
}

.existing-employee-result {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(120px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid #dae3ec;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.existing-employee-result:hover,
.existing-employee-result:focus-visible {
  outline: none;
  border-color: #77a8e1;
  background: #f1f7fe;
}

.existing-employee-result:disabled {
  cursor: default;
  background: #f4f6f8;
  opacity: 0.72;
}

.existing-employee-result > span:first-child {
  display: grid;
  min-width: 0;
}

.existing-employee-result strong,
.existing-employee-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-employee-result strong {
  font-size: 13px;
}

.existing-employee-result small,
.existing-employee-context {
  color: var(--muted);
  font-size: 11px;
}

.existing-employee-category {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--employee-category-color);
  color: #24354a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.existing-employee-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.existing-employee-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.existing-employee-result:disabled .existing-employee-action {
  color: #8a6c00;
}

.existing-employee-add {
  margin-top: 10px;
}

.existing-employee-empty {
  margin: 0;
  padding: 28px 15px;
  border: 1px dashed #cbd8e5;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.move-pending-dialog {
  width: min(500px, calc(100% - 32px));
}

.move-pending-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #f6f9fc;
}

.move-pending-summary-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.move-pending-summary strong {
  font-size: 14px;
  color: #17263a;
}

.move-pending-summary span {
  color: var(--muted);
  font-size: 11px;
}

.move-pending-summary .move-pending-tenure {
  margin-top: 5px;
  color: #405a73;
  font-weight: 700;
}

.move-pending-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 90px;
  max-width: 120px;
  padding: 8px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid #dce4ec;
  box-shadow: 0 2px 6px rgba(31, 54, 79, 0.05);
}

.move-pending-dealership-logo {
  max-width: 96px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.notes-dialog {
  width: min(620px, calc(100% - 32px));
}

.notes-history {
  display: grid;
  gap: 9px;
  max-height: 300px;
  overflow-y: auto;
  margin: 18px 0;
  padding-right: 4px;
}

.note-entry {
  padding: 11px 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f8fafc;
}

.note-entry p {
  margin: 0 0 7px;
  color: #30445b;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.note-entry footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #78879a;
  font-size: 9px;
}

.log-entry {
  padding: 11px 12px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f8fafc;
}

.log-entry > strong {
  display: block;
  margin-bottom: 7px;
  color: #30445b;
  font-size: 11px;
}

.log-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #52677e;
  font-size: 11px;
}

.log-values span:first-child {
  color: #8a5960;
  text-decoration: line-through;
}

.log-values span:last-child {
  color: #287047;
  font-weight: 700;
}

.log-entry footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #78879a;
  font-size: 9px;
}

.notes-empty {
  padding: 20px;
  border: 1px dashed #ccd7e1;
  border-radius: 8px;
  color: #7a899b;
  font-size: 11px;
  text-align: center;
}

.note-field {
  display: grid;
  gap: 6px;
}

.note-field > span {
  color: #596b80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.note-field textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #d3dde7;
  border-radius: 7px;
  outline: none;
  color: #213249;
  font: 12px/1.45 "DM Sans", Arial, sans-serif;
}

.note-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 98, 201, 0.13);
}

.admin-action-dialog {
  width: min(460px, calc(100% - 32px));
}

.admin-action-dialog .dialog-intro {
  margin: 10px 0 0;
  color: #51657d;
  font-size: 13px;
}

.admin-action-dialog .dialog-actions {
  margin-top: 14px;
}

.remove-dialog {
  width: min(490px, calc(100% - 32px));
}

.remove-dialog-content {
  text-align: center;
}

.remove-warning-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #fde8e7;
  color: #b73535;
  font-size: 22px;
  font-weight: 800;
}

.remove-dialog h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 20px;
}

.remove-warning {
  margin: 12px 0 15px;
  color: #647488;
  font-size: 12px;
  line-height: 1.5;
}

.remove-tip {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #cddff2;
  border-radius: 8px;
  background: #f0f6fd;
  color: #3f5974;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

.remove-dialog .dialog-actions {
  margin-top: 15px;
}

.remove-confirm {
  border: 0;
  background: #b73535;
  color: white;
}

.remove-confirm:hover {
  background: #982a2a;
}

.remove-confirm:disabled {
  cursor: wait;
  opacity: 0.65;
}

.drag-ghost {
  position: fixed;
  z-index: 100;
  width: 150px;
  pointer-events: none;
  opacity: 0.88;
  transform: rotate(-3deg) scale(1.04);
  box-shadow: 0 16px 30px rgba(17, 41, 72, 0.28);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 10px 28px;
  border-top: 1px solid #d8e0e7;
  background: #f2f5f8;
}

.app-footer p {
  margin: 0;
  color: #6d7b8d;
  font-size: 9px;
}

.submit-button {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 7px 15px rgba(24, 77, 155, 0.27);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:hover {
  filter: brightness(1.08);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(29, 98, 201, 0.24);
  outline-offset: 2px;
}

.submit-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.65;
}

@media (max-width: 900px) {
  .tablet {
    width: 100%;
  }

  .screen {
    overflow-x: auto;
  }

  .app-header,
  .primary-nav,
  .dashboard-view,
  .employee-list-view,
  .org-chart-view,
  .welcome-view,
  .admin-view,
  .toolbar,
  .pending-panel,
  .app-footer {
    min-width: 800px;
  }

  .workspace {
    min-width: 800px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .org-chart-root-role,
  .org-chart-department h4 {
    font-size: 22px;
  }

  .org-chart-root-name,
  .org-chart-root-meta,
  .org-chart-department-meta {
    font-size: 14px;
  }

  .org-chart-root-count,
  .org-chart-department-count {
    font-size: 24px;
  }

  .org-chart-editor {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .tablet {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Org chart printing */
.org-chart-print-title {
  display: none;
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body.is-printing-org-chart {
    min-width: 0;
    background: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.is-printing-org-chart > :not(#app-shell),
  body.is-printing-org-chart .screen > :not(#org-chart-view),
  body.is-printing-org-chart #org-chart-view > :not(.org-chart-board):not(.org-chart-print-title),
  body.is-printing-org-chart .org-chart-pool,
  body.is-printing-org-chart .org-chart-canvas-hint,
  body.is-printing-org-chart .multi-select-tip,
  body.is-printing-org-chart .org-box-new-badge,
  body.is-printing-org-chart .org-chart-top-drop,
  body.is-printing-org-chart .org-box-handle,
  body.is-printing-org-chart .org-box-edit,
  body.is-printing-org-chart .org-box-footer,
  body.is-printing-org-chart .org-box-toggle-item,
  body.is-printing-org-chart .org-salary,
  body.is-printing-org-chart .org-salary-editor,
  body.is-printing-org-chart .org-chart-employee-empty {
    display: none !important;
  }

  body.is-printing-org-chart .scene,
  body.is-printing-org-chart .tablet,
  body.is-printing-org-chart .screen,
  body.is-printing-org-chart #org-chart-view,
  body.is-printing-org-chart .org-chart-board,
  body.is-printing-org-chart .org-chart-editor,
  body.is-printing-org-chart .org-chart-canvas {
    display: block;
    width: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    overflow: visible;
  }

  body.is-printing-org-chart .org-chart-print-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2b4058;
    color: #111923;
  }

  body.is-printing-org-chart .org-chart-print-title img {
    max-width: 150px;
    max-height: 48px;
    object-fit: contain;
  }

  body.is-printing-org-chart .org-chart-print-title strong {
    flex: 1;
    font-size: 16px;
  }

  body.is-printing-org-chart .org-chart-print-title span {
    color: #536274;
    font-size: 11px;
  }

  body.is-printing-org-chart .org-chart-canvas {
    zoom: var(--org-print-scale, 1);
  }

  body.is-printing-org-chart .org-tree {
    overflow: visible;
    padding-bottom: 0;
  }

  body.is-printing-org-chart .org-box {
    box-shadow: none;
    break-inside: avoid;
  }

  body.is-printing-org-chart .org-box-title {
    border-color: transparent;
    color: #111923;
    opacity: 1;
  }
}
.admin-user-summary .admin-user-employee-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
}

.admin-user-employee-logo {
  width: auto;
  height: 22px;
  max-width: 72px;
  flex: none;
  object-fit: contain;
}

.admin-user-summary .admin-user-department-badge {
  flex: none;
  padding: 2px 8px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #edf4ff;
  color: #1f5fb8;
  font-size: 10.5px;
  font-weight: 700;
}

.admin-user-summary .admin-user-employee-position,
.admin-user-summary .admin-user-employee-dealership {
  min-width: 0;
  color: #4d6179;
  font-size: 11.5px;
  font-weight: 500;
}
/* Access Control: edit user in a modal */
.admin-user-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(12, 32, 64, 0.28);
  overflow: hidden;
}

.admin-user-dialog[open] {
  display: flex;
  flex-direction: column;
}

.admin-user-dialog::backdrop {
  background: rgba(15, 30, 52, 0.45);
  backdrop-filter: blur(2px);
}

.admin-user-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e3eaf3;
  background: #f7faff;
}

.admin-user-dialog-title {
  margin: 0;
  color: #14253a;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.admin-user-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d4dfeb;
  border-radius: 9px;
  background: #ffffff;
  color: #4d6179;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.admin-user-dialog-close:hover {
  background: #eef3f9;
}

.admin-user-dialog-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.admin-user-dialog .admin-user-card,
.admin-user-dialog .admin-user-card.is-expanded,
.admin-user-dialog .admin-user-card.is-dirty,
.admin-user-dialog .admin-user-card.is-new {
  border: 0;
  background: #ffffff;
}

.admin-user-dialog .admin-user-summary {
  padding: 16px 20px 8px;
}

.admin-user-dialog .admin-user-body {
  padding: 8px 20px 0 70px;
}

.admin-user-dialog .admin-user-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 0 -20px 0 -70px;
  padding: 12px 20px;
  background: #ffffff;
  box-shadow: 0 -8px 16px rgba(17, 45, 89, 0.06);
}

.admin-user-dialog .admin-readonly-note {
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .admin-user-dialog .admin-user-body {
    padding-left: 20px;
  }

  .admin-user-dialog .admin-user-actions {
    margin-left: -20px;
  }
}
/* Multi-select drag and drop */
.pending-card.is-multi-selected,
.person.is-multi-selected,
.org-chart-employee.is-multi-selected {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  background-color: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.multi-select-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
}

.multi-select-bar[hidden] {
  display: none;
}

.multi-select-bar button {
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.multi-select-bar button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.multi-drag-image {
  position: fixed;
  top: -1000px;
  left: -1000px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #1e3a8a;
  color: #fff;
  font: 600 0.85rem/1.2 system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.drag-ghost[data-group-count]::after {
  content: attr(data-group-count);
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.multi-select-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  padding: 8px 12px;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.8rem;
  line-height: 1.4;
}

.multi-select-tip strong {
  color: #92400e;
}

.multi-select-tip-icon {
  flex: none;
  font-size: 1rem;
  line-height: 1.2;
}

.multi-select-tip kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #d6b36a;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  color: #78350f;
  font: 700 0.72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.multi-select-tip[hidden] {
  display: none;
}

.nine-square-multi-select-tip {
  flex: 1 0 100%;
  margin: 0;
}

.org-chart-multi-select-tip {
  margin: 0 0 10px;
}
/* Bulk move confirmation */
.bulk-move-dialog {
  width: min(560px, calc(100% - 32px));
}

.bulk-move-content {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.bulk-move-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-move-heading .eyebrow {
  margin: 0 0 2px;
}

.bulk-move-heading-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
}

.bulk-move-heading-icon svg,
.bulk-move-destination-arrow svg,
.bulk-move-confirm svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bulk-move-destination {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.bulk-move-destination-label {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bulk-move-destination-arrow {
  display: inline-flex;
  color: #2563eb;
}

.bulk-move-destination .bulk-move-chip {
  padding: 5px 12px;
  font-size: 13px;
}

.bulk-move-chip {
  --chip-color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 55%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color) 18%, white);
  color: #17263a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-move-chip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color);
}

.bulk-move-list-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: -10px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bulk-move-list {
  display: grid;
  gap: 6px;
  max-height: min(340px, 45vh);
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.bulk-move-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.bulk-move-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e3a8a;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bulk-move-info {
  display: grid;
  min-width: 0;
}

.bulk-move-info strong {
  overflow: hidden;
  color: #17263a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-move-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-move-row .bulk-move-chip {
  max-width: 170px;
}

.bulk-move-content .dialog-error:empty {
  display: none;
}

.bulk-move-content .dialog-actions {
  margin-top: 0;
}

.bulk-move-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bulk-move-confirm svg {
  width: 16px;
  height: 16px;
}

.bulk-move-dialog.is-saving .bulk-move-confirm {
  opacity: 0.7;
  cursor: progress;
}
/* Newest org chart box stays highlighted until another box is created */
.org-box {
  position: relative;
}

.org-box.is-newest {
  border-color: #f59e0b;
  border-top-color: #f59e0b;
  background: #fffbeb;
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.35),
    0 6px 18px rgba(245, 158, 11, 0.25);
  animation: org-box-newest-pulse 1.6s ease-in-out 3;
}

.org-box-new-badge {
  position: absolute;
  top: -11px;
  right: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(146, 64, 14, 0.3);
  pointer-events: none;
}

@keyframes org-box-newest-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(245, 158, 11, 0.35),
      0 6px 18px rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(245, 158, 11, 0.18),
      0 6px 22px rgba(245, 158, 11, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .org-box.is-newest {
    animation: none;
  }
}

@media print {
  body.is-printing-org-chart .org-box.is-newest {
    border-color: #9ca3ad;
    border-top-color: #2b4058;
    background: #ffffff;
    box-shadow: none;
    animation: none;
  }
}
#admin-action-message {
  white-space: pre-line;
}

/* Access Control: users grouped by dealership */
.admin-users-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.admin-user-cards {
  gap: 14px;
}

.admin-user-group {
  border: 1px solid #d7e3f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 45, 89, 0.05);
  overflow: hidden;
}

.admin-user-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #e3eaf3;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  color: #10233f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-user-group-header:hover {
  background: #eaf2fc;
}

.admin-user-group-header:focus-visible {
  outline: 2px solid #1f6cd6;
  outline-offset: -2px;
}

.admin-user-group.is-collapsed .admin-user-group-header {
  border-bottom-color: transparent;
}

.admin-user-group-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 84px;
  height: 40px;
  padding: 4px 8px;
  border: 1px solid #e3eaf3;
  border-radius: 10px;
  background: #ffffff;
}

.admin-user-group-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.admin-user-group-logo.is-icon {
  font-size: 20px;
}

.admin-user-group-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.admin-user-group-title strong {
  font-size: 15px;
  font-weight: 800;
}

.admin-user-group-title span {
  color: #5e7189;
  font-size: 12px;
}

.admin-user-group-count {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e4eefb;
  color: #1f4f96;
  font-size: 12px;
  font-weight: 700;
}

.admin-user-group-chevron {
  flex: none;
  color: #5e7189;
  font-size: 14px;
  transition: transform 150ms ease;
}

.admin-user-group.is-collapsed .admin-user-group-chevron {
  transform: rotate(-90deg);
}

.admin-user-group.is-collapsed .admin-user-group-list {
  display: none;
}

.admin-user-group:not([data-group^="__"]) .admin-user-employee-logo {
  display: none;
}