#app {
  min-height: 100vh;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--ink-500);
  font-size: 14px;
}

.boot-mark,
.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #e5f2e8;
  color: var(--green-700);
  font-size: 20px;
  font-weight: 800;
}

.icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-shell--read-only [data-action="add-employee"],
.app-shell--read-only [data-action="select-import"],
.app-shell--read-only [data-action="edit-profile"],
.app-shell--read-only [data-action="manage-profile-records"],
.app-shell--read-only [data-action="add-record"],
.app-shell--read-only [data-action="remove-record"],
.app-shell--read-only [data-action="delete-department"],
.app-shell--read-only [data-action="full-backup"],
.app-shell--read-only #department-form,
.app-shell--read-only #employee-excel,
.app-shell--read-only .employee-file-picker,
.app-shell--read-only .employee-selected-files {
  display: none !important;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 258px;
  flex-direction: column;
  overflow: auto;
  background: var(--sidebar-background);
  color: #d8e2ec;
  padding: 23px 17px 16px;
}

.brand {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 2px 7px 20px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 43px;
  height: 43px;
  overflow: hidden;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__name {
  display: grid;
  gap: 4px;
}

.brand__name strong,
.brand--login strong {
  color: #f4f7fa;
  font-size: 14px;
  letter-spacing: 0.075em;
}

.brand__name strong span,
.brand--login strong span {
  color: #91c891;
}

.brand__name small {
  color: #8fa2b5;
  font-size: 11px;
}

.workspace-label {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  margin: 1px 0 10px;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: #8499ad;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.workspace-label__dot,
.connection-state__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fc38d;
  box-shadow: 0 0 0 3px rgb(111 195 141 / 14%);
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.nav-section-label {
  margin: 15px 10px 5px;
  color: #8093a7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c1ceda;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  color: #9db0c1;
}

.nav-item span:nth-child(2) {
  flex: 1;
  font-size: 12px;
}

.nav-item:hover {
  background: rgb(255 255 255 / 7%);
  color: #fff;
}

.nav-item--active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: inset 3px 0 #fff;
}

.nav-item--active .icon {
  color: var(--blue-600);
}

.nav-item__count {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 10px;
  background: rgb(255 255 255 / 10%);
  color: #dae6ef;
  font-size: 10px;
  text-align: center;
}

.sidebar-bottom {
  display: grid;
  gap: 13px;
  margin-top: auto;
  padding-top: 23px;
}

.sidebar-help {
  display: grid;
  justify-items: start;
  padding: 13px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
}

.sidebar-help__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgb(137 190 133 / 15%);
  color: #a9d8a8;
}

.sidebar-help__icon .icon {
  width: 16px;
  height: 16px;
}

.sidebar-help strong {
  color: #edf3f8;
  font-size: 11px;
}

.sidebar-help small {
  margin-top: 4px;
  color: #9dafbf;
  font-size: 10px;
}

.sidebar-help button {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding: 0;
  border: 0;
  background: none;
  color: #a9d8a8;
  font-size: 10px;
}

.sidebar-help button .icon {
  width: 13px;
  height: 13px;
}

.connection-state {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgb(255 255 255 / 6%);
}

.connection-state--cloud .connection-state__dot {
  background: #5badd7;
  box-shadow: 0 0 0 3px rgb(91 173 215 / 14%);
}

.connection-state span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.connection-state strong {
  overflow: hidden;
  color: #e4ebf2;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-state small {
  overflow: hidden;
  color: #98aabc;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #bdcbd8;
}

.logout-button:hover {
  background: rgb(255 255 255 / 8%);
}

.logout-button .icon {
  width: 16px;
  height: 16px;
}

.main-column {
  display: flex;
  width: calc(100% - 258px);
  min-height: 100vh;
  flex-direction: column;
  margin-left: 258px;
  background: var(--canvas);
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 68px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  backdrop-filter: blur(12px);
}

.breadcrumbs,
.topbar-actions,
.user-chip {
  display: flex;
  align-items: center;
}

.breadcrumbs {
  gap: 9px;
  color: var(--ink-500);
  font-size: 12px;
}

.breadcrumbs .icon {
  width: 14px;
  height: 14px;
}

.breadcrumbs strong {
  color: var(--ink-700);
  font-weight: 600;
}

.topbar-actions {
  gap: 17px;
}

.topbar-date {
  color: var(--ink-500);
  font-size: 11px;
}

.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.icon-button {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  transition: background 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  border-color: #cbd8e3;
  background: #f7fafd;
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.notification-button__count {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c94d48;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.notification-menu {
  position: relative;
}

.notification-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(18 40 59 / 18%);
}

.theme-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 100px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(18 40 59 / 18%);
}

.theme-panel__section {
  padding: 12px 14px 0;
}

.theme-panel__section > strong {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 700;
}

.theme-panel__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 8px;
}

.theme-panel__options--background {
  padding-bottom: 14px;
}

.theme-color-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 9px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  font-size: 10px;
}

.theme-color-option:hover,
.theme-color-option[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--canvas);
}

.theme-color-option span {
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--theme-swatch);
  box-shadow: 0 0 0 1px rgb(16 36 58 / 16%);
}

.theme-color-option[aria-pressed="true"] span {
  box-shadow: 0 0 0 2px var(--theme-swatch);
}

.notification-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.notification-panel__heading div {
  display: grid;
  gap: 4px;
}

.notification-panel__heading strong {
  color: var(--navy-950);
  font-size: 13px;
}

.notification-panel__heading small,
.notification-panel__empty {
  color: var(--ink-500);
  font-size: 11px;
}

.notification-panel__close {
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 22px;
  line-height: 1;
}

.notification-panel ul {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-panel li + li {
  border-top: 1px solid #edf1f4;
}

.notification-item {
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 13px 16px;
  border: 0;
  background: #fff;
  color: var(--ink-700);
  text-align: left;
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item strong {
  color: var(--navy-950);
  font-size: 11px;
}

.notification-item span {
  font-size: 11px;
  line-height: 1.5;
}

.notification-panel__empty {
  margin: 0;
  padding: 17px 16px;
  line-height: 1.5;
}

.notification-panel__error {
  color: var(--red-700);
}

.user-chip {
  gap: 9px;
}

.user-chip__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 750;
}

.user-chip > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.user-chip strong {
  max-width: 145px;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip small {
  color: var(--ink-500);
  font-size: 9px;
}

.user-chip > .icon {
  width: 14px;
  height: 14px;
  color: var(--ink-500);
}

.menu-button {
  display: none;
}

.page-content {
  width: 100%;
  max-width: 1600px;
  flex: 1;
  align-self: center;
  padding: 30px 38px 22px;
}

.demo-banner {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid #dceadd;
  border-radius: 9px;
  background: #f0f7f0;
  color: #47664e;
  font-size: 11px;
}

.demo-banner > .icon {
  width: 16px;
  height: 16px;
  color: #4b815a;
}

.demo-banner > span {
  flex: 1;
}

.demo-banner strong {
  font-weight: 700;
}

.demo-banner button,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.demo-banner button .icon,
.text-button .icon {
  width: 14px;
  height: 14px;
}

.welcome-row,
.page-heading--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #7d8d9c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.wave {
  display: inline-block;
  color: #64a56d;
  font-size: 23px;
  vertical-align: 3px;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.55;
}

.date-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  font-size: 10px;
  white-space: nowrap;
}

.date-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--green-700);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 25px;
}

.stats-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  min-height: 126px;
  padding: 17px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-card__label {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 550;
}

.stat-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
}

.stat-icon .icon {
  width: 16px;
  height: 16px;
}

.stat-icon--blue,
.stat-icon--green,
.stat-icon--amber,
.stat-icon--violet {
  background: var(--blue-100);
  color: var(--blue-700);
}

.stat-card__value {
  margin-top: 11px;
  color: var(--navy-950);
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.stat-card__note {
  margin-top: 3px;
  color: #8a98a5;
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 15px;
  margin-top: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-grid > .panel {
  min-height: 230px;
  padding: 19px 20px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.panel-heading__accent {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.panel-heading__accent .icon {
  width: 16px;
  height: 16px;
}

.department-list {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.department-item__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 11px;
}

.department-item__label strong {
  margin-left: auto;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 650;
}

.department-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--blue-700);
}

.department-dot--1 {
  background: #54a583;
}

.department-dot--2 {
  background: #e0a84f;
}

.department-dot--3 {
  background: #847ab7;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  margin: 8px 0 0 16px;
  border-radius: 6px;
  background: #edf1f5;
}

.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
}

.progress-bar--1 {
  background: #54a583;
}

.progress-bar--2 {
  background: #e0a84f;
}

.progress-bar--3 {
  background: #847ab7;
}

.anniversary-list,
.recent-list {
  display: grid;
  margin-top: 13px;
}

.anniversary-item,
.recent-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
}

.anniversary-item:last-child,
.recent-item:last-child {
  border-bottom: 0;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #edf2fa;
  color: #55719a;
  font-size: 10px;
  font-weight: 700;
}

.avatar--1 {
  background: #e8f3eb;
  color: #4b805b;
}

.avatar--2 {
  background: #fbf0e5;
  color: #a36e35;
}

.avatar--3 {
  background: #f0edfa;
  color: #756a9b;
}

.avatar--4 {
  background: #e7f3f4;
  color: #3c7d81;
}

.anniversary-item__info,
.recent-item__info {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.anniversary-item__info strong,
.recent-item__info strong {
  overflow: hidden;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anniversary-item__info span,
.recent-item__info span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.days-pill {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f0f6ef;
  color: #557a54;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill--green {
  background: var(--green-100);
  color: var(--green-700);
}

.status-pill--muted {
  background: #f0f2f5;
  color: #697989;
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58a372;
}

.recent-panel .panel-heading {
  align-items: center;
}

.recent-panel .recent-list {
  margin-top: 7px;
}

.shortcut-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.shortcut {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fafbfd;
  color: var(--ink-700);
  text-align: left;
}

.shortcut:hover {
  border-color: var(--line);
  background: #fff;
}

.shortcut > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}

.shortcut strong {
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 650;
}

.shortcut small {
  color: var(--ink-500);
  font-size: 9px;
}

.shortcut > .icon {
  width: 15px;
  height: 15px;
  color: #92a0ad;
}

.shortcut__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
}

.shortcut__icon .icon {
  width: 16px;
  height: 16px;
}

.shortcut__icon--blue,
.shortcut__icon--green,
.shortcut__icon--amber {
  background: var(--blue-100);
  color: var(--blue-700);
}

.demo-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  color: #8997a3;
  font-size: 10px;
}

.demo-note .icon {
  width: 14px;
  height: 14px;
  color: #71957a;
}

.page-heading {
  margin-bottom: 22px;
}

.page-heading--with-action {
  margin-bottom: 20px;
}

.page-heading--with-action .page-subtitle {
  margin-top: 7px;
}

.page-heading__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.import-preview-card {
  width: min(100%, 680px);
}

.import-preview-content {
  min-height: 0;
  overflow: auto;
  padding: 18px 2px;
}

.import-preview-content h3 {
  margin: 19px 0 9px;
  color: var(--navy-950);
  font-size: 13px;
}

.import-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.import-counts > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fbfd;
}

.import-counts span {
  color: var(--ink-500);
  font-size: 9px;
}

.import-counts strong {
  color: var(--blue-700);
  font-size: 20px;
}

.import-mapping {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 10px;
  line-height: 1.6;
}

.import-error[hidden] {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button--primary {
  background: var(--blue-700);
  color: #fff;
}

.button--primary:hover {
  background: var(--blue-600);
}

.button--secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-700);
}

.button--secondary:hover {
  background: #f8fafc;
}

.button--small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 10px;
}

.button--full {
  width: 100%;
}

.directory-panel {
  overflow: hidden;
}

.directory-toolbar {
  display: flex;
  min-height: 69px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 19px;
  border-bottom: 1px solid var(--line);
}

.directory-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 19px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 11px;
}

.directory-filters select {
  min-width: 210px;
  min-height: 35px;
  padding: 0 9px;
  border: 1px solid #dce4eb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font: inherit;
}

.search-box {
  display: flex;
  width: min(430px, 70%);
  height: 37px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  background: #fff;
  color: #91a0ac;
}

.search-box:focus-within {
  border-color: #8db8d5;
  box-shadow: 0 0 0 3px rgb(28 121 187 / 9%);
}

.search-box .icon {
  width: 16px;
  height: 16px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 10px;
}

.search-box input::placeholder {
  color: #99a5b0;
}

.search-box input:focus-visible {
  outline: 0;
}

.results-count {
  color: var(--ink-500);
  font-size: 10px;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  height: 42px;
  padding: 0 15px;
  background: #f8fafc;
  color: #708091;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.data-table td {
  height: 57px;
  padding: 6px 15px;
  border-top: 1px solid #edf1f4;
  color: var(--ink-700);
  font-size: 10px;
}

.data-table tbody tr:hover {
  background: #fafcfd;
}

.person-cell {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 9px;
}

.person-cell > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.person-cell strong {
  color: var(--ink-900);
  font-size: 10px;
  font-weight: 640;
}

.person-cell small {
  color: #94a1ad;
  font-size: 9px;
}

.table-empty {
  padding: 34px 15px;
  color: var(--ink-500);
  font-size: 11px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 27px 12px;
  color: var(--ink-500);
  text-align: center;
}

.empty-state--large {
  padding: 72px 16px;
}

.empty-state__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #eff5f1;
  color: #578367;
}

.empty-state__icon .icon {
  width: 21px;
  height: 21px;
}

.empty-state strong {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
}

.empty-state > span:not(.empty-state__icon) {
  max-width: 340px;
  font-size: 10px;
  line-height: 1.6;
}

.empty-state .button {
  margin-top: 6px;
}

.indicator-panel {
  padding: 21px;
}

.indicator-panel .department-list {
  max-width: 680px;
  margin-top: 24px;
}

.population-heading h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.population-heading .page-subtitle {
  margin-top: 8px;
}

.population-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 130px 130px;
  align-items: end;
  gap: 16px;
  margin-top: 22px;
}

.population-filters label {
  display: grid;
  gap: 6px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 600;
}

.population-filters input,
.population-filters select,
.department-create-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-900);
  font-size: 11px;
}

.population-stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 17px 0;
}

.population-stat {
  display: grid;
  min-width: 0;
  min-height: 84px;
  align-content: space-between;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.population-stat span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.population-stat strong {
  color: var(--blue-700);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1;
}

.population-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.population-chart,
.population-bars,
.population-province {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.population-chart h2,
.population-bars h2,
.population-province h2 {
  margin: 0 0 13px;
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 600;
}

.population-chart-body {
  display: grid;
  min-height: 178px;
  grid-template-columns: minmax(145px, 1fr) minmax(130px, 0.9fr);
  align-items: center;
  gap: 12px;
}

.population-chart-circle {
  display: grid;
  width: min(100%, 170px);
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background: var(--population-chart);
}

.population-chart-circle--donut::before {
  display: grid;
  width: 48%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  content: "";
  grid-area: 1 / 1;
}

.population-chart-circle--donut > span {
  z-index: 1;
  color: var(--navy-950);
  font-size: 12px;
  grid-area: 1 / 1;
}

.population-legend {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.population-legend li,
.population-legend li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-600);
  font-size: 10px;
}

.population-legend li > span {
  justify-content: flex-start;
}

.population-legend strong {
  color: var(--ink-700);
  font-weight: 550;
}

.population-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--legend-color);
}

.population-bars-list {
  display: grid;
  gap: 12px;
  padding: 9px 2px;
}

.population-bar-row {
  display: grid;
  grid-template-columns: minmax(75px, 0.45fr) minmax(50px, 1fr) 30px;
  align-items: center;
  gap: 10px;
  color: var(--ink-600);
  font-size: 10px;
}

.population-bar-row > span {
  text-align: right;
}

.population-bar-row > div {
  height: 17px;
  overflow: hidden;
  border-radius: 5px;
  background: #f1f4f7;
}

.population-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
}

.population-bar--1 { background: #25a18e; }
.population-bar--2 { background: #f2a133; }
.population-bar--3 { background: #8065bd; }
.population-bar--4 { background: #df6276; }
.population-bar--5 { background: #74a8d4; }
.population-bar--6 { background: #a2aab4; }

.population-bar-row strong {
  color: var(--ink-700);
  font-weight: 550;
}

.population-province {
  grid-column: 1 / -1;
}

.population-province .table-wrap {
  max-height: 350px;
}

.people-disclosure,
.department-people {
  color: var(--ink-700);
  font-size: 11px;
}

.people-disclosure summary,
.department-people summary {
  color: var(--blue-700);
  cursor: pointer;
  font-weight: 600;
}

.people-disclosure ul,
.department-people ul {
  display: grid;
  max-height: 180px;
  gap: 5px;
  overflow: auto;
  margin: 7px 0 0;
  padding-left: 17px;
}

.department-people {
  margin-top: 11px;
}

.department-people ul {
  padding: 0;
  list-style: none;
}

.department-people li button {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink-700);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.department-people li button:hover {
  color: var(--blue-700);
}

.department-people li small {
  color: var(--ink-500);
}

.export-wizard {
  display: grid;
  gap: 22px;
  max-width: 980px;
  padding: 24px;
}

.export-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 0;
  border: 0;
}

.export-step > span,
.export-section-options legend > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
}

.export-step h2,
.export-section-options legend {
  margin: 2px 0 12px;
  color: var(--navy-950);
  font-size: 15px;
  font-weight: 700;
}

.export-step p {
  margin: -5px 0 14px;
  color: var(--ink-500);
  font-size: 11px;
}

.export-field {
  display: grid;
  max-width: 520px;
  gap: 6px;
  margin-top: 12px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 600;
}

.export-field select {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #dce4eb;
  border-radius: 7px;
  background: white;
  color: var(--ink-700);
  font: inherit;
}

.export-employee-picker {
  max-width: 600px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #dce4eb;
  border-radius: 8px;
}

.export-employee-picker legend {
  padding: 0 5px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 650;
}

.export-select-all,
.export-employee-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-700);
  font-size: 11px;
  line-height: 1.4;
}

.export-select-all {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.export-employee-list {
  display: grid;
  max-height: 240px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  overflow-y: auto;
  padding: 6px 0;
}

.export-employee-option {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.export-employee-option:hover {
  background: #f3f7fa;
}

.export-employee-option input,
.export-select-all input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue-700);
}

.export-employee-option span {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
}

.export-employee-option small {
  color: var(--ink-500);
  font-size: 9px;
}

.export-selection-count {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.export-section-options legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.export-section-options {
  display: block;
  min-width: 0;
}

.export-section-options > p {
  max-width: none;
  margin: 10px 0 14px;
  line-height: 1.5;
}

.export-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  padding-left: 44px;
}

.export-checkbox-grid label,
.export-sensitive-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-700);
  font-size: 11px;
  line-height: 1.5;
}

.export-checkbox-grid input,
.export-sensitive-confirm input {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--blue-700);
}

.export-sensitive-confirm {
  padding: 12px;
  border: 1px solid #edcf9d;
  border-radius: 8px;
  background: #fff9ed;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.export-privacy,
.export-demo-note {
  margin: -8px 0 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.export-privacy .icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

.export-demo-note {
  padding: 10px;
  border-radius: 7px;
  background: #f4f7fa;
}

.export-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
}

.department-create-form {
  display: flex;
  width: min(100%, 420px);
  align-items: center;
  gap: 8px;
}

.department-create-form .button {
  flex: 0 0 auto;
}

.department-delete {
  margin-top: 8px;
  color: var(--red-700);
}

.module-table-panel {
  margin-top: 17px;
  padding: 18px;
}

.vacation-requests-panel {
  overflow: hidden;
}

.vacation-requests-heading {
  align-items: center;
  margin-bottom: 14px;
}

.vacation-request-filter {
  display: grid;
  min-width: 155px;
  gap: 5px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 600;
}

.vacation-request-filter select,
.vacation-request-status,
.vacation-request-reason {
  min-height: 34px;
  border: 1px solid #dce3e9;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font: inherit;
}

.vacation-request-filter select {
  padding: 0 10px;
}

.vacation-requests-table {
  min-width: 1120px;
}

.vacation-request-comment {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vacation-request-status {
  min-width: 112px;
  padding: 0 7px;
}

.vacation-request-reason {
  width: 190px;
  padding: 0 8px;
}

.vacation-request-save {
  min-height: 32px;
  padding: 0 11px;
}

.vacation-request-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vacation-request-delete {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #efcece;
  border-radius: 7px;
  background: #fff;
  color: var(--red-700);
  font: inherit;
}

.vacation-request-delete:hover {
  background: #fff6f6;
}

.vacation-requests-notice {
  margin: 10px 0 0;
  padding: 13px 14px;
  border-radius: 8px;
  background: #f5f8fa;
  color: var(--ink-500);
  font-size: 12px;
}

.table-secondary {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.profile-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.department-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.department-card {
  display: grid;
  min-height: 163px;
  justify-items: start;
  align-content: start;
  padding: 17px;
}

.department-card__icon,
.department-card__icon--1,
.department-card__icon--2,
.department-card__icon--3 {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
}


.department-card__icon .icon {
  width: 17px;
  height: 17px;
}

.department-card__count {
  margin-top: 18px;
  color: #718293;
  font-size: 10px;
}

.department-card h2 {
  margin: 6px 0 0;
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 680;
}

.department-card p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.coming-soon {
  display: grid;
  min-height: 330px;
  justify-items: center;
  align-content: center;
  padding: 30px;
  text-align: center;
}

.coming-soon__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.coming-soon__icon .icon {
  width: 24px;
  height: 24px;
}

.coming-soon__label {
  margin-top: 17px;
  color: var(--green-700);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coming-soon h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.coming-soon p {
  max-width: 410px;
  margin: 9px 0 17px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.7;
}

.alert {
  margin: 15px 0;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 11px;
}

.alert--error {
  border: 1px solid #f2d3d3;
  background: var(--red-100);
  color: var(--red-700);
}

.app-footer {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 38px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #91a0ad;
  font-size: 9px;
}

.footer-heart {
  color: #8db487;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  padding: 20px;
  background: rgb(13 29 44 / 52%);
  backdrop-filter: blur(3px);
}

.modal-card {
  display: flex;
  width: min(100%, 1120px);
  max-height: calc(100vh - 40px);
  flex-direction: column;
  padding: 23px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.employee-modal-card {
  height: min(92vh, 900px);
  height: min(92dvh, 900px);
  min-height: min(620px, calc(100vh - 40px));
  min-height: min(620px, calc(100dvh - 40px));
}

.employee-profile-modal {
  width: min(100%, 1280px);
  height: min(88vh, 900px);
  height: min(88dvh, 900px);
  min-height: min(560px, calc(100vh - 40px));
  min-height: min(560px, calc(100dvh - 40px));
  overflow: hidden;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.modal-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal-heading p:last-child {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.employee-form {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding-top: 17px;
}

.employee-tab-nav,
.employee-subtab-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.employee-tab {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 620;
  white-space: nowrap;
}

.employee-tab:hover,
.employee-subtab:hover {
  color: var(--blue-700);
}

.employee-tab--active {
  border-bottom-color: var(--blue-700);
  color: var(--blue-700);
}

.employee-tab-content {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 18px 3px;
}

.employee-profile-modal .employee-tab-nav {
  flex: 0 0 auto;
}

.employee-profile-modal .profile-tab-content {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.employee-modal-card .modal-actions {
  flex: 0 0 auto;
}

.employee-tab-panel[hidden],
.employee-intake-panel[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-grid label,
.employee-field,
.form-stack label {
  display: grid;
  gap: 6px;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 630;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.form-stack input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dce4eb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-900);
  font-size: 11px;
}

.form-grid textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
}

.employee-field--wide {
  grid-column: 1 / -1;
}

.form-grid input::placeholder {
  color: #a3aeb8;
}

.employee-subtab {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-500);
  font-size: 10px;
  white-space: nowrap;
}

.employee-subtab--active {
  border-bottom-color: var(--blue-600);
  color: var(--blue-700);
}

.employee-intake-panel {
  padding: 15px 3px 3px;
}

.intake-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #aeb9a3;
  background: #fff;
}

.intake-form-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink-900);
  font-size: 11px;
}

.intake-form-table th,
.intake-form-table td {
  padding: 8px 10px;
  border: 1px solid #d1d8cd;
  text-align: left;
  vertical-align: middle;
}

.intake-form-table thead th {
  padding: 9px 11px;
  background: #b6d59f;
  color: #20341a;
  font-size: 13px;
  font-weight: 700;
}

.intake-form-table tbody th {
  width: 34%;
  min-width: 190px;
  background: #f7f9f5;
  font-weight: 650;
}

.intake-form-table__reference td {
  background: #f5f7f3;
  color: var(--ink-700);
}

.intake-form-table__section th {
  width: auto;
  min-width: 0;
  background: #e8eee3;
  color: var(--ink-800);
  font-weight: 700;
}

.intake-control {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d2dcd0;
  border-radius: 5px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
}

.intake-control--textarea {
  min-height: 78px;
  resize: vertical;
}

.intake-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.intake-choice-grid--checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
}

.intake-choice {
  display: inline-flex;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 500;
}

.intake-choice input {
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--blue-700);
}

.intake-choice span {
  overflow-wrap: anywhere;
}

.employee-sensitive-note,
.employee-files-copy,
.employee-form-hint {
  margin: 0 0 14px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.employee-record-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.employee-record-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--ink-500);
  font-size: 10px;
  text-align: center;
}

.employee-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-panel-heading h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 15px;
}

.employee-panel-heading p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.employee-record-entry {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.employee-record-entry legend {
  padding: 0 6px;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 650;
}

.employee-record-remove {
  margin-top: 10px;
  color: var(--red-700);
}

.directory-hint {
  margin: 12px 20px 0;
  color: var(--ink-500);
  font-size: 10px;
}

#employee-rows tr {
  cursor: pointer;
}

#employee-rows tr:hover {
  background: #f5f9fc;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-detail {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.profile-detail span,
.profile-file-list span {
  color: var(--ink-500);
  font-size: 10px;
}

.profile-detail strong {
  overflow-wrap: anywhere;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 600;
}

.profile-tab-content .employee-tab-panel:not([hidden]) {
  padding: 3px;
}

.profile-tab-content .employee-record-entry h4 {
  margin: 0 0 12px;
  color: var(--ink-700);
  font-size: 12px;
}

.profile-loading {
  padding: 32px 12px;
  color: var(--ink-500);
  font-size: 12px;
  text-align: center;
}

.profile-file-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-file-list a {
  overflow-wrap: anywhere;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 600;
}

.employee-file-picker {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 18px;
  border: 1px dashed #b9cbd8;
  border-radius: 10px;
  background: #f8fbfd;
  color: var(--ink-700);
  font-size: 11px;
}

.employee-file-picker input {
  max-width: 100%;
  font-size: 10px;
}

.training-attendance {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.attendance-controls,
.attendance-new-training {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.attendance-new-training {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfd;
}

.attendance-new-training label {
  color: var(--ink-700);
  font-size: 11px;
}

.attendance-new-training input {
  min-height: 38px;
  min-width: min(320px, 100%);
  padding: 0 10px;
  border: 1px solid #cbd9e5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
}

.attendance-date,
.attendance-training {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 11px;
}

.attendance-date input,
.attendance-training select,
.attendance-table select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd9e5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
}

.attendance-training select {
  max-width: min(620px, calc(100vw - 150px));
}

.attendance-new-training label {
  flex-basis: 100%;
}

.attendance-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.attendance-filters button {
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 600;
}

.attendance-filters button:hover,
.attendance-filters .attendance-filter--active {
  background: var(--blue-700);
  color: #fff;
}

.attendance-summary {
  padding: 5px 8px;
  background: #f2f6fa;
  color: var(--ink-700);
  font-size: 11px;
}

.attendance-table-wrap {
  max-height: min(64vh, 660px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.attendance-table {
  min-width: 640px;
}

.attendance-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #edf3f8;
}

.attendance-table td {
  padding: 4px 8px;
}

.attendance-table select {
  width: 100%;
}

.employee-selected-files {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  color: var(--ink-700);
  font-size: 10px;
}

.employee-selected-files span {
  color: var(--ink-500);
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 16px 0;
  color: #738674;
  font-size: 9px;
  line-height: 1.55;
}

.form-privacy .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: flex;
  max-width: min(420px, calc(100vw - 36px));
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid #d9e7dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(18 40 59 / 15%);
  color: var(--ink-700);
  font-size: 11px;
  animation: toast-in 180ms ease-out;
}

.toast--error {
  border-color: #efcece;
}

.toast .icon {
  width: 16px;
  height: 16px;
  color: var(--green-700);
}

.toast--error .icon {
  color: var(--red-700);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 20% 15%, rgb(120 170 130 / 13%), transparent 38%),
    radial-gradient(ellipse at 90% 90%, rgb(65 134 181 / 13%), transparent 36%),
    #f1f5f8;
}

.login-card {
  width: min(100%, 390px);
  padding: 30px;
  border: 1px solid #e4ebf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 50px rgb(24 49 75 / 9%);
}

.brand--login {
  margin: 0 0 36px;
  padding: 0;
  color: var(--navy-950);
}

.brand--login .brand__mark {
  width: 47px;
  height: 47px;
}

.brand--login > span:last-child {
  display: grid;
  gap: 5px;
}

.brand--login strong {
  color: var(--navy-950);
}

.brand--login small {
  color: var(--ink-500);
  font-size: 10px;
}

.login-card h1 {
  font-size: 27px;
}

.form-stack {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.login-security {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 17px 0 0;
  color: #809181;
  font-size: 9px;
}

.login-security .icon {
  width: 14px;
  height: 14px;
}

.mobile-backdrop {
  display: none;
}

@media (min-width: 1500px) {
  .page-content {
    padding-top: 38px;
  }
}

@media (max-width: 1120px) {
  .sidebar {
    width: 235px;
  }

  .main-column {
    width: calc(100% - 235px);
    margin-left: 235px;
  }

  .topbar {
    padding: 0 25px;
  }

  .page-content {
    padding: 26px 25px 20px;
  }

  .app-footer {
    padding: 0 25px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .population-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .population-chart-body {
    grid-template-columns: 1fr;
  }

  .population-chart-circle {
    width: min(100%, 150px);
  }

  .department-create-form {
    width: 100%;
  }

  .stat-card {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    width: 258px;
    transform: translateX(-102%);
    transition: transform 200ms ease;
  }

  .sidebar--open {
    transform: translateX(0);
  }

  .mobile-backdrop.is-visible {
    position: fixed;
    z-index: 19;
    inset: 0;
    display: block;
    border: 0;
    background: rgb(13 29 44 / 42%);
  }

  .main-column {
    width: 100%;
    margin-left: 0;
  }

  .menu-button {
    display: grid;
  }

  .topbar {
    justify-content: flex-start;
    gap: 14px;
    padding: 0 19px;
  }

  .topbar-actions {
    gap: 11px;
    margin-left: auto;
  }

  .topbar-date,
  .topbar-divider:first-of-type,
  .user-chip > .icon {
    display: none;
  }

  .page-content {
    padding: 24px 19px 19px;
  }

  .app-footer {
    padding: 0 19px;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 59px;
    gap: 10px;
    padding: 0 13px;
  }

  .breadcrumbs {
    gap: 5px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .breadcrumbs strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .breadcrumbs > span:first-child {
    display: none;
  }

  .breadcrumbs > .icon {
    display: none;
  }

  .topbar-actions {
    gap: 9px;
  }

  .topbar-divider {
    display: none;
  }

  .user-chip {
    gap: 6px;
  }

  .user-chip__avatar {
    width: 31px;
    height: 31px;
  }

  .user-chip > span:nth-child(2) {
    display: none;
  }

  .page-content {
    padding: 21px 14px 17px;
  }

  .demo-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 10px;
  }

  .demo-banner > span {
    flex: 1 1 calc(100% - 32px);
  }

  .demo-banner button {
    margin-left: 25px;
  }

  .welcome-row {
    align-items: flex-start;
  }

  h1 {
    font-size: 25px;
  }

  .page-subtitle {
    font-size: 11px;
  }

  .date-chip {
    min-height: 30px;
    gap: 5px;
    padding: 0 7px;
    font-size: 9px;
  }

  .date-chip .icon {
    width: 13px;
    height: 13px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 19px;
  }

  .stat-card {
    min-height: 111px;
    padding: 12px;
  }

  .stat-card__label {
    font-size: 10px;
  }

  .stat-card__value {
    margin-top: 8px;
    font-size: 25px;
  }

  .stat-card__note {
    font-size: 9px;
  }

  .stat-icon {
    width: 27px;
    height: 27px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .dashboard-grid > .panel {
    min-height: auto;
    padding: 15px;
  }

  .department-list {
    gap: 13px;
    margin-top: 19px;
  }

  .anniversary-item,
  .recent-item {
    padding: 8px 0;
  }

  .demo-note {
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.55;
  }

  .demo-note .icon {
    flex: 0 0 auto;
  }

  .page-heading--with-action {
    align-items: flex-start;
  }

  .page-heading--with-action .button {
    min-height: 35px;
    gap: 5px;
    padding: 0 9px;
    font-size: 9px;
  }

  .page-heading--with-action .button .icon {
    width: 14px;
    height: 14px;
  }

  .page-heading__actions {
    gap: 5px;
  }

  .import-counts {
    grid-template-columns: 1fr 1fr;
  }

  .import-counts > div {
    padding: 9px;
  }

  .directory-toolbar {
    min-height: 60px;
    padding: 0 12px;
  }

  .directory-filters {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 12px;
  }

  .directory-filters select {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .results-count {
    font-size: 9px;
  }

  .data-table th,
  .data-table td {
    padding-right: 11px;
    padding-left: 11px;
  }

  .department-cards {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .population-filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .population-filters label:first-child {
    grid-column: 1 / -1;
  }

  .population-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .population-charts {
    grid-template-columns: 1fr;
  }

  .population-province {
    grid-column: auto;
  }

  .department-create-form {
    align-items: stretch;
    flex-direction: column;
  }

  .export-wizard {
    padding: 16px;
  }

  .export-checkbox-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .export-employee-list {
    grid-template-columns: 1fr;
  }

  .export-actions {
    flex-direction: column;
  }

  .profile-heading-actions .button {
    padding: 0 8px;
    font-size: 9px;
  }

  .department-card {
    min-height: 145px;
    padding: 13px;
  }

  .app-footer {
    min-height: 42px;
    padding: 0 14px;
    font-size: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .intake-form-table {
    min-width: 580px;
  }

  .intake-form-table tbody th {
    min-width: 170px;
  }

  .intake-choice-grid--checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attendance-table-wrap {
    max-height: 60vh;
  }

  .profile-details-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .modal-backdrop {
    place-items: end center;
    padding: 8px;
  }

  .modal-card {
    max-height: calc(100vh - 16px);
    overflow: hidden;
    padding: 18px;
    border-radius: 15px;
  }

  .employee-modal-card {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .employee-profile-modal {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .employee-modal-card .modal-actions {
    position: static;
    margin: 0;
    padding: 12px 0 0;
  }

  .employee-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions {
    position: sticky;
    bottom: -18px;
    margin: 0 -18px -18px;
    padding: 12px 18px 16px;
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
