/* ===================== design tokens (from the logo) ===================== */
:root {
  --hr-navy: #00407B;
  --hr-navy-dark: #00305E;
  --hr-navy-tint: #E7EEF6;
  --hr-orange: #F8801A;
  --hr-orange-tint: #FEF1E3;
  --hr-orange-ink: #8A4100;
  --hr-ink: #0F2137;
  --hr-ink-soft: #33445A;
  --hr-muted: #5B6B80;
  --hr-bg: #F4F6FA;
  --hr-surface: #FFFFFF;
  --hr-surface-alt: #F8FAFC;
  --hr-border: #E1E6EE;
  --hr-border-strong: #C9D2DE;
  --hr-radius: 14px;
  --hr-radius-sm: 10px;
  --hr-font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--hr-bg);
}

a {
  color: var(--hr-navy);
}

a:hover {
  color: var(--hr-navy-dark);
}

/* ===================== app shell ===================== */
body.app-body {
  font-family: var(--hr-font);
  color: var(--hr-ink);
  font-size: 15px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 264px;
  width: 264px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px 16px;
  background: var(--hr-surface);
  border-right: 1px solid var(--hr-border);
}

.app-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
}

.app-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.app-nav-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--hr-border-strong);
  border-radius: var(--hr-radius-sm);
  background: var(--hr-surface);
}

.app-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--hr-ink);
}

.app-nav {
  flex-direction: column;
  flex-grow: 1;
  gap: 20px;
}

.app-nav-list,
.app-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav-heading {
  padding: 16px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-muted);
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--hr-radius-sm);
  color: var(--hr-ink-soft);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.app-nav-link:hover {
  background: var(--hr-bg);
  color: var(--hr-ink);
}

.app-nav-link.active {
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
  font-weight: 600;
}

.app-nav-link.active-parent {
  color: var(--hr-navy);
  font-weight: 600;
}

.app-nav-link:focus-visible,
.app-subnav-link:focus-visible,
.app-nav-toggle:focus-visible {
  outline: 2px solid var(--hr-navy);
  outline-offset: 2px;
}

.app-nav-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* icon images live here (not inline) because the CSP forbids style attributes */
.app-icon-house-door {
  -webkit-mask-image: url("../images/house-door.svg");
  mask-image: url("../images/house-door.svg");
}

.app-icon-table {
  -webkit-mask-image: url("../images/table.svg");
  mask-image: url("../images/table.svg");
}

.app-icon-file-person {
  -webkit-mask-image: url("../images/file-person.svg");
  mask-image: url("../images/file-person.svg");
}

.app-icon-journal-bookmark-fill {
  -webkit-mask-image: url("../images/journal-bookmark-fill.svg");
  mask-image: url("../images/journal-bookmark-fill.svg");
}

.app-icon-calendar3 {
  -webkit-mask-image: url("../images/calendar3.svg");
  mask-image: url("../images/calendar3.svg");
}

.app-icon-bullseye {
  -webkit-mask-image: url("../images/bullseye.svg");
  mask-image: url("../images/bullseye.svg");
}

.app-icon-person-fill-up {
  -webkit-mask-image: url("../images/person-fill-up.svg");
  mask-image: url("../images/person-fill-up.svg");
}

.app-icon-mortarboard {
  -webkit-mask-image: url("../images/mortarboard.svg");
  mask-image: url("../images/mortarboard.svg");
}

.app-icon-buildings {
  -webkit-mask-image: url("../images/buildings.svg");
  mask-image: url("../images/buildings.svg");
}

.app-icon-archive {
  -webkit-mask-image: url("../images/archive.svg");
  mask-image: url("../images/archive.svg");
}

.app-icon-person-arms-up {
  -webkit-mask-image: url("../images/person-arms-up.svg");
  mask-image: url("../images/person-arms-up.svg");
}

.app-icon-patch-question {
  -webkit-mask-image: url("../images/patch-question.svg");
  mask-image: url("../images/patch-question.svg");
}

.app-icon-box-arrow-right {
  -webkit-mask-image: url("../images/box-arrow-right.svg");
  mask-image: url("../images/box-arrow-right.svg");
}

/* chevron on collapsible menu groups */
.app-nav-toggle-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  margin-right: 4px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.app-nav-toggle-link[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.app-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px 21px;
  padding-left: 12px;
  border-left: 1px solid var(--hr-border-strong);
}

.app-subnav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--hr-ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.app-subnav-link:hover {
  background: var(--hr-bg);
  color: var(--hr-ink);
}

.app-subnav-link.active {
  color: var(--hr-navy);
  font-weight: 600;
}

.app-subnav-link.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hr-orange);
}

.app-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 32px;
  background: var(--hr-surface);
  border-bottom: 1px solid var(--hr-border);
}

.app-topbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.app-topbar-left > div {
  padding: 0 !important;
}

.app-topbar-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--hr-muted);
}

.app-user {
  margin-left: auto;
}

.app-user-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 8px 4px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hr-ink);
  text-align: right;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.app-user-toggle:hover,
.app-user-toggle[aria-expanded="true"] {
  background: var(--hr-bg);
}

.app-user-toggle:focus-visible {
  outline: 2px solid var(--hr-navy);
  outline-offset: 2px;
}

.app-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.app-user-caret {
  width: 7px;
  height: 7px;
  margin: 0 4px 3px 2px;
  border-right: 1.75px solid var(--hr-muted);
  border-bottom: 1.75px solid var(--hr-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.app-user-toggle[aria-expanded="true"] .app-user-caret {
  transform: translateY(3px) rotate(-135deg);
}

.app-user-menu {
  min-width: 248px;
  margin-top: 6px !important;
  padding: 6px;
  border: 1px solid var(--hr-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 33, 55, 0.14);
  font-size: 14.5px;
}

.app-user-menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 6px;
}

.app-user-menu-name {
  font-weight: 600;
}

.app-user-menu-mail {
  font-size: 13px;
  color: var(--hr-muted);
  word-break: break-all;
}

.app-user-menu .dropdown-divider {
  margin: 6px 0;
  border-top-color: var(--hr-border);
}

.app-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--hr-ink-soft);
  font-weight: 500;
}

.app-user-menu-item:hover,
.app-user-menu-item:focus {
  background: var(--hr-bg);
  color: var(--hr-ink);
}

.app-user-menu-item:active {
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
}

.app-user-menu-hint {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: #F0F3F8;
  color: var(--hr-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.app-user-name {
  font-size: 14px;
  font-weight: 600;
}

.app-user-meta {
  font-size: 13px;
  color: var(--hr-muted);
}

.app-user-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--hr-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--hr-surface), 0 0 0 4px var(--hr-orange);
}

.app-content {
  flex-grow: 1;
  min-width: 0;
  padding: 28px 32px 48px;
}

@media (max-width: 991.98px) {
  .app-shell {
    flex-direction: column;
  }

  .app-sidebar {
    position: static;
    flex: none;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--hr-border);
  }

  .app-logo img {
    width: 140px;
  }

  .app-nav.show,
  .app-nav.collapsing {
    padding-bottom: 8px;
  }

  .app-topbar {
    padding: 10px 16px;
  }

  .app-content {
    padding: 20px 16px 40px;
    overflow-x: auto;
  }
}

/* ===================== page content ===================== */
.app-content h1 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-content h2 {
  font-size: 21px;
  font-weight: 600;
}

.app-content h3 {
  font-size: 18px;
  font-weight: 600;
}

.app-content h4 {
  font-size: 17px;
  font-weight: 600;
}

.app-content h5 {
  font-size: 16px;
  font-weight: 600;
}

.table-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: none;
  color: var(--hr-ink);
  font-size: 18px;
  font-weight: 600;
}

.table-headline::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--hr-navy);
}

.app-content .flash-msg,
.flash-msg {
  display: block;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--hr-radius-sm);
  background: var(--hr-orange-tint);
  color: var(--hr-orange-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

/* ===================== tables ===================== */
.app-content .table {
  --bs-table-bg: var(--hr-surface);
  --bs-table-striped-bg: var(--hr-surface-alt);
  --bs-table-hover-bg: #EEF3F9;
  --bs-table-striped-color: var(--hr-ink);
  --bs-table-hover-color: var(--hr-ink);
  color: var(--hr-ink);
  border: 1px solid var(--hr-border);
  border-color: var(--hr-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  font-size: 14.5px;
}

.app-content .table > :not(caption) > * > * {
  padding: 11px 14px;
  vertical-align: middle;
}

.app-content .table > :not(:last-child) > :last-child > * {
  border-bottom-color: var(--hr-border);
}

.app-content .table > thead > tr > th {
  background-color: var(--hr-surface-alt);
  box-shadow: none;
  color: var(--hr-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-content .table > thead > tr > th[data-column] {
  cursor: pointer;
}

.app-content .table > :last-child > tr:last-child > * {
  border-bottom-width: 0;
}

.app-content .table > :first-child > tr:first-child > :first-child {
  border-top-left-radius: 11px;
}

.app-content .table > :first-child > tr:first-child > :last-child {
  border-top-right-radius: 11px;
}

.app-content .table > :last-child > tr:last-child > :first-child {
  border-bottom-left-radius: 11px;
}

.app-content .table > :last-child > tr:last-child > :last-child {
  border-bottom-right-radius: 11px;
}

.app-content .table .table-info {
  --bs-table-bg: var(--hr-navy-tint);
  --bs-table-striped-bg: var(--hr-navy-tint);
  --bs-table-hover-bg: var(--hr-navy-tint);
  color: var(--hr-navy);
  border-color: var(--hr-border);
  font-weight: 600;
}

/* column filter inputs in table headers */
.app-content .table thead input[type="text"] {
  width: 100%;
  min-width: 56px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--hr-border-strong);
  border-radius: 8px;
  background: var(--hr-surface);
  color: var(--hr-ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.app-content .table thead input[type="text"]:focus {
  outline: 2px solid var(--hr-navy);
  outline-offset: 0;
  border-color: var(--hr-navy);
}

.app-content .table thead input[type="text"]:disabled {
  visibility: hidden;
}

/* ===================== Bootstrap components, re-themed ===================== */
.btn {
  border-radius: var(--hr-radius-sm);
  font-weight: 600;
}

.btn-sm {
  border-radius: 8px;
}

.btn-primary {
  background-color: var(--hr-navy);
  border-color: var(--hr-navy);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--hr-navy-dark);
  border-color: var(--hr-navy-dark);
  color: #ffffff;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--hr-navy);
  border-color: var(--hr-navy);
}

.btn-secondary {
  background-color: var(--hr-navy-tint);
  border-color: var(--hr-navy-tint);
  color: var(--hr-navy);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
  background-color: #D5E1EF;
  border-color: #D5E1EF;
  color: var(--hr-navy-dark);
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: var(--hr-navy-tint);
  border-color: var(--hr-navy-tint);
  color: var(--hr-navy);
}

.btn-outline-secondary {
  border-color: var(--hr-border-strong);
  color: var(--hr-ink-soft);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
  background-color: #EEF2F7;
  border-color: var(--hr-border-strong);
  color: var(--hr-ink);
}

.btn-warning {
  background-color: var(--hr-orange);
  border-color: var(--hr-orange);
  color: #1A1206;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #E27110;
  border-color: #E27110;
  color: #1A1206;
}

.btn-outline-warning {
  border-color: var(--hr-orange);
  color: var(--hr-orange-ink);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
  background-color: var(--hr-orange);
  border-color: var(--hr-orange);
  color: #1A1206;
}

.btn-link {
  color: var(--hr-navy);
  font-weight: 500;
}

.btn-link:hover {
  color: var(--hr-navy-dark);
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-outline-secondary:focus,
.btn-check:focus + .btn-primary {
  box-shadow: 0 0 0 0.2rem rgba(0, 64, 123, 0.28);
}

.btn-warning:focus,
.btn-outline-warning:focus {
  box-shadow: 0 0 0 0.2rem rgba(248, 128, 26, 0.35);
}

.form-control,
.form-select {
  border-color: var(--hr-border-strong);
  border-radius: var(--hr-radius-sm);
  color: var(--hr-ink);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--hr-navy);
  box-shadow: 0 0 0 0.2rem rgba(0, 64, 123, 0.18);
}

.form-check-input:checked {
  background-color: var(--hr-navy);
  border-color: var(--hr-navy);
}

.form-label {
  font-weight: 600;
  font-size: 14px;
}

.text-primary {
  color: var(--hr-navy) !important;
}

.bg-primary {
  background-color: var(--hr-navy) !important;
}

.page-link {
  color: var(--hr-navy);
  border-color: var(--hr-border);
}

.page-link:hover {
  color: var(--hr-navy-dark);
  background-color: var(--hr-navy-tint);
  border-color: var(--hr-border);
}

.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 64, 123, 0.18);
}

.page-item.active .page-link {
  background-color: var(--hr-navy);
  border-color: var(--hr-navy);
  color: #ffffff;
}

.modal-content {
  border: 0;
  border-radius: var(--hr-radius);
  box-shadow: 0 20px 50px rgba(15, 33, 55, 0.22);
}

.modal-header,
.modal-footer {
  border-color: var(--hr-border);
}

.card {
  border-color: var(--hr-border);
  border-radius: var(--hr-radius);
}

/* ===================== shared brand tokens ===================== */
:root {
  --brand-start: #00407B;
  --brand-end: #0B5AA3;
  --brand-ink: #0F2137;
  --brand-muted: #5B6B80;
}

/* ===================== 404 error pages ===================== */
body.error-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, #e9f0f8 0%, #f6f8fb 45%, #ffffff 100%);
  color: var(--brand-ink);
  padding: 24px;
  overflow-x: hidden;
}

.error-content-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.error-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.error-blob.one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.error-blob.two {
  width: 360px;
  height: 360px;
  bottom: -140px;
  right: -100px;
  background: linear-gradient(135deg, #F8801A, #FBB36B);
}

.error-card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(31, 36, 48, 0.12), 0 2px 8px rgba(31, 36, 48, 0.06);
  animation: error-card-rise 0.5s ease-out;
}

@keyframes error-card-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.error-logo img {
  height: 40px;
  opacity: 0.9;
}

.error-icon {
  width: 72px;
  height: 72px;
  margin: 8px auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 64, 123, 0.10), rgba(0, 64, 123, 0.10));
}

.error-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--brand-start);
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.error-title {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 10px;
  color: var(--brand-ink);
}

.error-subtitle {
  font-size: 15px;
  color: var(--brand-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-brand-primary {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #ffffff;
  border: none;
  padding: 11px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(0, 64, 123, 0.25);
  display: inline-block;
}

.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 64, 123, 0.32);
  color: #ffffff;
}

.btn-brand-ghost {
  background: #f3f4f8;
  color: var(--brand-ink);
  border: none;
  padding: 11px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.btn-brand-ghost:hover {
  background: #e9eaf2;
  transform: translateY(-2px);
  color: var(--brand-ink);
}

@media (max-width: 480px) {
  .error-card {
    padding: 40px 24px;
  }
  .error-code {
    font-size: 72px;
  }
}

/* ===================== landing page ===================== */
body.landing-page {
  margin: 0;
  min-height: 100vh;
  background: var(--hr-surface);
  font-family: var(--hr-font);
  color: var(--hr-ink);
  font-size: 16px;
  line-height: 1.55;
}

.landing-container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.landing-header {
  border-bottom: 1px solid var(--hr-border);
}

.landing-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.landing-header-inner img {
  display: block;
  height: auto;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

.landing-btn:hover {
  transform: translateY(-1px);
}

.landing-btn:focus-visible {
  outline: 2px solid var(--hr-navy);
  outline-offset: 3px;
}

.landing-btn-sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--hr-radius-sm);
  font-size: 14.5px;
}

.landing-btn-primary {
  background: var(--hr-navy);
  color: #ffffff;
}

.landing-btn-primary:hover {
  background: var(--hr-navy-dark);
  color: #ffffff;
}

.landing-btn-accent {
  background: var(--hr-orange);
  color: #1A1206;
}

.landing-btn-accent:hover {
  background: #E27110;
  color: #1A1206;
}

.landing-btn-outline {
  border-color: var(--hr-border-strong);
  background: var(--hr-surface);
  color: var(--hr-ink);
}

.landing-btn-outline:hover {
  background: var(--hr-bg);
  color: var(--hr-ink);
}

.landing-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.landing-hero-text {
  flex: 3 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hr-orange-tint);
  color: var(--hr-orange-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.landing-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hr-orange);
}

.landing-title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--hr-navy-dark);
}

.landing-subtitle {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  color: #45566B;
}

.landing-flash-wrap,
.landing-alert {
  align-self: stretch;
  max-width: 560px;
}

.landing-flash-wrap .flash-msg {
  margin: 0 0 8px;
}

.landing-alert {
  padding: 14px 18px;
  border-radius: var(--hr-radius-sm);
  background: var(--hr-orange-tint);
  color: var(--hr-orange-ink);
  font-size: 15px;
  font-weight: 500;
}

.landing-alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.landing-alert-danger {
  background: #FDECEC;
  color: #A4201D;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.landing-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--hr-muted);
}

.landing-note a {
  font-weight: 600;
}

.landing-mark {
  flex: 2 1 280px;
  display: flex;
  justify-content: center;
}

.landing-mark svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.landing-features {
  padding: 56px 0 72px;
  background: var(--hr-bg);
  border-top: 1px solid var(--hr-border);
}

.landing-features-title {
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.landing-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
}

.landing-feature h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.landing-feature p {
  margin: 0;
  font-size: 15px;
  color: #45566B;
}

.landing-feature-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
}

.landing-feature-icon-accent {
  background: var(--hr-orange-tint);
  color: #A84E00;
}

.landing-feature-icon > span {
  position: absolute;
  inset: 11px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (max-width: 640px) {
  .landing-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .landing-hero {
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .landing-mark svg {
    max-width: 200px;
  }
}

/* ===================== login / register pages ===================== */
body.auth-page {
  margin: 0;
  background: var(--hr-surface);
  font-family: var(--hr-font);
  color: var(--hr-ink);
  font-size: 15px;
}

.auth-shell {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.auth-aside {
  position: relative;
  flex: 1 1 440px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: 64px 56px;
  background: var(--hr-navy);
  color: #ffffff;
}

.auth-aside-ring {
  position: absolute;
  top: -140px;
  right: -140px;
  width: 460px;
  height: 460px;
  border: 44px solid var(--hr-orange);
  border-radius: 50%;
}

.auth-aside-dot {
  position: absolute;
  top: 96px;
  right: 150px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
}

.auth-aside-title {
  position: relative;
  max-width: 460px;
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-aside-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: #E3ECF6;
}

.auth-aside-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-aside-list li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 8px;
  margin-bottom: 4px;
  border-left: 2.5px solid var(--hr-orange);
  border-bottom: 2.5px solid var(--hr-orange);
  transform: rotate(-45deg);
}

.auth-main {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  padding: 24px 40px 56px;
}

.auth-back-wrap {
  min-height: 44px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--hr-radius-sm);
  background: transparent;
  color: var(--hr-ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.auth-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.auth-back:hover {
  background: var(--hr-bg);
  color: var(--hr-ink);
}

.auth-back:focus-visible {
  outline: 2px solid var(--hr-navy);
  outline-offset: 2px;
}

.auth-card {
  flex-grow: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 32px 0;
}

.auth-logo {
  align-self: flex-start;
  margin: 0 0 28px -8px;
}

.auth-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--hr-muted);
}

.auth-card .form-control {
  height: 48px;
  padding: 0 14px;
}

.auth-card .form-control[type="file"] {
  height: auto;
  padding: 10px 14px;
}

.auth-card .btn-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
}

.auth-link {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
}

.auth-foot {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--hr-border);
  font-size: 14px;
  color: var(--hr-muted);
}

.auth-foot a {
  font-weight: 600;
}

@media (max-width: 919.98px) {
  .auth-aside {
    display: none;
  }

  .auth-main {
    padding: 16px 20px 40px;
  }
}

/* ===================== page header, section cards ===================== */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}

.app-content .page-head h1 {
  margin: 0;
}

.page-head-meta {
  min-height: 21px;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--hr-muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-card {
  margin-bottom: 24px;
  padding: 22px 24px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
}

.section-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.section-card-head .table-headline,
.upload-card .table-headline {
  margin: 0;
}

.section-card .table {
  margin-bottom: 0;
}

.table-headline-accent::before {
  background: var(--hr-orange);
}

.total-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  text-align: center;
}

.app-content .empty-state h2 {
  margin: 0;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--hr-muted);
}

.empty-state-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  background-color: var(--hr-orange);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ===================== Karne ===================== */
.score-summary {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.score-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
}

.score-tile-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--hr-muted);
}

.score-tile-value {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.score-tile-main {
  background: var(--hr-navy);
  border-color: var(--hr-navy);
  color: #ffffff;
}

.score-tile-main .score-tile-label {
  color: #C7D9EC;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-tile-main .score-tile-value {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

  .score-tile-main {
    grid-column: 1 / -1;
  }
}

.weight-chip {
  display: inline-block;
  min-width: 40px;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.app-content .table .col-weight {
  width: 110px;
}

.app-content .table .col-result {
  width: 180px;
}

.app-content .table .col-score {
  width: 110px;
  text-align: right;
}

.app-content .table .col-meter {
  width: 220px;
}

.cell-strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.app-content .table .cell-empty {
  padding: 24px 14px;
  color: var(--hr-muted);
  text-align: center;
}

.score-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.score-meter {
  display: inline-flex;
  gap: 3px;
}

.score-meter span {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: #DDE4EC;
}

.score-meter-1 span:nth-child(-n+1),
.score-meter-2 span:nth-child(-n+2),
.score-meter-3 span:nth-child(-n+3),
.score-meter-4 span:nth-child(-n+4),
.score-meter-5 span:nth-child(-n+5) {
  background: var(--hr-navy);
}

.level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F0F3F8;
  color: var(--hr-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.level-badge-low {
  background: #FDECEC;
  color: #A4201D;
}

.level-badge-good {
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
}

.level-badge-top {
  background: var(--hr-orange-tint);
  color: var(--hr-orange-ink);
}

/* ===================== Personel Listesi ===================== */
.app-content .table .col-actions {
  width: 1%;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  opacity: 0.75;
}

.btn-icon:hover,
.btn-icon:focus {
  background: #EEF2F7;
  opacity: 1;
}

.app-content .table-responsive {
  margin-bottom: 16px;
}

.app-content .table-responsive > .table {
  margin-bottom: 0;
}

.upload-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 8px;
}

.upload-card-hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--hr-muted);
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.upload-form .form-control {
  width: auto;
  max-width: 320px;
}

.app-content .table-headline {
  font-size: 18px;
}

.app-content .section-card .table-responsive {
  margin-bottom: 0;
}

.app-content .table thead .col-actions {
  text-align: right;
}

@media (max-width: 767.98px) {
  .app-content .table .col-weight,
  .app-content .table .col-score {
    width: 72px;
  }

  .app-content .table .col-result,
  .app-content .table .col-meter {
    width: auto;
  }
}

/* ===================== shared: back link, status badges, list footer ===================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: -6px 0 6px -10px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--hr-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-link:hover {
  background: #EAEEF4;
  color: var(--hr-ink);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge-ok {
  background: #E6F4EC;
  color: #17643A;
}

.status-badge-warn {
  background: var(--hr-orange-tint);
  color: var(--hr-orange-ink);
}

.status-note {
  font-size: 13.5px;
  color: var(--hr-muted);
}

.total-chip-warn {
  background: var(--hr-orange-tint);
  color: var(--hr-orange-ink);
}

.list-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.list-footer .pagination {
  margin-bottom: 0;
}

.list-footer .form-check {
  margin: 0;
  font-size: 14px;
  color: var(--hr-ink-soft);
}

.section-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hr-border);
}

.section-card-foot-text {
  font-size: 14px;
  color: var(--hr-muted);
}

#form-error .flash-msg {
  margin-bottom: 16px;
}

/* ===================== target type choice ===================== */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 28px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  color: var(--hr-ink);
  text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.choice-card:hover {
  border-color: var(--hr-navy);
  box-shadow: 0 8px 24px rgba(15, 33, 55, 0.08);
  color: var(--hr-ink);
  transform: translateY(-2px);
}

.choice-card:focus-visible {
  outline: 2px solid var(--hr-navy);
  outline-offset: 3px;
}

.choice-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background-color: var(--hr-navy-tint);
  position: relative;
}

/* the icon class sets a mask; draw the glyph on a pseudo-element so the tile keeps its background */
.choice-card-icon {
  -webkit-mask-image: none;
  mask-image: none;
}

.choice-card-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  background-color: var(--hr-navy);
  -webkit-mask-image: inherit;
  mask-image: inherit;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.choice-card-icon.app-icon-buildings::after {
  -webkit-mask-image: url("../images/buildings.svg");
  mask-image: url("../images/buildings.svg");
}

.choice-card-icon.app-icon-archive::after {
  -webkit-mask-image: url("../images/archive.svg");
  mask-image: url("../images/archive.svg");
}

.choice-card-icon.app-icon-person-arms-up::after {
  -webkit-mask-image: url("../images/person-arms-up.svg");
  mask-image: url("../images/person-arms-up.svg");
}

.choice-card-accent .choice-card-icon {
  background-color: var(--hr-orange-tint);
}

.choice-card-accent .choice-card-icon::after {
  background-color: #A84E00;
}

.choice-card-title {
  font-size: 19px;
  font-weight: 600;
}

.choice-card-desc {
  font-size: 14px;
  color: var(--hr-muted);
}

/* ===================== target forms, result entry ===================== */
.form-card {
  max-width: 720px;
}

.form-card .mb-3:last-child {
  margin-bottom: 0 !important;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.result-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.result-form .form-control {
  min-width: 0;
}

.result-form .result-score {
  max-width: 90px;
}

.app-content .table td .row-actions form {
  margin: 0;
}

@media (max-width: 767.98px) {
  .choice-card {
    padding: 22px;
  }
}

/* ===================== competence selection ===================== */
.form-hint {
  margin: -8px 0 20px;
  color: var(--hr-ink-soft);
}

.app-content .group-title {
  margin: 8px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hr-muted);
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.comp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.comp-card:has(.checkbox:checked) {
  border-color: var(--hr-navy);
  box-shadow: 0 0 0 1px var(--hr-navy);
}

.comp-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comp-card-head .form-check-input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.comp-card-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.comp-card-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--hr-muted);
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.level-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 4px 10px;
  padding: 9px 12px;
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius-sm);
  font-size: 14px;
  cursor: pointer;
}

.level-option:hover {
  background: var(--hr-surface-alt);
}

.level-option .form-check-input {
  margin-top: 2px;
}

.level-option-name {
  font-weight: 600;
  white-space: nowrap;
}

.level-option-desc {
  color: var(--hr-ink-soft);
}

/* select-competence.js adds .table-success to the chosen level of a selected competence */
.level-option.table-success {
  background: var(--hr-navy-tint);
  border-color: var(--hr-navy);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 8px -32px -48px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--hr-border);
  box-shadow: 0 -6px 16px rgba(15, 33, 55, 0.05);
}

.sticky-actions-count {
  font-weight: 600;
  color: var(--hr-ink-soft);
  font-variant-numeric: tabular-nums;
}

.sticky-actions .btn {
  min-width: 120px;
}

/* ===================== competence survey ===================== */
.survey-card {
  max-width: 880px;
}

.survey-text {
  margin: 0 0 14px;
  color: var(--hr-ink-soft);
}

.survey-facts {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 20px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--hr-surface-alt);
  border-radius: var(--hr-radius-sm);
  font-size: 14px;
}

.survey-facts dt {
  font-weight: 600;
  color: var(--hr-muted);
}

.survey-facts dd {
  margin: 0;
}

.survey-facts ul {
  margin: 0;
  padding-left: 18px;
}

.survey-answer {
  max-width: 320px;
}

.modal-list {
  margin: 0;
  padding-left: 18px;
}

.modal-list li + li {
  margin-top: 6px;
}

@media (max-width: 991.98px) {
  .sticky-actions {
    margin: 8px -16px -40px;
    padding: 12px 16px;
  }
}

@media (max-width: 575.98px) {
  .comp-grid {
    grid-template-columns: 1fr;
  }

  .survey-facts {
    grid-template-columns: 1fr;
  }
}

/* ===================== grading checklist, period settings ===================== */
.checklist {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hr-border);
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-label {
  flex-grow: 1;
  font-weight: 500;
}

.checklist-mark {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.checklist-mark-ok {
  background: #E6F4EC;
}

.checklist-mark-ok::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 7px;
  height: 11px;
  border-right: 2px solid #17643A;
  border-bottom: 2px solid #17643A;
  transform: rotate(45deg);
}

.checklist-mark-bad {
  background: var(--hr-orange-tint);
}

.checklist-mark-bad::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: var(--hr-orange-ink);
  box-shadow: none;
}

.card-text-muted {
  margin: 0 0 16px;
  color: var(--hr-muted);
  font-size: 14.5px;
}

.form-actions-start {
  justify-content: flex-start;
  margin-top: 0;
}

.empty-state-icon-ok {
  background-color: #17643A;
}

.status-badge-muted {
  background: #F0F3F8;
  color: var(--hr-ink-soft);
}

.danger-note {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--hr-radius-sm);
  background: #FDECEC;
  color: #8B1C1A;
  font-size: 14.5px;
  font-weight: 500;
}

/* error cards (404 / 403) inside the app shell */
.app-content .error-content-wrap {
  min-height: calc(100vh - 160px);
  padding: 0;
}

.error-icon.error-icon-warn {
  background: var(--hr-orange-tint);
}

.error-icon.error-icon-warn svg {
  stroke: var(--hr-orange-ink);
}

/* ===================== admin panel ===================== */
body.admin-body {
  min-height: 100vh;
  background: var(--hr-bg);
}

.admin-topbar {
  background: var(--hr-surface);
  border-bottom: 1px solid var(--hr-border);
}

.admin-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.admin-brand img {
  display: block;
  height: auto;
}

.admin-brand-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--hr-navy);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--hr-radius-sm);
  color: var(--hr-ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.admin-nav-link:hover {
  background: var(--hr-bg);
  color: var(--hr-ink);
}

.admin-nav-link.active {
  background: var(--hr-navy-tint);
  color: var(--hr-navy);
  font-weight: 600;
}

.admin-content {
  padding-top: 28px;
}

/* ===================== home page, label/value lists ===================== */
.home-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}

.home-profile {
  margin-bottom: 0;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 1099.98px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 0;
}

.detail-list dt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hr-muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 500;
  color: var(--hr-ink);
}

.modal-body .detail-list {
  font-size: 14.5px;
}

.section-empty {
  margin: 0;
  padding: 20px 0 8px;
  color: var(--hr-muted);
  text-align: center;
}

.choice-card-icon.app-icon-bullseye::after {
  -webkit-mask-image: url("../images/bullseye.svg");
  mask-image: url("../images/bullseye.svg");
}

.choice-card-icon.app-icon-person-fill-up::after {
  -webkit-mask-image: url("../images/person-fill-up.svg");
  mask-image: url("../images/person-fill-up.svg");
}

.choice-card-icon.app-icon-mortarboard::after {
  -webkit-mask-image: url("../images/mortarboard.svg");
  mask-image: url("../images/mortarboard.svg");
}

/* ===================== Personel Listesi pop-ups ===================== */
.ratio-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.ratio-field .form-label {
  font-size: 13.5px;
}

.detail-hint {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--hr-muted);
}

@media (max-width: 479.98px) {
  .ratio-form {
    grid-template-columns: 1fr;
  }
}

/* Pop-up titles look the same wherever the pop-up sits in the page (overrides .app-content h5). */
.modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ===================== profile photo ===================== */
.app-icon-camera {
  -webkit-mask-image: url("../images/camera.svg");
  mask-image: url("../images/camera.svg");
}

.app-user-avatar-img {
  object-fit: cover;
  background: var(--hr-navy-tint);
}

.home-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hr-border);
}

.home-photo-img,
.home-photo-initials {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--hr-surface), 0 0 0 5px var(--hr-orange);
}

.home-photo-img {
  object-fit: cover;
}

.home-photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hr-navy);
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
}

.home-photo-link {
  font-size: 14px;
  font-weight: 600;
}

.photo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}

.photo-preview-wrap {
  flex-shrink: 0;
}

.photo-preview,
.photo-initials {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--hr-surface), 0 0 0 6px var(--hr-orange);
}

.photo-preview {
  display: block;
  object-fit: cover;
}

.photo-preview.d-none,
.photo-initials.d-none {
  display: none !important;
}

.photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hr-navy);
  color: #ffffff;
  font-size: 40px;
  font-weight: 600;
}

.photo-controls {
  flex: 1 1 280px;
  min-width: 0;
}

.photo-status {
  min-height: 21px;
  margin: 8px 0 4px;
  font-size: 14px;
  color: var(--hr-ink-soft);
}

.photo-status-error {
  color: #A4201D;
  font-weight: 500;
}

.photo-remove {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hr-border);
}

.photo-fit {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.photo-fit legend {
  float: none;
  width: auto;
  margin-bottom: 4px;
  font-size: 14px;
}

.photo-fit-hint {
  margin-left: 4px;
  font-size: 12.5px;
  color: var(--hr-muted);
}
